* {
    box-sizing: border-box;
}

:root {
    --ink: #102027;
    --navy: #002e40;
    --navy-2: #013446;
    --teal: #328675;
    --mint: #55aa99;
    --wash: #f6fbfa;
    --warm-wash: #fffaf2;
    --gold: hsl(38, 90%, 70%);
    --border: rgba(1, 52, 70, 0.14);
    --shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    color: var(--ink);
    text-align: left;
    padding-top: 86px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

section {
    padding: 72px 0;
}

.section-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.section-intro {
    max-width: 720px;
    line-height: 1.75;
    color: #3e5057;
}
.services-section .section-intro {
    color: #e6f2ef;
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 15;
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-height: 86px;
    padding: 12px 5%;
    background: var(--navy);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 360px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.logo {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 3px solid var(--mint);
    border-radius: 8px;
}

#menu-checkbox {
    display: none;
}

.hamburger-menu {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.nav-links a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.hero {
    padding: 76px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 52px;
    align-items: center;
}

.hero h1,
.page-hero h1 {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--navy-2);
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.08;
}

.hero-copy > p:not(.eyebrow),
.page-hero p {
    max-width: 690px;
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 6px solid var(--navy-2);
    border-radius: 20px;
    box-shadow: 14px 14px 0 rgba(85, 170, 153, 0.28);
}

.hero-actions,
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.primary-button {
    background: var(--gold);
    color: var(--ink);
}

.primary-button:hover,
.primary-button:focus-visible {
    filter: brightness(0.96);
}

.secondary-button {
    border: 2px solid var(--navy-2);
    color: var(--navy-2);
}

.trust-strip {
    padding: 28px 0;
    background: var(--wash);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.trust-grid article {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.trust-grid strong {
    display: block;
    margin-bottom: 6px;
    color: var(--navy-2);
}

.trust-grid span {
    line-height: 1.5;
}

.mission-strip {
    padding: 48px 0;
}

.mission-strip-inner {
    padding: 12px 0 12px 28px;
    border-left: 6px solid var(--mint);
}

.mission-strip p:last-child {
    max-width: 850px;
    margin: 0;
    color: var(--navy-2);
    font-size: clamp(1.22rem, 2vw, 1.65rem);
    line-height: 1.55;
}

.who-layout,
.about-grid,
.contact-grid,
.school-contract-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 52px;
    align-items: start;
}

.who-heading h2,
.section-heading,
.contact-copy h2,
.about-copy h2 {
    margin: 0 0 18px;
    color: var(--navy-2);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.who-heading p,
.about-copy p,
.contact-copy p {
    line-height: 1.75;
}

.who-list {
    display: grid;
    gap: 10px;
}

.who-list article {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.who-list article > span {
    color: var(--teal);
    font-weight: 800;
}

.who-list h3 {
    margin: 0 0 8px;
    color: var(--navy-2);
}

.who-list p {
    margin: 0;
    line-height: 1.65;
}

.services-section {
    padding: 68px 0;
    background: linear-gradient(to top right, var(--navy-2), var(--teal));
    color: #fff;
}

.services-section .eyebrow {
    color: #d9f0ea;
}

.service-grid,
.process-grid,
.service-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 32px;
}

.service-card,
.process-card,
.service-category,
.info-card {
    padding: 24px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.service-card h3,
.process-card h3,
.service-category h2,
.info-card h2,
.info-card h3 {
    margin-top: 0;
    color: var(--navy-2);
}

.service-card p,
.process-card p,
.service-category p,
.info-card p {
    line-height: 1.68;
}

.service-card .secondary-button {
    margin-top: 8px;
}

.process-section,
.contact-cta,
.page-hero,
.soft-section {
    background: var(--wash);
}

.service-category ul {
    display: grid;
    gap: 9px;
    margin: 18px 0 0;
    padding-left: 20px;
    line-height: 1.55;
}

.school-contract-panel {
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--navy-2);
    color: #fff;
}

.school-contract-panel h2 {
    margin-top: 0;
    color: #fff;
}

.school-contract-panel p {
    line-height: 1.7;
}

.contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 40px;
    align-items: start;
    padding: 42px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.contact-details {
    min-width: 0;
    padding: 28px;
    background: var(--navy-2);
    color: #fff;
    border-radius: 18px;
    overflow-wrap: anywhere;
}

.contact-details p {
    margin-top: 0;
    line-height: 1.6;
}

.contact-details a {
    color: #fff;
}

.contact-details .primary-button {
    margin-top: 10px;
    color: var(--ink);
}

.page-hero {
    padding: 64px 0;
}

.page-hero p {
    color: #3e5057;
}

.about-grid {
    grid-template-columns: 1.2fr 0.8fr;
}

.about-points {
    display: grid;
    gap: 16px;
}

.about-points .info-card {
    box-shadow: none;
}
.school-highlight img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 18px;
}
.contact-grid {
    grid-template-columns: 1fr 1fr;
}

.contact-methods {
    display: grid;
    gap: 16px;
}

.contact-method {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fff;
}

.contact-method h2 {
    margin: 0 0 8px;
    color: var(--navy-2);
    font-size: 1.15rem;
}

.contact-method p {
    margin: 0;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.contact-method a {
    color: var(--navy-2);
}

.error-panel {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 0 72px;
    text-align: center;
}

.error-code {
    margin: 0;
    color: var(--mint);
    font-size: clamp(4.5rem, 14vw, 8rem);
    font-weight: 800;
    line-height: 1;
}

.error-panel h1 {
    margin: 14px 0;
    color: var(--navy-2);
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.error-panel > p:not(.error-code) {
    max-width: 590px;
    margin: 0 auto;
    line-height: 1.7;
}

.site-footer {
    padding: 56px 0 24px;
    background: var(--navy);
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 0.8fr;
    gap: 32px;
}

.site-footer h2,
.site-footer h3 {
    margin-top: 0;
}

.site-footer h2 {
    font-size: 1.35rem;
}

.site-footer h3 {
    color: var(--gold);
    font-size: 1rem;
}

.site-footer p {
    margin: 0 0 10px;
    line-height: 1.6;
}

.site-footer a {
    display: block;
    color: #fff;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 36px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
    text-align: center;
}

.footer-logo {
    max-height: 54px;
    width: auto;
}

@media (max-width: 840px) {
    body {
        padding-top: 82px;
    }

    section {
        padding: 56px 0;
    }

    .navbar {
        min-height: 82px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .brand {
        max-width: 245px;
        font-size: 0.92rem;
    }

    .logo {
        width: 52px;
        height: 52px;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
        padding: 10px;
        cursor: pointer;
    }

    .hamburger-menu .menu-icon {
        display: block;
        width: 28px;
        height: 3px;
        margin: 0;
        padding: 0;
        background: #fff;
        border-radius: 999px;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin: 0;
        padding: 18px;
        background: var(--navy-2);
        border-radius: 12px;
    }

    #menu-checkbox:checked ~ .nav-links {
        display: flex;
    }

    .hero-grid,
    .trust-grid,
    .service-grid,
    .process-grid,
    .service-category-grid,
    .who-layout,
    .about-grid,
    .contact-grid,
    .contact-panel,
    .school-contract-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 58px;
    }

    .hero-grid,
    .who-layout,
    .about-grid,
    .contact-grid {
        gap: 30px;
    }

    .contact-panel {
        padding: 28px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .brand span {
        max-width: 165px;
    }

    .section-inner {
        width: min(100% - 32px, 1100px);
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2rem, 11vw, 2.7rem);
    }

    .contact-panel,
    .school-contract-panel {
        padding: 22px;
    }
}


/* Client-directed refinements: warmer secondary pages, photo slots, and school-contract pathway */
.warm-page-hero {
    background: linear-gradient(135deg, var(--warm-wash), var(--wash));
}

.about-hero-grid,
.contact-hero-grid,
.about-story-grid,
.school-highlight-grid,
.school-contact-strip {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 44px;
    align-items: center;
}

.photo-placeholder {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px;
    border: 2px dashed rgba(50, 134, 117, 0.55);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,0.85), rgba(246,251,250,0.92));
    color: var(--navy-2);
    text-align: center;
}

.photo-placeholder span {
    font-weight: 800;
    letter-spacing: 0.02em;
}

.photo-placeholder small {
    max-width: 260px;
    color: #5d6d72;
    line-height: 1.5;
}

.portrait-placeholder {
    min-height: 430px;
}

.landscape-placeholder {
    min-height: 300px;
}

.about-story-grid {
    align-items: stretch;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    padding: 28px;
    border-top: 4px solid var(--mint);
    border-radius: 0 0 16px 16px;
    background: #fff;
}

.value-card > span {
    color: var(--teal);
    font-weight: 800;
}

.value-card h3 {
    margin: 8px 0 10px;
    color: var(--navy-2);
}

.value-card p {
    margin: 0;
    line-height: 1.68;
}

.contact-side-stack {
    display: grid;
    gap: 18px;
}

.appointment-card {
    box-shadow: var(--shadow);
}

.service-area-card {
    padding: 26px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--mint);
    border-radius: 16px;
    background: var(--warm-wash);
}

