/* ============================================================
   FLOR DE CERA · site.css · components & layout
   ============================================================ */

/* ---------- Typography primitives ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--uva-900);
  margin: 0;
  text-wrap: balance;
}
.display em { font-style: italic; font-weight: 400; color: var(--uva); }

h1.display { font-size: clamp(40px, 7vw, var(--t-76)); }
h2.display { font-size: clamp(31px, 5vw, var(--t-61)); }
h3.display { font-size: clamp(25px, 3.4vw, var(--t-39)); font-weight: 400; }

.eyebrow {
  font-family: var(--f-label);
  font-weight: 500;
  font-size: var(--t-14);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--lila-600);
  margin: 0 0 var(--sp-2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--lila);
  display: inline-block;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--lila);
  display: inline-block;
}
.eyebrow.no-rule::before, .eyebrow.no-rule::after { display: none; }

.lead {
  font-size: clamp(18px, 2vw, var(--t-20));
  line-height: 1.6;
  color: var(--carbon-60);
  max-width: 56ch;
  margin: 0;
}
.body-lg { font-size: var(--t-18); line-height: 1.7; color: var(--carbon-80); }
.muted { color: var(--carbon-60); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 56px); }
.wrap-wide { max-width: var(--maxw-wide); }
.section { padding-block: clamp(64px, 11vw, var(--sp-16)); }
.section-sm { padding-block: clamp(48px, 8vw, var(--sp-12)); }
.bg-marfil { background: var(--marfil); }
.bg-wash { background: var(--lila-wash); }
.bg-carbon { background: var(--carbon); color: var(--marfil); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.section-head { max-width: 720px; margin-bottom: var(--sp-6); }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-label);
  font-weight: 500;
  font-size: var(--t-14);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--uva); color: #fff; box-shadow: var(--sh-cta); }
.btn-primary:hover { background: var(--uva-900); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(82,67,130,.40); }
.btn-primary:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--uva); border-color: var(--linea); }
.btn-outline:hover { border-color: var(--uva); background: var(--uva); color: #fff; }
.btn-ghost { background: transparent; color: var(--carbon); padding-inline: 0; }
.btn-ghost:hover { color: var(--uva); }
.btn-light { background: #fff; color: var(--uva-900); }
.btn-light:hover { background: var(--lila-wash); transform: translateY(-2px); }
.btn-on-dark { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-on-dark:hover { background: #fff; color: var(--uva-900); border-color: #fff; }
.btn-lg { padding: 18px 36px; font-size: var(--t-16); }
.btn-link {
  font-family: var(--f-label); font-weight: 500; font-size: var(--t-14);
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--uva);
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  transition: gap .25s var(--ease), color .2s;
}
.btn-link .arrow { transition: transform .3s var(--ease); }
.btn-link:hover { color: var(--uva-900); }
.btn-link:hover .arrow { transform: translateX(6px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .3s var(--ease);
}
.site-header .wrap-wide { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); width: 100%; }
.site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--linea); height: 64px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; object-fit: contain; transition: filter .4s; }
.brand .wordmark {
  font-family: var(--f-label); font-weight: 500;
  font-size: 19px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--uva-900); line-height: 1; padding-left: 2px; white-space: nowrap;
}
.brand { flex-shrink: 0; }
/* hero state (transparent header over dark hero) */
.site-header:not(.scrolled).over-hero .wordmark { color: #fff; }
.site-header:not(.scrolled).over-hero .nav-links a { color: rgba(255,255,255,.88); }
.site-header:not(.scrolled).over-hero .nav-links a:hover { color: #fff; }
.site-header:not(.scrolled).over-hero .lang-toggle { color: #fff; border-color: rgba(255,255,255,.35); }
.site-header:not(.scrolled).over-hero .brand img { filter: brightness(0) invert(1); }
.site-header:not(.scrolled).over-hero .hamburger span { background: #fff; }

.nav-links { display: flex; align-items: center; gap: clamp(18px, 2vw, 32px); }
.nav-links a {
  font-family: var(--f-label); font-weight: 400;
  font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--carbon); position: relative; padding: 4px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--lila); transition: width .3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--uva); }

.header-right { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--f-label); font-size: 13px; letter-spacing: .1em;
  border: 1px solid var(--linea); border-radius: var(--r-pill);
  padding: 6px 4px; color: var(--carbon-60); background: transparent;
  cursor: pointer; transition: all .25s;
}
.lang-toggle .opt { padding: 2px 9px; border-radius: var(--r-pill); transition: all .2s; }
.lang-toggle .opt.on { background: var(--uva); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 24px; height: 2px; background: var(--carbon); transition: all .3s; }

