/* Les Résidences Pointe d'Esny: landing built from Shwena's InDesign page (1200 pt wide, desktop only).
   Desktop sizes are the PDF's points x 1.2 (= the layout at a 1440 px screen). Decorations and full-width
   photos are sized in vw (1 pt = 1/12 vw), so they keep their place at any width.
   Breakpoints: tablet <=1024px (burger menu), stacked <=900px, phone <=600px.
   Colours come from the :root block each template writes from globals.colours. */

@font-face { font-family: 'Wulkan Display'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/WulkanDisplayLight.woff') format('woff'); }
@font-face { font-family: 'Wulkan Display'; font-style: italic; font-weight: 300; font-display: swap; src: url('/fonts/WulkanDisplayLightItalic.woff') format('woff'); }
@font-face { font-family: 'Wulkan Display'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/WulkanDisplayMedium.woff') format('woff'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/Jost-Regular.woff2') format('woff2'); }

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--cream); color: var(--navy); font-family: 'Jost', sans-serif; font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
em { font-style: italic; }
section[id], main[id] { scroll-margin-top: 86px; }  /* anchors land under the sticky header, not behind it */
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { clip: auto; width: auto; height: auto; margin: 0; padding: 12px 24px; z-index: 100000; top: 5px; left: 5px; background: #fff; color: var(--navy); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Shared type */
.title { font-family: 'Wulkan Display', serif; font-size: 38px; font-weight: 300; line-height: 1.2; color: var(--teal); text-wrap: balance; }
.title-lg { font-size: 40px; }
.body { font-size: 16px; line-height: 1.65; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 11px; line-height: 1.2; letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: 8px 22px; border: 1px solid transparent; transition: background-color .3s, color .3s, border-color .3s; }
.btn svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.btn-navy { color: var(--btn-text); background: var(--navy); }
.btn-navy:hover, .btn-navy:focus-visible { background: var(--teal); color: #fff; }
.btn-gold { color: var(--cream); background: var(--gold); }
.btn-gold:hover, .btn-gold:focus-visible { background: var(--navy); }
.btn-outline { color: var(--cream); border-color: var(--gold); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--gold); }

/* ---- Decorations: absolutely placed in their section, behind its content ---- */
.deco-host { position: relative; overflow: hidden; }
.deco-host > :not(.deco) { position: relative; }
.deco { position: absolute; max-width: none; height: auto; pointer-events: none; user-select: none; }

/* ---- Header (sticky) ---- */
.hdr { position: sticky; top: 0; z-index: 99; display: flex; align-items: center; gap: 30px; height: 86px; padding: 0 30px 0 86px; background: var(--ivory); transition: box-shadow .3s; }
.hdr.is-stuck { box-shadow: 0 0 10px rgba(0, 0, 0, .12); }
.hdr-brand { flex: none; }
.hdr-brand img { width: 200px; }
.hdr-nav { margin: 0 auto; }
.hdr-nav ul { display: flex; gap: clamp(40px, 9vw, 150px); }
.hdr-nav a { position: relative; display: block; padding: 6px 0; font-family: 'Wulkan Display', serif; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.hdr-nav a::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: 0; height: 1px; background: var(--teal); opacity: 0; transition: opacity .3s; }
.hdr-nav a:hover::after, .hdr-nav a:focus-visible::after, .hdr-nav a.is-active::after { opacity: 1; }
.hdr-cta { flex: none; min-width: 224px; min-height: 40px; font-family: 'Wulkan Display', serif; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.hdr-toggle { display: none; margin-left: auto; padding: 8px; font-size: 22px; line-height: 1; border: 0; background: none; color: var(--teal); cursor: pointer; }
.hdr-toggle svg { width: 1em; height: 1em; fill: currentColor; }
.hdr-toggle .ic-close, .hdr.menu-open .hdr-toggle .ic-open { display: none; }
.hdr.menu-open .hdr-toggle .ic-close { display: block; }
.hdr-drop { display: none; }

/* ---- Hero ---- */
.hero { position: relative; display: flex; justify-content: center; align-items: flex-end; height: max(520px, 42.9vw); overflow: hidden; color: #fff; text-align: center; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 35% 50%; }  /* keeps the couple in view on phones */
.hero::after { content: ''; position: absolute; inset: 0; background: rgba(108, 153, 156, .58); }  /* the PDF's muted teal wash (fitted on its pixels) */
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 20px; }
.hero-title { max-width: 520px; font-family: 'Wulkan Display', serif; font-size: 38px; font-weight: 300; line-height: 1.2; }
.hero-explore { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; }
.hero-explore::before, .hero-explore::after { content: ''; width: 1px; height: 48px; background: #fff; }

/* ---- Centred text sections (intro, nature, lifestyle, architecture) ---- */
.center-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; width: min(100% - 40px, 480px); margin: 0 auto; text-align: center; }
.center-inner .btn { margin-top: 12px; }
.center-inner .title { width: max-content; max-width: min(900px, 100vw - 40px); }  /* titles run wider than the text, as in the PDF */
.intro { z-index: 1; overflow: clip visible; clip-path: inset(-14vw 0 0 0); padding: 80px 0 31px; background: var(--beige); }  /* flowers spill onto the hero above */
.intro .body { line-height: 1.4; }
.deco-intro-left { left: -8.33vw; top: -13.58vw; width: 40.08vw; }
.deco-intro-right { left: 71.58vw; top: -4.42vw; width: 31.75vw; }

/* ---- Full-width photo bands ---- */
.band img { width: 100%; object-fit: cover; }
.band-aerial img { aspect-ratio: 1200 / 610; }
.band-residences img { aspect-ratio: 1200 / 618; }

/* ---- Text + photo (rental, village): photo right ---- */
.split { display: flex; align-items: center; padding: 59px 4.83% 54px 0; background: var(--cream); }
.split-text { display: flex; flex-direction: column; align-items: center; gap: 40px; width: 40.33%; padding: 0 20px; text-align: center; }
.split-text > * { max-width: 380px; }
.split-text .btn { margin-top: -18px; }
.split-media { width: 54.83%; margin-left: auto; }
.split-media img { width: 100%; aspect-ratio: 658 / 516; object-fit: cover; }
.s-village .split-text { gap: 70px; }
.deco-rental { left: -9.5vw; bottom: -6.92vw; width: 26.92vw; }

/* ---- Nature ---- */
.s-nature { padding: 53px 0 60px; background: var(--beige); }
.deco-nature-right { left: 78.42vw; top: -8.08vw; width: 30.75vw; }
.deco-nature-left { left: -5.67vw; bottom: -10.75vw; width: 35.58vw; }

/* ---- Lifestyle + carousel ---- */
.s-life { z-index: 1; overflow: clip visible; clip-path: inset(0 0 -7vw 0); padding: 61px 0 128px; background: var(--cream); }  /* lines run on into the village section */
.s-life .center-inner { width: min(100% - 40px, 654px); gap: 28px; }
.s-life .body { text-align: justify; }
.deco-life { left: -16vw; top: 26.33vw; width: 49.42vw; }
.carousel { position: relative; width: 83.67%; margin: 52px auto 0; }
.car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.car-track::-webkit-scrollbar { display: none; }
.car-slide { flex: 0 0 100%; scroll-snap-align: start; }
.car-slide img { width: 100%; aspect-ratio: 1004 / 455; object-fit: cover; }
.car-btn { position: absolute; top: calc(50% - 40px); display: flex; padding: 16px; border: 0; background: none; color: #fff; cursor: pointer; }
.car-btn svg { width: 22px; height: 44px; fill: none; stroke: currentColor; stroke-width: 2; }
.car-prev { left: 2px; }
.car-next { right: 2px; }
.car-dots { display: flex; justify-content: center; gap: 12px; margin-top: 20px; }
.car-dots button { width: 13px; height: 13px; padding: 0; border: 1px solid #373337; border-radius: 50%; background: transparent; cursor: pointer; }
.car-dots button[aria-current="true"] { background: #373337; }

/* ---- Architecture ---- */
.s-arch { padding: 73px 0 76px; background: var(--beige); }
.arch-row { display: flex; justify-content: center; gap: 1.5%; margin-top: 65px; padding: 0 3.25%; }
.arch-row img { width: 49.25%; aspect-ratio: 552 / 334; object-fit: cover; }

/* ---- Residence cards ---- */
.s-units { z-index: 1; overflow: clip visible; clip-path: inset(-9vw 0 0 0); padding: 97px 0 118px; background: var(--cream); }  /* the gold blob overlaps the architecture section */
.deco-units-right { left: 83.17vw; top: -8.92vw; width: 30.17vw; }
.deco-units-left { left: -6.33vw; bottom: -7.5vw; width: 26.08vw; }
.units-wrap { width: min(100% - 40px, 80.25%); margin: 0 auto; }
.units-head { max-width: 560px; margin-left: 1.5%; }
.units-head .title { margin-bottom: 18px; }
.units { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 37px; }
.unit { display: flex; flex-direction: column; padding: 0 3.5px; }
.unit + .unit { border-left: 1px solid #6A6260; }
.unit:first-child { padding-left: 0; }
.unit:last-child { padding-right: 0; }
.unit-media { position: relative; }
.unit-media img { width: 100%; aspect-ratio: 188 / 249; object-fit: cover; }
.unit-tag { position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px); padding: 3px 9px; border-radius: 20px; background: rgba(200, 101, 76, .85); color: var(--cream); font-size: 8px; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; }
.unit-name { min-height: 2.4em; margin: 18px 12px 0; font-family: 'Wulkan Display', serif; font-size: 18px; font-weight: 300; line-height: 1.2; color: var(--teal); }
.unit-specs { display: flex; gap: 22px; margin: 24px 12px 0; }
.unit-specs li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: 'Wulkan Display', serif; font-size: 22px; font-weight: 300; line-height: 1.2; }
.unit-specs .ic { width: 36px; height: 30px; color: var(--navy); }
.unit-surface { margin: 14px 12px 0; padding: 0 0 8px 18px; border-bottom: 1px solid #6A6260; position: relative; font-size: 12px; }
.unit-surface::before { content: ''; position: absolute; left: 2px; top: .7em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.unit-cta { display: inline-flex; align-items: center; gap: 10px; margin: 12px 12px 0; font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: #6A6260; }
.unit-cta svg { width: 14px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .3s; }
.unit-cta:hover svg, .unit-cta:focus-visible svg { transform: translateX(4px); }

/* ---- Virtual tour band ---- */
.s-visit { position: relative; min-height: 38.42vw; color: #fff; }
.visit-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s-visit::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(108, 153, 156, .57); }  /* same wash as the hero, over the photo */
.visit-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 40px; padding: 90px 15% 60px 20.75%; }
.visit-text { max-width: 450px; }
.visit-title { font-family: 'Wulkan Display', serif; font-size: 48px; font-weight: 300; line-height: .95; }
.visit-body { max-width: 350px; margin-top: 26px; font-size: 14px; line-height: 1.6; }
.visit-body p + p { margin-top: 1.4em; }
.visit-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.visit-btns .btn { min-height: 29px; font-size: 9px; border-radius: 15px; }
.visit-btns .btn-outline { max-width: 190px; padding: 4px 16px; }
.visit-stats { display: flex; flex-direction: column; gap: 16px; width: 300px; }
.visit-stats li { display: flex; flex-direction: column; }
.stat-value { font-family: 'Wulkan Display', serif; font-size: 40px; font-weight: 300; line-height: 1.1; }
.stat-label { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; }

/* ---- Gap between the two photo bands ---- */
.gap { height: 5.67vw; background: var(--ivory); }
.deco-gap-right { left: 84.17vw; top: -24vw; width: 25.75vw; }

/* ---- Register form over the lagoon photo ---- */
.s-register { position: relative; display: flex; justify-content: center; padding: 19px 20px 37px; min-height: 30.83vw; }
.register-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.register-box { position: relative; width: 688px; max-width: 100%; padding: 35px 20px 30px; background: rgba(255, 255, 255, .85); text-align: center; }
.register-title { font-family: 'Wulkan Display', serif; font-size: 29px; font-weight: 300; line-height: 1.2; color: var(--form); }
.register-text { margin-top: 4px; font-size: 17px; line-height: 1.4; }
.lead-form { width: 473px; max-width: 100%; margin: 22px auto 0; text-align: left; }
.fields { display: flex; flex-wrap: wrap; gap: 9px 5px; }
.field { position: relative; flex: 1 1 100%; }
.field.w50 { flex-basis: calc(50% - 3px); }
.field.w-type { flex: 1 1 85px; }
.field.w-email { flex: 1 1 110px; }
.field.w-country { flex: 1 1 120px; }
.field.w-phone { flex: 1 1 120px; }
.field:not(.consent) > label { position: absolute; top: 5px; left: 7px; font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: var(--form); pointer-events: none; }
.field input:not([type=checkbox]), .field textarea, .field select { display: block; width: 100%; min-height: 34px; padding: 15px 7px 3px; font-size: 13px; background: transparent; border: 1px solid var(--navy); border-radius: 0; outline: 0; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--form); box-shadow: inset 0 0 0 1px var(--form); }
.field textarea { min-height: 76px; resize: vertical; }
.field select { appearance: none; background: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"%3E%3Cpath d="M1 1l4 4 4-4" fill="none" stroke="%2311416C"/%3E%3C/svg%3E') right 7px center / 9px no-repeat; padding-right: 20px; }
.consent { display: flex; align-items: flex-start; gap: 8px; margin-top: 4px; }
.consent input { flex: none; width: 12px; height: 12px; margin: 2px 0 0; accent-color: var(--form); }
.consent label { font-size: 10px; line-height: 1.4; color: var(--form); }
.submit { display: flex; justify-content: center; margin-top: 18px; }
.btn-submit { width: 325px; max-width: 100%; min-height: 30px; padding: 6px 20px; font-size: 12px; letter-spacing: .25em; text-transform: uppercase; color: #FBF9F0; background: var(--form); border: 0; border-radius: 0; cursor: pointer; transition: background-color .3s; }
.btn-submit:hover, .btn-submit:focus-visible { background: var(--navy); }
.btn-submit:disabled { opacity: .5; cursor: default; }
.form-msg { margin-top: 12px; font-size: 13px; text-align: center; }
.form-msg.ok { color: var(--form); }
.form-msg.err { color: #B3261E; }

/* ---- Footer ---- */
.ftr { padding: 40px 20px 20px; background: var(--ivory); color: var(--form); }
.deco-footer-left { left: -9.08vw; top: -30.08vw; width: 37vw; }
.ftr-row { display: flex; width: min(100%, 908px); margin: 0 auto; border-top: 1px solid var(--navy); }
.ftr-row > * { display: flex; align-items: center; margin-top: 4px; min-height: 94px; }
.ftr-logo { justify-content: center; width: 46.4%; border-right: 1px solid var(--navy); }
.ftr-logo img { width: 195px; }
.ftr-logo2 { justify-content: center; width: 19.7%; border-right: 1px solid var(--navy); }
.ftr-logo2 img { width: 112px; }
.ftr-links { width: 33.9%; padding-left: 42px; }
.ftr-links li + li { margin-top: 8px; }
.ftr-links a { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; }
.ftr-links a:hover, .ftr-links a:focus-visible { color: var(--navy); }
.ftr-copy { margin-top: 70px; font-size: 12px; text-align: center; }

/* ---- 404 ---- */
.nf { display: flex; flex-direction: column; align-items: center; gap: 22px; padding: 120px 20px; text-align: center; background: var(--beige); }

/* ---- Entrance animations: [data-anim] plays once when it scrolls into view ---- */
.js [data-anim] { opacity: 0; }
.js [data-anim].animated { animation: fadeIn 1.25s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .js [data-anim] { opacity: 1; } .js [data-anim].animated { animation: none; } }

/* ================= Laptop (<=1280px) ================= */
@media (max-width: 1280px) {
  .hdr { padding-left: 30px; }
  .hdr-nav ul { gap: 40px; }
  .visit-inner { padding-left: 10%; padding-right: 8%; }
  .unit-name { margin-inline: 8px; font-size: 16px; }
  .unit-specs { gap: 14px; margin-inline: 8px; }
  .unit-surface, .unit-cta { margin-inline: 8px; }
}

/* ================= Tablet (<=1024px): burger menu, 3 cards per row ================= */
@media (max-width: 1024px) {
  .hdr { height: 70px; padding: 0 20px; }
  .hdr-brand img { width: 160px; }
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-toggle { display: flex; }
  .hdr-drop { display: block; position: absolute; left: 0; right: 0; top: 100%; visibility: hidden; background: var(--ivory); box-shadow: 0 8px 10px rgba(0, 0, 0, .08); transform-origin: top; transform: scaleY(0); transition: transform .3s, visibility 0s .3s; }
  .hdr.menu-open .hdr-drop { visibility: visible; transform: scaleY(1); transition-delay: 0s; }
  .hdr-drop a { display: block; padding: 14px 20px; font-family: 'Wulkan Display', serif; font-size: 14px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--teal); }
  .hdr-drop li:last-child a { background: var(--gold); color: var(--cream); }
  section[id], main[id] { scroll-margin-top: 70px; }
  .units { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .unit:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
  .unit:nth-child(3n) { padding-right: 0; }
}

/* ================= Stacked (<=900px) ================= */
@media (max-width: 900px) {
  .title, .title-lg { font-size: 32px; }
  .hero-title { font-size: 32px; }
  .split { flex-direction: column; gap: 40px; padding: 60px 0; }
  .split-text { width: 100%; gap: 28px; }
  .split-text .btn { margin-top: 0; }
  .s-village .split-text { gap: 28px; }
  .split-media { width: 100%; }
  .carousel { width: 100%; }
  .s-life .body { text-align: left; }
  .arch-row { flex-direction: column; gap: 12px; padding: 0 20px; }
  .arch-row img { width: 100%; }
  .visit-inner { flex-direction: column; padding: 60px 30px; }
  .visit-stats { flex-direction: row; flex-wrap: wrap; width: auto; gap: 20px 40px; }
  .ftr-row { flex-direction: column; border-top: 0; }
  .ftr-row > * { justify-content: center; width: 100%; min-height: 0; padding: 24px 0; border-right: 0; border-top: 1px solid var(--navy); }
  .ftr-links { padding-left: 0; text-align: center; }
  .ftr-copy { margin-top: 30px; }
}

/* ================= Phone (<=600px): 2 cards per row, fields stacked ================= */
@media (max-width: 600px) {
  .title, .title-lg, .hero-title { font-size: 28px; }
  .visit-title { font-size: 38px; }
  .units { grid-template-columns: repeat(2, 1fr); }
  .unit, .unit:nth-child(n) { padding: 0 4px; border-left: 0; }
  .unit:nth-child(2n) { border-left: 1px solid #6A6260; }
  .unit-name { font-size: 15px; }
  .unit-specs { gap: 10px; }
  .unit-specs li { font-size: 17px; }
  .unit-specs .ic { width: 24px; height: 20px; }
  .register-box { padding: 28px 16px; }
  .field.w50, .field[class*="w-"] { flex-basis: 100%; }
  .car-btn { padding: 8px; }
  .car-btn svg { width: 14px; height: 28px; }
}
