/* ============================================================
   LA PROPOSTA — shared design system
   Cream + deep navy + soft gold. Playfair Display / Hanken Grotesk.
   ============================================================ */

:root {
  /* palette */
  --cream:        #F5F0E8;
  --cream-deep:   #ECE4D6;
  --cream-card:   #FBF8F2;
  --navy:         #1A1A2E;
  --navy-soft:    #23233C;
  --navy-deep:    #141426;
  --ink:          #26222E;   /* body text on cream */
  --ink-soft:     #5A5560;   /* muted body */
  --gold:         #B08A4A;
  --gold-light:   #C7A66B;
  --line:         rgba(26,26,46,0.14);
  --line-dark:    rgba(245,240,232,0.16);

  /* type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* layout */
  --maxw: 1240px;
  --readw: 660px;
  --gutter: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.65;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--gold); color: #fff; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--navy);
  text-wrap: balance;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-block;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  margin-bottom: 3px;
}

.lead {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.7;
  color: var(--ink);
}

p { text-wrap: pretty; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: var(--readw); }

section { position: relative; }

.section-pad { padding-block: clamp(72px, 11vw, 150px); }

.on-dark { background: var(--navy); color: rgba(245,240,232,0.82); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }
.on-dark .eyebrow { color: var(--gold-light); }
.on-dark .eyebrow::before { background: var(--gold-light); }
.cream-deep { background: var(--cream-deep); }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .35s ease, color .35s ease, border-color .35s ease, transform .35s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--gold); color: #fff; }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }

