/* Santera Village — shared stylesheet for all pages. No build step. */

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

:root {
  --bg:          #FAF7F2;
  --bg-alt:      #F3ECE2;
  --ink:         #2B1810;
  --brand:       #230007;
  --muted:       #6B5A4D;   /* 6.15:1 on --bg */
  --accent:      #8A6A3D;   /* 4.67:1 on --bg — safe for text */
  --accent-soft: #C9A97D;   /* decorative only: rules, borders, dark bg */
  --wa:          #0F7A6C;   /* 5.22:1 with white */
  --wa-dark:     #0B5F55;
  --error:       #A02F2F;
  --maxw:        1152px;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); }
h2 { font-size: clamp(2rem, 5vw, 3rem); }
h3 { font-size: 1.25rem; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 0; top: -100%;
  background: var(--ink); color: var(--bg);
  padding: .75rem 1.25rem; z-index: 2000; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------- header */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  transition: background-color .3s ease, box-shadow .3s ease;
}
header.scrolled, header.solid {
  background: rgba(250, 247, 242, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(43, 24, 16, .12);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 50px; width: auto; display: block; transition: filter .3s ease; }
header:not(.scrolled):not(.solid) .logo img { filter: brightness(0) invert(1); }

nav { display: none; gap: 1.75rem; }
nav a {
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: .35rem 0;
  border-bottom: 1px solid transparent; transition: color .25s, border-color .25s;
}
header.scrolled nav a, header.solid nav a { color: var(--ink); }
header:not(.scrolled):not(.solid) nav a { color: #fff; }
header.scrolled nav a:hover, header.solid nav a:hover { color: var(--accent); border-bottom-color: var(--accent); }
header:not(.scrolled):not(.solid) nav a:hover { border-bottom-color: var(--accent-soft); }
nav a[aria-current="page"] { border-bottom-color: currentColor; }

.nav-cta {
  display: none; align-items: center; gap: .5rem;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: .6rem 1.1rem; border-radius: 999px;
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  transition: background-color .25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--wa-dark); }
.nav-cta svg { width: 17px; height: 17px; fill: currentColor; }
.nav-cta.book { background: var(--ink); }
.nav-cta.book:hover { background: var(--brand); }

.menu-toggle {
  display: inline-flex; background: none; border: none; cursor: pointer;
  padding: .5rem; color: #fff;
}
header.scrolled .menu-toggle, header.solid .menu-toggle { color: var(--ink); }
.menu-toggle svg { width: 26px; height: 26px; }

.mobile-menu {
  display: none; background: var(--bg);
  border-top: 1px solid rgba(43, 24, 16, .1);
  padding: 1rem 1.25rem 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: .7rem 0; text-decoration: none;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 1px solid rgba(43, 24, 16, .07);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ------------------------------------------------------- page hero (inner pages) */
.page-hero {
  position: relative; padding: 9rem 1.25rem 4rem;
  display: flex; align-items: flex-end; min-height: 42vh;
  overflow: hidden;
}
.page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,6,.45) 0%, rgba(20,10,6,.6) 100%);
}
.page-hero-content { position: relative; z-index: 2; color: #fff; max-width: 40rem; }
.breadcrumb { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; opacity: .85; margin-bottom: .75rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 { margin-bottom: .5rem; }
.page-hero-sub { opacity: .92; max-width: 34rem; }

/* --------------------------------------------------------- hero (home) */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 7rem 1.25rem 5rem; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,10,6,.55) 0%, rgba(20,10,6,.35) 45%, rgba(20,10,6,.65) 100%);
}
.hero-content { position: relative; z-index: 2; color: #fff; max-width: 46rem; }
.eyebrow {
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase;
  margin-bottom: 1.25rem; color: var(--accent-soft);
}
.hero h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.075rem; opacity: .94; max-width: 34rem; margin: 0 auto 2rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 1.75rem; border-radius: 999px; text-decoration: none;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .25s, color .25s, border-color .25s;
  border: 1px solid transparent; cursor: pointer;
  font-family: inherit;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,.65); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--brand); }
