/* =========================================================
   Luxe Retreats — light editorial theme, drawn from the logo.
   Cream ground, ink line-work + type, antique-gold accents.
   Mobile-first; media queries scale up. Theme lives in :root.
   ========================================================= */

:root {
  /* --- Brand theme (sampled from the logo) --- */
  --cream: #F7F4EE;          /* warm off-white canvas */
  --cream-2: #EFEAE0;        /* alternating section surface */
  --ink: #1C221E;            /* warm near-black: type + outlines */
  --ink-70: #43473f;         /* softened ink */
  --taupe: #5A564E;          /* muted secondary text */
  --gold: #967A44;           /* antique brass accent */
  --gold-dark: #7C6435;      /* pressed / hover gold */
  --line: #DED8CC;           /* hairline borders on cream */

  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1200px;
  --radius: 2px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

/* =========================================================
   Opening intro overlay — pure CSS so it never depends on (or is trapped by)
   JS. The emblem and wordmark fade in, a gold line draws, then the whole
   overlay lifts away to reveal the site. Plays once per session (see the head
   script that adds `.intro-seen`), and is skipped entirely under reduced motion.
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; background: var(--cream);
  animation: introLift .9s var(--ease) 1.9s forwards;
}
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.intro__mark { width: 96px; height: 96px; opacity: 0; transform: translateY(12px) scale(.94); animation: introIn 1s var(--ease) .15s forwards; }
.intro__word { font-family: var(--font-heading); font-size: 1.7rem; letter-spacing: .08em; opacity: 0; transform: translateY(10px); animation: introIn 1s var(--ease) .5s forwards; }
.intro__line { width: 0; height: 1px; background: var(--gold); animation: introLine 1.1s var(--ease) .8s forwards; }
@keyframes introIn { to { opacity: 1; transform: none; } }
@keyframes introLine { to { width: 150px; } }
@keyframes introLift { to { opacity: 0; visibility: hidden; transform: translateY(-101%); } }
.intro-seen .intro { display: none; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 .4em;
  letter-spacing: .01em;
}
h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
p { margin: 0 0 1em; color: var(--taupe); }
em { font-style: italic; }
a { color: var(--gold-dark); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(4.5rem, 12vw, 9rem) 0; position: relative; }
.section--surface { background: var(--cream-2); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream); padding: .6rem 1rem; font-weight: 500;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --- Eyebrow label --- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .9rem;
}
.eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--gold); }

.section-head { max-width: 24ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--cream); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--gold); }
.btn--ghost:hover { background: transparent; color: var(--gold-dark); border-color: var(--gold-dark); }
.btn--lg { padding: 1.1rem 2.6rem; }

/* --- Header / nav --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.nav__brand { display: inline-flex; align-items: center; gap: .7rem; }
.nav__mark { width: 34px; height: 34px; }
.nav__word { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: .06em; line-height: 1; }
.nav__word-1 { color: var(--ink); font-weight: 600; }
.nav__word-2 { color: var(--gold-dark); font-style: italic; }
.nav__links { list-style: none; display: none; gap: 2.2rem; margin: 0; padding: 0; align-items: center; }
.nav__links a { font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 400; transition: color .25s var(--ease); }
.nav__links a:hover { color: var(--gold-dark); }
.nav__cta { border: 1px solid var(--gold); padding: .55rem 1.2rem; color: var(--gold-dark) !important; border-radius: var(--radius); }
.nav__cta:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); }
.nav__toggle { background: none; border: 0; font-size: 1.5rem; color: var(--ink); cursor: pointer; line-height: 1; }

.nav__links.is-open {
  display: flex; flex-direction: column; gap: 1.4rem; align-items: flex-start;
  position: absolute; top: 100%; left: 0; right: 0;
  background: color-mix(in srgb, var(--cream) 97%, transparent);
  backdrop-filter: blur(12px);
  padding: 1.6rem 1.5rem 2rem; border-bottom: 1px solid var(--line);
}

/* --- Hero --- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 7rem 0 5rem;
  background: var(--cream);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.hero__logo { width: clamp(240px, 60vw, 360px); height: auto; }
.hero__lead {
  max-width: 42ch; margin: 1.5rem auto 2.4rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--taupe); font-weight: 300;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero__cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--gold); border-radius: 13px;
}
.hero__cue span {
  position: absolute; top: 8px; left: 50%; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--gold); border-radius: 2px; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(13px); } }

/* --- Promise --- */
.promise { background: var(--cream); }
.promise__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
.promise__text { max-width: 30ch; }
.promise__lead {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.9rem);
  line-height: 1.3;
  color: var(--ink);
  font-weight: 400;
  max-width: 24ch;
}
.promise__lead em { color: var(--gold-dark); }
.promise__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.promise__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.promise__media:hover img { transform: scale(1.04); }