.service-area-card h2 {
    margin: 0 0 10px;
    color: var(--navy-2);
    font-size: 1.35rem;
}

.service-area-card p:last-child {
    margin-bottom: 0;
    line-height: 1.68;
}

.contact-method small {
    display: block;
    margin-top: 10px;
    color: #617278;
    line-height: 1.5;
}

.school-highlight {
    background: var(--warm-wash);
}

.school-highlight-action {
    padding: 28px;
    border: 1px solid rgba(1,52,70,0.16);
    border-radius: 18px;
    background: #fff;
}

.school-highlight-action p {
    margin-top: 0;
    color: var(--navy-2);
    font-weight: 700;
    line-height: 1.55;
}

.school-contact-strip {
    grid-template-columns: minmax(0, 1fr) auto;
}

.school-contact-strip h2 {
    margin: 0 0 12px;
    color: var(--navy-2);
}

.school-contact-strip p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    line-height: 1.7;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 840px) {
    .about-hero-grid,
    .contact-hero-grid,
    .about-story-grid,
    .school-highlight-grid,
    .school-contact-strip,
    .values-grid {
        grid-template-columns: 1fr;
    }

    .photo-placeholder,
    .portrait-placeholder,
    .landscape-placeholder {
        min-height: 240px;
    }

    .school-contact-strip .secondary-button {
        justify-self: start;
    }
}

/* About-page simplification after client review */
.about-closing {
    position: relative;
    padding: 68px 0 76px;
    background: linear-gradient(180deg, #fffaf2 0%, #f7f4ea 100%);
    border-top: 1px solid rgba(1, 52, 70, 0.08);
}

.about-closing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 48px;
    align-items: center;
}

.about-closing h2 {
    max-width: 700px;
    margin: 0 0 16px;
    color: var(--navy-2);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.about-closing p {
    max-width: 720px;
    margin-bottom: 0;
    line-height: 1.75;
}

.about-closing-action {
    padding: 28px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(1, 52, 70, 0.12);
    border-radius: 18px;
}

.about-closing-action p {
    margin: 0 0 18px;
    color: var(--navy-2);
    font-weight: 700;
    line-height: 1.55;
}

/* Soften the visual handoff into the footer instead of a white-to-navy stripe. */
.about-closing + .site-footer,
main:has(.about-closing) + .site-footer {
    border-top: 8px solid #d8e9e4;
    background: linear-gradient(135deg, #073e4a 0%, var(--navy) 62%);
}

@media (max-width: 840px) {
    .about-closing-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
