/* ============================================================
   SNAYA EVENTS & CATERING — MAIN STYLESHEET
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --cream:       #f2eadb;
    --brown:       #432b20;
    --copper:      #ad674a;
    --text:        #241d19;
    --border-warm: #bd8a72;
    --border-soft: #c99a83;
    --header-h:    93px;
}

/* --- Base Reset --- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Montserrat, Arial, sans-serif;
    min-width: 0;
}
body.nav-open { overflow: hidden; }

a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

/* --- Accessibility: visible keyboard focus ring in brand colors --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
    border-radius: 1px;
}

/* --- Skip link: hidden until keyboard-focused --- */
.skip-link {
    position: fixed;
    top: -60px;
    left: 12px;
    z-index: 1000;
    background: var(--brown);
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 14px;
    transition: top .2s ease;
}
.skip-link:focus {
    top: 12px;
}

/* --- Shared: eyebrow badge --- */
.eyebrow {
    display: inline-block;
    background: var(--copper);
    color: #fff;
    text-transform: uppercase;
    font-family: Georgia, serif;
    font-size: clamp(14px, 0.6vw + 12px, 24px);
    letter-spacing: .07em;
    padding: clamp(8px, 0.7vw + 6px, 13px) clamp(14px, 1.2vw + 8px, 26px);
    margin-bottom: clamp(16px, 1.6vw, 26px);
}

/* --- Shared: decorative rule --- */
.rule {
    height: 1px;
    width: min(360px, 100%);
    background: linear-gradient(90deg, transparent, var(--copper) 30%, var(--copper) 70%, transparent);
    margin: 22px 0 28px;
}
.rule.center { margin-inline: auto; }

/* --- Shared: section wrapper with bottom border --- */
.section-shell {
    max-width: 1760px;
    margin: 0 auto;
    padding: 0 clamp(16px, 1.75vw, 32px);
    border-bottom: 1px solid var(--border-warm);
    scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}

.desktop-only,
.break-desktop { display: none; }

@media (min-width: 1101px) {
    .desktop-only,
    .break-desktop { display: inline; }
}

/* --- Scroll-reveal (JS adds .reveal, then .is-visible on intersect) --- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: none;
}
.services-grid article.reveal:nth-child(2) { transition-delay: .08s; }
.services-grid article.reveal:nth-child(3) { transition-delay: .16s; }
.services-grid article.reveal:nth-child(4) { transition-delay: .24s; }
.services-grid article.reveal:nth-child(5) { transition-delay: .32s; }
.gallery-item.reveal:nth-child(2) { transition-delay: .06s; }
.gallery-item.reveal:nth-child(3) { transition-delay: .12s; }
.gallery-item.reveal:nth-child(4) { transition-delay: .18s; }
.gallery-item.reveal:nth-child(5) { transition-delay: .24s; }


/* ============================================================
   HEADER / TOPBAR
   ============================================================ */
.topbar {
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    background: var(--brown);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top, 0px) max(clamp(16px, 5vw, 96px), env(safe-area-inset-right, 0px)) 0 max(clamp(16px, 5vw, 96px), env(safe-area-inset-left, 0px));
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    transition: box-shadow .3s ease;
}
.topbar.scrolled {
    box-shadow: 0 6px 18px rgba(36, 20, 12, .22);
}

.nav-logo { line-height: 0; flex-shrink: 0; }
.nav-logo img { height: 51px; width: auto; transition: opacity .2s; }
.nav-logo:hover img { opacity: .82; }

.topbar nav { display: flex; gap: clamp(20px, 3vw, 48px); }

