/*
Theme Name:        Manoir
Theme URI:         https://www.manoirlavilledurand.com
Author:            Manoir La Ville Durand
Description:       Custom lightweight theme porting the Manoir La Ville Durand site (Squarespace) to WordPress. Design-token driven, zero framework, performance-first.
Version:           1.0.0
Requires at least: 6.4
Tested up to:      6.7
Requires PHP:      8.1
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       manoir
Tags:              custom-theme, one-column, custom-menu, featured-images, translation-ready
*/

/* =========================================================================
   1. DESIGN TOKENS
   Source: design research on manoirlavilledurand.com (measured values).
   Every component below consumes these variables — change here, not inline.
   ========================================================================= */

:root {
    /* Palette — adapted from the "Héritage" redesign concept: warm cream
       page background, deep forest green as the primary dark/accent band,
       a muted antique-gold as the secondary accent (overlines, underlines,
       rare solid-fill buttons on dark sections). */
    --color-bg:              #f5f1e8;  /* cream page background */
    --color-ink:             #202b23;  /* deep green-charcoal text */
    --color-surface:         #fdfbf5;  /* warmer-white cards / alt sections */
    --color-surface-alt:     #f5f1e8;
    --color-accent:          #24402e;  /* forest green — primary buttons, dark bands */
    --color-accent-wash:     rgba(36, 64, 46, 0.12);   /* hairline borders on cream */
    --color-accent-2:        #a2814f;  /* antique gold — overlines, underlined links */
    --color-accent-3:        #c9ab77;  /* lighter gold — solid buttons on dark green */
    --color-on-dark:         #f0ead9;  /* warm cream text on the green bands */
    --color-footer-bg:       #1a2a1f;  /* darkest green — footer */
    --overlay-texture:       rgba(245, 241, 232, 0.63); /* cream wash over bg photos */
    /* Dark at the very top too (not just the bottom) — the fixed transparent
       header sits directly over this image, and a bright-sky photo would
       otherwise wash out the nav text with nothing behind it. */
    --overlay-hero:          linear-gradient(180deg, rgba(18,24,18,.42) 0%, rgba(18,24,18,0) 20%, rgba(18,24,18,0) 42%, rgba(18,24,18,.55) 88%, rgba(18,24,18,0) 100%);

    /* Typography — self-hosted variable fonts (assets/css/fonts.css) with a
       matching system-serif/sans fallback stack so a fontless deployment
       still reads as the same family of typefaces. */
    --font-display:          "Cormorant Garamond", "Iowan Old Style", Georgia, serif;             /* hero + italic quotes */
    --font-heading:          "Cormorant Garamond", "Iowan Old Style", Georgia, serif;              /* section titles, card titles, stat numerals */
    --font-body:             "EB Garamond", Georgia, "Iowan Old Style", serif;                     /* body copy */
    --font-button:           "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;     /* tracked uppercase buttons */
    --font-blog:             "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;     /* tracked uppercase meta/dates */
    --font-meta:             "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;     /* nav, overlines, labels */

    --text-h1:               clamp(1.9rem, 3.4vw, 2.9rem);     /* italic serif hero title */
    --text-h1-lh:            1.12;
    --text-section-title:    clamp(1.8rem, 3vw, 2.75rem);      /* serif section h2, weight 500, not uppercase */
    --text-mega:             clamp(3.4rem, 7.4vw, 6.6rem);
    --text-card-title:       1.55rem;                          /* 25px serif card h3 */
    --text-h2:               1.15rem;
    --text-body:             1rem;                             /* 16px EB Garamond body */
    --text-small:            0.8rem;
    --text-button:           0.72rem;                          /* small tracked-caps Jost buttons */
    --tracking-heading:      0;
    --heading-weight:        500;
    --body-weight:           400;

    /* Spacing rhythm */
    --section-pad-lg:        6.6vw;   /* 95px @1440 — standard section padding */
    --section-pad-md:        3.3vw;   /* 47.5px — compact sections */
    --content-max:           1432px;  /* near full-bleed outer shell */
    --content-narrow:        1300px;  /* inner grids */
    --content-prose:         55ch;    /* editorial text column */
    --grid-gap:              30px;
    --card-pad:              25px 19px;

    /* Components — Héritage reads as flat and architectural: no pill
       buttons, no curved section dividers, just hairline borders and
       square corners throughout. */
    --btn-radius-pill:       0;
    --btn-radius-solid:      0;
    --btn-radius-fixed:      0;
    --btn-pad:               14px 30px;
    --img-radius:            0;       /* images are ALWAYS square-cornered */
    --header-h:              128px;
    --curve-h:               0;       /* Héritage uses hairline borders, not curved dividers */

    /* Motion */
    --anim-duration:         0.6s;
    --anim-ease:             ease;
    --anim-delay:            0.15s;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    /* Decorative full-bleed shapes (the 110%-wide curve dividers) may extend
       past the viewport edge; clip them instead of growing scrollWidth and
       spawning a horizontal scrollbar. */
    overflow-x: clip;
    background-color: var(--color-bg);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-weight: var(--body-weight);
    font-size: var(--text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Media defaults — square corners everywhere, never overflow.
   iframes are deliberately NOT height:auto — an iframe has no intrinsic
   aspect ratio, so height:auto collapses embeds (e.g. the 900px-tall
   Reservit booking engine) to the 150px default. Their height attribute
   or inline style must win. */
img,
svg,
video {
    max-width: 100%;
    height: auto;
    border-radius: var(--img-radius);
}

img {
    display: block;
}

iframe {
    max-width: 100%;
    border: 0;
    border-radius: var(--img-radius);
}

figure {
    margin: 0;
}

/* Text elements */
p {
    margin: 0 0 1em;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: opacity var(--anim-duration) var(--anim-ease);
}

a:hover {
    opacity: 0.75;
}

ul,
ol {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

hr {
    border: 0;
    border-top: 0.8px solid currentColor;
    opacity: 0.4;
    margin: 2rem 0;
}

blockquote {
    margin: 0 0 1em;
    padding-left: 1.2em;
    border-left: 0.8px solid var(--color-accent-2);
    font-style: italic;
}

table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1em;
}

th,
td {
    border: 0.8px solid currentColor;
    padding: 0.5em 0.75em;
    text-align: left;
}

::selection {
    background: var(--color-accent);
    color: var(--color-on-dark);
}

/* Accessibility helpers */
.screen-reader-text {
    position: absolute !important;
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 999;
    background: var(--color-ink);
    color: var(--color-on-dark);
    padding: 0.75em 1.25em;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

:focus-visible {
    outline: 2px solid var(--color-accent-2);
    outline-offset: 2px;
}

/* =========================================================================
   3. TYPOGRAPHY SCALE
   H1 = hero hairline serif, sentence case. H3-style section titles =
   Parnaso uppercase w200 lh 1.0. H2 = Lexend 600 labels.
   ========================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.6em;
    letter-spacing: var(--tracking-heading);
}

h1,
.hero-title {
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: var(--heading-weight);
    line-height: var(--text-h1-lh);
}

/* Section titles: source site uses h3 for these; templates may use any
   heading level with this class for correct document outline.
   Héritage reads section titles as elegant sentence-case serif, never
   shouted in caps — the tracked uppercase treatment lives on the small
   eyebrow label above it (.section-title--eyebrow) instead. */
h3,
.section-title {
    font-family: var(--font-heading);
    font-size: var(--text-section-title);
    font-weight: var(--heading-weight);
    line-height: 1.18;
}

/* The one true "overline + headline" pair on the front page (Bienvenue en
   Bretagne): small tracked Jost label in the gold accent, sitting above the
   real (serif, sentence-case) headline. Everywhere else .section-title is
   used standalone as the section's own heading and keeps the serif style
   above — only add --eyebrow when a class="section-title" is genuinely the
   small label above a separate heading element. */
.section-title--eyebrow {
    font-family: var(--font-meta);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--color-accent-2);
}

h2,
.label-title {
    font-family: var(--font-body);
    font-size: var(--text-h2);
    font-weight: 600;
    line-height: 1.16;
}

h4,
.card-title {
    font-family: var(--font-heading);
    font-size: var(--text-card-title);
    font-weight: var(--heading-weight);
    line-height: 1.2;
}

.mega-title {
    font-family: var(--font-heading);
    font-size: var(--text-mega);
    font-weight: var(--heading-weight);
    line-height: 1.05;
}

/* Heading accent spans, e.g. "BIENVENUE EN BRETAGNE" (sage),
   "Les hébergements" (taupe), "Suivez-nous" (terracotta) */
.accent-sage       { color: var(--color-accent); }
.accent-taupe      { color: var(--color-accent-2); }
.accent-terracotta { color: var(--color-accent-3); }

.text-meta {
    font-family: var(--font-meta);
    font-size: 0.875rem;
    font-weight: 400;
}

.text-blog {
    font-family: var(--font-blog);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.prose {
    max-width: var(--content-prose);
}

.prose--center {
    margin-inline: auto;
    text-align: center;
}

/* =========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================= */

.container {
    width: 100%;
    max-width: var(--content-narrow);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}

.container--wide {
    max-width: var(--content-max);
}

.section {
    padding-block: var(--section-pad-lg);
}

.section--compact {
    padding-block: var(--section-pad-md);
}

/* Section themes — mirror Squarespace's per-section themes.
   Each sets background-color on itself so the curve divider can inherit it. */
.section--dark {
    background-color: var(--color-ink);
    color: var(--color-on-dark);
}

.section--wash {
    background-color: var(--color-accent-wash);
}

/* Texture wash: background photo + cream overlay at 0.63 —
   set the photo via inline style="--texture-img:url(...)" on the section. */
.section--texture {
    position: relative;
    background-image: var(--texture-img, none);
    background-size: cover;
    background-position: center;
}

.section--texture::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-texture);
}

.section--texture > * {
    position: relative;
}

/* Signature convex curved bottom edge (Squarespace 7.1 arch divider).
   The section's own background bulges down over the next section.
   Follow with .section--after-curve on the next section for breathing room. */
.section--curve-bottom {
    position: relative;
    z-index: 1;
}

.section--curve-bottom::after {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    left: -5%;
    width: 110%;
    height: var(--curve-h);
    background-color: inherit;
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.section--after-curve {
    padding-top: calc(var(--section-pad-lg) + var(--curve-h));
}

/* Grids */
.grid {
    display: grid;
    gap: var(--grid-gap);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--2-wide {
    grid-template-columns: repeat(2, 1fr);
    gap: 55px; /* boutique 2-up spacing */
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

/* Vertical rhythm between a heading block and its content */
.section-head {
    margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.section-head--center {
    text-align: center;
}

/* =========================================================================
   5. ORNAMENTS
   ========================================================================= */

/* Diamond divider: thin line — solid diamond — thin line.
   Markup: <div class="ornament" aria-hidden="true"><span class="ornament__diamond"></span></div> */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.5rem auto;
    max-width: 420px;
}

.ornament::before,
.ornament::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
}

.ornament__diamond {
    width: clamp(14px, 2.8vw, 26px);
    height: clamp(14px, 2.8vw, 26px);
    background: currentColor;
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* =========================================================================
   6. BUTTONS
   Three variants, all Francesco small-caps 14px w300, padding 14px 18px.
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--font-button);
    font-size: var(--text-button);
    font-weight: 300;
    font-variant: small-caps;
    letter-spacing: 0.02em;
    line-height: 1;
    padding: var(--btn-pad);
    text-decoration: none;
    cursor: pointer;
    transition: opacity var(--anim-duration) var(--anim-ease);
    -webkit-appearance: none;
    appearance: none;
}

.btn:hover {
    opacity: 0.75;
}

/* (1) Outline pill — cream on dark, ink on light, sage for commerce */
.btn--pill {
    background: transparent;
    color: currentColor;
    border: 0.8px solid currentColor;
    border-radius: var(--btn-radius-pill);
}

.btn--pill-accent {
    color: var(--color-accent);
    border-color: var(--color-accent);
}

/* Over-image variant ("Découvrez la galerie") */
.btn--pill-scrim {
    color: var(--color-on-dark);
    border-color: var(--color-on-dark);
    background: rgba(0, 0, 0, 0.35);
}

/* (2) Solid sage — header RÉSERVER, "DÉCOUVRIR LE MANOIR" */
.btn--solid {
    background: var(--color-accent);
    color: var(--color-on-dark);
    border: 0;
    border-radius: var(--btn-radius-solid);
}

/* (3) Fixed dark — floating "Réserver au manoir" */
.btn--dark {
    background: var(--color-ink);
    color: var(--color-surface-alt);
    border: 0;
    border-radius: var(--btn-radius-fixed);
    font-size: 0.9625rem; /* 15.4px */
}

.btn .btn__icon {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 1.5;
}

/* Floating site-wide booking CTA */
.floating-cta {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 90;
    box-shadow: 0 2px 12px rgba(44, 58, 69, 0.25);
}

/* Carousel arrows: circular */
.arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: var(--color-accent);
    color: var(--color-surface);
    transition: opacity var(--anim-duration) var(--anim-ease);
}

.arrow-btn:hover {
    opacity: 0.8;
}

.arrow-btn--scrim {
    background: rgba(0, 0, 0, 0.35);
    color: var(--color-on-dark);
}

.arrow-btn svg {
    width: 1.4rem;
    height: 1.4rem;
    stroke-width: 1.25;
}

/* =========================================================================
   7. CARDS
   Flat, sharp-cornered, no drop shadows.
   ========================================================================= */

/* Testimonial card: pure white, centered */
.card--testimonial {
    background: var(--color-surface);
    padding: var(--card-pad);
    text-align: center;
}

.card--testimonial .card__name {
    font-family: var(--font-heading);
    font-size: 1.4rem; /* 22.4px */
    font-weight: var(--heading-weight);
    margin-bottom: 0.75em;
}

/* Experience carousel card: cream card, inset image frame */
.card--framed {
    background: var(--color-surface);
    padding: 14px;
}

.card--framed img {
    width: 100%;
    object-fit: cover;
}

/* Listing card (hébergements, blog, boutique): borderless —
   bare square image + stacked text below */
.card--listing {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.card--listing img {
    width: 100%;
    object-fit: cover;
}

.card--listing .card__title {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--text-h2);
    margin: 0;
}

.card--listing .card__title a {
    text-decoration: none;
}

.card--listing .card__meta {
    font-family: var(--font-meta);
    font-size: 0.875rem;
    padding-bottom: 0.6rem;
    border-bottom: 0.8px solid currentColor;
}

/* Blog card titles use Familjen Grotesk */
.card--blog .card__title {
    font-family: var(--font-blog);
    font-size: 1.125rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 400;
}

/* =========================================================================
   8. FORMS
   White pill inputs on cream, no visible border.
   ========================================================================= */

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 400;
}