/* ---------- Sticky booking bar (desktop) ---------- */
.book-bar {
  position: fixed; left: 50%; transform: translateX(-50%) translateY(0);
  bottom: 22px; z-index: 80;
  width: min(960px, calc(100vw - 40px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--linea);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-lg);
  display: flex; align-items: stretch; gap: 2px;
  padding: 8px;
  transition: transform .5s var(--ease), opacity .4s;
}
.book-bar.tucked { transform: translateX(-50%) translateY(130%); opacity: 0; pointer-events: none; }
.bb-field { display: flex; flex-direction: column; justify-content: center; padding: 6px 18px; position: relative; flex: 1; cursor: pointer; border-radius: var(--r-pill); transition: background .2s; }
.bb-field:hover { background: var(--marfil); }
.bb-field + .bb-field::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--linea); }
.bb-label { font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--lila-600); }
.bb-value { font-size: 14px; font-weight: 500; color: var(--carbon); margin-top: 2px; white-space: nowrap; }
.bb-value.placeholder { color: var(--carbon-40); font-weight: 400; }
.book-bar .btn { margin-left: 6px; }

/* mobile floating reserve button */
.fab-book {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80;
  display: none; align-items: center; justify-content: space-between;
  background: var(--uva); color: #fff; border-radius: var(--r-pill);
  padding: 14px 18px 14px 24px; box-shadow: var(--sh-cta);
  font-family: var(--f-label); letter-spacing: .12em; text-transform: uppercase; font-size: 15px;
  border: none; cursor: pointer;
}
.fab-book .pill { background: rgba(255,255,255,.18); border-radius: var(--r-pill); padding: 9px 18px; font-size: 13px; }

/* trust microcopy under CTA */
.trust { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--carbon-60); font-family: var(--f-body); }
.trust svg { width: 14px; height: 14px; color: var(--lila-600); }
.trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--carbon-40); }

/* ---------- Image placeholders (awaiting client photos) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: var(--lila-wash); isolation: isolate;
}
/* real photo fill */
.ph.photo { background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph.photo .ph-tag { display: none; }
.ph::after { /* subtle film grain + vignette */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(40,30,60,.18) 100%);
}
.ph .ph-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  font-family: var(--f-label); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.92); display: inline-flex; align-items: center; gap: 7px;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.ph .ph-tag::before { content: ""; width: 13px; height: 13px; border: 1.5px solid rgba(255,255,255,.85); border-radius: 3px; background: rgba(255,255,255,.12); }
.ph.on-light .ph-tag { color: var(--uva); text-shadow: none; }
.ph.on-light .ph-tag::before { border-color: var(--lila); background: rgba(182,131,185,.16); }
.ph.on-light::after { background: radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(82,67,130,.10) 100%); }

