/* ==========================================================================
   Monumental CR — Premium Costa Rica Gold Coast destination brand
   Design system + styles
   ========================================================================== */

:root {
  /* Brand palette (derived from logo) */
  --green-900: #0c2e22;   /* deep forest — primary dark */
  --green-800: #123d2d;
  --green-700: #1c5440;
  --green-600: #2a6b52;
  --ocean-700: #0f5d7a;
  --ocean-600: #1d7fa3;   /* ocean blue */
  --ocean-400: #5bb6d1;
  --gold-600:  #c79a3a;
  --gold-500:  #d9b14e;   /* sunrise gold accent */
  --gold-300:  #ecd28a;
  --coral-600: #c0392b;
  --coral-500: #d8442f;   /* hibiscus coral */
  --ivory:     #faf7f0;   /* ivory background */
  --ivory-200: #f1ece1;
  --sand:      #ece4d4;
  --ink:       #1a2620;   /* body text */
  --ink-soft:  #44544c;
  --white:     #ffffff;

  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm:   clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --text-lg:   clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --text-xl:   clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --text-2xl:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --text-3xl:  clamp(2.6rem, 1.9rem + 3.4vw, 4.5rem);

  /* Spacing */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius: 6px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --shadow-sm: 0 1px 3px rgba(12,46,34,0.08), 0 1px 2px rgba(12,46,34,0.06);
  --shadow-md: 0 10px 30px rgba(12,46,34,0.10), 0 4px 12px rgba(12,46,34,0.06);
  --shadow-lg: 0 24px 60px rgba(12,46,34,0.16);

  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Switzer', 'Work Sans', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

/* Layout helpers */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 3rem); }
.container--narrow { max-width: 56rem; }
.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--space-4);
  display: inline-block;
}
.section-title { font-size: var(--text-2xl); color: var(--green-900); max-width: 18ch; }
.lead { font-size: var(--text-lg); color: var(--ink-soft); max-width: 60ch; line-height: 1.6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0.95em 1.8em;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s, background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn--primary { background: var(--green-800); color: var(--ivory); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--green-900); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: var(--gold-500); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: rgba(250,247,240,.55); }
.btn--ghost:hover { background: rgba(250,247,240,.12); border-color: var(--ivory); }
.btn--outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn--outline:hover { background: var(--green-800); color: var(--ivory); }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250,247,240,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header--scrolled { box-shadow: var(--shadow-sm); border-color: rgba(12,46,34,0.06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.nav__logo img { height: 50px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.nav__links a {
  font-size: var(--text-sm); font-weight: 500; color: var(--green-900);
  position: relative; transition: color .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1.5px;
  background: var(--gold-500); transition: width .25s ease;
}
.nav__links a:hover { color: var(--gold-600); }
.nav__links a:hover::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: .3s; }

/* ===== Hero ===== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: var(--ivory); overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(12,46,34,0.86) 0%, rgba(12,46,34,0.4) 45%, rgba(12,46,34,0.18) 100%);
}
.hero__inner { padding-block: clamp(3rem, 8vw, 6rem); max-width: 60ch; }
.hero__eyebrow { color: var(--gold-300); letter-spacing: 0.2em; }
.hero h1 { font-size: var(--text-3xl); font-weight: 400; margin-block: 0.3em 0.5em; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { font-style: italic; color: var(--gold-300); letter-spacing: 0.01em; padding-right: 0.06em; }
.hero__sub { font-size: var(--text-lg); max-width: 52ch; color: rgba(250,247,240,.92); margin-bottom: var(--space-8); }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  font-size: var(--text-xs); letter-spacing: .15em; text-transform: uppercase; opacity: .8;
}

/* ===== Story (split) ===== */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__body p + p { margin-top: var(--space-4); }
.split__body .lead { margin-bottom: var(--space-6); }

.signature { margin-top: var(--space-6); font-family: var(--font-display); font-style: italic; font-size: var(--text-lg); color: var(--green-700); }

/* ===== Who we are — stats ===== */
.band { background: var(--green-900); color: var(--ivory); }
.band .eyebrow { color: var(--gold-300); }
.band .section-title { color: var(--ivory); }
.band .lead { color: rgba(250,247,240,.82); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); margin-top: var(--space-12); }
.stat { text-align: left; border-top: 1px solid rgba(236,210,138,.3); padding-top: var(--space-4); }
.stat__num { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--gold-300); line-height: 1; }
.stat__label { font-size: var(--text-sm); color: rgba(250,247,240,.8); margin-top: var(--space-2); }