.form-field .required-note {
    font-weight: 300;
    opacity: 0.7;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="number"],
select,
textarea {
    width: 100%;
    background: var(--color-surface);
    border: 0;
    border-radius: 24px;
    padding: 0.75em 1.1em;
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--body-weight);
    color: var(--color-ink);
}

textarea {
    border-radius: 16px;
    min-height: 8em;
    resize: vertical;
}

input[type="checkbox"] {
    accent-color: var(--color-accent);
    width: 1.1em;
    height: 1.1em;
}

/* Accordion ("Quelques infos", "Par le train"…) via native <details> */
details.accordion {
    border-top: 0.8px solid currentColor;
    border-bottom: 0.8px solid currentColor;
    padding: 0.75em 0;
}

details.accordion + details.accordion {
    border-top: 0;
}

details.accordion summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 400;
}

details.accordion summary::-webkit-details-marker {
    display: none;
}

details.accordion summary::after {
    content: "+";
    font-size: 1.2em;
    font-weight: 300;
}

details.accordion[open] summary::after {
    content: "\2212"; /* minus sign */
}

details.accordion > *:not(summary) {
    margin-top: 0.75em;
}

/* =========================================================================
   9. HERO PATTERNS
   ========================================================================= */

/* (1) Full-viewport photo hero (homepage) */
.hero {
    position: relative;
    min-height: min(100vh, 820px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: calc(var(--header-h) + 2rem) 1.5rem 14vh;
    color: var(--color-on-dark);
    background-color: var(--color-ink);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-hero);
    z-index: -1;
}