.btn-outline { border: 1px solid rgba(43,24,16,.3); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); background: rgba(43,24,16,.04); }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.scroll-cue {
  position: absolute; bottom: 1.75rem; left: 50%; translate: -50% 0;
  z-index: 2; color: #fff; opacity: .85;
  animation: bob 1.8s ease-in-out infinite;
}
.scroll-cue svg { width: 26px; height: 26px; }
@keyframes bob { 0%,100% { transform: translateY(0) } 50% { transform: translateY(7px) } }

/* ------------------------------------------------------- proof bar */
.proof { background: var(--ink); color: var(--bg); padding: 1.75rem 1.25rem; }
.proof-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1rem; text-align: center;
}
.proof-item strong {
  display: block; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.85rem; font-weight: 500; color: var(--accent-soft); line-height: 1.1;
}
.proof-item span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; opacity: .82; }

/* --------------------------------------------------------- sections */
section { padding: clamp(4rem, 9vw, 7rem) 1.25rem; }
.section-alt { background: var(--bg-alt); }
.container { max-width: var(--maxw); margin: 0 auto; }
.container-narrow { max-width: 760px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.grid-2.top { align-items: start; }

.num { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.rule { width: 3rem; height: 1px; background: var(--accent-soft); margin: 1rem 0 1.5rem; }
h2 + .rule { margin-top: .85rem; }
.section-title { margin-top: .85rem; }
.section-head { margin-bottom: 3rem; }
.section-head.center { text-align: center; }
.section-head.center .rule { margin-left: auto; margin-right: auto; }
.body-text { color: var(--muted); }
.body-text + .body-text { margin-top: 1rem; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 42rem; }

.media { overflow: hidden; border-radius: 3px; background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s ease; }
.media.hoverzoom:hover img { transform: scale(1.04); }
.media.ratio-43 { aspect-ratio: 4/3; }
.media.ratio-32 { aspect-ratio: 3/2; }
.media.ratio-11 { aspect-ratio: 1/1; }
.media.ratio-34 { aspect-ratio: 3/4; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; list-style: none; }
.chips li {
  font-size: .78rem; letter-spacing: .04em;
  border: 1px solid rgba(43,24,16,.16); border-radius: 999px;
  padding: .35rem .85rem; color: var(--muted);
}

/* ------------------------------------------------------- location */
.map { aspect-ratio: 4/3; overflow: hidden; border-radius: 3px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.distances { list-style: none; margin-top: 1.5rem; }
.distances li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .6rem 0; border-bottom: 1px solid rgba(43,24,16,.09);
  font-size: .92rem;
}
.distances li:last-child { border-bottom: none; }
.distances span:last-child { color: var(--accent); white-space: nowrap; }

/* -------------------------------------------------------- contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.card {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  text-align: center; text-decoration: none;
  padding: 2rem 1.25rem; border: 1px solid rgba(43,24,16,.12); border-radius: 3px;
  background: var(--bg); transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .ic {
  display: inline-flex; padding: .85rem; border-radius: 50%;
  background: rgba(201,169,125,.18); color: var(--accent);
}
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-family: 'Jost', sans-serif; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 400; color: var(--muted); }
.card p { font-size: 1.05rem; color: var(--ink); }

.closing { text-align: center; margin-top: 3rem; }
.closing p { color: var(--muted); margin-bottom: 1.5rem; }

/* --------------------------------------------------------- footer */
footer { background: var(--ink); color: var(--bg); padding: 3rem 1.25rem 2rem; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer-inner img { height: 60px; width: auto; filter: brightness(0) invert(1); opacity: .92; margin: 0 auto 1.25rem; }
.footer-addr { font-size: .92rem; opacity: .8; line-height: 1.8; }
.footer-addr a { color: var(--accent-soft); }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0; }
.footer-links a { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--accent-soft); }
.copyright { font-size: .8rem; opacity: .55; border-top: 1px solid rgba(250,247,242,.14); padding-top: 1.5rem; margin-top: 1.5rem; }

/* ------------------------------------------------ floating WA button */
.fab {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 900;
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--wa); color: #fff; text-decoration: none;
  padding: .85rem 1.15rem; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15,122,108,.4);
  font-size: .82rem; letter-spacing: .08em;
  transition: background-color .25s, transform .25s;
}
.fab:hover { background: var(--wa-dark); transform: translateY(-2px); }
.fab svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.fab .fab-label { display: none; }

