/* =========================================================
   Sal Privé — Balearic luxury party landing
   Light edition: Formentera whitewash — cream + sand,
   sunset coral, champagne gold, turquoise sea.
   Self-contained, no build, no dependencies.
   ========================================================= */

:root {
  --cream:      #fcf8f1;   /* page background */
  --sand:       #f3ebdd;   /* alternating section */
  --white:      #ffffff;   /* cards */
  --ink:        #16222f;   /* headings — deep sea navy */
  --body:       #51606d;   /* body text */
  --muted:      #8b96a0;
  --coral:      #ff6f4d;   /* sunset coral */
  --coral-soft: #ff9576;
  --gold:       #b8862f;   /* champagne gold, readable on light */
  --gold-bright:#e9b755;   /* for gradient fills */
  --aqua:       #19a79f;   /* turquoise water */
  --ink-soft:   #2a3947;
  --line:       rgba(22, 34, 47, 0.12);
  --shadow:     0 18px 50px -28px rgba(22, 34, 47, 0.45);

  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* ---------- Shared ---------- */
.section { padding: clamp(72px, 11vw, 140px) clamp(20px, 6vw, 80px); }
.section__head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--coral);
  margin-bottom: 1.1rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section__lead {
  margin-top: 1.4rem;
  color: var(--body);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--coral-soft) 100%);
  color: #3a1e08;
  box-shadow: 0 14px 32px -12px rgba(233, 183, 85, 0.7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -14px rgba(255, 122, 92, 0.65); }
.btn--ghost {
  background: rgba(22, 34, 47, 0.03);
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.link {
  display: inline-block; margin-top: 0.4rem;
  color: var(--gold); font-weight: 600; font-size: 0.95rem;
  transition: letter-spacing 0.3s var(--ease), color 0.3s var(--ease);
}
.link:hover { letter-spacing: 0.02em; color: var(--coral); }

/* ===================== NAV ===================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1.3rem clamp(20px, 6vw, 80px);
  transition: padding 0.4s var(--ease), background 0.4s var(--ease),
              backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-scrolled {
  padding: 0.8rem clamp(20px, 6vw, 80px);
  background: rgba(252, 248, 241, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -22px rgba(22, 34, 47, 0.5);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; }
.nav__mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--coral) 70%);
  box-shadow: 0 0 18px -2px rgba(255, 122, 92, 0.6);
  position: relative; flex: none;
}
.nav__mark::after {
  content: ""; position: absolute; inset: 4px 8px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
}
.nav__word {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  letter-spacing: 0.01em; color: #fff; transition: color 0.4s var(--ease);
}
.nav__links { display: flex; gap: 1.9rem; margin-left: auto; }
.nav__links a {
  font-size: 0.92rem; color: rgba(255, 255, 255, 0.9); opacity: 0.9; position: relative;
  transition: opacity 0.3s var(--ease), color 0.4s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px; background: var(--gold-bright); transition: width 0.3s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { width: 100%; }
.nav__cta { padding: 0.6rem 1.2rem; }
.nav .nav__cta.btn--ghost { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.nav .nav__cta.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; margin-left: auto; }
.nav__burger span { width: 26px; height: 2px; background: #fff; transition: 0.3s var(--ease); }

/* once scrolled onto the light page, flip nav to dark ink */
.nav.is-scrolled .nav__word { color: var(--ink); }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a::after { background: var(--gold); }
.nav.is-scrolled .nav__burger span { background: var(--ink); }
.nav.is-scrolled .nav__cta.btn--ghost { background: rgba(22, 34, 47, 0.03); color: var(--ink); border-color: var(--line); }

/* ===================== HERO ===================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; background: #0c1a26; }

/* aerial yacht video background */
.hero__video {
  position: absolute; inset: 0; z-index: -3;
  width: 100%; height: 100%; object-fit: cover;
}

/* contrast scrim so the headline always reads over the footage */
.hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(9, 19, 28, 0.78) 0%, rgba(9, 19, 28, 0.45) 42%, rgba(9, 19, 28, 0.12) 75%),
    linear-gradient(180deg, rgba(9, 19, 28, 0.55) 0%, rgba(9, 19, 28, 0.25) 35%, rgba(9, 19, 28, 0.70) 100%);
}

.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.16; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.hero__inner { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 7rem clamp(20px, 6vw, 80px) 5rem; }
.hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 7.5vw, 5.6rem); line-height: 1.02; letter-spacing: -0.02em;
  color: #fff; max-width: 14ch;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
.hero__title em {
  font-weight: 400;
  background: linear-gradient(120deg, var(--coral-soft) 0%, var(--gold-bright) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 1.8rem; max-width: 56ch; font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: rgba(255, 255, 255, 0.92); text-shadow: 0 1px 18px rgba(0,0,0,0.3); }
.hero__cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__trust { margin-top: 2.4rem; font-size: 0.82rem; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.72); }
/* ghost button reads light over the dark video */
.hero .btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.45); backdrop-filter: blur(4px); }
.hero .btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.hero__scroll {
  position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold); margin-top: 7px;
  animation: scroll 1.8s ease-in-out infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80% { opacity: 0; transform: translateY(12px); } }