.topbar nav a {
    position: relative;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-family: Georgia, serif;
    font-weight: 700;
    font-size: clamp(15px, 1vw + 10px, 22px);
    letter-spacing: .08em;
    transition: color .2s;
    white-space: nowrap;
}
.topbar nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -6px;
    height: 1px;
    background: #e2c2aa;
    transition: right .25s ease;
}
.topbar nav a:hover { color: #e2c2aa; }
.topbar nav a:hover::after { right: 0; }
.topbar nav a.active { color: #e2c2aa; }
.topbar nav a.active::after { right: 0; }

/* Hamburger button: three bars that morph into an X when open */
.menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}
.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    transition: transform .3s ease, opacity .3s ease;
}
.menu-button.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-button.open span:nth-child(2) { opacity: 0; }
.menu-button.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    display: none;
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: 0;
    padding: clamp(32px, 4vw, 60px) 0 36px;
    align-items: stretch;
}

.about-copy {
    padding: 12px clamp(20px, 4.5vw, 78px) 36px clamp(16px, 3.5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.about-intro,
.about-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
}

.brand-logo {
    width: min(285px, 70%);
    height: auto;
    margin: 0 0 clamp(28px, 4vw, 54px) -6px;
}

.about h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 4.6vw + 0.55rem, 4.875rem);
    line-height: 1.18;
    color: var(--brown);
    margin: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}
.about h1 em {
    font-style: italic;
    font-weight: 600;
}

.about-copy p {
    font-size: clamp(1rem, 0.82rem + 0.65vw, 1.594rem);
    line-height: 1.65;
    margin: 0 0 18px;
    max-width: 690px;
}
.about-copy strong { font-weight: 800; }

.download-btn {
    display: inline-flex;
    align-items: center;
    background: var(--copper);
    border: 1.5px solid var(--copper);
    height: clamp(64px, 6vw, 102px);
    margin-top: 30px;
    padding: 0 clamp(18px, 2.4vw, 42px);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    font-size: clamp(15px, 0.8vw + 12px, 25px);
    letter-spacing: .05em;
    color: #fff;
    transition: background .25s ease, border-color .25s ease, transform .2s ease, box-shadow .25s ease;
    max-width: 100%;
}
.download-btn:hover {
    background: var(--brown);
    border-color: var(--brown);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(67, 43, 32, .32);
}
.download-btn:active {
    transform: translateY(0) scale(.98);
    box-shadow: 0 4px 12px rgba(67, 43, 32, .28);
}
.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(40px, 3.4vw, 60px);
    height: clamp(40px, 3.4vw, 60px);
    margin-right: clamp(12px, 1.4vw, 24px);
    padding-right: clamp(12px, 1.4vw, 24px);
    border-right: 1px solid rgba(255, 255, 255, .35);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.download-btn:hover .download-icon {
    transform: translateY(2px);
}
.download-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.about-photo {
    background: url('../images/top-image.jpg') 68% center / cover no-repeat;
    min-height: clamp(280px, 70vh, 960px);
    box-shadow: 0 20px 46px rgba(67, 43, 32, .18);
}


/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
    padding: clamp(36px, 4vw, 54px) clamp(12px, 2.8vw, 48px) 0;
    text-align: center;
    border-bottom: none;
}

.section-heading .eyebrow { margin-bottom: 15px; }

.section-heading h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.85rem, 1rem + 2.8vw, 4.25rem);
    line-height: 1.2;
    color: var(--brown);
    margin: 0;
    overflow-wrap: break-word;
}

.section-heading p {
    font-size: clamp(1rem, 0.85rem + 0.55vw, 1.5rem);
    line-height: 1.6;
    margin: 21px auto 51px;
    max-width: 52em;
    padding: 0 8px;
}

/* Five-column icon grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 36px;
}

.services-grid article {
    padding: 0 clamp(10px, 1.5vw, 27px) 24px;
    border-right: 1px solid var(--border-soft);
    transition: transform .3s ease;
    min-width: 0;
}
.services-grid article:last-child { border-right: 0; }
.services-grid article:hover { transform: translateY(-6px); }

.service-icon {
    height: clamp(96px, 8vw, 132px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 9px;
}
.service-icon img {
    width: clamp(72px, 6.5vw, 117px);
    height: clamp(72px, 6.5vw, 117px);
    object-fit: contain;
    transition: transform .3s ease;
}
.services-grid article:hover .service-icon img { transform: scale(1.1); }

/* SVG staffing icon */
.staff-icon {
    width: clamp(68px, 6.2vw, 111px);
    height: clamp(68px, 6.2vw, 111px);
    fill: none;
    stroke: var(--brown);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .3s ease;
}
.services-grid article:hover .staff-icon { transform: scale(1.1); }