.on-dark .btn-primary { background: var(--cream); color: var(--navy); }
.on-dark .btn-primary:hover { background: var(--gold); color: #fff; }
.on-dark .btn-ghost { color: var(--cream); border-color: var(--line-dark); }
.on-dark .btn-ghost:hover { border-color: var(--cream); }

.btn svg { width: 16px; height: 16px; flex: none; }

/* text link with arrow */
.tlink {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  display: inline-block;
  transition: color .3s ease, gap .3s ease;
}
.tlink:hover { color: var(--navy); }
.on-dark .tlink { color: var(--gold-light); }
.on-dark .tlink:hover { color: var(--cream); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s ease, box-shadow .4s ease, height .3s ease;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-header.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
/* when over a dark hero, before scroll, use light text */
.site-header.over-dark:not(.scrolled) { color: var(--cream); }
.site-header.over-dark:not(.scrolled) .wordmark { color: var(--cream); }
.site-header.over-dark:not(.scrolled) .wordmark .lp-dot { background: var(--gold-light); }
.site-header.over-dark:not(.scrolled) .nav-btn.ghost { color: var(--cream); border-color: var(--line-dark); }
.site-header.over-dark:not(.scrolled) .burger span { background: var(--cream); }

.wordmark {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex; align-items: center; gap: 9px;
  transition: color .4s ease;
}
.wordmark .lp-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }
.wordmark small { font-size: 9px; letter-spacing: 0.32em; opacity: .55; font-family: var(--sans); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* quiet text link in header */
.nav-text {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); padding: 12px 10px; white-space: nowrap;
  transition: color .3s ease;
}
.nav-text:hover { color: var(--gold); }
.site-header.over-dark:not(.scrolled) .nav-text { color: var(--cream); }

.nav-btn {
  font-family: var(--sans);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  padding: 12px 22px; border-radius: 2px;
  border: 1px solid transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .3s ease; line-height: 1; white-space: nowrap;
}
.nav-btn.solid { background: var(--navy); color: var(--cream); }
.nav-btn.solid:hover { background: var(--gold); color: #fff; }
.nav-btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.nav-btn.ghost:hover { border-color: var(--navy); }
.nav-btn svg { width: 15px; height: 15px; }

/* mobile menu toggle */
.burger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 0; }
.burger span { display: block; width: 24px; height: 1.5px; background: var(--navy); transition: transform .3s ease, opacity .3s ease; margin: 0 auto; }

/* mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 99;
  background: var(--navy);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 28px; padding: 40px;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: opacity .35s ease, transform .35s ease;
}
.mobile-nav.open { opacity: 1; pointer-events: auto; transform: none; }
.mobile-nav a { font-family: var(--serif); font-size: 30px; color: var(--cream); font-weight: 500; }
.mobile-nav a.small { font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-light); }
.mobile-nav .btn { font-size: 14px; padding: 18px 34px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  color: var(--cream);
}
.hero .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; display: block; }
.hero .hero-media.flip img { transform: scaleX(-1); }
@media (max-width: 760px) { .hero .hero-media.flip img { object-position: 36% 38%; } }
.hero .scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(18,18,34,0.72) 0%, rgba(18,18,34,0.42) 32%, rgba(18,18,34,0.05) 60%, transparent 100%),
    linear-gradient(180deg, rgba(18,18,34,0.45) 0%, rgba(18,18,34,0.05) 32%, rgba(18,18,34,0.55) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 140px; width: 100%; }
.hero h1 {
  color: var(--cream);
  font-size: clamp(38px, 7.2vw, 96px);
  font-weight: 500;
  line-height: 1.0;
  max-width: 16ch;
  text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero h1 em { font-style: italic; color: var(--gold-light); }
.hero .hero-sub {
  font-size: clamp(17px, 2.3vw, 22px);
  max-width: 30ch; margin-top: 26px;
  color: rgba(245,240,232,0.9); line-height: 1.55;
}
.hero .hero-cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero .hero-note { margin-top: 22px; font-size: 14.5px; color: rgba(245,240,232,0.78); max-width: 44ch; }
.hero .hero-note a { color: var(--gold-light); border-bottom: 1px solid currentColor; }

/* scroll cue */
.scroll-cue { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(245,240,232,0.7); }
.scroll-cue .line { width: 1px; height: 40px; background: linear-gradient(var(--gold-light), transparent); animation: cueDrop 2.4s ease-in-out infinite; }
@keyframes cueDrop { 0%,100%{opacity:.4; transform:scaleY(.7);} 50%{opacity:1; transform:scaleY(1);} }

/* ---------- image placeholder ---------- */
.img-ph {
  position: relative;
  background-color: var(--cream-deep);
  background-image:
    repeating-linear-gradient(135deg, rgba(26,26,46,0.045) 0 2px, transparent 2px 16px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.img-ph.dark { background-color: #1f1f33; background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 2px, transparent 2px 16px); }
.img-ph .ph-label {
  font-family: "SFMono-Regular", ui-monospace, "Menlo", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(26,26,46,0.5); text-align: center; padding: 16px 22px;
  max-width: 80%; line-height: 1.6;
}
.img-ph.dark .ph-label { color: rgba(245,240,232,0.5); }
.img-ph .ph-label::before { content: "⌖  "; opacity: .6; }

/* ---------- generic section header ---------- */
.sec-head { max-width: 880px; }
.sec-head h2 { font-size: clamp(30px, 5vw, 56px); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(245,240,232,0.7); padding-block: clamp(56px,8vw,90px) 40px; }
.site-footer .wordmark { color: var(--cream); font-size: 22px; }
.site-footer .foot-tag { font-family: var(--serif); font-style: italic; font-size: 20px; color: rgba(245,240,232,0.85); margin: 18px 0 28px; }
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 14px; letter-spacing: 0.04em; }
.site-footer .foot-links a { color: rgba(245,240,232,0.78); transition: color .3s; }
.site-footer .foot-links a:hover { color: var(--gold-light); }
.site-footer .foot-links .sep { opacity: .35; }
.site-footer .foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; letter-spacing: 0.06em; color: rgba(245,240,232,0.5); }
.site-footer .foot-bottom .nav a { transition: color .3s; }
.site-footer .foot-bottom .nav a:hover { color: var(--gold-light); }

/* ---------- whatsapp FAB ---------- */
.wa-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(20,20,38,0.32);
  border: 1px solid var(--gold);
  transition: transform .3s ease, background .3s ease;
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); background: var(--gold); }
.wa-fab svg { width: 27px; height: 27px; }
.wa-fab .wa-pulse { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold); animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0%{opacity:.6; transform:scale(1);} 100%{opacity:0; transform:scale(1.5);} }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* Failure-safe: if the environment can't run transitions (frozen clock,
   some headless/preview surfaces), JS adds `no-anim` to <html> so content
   is ALWAYS visible rather than stuck at the hidden base state. */
html.no-anim .reveal,
html.no-anim .reveal.in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .scroll-cue .line, .wa-fab .wa-pulse { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .header-actions .nav-btn.ghost,
  .header-actions .nav-btn.solid { display: none; }
  .header-actions .nav-text { display: none; }
  .header-actions .nav-btn.wa-compact { display: inline-flex; }
  .burger { display: flex; }
}
@media (min-width: 861px) {
  .header-actions .nav-btn.wa-compact { display: none; }
}
