/* ==========================================================================
   7. HERO
   ========================================================================== */
.hero {
    background: var(--champagne-light);
    padding-top: calc(var(--header-h) + 72px);
    padding-bottom: 96px;
    overflow: hidden;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.hero__eyebrow {
    display: block;
    margin-bottom: var(--space-lg);
    color: var(--terracotta-deep);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero__title {
    margin-bottom: var(--space-lg);
    color: var(--slate);
    font-size: clamp(2.5rem, 3.6vw, 3.75rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -.015em;
}
.hero__title em {
    font-family: var(--font-serif);
    font-weight: 400;
}

.hero__subtitle {
    max-width: 46ch;
    margin-bottom: var(--space-2xl);
    color: var(--charcoal);
    font-size: 1.125rem;
}

.hero__thumbs { margin-bottom: var(--space-xl); }

.thumbs-label {
    margin-bottom: var(--space-sm);
    color: var(--slate);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.thumbs-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.thumb {
    width: 84px;
    height: 84px;
    overflow: hidden;
    border: 3px solid var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.hero__financing {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--muted);
    font-size: .9375rem;
}
.hero__financing strong { color: var(--warm-brown); font-weight: 700; }

/* Hero media — the backing plate stays inside the container bounds */
.hero__media {
    position: relative;
    padding: 0 0 var(--space-2xl) 24px;
}
.hero__media::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 0;
    width: calc(100% - 24px);
    height: calc(100% - 26px - var(--space-2xl));
    background: var(--slate);
    border-radius: var(--radius);
}
.hero__media img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   9. ABOUT
   ========================================================================== */
.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 72px;
    align-items: center;
}

.about__card {
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.about__card h2 {
    margin-bottom: var(--space-md);
    color: var(--slate);
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 300;
    line-height: 1.25;
}
.about__card h2 em {
    font-family: var(--font-serif);
    color: var(--warm-brown);
}
.about__intro {
    margin-bottom: var(--space-lg);
    color: var(--charcoal);
    font-size: .9375rem;
}

.credentials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm) var(--space-lg);
}
.credential {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding-block: var(--space-xs);
}
.credential svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 4px;
    stroke: var(--terracotta-deep);
    fill: none;
    stroke-width: 2;
}
.credential span {
    color: var(--charcoal);
    font-size: .8125rem;
    line-height: 1.5;
}

.about__media {
    position: relative;
    padding: 0 0 0 24px;
}
.about__media::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 0;
    width: calc(100% - 24px);
    height: calc(100% - 26px);
    background: var(--champagne);
    border-radius: var(--radius);
}
.about__media img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 620px;
    border-radius: var(--radius);
    object-fit: cover;
    object-position: center 20%;
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   10. PROCEDURE CATEGORIES
   ========================================================================== */
.procedures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.procedure-card {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 3px solid var(--champagne);
    border-radius: var(--radius);
    transition: border-color var(--transition-base),
                transform var(--transition-base),
                box-shadow var(--transition-base);
}
.procedure-card:hover {
    border-color: var(--warm-brown);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.procedure-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.procedure-card:hover img { transform: scale(1.05); }

/* Per-card framing so the landscape source crops on the subject, not the backdrop */
/* Per-card crop, chosen in the admin rather than tied to a named procedure. */
.procedure-card--focus-left img       { object-position: 26% center; }
.procedure-card--focus-mid-left img   { object-position: 42% center; }
.procedure-card--focus-center img     { object-position: 50% center; }
.procedure-card--focus-mid-right img  { object-position: 68% center; }
.procedure-card--focus-right img      { object-position: 84% center; }
.procedure-card--focus-top img        { object-position: center 20%; }

.procedure-card__overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
}
.procedure-card__overlay h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 600;
}
.procedure-card__overlay svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    stroke: var(--white);
    fill: none;
    stroke-width: 2;
    transition: transform var(--transition-base);
}
.procedure-card:hover .procedure-card__overlay svg { transform: translateX(5px); }

/* Before / after shown side by side.
   This replaced a drag-to-compare slider at the client's request: the two
   photos are now both visible at once, so nothing is hidden behind an
   interaction and the pair prints and screenshots correctly. */
