/* ═══════════════════════════════════════════════════════════════════
   Progonati Dental Studio — public site stylesheet
   Brand: luxury emerald + gold identity (client brand book, 2026)
   Palette: ivory (#FAF8F3) · emerald (#0F4A4F) · deep emerald (#12363A)
            · gold (#C8A45A) · champagne (#F2E8D4) · charcoal (#2E2E2E)
   Type: Cormorant Garamond (display) + Montserrat (body/UI)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
    --bg:            #faf8f3;
    --bg-muted:      #f2e8d4;
    --bg-track:      #efe5d0;
    --surface:       #ffffff;
    --ink:           #2e2e2e;
    --ink-70:        rgba(46, 46, 46, .70);
    --ink-65:        rgba(46, 46, 46, .65);
    --ink-55:        rgba(46, 46, 46, .55);
    --primary:       #0f4a4f;
    --primary-dark:  #12363a;
    --primary-tint:  #e6edec;
    --pine:          #12363a;
    --pine-soft:     #d9be82;
    --paper-on-dark: rgba(250, 248, 243, .80);
    --gold:          #c8a45a;
    --gold-light:    #d9be82;
    --border:        rgba(46, 46, 46, .12);
    --border-soft:   rgba(200, 164, 90, .18);
    --border-input:  rgba(46, 46, 46, .18);

    --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
    --font-body:    'Montserrat', system-ui, sans-serif;
    --font:         var(--font-body);

    --radius:      4px;
    --radius-pill: 24px;

    --container: 1280px;
    --gutter: 56px;

    --ease-out:   cubic-bezier(.22, .61, .36, 1);
    --ease-swift: cubic-bezier(.55, 0, .1, 1);
    --dur: .6s;

    --shadow-card: 0 2px 6px -2px rgba(18, 54, 58, .1),
                   0 18px 40px -18px rgba(18, 54, 58, .22);
    --shadow-header: 0 8px 24px -18px rgba(18, 54, 58, .35);
}

/* ── Reset & base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease-out); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -.01em;
    line-height: 1.14;
}
h1 { font-size: clamp(36px, 4.8vw, 58px); }
h2 { font-size: clamp(28px, 3.2vw, 38px); }
h3 { font-size: 20px; font-weight: 600; letter-spacing: 0; }
p  { margin: 0 0 1em; }

::selection { background: var(--primary); color: var(--bg); }

:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
    border-radius: 2px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute;
    top: -48px; left: 16px;
    z-index: 100;
    padding: 10px 18px;
    background: var(--pine); color: var(--bg);
    border-radius: 0 0 var(--radius) var(--radius);
    font: 600 13px var(--font);
    transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 0; color: var(--bg); }

/* ── Layout helpers ─────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-inline: var(--gutter);
}
.container.narrow { max-width: 880px; }

.section { padding-block: 80px; }
.section-tight { padding-block: 40px; }
.section-muted { background: var(--bg-muted); }

.section-dark {
    position: relative;
    overflow: hidden;
    background: var(--pine);
    color: var(--bg);
}
/* Faint candlelight accent in the corner — pseudo paints above the section's
   own background but pointer-events:none + the container's z-index keep it
   strictly decorative. */
.section-dark::before {
    content: "";
    position: absolute;
    top: -30%;
    right: -12%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 90, .12), transparent 68%);
    pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }
.section-dark h2 { color: var(--bg); }
/* :not(.btn) — a plain "a" selector here outranks .btn-light/.btn-outline-light
   by specificity and would overwrite their intentional text colors (this bit
   us once already with .main-nav a vs .btn-primary; same fix pattern). */
.section-dark a:not(.btn) { color: var(--paper-on-dark); }
.section-dark a:not(.btn):hover { color: var(--bg); }

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 52px;
}
.section-head p { color: var(--ink-65); font-size: 15px; margin: 0; }

.section-cta { text-align: center; margin-top: 44px; }

.center-page {
    text-align: center;
    padding-block: 48px;
    max-width: 560px;
}
.center-page p { color: var(--ink-65); margin-bottom: 28px; }

