/* ═══════════════════════════════════════════════════════
   MAIN.CSS — CSS Variables, Reset, Base, Typography
═══════════════════════════════════════════════════════ */

/* ─── Custom Properties ─── */
:root {
  --sand:        #F5F0E8;
  --ivory:       #F5F0E8;   /* alias for --sand — warm off-white */
  --gold:        #C4A35A;   /* champagne gold — primary accent */
  --stone:       #9E8672;   /* warm stone/taupe — secondary */
  --obsidian:    #1A1611;   /* near-black with warm undertone */
  --amber:       #1C3D30;   /* deep forest green — CTAs */
  --color-green: #2a5c45;   /* intro section accent green */
  --white:       #FEFEFE;
  --glass:       rgba(254, 254, 254, 0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width:   1320px;
  --section-pad: clamp(80px, 10vw, 120px) clamp(24px, 5vw, 80px);

  /* Hero → intro seam blend */
  --hero-blend-height: clamp(200px, 26vh, 300px);
  --intro-overlap: clamp(120px, 14vh, 180px);

  --transition-base: 0.3s ease;
  --transition-slow: 0.8s ease;
  --shadow-card:    0 20px 60px rgba(0,0,0,0.08);
  --shadow-hover:   0 32px 80px rgba(0,0,0,0.14);
  --radius-card:    20px;

  /* Typography spacing rhythm */
  --space-label-to-heading:   10px;   /* section-label → h2 */
  --space-heading-to-sub:     18px;   /* h2 → subtitle paragraph */
  --space-sub-to-content:     52px;   /* subtitle → card/grid content */
  --space-heading-to-content: 48px;   /* h2 → content (no subtitle) */

  /* Section vertical padding */
  --section-pad-v:  120px;
  --section-pad-h:   60px;

  --scroll-y: 0;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--obsidian);
  background-color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: inherit;
}

/* ─── Typography Scale ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ─── Shared Section Utilities ─── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-sub-to-content, 52px);
}

/* When section-header has a subtitle inside it,
   don't double-stack margins */
.section-header > .activities-sub,
.section-header > .faq-section-sub {
  margin-bottom: 0;
}

.section-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-label-to-heading, 10px);
}

.section-label--ocean   { color: var(--gold); }
.section-label--seafoam { color: var(--stone); }
.section-label--stone   { color: var(--stone); }
.section-label--gold    { color: var(--gold); }
.section-label--white   { color: var(--white); }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--obsidian);
  margin-bottom: var(--space-heading-to-sub, 18px);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 50px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-amber {
  background: var(--color-green, #2a5c45);
  color: #ffffff;
  border-color: var(--color-green, #2a5c45);
}
.btn-amber:hover {
  background: #1d4130;
  border-color: #1d4130;
  box-shadow: 0 8px 32px rgba(42, 92, 69, 0.45);
}

.btn-coral {
  background: var(--color-green, #2a5c45);
  color: #ffffff;
  border-color: var(--color-green, #2a5c45);
}
.btn-coral:hover {
  background: #1d4130;
  border-color: #1d4130;
  box-shadow: 0 8px 32px rgba(42, 92, 69, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-outline-ocean {
  background: transparent;
  color: var(--color-green, #2a5c45);
  border: 1.5px solid var(--color-green, #2a5c45);
  font-size: 12px;
  padding: 12px 24px;
}
.btn-outline-ocean:hover {
  background: var(--color-green, #2a5c45);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(42, 92, 69, 0.3);
}

.btn-sm {
  font-size: 10px;
  padding: 10px 20px;
  letter-spacing: 0.14em;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ─── Scroll Animation System ─── */
[data-animate] {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger direct children inside animated parents */
[data-animate].visible > *:nth-child(1) { transition-delay: 0ms; }
[data-animate].visible > *:nth-child(2) { transition-delay: 110ms; }
[data-animate].visible > *:nth-child(3) { transition-delay: 220ms; }
[data-animate].visible > *:nth-child(4) { transition-delay: 330ms; }
[data-animate].visible > *:nth-child(5) { transition-delay: 440ms; }

/* Section headers feel like a title card — slightly slower */
.section-header[data-animate] {
  transition-duration: 1.4s;
}

/* Cards and grids get a gentle lift-in */
.property-card[data-animate],
.activity-card[data-animate],
.gallery-item[data-animate] {
  transform: translateY(40px);
}

/* PREVIEW OVERRIDE — remove after screenshots */
[data-animate] { opacity: 1 !important; transform: none !important; }

/* Focus ring for accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ─── WhatsApp Float ─── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 990;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
}
/* Hide the float when the sticky bar is showing — no need for both */
body:has(.sticky-bar.visible) .whatsapp-float {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* ─── Sticky Booking Bar ─── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: var(--obsidian);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(24px, 5vw, 80px);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.sticky-bar.visible {
  transform: translateY(0);
}

/* Keep hero scroll cue from overlapping the sticky Book Now bar */
body:has(.sticky-bar.visible) .hero-scroll {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

/* Extra scroll room so footer copyright clears the fixed booking bar */
body:has(.sticky-bar.visible) {
  padding-bottom: 72px;
}

body:has(.sticky-bar.visible) .footer-bottom {
  padding-bottom: 28px;
}
.sticky-bar-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}
.sticky-bar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ─── Card Price ─── */
.card-price {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-green, #2a5c45);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.card-price strong {
  color: var(--color-green, #2a5c45);
  font-weight: 700;
}

/* ─── What's Included List ─── */
.included-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0;
  list-style: none;
  padding-top: 28px;
  border-top: 1px solid rgba(196, 163, 90, 0.15);
  overflow: hidden;
}
.included-list li {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0 18px;
  position: relative;
}
.included-list li + li::before {
  content: '·';
  position: absolute;
  left: 0;
  transform: translateX(-50%);
  color: rgba(196, 163, 90, 0.4);
}

/* ─── Trust Bar ─── */
.trust-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(158, 134, 114, 0.15);
}
.trust-bar span {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--stone);
  text-transform: uppercase;
}

/* ─── FAQ ─── */
/* ─── FAQ standalone section ─── */
.faq-section {
  background: var(--ivory);
  padding: 140px var(--section-pad-h) var(--section-pad-v);
  position: relative;
  z-index: 3;
}

/* Slim gold drop-line at top — marks transition from dark testimonials */
.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 64px;
  background: linear-gradient(
    to bottom,
    rgba(196, 163, 90, 0.5) 0%,
    rgba(196, 163, 90, 0)   100%
  );
}
.faq-section-inner {
  max-width: 860px;
  margin: 0 auto;
}
.faq-section-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: #6A6057;
  margin-top: 0;
  margin-bottom: var(--space-sub-to-content, 52px);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.faq-section-sub a {
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-list {
  margin-top: 64px;
}
.faq-item {
  border-bottom: 1px solid rgba(158, 134, 114, 0.18);
}
.faq-item:first-child {
  border-top: 1px solid rgba(158, 134, 114, 0.18);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--obsidian);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.3s ease;
  gap: 24px;
}
.faq-q::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.35s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq-q[aria-expanded="true"] {
  color: var(--color-green);
}
.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
  color: var(--color-green);
}
.faq-q:hover { color: var(--color-green); }
.faq-a {
  padding: 0 48px 28px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--stone);
}


@media (max-width: 600px) {
  .sticky-bar { flex-direction: column; gap: 12px; text-align: center; padding: 16px 24px; }
  .whatsapp-float { bottom: 1.25rem; right: 1.25rem; }
  .included-list { gap: 12px; }
  .included-list li { padding: 0; }
  .included-list li + li::before { display: none; }
}