.services-grid h3 {
    font-family: Georgia, serif;
    text-transform: uppercase;
    color: var(--copper);
    font-size: clamp(14px, 0.7vw + 11px, 22px);
    letter-spacing: .06em;
    margin: 0 0 15px;
    transition: color .3s ease;
    overflow-wrap: break-word;
}
.services-grid article:hover h3 { color: var(--brown); }

.services-grid p {
    font-size: clamp(14px, 0.5vw + 12px, 19px);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 278px;
}

/* Five-image gallery strip */
.gallery {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}
.gallery-item {
    overflow: hidden;
    min-width: 0;
}
.gallery-item img {
    width: 100%;
    height: clamp(180px, 22vw, 390px);
    object-fit: cover;
    transition: transform .5s ease;
}
.gallery-item:hover img {
    transform: scale(1.08);
}


/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact {
    padding: clamp(24px, 3vw, 48px) clamp(0px, 1.5vw, 48px);
}

/* Bordered card: full-bleed photo with a left-side fade so text reads on top */
.contact-card {
    position: relative;
    border: 2px solid var(--copper);
    overflow: hidden;
    min-height: clamp(480px, 70vh, 750px);
    box-shadow: 0 20px 46px rgba(67, 43, 32, .14);
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        var(--cream) 0%,
        var(--cream) 38%,
        rgba(242, 234, 219, .82) 48%,
        rgba(242, 234, 219, 0) 64%
    );
}

.contact-content {
    position: relative;
    z-index: 2;
    max-width: min(700px, 100%);
    padding: clamp(36px, 5vw, 78px) clamp(20px, 2.5vw, 40px) clamp(36px, 5vw, 78px) clamp(20px, 4vw, 69px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.contact h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.85rem, 1rem + 2.8vw, 4.25rem);
    line-height: 1.2;
    color: var(--brown);
    margin: 0;
    overflow-wrap: break-word;
}
.contact h2 em {
    font-style: italic;
    font-weight: 600;
}

.contact-content > p {
    font-size: clamp(1rem, 0.85rem + 0.55vw, 1.5rem);
    line-height: 1.6;
    margin: 3px 0 0;
}

.contact-divider {
    width: 100%;
    max-width: 630px;
    margin: 36px 0;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 27px;
    margin-top: 6px;
    width: 100%;
}
.contact-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}
.contact-links img {
    width: clamp(52px, 5vw, 87px);
    height: clamp(52px, 5vw, 87px);
    object-fit: contain;
    margin-right: clamp(12px, 1.8vw, 30px);
    transition: transform .25s ease;
    flex-shrink: 0;
}
.contact-links a:hover img { transform: scale(1.12) rotate(-4deg); }
.contact-links span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.contact-links b {
    font-family: Georgia, serif;
    text-transform: uppercase;
    color: var(--copper);
    font-size: clamp(16px, 0.8vw + 13px, 25.5px);
    font-weight: 500;
    font-style: normal;
}
.contact-links u {
    font-size: clamp(14px, 0.6vw + 12px, 24px);
    text-underline-offset: 3px;
    transition: color .2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.contact-links a:hover u { color: var(--copper); }

.contact-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: url('../images/footer-image.jpg') 68% 42% / cover no-repeat;
    min-height: 510px;
}