.ba-shot {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--champagne-light);
}

.ba-shot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* per-card "Photo Focus": keeps an off-centre subject (a side view) in the square crop */
.ba-pair--focus-left .ba-shot img { object-position: 25% 50%; }
.ba-pair--focus-right .ba-shot img { object-position: 75% 50%; }

/* the label sits on the photo it describes, rather than one pair of labels
   floating over a single combined frame as the slider had */
.ba-label {
    position: absolute;
    left: var(--space-md);
    bottom: var(--space-md);
    padding: 6px 14px;
    background: rgba(0, 0, 0, .72);
    border-radius: 4px;
    color: var(--white);
    /* about twice the old 11px: the client could not find the words at 11px */
    font-size: clamp(.875rem, .75rem + .45vw, 1.125rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Each tile opens its gallery category, so it reads and behaves as a link. */
.gallery-item--link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.gallery-item--link .gallery-item__caption { padding-bottom: 0; }

.gallery-item__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: var(--space-sm) var(--space-lg) var(--space-md);
    color: var(--warm-brown);
    font-size: .875rem;
    font-weight: 600;
}

.gallery-item__more svg { width: 16px; height: 16px; transition: transform var(--transition-base); }

.gallery-item--link:hover,
.gallery-item--link:focus-visible { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

.gallery-item--link:hover .gallery-item__more svg,
.gallery-item--link:focus-visible .gallery-item__more svg { transform: translateX(3px); }

.gallery-item--link:focus-visible { outline: 2px solid var(--warm-brown); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
    .gallery-item--link,
    .gallery-item__more svg { transition: none; }
    .gallery-item--link:hover,
    .gallery-item--link:focus-visible { transform: none; }
}

/* The same closing call to action, but inside a card (About, FAQ) rather than
   under a full-width section — so it follows the card's own left alignment. */
.card-cta {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--champagne);
}

/* ==========================================================================
   12. PROCESS
   ========================================================================== */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.process-step {
    position: relative;
    padding: var(--space-2xl) var(--space-lg);
    background: var(--white);
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.process-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: calc(var(--space-lg) * -1);
    width: var(--space-lg);
    height: 2px;
    background: var(--white);
    opacity: .7;
    transform: translateY(-50%);
}
.process-step:last-child::after { display: none; }

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto var(--space-lg);
    background: var(--champagne);
    border-radius: 50%;
    color: var(--warm-brown);
    font-size: 1.25rem;
    font-weight: 700;
}

.step-title {
    margin-bottom: var(--space-sm);
    color: var(--slate);
    font-size: 1.125rem;
    font-weight: 600;
}

.step-desc {
    color: var(--muted);
    font-size: .875rem;
    line-height: 1.6;
}

/* ==========================================================================
   13. PROMO
   ========================================================================== */
.promo__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
}

