/* ==========================================================================
   E.M.O Service Luxe — design system
   Brand: Amber Gold #CA8E33 · Red #F44336 · Navy #273554 · Black · White · #F8F6F2
   Colors are overridable from Dashboard → E.M.O Service Luxe → Réglages → Identité.
   ========================================================================== */

/* Self-hosted: Montserrat & Playfair Display (SIL Open Font License) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/playfair-display-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Brand (overridden by settings) */
    --gold: #ca8e33;
    --red: #f44336;
    --navy: #273554;
    --black: #000;
    --white: #fff;
    --bg: #f8f6f2;
    --ink: #1b1b1f;

    /* Derived tones (accessible text contrast) */
    --gold-text: #8a5f1f;
    --gold-text: color-mix(in srgb, var(--gold) 68%, #000);
    --gold-light: #e0b56b;
    --gold-light: color-mix(in srgb, var(--gold) 70%, #fff);
    --gold-soft: rgba(202, 142, 51, .12);
    --gold-soft: color-mix(in srgb, var(--gold) 13%, transparent);
    --red-text: #b3261e;
    --red-text: color-mix(in srgb, var(--red) 72%, #000);
    --red-soft: rgba(244, 67, 54, .1);
    --red-soft: color-mix(in srgb, var(--red) 10%, #fff);
    --navy-dark: #1b2540;
    --navy-dark: color-mix(in srgb, var(--navy) 72%, #000);
    --green: #1f7a3f;
    --green-dot: #22a052;
    --wa: #25d366;
    --wa-dark: #128c4b;
    --soft: #efe9df;
    --soft: color-mix(in srgb, var(--bg) 82%, var(--gold));
    --muted: #66625d;
    --line: rgba(27, 27, 31, .12);

    --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
    --arch: 999px 999px 22px 22px;
    --shadow-sm: 0 6px 24px -12px rgba(0, 0, 0, .2);
    --shadow: 0 24px 60px -24px rgba(0, 0, 0, .35);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 84px;
    --gutter: 20px;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; scrollbar-width: none; }
::-webkit-scrollbar { display: none; }
body { margin: 0; font: 400 1rem/1.7 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .6em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
main:focus { outline: none; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 999; padding: .8rem 1.2rem; background: var(--gold); color: var(--black); border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.container { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.container--narrow { width: min(800px, 100% - var(--gutter) * 2); }
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 1rem; font: 600 .72rem/1.2 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-light); }
.section-title { font-size: clamp(2rem, 4.2vw, 3.2rem); color: var(--navy); letter-spacing: -.01em; }
.section--navy .section-title, .cta-band .section-title { color: var(--white); }
.section-title em, .hero__title em, .page-hero__title em, .cta-band__title em { color: var(--gold); font-style: italic; }
.section-title em { color: var(--gold-text); }
.section--navy .section-title em { color: var(--gold-light); }
.lead { font-size: 1.08rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .9rem 1.7rem; border: 1px solid transparent; border-radius: 999px; font: 600 .76rem/1.1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-align: center; transition: transform .3s var(--ease), background-color .3s, color .3s, border-color .3s, box-shadow .3s; }
.btn .icon { width: 1.2em; height: 1.2em; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--gold { background: var(--gold); color: var(--black); }
.btn--gold:hover { background: var(--gold-light); box-shadow: 0 14px 30px -12px var(--gold); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-dark); }
.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--glass { border-color: rgba(255, 255, 255, .55); color: var(--white); background: rgba(255, 255, 255, .08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: var(--white); color: var(--black); }
.btn--wa { background: var(--wa-dark); color: var(--white); }
.btn--wa:hover { background: #0f7a41; }
.btn--sm { min-height: 40px; padding: .6rem 1.1rem; font-size: .68rem; }
.btn--lg { min-height: 56px; padding: 1.1rem 2.2rem; }
.btn--block { width: 100%; }

.icon-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); color: var(--navy); transition: background-color .3s, color .3s, border-color .3s; }
.icon-btn:hover, .icon-btn.is-copied { background: var(--navy); border-color: var(--navy); color: var(--white); }
.icon-btn .icon { width: 20px; height: 20px; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon-arrow { transform: translateX(4px); }

/* ---------- Status badge ---------- */
.status { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .85rem; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .72rem; font-weight: 600; letter-spacing: .04em; box-shadow: 0 2px 10px -4px rgba(0, 0, 0, .25); line-height: 1.2; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status--available .status__dot { background: var(--green-dot); box-shadow: 0 0 0 3px rgba(34, 160, 82, .2); }
.status--available { color: var(--green); }
.status--unavailable .status__dot { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.status--unavailable { color: var(--red-text); }
.status--unknown .status__dot { background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.status--unknown { color: var(--gold-text); }

/* ---------- Notices ---------- */
.notice-box { margin: 1.5rem 0; padding: 1rem 1.2rem; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 10px; font-size: .92rem; }
.notice-box a:not(.btn) { text-decoration: underline; }
.notice-box--red { border-color: var(--red); background: var(--red-soft); color: var(--red-text); }
.notice-box--red ul { list-style: disc; padding-left: 1.2rem; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); color: var(--white); transition: height .4s var(--ease), transform .45s var(--ease); }
/* Hidden while scrolling down (main.js). Transform only in this state: a transform on the header
   would otherwise become the containing block of the fixed mobile menu. */
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
/* Opening the menu while the header is still sliding back in: drop the transform at once, or the
   fixed menu would be laid out inside the 72px header instead of the full screen. */
.nav-open .site-header { transform: none; transition: height .4s var(--ease); }
/* Backgrounds on pseudo-elements: a backdrop-filter on the header would trap the fixed mobile menu. */
.site-header::before, .site-header::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity .4s; }
.site-header::before { bottom: -50px; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent); }
.site-header::after { opacity: 0; background: rgba(0, 0, 0, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 35%, transparent); }
.is-scrolled .site-header, .header-solid .site-header { --header-h: 72px; }
.is-scrolled .site-header::before, .header-solid .site-header::before { opacity: 0; }
.is-scrolled .site-header::after, .header-solid .site-header::after { opacity: 1; }
.nav-open .site-header::after { opacity: 0; }
.header-solid .site-main { padding-top: 72px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 100%; }

.brand { position: relative; z-index: 2; display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--white); }
.brand__mark { font: 500 1.7rem/1 var(--serif); letter-spacing: .06em; }
.brand__mark i { color: var(--gold); font-style: normal; }
.brand__tag { margin-top: .35rem; padding-left: .45em; font: 500 .52rem/1 var(--sans); letter-spacing: .45em; text-transform: uppercase; color: var(--gold-light); }
.brand__img { width: auto; max-height: 60px; transition: max-height .4s var(--ease); }
.is-scrolled .brand__img, .header-solid .brand__img { max-height: 48px; }

.main-nav__list { display: flex; align-items: center; gap: 2rem; }
.main-nav__list li { position: relative; }
.main-nav__list a { position: relative; display: block; padding: .5rem 0; font-size: .74rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.main-nav__list a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.main-nav__list a:hover, .main-nav__list .current-menu-item > a { color: var(--white); }
.main-nav__list a:hover::after, .main-nav__list .current-menu-item > a::after { transform: scaleX(1); transform-origin: left; }
.main-nav__list .sub-menu { position: absolute; top: 100%; left: -1.2rem; min-width: 220px; padding: .8rem 1.2rem; background: var(--black); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); }
.main-nav__list li:hover > .sub-menu, .main-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav__mobile-extra { display: none; }
.main-nav__scroll { display: contents; }
.site-header__actions { display: flex; align-items: center; gap: .8rem; }
.nav-toggle { display: none; position: relative; z-index: 2; width: 44px; height: 44px; border: 0; background: none; padding: 0; }
.nav-toggle span[aria-hidden] { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--white); transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease); }
.nav-toggle span[aria-hidden]:nth-of-type(2) { top: 15px; }
.nav-toggle span[aria-hidden]:nth-of-type(3) { top: 21px; right: 16px; }
.nav-toggle span[aria-hidden]:nth-of-type(4) { top: 27px; }
.nav-open .nav-toggle span[aria-hidden]:nth-of-type(2) { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span[aria-hidden]:nth-of-type(3) { opacity: 0; }
.nav-open .nav-toggle span[aria-hidden]:nth-of-type(4) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
    .nav-toggle { display: block; }
    .site-header__cta span { display: none; }
    .site-header__cta { padding: .6rem; min-height: 44px; width: 44px; }
    /* The clipped panel must not be the scroller: iOS Safari composites overflow scrollers and
       doesn't repaint an animated clip-path on them, so the circle jumped open with no animation.
       Same unit (%) at both ends of the circle for the same reason. */
    .main-nav { position: fixed; inset: 0; z-index: 1; overflow: hidden; background: radial-gradient(120% 80% at 100% 0%, var(--navy) 0%, var(--navy-dark) 45%, var(--black) 100%); -webkit-clip-path: circle(0% at calc(100% - 42px) 42px); clip-path: circle(0% at calc(100% - 42px) 42px); visibility: hidden; transition: -webkit-clip-path .7s var(--ease), clip-path .7s var(--ease), visibility 0s .7s; will-change: clip-path; }
    .main-nav__scroll { display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; height: 100%; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .nav-open .main-nav { -webkit-clip-path: circle(150% at calc(100% - 42px) 42px); clip-path: circle(150% at calc(100% - 42px) 42px); visibility: visible; transition: -webkit-clip-path .7s var(--ease), clip-path .7s var(--ease), visibility 0s; }
    .nav-open { overflow: hidden; }
    .main-nav__list { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .main-nav__list a { font: 500 clamp(1.8rem, 7vw, 2.4rem)/1.3 var(--serif); letter-spacing: 0; text-transform: none; }
    .main-nav__list a::after { display: none; }
    .main-nav__list .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; box-shadow: none; padding: 0 0 0 1rem; }
    .main-nav__list .sub-menu a { font-size: 1.2rem; }
    .main-nav__list > li { opacity: 0; transform: translateY(20px); transition: .5s var(--ease); }
    .nav-open .main-nav__list > li { opacity: 1; transform: none; }
    .nav-open .main-nav__list > li:nth-child(2) { transition-delay: .06s; }
    .nav-open .main-nav__list > li:nth-child(3) { transition-delay: .12s; }
    .nav-open .main-nav__list > li:nth-child(4) { transition-delay: .18s; }
    .nav-open .main-nav__list > li:nth-child(n+5) { transition-delay: .24s; }
    .main-nav__mobile-extra { display: grid; gap: 1rem; }
    .main-nav__phone { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; color: var(--gold-light); }
}

/* ---------- Hero slider + search ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: min(100vh, 1100px); min-height: min(100svh, 1100px); padding-bottom: 2.2rem; overflow: hidden; background: var(--black); color: var(--white); isolation: isolate; }
.hero__slides { position: absolute; inset: 0; z-index: -1; }
.hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity var(--speed, 1200ms) var(--ease), visibility 0s var(--speed, 1200ms); }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity var(--speed, 1200ms) var(--ease), visibility 0s; }
.hero__media { position: absolute; inset: 0; }
/* Ken Burns: outgoing slide keeps its zoom during the fade, resets once hidden. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 0s var(--speed, 1200ms); }
.hero__slide.is-active .hero__media img { transform: scale(1); transition: transform calc(var(--interval, 6500ms) + 2s) linear; }
.hero__slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .4) 55%, rgba(0, 0, 0, .12) 100%), linear-gradient(0deg, rgba(0, 0, 0, .8) 0%, transparent 50%); }
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; height: 100%; padding-top: var(--header-h); padding-bottom: 13rem; }
.hero:not(.hero--search) .hero__content { padding-bottom: 6rem; }
.hero__content > * { max-width: 760px; opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > :nth-child(1) { transition-delay: .35s; }
.hero__slide.is-active .hero__content > :nth-child(2) { transition-delay: .5s; }
.hero__slide.is-active .hero__content > :nth-child(3) { transition-delay: .65s; }
.hero__slide.is-active .hero__content > :nth-child(4) { transition-delay: .8s; }
.hero__kicker { display: inline-flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; font-size: .72rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
.hero__kicker .line { width: 48px; height: 1px; background: var(--gold); }
.hero__title { margin: 0 0 1.2rem; font: 500 clamp(2.5rem, 6vw, 5.2rem)/1.05 var(--serif); letter-spacing: -.015em; color: var(--white); }
.hero__text { max-width: 560px; font-size: clamp(1rem, 1.25vw, 1.15rem); color: rgba(255, 255, 255, .86); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__controls { position: relative; z-index: 3; display: flex; align-items: center; gap: 1.5rem; margin-bottom: 1.2rem; }
.hero__dots { display: flex; gap: .5rem; flex: 1; max-width: 340px; }
.hero__dot { position: relative; flex: 1; height: 28px; padding: 0; border: 0; background: none; }
.hero__dot::before, .hero__dot > span[aria-hidden] { content: ''; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: rgba(255, 255, 255, .3); }
.hero__dot > span[aria-hidden] { right: auto; width: 0; background: var(--gold); }
.hero__dot.is-active > span[aria-hidden] { animation: emo-progress var(--interval, 6500ms) linear forwards; }
.hero.is-paused .hero__dot.is-active > span[aria-hidden] { animation-play-state: paused; }
.hero.is-stopped .hero__dot.is-active > span[aria-hidden] { animation: none; width: 100%; }
@keyframes emo-progress { to { width: 100%; } }
.hero__arrows { display: flex; gap: .5rem; margin-left: auto; }
.hero__arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .06); color: var(--white); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .3s, color .3s, border-color .3s; }
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.hero__pause-icon { width: 12px; height: 14px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.hero.is-stopped .hero__pause-icon { width: 0; height: 0; border: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.hero__search { position: relative; z-index: 3; }

/* Search form (hero + archive) */
.vsearch { padding: 1.2rem 1.4rem; background: var(--white); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.vsearch__main { display: grid; grid-template-columns: 1.2fr 1fr 1fr .7fr auto; gap: 1rem 1.2rem; align-items: end; }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field label { display: flex; align-items: center; gap: .4rem; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field label .icon { width: 15px; height: 15px; color: var(--gold-text); }
.vsearch input, .vsearch select { width: 100%; min-height: 46px; padding: .5rem 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font-size: .95rem; font-weight: 600; -webkit-appearance: none; appearance: none; }
.vsearch select, .resa select, .contact-form select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ca8e33' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .2rem center / 16px; padding-right: 1.6rem; }
.vsearch input:focus, .vsearch select:focus { outline: none; border-color: var(--gold); box-shadow: 0 2px 0 0 var(--gold); }
.vsearch__submit { min-height: 52px; }
.vsearch__more { margin-top: .8rem; border-top: 1px solid var(--line); padding-top: .6rem; }
.vsearch__more summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); list-style: none; padding: .3rem 0; }
.vsearch__more summary::-webkit-details-marker { display: none; }
.vsearch__more summary::after { content: '+'; font-size: 1rem; color: var(--gold-text); }
.vsearch__more[open] summary::after { content: '–'; }
.vsearch__extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem 1.2rem; padding: .6rem 0 .2rem; }
.vsearch__error { margin: .8rem 0 0; padding: .6rem .9rem; border-radius: 8px; background: var(--red-soft); color: var(--red-text); font-size: .88rem; }

@media (max-width: 1023px) {
    .vsearch__main { grid-template-columns: 1fr 1fr; }
    .vsearch__main .field:first-child, .vsearch__submit { grid-column: 1 / -1; }
    .vsearch__main .field--sm { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    :root { --header-h: 72px; }
    .hero { min-height: 0; padding-bottom: 1.5rem; }
    .hero__slides { position: relative; height: min(78svh, 760px); min-height: 520px; z-index: 0; }
    .hero:not(.hero--search) .hero__slides { height: min(100svh, 900px); }
    .hero__content { justify-content: flex-end; padding-bottom: 4.5rem; }
    .hero:not(.hero--search) .hero__content { padding-bottom: 5rem; }
    .hero__slide::after { background: linear-gradient(0deg, rgba(0, 0, 0, .9) 0%, rgba(0, 0, 0, .45) 55%, rgba(0, 0, 0, .3) 100%); }
    .hero__controls { position: absolute; left: 0; right: 0; top: calc(max(min(78svh, 760px), 520px) - 3.6rem); margin: 0 auto; }
    .hero:not(.hero--search) .hero__controls { top: auto; bottom: 1.5rem; }
    .hero__arrows [data-prev], .hero__arrows [data-next] { display: none; }
    .hero__arrow { width: 40px; height: 40px; }
    .hero__search { margin-top: -1rem; }
    .vsearch { padding: 1rem; border-radius: 18px; }
    .brand__mark { font-size: 1.45rem; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--tight { padding-bottom: 0; }
.section--soft { background: var(--soft); }
.section--navy { position: relative; overflow: hidden; background: var(--navy); color: var(--white); }
.section--navy::before { content: ''; position: absolute; width: 700px; height: 700px; top: -260px; right: -220px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 65%); pointer-events: none; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: 3rem; }
.section-head .section-title { margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head__aside { max-width: 420px; margin: 0; color: var(--muted); font-size: .94rem; }

.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid--3 { grid-template-columns: 1fr; gap: 1.5rem; } }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease) var(--d, 0ms), transform .8s var(--ease) var(--d, 0ms); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .villa-card.reveal, .js .service.reveal { transition: opacity .8s var(--ease) var(--d, 0ms), transform .6s var(--ease), box-shadow .5s var(--ease), background-color .4s, border-color .4s; }

/* ---------- Villa card ---------- */
.villa-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.villa-card.is-visible:hover, .no-js .villa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.villa-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.villa-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.villa-card:hover .villa-card__media img { transform: scale(1.06); }
.villa-card.is-unavailable .villa-card__media img { filter: grayscale(.55); }
.villa-card__status { position: absolute; top: 1rem; left: 1rem; }
.tag { position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border-radius: 999px; font-size: .64rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.tag--gold { background: var(--gold); color: var(--black); }
.tag .icon { width: 12px; height: 12px; }
.villa-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem 1.4rem 1.3rem; }
.villa-card__loc { display: flex; align-items: center; gap: .4rem; margin-bottom: .45rem; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.villa-card__loc .icon { width: 14px; height: 14px; }
.villa-card__title { font-size: 1.4rem; margin-bottom: .8rem; color: var(--navy); }
.villa-card__title a { background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0 1px; transition: background-size .5s var(--ease); }
.villa-card__title a:hover { background-size: 100% 1px; }
.specs { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: .8rem; font-size: .84rem; color: var(--muted); }
.specs li { display: inline-flex; align-items: center; gap: .35rem; }
.specs .icon { width: 17px; height: 17px; color: var(--navy); }
.villa-card__excerpt { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.villa-card__foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem; margin: 0; }
.price small { font-size: .75rem; color: var(--muted); }
.price strong { font: 500 1.3rem/1 var(--serif); color: var(--navy); }
.price__ask { font-size: 1.05rem !important; }
.villa-card__actions { display: flex; gap: .6rem; margin-top: 1rem; }
.villa-card__actions .btn { flex: 1; }

/* ---------- Services ---------- */
.services__grid { position: relative; }
.service { padding: 2.2rem 2rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.service.is-visible:hover { background: rgba(255, 255, 255, .08); border-color: color-mix(in srgb, var(--gold) 60%, transparent); transform: translateY(-4px); }
.service__icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.4rem; border-radius: var(--arch); background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold-light); }
.service__icon .icon { width: 26px; height: 26px; }
.service__title { font-size: 1.35rem; }
.service p, .service__content { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.service__link { display: inline-flex; align-items: center; gap: .5rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); }
.services__grid--full .service { background: var(--white); border-color: var(--line); color: var(--ink); padding: 0 0 1.8rem; overflow: hidden; }
.services__grid--full .service > :not(.service__media) { margin-left: 1.8rem; margin-right: 1.8rem; }
.services__grid--full .service__media { margin-bottom: -1.6rem; aspect-ratio: 16 / 10; overflow: hidden; }
.services__grid--full .service__media img { width: 100%; height: 100%; object-fit: cover; }
.services__grid--full .service__icon { position: relative; background: var(--navy); color: var(--gold-light); box-shadow: 0 0 0 6px var(--white); }
.services__grid--full .service__media + .service__icon { margin-top: 0; }
.services__grid--full .service p, .services__grid--full .service__content { color: var(--muted); }
.services__grid--full .service__title { color: var(--navy); }
.services__grid--full .service__link { color: var(--gold-text); }
.services__grid--full .service.is-visible:hover { background: var(--white); box-shadow: var(--shadow); }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.why__ornament { width: 160px; height: 200px; margin-top: 2rem; border: 1px solid var(--gold); border-radius: var(--arch); position: relative; }
.why__ornament::after { content: ''; position: absolute; inset: 14px; border: 1px solid color-mix(in srgb, var(--navy) 35%, transparent); border-radius: var(--arch); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.why__item { display: flex; gap: 1rem; align-items: flex-start; }
.why__icon { display: grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); }
.why__icon .icon { width: 24px; height: 24px; }
.why__item h3 { font-size: 1.2rem; color: var(--navy); margin-bottom: .3rem; }
.why__item p { margin: 0; color: var(--muted); font-size: .94rem; }
@media (max-width: 899px) { .why__grid { grid-template-columns: 1fr; } .why__ornament { display: none; } }
@media (max-width: 599px) { .why__list { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.step { position: relative; text-align: center; padding: 0 1rem; }
.step__num { display: block; margin-bottom: -1.5rem; font: 500 4.4rem/1 var(--serif); color: transparent; -webkit-text-stroke: 1px var(--gold); opacity: .55; }
.step__icon { position: relative; display: inline-grid; place-items: center; width: 70px; height: 70px; margin-bottom: 1.3rem; border-radius: 50%; background: var(--navy); color: var(--white); box-shadow: 0 0 0 8px var(--soft), 0 0 0 9px var(--gold-soft); }
.step__icon .icon { width: 28px; height: 28px; }
.step h3 { font-size: 1.3rem; color: var(--navy); }
.step p { max-width: 300px; margin-inline: auto; color: var(--muted); }
.step:not(:last-child)::after { content: ''; position: absolute; top: calc(4.4rem - 1.5rem + 35px); left: calc(50% + 55px); width: calc(100% - 110px + 2.5rem); border-top: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
@media (max-width: 767px) { .steps__list { grid-template-columns: 1fr; gap: 3rem; } .step:not(:last-child)::after { display: none; } }

/* ---------- Testimonials ---------- */
.reviews__nav { display: flex; gap: .6rem; }
.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3rem) / 3); gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding: .5rem .2rem 1.5rem; scrollbar-width: none; }
.reviews__track::-webkit-scrollbar { display: none; }
.review { position: relative; display: flex; flex-direction: column; margin: 0; padding: 2.1rem 1.9rem 1.7rem; scroll-snap-align: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.review__quote { position: absolute; top: 1.5rem; right: 1.5rem; width: 38px; height: 38px; color: var(--gold); opacity: .25; }
.review__stars { display: flex; gap: 3px; margin-bottom: 1rem; color: var(--gold); }
.review__stars .icon { width: 16px; height: 16px; }
.review blockquote { flex: 1; margin: 0 0 1.4rem; color: #3b3a3d; }
.review figcaption { display: flex; align-items: center; gap: .9rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.review figcaption > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.review figcaption small { color: var(--muted); font-size: .8rem; }
.review__avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: var(--navy); color: var(--gold-light); font: 500 1.2rem/1 var(--serif); }
@media (max-width: 1023px) { .reviews__track { grid-auto-columns: 70%; } }
@media (max-width: 639px) { .reviews__track { grid-auto-columns: 88%; } .reviews__nav { display: none; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; padding: clamp(5rem, 11vw, 8.5rem) 0; color: var(--white); text-align: center; overflow: hidden; isolation: isolate; background: var(--navy-dark); }
.cta-band__bg { position: absolute; inset: 0; z-index: -1; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .7), color-mix(in srgb, var(--navy) 88%, transparent)); }
.cta-band--plain { background: radial-gradient(120% 140% at 0% 0%, var(--navy) 0%, var(--navy-dark) 60%, var(--black) 100%); }
.cta-band__title { max-width: 820px; margin: 0 auto 1rem; font-size: clamp(1.9rem, 4vw, 3rem); color: var(--white); }
.cta-band p { max-width: 620px; margin: 0 auto 2rem; color: rgba(255, 255, 255, .82); }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Contact ---------- */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-intro { margin-bottom: 1.5rem; }
.contact-cards { display: grid; gap: .9rem; }
.contact-card { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; border-radius: 16px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
a.contact-card:hover { transform: translateY(-3px); }
.contact-card > .icon { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); }
.contact-card span { display: flex; flex-direction: column; line-height: 1.4; }
.contact-card small { color: var(--muted); }
.contact-card--wa { background: var(--wa-dark); color: var(--white); }
.contact-card--wa > .icon { background: rgba(255, 255, 255, .2); color: var(--white); }
.contact-card--wa small { color: rgba(255, 255, 255, .88); }
.map-embed { margin-top: 1.2rem; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--soft); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.contact-form__villa { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 10px; background: var(--gold-soft); font-weight: 600; }
@media (max-width: 899px) { .contact-split, .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Forms (reservation & contact) ---------- */
.resa__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.field--full { grid-column: 1 / -1; }
.resa input:not([type=checkbox]), .resa select, .resa textarea,
.contact-form input:not([type=checkbox]):not([type=file]), .contact-form select, .contact-form textarea {
    width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1px solid rgba(27, 27, 31, .2); border-radius: var(--radius-sm); background-color: var(--white); font-size: .95rem; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
.resa select, .contact-form select { background-position: right .8rem center; padding-right: 2.2rem; }
.resa textarea, .contact-form textarea { min-height: 96px; resize: vertical; }
.resa input:focus, .resa select:focus, .resa textarea:focus, .contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
[aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 3px var(--red-soft) !important; }
.field__error { font-size: .8rem; color: var(--red-text); font-weight: 500; }
.field--check label { display: flex; align-items: flex-start; gap: .6rem; font-size: .85rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--ink); }
.field--check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--navy); flex-shrink: 0; }
.field--check a { text-decoration: underline; }
.contact-form .field label, .resa .field label { color: var(--navy); }
.contact-form input[type=file] { padding: .6rem; border: 1px dashed rgba(27, 27, 31, .3); border-radius: var(--radius-sm); background: var(--white); width: 100%; }
.contact-form small { color: var(--muted); font-size: .78rem; }
.contact-form .btn { margin-top: 1.2rem; }
.resa__nights { grid-column: 1 / -1; margin: -.3rem 0 0; font-size: .82rem; font-weight: 600; color: var(--gold-text); min-height: 1em; }
.resa__nights:empty { display: none; }
.resa__total { padding: 1rem 1.1rem; border-radius: 14px; background: color-mix(in srgb, var(--navy) 6%, var(--white)); border: 1px solid color-mix(in srgb, var(--navy) 14%, transparent); }
.resa__total-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--muted); }
.resa__total-row--sum { margin-top: .55rem; padding-top: .6rem; border-top: 1px dashed rgba(27, 27, 31, .2); color: var(--navy); }
.resa__total-row--sum strong { font-weight: 600; }
.resa__total-row--sum strong:last-child { font: 500 1.4rem/1 var(--serif); }
.resa__total small { display: block; margin-top: .55rem; font-size: .74rem; line-height: 1.45; color: var(--muted); }
.resa__summary { margin-bottom: 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--soft); font-size: .9rem; }
.resa__summary:focus { outline: 2px solid var(--gold); }
.resa__summary p { margin: 0; font-weight: 600; }
.resa__summary .is-ok { color: var(--green); }
.resa__summary .is-error { color: var(--red-text); }
.resa__summary ul { margin-top: .4rem; padding-left: 1.1rem; list-style: disc; color: var(--red-text); }
.resa__summary a { text-decoration: underline; }
.resa__note { display: flex; gap: .6rem; margin: 1.2rem 0; padding: .8rem 1rem; border-radius: 12px; background: var(--gold-soft); font-size: .84rem; color: #4a3d2a; }
.resa__note .icon { color: var(--gold-text); margin-top: .15rem; }
.resa__actions { display: grid; gap: .7rem; }
.resa__fine { margin: .9rem 0 0; font-size: .76rem; color: var(--muted); }
@media (max-width: 479px) { .resa__grid { grid-template-columns: 1fr; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; display: flex; align-items: flex-end; min-height: clamp(360px, 50vh, 560px); padding: calc(var(--header-h) + 3rem) 0 3.2rem; overflow: hidden; color: var(--white); isolation: isolate; background: var(--navy-dark); }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: emo-zoom 14s ease-out forwards; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .35)); }
@keyframes emo-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.page-hero__title { max-width: 900px; margin-bottom: .4em; font-size: clamp(2.3rem, 5.4vw, 4.2rem); color: var(--white); }
.page-hero__text { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .85); }

