/* Modern CSS Reset and Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
}

/* CSS Custom Properties - Refined Color Palette */
:root {
    --primary-color: #2c5aa0;
    --primary-dark: #1e3d6f;
    --primary-light: #4a7bc8;
    --primary-lighter: #6b90d9;
    --accent-gold: #E4D03E;
    --accent-green: #27ae60;
    --background-white: #ffffff;
    --background-light: #f7f9fc;
    --background-blue: #eef3f9;
    --text-dark: #1a2332;
    --text-medium: #4a5568;
    --text-light: #718096;
    --border-color: #e2e8f0;
    --border-light: #f0f4f8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(44, 90, 160, 0.12);
    --shadow-lg: 0 10px 30px rgba(44, 90, 160, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --container-max-width: 1200px;
    --section-padding: 5rem 0;
}

/* Layout Components */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header Styles */
.header {
    background: var(--background-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-light);
}

.header::before {
    content: '';
    display: block;
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    height: 4px;
    width: 100%;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    background: var(--background-white);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.logo-img:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-lighter) 100%);
    padding: 0.875rem 2.5rem;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(135deg, rgba(44, 90, 160, 0.85) 0%, rgba(30, 61, 111, 0.9) 100%),
        url('../images/baltimore-skyline.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    min-width: 160px;
}

.btn-primary {
    background: var(--accent-green);
    color: white;
    border-color: var(--accent-green);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: #229954;
    border-color: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Section Styles */
section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.section-title + p {
    text-align: center;
    color: var(--text-medium);
    margin-bottom: 3rem;
}

/* Services Section */
.services {
    background: var(--background-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--background-white);
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-lighter);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-medium);
    line-height: 1.6;
}

/* Schedule Section */
.schedule {
    text-align: center;
}

.schedule-intro {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.scheduler-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--background-white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.scheduler-container iframe {
    border-radius: var(--border-radius);
    border: none;
}

/* Contact Section */
.contact {
    background: var(--background-blue);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.contact-card {
    background: var(--background-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.contact-header h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-header .tagline {
    font-size: 1.1rem;
    color: var(--accent-green);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: block;
}

.contact-details {
    display: grid;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
}

.contact-icon {
    font-size: 1.25rem;
    min-width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.contact-text {
    font-size: 1rem;
    color: var(--text-dark);
}

.license-card {
    background: var(--background-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    text-align: center;
}

.license-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.license-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
    text-align: left;
}

.license-list li {
    color: var(--text-dark);
    font-size: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.license-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    padding: 2.5rem 0;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer p {
    margin: 0;
    font-size: 0.95rem;
}

.attribution {
    font-size: 0.9rem;
    opacity: 0.85;
    margin: 0;
}

.attribution a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.attribution a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1.5rem;
    }

    .nav-links {
        gap: 1rem;
        padding: 0.5rem 1.5rem;
        border-radius: 20px;
    }

    .hero {
        padding: 4rem 0;
        background-attachment: scroll;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .scheduler-container {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 60px;
    }

    .nav {
        padding: 1.25rem 0;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .acuity-demo-widget {
        padding: 1.5rem;
    }

    .demo-calendar {
        padding: 1.5rem;
    }

    .integration-notice {
        padding: 1rem;
    }
}

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
    }
}