/* gradient moods evoking real subjects */
.ph--vineyard { background:
  linear-gradient(180deg, #2b2540 0%, #4a3d63 24%, #8a6f7e 46%, #d39a76 64%, #f0c187 80%, #f7d9a8 100%); }
.ph--vineyard-day { background:
  linear-gradient(180deg, #9db4c4 0%, #b9c4ba 40%, #8a9a6d 66%, #6c7a4f 100%); }
.ph--dusk { background:
  linear-gradient(160deg, #3d3260 0%, #6a5790 45%, #b07e84 75%, #e0a878 100%); }
.ph--villa { background:
  linear-gradient(150deg, #ece4dc 0%, #ddd0c4 40%, #c9b5a8 72%, #a98f86 100%); }
.ph--interior { background:
  linear-gradient(155deg, #efe9e2 0%, #ddd2c6 45%, #c2ad9d 100%); }
.ph--wine { background:
  radial-gradient(120% 130% at 70% 10%, #5a2d3a 0%, #3a1f2c 40%, #241522 100%); }
.ph--pool { background:
  linear-gradient(165deg, #cfe0e2 0%, #9fc3c7 45%, #6f9ca6 78%, #4f7d8a 100%); }
.ph--green { background:
  linear-gradient(160deg, #7d8c68 0%, #5c6b4e 50%, #3f4a37 100%); }
.ph--gold { background:
  linear-gradient(160deg, #f2dcb0 0%, #e2b97f 50%, #c98a5b 100%); }
.ph--event { background:
  linear-gradient(180deg, #3a2f50 0%, #6a5790 40%, #c99a86 72%, #f0c187 100%); }

/* vineyard rows silhouette accent for hero */
.ph-rows { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; z-index: 1; opacity: .55;
  background:
   repeating-linear-gradient(95deg, rgba(40,30,50,.0) 0 26px, rgba(30,22,40,.28) 26px 30px); 
   -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
   mask-image: linear-gradient(180deg, transparent, #000 60%);
}

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--linea); border-radius: var(--r-card);
  overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--sh-lg); }

/* value props */
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
.vp { padding: var(--sp-4) var(--sp-3); border-radius: var(--r-card); background: #fff; border: 1px solid var(--linea); transition: all .4s var(--ease); }
.vp:hover { border-color: var(--lila); box-shadow: var(--sh-md); transform: translateY(-4px); }
.vp .vp-num { font-family: var(--f-display); font-style: italic; font-size: var(--t-31); color: var(--uva); line-height: 1; }
.vp h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-25); color: var(--uva-900); margin: 14px 0 8px; }
.vp p { margin: 0; color: var(--carbon-60); font-size: var(--t-16); }

/* property / villa cards */
.prop-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--linea); border-radius: var(--r-card); overflow: hidden; transition: all .45s var(--ease); }
.prop-card:hover { box-shadow: var(--sh-lg); transform: translateY(-6px); }
.prop-card .prop-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.prop-card .prop-media .ph { position: absolute; inset: 0; border-radius: 0; transition: transform 1.1s var(--ease); }
.prop-card:hover .prop-media .ph { transform: scale(1.06); }
.prop-badge { position: absolute; top: 14px; left: 14px; z-index: 4; background: rgba(255,255,255,.92); color: var(--uva); font-family: var(--f-label); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 13px; border-radius: var(--r-pill); }
.prop-body { padding: var(--sp-3); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.prop-head h3 { font-family: var(--f-display); font-weight: 500; font-size: var(--t-31); color: var(--uva-900); margin: 0; line-height: 1.05; }
.prop-price { font-family: var(--f-label); font-size: 14px; color: var(--carbon-60); white-space: nowrap; }
.prop-price b { color: var(--uva); font-size: var(--t-20); font-weight: 600; }
.prop-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--carbon-60); }
.prop-meta span { display: inline-flex; align-items: center; gap: 6px; }
.prop-meta svg { width: 15px; height: 15px; color: var(--lila-600); }
.prop-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--linea-2); }

/* amenity chips */
.amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.amen { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--linea); border-radius: var(--r-card-sm); background: #fff; }
.amen svg { width: 20px; height: 20px; color: var(--uva); flex-shrink: 0; }
.amen span { font-size: 15px; }

/* testimonials */
.quote-card { background: #fff; border: 1px solid var(--linea); border-radius: var(--r-card); padding: var(--sp-4); display: flex; flex-direction: column; gap: 18px; }
.stars { display: flex; gap: 3px; color: var(--lila); }
.stars svg { width: 17px; height: 17px; }
.quote-card blockquote { font-family: var(--f-display); font-size: var(--t-25); font-weight: 400; line-height: 1.35; color: var(--uva-900); margin: 0; font-style: italic; }
.quote-card .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote-card .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--lila-wash); flex-shrink: 0; }
.quote-card .who b { display: block; font-size: 15px; color: var(--carbon); }
.quote-card .who small { color: var(--carbon-60); }

/* FAQ */
.faq { border-top: 1px solid var(--linea); }
.faq-item { border-bottom: 1px solid var(--linea); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 4px; background: none; border: none; cursor: pointer; text-align: left; font-family: var(--f-display); font-size: var(--t-25); font-weight: 500; color: var(--uva-900); transition: color .2s; }
.faq-q:hover { color: var(--uva); }
.faq-q .ic { width: 26px; height: 26px; flex-shrink: 0; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--lila); transition: transform .3s var(--ease); }
.faq-q .ic::before { top: 50%; left: 4px; right: 4px; height: 1.5px; transform: translateY(-50%); }
.faq-q .ic::after { left: 50%; top: 4px; bottom: 4px; width: 1.5px; transform: translateX(-50%); }
.faq-item.open .faq-q .ic::after { transform: translateX(-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a div { padding: 0 4px 26px; color: var(--carbon-60); font-size: var(--t-18); line-height: 1.7; max-width: 70ch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--carbon); color: rgba(255,255,255,.7); padding-block: var(--sp-8) var(--sp-4); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: var(--sp-4); padding-bottom: var(--sp-6); border-bottom: 1px solid rgba(255,255,255,.14); }
.footer-brand img { width: 44px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer-brand .wordmark { font-family: var(--f-label); letter-spacing: .3em; font-size: 18px; color: #fff; }
.footer-col h4 { font-family: var(--f-label); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lila); margin: 0 0 18px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.7); font-size: 15px; margin-bottom: 11px; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form input { flex: 1; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-pill); padding: 12px 18px; color: #fff; font-family: var(--f-body); font-size: 14px; }
.news-form input::placeholder { color: rgba(255,255,255,.5); }
.news-form button { background: var(--lila); border: none; color: #fff; border-radius: var(--r-pill); width: 46px; cursor: pointer; flex-shrink: 0; transition: background .2s; }
.news-form button:hover { background: var(--uva); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: var(--sp-3); font-size: 13px; color: rgba(255,255,255,.5); }
.footer-bottom .socials { display: flex; gap: 16px; }
.footer-bottom .socials a { color: rgba(255,255,255,.7); }
.footer-bottom .socials a:hover { color: var(--lila); }

/* ---------- Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { position: relative; min-height: 100vh !important; display: flex; align-items: flex-end; overflow: hidden; }
.page-hero .ph { position: absolute; inset: 0; border-radius: 0; z-index: 0; transform: none !important; }
.page-hero .page-hero-veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,15,30,.35) 0%, transparent 30%, rgba(20,15,30,.55) 100%); }
.page-hero .wrap { position: relative; z-index: 2; padding-bottom: var(--sp-8); color: #fff; }
.page-hero h1.display { color: #fff; }
.page-hero .eyebrow { color: #fff; }
.page-hero .eyebrow::before, .page-hero .eyebrow::after { background: var(--lila); }
.page-hero .lead { color: rgba(255,255,255,.88); }
.page-hero .ph-tag { left: auto; right: 20px; }
.page-hero h1.display em,
.bg-carbon .display em,
.vino-section .display em,
.ph.photo .display em { color: #e6cff3; font-style: italic; }
.hero .ph-tag { left: auto; right: 22px; bottom: 18px; }

/* breadcrumb */
.crumb { display: flex; gap: 8px; align-items: center; font-family: var(--f-label); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumb a:hover { color: #fff; }

/* utility */
.stack-sm > * + * { margin-top: var(--sp-2); }
.stack > * + * { margin-top: var(--sp-3); }
.row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--linea); border: none; margin: 0; }
.pill-tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-label); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--uva); background: var(--lila-wash); border-radius: var(--r-pill); padding: 7px 15px; }

/* honest scarcity / social-proof microcopy */
.scarcity { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--carbon-60); font-weight: 500; }
.scarcity b { color: var(--carbon); font-weight: 600; }
.scarcity .pulse { width: 8px; height: 8px; border-radius: 50%; background: #d97706; box-shadow: 0 0 0 0 rgba(217,119,6,.5); animation: pulse 2.2s infinite; flex-shrink: 0; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,119,6,.5); } 70% { box-shadow: 0 0 0 9px rgba(217,119,6,0); } 100% { box-shadow: 0 0 0 0 rgba(217,119,6,0); } }
@media (prefers-reduced-motion: reduce) { .scarcity .pulse { animation: none; } }