.eyebrow {
    font: 600 13px var(--font);
    color: var(--primary);
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.eyebrow-light { color: var(--pine-soft); }
.eyebrow a { color: inherit; }

/* ── Buttons & links ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 600 13px var(--font);
    letter-spacing: .03em;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease-out), box-shadow .25s var(--ease-out),
                background-color .2s var(--ease-out), border-color .2s var(--ease-out),
                color .2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }

.btn-primary {
    background: var(--primary);
    color: var(--bg);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--bg);
    box-shadow: 0 10px 22px -10px rgba(15, 74, 79, .55);
}

.btn-outline {
    border-color: rgba(46, 46, 46, .2);
    color: var(--ink);
    background: transparent;
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
    background: rgba(15, 74, 79, .05);
}

.btn-light { background: var(--bg); color: var(--pine); }
.btn-light:hover { background: #fff; color: var(--pine); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4); }

.btn-outline-light {
    border-color: rgba(250, 248, 243, .3);
    color: var(--bg);
    background: transparent;
}
.btn-outline-light:hover { border-color: var(--bg); color: var(--bg); background: rgba(250, 248, 243, .08); }

.btn-gold {
    background: var(--gold);
    color: var(--pine);
}
.btn-gold:hover {
    background: var(--gold-light);
    box-shadow: 0 10px 22px -10px rgba(200, 164, 90, .55);
}

.btn-pill { border-radius: var(--radius-pill); padding: 11px 22px; font-size: 13px; }
.btn-block { width: 100%; }

/* Light sweep on hover — desktop/mouse only (hover:hover) so it never gets
   stuck "on" from a tap on touch devices, which have no real hover state. */
@media (hover: hover) and (pointer: fine) {
    .btn-primary, .btn-gold {
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }
    .btn-primary::after, .btn-gold::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 45%;
        height: 100%;
        background: linear-gradient(115deg, transparent, rgba(255, 255, 255, .45), transparent);
        transform: skewX(-20deg);
        transition: left .65s var(--ease-out);
        pointer-events: none;
    }
    .btn-primary:hover::after, .btn-gold:hover::after { left: 130%; }
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 600 13px var(--font);
    letter-spacing: .02em;
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}
.text-link span { transition: transform .25s var(--ease-out); }
.text-link:hover span { transform: translateX(4px); }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--bg-muted);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

/* Soft glass once content is scrolling underneath — falls back to the
   solid champagne bg where backdrop-filter isn't supported. */
@supports (backdrop-filter: blur(12px)) {
    .site-header.is-scrolled {
        background: rgba(242, 232, 212, .82);
        backdrop-filter: blur(12px);
    }
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 40px;
}

/* ── Logo (client's icon mark + a matching text lockup — see
   app/views/partials/nav.php for why it's assembled this way) ──────── */
.site-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1;
}
.site-logo-file {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}
.site-logo-mark {
    height: 42px;
    width: auto;
}
.site-logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.site-logo-word {
    font: 600 21px/1 var(--font-display);
    letter-spacing: .02em;
    color: var(--primary);
}
.site-logo-sub {
    font: 600 9px var(--font-body);
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    white-space: nowrap;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
/* Scoped to "ul a" (not just ".main-nav a") so the CTA button that lives
   in .nav-panel-extra — a sibling of the <ul>, also inside <nav> — never
   inherits this link treatment (opacity/underline) meant for nav items. */
.main-nav ul a {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
    font: 500 13px var(--font);
    letter-spacing: .02em;
    color: var(--ink);
    opacity: .65;
    white-space: nowrap;
    transition: opacity .2s var(--ease-out);
}
.main-nav ul a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%; height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease-out);
}
.main-nav ul a:hover { opacity: 1; color: var(--ink); }
.main-nav ul a:hover::after { transform: scaleX(.4); }
.main-nav ul a[aria-current="page"] { opacity: 1; font-weight: 600; }
.main-nav ul a[aria-current="page"]::after { transform: scaleX(1); }

.nav-panel-extra { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lang-switch {
    display: flex;
    background: var(--bg-track);
    border-radius: 20px;
    padding: 3px;
}
.lang-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 16px;
    font: 600 11px var(--font);
    letter-spacing: .02em;
    color: var(--ink-55);
    transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.lang-pill:hover { color: var(--ink); }
.lang-pill.is-active { background: var(--primary); color: var(--bg); }
.lang-pill.is-active:hover { color: var(--bg); }

.lang-flag {
    width: 16px;
    height: 11px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(46, 46, 46, .12);
    flex-shrink: 0;
    transition: box-shadow .25s var(--ease-out);
}
.lang-pill.is-active .lang-flag { box-shadow: 0 0 0 1px rgba(250, 248, 243, .55); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease-swift), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }

