:root {
    --primary: #416ACB;
    --primary-light: #62ADFC;
    --soft-white: #FAFAFA;
    --cream: #DCEAFA;
    --text-dark: #414243;
    --text-muted: #6b6b6b;

    /* Aliases for compatibility */
    --sage-green: var(--primary-light);
    --dark-green: var(--primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    background: var(--soft-white);
}

/* Header */
header {
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--soft-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #eee;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-green);
}

.logo span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 3px;
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--sage-green);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--sage-green);
    color: white !important;
    padding: 12px 24px;
    border-radius: 6px;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--dark-green);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero */
.hero {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-text h2 {
    font-size: 48px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text h2 strong {
    font-weight: 600;
    color: var(--dark-green);
}

.hero-text p {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 450px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s;
    display: inline-block;
}

.btn-filled {
    background: var(--sage-green);
    color: white;
}

.btn-filled:hover {
    background: var(--dark-green);
}

.btn-outline {
    border: 1.5px solid var(--text-dark);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: var(--text-dark);
    color: white;
}

.hero-image {
    aspect-ratio: 4/3;
    background: var(--cream);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats */
.stats {
    background: var(--cream);
    padding: 60px 8%;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 42px;
    font-weight: 300;
    color: var(--dark-green);
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Section Styles */
.section {
    padding: 100px 8%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--sage-green);
    font-weight: 600;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 400;
    margin-top: 10px;
}

/* Services */
.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-item {
    padding: 35px;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    transition: all 0.3s;
}

.service-item:hover {
    border-color: var(--sage-green);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.service-number {
    font-size: 32px;
    font-weight: 200;
    color: var(--sage-green);
    line-height: 1;
}

.service-icon-small {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.service-item:hover .service-icon-small {
    background: var(--primary);
}

.service-icon-small iconify-icon {
    font-size: 24px;
    color: white;
}

.service-icon-small img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.service-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-content p {
    font-size: 14px;
    color: var(--text-muted);
}

/* About / Timeline */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.about-image {
    aspect-ratio: 3/4;
    background: var(--cream);
    border-radius: 16px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h2 {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 20px;
    color: var(--dark-green);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 16px;
}

.timeline {
    margin-top: 40px;
}

.timeline-item {
    display: flex;
    gap: 25px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--sage-green);
    min-width: 100px;
}

.timeline-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Contact Section */
.contact-section {
    background: var(--dark-green);
    color: white;
    padding: 80px 8%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-block h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    opacity: 0.7;
}

.contact-block p {
    font-size: 16px;
    line-height: 2;
}

.contact-block a {
    color: white;
    text-decoration: none;
}

.contact-block a:hover {
    text-decoration: underline;
}

/* Info Box */
.info-box {
    background: var(--cream);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
}

.info-box p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Hours Table */
.hours-table {
    width: 100%;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row span:first-child {
    opacity: 0.8;
}

.hours-row span:last-child {
    font-weight: 500;
}

/* Practice Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    aspect-ratio: 4/3;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Map */
.map-container {
    width: 100%;
    height: 300px;
    background: var(--cream);
    border-radius: 12px;
    margin-top: 40px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
footer {
    padding: 25px 8%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid #eee;
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    color: var(--dark-green);
}

/* Page Header */
.page-header {
    background: var(--cream);
    padding: 80px 8% 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 400;
    color: var(--dark-green);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 17px;
    color: var(--text-muted);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

/* Contact Page Layout */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info-card {
    padding: 30px;
    background: var(--cream);
    border-radius: 12px;
    margin-bottom: 20px;
}

.contact-info-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--sage-green);
    margin-bottom: 15px;
}

.contact-info-card p {
    font-size: 16px;
    line-height: 1.8;
}

.contact-info-card a {
    color: var(--dark-green);
    text-decoration: none;
}

.contact-info-card a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        max-width: 400px;
    }
}

@media (max-width: 900px) {
    header {
        padding: 20px 5%;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--soft-white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-bottom: 1px solid #eee;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 15px 0;
        border-bottom: 1px solid #eee;
    }

    nav a:last-child {
        border-bottom: none;
        margin-top: 15px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 5%;
        gap: 40px;
    }

    .hero-text h2 {
        font-size: 32px;
    }

    .hero-image {
        aspect-ratio: 16/9;
    }

    .section {
        padding: 60px 5%;
    }

    .stats {
        padding: 40px 5%;
    }

    .stats-grid {
        gap: 40px;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-section {
        padding: 60px 5%;
    }

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

    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 60px 5% 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        flex-direction: column;
        gap: 30px;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        text-align: center;
    }
}