.promo__media {
    position: relative;
    padding: 0 24px 0 0;
}
.promo__media::before {
    content: '';
    position: absolute;
    top: 26px;
    right: 0;
    width: calc(100% - 24px);
    height: calc(100% - 26px);
    background: var(--blush);
    border-radius: var(--radius);
}
.promo__media img {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

/* A cut-out subject on a transparent background sits directly on the section
   colour, so the framed treatment above — offset block, rounded corners,
   shadow — would just draw a rectangle around empty space. */
.promo__media--cutout { padding: 0; }
.promo__media--cutout::before { display: none; }
.promo__media--cutout img {
    aspect-ratio: 1 / 1;
    border-radius: 0;
    box-shadow: none;
    object-fit: contain;
}

/* Offer text set over the photo rather than baked into it, so a new month is a
   copy change in the admin and not a newly designed JPEG. */
.promo__stamp {
    position: absolute;
    left: 0;
    bottom: 30%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    pointer-events: none;
}

.promo__stamp-line {
    padding: 4px 18px;
    background: var(--white);
    border-top: 4px solid var(--charcoal);
    border-bottom: 4px solid var(--charcoal);
    color: var(--charcoal);
    font-size: clamp(1.25rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
}

.promo__card {
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.promo__badge {
    display: inline-block;
    margin-bottom: var(--space-lg);
    padding: 6px 16px;
    background: var(--terracotta);
    border-radius: var(--radius-pill);
    color: var(--white);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.promo__card h2 {
    margin-bottom: var(--space-md);
    color: var(--slate);
    font-size: clamp(1.75rem, 2.4vw, 2.25rem);
    font-weight: 300;
    line-height: 1.25;
}
.promo__card h2 strong { color: var(--warm-brown); font-weight: 700; }

.promo__card p {
    margin-bottom: var(--space-xl);
    color: var(--charcoal);
    font-size: .9375rem;
}

/* Section 14, the Elfsight reviews widget, now lives in base.css — the inner
   pages render it too and home.css only loads on the front page. */

/* ==========================================================================
   15. FAQ
   ========================================================================== */
.faq__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--space-4xl);
    align-items: stretch;
}

.faq__media { position: relative; padding: 0 0 20px 20px; }
.faq__media::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    background: var(--warm-brown);
    border-radius: var(--radius);
}
.faq__media img {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.faq__card {
    padding: var(--space-2xl);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.faq__card .section-header { margin-bottom: var(--space-lg); }

/* ==========================================================================
   17. MAP / LOCATION — card sits on the container's left column
   ========================================================================== */
.map-section { position: relative; }

.map-header {
    background: var(--slate);
    padding-block: var(--space-2xl);
}
.map-title {
    color: var(--white);
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    font-weight: 400;
    text-align: center;
}

.map-body { position: relative; }

.map-canvas {
    width: 100%;
    height: 560px;
    background: var(--champagne-light);
}
.map-canvas iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.map-overlay .container {
    display: flex;
    justify-content: flex-start;
}

.map-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}
.map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .78);
    font-size: .8125rem;
}
.map-link:hover { color: var(--white); }
.map-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Communities */
.communities { padding-block: var(--space-2xl); text-align: center; }
.communities h2 {
    margin-bottom: var(--space-lg);
    color: var(--slate);
    font-size: 1.125rem;
    font-weight: 600;
}
.communities-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}
.community-tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: .5rem 1.25rem;
    background: var(--white);
    border: 1px solid var(--champagne);
    border-radius: var(--radius-pill);
    color: var(--charcoal);
    font-size: .875rem;
    transition: background var(--transition-base), border-color var(--transition-base);
}
.community-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--terracotta);
    border-radius: 50%;
}
.community-tag:hover {
    background: var(--champagne-light);
    border-color: var(--warm-brown);
}
a.community-tag { color: var(--charcoal); }
a.community-tag:hover { color: var(--warm-brown); }

/* ==========================================================================
   RESPONSIVE
   These sit here rather than in base.css on purpose: home.css is enqueued
   after base.css, so a front-page override placed there would lose to the
   base rule it is meant to modify.
   ========================================================================== */

@media (max-width: 1180px) {.hero__grid, .about__grid, .promo__grid { gap: 48px; }
}

@media (max-width: 1024px) {.hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; }.hero__grid { grid-template-columns: 1fr; gap: var(--space-3xl); }.hero__media { order: -1; max-width: 620px; margin-inline: auto; }.about__grid, .promo__grid { grid-template-columns: 1fr; }.about__media, .promo__media { order: -1; max-width: 620px; margin-inline: auto; }.about__media img { aspect-ratio: 4 / 3; }.procedures-grid { grid-template-columns: repeat(2, 1fr); }.process-steps { grid-template-columns: repeat(2, 1fr); }.process-step::after { display: none; }.faq__grid { grid-template-columns: 1fr; gap: var(--space-2xl); }.faq__media { max-width: 620px; margin-inline: auto; }.faq__media img { min-height: 320px; aspect-ratio: 3 / 2; }.map-overlay {
    position: static;
    display: block;
    padding-block: var(--space-2xl);
    background: var(--off-white);
    }.map-canvas { height: 420px; }
}


@media (max-width: 720px) {.thumb { width: 72px; height: 72px; }.about__card, .promo__card, .faq__card { padding: var(--space-xl); }.credentials { grid-template-columns: 1fr; }.procedures-grid, .process-steps { grid-template-columns: 1fr; }
}


@media (max-width: 400px) {.hero__title { font-size: 2rem; }.thumb { width: 64px; height: 64px; }
}