/* ---------- Villas archive ---------- */
.filters-card { margin-top: -6rem; position: relative; z-index: 2; margin-bottom: 2rem; }
.villas-archive { padding-top: 0; }
.villas-archive .container { padding-top: 0; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.5rem 0 1rem; }
.results-bar p { margin: 0; color: var(--muted); }
.results-bar strong { color: var(--navy); }
.results-note { display: flex; gap: .5rem; align-items: center; margin: -.5rem 0 1.5rem; font-size: .85rem; color: var(--muted); }
.results-note .icon { color: var(--gold-text); }
.empty { max-width: 560px; margin-inline: auto; padding: 3rem 0; text-align: center; }
.empty > .icon { width: 52px; height: 52px; margin: 0 auto 1.2rem; color: var(--gold-text); }
.empty h2 { color: var(--navy); font-size: 1.7rem; }
.empty p { color: var(--muted); margin-bottom: 1.6rem; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
@media (max-width: 767px) { .filters-card { margin-top: -3rem; } }

/* ---------- Single villa ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: 1.5rem; font-size: .8rem; color: var(--muted); }
.crumbs a:hover { color: var(--gold-text); }
.vgallery { margin-top: 0rem; }
.vgallery__main { position: relative; display: block; width: 100%; overflow: hidden; background: var(--soft); height: clamp(420px, 78vh, 820px); }
.vgallery__main img { width: 100%; height: 100%; object-fit: cover; }

/* Slider: full-width hero, slides stacked in one grid cell and cross-faded; infinite loop handled in JS */
.vslider { position: relative; overflow: hidden; background: var(--black); }
.vslider__track { display: grid; height: clamp(420px, 78vh, 820px); touch-action: pan-y; }
.vslider__track:focus-visible { outline-offset: -4px; }
.vslider__slide { grid-area: 1 / 1; width: 100%; height: 100%; padding: 0; border: 0; background: var(--soft); cursor: zoom-in; overflow: hidden; opacity: 0; transition: opacity .9s var(--ease); }
.vslider__slide.is-active { z-index: 1; opacity: 1; }
.vslider__slide img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; user-select: none; transform: scale(1.06); transition: transform 6s var(--ease); }
.vslider__slide.is-active img { transform: scale(1); }
.vslider::after { content: ''; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(0deg, rgba(0, 0, 0, .45), transparent); pointer-events: none; }
.vslider__arrow, .vslider__expand { position: absolute; z-index: 2; display: grid; place-items: center; width: 50px; height: 50px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .5); transition: background-color .3s, color .3s, opacity .3s, transform .3s var(--ease); }
.vslider__arrow { top: 50%; transform: translateY(-50%); }
.vslider__arrow--prev { left: 1rem; }
.vslider__arrow--next { right: 1rem; }
.vslider__arrow:hover, .vslider__expand:hover { background: var(--gold); color: var(--black); }
.vslider__arrow .icon { width: 22px; height: 22px; }
.vslider__expand { top: 1rem; right: 1rem; width: 42px; height: 42px; }
.vslider__count { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; background: rgba(0, 0, 0, .6); color: var(--white); font-size: .8rem; font-weight: 600; pointer-events: none; }
.vgallery__thumbs { position: relative; display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .3rem; }
.vgallery__thumb { flex: 0 0 auto; width: 112px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--soft); opacity: .8; transition: opacity .3s, border-color .3s; }
.vgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vgallery__thumb:hover, .vgallery__thumb.is-active { opacity: 1; border-color: var(--gold); }
@media (max-width: 767px) {
    .vgallery { margin-top: 0; }
    .vslider__track, .vgallery__main { height: auto; aspect-ratio: 4 / 3; }
    .vslider__arrow { width: 40px; height: 40px; }
    .vgallery__thumb { width: 76px; }
}