.hero > img.hero__media,
.hero > video.hero__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero .hero-title {
    max-width: 22ch;
    margin-bottom: 1.75rem;
}

/* (2) Interior navy band hero */
.hero-band {
    background-color: var(--color-ink);
    color: var(--color-on-dark);
    text-align: center;
    padding: calc(var(--header-h) + clamp(3rem, 6vw, 6rem)) 1.5rem clamp(3rem, 6vw, 6rem);
}

.hero-band .hero-band__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.8vw, 2.5rem);
    font-weight: var(--heading-weight);
    line-height: 1.0;
    letter-spacing: var(--tracking-heading);
    margin: 0.5em 0 0;
}

/* Full-bleed photo banner with centered title */
.photo-band {
    position: relative;
    min-height: clamp(300px, 40vw, 550px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-on-dark);
    background-color: var(--color-ink);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.photo-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--overlay-hero);
    z-index: -1;
}

/* =========================================================================
   10. SITE HEADER
   Fixed, transparent over the hero; solid navy once scrolled or when the
   mobile overlay is open. Pages open with a dark hero band site-wide, so
   the default nav ink is cream.
   ========================================================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    color: var(--color-on-dark);
    background: transparent;
    transition: background-color 0.3s var(--anim-ease);
}

.site-header.is-scrolled,
body.nav-open .site-header {
    background-color: var(--color-ink);
}

.site-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Brand */
.site-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-brand img {
    max-height: calc(var(--header-h) - 24px);
    width: auto;
}