/* --- Pillars --- */
.pillars { background: var(--cream-2); }
.pillars__inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.pillars__media { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); }
.pillars__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pillars__media:hover img { transform: scale(1.04); }
.pillars__list { list-style: none; margin: 0; padding: 0; }
.pillar { padding: 2.2rem 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__body h3 { margin-bottom: .3em; }
.pillar__body p { max-width: 60ch; margin: 0; }

/* --- Feature image band --- */
.feature {
  position: relative; display: flex; align-items: flex-end;
  min-height: clamp(340px, 64vh, 640px); overflow: hidden; isolation: isolate;
  background: var(--cream-2);
}
.feature__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.feature__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(20,24,20,.72) 0%, rgba(20,24,20,.15) 45%, transparent 75%);
}
.feature__cap { position: relative; padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.eyebrow--on-dark { color: #E7D3A1; }
.eyebrow--on-dark::before { background: #E7D3A1; }
.feature__line {
  font-family: var(--font-heading); color: var(--cream);
  font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.15; margin: 0; max-width: 20ch;
}

/* --- Gallery --- */
.gallery { background: var(--cream); }
.gallery__grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.shot {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 5;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20,24,20,.5), transparent 42%); z-index: 1; }
.shot figcaption {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 2;
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cream);
}
.gallery__note { margin-top: 1.8rem; font-size: .82rem; font-style: italic; color: var(--taupe); }

/* --- The standard (brand statement band) --- */
.standard { background: var(--cream-2); text-align: center; }
.standard__inner { max-width: 42ch; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.standard__emblem { width: 84px; height: 84px; margin-bottom: 1.8rem; opacity: .95; }
.standard__quote {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.32; color: var(--ink); font-weight: 400; margin: 0; max-width: 20ch;
}
.standard__quote em { color: var(--gold-dark); font-style: italic; }

/* --- Locations chips --- */
.locations { background: var(--cream); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.chips li {
  font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line); border-radius: 100px; padding: .6rem 1.3rem;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}
.chips li:hover { border-color: var(--gold); color: var(--gold-dark); }

/* --- Teaser --- */
.teaser { background: var(--cream-2); text-align: center; }
.teaser__inner { max-width: 46ch; margin: 0 auto; }
.teaser__copy { margin: 1rem auto 1.8rem; max-width: 44ch; }
.teaser .btn { margin-top: .4rem; }

/* --- Enquire --- */
.enquire { background: var(--cream); }
.enquire__inner { display: grid; grid-template-columns: 1fr; gap: 2.8rem; }
.enquire__intro { max-width: 30ch; }
.form { display: flex; flex-direction: column; gap: 1.3rem; max-width: 30rem; }
.form__row { display: flex; flex-direction: column; gap: .5rem; }
.form label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--taupe); }
.form label span { text-transform: none; letter-spacing: .02em; opacity: .8; }
.form input, .form textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .9rem 1rem; transition: border-color .25s var(--ease);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--gold); }
.form textarea { resize: vertical; }
.form .btn { align-self: flex-start; margin-top: .3rem; }
.form__fine { font-size: .74rem; color: var(--taupe); margin: 0; }
.form__status { font-size: .85rem; margin: .2rem 0 0; color: var(--taupe); }
.form__status.is-ok { color: var(--gold-dark); }
.form__status.is-err { color: #9a3b2f; }

/* --- Footer --- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--cream); }
.site-footer__inner { display: flex; flex-direction: column; gap: 1.8rem; justify-content: space-between; }
.site-footer__brand { display: flex; align-items: center; gap: .9rem; }
.site-footer__mark { width: 40px; height: 40px; }
.site-footer__brand .nav__word-1 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 600; }
.site-footer__brand .nav__word-2 { font-family: var(--font-heading); font-size: 1.3rem; color: var(--gold-dark); font-style: italic; }
.site-footer__brand p, .site-footer__meta p { font-size: .82rem; color: var(--taupe); margin: .5rem 0 0; }
.site-footer__meta a { font-size: .9rem; color: var(--gold-dark); letter-spacing: .04em; }

/* =========================================================
   Motion (opt-in) — armed by JS only, so no-JS / reduced-motion
   visitors always see content at rest.
   ========================================================= */
.is-anim-armed .js-reveal { opacity: 0; transform: translateY(28px); will-change: transform, opacity; }
.pillars__list.is-reveal-armed .pillar { opacity: 0; transform: translateX(-20px); }
.is-hero-armed [data-hero] { opacity: 0; transform: translateY(22px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .is-anim-armed .js-reveal,
  .pillars__list.is-reveal-armed .pillar,
  .is-hero-armed [data-hero] { opacity: 1; transform: none; }
  .hero__cue span { animation: none; }
}

/* --- Larger screens --- */
@media (min-width: 760px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; }
  .promise__inner { grid-template-columns: 1.05fr .95fr; gap: 4.5rem; }
  .promise__text { align-self: center; }
  .promise__media { aspect-ratio: auto; }
  .pillars__inner { grid-template-columns: 1.15fr .85fr; gap: 4.5rem; align-items: stretch; }
  .pillars__media { aspect-ratio: auto; }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .enquire__inner { grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
  .site-footer__inner { flex-direction: row; align-items: flex-end; }
  .site-footer__meta { text-align: right; }
}