/* ===== About-all (centered statement) ===== */
.statement { text-align: center; max-width: 30ch; margin-inline: auto; }
.statement h2 { font-size: var(--text-2xl); color: var(--green-900); font-weight: 400; }
.statement h2 em { font-style: italic; color: var(--gold-600); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); margin-top: var(--space-16); }
.pillar { text-align: center; }
.pillar h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; color: var(--green-800); margin-bottom: var(--space-2); }
.pillar p { font-size: var(--text-sm); color: var(--ink-soft); }
.pillar__mark { width: 44px; height: 2px; background: var(--gold-500); margin: 0 auto var(--space-4); }

/* ===== Services grid ===== */
.services { background: var(--ivory-200); }
.services__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); margin-top: var(--space-12); }
.service {
  background: var(--white); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-4);
  text-align: center; box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s;
  border: 1px solid rgba(12,46,34,.05);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service svg { width: 30px; height: 30px; color: var(--green-700); margin: 0 auto var(--space-3); }
.service span { font-size: var(--text-sm); font-weight: 600; color: var(--green-900); }
.services__note { text-align: center; margin-top: var(--space-12); font-family: var(--font-display); font-style: italic; font-size: var(--text-xl); color: var(--green-800); }

/* Featured services with photos */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.feature-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 320px; box-shadow: var(--shadow-md); }
.feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.feature-card:hover img { transform: scale(1.06); }
.feature-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(12,46,34,.85), rgba(12,46,34,.12) 70%); }
.feature-card__body { position: absolute; left: 0; bottom: 0; padding: var(--space-6); color: var(--ivory); }
.feature-card__body h3 { font-size: var(--text-xl); margin-bottom: .3em; }
.feature-card__body p { font-size: var(--text-sm); color: rgba(250,247,240,.9); max-width: 36ch; }

/* ===== Group focus ===== */
.group-focus { background: var(--green-800); color: var(--ivory); text-align: center; }
.group-focus .eyebrow { color: var(--gold-300); }
.group-focus .section-title { color: var(--ivory); }
.group-numbers { display: flex; justify-content: center; gap: clamp(2rem, 8vw, 6rem); margin-block: var(--space-12); flex-wrap: wrap; }
.group-num { }
.group-num strong { font-family: var(--font-display); font-size: var(--text-3xl); color: var(--gold-300); display: block; line-height: 1; }
.group-num span { font-size: var(--text-sm); letter-spacing: .08em; text-transform: uppercase; color: rgba(250,247,240,.8); }
.group-focus p.lead { color: rgba(250,247,240,.88); margin-inline: auto; text-align: center; }

/* ===== Settings ===== */
.settings__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); margin-top: var(--space-12); }
.setting { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s; }
.setting:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.setting img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.setting__body { padding: var(--space-6); }
.setting__body h3 { font-size: var(--text-lg); color: var(--green-900); margin-bottom: .35em; }
.setting__tag { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); font-weight: 600; }
.setting__body p { font-size: var(--text-sm); color: var(--ink-soft); margin-top: var(--space-3); }

/* ===== Why ===== */
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6) var(--space-12); margin-top: var(--space-12); }
.why-item { display: flex; gap: var(--space-4); }
.why-item__num { font-family: var(--font-display); font-size: var(--text-xl); color: var(--gold-500); flex: none; line-height: 1; }
.why-item h3 { font-family: var(--font-body); font-size: var(--text-base); font-weight: 700; color: var(--gold-300); margin-bottom: .25em; }
.why-item p { font-size: var(--text-sm); color: rgba(250,247,240,.82); }