/* --------------------------------------------------------- reveals */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- gallery grid */
.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem;
}
.gallery-grid .media { cursor: zoom-in; }
.gallery-grid figcaption {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-top: .5rem;
}
.gallery-grid figure.span-2 { grid-column: span 2; }

/* -------------------------------------------------------- room cards */
.room-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid rgba(43,24,16,.12); border-radius: 3px; overflow: hidden;
  background: var(--bg);
}
.room-card + .room-card { margin-top: 2rem; }
.room-card-media { aspect-ratio: 3/2; overflow: hidden; }
.room-card-media img { width: 100%; height: 100%; object-fit: cover; }
.room-card-body { padding: 1.75rem; }
.room-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.room-card-price { text-align: right; white-space: nowrap; }
.room-card-price strong { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; color: var(--accent); }
.room-card-price span { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.room-card-actions { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* --------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: .8rem .9rem;
  border: 1px solid rgba(43,24,16,.22); border-radius: 3px;
  background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(138,106,61,.15);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field.error input, .field.error select, .field.error textarea { border-color: var(--error); }
.field-error { font-size: .78rem; color: var(--error); display: none; }
.field.error .field-error { display: block; }
.field-hint { font-size: .78rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.stepper {
  display: inline-flex; align-items: center; border: 1px solid rgba(43,24,16,.22);
  border-radius: 3px; overflow: hidden; width: fit-content;
}
.stepper button {
  width: 2.5rem; height: 2.75rem; border: none; background: var(--bg-alt);
  font-size: 1.1rem; cursor: pointer; color: var(--ink);
}
.stepper button:hover { background: var(--accent-soft); }
.stepper input {
  width: 3.5rem; text-align: center; border: none; border-left: 1px solid rgba(43,24,16,.15);
  border-right: 1px solid rgba(43,24,16,.15); height: 2.75rem; font-family: inherit; font-size: 1rem;
}

/* ------------------------------------------------ checkout summary */
.checkout-wrap { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.summary-card {
  background: var(--bg-alt); border-radius: 3px; padding: 1.75rem;
  align-self: start; position: static;
}
.summary-card h3 { margin-bottom: 1.25rem; }
.summary-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; border-bottom: 1px solid rgba(43,24,16,.1);
  font-size: .92rem;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row span:first-child { color: var(--muted); }
.summary-total {
  display: flex; justify-content: space-between; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid rgba(43,24,16,.2);
  font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem;
}
.notice {
  font-size: .82rem; color: var(--muted); background: rgba(138,106,61,.08);
  border: 1px solid rgba(138,106,61,.2); border-radius: 3px; padding: .85rem 1rem;
  margin-top: 1.25rem; line-height: 1.6;
}

/* ------------------------------------------------------ thank you */
.thankyou-hero {
  min-height: 60svh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 8rem 1.25rem 4rem;
}
.thankyou-icon {
  width: 4rem; height: 4rem; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
}
.thankyou-icon svg { width: 2rem; height: 2rem; }
.thankyou-ref { font-size: .8rem; letter-spacing: .1em; color: var(--muted); margin: 1rem 0 2rem; }

/* ----------------------------------------------------- breakpoints */
@media (min-width: 480px) { .field-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 600px) {
  .proof-inner { grid-template-columns: repeat(4, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .fab .fab-label { display: inline; }
  .room-card { grid-template-columns: 40% 1fr; }
  .room-card-media { aspect-ratio: auto; height: 100%; }
}
@media (min-width: 900px) {
  nav, .nav-cta { display: flex; }
  .menu-toggle { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .media.ratio-auto-desktop { aspect-ratio: 4/3; }
  section { padding: 7rem 2rem; }
  .header-inner { padding: 1rem 2rem; }
  .checkout-wrap { grid-template-columns: 1.4fr 1fr; }
  .summary-card { position: sticky; top: 6.5rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