/* Ambient gold wash drifting slowly behind the hero — z-index:-1 keeps it
   under the text/image (the hero itself has no background to hide behind). */
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -22%;
    right: -8%;
    width: 54%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 164, 90, .13), transparent 65%);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .hero::before { animation: glow-drift 26s var(--ease-out) infinite alternate; }
}
@keyframes glow-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-6%, 9%, 0); }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
    padding-block: 72px;
}

.hero-body h1 { margin-bottom: 22px; }

.hero-lead {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ink-70);
    max-width: 460px;
    margin-bottom: 34px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.hero-trust {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 500 13px var(--font);
    color: var(--ink-65);
}
.hero-trust-stars { color: var(--gold); font-size: 16px; letter-spacing: 1px; }

.hero-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
}
.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 68% 62%;
}

/* ── Service cards (home) ───────────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--surface);
    padding: 36px 30px;
    border-radius: var(--radius);
    border: 1px solid var(--border-soft);
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
                border-color .3s var(--ease-out);
}
.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 164, 90, .5);
    box-shadow: var(--shadow-card);
}

/* Cursor-tracked gold glow — JS sets --mx/--my on pointermove (main.js),
   desktop/mouse only. Pseudo-element paints beneath normal-flow children
   automatically (CSS painting order), so it never obscures the text. */
@media (hover: hover) and (pointer: fine) {
    .service-card, .blog-card {
        position: relative;
    }
    .service-card::before, .blog-card::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(200, 164, 90, .16), transparent 70%);
        opacity: 0;
        transition: opacity .4s var(--ease-out);
        pointer-events: none;
    }
    .service-card:hover::before, .blog-card:hover::before { opacity: 1; }
}

.service-num {
    font: 500 13px var(--font);
    color: var(--gold);
    margin-bottom: 16px;
    transition: letter-spacing .3s var(--ease-out);
}
.service-card:hover .service-num { letter-spacing: .2em; }

.service-card h3 { margin-bottom: 10px; }
.service-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--ink-65);
    margin: 0;
}

/* ── Why us ─────────────────────────────────────────────────────── */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-item { text-align: center; padding: 0 12px; }

.why-icon {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: transform .35s var(--ease-out), background-color .35s var(--ease-out),
                color .35s var(--ease-out);
}
.why-icon svg { width: 24px; height: 24px; }
.why-item:hover .why-icon {
    transform: translateY(-4px) scale(1.06);
    background: var(--primary);
    color: var(--bg);
}

.why-item h3 { font-size: 17px; margin-bottom: 8px; }
.why-item p {
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(46, 46, 46, .62);
    margin: 0;
}

/* ── About split (home) & philosophy (about) ────────────────────── */
.about-split,
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.panel-muted {
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 56px;
}

/* ── Reviews (third-party Google widget slot) ───────────────────── */
/* The embed's internal markup is out of our control (varies by provider),
   so this only constrains width/centering — never assume its CSS. */
.reviews-panel {
    text-align: center;
}
.reviews-panel > * {
    max-width: 100%;
}

.about-split-image,
.philosophy-image {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    overflow: hidden;
}
.about-split-image img,
.philosophy-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease-out);
}
.about-split-image:hover img,
.philosophy-image:hover img { transform: scale(1.04); }

.about-split-body p,
.philosophy-body p {
    font-size: 15.5px;
    line-height: 1.65;
    color: rgba(46, 46, 46, .68);
    margin-bottom: 24px;
}

/* ── About page intro ───────────────────────────────────────────── */
.about-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
}
.about-hero-body .lead {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-70);
    margin: 0;
}
.about-hero-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    overflow: hidden;
}
.about-hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 68% 62%;
}

/* ── Dark contact CTA (home) ────────────────────────────────────── */
.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.cta-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--paper-on-dark);
    margin-bottom: 28px;
}

.cta-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-map {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
}
.cta-map iframe {
    width: 100%; height: 100%;
    border: 0;
    display: block;
    filter: saturate(.85);
}