.site-brand__name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: var(--heading-weight);
    letter-spacing: 0.04em;
    line-height: 1.1;
}

/* Nav — desktop: inline row; mobile: full-screen navy overlay */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__list a {
    display: block;
    font-family: var(--font-meta);
    font-size: 0.72rem; /* ~11.5px */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    text-decoration: none;
    padding: 5px 10px;
    white-space: nowrap;
}

/* Dropdown folders */
.site-nav__list li {
    position: relative;
}

.site-nav__list .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0.45em;
    height: 0.45em;
    margin-left: 0.45em;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.site-nav__list .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--color-ink);
    color: var(--color-on-dark);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s var(--anim-ease), transform 0.25s var(--anim-ease), visibility 0.25s;
}

/* Open on hover/focus (pointer) or on .is-expanded (nav.js disclosure toggle
   for touch and assistive tech). */
.site-nav__list li:hover > .sub-menu,
.site-nav__list li:focus-within > .sub-menu,
.site-nav__list li.is-expanded > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__list .sub-menu a {
    padding: 0.6rem 1.25rem;
    font-weight: 200;
}

/* Header actions: social + booking CTA */
.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.social-link {
    display: inline-flex;
    color: inherit;
}

.social-link svg {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 1.5;
}

/* Hamburger — two thin lines */
.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.75rem 0.25rem;
    color: inherit;
}