/* --- Back-to-top floating button --- */
.back-to-top {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: var(--brown);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(36, 20, 12, .3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s, background .2s ease;
    z-index: 90;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .25s ease, transform .25s ease, background .2s ease;
}
.back-to-top:hover {
    background: var(--copper);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--brown);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    padding: 27px max(clamp(16px, 6vw, 115px), env(safe-area-inset-right));
    padding-left: max(clamp(16px, 6vw, 115px), env(safe-area-inset-left));
    padding-bottom: max(27px, env(safe-area-inset-bottom));
    min-height: 180px;
    color: #fff;
}

.footer-logo {
    width: min(218px, 80%);
    height: auto;
    justify-self: center;
}

.footer-center {
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .22);
    border-right: 1px solid rgba(255, 255, 255, .22);
    padding: 6px clamp(16px, 2.4vw, 42px);
    min-width: 0;
}
.footer-center p {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.15rem, 0.8rem + 1.1vw, 1.97rem);
    font-style: italic;
    margin: 0 0 15px;
}
.footer-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, #c09070, transparent);
    margin-bottom: 15px;
}
.footer-center small {
    font-size: clamp(12px, 0.4vw + 11px, 16px);
    letter-spacing: .04em;
    opacity: .8;
}

.socials {
    display: flex;
    gap: clamp(12px, 1.2vw, 21px);
    justify-content: center;
    align-items: center;
}
.socials a {
    display: flex;
    transition: transform .25s ease, opacity .2s ease;
}
.socials a:hover {
    transform: translateY(-3px);
    opacity: .82;
}
.socials img {
    width: clamp(40px, 4vw, 69px);
    height: clamp(40px, 4vw, 69px);
    object-fit: contain;
}


/* ============================================================
   RESPONSIVE — LAPTOP  (max-width: 1280px)
   5-col services become cramped; drop to 3-col.
   ============================================================ */
@media (max-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 28px 0;
    }
    .services-grid article {
        border-right: 1px solid var(--border-soft);
        border-bottom: 0;
    }
    .services-grid article:nth-child(3n) { border-right: 0; }
    .services-grid article:nth-child(n+4) {
        border-top: 1px solid var(--border-soft);
        padding-top: 28px;
    }
    .services-grid article:last-child { border-right: 0; }

    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ============================================================
   RESPONSIVE — TABLET LANDSCAPE / SMALL LAPTOP  (max-width: 1100px)
   Stack the about split so headings and copy aren't squeezed.
   ============================================================ */
@media (max-width: 1100px) {
    :root { --header-h: 76px; }

    .nav-logo img { height: 42px; }

    .about {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }
    .about-copy { padding: 0 clamp(20px, 4vw, 40px) 36px; }
    .about-photo {
        min-height: clamp(320px, 52vh, 560px);
        background-position: 68% center;
    }

    .contact-card { min-height: 0; }
    .contact-card::before {
        background: linear-gradient(
            to right,
            var(--cream) 0%,
            var(--cream) 28%,
            rgba(242, 234, 219, .88) 42%,
            rgba(242, 234, 219, 0) 62%
        );
    }
    .contact-content { max-width: min(560px, 100%); }
}


/* ============================================================
   RESPONSIVE — TABLET & MOBILE  (max-width: 900px)
   ============================================================ */