.villa-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(2rem, 5vw, 4rem); align-items: start; padding: 2.5rem 0 5rem; }
.villa-head__top { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1rem; }
.villa-head__top .eyebrow { margin: 0; }
.villa-head__title { font-size: clamp(2.2rem, 4.5vw, 3.3rem); color: var(--navy); margin-bottom: .4rem; }
.villa-head__loc { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.villa-head__loc .icon { color: var(--gold-text); }
.villa-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin: 2rem 0 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.villa-facts li { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 1.2rem .8rem; text-align: center; }
.villa-facts li + li { border-left: 1px solid var(--line); }
.villa-facts .icon { width: 24px; height: 24px; margin-bottom: .3rem; color: var(--gold-text); }
.villa-facts strong { font: 500 1.35rem/1.1 var(--serif); color: var(--navy); }
.villa-facts span { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.villa-block { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.villa-block__title { font-size: 1.6rem; color: var(--navy); margin-bottom: 1.2rem; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem 1.5rem; }
.amenities li { display: flex; align-items: center; gap: .8rem; }
.amenities .icon { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); }
.rates { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 2.5rem; margin: 0; }
.rates div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px dashed rgba(27, 27, 31, .16); }
.rates dt { color: var(--muted); }
.rates dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }
.share__list { display: flex; flex-wrap: wrap; gap: .6rem; }
.villa-aside { position: sticky; top: 92px; }
.book-card { padding: 1.8rem; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.book-card__title { font-size: 1.45rem; color: var(--navy); margin-bottom: 1rem; }
.book-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; padding-bottom: 1.1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.book-card__price strong { font: 500 1.9rem/1 var(--serif); color: var(--navy); }
.book-card__price small { color: var(--muted); }
.notice-box .status { margin-bottom: .6rem; }
.villa-mobile-cta { display: none; }
@media (max-width: 1023px) {
    .villa-layout { grid-template-columns: 1fr; padding-bottom: 3rem; }
    .villa-aside { position: static; }
    .villa-mobile-cta { position: fixed; inset: auto 0 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .25); }
    .villa-mobile-cta strong { font: 500 1.15rem/1 var(--serif); color: var(--navy); }
    .single-villa .wa-float { display: none !important; }
    .single-villa .site-footer { padding-bottom: 5rem; }
}

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(0, 0, 0, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(0, 0, 0, .9); }
.lightbox[open] { display: block; animation: emo-fade .3s var(--ease); }
.lightbox__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.lightbox__track::-webkit-scrollbar { display: none; }
.lightbox__slide { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 0 0 100%; margin: 0; padding: 4rem 1rem; scroll-snap-align: center; }
.lightbox__slide img { width: auto; max-width: min(1400px, 92vw); max-height: 82vh; object-fit: contain; border-radius: 6px; }
.lightbox__slide figcaption { margin-top: .8rem; font-size: .9rem; color: rgba(255, 255, 255, .8); }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: var(--white); transition: background-color .3s, color .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--black); }
.lightbox__close { top: 1.2rem; right: 1.2rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.2rem; }
.lightbox__nav--next { right: 1.2rem; }
.lightbox__count { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); font-size: .8rem; letter-spacing: .2em; color: rgba(255, 255, 255, .75); }
.lightbox-open { overflow: hidden; }
@media (max-width: 767px) { .lightbox__nav { display: none; } }
@keyframes emo-fade { from { opacity: 0; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.about__media { position: relative; max-width: 480px; }
.about__media::before { content: ''; position: absolute; inset: -16px 16px 16px -16px; border: 1px solid var(--gold); border-radius: var(--arch); pointer-events: none; }
.about__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--arch); }
.mission { margin: 0; font: italic 500 clamp(1.5rem, 3vw, 2.3rem)/1.4 var(--serif); }
.value { padding: 2rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.value__num { display: block; margin-bottom: .6rem; font: 500 2rem/1 var(--serif); color: var(--gold-text); }
.value h3 { color: var(--navy); font-size: 1.3rem; }
.value p { margin: 0; color: var(--muted); }
.checklist { display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .9rem; align-items: flex-start; }
.checklist .icon { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); }
.checklist--big li { padding: 1rem 1.2rem; border-radius: 14px; background: var(--white); font-size: 1.02rem; }
@media (max-width: 899px) { .about__grid { grid-template-columns: 1fr; } .about__media { margin-inline: auto; width: calc(100% - 1.5rem); } }