.nav-toggle__bar {
    display: block;
    width: 28px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.3s var(--anim-ease);
}

.nav-toggle__bar + .nav-toggle__bar {
    margin-top: 8px;
}

body.nav-open .nav-toggle__bar:first-child {
    transform: translateY(4.75px) rotate(45deg);
}

body.nav-open .nav-toggle__bar:last-child {
    transform: translateY(-4.75px) rotate(-45deg);
}

/* =========================================================================
   11. SITE FOOTER
   Sage wash band, 4 columns.
   ========================================================================= */

.site-footer {
    background-color: var(--color-accent-wash);
    padding-block: var(--section-pad-lg) var(--section-pad-md);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--grid-gap);
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.site-footer__heading {
    font-family: var(--font-meta);
    font-size: 0.68rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--color-accent-3);
    margin-bottom: 1.1rem;
}

.site-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__list li {
    margin-bottom: 0.6rem;
}

.site-footer__list a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-size: 1rem;
}

.site-footer__brand img {
    max-width: 170px;
}

.site-footer__brand .site-brand__name {
    font-size: 1.3rem;
    text-transform: uppercase;
}

.site-footer__social {
    display: flex;
    gap: 0.9rem;
    margin-top: 0.5rem;
}

.site-footer__partners {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

.site-footer__legal {
    border-top: 0.8px solid rgba(44, 58, 69, 0.25);
    padding-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.8125rem;
}

.site-footer__legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =========================================================================
   12. CAROUSEL PRIMITIVE
   CSS scroll-snap, no JS library. Arrows optional per template.
   ========================================================================= */

.carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(85%, 340px);
    gap: clamp(1.25rem, 2.5vw, 2.2rem);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel > * {
    scroll-snap-align: start;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* =========================================================================
   13. SCROLL-IN ANIMATIONS
   Applied only when JS is running (body.js) — content is always visible
   without JS. Mirrors Squarespace fade/slide entrances.
   ========================================================================= */

body.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--anim-duration) var(--anim-ease) var(--anim-delay),
        transform var(--anim-duration) var(--anim-ease) var(--anim-delay);
}

body.js .reveal--fade {
    transform: none;
}

body.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================================
   13b. PORTED PHOTO GALLERIES
   The Squarespace port emits photo galleries as
   <div class="gallery" data-layout="grid" data-columns="N"><figure>…</figure>…</div>
   (both in hand-ported page HTML and via the ported-content normalizer in
   inc/ported-content.php). This implements that contract: a responsive
   N-column grid of uniform, cover-cropped tiles instead of a stack of
   full-width images.
   ========================================================================= */

.gallery[data-layout="grid"] {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    margin: 2rem 0;
}