/* ── Banner CTA (services page) ─────────────────────────────────── */
.section-banner { padding-block: 64px; text-align: center; }
.banner-inner h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 14px;
}
.banner-sub {
    max-width: 46ch;
    margin: 0 auto 26px;
    color: var(--paper-on-dark);
    font-size: 15px;
    line-height: 1.6;
}

/* ── Process steps (Dental Tourism "how it works") ──────────────────── */
.process-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
}
/* Thin gold thread linking the steps on desktop — sits behind the number
   badges (z-index:-1), which carry a solid page-colored fill to mask it. */
@media (min-width: 1081px) {
    .process-grid::before {
        content: "";
        position: absolute;
        z-index: -1;
        top: 22px;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(90deg,
            transparent, rgba(200, 164, 90, .38) 12%,
            rgba(200, 164, 90, .38) 88%, transparent);
    }
}
.process-item { text-align: center; padding: 0 10px; }
.process-num {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid rgba(200, 164, 90, .4);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 600 14px var(--font-display);
    margin: 0 auto 18px;
    transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.process-item:hover .process-num {
    transform: translateY(-4px);
    background: var(--gold);
    color: var(--pine);
}
.process-item h3 { font-size: 16px; margin-bottom: 8px; }
.process-item p {
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--ink-65);
    margin: 0;
}

/* ── Services catalog page ──────────────────────────────────────── */
.services-page .section-head { margin-bottom: 48px; }

.catalog { display: flex; flex-direction: column; }

.catalog-row {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr 1.3fr;
    gap: 32px;
    padding: 34px 0;
    border-top: 1px solid rgba(200, 164, 90, .22);
    scroll-margin-top: 90px;
}

/* Faint category photo behind each row — image sits at low opacity with a
   muted/warm filter so it reads as texture, not a loud photo; the gradient
   on top guarantees the text (left-weighted: code + heading) always stays
   the clearest part of the row regardless of the source photo's content. */
.catalog-row::before,
.catalog-row::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.catalog-row::before {
    background-image: var(--row-img);
    background-size: cover;
    background-position: center;
    opacity: .35;
    filter: grayscale(35%) sepia(8%);
}
.catalog-row::after {
    background: linear-gradient(100deg, var(--bg) 0%, var(--bg) 36%, rgba(250, 248, 243, .5) 56%, rgba(250, 248, 243, .12) 100%);
}

.catalog-code,
.catalog-info,
.catalog-items {
    position: relative;
    z-index: 1;
}

.catalog-code { font: 500 15px var(--font-display); font-style: italic; color: var(--gold); }

.catalog-info h2 {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 10px;
}
.catalog-info p {
    font-size: 14px;
    line-height: 1.55;
    color: rgba(46, 46, 46, .75);
    margin: 0;
}

.catalog-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.catalog-items li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}
.catalog-items .dash { color: var(--gold); flex-shrink: 0; }
.catalog-items a {
    color: rgba(46, 46, 46, .88);
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out);
}
.catalog-items a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-color: currentColor;
}

/* ── Service detail ─────────────────────────────────────────────── */
.detail-cta {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-muted);
    border-radius: var(--radius);
    max-width: 460px;
}
.detail-cta h3 { margin-bottom: 8px; }
.detail-cta p { font-size: 14px; color: var(--ink-65); margin-bottom: 18px; }

/* ── Contact page ───────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.contact-blocks {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 36px;
}

.contact-label {
    font: 600 12px var(--font);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.contact-block { font-size: 15px; line-height: 1.5; }
.contact-block a { color: var(--ink); }
.contact-block a:hover { color: var(--primary-dark); }
.contact-sub { font-size: 14px; color: rgba(46, 46, 46, .6); }

.contact-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.contact-map {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    overflow: hidden;
}
.contact-map iframe {
    width: 100%; height: 100%;
    border: 0; display: block;
    filter: saturate(.85);
}

.contact-form-card {
    background: var(--bg-muted);
    border-radius: var(--radius);
    padding: 40px;
}

.form-label-heading {
    font: 600 12px var(--font);
    color: var(--ink-55);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 13px 14px;
    margin: 8px 0;
    border: 1px solid var(--border-input);
    border-radius: var(--radius);
    font: 400 14px var(--font);
    color: var(--ink);
    background: var(--surface);
    transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.form-control::placeholder { color: rgba(46, 46, 46, .45); font-family: var(--font); }
.form-control:hover:not(:focus) { border-color: rgba(46, 46, 46, .32); }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 74, 79, .14);
}
textarea.form-control { resize: vertical; min-height: 110px; }

form .btn-block { margin-top: 8px; padding-block: 14px; }

/* ── Contact form — file upload widget ─────────────────────────── */
.form-upload { margin-top: 4px; }