@media (max-width: 900px) {
    :root { --header-h: 68px; }

    /* Nav — stays sticky; hamburger opens a full-width panel */
    .topbar {
        height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
        padding: env(safe-area-inset-top, 0px) max(18px, env(safe-area-inset-right, 0px)) 0 max(18px, env(safe-area-inset-left, 0px));
    }
    .nav-logo img { height: 34px; }
    .menu-button { display: flex; }
    .topbar nav {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brown);
        flex-direction: column;
        gap: 0;
        padding: 12px 28px max(28px, env(safe-area-inset-bottom));
        text-align: center;
        z-index: 10;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        border-top: 1px solid rgba(226, 194, 170, .22);
        box-shadow: 0 18px 32px rgba(36, 20, 12, .28);
    }
    .topbar nav.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: opacity .25s ease, transform .25s ease;
    }
    .topbar nav a {
        padding: 16px 0;
        font-size: 17px;
        letter-spacing: .14em;
        white-space: normal;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }
    .topbar nav a:last-child { border-bottom: 0; }
    .topbar nav a::after { bottom: 12px; }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(36, 20, 12, .45);
        opacity: 0;
        pointer-events: none;
        z-index: 99;
        transition: opacity .25s ease;
    }
    .nav-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }

    /* About: intro → hero photo → copy  (mixed editorial layout) */
    .about {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "intro"
            "photo"
            "body";
        padding: 28px 0 0;
        border-bottom: 0;
    }
    .about-copy {
        display: contents;
        padding: 0;
    }
    .about-intro {
        grid-area: intro;
        align-items: center;
        text-align: center;
        padding: 8px 28px 28px;
    }
    .about-photo {
        grid-area: photo;
        min-height: clamp(240px, 48vw, 380px);
        margin: 0;
        box-shadow: none;
        background-position: 60% center;
    }
    .about-body {
        grid-area: body;
        padding: 32px 28px 40px;
    }
    .brand-logo {
        width: min(200px, 58%);
        margin: 0 auto 22px;
    }
    .about-intro .rule { margin: 18px auto 0; width: min(160px, 50%); }
    .about-copy p { font-size: 16.5px; line-height: 1.75; max-width: 100%; }
    .download-btn {
        width: 100%;
        justify-content: center;
        margin-top: 22px;
        height: 58px;
        font-size: 15px;
        letter-spacing: .08em;
    }

    /* Services: icon + copy rows, then a 2-up gallery mosaic */
    .services { padding: 48px 20px 0; }
    .section-heading { padding: 0 8px; }
    .section-heading h2 { font-size: clamp(1.85rem, 6.4vw, 2.6rem); }
    .section-heading p {
        font-size: 16px;
        margin: 16px auto 36px;
        max-width: 36em;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 40px;
        border-top: 1px solid var(--border-soft);
    }
    .services-grid article {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 16px;
        align-items: start;
        text-align: left;
        border: 0;
        border-bottom: 1px solid var(--border-soft);
        padding: 22px 4px;
    }
    .services-grid article:nth-child(3n),
    .services-grid article:nth-child(n+4),
    .services-grid article:last-child {
        border-right: 0;
        border-top: 0;
        padding-top: 22px;
        grid-column: auto;
    }
    .service-icon {
        grid-row: 1 / span 2;
        height: 76px;
        margin: 0;
        align-self: center;
    }
    .service-icon img,
    .staff-icon { width: 64px; height: 64px; }
    .services-grid h3 {
        font-size: 15px;
        letter-spacing: .08em;
        margin: 4px 0 8px;
    }
    .services-grid p {
        font-size: 14.5px;
        line-height: 1.55;
        max-width: none;
        margin: 0;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin: 0 -20px;
    }
    .gallery-item:first-child { grid-column: 1 / -1; }
    .gallery-item img { height: 160px; }
    .gallery-item:first-child img { height: 240px; }
    .gallery-item:last-child { grid-column: auto; }
    .gallery-item:last-child img { height: 160px; }

    /* Contact: photo banner, then centered copy + tappable rows */
    .contact { padding: 28px 20px 32px; }
    .contact-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        border-width: 1px;
    }
    .contact-card::before { display: none; }
    .contact-image {
        position: static;
        min-height: clamp(180px, 42vw, 260px);
        order: -1;
    }
    .contact-content {
        max-width: 100%;
        background: var(--cream);
        align-items: center;
        text-align: center;
        padding: 36px 22px 32px;
    }
    .contact-content .rule { margin-inline: auto; width: min(160px, 50%); }
    .contact-divider { max-width: 100%; margin: 28px 0 24px; }
    .contact-content > p { font-size: 16px; }
    .contact-links { gap: 12px; }
    .contact-links a {
        width: 100%;
        text-align: left;
        padding: 14px 16px;
        border: 1px solid var(--border-soft);
        background: rgba(173, 103, 74, .06);
        transition: background .2s ease;
    }
    .contact-links a:active {
        background: rgba(173, 103, 74, .14);
    }
    .contact-links img { width: 44px; height: 44px; margin-right: 14px; }
    .contact-links b { font-size: 15px; }
    .contact-links u { font-size: 14.5px; }

    /* Footer */
    footer {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 36px max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom));
        padding-left: max(24px, env(safe-area-inset-left));
        text-align: center;
        min-height: 0;
    }
    .footer-logo {
        width: min(168px, 52%);
        margin-bottom: 22px;
    }
    .footer-center {
        border: 0;
        border-top: 1px solid rgba(255, 255, 255, .16);
        border-bottom: 1px solid rgba(255, 255, 255, .16);
        padding: 22px 8px;
        margin-bottom: 22px;
    }
    .footer-center p { font-size: 1.35rem; margin-bottom: 12px; }
    .socials { gap: 18px; }
    .socials img { width: 44px; height: 44px; }
}