/* ---------- Blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip { display: inline-flex; align-items: center; padding: .55rem 1.15rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; transition: .3s; }
.chip:hover { border-color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.post-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card__body .link-arrow { margin-top: auto; }
.post-card__meta { margin-bottom: .5rem; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.post-card__title { font-size: 1.35rem; color: var(--navy); }
.post-card p { color: var(--muted); font-size: .94rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 2rem; color: var(--muted); font-size: .9rem; }
.post-meta a { color: var(--gold-text); }
.post-meta__avatar { border-radius: 50%; }
.post-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2rem; }
.post-tags a { padding: .3rem .8rem; border-radius: 999px; background: var(--soft); font-size: .8rem; }
.post-nav { display: flex; justify-content: space-between; gap: 2rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); font-family: var(--serif); }
.post-nav a:hover { color: var(--gold-text); }
.entry-content { font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { margin-top: 1.8em; font-size: 2rem; color: var(--navy); }
.entry-content h3 { margin-top: 1.6em; font-size: 1.5rem; color: var(--navy); }
.entry-content a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul { list-style: disc; padding-left: 1.3rem; }
.entry-content ol { list-style: decimal; padding-left: 1.3rem; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 2rem 0; padding-left: 1.5rem; border-left: 2px solid var(--gold); font: italic 1.3rem/1.5 var(--serif); }
.villa-block.entry-content > .villa-block__title + * { margin-top: 0; }
.comments { margin-top: 3rem; }
.comments__title { font-size: 1.6rem; color: var(--navy); }
.comments__list .comment { margin-bottom: 1.5rem; padding: 1.2rem; border-radius: 14px; background: var(--white); }
.comments__list .children { margin-left: 1.5rem; margin-top: 1rem; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea { width: 100%; padding: .7rem .9rem; border: 1px solid rgba(27, 27, 31, .2); border-radius: var(--radius-sm); background: var(--white); }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 3rem; }
.page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-weight: 600; font-size: .9rem; }
.page-numbers.current, a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.page-numbers .icon { width: 16px; height: 16px; }
.search-form { display: flex; gap: .5rem; max-width: 520px; margin: 0 auto 2.5rem; }
.search-form input[type=search] { flex: 1; min-width: 0; min-height: 46px; padding: .7rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; min-height: 80vh; padding: 4rem 0; text-align: center; background: var(--soft); }
.notfound__code { display: block; font: 500 clamp(7rem, 20vw, 12rem)/1 var(--serif); color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.notfound p { max-width: 480px; margin: 0 auto 2rem; color: var(--muted); }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

/* ---------- Footer ---------- */
.site-footer { padding: 4.5rem 0 0; background: var(--black); color: rgba(255, 255, 255, .72); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 3rem; padding-bottom: 3.5rem; }
.footer-brand .brand { align-items: flex-start; margin-bottom: 1.3rem; }
.footer-brand p { max-width: 320px; }
.footer-title { margin-bottom: 1.4rem; font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); }
.footer-links { display: grid; gap: .65rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { display: grid; gap: .9rem; }
.footer-contact li { display: flex; align-items: flex-start; gap: .8rem; }
.footer-contact .icon { margin-top: .25rem; color: var(--gold); }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); transition: .3s; }
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom__palette { display: flex; gap: .4rem; }
.footer-bottom__palette i { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); }
.footer-bottom__palette i:nth-child(2) { background: var(--red); }
.footer-bottom__palette i:nth-child(3) { background: var(--navy); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) {
    .footer-grid { gap: 2.2rem 1.5rem; }
    .footer-brand, .footer-grid > :last-child { grid-column: 1 / -1; }
}

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; z-index: 90; right: 22px; bottom: 22px; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .7); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.show-float .wa-float { opacity: 1; transform: none; pointer-events: auto; }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: emo-pulse 2.4s ease-out infinite; }
.wa-float__label { position: absolute; right: calc(100% + 14px); white-space: nowrap; padding: .55rem .95rem; border-radius: 10px; background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 500; box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(8px); transition: .3s var(--ease); pointer-events: none; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { opacity: 1; transform: none; }
@keyframes emo-pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
@media (max-width: 767px) {
    .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
    .wa-float__label { display: none; }
}

/* ---------- Preloader ----------
   Tune here: --pl-gold (color), --pl-intro (minimum time for the logo reveal),
   --pl-exit (curtain duration), --pl-max (hard limit before it always opens).
   Text and on/off: Réglages → Identité. */
.preloader {
    --pl-gold: var(--gold);
    --pl-intro: 2000ms;
    --pl-exit: 1100ms;
    --pl-max: 8000ms;
    position: fixed; inset: 0; z-index: 2147483000; display: none; place-items: center;
    background: #000; color: var(--white); overflow: hidden; contain: strict;
    will-change: transform;
}
.emo-preload, .emo-preload body { overflow: hidden; }
.emo-preload .preloader { display: grid; }
.preloader::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, var(--pl-gold), transparent); opacity: 0; transition: opacity .3s; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; padding: 0 16px; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.preloader__frame { position: relative; padding: clamp(22px, 5vw, 34px) clamp(28px, 7vw, 48px); }
.preloader__logo { opacity: 0; filter: blur(14px); transform: scale(.94); animation: pl-logo 1.3s .15s var(--ease) forwards; }
.preloader__logo img { width: auto; height: auto; max-width: min(240px, 60vw); max-height: 110px; }
.preloader__logo .brand__mark { font-size: clamp(2.2rem, 9vw, 3rem); }
.preloader__logo .brand__tag { font-size: .62rem; }
.preloader__corner { position: absolute; width: 16px; height: 16px; border: 0 solid color-mix(in srgb, var(--pl-gold) 70%, transparent); opacity: 0; animation: pl-corner .9s .55s var(--ease) forwards; }
.preloader__corner--tl { top: 0; left: 0; border-width: 1px 0 0 1px; transform-origin: 0 0; }
.preloader__corner--tr { top: 0; right: 0; border-width: 1px 1px 0 0; transform-origin: 100% 0; }
.preloader__corner--bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; transform-origin: 0 100%; }
.preloader__corner--br { bottom: 0; right: 0; border-width: 0 1px 1px 0; transform-origin: 100% 100%; }
.preloader__line { position: relative; width: min(180px, 50vw); height: 1px; margin-top: 26px; overflow: hidden; transition: opacity .45s var(--ease); }
.preloader__line::before { content: ''; position: absolute; inset: 0; background: color-mix(in srgb, var(--pl-gold) 75%, transparent); transform: scaleX(0); animation: pl-draw 1s .7s var(--ease) forwards; }
.preloader__line::after { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, #fff 50%, transparent); box-shadow: 0 0 10px 1px var(--pl-gold); opacity: 0; transform: translateX(-100%); animation: pl-sweep 2.2s 1.5s ease-in-out infinite; }
.preloader__meter { display: flex; gap: .7em; margin: 18px 0 0; font: 500 .64rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: rgba(255, 255, 255, .5); opacity: 0; animation: pl-fade .8s 1s ease forwards; transition: opacity .45s var(--ease); }
.preloader__pct { min-width: 3.2em; color: color-mix(in srgb, var(--pl-gold) 70%, #fff); font-variant-numeric: tabular-nums; }
.preloader.is-done .preloader__line, .preloader.is-done .preloader__meter { opacity: 0; animation: none; }
.preloader.is-leaving { transform: translateY(-100%); transition: transform var(--pl-exit) cubic-bezier(.76, 0, .24, 1); }
.preloader.is-leaving::after { opacity: 1; }
.preloader.is-leaving .preloader__inner { opacity: 0; transform: translateY(-14vh); }
@keyframes pl-logo { to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes pl-corner { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes pl-draw { to { transform: none; } }
@keyframes pl-sweep { 0% { opacity: 0; transform: translateX(-100%); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(250%); } }
@keyframes pl-fade { to { opacity: 1; } }

/* ---------- Touch devices (iPhone/iPad) ----------
   backdrop-filter is re-rendered every frame when the content behind it moves (scrolling,
   Ken Burns hero), which makes iOS Safari stutter. Use near-identical solid backgrounds instead. */
@media (hover: none) {
    .site-header::after { background: rgba(0, 0, 0, .94); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .hero__arrow { background: rgba(0, 0, 0, .35); backdrop-filter: none; -webkit-backdrop-filter: none; }
    .btn--glass { background: rgba(255, 255, 255, .12); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ---------- Motion preferences ----------
   iOS "Reduce Motion" is common on iPhones. A blanket "all transitions 0.01ms" rule made every
   effect jump on those phones (menu, header, hero). Instead, follow Apple's guidance: remove
   movement (zoom, slide, pulse) and keep fades and the menu reveal. */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero__media img, .page-hero__bg img { transform: none !important; transition: none !important; animation: none !important; }
    .hero__content > *, .main-nav__list > li, .js .reveal, .preloader__logo, .preloader__corner { transform: none !important; }
    .wa-float { transform: none; }
    .wa-float::before, .preloader__line::after { display: none; }
    /* Header: fade instead of slide. Moves off-screen only once invisible; comes back before fading in. */
    .site-header { transition: height .4s var(--ease), opacity .35s var(--ease), transform 0s; }
    .site-header.is-hidden { opacity: 0; transition: height .4s var(--ease), opacity .35s var(--ease), transform 0s .35s; }
    .preloader.is-leaving { transform: none; opacity: 0; transition: opacity .5s var(--ease); }
}