.form-upload-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1.5px dashed rgba(15, 74, 79, .28);
    border-radius: 6px;
    background: rgba(15, 74, 79, .03);
    cursor: pointer;
    transition: border-color .2s var(--ease-out), background .2s var(--ease-out);
}
.form-upload-label:hover,
.form-upload-input:focus + .form-upload-preview + .form-upload-label,
.form-upload-input:focus-within ~ .form-upload-label {
    border-color: var(--primary);
    background: rgba(15, 74, 79, .06);
}
.form-upload-icon { color: var(--primary); flex-shrink: 0; opacity: .7; }
.form-upload-text { display: flex; flex-direction: column; gap: 2px; }
.form-upload-main { font-size: .875rem; font-weight: 500; color: var(--ink); line-height: 1.3; }
.form-upload-hint { font-size: .75rem; color: rgba(46, 46, 46, .55); }

/* visually hidden but still focusable / accessible */
.form-upload-input {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.form-upload-preview {
    margin-top: 6px;
    font-size: .8125rem;
    color: var(--primary);
    min-height: 0;
}
.form-upload-preview:not(:empty) {
    padding: 6px 10px;
    background: rgba(15, 74, 79, .06);
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}
form .btn.is-sending { opacity: .7; pointer-events: none; }

.form-errors {
    background: rgba(178, 58, 58, .08);
    border: 1px solid rgba(178, 58, 58, .25);
    color: #8c2f2f;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 13.5px;
    margin-bottom: 14px;
}
.form-errors ul { margin: 0; padding-left: 1.2em; }

.form-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 0;
}
.form-success-badge {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 600 22px var(--font);
    margin-bottom: 18px;
    animation: pop-in .5s var(--ease-out) both;
}
.form-success-title { font: 600 20px var(--font-display); margin-bottom: 8px; }
.form-success-sub { font-size: 14px; line-height: 1.5; color: rgba(46, 46, 46, .6); }

.honeypot-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px; height: 1px;
    overflow: hidden;
}

/* ── Blog ───────────────────────────────────────────────────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
                border-color .3s var(--ease-out);
}
.blog-card:hover {
    transform: translateY(-5px);
    border-color: rgba(200, 164, 90, .5);
    box-shadow: var(--shadow-card);
}

.blog-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.blog-card:hover .blog-card-media img { transform: scale(1.05); }

.blog-card-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 8px; }
.blog-card-body .eyebrow { margin-bottom: 0; font-size: 12px; }
.blog-card-body h3 { margin: 0; font-size: 19px; }
.blog-card-body h3 a { color: var(--ink); }
.blog-card-body h3 a:hover { color: var(--primary-dark); }
.blog-card-body p { font-size: 14px; color: var(--ink-65); margin: 0; flex-grow: 1; }
.blog-card-body .text-link { font-size: 13px; }

.post-meta { color: var(--ink-55); font-size: 14px; }
.post-cover { border-radius: var(--radius); margin-bottom: 24px; }
.post-back { margin-top: 40px; }

.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 44px;
}
.pagination a, .pagination .is-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px; height: 38px;
    padding: 0 6px;
    border-radius: var(--radius);
    font: 600 13px var(--font);
    border: 1px solid var(--border);
}
.pagination .is-current { background: var(--primary); color: var(--bg); border-color: var(--primary); }
.pagination a:hover { border-color: var(--primary); }

/* ── Prose (CMS bodies) ─────────────────────────────────────────── */
.prose {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink-70);
    max-width: 70ch;
}
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose img { border-radius: var(--radius); }

/* ── Gallery ────────────────────────────────────────────────────── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.gallery-item {
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Breadcrumbs / misc ─────────────────────────────────────────── */
.breadcrumbs {
    font-size: 13px;
    color: var(--ink-55);
    margin: 0 0 22px;
}
.breadcrumbs .sep { margin: 0 6px; opacity: .5; }

.empty-state {
    padding: 48px;
    text-align: center;
    background: var(--bg-muted);
    border-radius: var(--radius);
    color: var(--ink-65);
}

