/* =========================================================
   Molaya Bay family of sites · shared design system v1.0
   One mountain. One valley. One destination.
   Each site sets its own accent in :root via body[data-brand]
   ========================================================= */

:root {
  --ink: #13202B;
  --ink-soft: #3D4B57;
  --paper: #FBF8F3;
  --paper-2: #F2EDE4;
  --line: #DDD5C7;
  --white: #FFFFFF;
  --deep: #0F2A3D;          /* brand deep, overridden per brand */
  --accent: #B8935A;        /* brand accent, overridden per brand */
  --accent-ink: #FFFFFF;    /* text on accent buttons */
  --radius: 14px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 18px 50px rgba(15, 30, 45, .14);
}

body[data-brand="molaya"] { --deep: #0F2A3D; --accent: #C29B5E; --accent-ink: #13202B; --accent-text: #85652F; --accent-2: #C29B5E; }
body[data-brand="psl"]    { --deep: #0F3057; --accent: #16827E; --accent-text: #11706C; --accent-2: #C9A227; }
body[data-brand="thv"]    { --deep: #1F3B2F; --accent: #4A7350; --accent-text: #3F6445; --accent-2: #C29B5E; }
body[data-brand="thc"]    { --deep: #13294B; --accent: #1F6FB2; --accent-text: #1A5E97; --accent-2: #C29B5E; }
body[data-brand="swc"]    { --deep: #182634; --accent: #B08D52; --accent-ink: #13202B; --accent-text: #7E6232; --accent-2: #B08D52; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- bilingual: show only the active language ---------- */
html[data-lang="en"] [lang="es"]:not(html),
html[data-lang="es"] [lang="en"]:not(html) { display: none !important; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(44px, 7.2vw, 88px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: clamp(24px, 2.4vw, 30px); }
p { margin: 0 0 1em; }
.kicker {
  font-family: var(--body); font-size: 16px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text, var(--accent));
  margin: 0 0 14px; display: block;
}
.lead { font-size: clamp(19px, 1.7vw, 22px); color: var(--ink-soft); max-width: 60ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(64px, 9vw, 120px) 0; }
.alt { background: var(--paper-2); }
.dark { background: var(--deep); color: #F4F1EA; }
.dark .lead, .dark p { color: rgba(244, 241, 234, .86); }
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } .split.flip > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.site-header.solid, body.no-hero .site-header { background: rgba(251, 248, 243, .97); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 44px; width: auto; }
.brand .word { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: .08em; line-height: 1; white-space: nowrap; }
.brand .word small { display: block; font-family: var(--body); font-size: 12px; letter-spacing: .28em; font-weight: 500; margin-top: 5px; opacity: .85; }
.menu { display: none; gap: 26px; align-items: center; list-style: none; margin: 0; padding: 0; }
.menu a { text-decoration: none; font-size: 16px; font-weight: 500; letter-spacing: .02em; }
.menu a:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  font: 600 16px var(--body); background: transparent; color: inherit;
  border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px; cursor: pointer; min-height: 40px;
}
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: inherit; padding: 10px; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 2px; }
@media (min-width: 1040px) { .menu { display: flex; } .burger { display: none; } }
.mobile-menu {
  position: fixed; inset: 76px 0 auto 0; background: var(--paper); color: var(--ink);
  padding: 12px var(--gutter) 28px; box-shadow: var(--shadow); display: none; z-index: 49;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 20px; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px var(--body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 2px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); cursor: pointer; min-height: 52px;
  transition: transform .15s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn.sm { padding: 10px 18px; min-height: 44px; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btns { justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; padding: 140px 0 clamp(56px, 9vh, 110px); overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero picture img, .hero > img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 22, 32, .45) 0%, rgba(10, 22, 32, .12) 38%, rgba(10, 22, 32, .78) 100%); }
.hero .wrap { position: relative; z-index: 2; }
.hero .kicker { color: #fff; opacity: .92; }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255, 255, 255, .92); }
.hero .note { font-size: 16px; opacity: .8; margin-top: 18px; }
.hero.short { min-height: 72svh; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(38px, 4vw, 52px); line-height: 1; color: var(--deep); }
.stat span { display: block; margin-top: 10px; font-size: 16px; color: var(--ink-soft); }
.dark .stat b { color: #fff; } .dark .stat span { color: rgba(255,255,255,.8); } .dark .stats, .dark .stat { border-color: rgba(255,255,255,.18); }

/* ---------- cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card .body { padding: 24px 24px 26px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); margin: 0; }
.card .tag { display: inline-block; font-size: 16px; font-weight: 600; color: var(--accent-text, var(--accent)); margin-bottom: 8px; }
.dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.dark .card p { color: rgba(255,255,255,.82); }
.dark .kicker { color: var(--accent-2, #fff); }
.feature { padding: 26px; border-left: 3px solid var(--accent); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; }
.feature h3 { font-size: 24px; }
.feature p { margin: 0; color: var(--ink-soft); }
.list-check { list-style: none; padding: 0; margin: 0 0 1em; }
.list-check li { padding: 8px 0 8px 30px; position: relative; }
.list-check li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* ---------- gallery ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.gallery figure { margin: 0; position: relative; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; color: #fff; font-size: 16px; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* ---------- tables / tiers ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 640px; }
th, td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
tr:last-child td { border-bottom: 0; }
.was { text-decoration: line-through; color: var(--ink-soft); font-size: 16px; margin-left: 6px; }
.tier-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.tier { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.tier.featured { border: 2px solid var(--accent-2, var(--accent)); box-shadow: var(--shadow); }
.tier h3 { margin: 0; }
.tier .price { font-family: var(--display); font-size: 40px; line-height: 1.1; color: var(--deep); }
.tier .meta { font-size: 16px; color: var(--ink-soft); }
.tier ul { margin: 10px 0 16px; padding-left: 20px; }
.tier .btn { margin-top: auto; }
.badge { display: inline-block; align-self: flex-start; font-size: 16px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--paper-2); color: var(--deep); }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 6px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-size: clamp(22px, 2.2vw, 27px); padding: 18px 40px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 32px; color: var(--accent); font-family: var(--body); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); padding-bottom: 12px; max-width: 75ch; }

/* ---------- forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); color: var(--ink); }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: 18px var(--body); color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 14px 14px; min-height: 52px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: 16px; color: var(--ink-soft); margin-top: 14px; }
.form-ok { display: none; text-align: center; padding: 20px 0; }
.form-ok.show { display: block; }
.form-err { display: none; color: #9B2C2C; margin-top: 12px; }
.form-err.show { display: block; }

/* ---------- mountain signature ---------- */
.mountain { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; color: var(--accent); }
.divider { padding: 0; }
.divider .mountain { max-width: 360px; opacity: .7; margin: 0 auto; }

/* ---------- family footer ---------- */
.family { background: var(--deep); color: #F4F1EA; padding: 64px 0 28px; }
.family .line { font-family: var(--display); font-size: clamp(26px, 3vw, 36px); text-align: center; margin: 18px 0 30px; }
.family-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; margin: 0 0 40px; padding: 0; list-style: none; }
.family-links a { display: block; text-decoration: none; text-align: center; padding: 16px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; }
.family-links a:hover, .family-links a[aria-current] { border-color: var(--accent); background: rgba(255,255,255,.05); }
.family-links b { display: block; font-family: var(--display); font-size: 22px; font-weight: 600; }
.family-links span { font-size: 16px; opacity: .78; }
.foot-cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.16); }
.foot-cols h4 { font-family: var(--body); font-size: 16px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; color: var(--accent-2, var(--accent)); }
.foot-cols p, .foot-cols a { font-size: 16px; color: rgba(244,241,234,.86); }
.foot-cols a { text-decoration: none; display: inline-block; padding: 3px 0; }
.foot-cols a:hover { text-decoration: underline; }
.legal { font-size: 16px; color: rgba(244,241,234,.7); margin-top: 30px; line-height: 1.6; }
.socials { display: flex; gap: 12px; flex-wrap: wrap; }
.socials a { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; }

/* ---------- floating WhatsApp ---------- */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #1FA855; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.wa svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- misc ---------- */
.disclaimer { font-size: 16px; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.pill-row li { border: 1px solid currentColor; border-radius: 999px; padding: 6px 14px; font-size: 16px; opacity: .9; }
.team { text-align: center; }
.team img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin: 0 auto 18px; box-shadow: var(--shadow); }
.team .role { color: var(--accent-text, var(--accent)); font-weight: 600; margin-bottom: 8px; }
.page { padding-top: 130px; }
.page h1 { font-size: clamp(40px, 5vw, 60px); }
.map-img { border-radius: var(--radius); box-shadow: var(--shadow); }
.linktree { max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }
.linktree a { display: block; text-align: center; text-decoration: none; padding: 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-weight: 600; }
.linktree a small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 16px; }

/* ---------- additions ---------- */
@media (min-width: 1040px) { [data-desktop-cta] { display: inline-flex !important; } }
.site-header .logo-dark { display: none; }
.site-header.solid .logo-light { display: none; }
.site-header.solid .logo-dark { display: block; }
body.no-hero .site-header .logo-light { display: none; }
body.no-hero .site-header .logo-dark { display: block; }
@media (max-width: 560px) {
  body[data-brand="psl"] .brand .word { display: none; }
  .brand .word { font-size: 21px; }
  .brand .word small { font-size: 11px; letter-spacing: .2em; }
}
.card a { color: var(--accent-text, var(--accent)); font-weight: 600; }
.dark a:not(.btn) { color: #fff; }
figure figcaption { font-size: 16px; color: var(--ink-soft); margin-top: 10px; }
.gallery figure figcaption { color: #fff; margin: 0; }
.dark .form-card p, .form-card p { color: var(--ink-soft); }
.form-card h3 { color: var(--ink); }
.dark .form-card a { color: var(--accent-text, var(--accent)); }
.menu a { white-space: nowrap; }
@media (min-width: 1040px) and (max-width: 1320px) { .menu { gap: 18px; } body[data-brand="psl"] .brand .word, body[data-brand="thc"] .brand .word small { display: none; } }
.tier .was { font-size: 22px; font-family: var(--display); }
.feature { color: var(--ink); }
.dark .feature p { color: var(--ink-soft); }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stats.three .stat { padding: 22px 8px; }
.mobile-menu a.btn { display: flex; justify-content: center; padding: 16px 26px; border: 2px solid var(--accent); font-size: 16px; }
.map-full { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
body[data-brand="psl"] .brand .word { font-size: 20px; letter-spacing: .06em; }
body[data-brand="psl"] .brand img { height: 40px; width: auto; }
.btn { white-space: nowrap; }
body[data-brand="psl"] .brand .word { font-size: 18px; }
.nav { gap: 28px; }