/* ===== CTA / Lead capture ===== */
.lead-cta { position: relative; color: var(--ivory); overflow: hidden; text-align: center; }
.lead-cta__bg { position: absolute; inset: 0; z-index: -2; }
.lead-cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.lead-cta__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(12,46,34,.9), rgba(12,46,34,.82)); }
.lead-cta .eyebrow { color: var(--gold-300); }
.lead-cta h2 { font-size: var(--text-2xl); font-weight: 400; max-width: 24ch; margin-inline: auto; }
.lead-cta h2 em { font-style: italic; color: var(--gold-300); }
.lead-cta p { color: rgba(250,247,240,.9); max-width: 56ch; margin: var(--space-6) auto var(--space-8); font-size: var(--text-lg); }
.lead-cta__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.lead-cta__contact { margin-top: var(--space-12); display: flex; gap: clamp(1.5rem,5vw,3.5rem); justify-content: center; flex-wrap: wrap; font-size: var(--text-sm); }
.lead-cta__contact a { display: inline-flex; align-items: center; gap: .5em; color: var(--ivory); border-bottom: 1px solid rgba(236,210,138,.4); padding-bottom: 2px; transition: border-color .2s; }
.lead-cta__contact a:hover { border-color: var(--gold-300); }
.lead-cta__contact svg { width: 18px; height: 18px; color: var(--gold-300); }
.lead-cta__fields { display: flex; gap: .5rem .9rem; justify-content: center; flex-wrap: wrap; margin-top: var(--space-8); max-width: 720px; margin-inline: auto; }
.lead-cta__fields span { font-size: var(--text-xs); letter-spacing: .06em; color: rgba(250,247,240,.7); border: 1px solid rgba(250,247,240,.22); border-radius: 100px; padding: .4em 1em; }

/* ===== Footer ===== */
.footer { background: var(--green-900); color: rgba(250,247,240,.78); padding-block: var(--space-20) var(--space-8); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-8); }
.footer__brand img { display: block; height: 120px; width: auto; margin-bottom: var(--space-4); background: var(--ivory); padding: var(--space-3); border-radius: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.footer__brand p { font-family: var(--font-display); font-style: italic; font-size: var(--text-base); color: rgba(250,247,240,.85); max-width: 32ch; }
.footer__col h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: var(--space-4); }
.footer__col ul li { margin-bottom: var(--space-3); font-size: var(--text-sm); }
.footer__col a:hover { color: var(--gold-300); }
.footer__bottom { margin-top: var(--space-16); padding-top: var(--space-6); border-top: 1px solid rgba(250,247,240,.12); display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; font-size: var(--text-xs); color: rgba(250,247,240,.6); }
.footer__bottom a:hover { color: var(--gold-300); }

/* ===== FAQ ===== */
.faq { background: var(--ivory-200); }
.faq .eyebrow, .faq .section-title { text-align: center; }
.faq .section-title { margin-inline: auto; }
.faq__list { margin-top: var(--space-12); display: flex; flex-direction: column; gap: var(--space-3); }
.faq__item { background: var(--ivory); border: 1px solid rgba(26,38,32,.08); border-radius: 14px; box-shadow: 0 1px 2px rgba(26,38,32,.04); overflow: hidden; transition: box-shadow .3s ease, border-color .3s ease; }
.faq__item[open] { border-color: rgba(217,177,78,.45); box-shadow: 0 10px 30px rgba(12,46,34,.10); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); cursor: pointer; list-style: none; padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.25rem, 3vw, 2rem); font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; color: var(--green-900); line-height: 1.3; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500); transform: rotate(45deg) translate(-2px,-2px); transition: transform .3s cubic-bezier(.16,1,.3,1); }
.faq__item[open] summary::after { transform: rotate(-135deg) translate(-2px,-2px); }
.faq__item summary:hover { color: var(--green-800); }
.faq__answer { padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.1rem, 2.4vw, 1.5rem); }
.faq__answer p { font-size: var(--text-base); line-height: 1.65; color: var(--ink-soft); max-width: 60ch; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); row-gap: var(--space-12); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-12); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--ivory); padding: var(--space-6); gap: var(--space-4);
    box-shadow: var(--shadow-md); border-top: 1px solid rgba(12,46,34,.06);
  }
  .nav.is-open .nav__links a { font-size: var(--text-lg); }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .split__media { margin-bottom: var(--space-6); }
  .stats { grid-template-columns: 1fr; gap: var(--space-6); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .settings__grid, .why__grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 88vh; }
  .hero__actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (max-width: 460px) {
  .services__grid { grid-template-columns: 1fr 1fr; }
  .lead-cta__contact { flex-direction: column; gap: var(--space-3); }
}