/* ── FAQ accordion ──────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 4px 24px;
}
.faq-item + .faq-item { margin-top: 2px; }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    font: 600 16px var(--font-display);
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-dark); }

/* Smooth open/close where the browser supports animating to `auto`
   (interpolate-size, Chrome 129+); elsewhere it snaps open exactly as
   before — pure progressive enhancement. */
.faq-item { interpolate-size: allow-keywords; }
.faq-item::details-content {
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility .35s allow-discrete,
                block-size .35s var(--ease-out);
}
.faq-item[open]::details-content { block-size: auto; }

.faq-toggle {
    flex-shrink: 0;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--primary-tint);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 16px var(--font-body);
    transition: transform .3s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out);
}
.faq-item[open] .faq-toggle {
    transform: rotate(45deg);
    background: var(--primary);
    color: var(--bg);
}

.faq-item p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-65);
    margin: 0 0 22px;
    max-width: 68ch;
}

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer {
    border-top: 1px solid var(--border-soft);
}
.footer-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 28px var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font: 400 12.5px var(--font);
    color: rgba(46, 46, 46, .5);
}
.footer-links { display: flex; gap: 8px; align-items: center; }
.footer-links a { color: rgba(46, 46, 46, .55); }
.footer-links a:hover { color: var(--primary-dark); }
.footer-tagline {
    font: 600 11px var(--font-body);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}

.footer-credit {
    max-width: var(--container);
    margin: 0 auto;
    padding: 14px var(--gutter) 24px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    font: 400 11.5px var(--font);
    color: rgba(46, 46, 46, .42);
}
.footer-credit a {
    color: rgba(46, 46, 46, .6);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-credit a:hover { color: var(--primary-dark); }

/* ── Sticky call/WhatsApp dock (mobile) ─────────────────────────── */
/* Hidden until JS reveals it (.is-visible) — on pages with a hero, that's
   only after the hero (with its own call button) scrolls out of view, so
   the dock never overlaps it. See main.js. */
.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%) translateY(16px);
    z-index: 50;
    display: none;
    gap: 8px;
    padding: 6px;
    background: rgba(18, 54, 58, .94);
    backdrop-filter: blur(8px);
    border-radius: 32px;
    box-shadow: 0 14px 34px -12px rgba(18, 54, 58, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
    max-width: calc(100vw - 24px);
    white-space: nowrap;
}
.sticky-cta.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
.sticky-cta a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 26px;
    font: 600 13px var(--font);
    color: var(--bg);
}
.sticky-call { background: var(--primary); }
.sticky-whatsapp { background: #24a25c; }

/* ── Back to top ───────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 45;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 12px 26px -10px rgba(15, 74, 79, .5);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), background-color .2s var(--ease-out);
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dark); }
.back-to-top.is-visible:hover { transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; }

/* ── Reveal animations ──────────────────────────────────────────── */
/* JS adds html.js; without it everything stays visible. */
html.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}
html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    /* Release the compositor hint once the reveal has played. */
    will-change: auto;
}

/* Hero entrance sequence — delays staggered by JS via --seq-i */
html.js [data-hero-seq] {
    opacity: 0;
    transform: translateY(18px);
    animation: rise .7s var(--ease-out) forwards;
    animation-delay: calc(var(--seq-i, 0) * 120ms + 60ms);
}
html.js [data-hero-img] {
    opacity: 0;
    transform: scale(1.03);
    animation: image-in .9s var(--ease-out) forwards;
    animation-delay: .25s;
}