/* ============================================================
   RESPONSIVE — SMALL MOBILE  (max-width: 480px)
   ============================================================ */
@media (max-width: 480px) {
    .about-intro { padding: 8px 24px 28px; }
    .about-body { padding: 32px 24px 40px; }
    .brand-logo { width: min(176px, 62%); }
    .about h1 { font-size: clamp(1.7rem, 7.4vw, 2.15rem); }

    .download-btn {
        height: auto;
        min-height: 54px;
        padding: 12px 16px;
    }

    .services { padding: 40px 18px 0; }
    .section-heading p { margin-bottom: 28px; }
    .services-grid article {
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 12px;
        padding: 20px 0;
    }
    .service-icon { height: 64px; }
    .service-icon img,
    .staff-icon { width: 54px; height: 54px; }

    .gallery { margin: 0 -18px; }
    .gallery-item img,
    .gallery-item:last-child img { height: 140px; }
    .gallery-item:first-child img { height: 210px; }

    .contact { padding: 24px 16px 28px; }
    .contact-content { padding: 28px 16px 24px; }
    .contact h2 { font-size: clamp(1.7rem, 7vw, 2.05rem); }

    .back-to-top {
        width: 44px;
        height: 44px;
        right: max(12px, env(safe-area-inset-right));
        bottom: max(12px, env(safe-area-inset-bottom));
    }
}


/* ============================================================
   RESPONSIVE — EXTRA-SMALL PHONES  (max-width: 360px)
   ============================================================ */
@media (max-width: 360px) {
    .eyebrow {
        font-size: 12px;
        padding: 7px 12px;
        letter-spacing: .08em;
    }
    .about-intro,
    .about-body { padding-left: 18px; padding-right: 18px; }
    .services-grid article {
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 10px;
    }
    .service-icon { height: 52px; }
    .service-icon img,
    .staff-icon { width: 46px; height: 46px; }
    .contact-links u { font-size: 13px; }
    .download-btn { font-size: 13px; letter-spacing: .04em; }
}


/* ============================================================
   RESPONSIVE — SHORT LANDSCAPE PHONES
   ============================================================ */
@media (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
    .about-photo { min-height: 220px; }
    .contact-image { min-height: 160px; }
    .topbar nav { max-height: calc(100dvh - var(--header-h)); }
}


/* ============================================================
   TOUCH: don't leave hover transforms stuck after tap
   ============================================================ */
@media (hover: none) {
    .services-grid article:hover { transform: none; }
    .services-grid article:hover .service-icon img,
    .services-grid article:hover .staff-icon { transform: none; }
    .gallery-item:hover img { transform: none; }
    .download-btn:hover {
        transform: none;
        box-shadow: none;
        background: var(--copper);
        border-color: var(--copper);
    }
    .download-btn:hover .download-icon { transform: none; }
    .contact-links a:hover img { transform: none; }
    .socials a:hover { transform: none; opacity: 1; }
}


/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