/* ===================== MARQUEE ===================== */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); overflow: hidden; padding: 1.1rem 0; }
.marquee__track {
  display: flex; align-items: center; gap: 1.4rem; width: max-content;
  animation: marquee 38s linear infinite;
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic; color: var(--ink-soft);
}
.marquee__track .dot { color: var(--coral); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===================== SERVICES ===================== */
.services { background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); }
.grid { display: grid; gap: 1.4rem; max-width: var(--maxw); margin: 0 auto; }
.grid--services { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.9rem;
  box-shadow: var(--shadow);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: rgba(184, 134, 47, 0.5); box-shadow: 0 26px 60px -28px rgba(22, 34, 47, 0.5); }
.card__ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(233,183,85,0.22), rgba(255,111,77,0.18));
  color: var(--gold); font-size: 1.4rem; margin-bottom: 1.3rem;
}
.card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); margin-bottom: 0.6rem; }
.card p { color: var(--body); font-size: 0.97rem; }

/* ===================== EXPERIENCES ===================== */
.experiences { background: var(--sand); }
.grid--exp { grid-template-columns: repeat(3, 1fr); }
.exp {
  border-radius: 20px; overflow: hidden; background: var(--white);
  border: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.exp:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -34px rgba(22, 34, 47, 0.55); }
.exp__media {
  height: 240px;
  background-image:
    linear-gradient(180deg, rgba(22,34,47,0) 55%, rgba(22,34,47,0.28) 100%),
    var(--img, none),
    linear-gradient(135deg, #cfe0e0, var(--coral-soft) 140%);
  background-size: cover; background-position: center; position: relative;
  transition: transform 0.7s var(--ease);
}
.exp:hover .exp__media { transform: scale(1.05); }
.exp__body { padding: 1.8rem 1.7rem 2rem; }
.exp__tag { text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.68rem; font-weight: 600; color: var(--coral); margin-bottom: 0.7rem; }
.exp__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--ink); margin-bottom: 0.7rem; }
.exp__body p { color: var(--body); font-size: 0.97rem; margin-bottom: 1rem; }

/* ===================== PROCESS ===================== */
.process { background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.steps { list-style: none; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.step { padding: 2.2rem 1.8rem; border-left: 1px solid var(--line); position: relative; }
.step__n {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 300;
  color: transparent; -webkit-text-stroke: 1px var(--gold); display: block; margin-bottom: 1rem;
}
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: var(--ink); margin-bottom: 0.5rem; }
.step p { color: var(--body); font-size: 0.97rem; }

/* ===================== VIBE / GALLERY ===================== */
.vibe { background: var(--cream); }
.gallery { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 1rem; }
.gallery__item {
  border-radius: 16px;
  background-image:
    linear-gradient(180deg, rgba(22,34,47,0) 45%, rgba(22,34,47,0.30) 100%),
    var(--img, none),
    linear-gradient(135deg, #cfe0e0, var(--coral-soft) 150%);
  background-size: cover; background-position: center;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}
.gallery__item:hover { transform: scale(1.02); filter: saturate(1.12) brightness(1.04); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ===================== STATS ===================== */
.stats { background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); padding-top: 0; }
.stats__row {
  max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem;
  border-top: 1px solid var(--line); padding-top: clamp(50px, 7vw, 90px);
}
.stat { text-align: center; }
.stat__n {
  display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400;
  background: linear-gradient(135deg, var(--coral), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__l { color: var(--body); font-size: 0.92rem; }

/* ===================== ENQUIRE ===================== */
.enquire { background: var(--sand); }
.enquire__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.enquire__copy .section__title, .enquire__copy .eyebrow { text-align: left; }
.enquire__contacts { list-style: none; margin-top: 2rem; display: grid; gap: 1rem; }
.enquire__contacts li { display: flex; gap: 0.8rem; align-items: baseline; color: var(--body); font-size: 0.98rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.enquire__contacts span:first-child { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; color: var(--coral); min-width: 80px; font-weight: 600; }
.enquire__contacts a { color: var(--ink); border-bottom: 1px solid var(--line); }
.enquire__contacts a:hover { border-color: var(--gold); color: var(--gold); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 0.85rem 1rem;
  color: var(--ink); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 134, 47, 0.16); }
.field select { appearance: none; cursor: pointer; }
.form__submit { width: 100%; margin-top: 0.6rem; }
.form__note { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 0.9rem; }
.field--ok input, .field--ok select { border-color: var(--aqua); }
.field--err input, .field--err select { border-color: var(--coral); }
.form__sent { text-align: center; padding: 2rem; color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--cream); border-top: 1px solid var(--line); padding: 3.5rem clamp(20px, 6vw, 80px); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.footer__brand .nav__word { color: var(--ink); }
.footer__brand p { width: 100%; color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { color: var(--ink-soft); opacity: 0.85; font-size: 0.92rem; }
.footer__links a:hover { opacity: 1; color: var(--gold); }
.footer__legal { width: 100%; color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 1.5rem; margin-top: 0.5rem; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .grid--services, .grid--exp, .steps, .stats__row { grid-template-columns: 1fr 1fr; }
  .enquire__grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(252, 248, 241, 0.97); backdrop-filter: blur(14px);
    padding: 1.6rem clamp(20px, 6vw, 80px); margin: 0;
  }
  .grid--services, .grid--exp, .steps, .stats__row, .form__row { grid-template-columns: 1fr; }
  .step { border-left: none; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--tall, .gallery__item--wide { grid-row: auto; grid-column: auto; }
  .hero__title { font-size: clamp(2.4rem, 11vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