@keyframes rise {
    to { opacity: 1; transform: none; }
}
@keyframes image-in {
    to { opacity: 1; transform: none; }
}
@keyframes pop-in {
    0% { opacity: 0; transform: scale(.5); }
    70% { transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

/* ── Scroll progress indicator ──────────────────────────────────── */
/* Hairline gold thread across the very top; JS drives scaleX (main.js),
   so updates stay on the compositor. Hidden entirely without JS. */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    z-index: 60;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
    display: none;
}
html.js .scroll-progress { display: block; }

/* ── Cross-page transitions ─────────────────────────────────────── */
/* Same-origin navigations cross-fade instead of flashing white where the
   browser supports it (Chrome 126+ / Safari 18.2+); a plain load elsewhere. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: .22s; }

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        transition-duration: .01ms !important;
    }
    html.js [data-reveal],
    html.js [data-hero-seq],
    html.js [data-hero-img] {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
    :root { --gutter: 40px; }
    .header-inner { padding: 14px 28px; }
    .services-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
    .catalog-row { grid-template-columns: 56px 1fr 1.2fr; gap: 24px; }
    .panel-muted { padding: 40px; }
}

@media (max-width: 900px) {
    .header-cta { display: none; }

    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        inset: 0;
        top: 67px;
        z-index: 30;
        background: var(--bg-muted);
        padding: 32px 28px;
        transform: translateX(100%);
        transition: transform .35s var(--ease-swift);
        overflow-y: auto;
        visibility: hidden;
    }
    .main-nav.is-open { transform: translateX(0); visibility: visible; }
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    /* Items drift in one after another once the panel slides open. */
    .main-nav li,
    .nav-panel-extra {
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
    }
    .main-nav.is-open li,
    .main-nav.is-open .nav-panel-extra { opacity: 1; transform: none; }
    .main-nav.is-open li:nth-child(1) { transition-delay: .08s; }
    .main-nav.is-open li:nth-child(2) { transition-delay: .13s; }
    .main-nav.is-open li:nth-child(3) { transition-delay: .18s; }
    .main-nav.is-open li:nth-child(4) { transition-delay: .23s; }
    .main-nav.is-open li:nth-child(5) { transition-delay: .28s; }
    .main-nav.is-open .nav-panel-extra { transition-delay: .34s; }
    .main-nav ul a {
        font-size: 22px;
        font-family: var(--font-display);
        font-weight: 500;
        padding: 10px 0;
        opacity: .85;
    }
    .main-nav ul a::after { bottom: 6px; }
    .nav-panel-extra { display: block; margin-top: 28px; }

    body.nav-open { overflow: hidden; }
    /* Sticky dock outranks the nav overlay (z-index 50 vs 30) so it stays
       clickable while scrolling — but that means it must be hidden while
       the full-screen mobile menu is open, or it'd float on top of it. */
    body.nav-open .sticky-cta { opacity: 0; pointer-events: none; }

    .hero-grid,
    .about-hero-grid,
    .cta-grid,
    .contact-grid,
    .about-split,
    .philosophy-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-grid { padding-block: 48px; }
    .hero-image { order: -1; aspect-ratio: 4 / 3.4; }
    .about-hero-image { order: -1; aspect-ratio: 4 / 3.4; }

    .section { padding-block: 60px; }
    .section-head { margin-bottom: 40px; }

    .catalog-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 28px 0;
    }
    /* Single-column layout means code/heading/items all share full row
       width (no dedicated "safe" text column like on desktop), so the
       photo stays as a faint, uniform wash instead of a left-to-right
       reveal — keeps wrapped list text legible edge-to-edge. */
    .catalog-row::before { opacity: .1; }
    .catalog-row::after {
        background: linear-gradient(180deg, rgba(250, 248, 243, .8) 0%, rgba(250, 248, 243, .6) 100%);
    }

    .sticky-cta { display: flex; }
    body { padding-bottom: 76px; }

    /* Clears the centered call/WhatsApp dock (bottom:14px, ~46px tall). */
    .back-to-top { right: 16px; bottom: 92px; width: 42px; height: 42px; }
    body.nav-open .back-to-top { opacity: 0; pointer-events: none; }
}

@media (max-width: 640px) {
    :root { --gutter: 22px; }
    .header-inner { padding: 12px 18px; gap: 10px; }
    .site-logo-mark { height: 34px; }
    .site-logo-file { height: 36px; max-width: 160px; }
    .site-logo-word { font-size: 18px; }
    .site-logo-sub { display: none; }
    .lang-switch { gap: 1px; }
    .lang-pill { padding: 6px 8px; }
    .lang-pill span { display: none; }
    .lang-flag { width: 20px; height: 14px; }

    .services-grid, .blog-grid, .gallery-grid { grid-template-columns: 1fr; }
    .why-grid, .process-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

    .hero-actions .btn { width: 100%; }
    .hero-actions { gap: 12px; }

    .panel-muted { padding: 28px 22px; }
    .contact-form-card { padding: 28px 22px; }

    h1 { font-size: clamp(32px, 8.5vw, 40px); }
}