.gallery[data-layout="grid"][data-columns="2"] { grid-template-columns: repeat(2, 1fr); }
.gallery[data-layout="grid"][data-columns="4"] { grid-template-columns: repeat(4, 1fr); }

.gallery[data-layout="grid"] figure {
    margin: 0;
}

/* Uniform tiles: cover-crop to a landscape ratio so portrait shots don't
   blow the row height out. */
.gallery[data-layout="grid"] img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 1023px) {
    .gallery[data-layout="grid"],
    .gallery[data-layout="grid"][data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery[data-layout="grid"],
    .gallery[data-layout="grid"][data-columns="2"],
    .gallery[data-layout="grid"][data-columns="4"] {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   14. WORDPRESS CORE COMPAT
   ========================================================================= */

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-inline: auto;
}

.alignwide {
    max-width: var(--content-max);
    margin-inline: auto;
}

.alignfull {
    width: 100%;
    max-width: none;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: var(--text-small);
    opacity: 0.8;
    margin-top: 0.4rem;
}

.sticky {
    /* required class — no special styling by design */
}

.gallery-caption {
    font-size: var(--text-small);
}

.bypostauthor {
    /* required class */
}

/* Pagination */
.pagination,
.page-numbers {
    font-family: var(--font-button);
    font-variant: small-caps;
}

.pagination .nav-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 2.5rem;
}

.page-numbers {
    padding: 0.5em 0.9em;
    border: 0.8px solid currentColor;
    border-radius: var(--btn-radius-pill);
    text-decoration: none;
}

.page-numbers.current {
    background: var(--color-ink);
    color: var(--color-on-dark);
    border-color: var(--color-ink);
}

/* =========================================================================
   15. UTILITY PAGES (404 / search)
   ========================================================================= */

.utility-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.search-form {
    display: flex;
    gap: 0.75rem;
    max-width: 480px;
    margin-inline: auto;
}

.search-form input[type="search"] {
    flex: 1;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 720px;
    margin-inline: auto;
}

.search-results-list li {
    padding: 1.5rem 0;
    border-bottom: 0.8px solid rgba(44, 58, 69, 0.2);
}

.search-results-list .entry-title {
    font-family: var(--font-blog);
    font-size: 1.125rem;
    margin-bottom: 0.35rem;
}

.search-results-list .entry-title a {
    text-decoration: none;
}

/* =========================================================================
   16. RESPONSIVE BREAKPOINTS
   Nav collapses to burger below 1100px; content stacks below 767px.
   ========================================================================= */

@media (max-width: 1099px) {
    .nav-toggle {
        display: block;
    }

    /* Full-screen navy overlay menu */
    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 95;
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        background: var(--color-ink);
        color: var(--color-on-dark);
        padding: calc(var(--header-h) + 1rem) 1.5rem 2rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s var(--anim-ease), visibility 0.3s;
        overflow-y: auto;
    }

    body.nav-open .site-nav {
        opacity: 1;
        visibility: visible;
    }

    body.nav-open {
        overflow: hidden;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .site-nav__list a {
        font-size: 1.15rem;
        font-weight: 200;
        white-space: normal;
    }

    /* Sub-menus become inline expandable blocks */
    .site-nav__list .sub-menu {
        position: static;
        min-width: 0;
        background: transparent;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0;
    }

    .site-nav__list .menu-item-has-children.is-expanded > .sub-menu {
        display: block;
    }

    .site-nav__list .menu-item-has-children > a::after {
        transform: rotate(-45deg); /* chevron pointing right, like source "›" */
        transition: transform 0.25s var(--anim-ease);
    }

    .site-nav__list .menu-item-has-children.is-expanded > a::after {
        transform: rotate(45deg);
    }

    .site-nav__actions {
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        max-width: 320px;
    }

    .site-nav__actions .btn--solid {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .grid--4 {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 766px) {
    :root {
        --header-h: 72px;
        --curve-h: 10vw;
        --section-pad-lg: 12vw;
        --section-pad-md: 7vw;
    }

    .grid--2,
    .grid--3,
    .grid--4,
    .grid--2-wide,
    .split {
        grid-template-columns: 1fr;
    }

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

    .site-footer__social,
    .site-footer__partners {
        justify-content: center;
        align-items: center;
    }

    .site-footer__legal {
        justify-content: center;
        text-align: center;
    }

    .hero {
        min-height: 100svh;
    }

    .floating-cta {
        right: 0.9rem;
        bottom: 0.9rem;
    }
}
