/* =========================================================
   Peppercorn Cottage — design system
   Palette: Kerala forest greens + warm teak/wood + cream
   ========================================================= */

:root {
  /* Colors */
  --green-900: #1c3323;
  --green-800: #24422e;
  --green-700: #2f5639;
  --green-600: #3d6b49;
  --green-500: #4f8159;
  --green-100: #e7efe6;
  --teak-700: #7a4f2a;
  --teak-600: #9a6634;
  --gold-500: #c69a4c;
  --gold-400: #d4b06a;
  --cream-50: #faf6ee;
  --cream-100: #f3ecdd;
  --sand-200: #e8ddc7;
  --ink-900: #20241f;
  --ink-700: #3c4139;
  --ink-500: #63695d;
  --white: #ffffff;

  /* Semantic */
  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --surface: var(--white);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --brand: var(--green-700);
  --brand-dark: var(--green-900);
  --accent: var(--gold-500);
  --border: #e3d9c4;

  /* Type */
  --font-head: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --font-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-script: "Dancing Script", "Segoe Script", "Brush Script MT", cursive;

  /* Layout */
  --maxw: 1160px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(28, 51, 35, 0.08);
  --shadow: 0 10px 30px rgba(28, 51, 35, 0.12);
  --shadow-lg: 0 20px 50px rgba(28, 51, 35, 0.18);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.12; color: var(--brand-dark); }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.lead { font-size: 1.18rem; color: var(--ink-700); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); }
.section--green { background: var(--green-800); color: var(--cream-100); }
.section--green h1, .section--green h2, .section--green h3 { color: var(--cream-50); }
.section--green .eyebrow { color: var(--gold-400); }
.center { text-align: center; }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 0.75rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.7rem; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.25s var(--ease); text-align: center;
}
.btn--primary { background: var(--brand); color: var(--cream-50); }
.btn--primary:hover { background: var(--brand-dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--gold { background: var(--accent); color: var(--brand-dark); }
.btn--gold:hover { background: #b98a37; color: var(--brand-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.site-header.scrolled { background: var(--cream-50); box-shadow: var(--shadow-sm); }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; line-height: 1; }
.brand__logo { height: 62px; width: auto; display: block; }
@media (max-width: 680px) { .brand__logo { height: 52px; } }
.brand__name { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; color: var(--brand-dark); letter-spacing: 0.01em; }
.brand__sub { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.28em; color: var(--accent); margin-top: 3px; }
.site-header:not(.scrolled) .brand__name { color: var(--cream-50); }
.site-header:not(.scrolled).on-light .brand__name { color: var(--brand-dark); }

.nav__links { display: flex; align-items: center; gap: 1.9rem; }
.nav__links a { font-size: 1.2rem; font-weight: 500; color: var(--ink-700); position: relative; }
.site-header:not(.scrolled) .nav__links a { color: var(--cream-100); }
.site-header:not(.scrolled).on-light .nav__links a { color: var(--ink-700); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px;
  background: var(--accent); transition: width 0.25s var(--ease);
}
.nav__links a:hover::after, .nav__links a.active::after { width: 100%; }
.nav__links a:hover, .nav__links a.active { color: var(--accent); }
.nav__cta { margin-left: 0.5rem; }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; position: relative; }
.nav__toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--brand-dark); transition: all 0.3s var(--ease); }
.site-header:not(.scrolled) .nav__toggle span { background: var(--cream-50); }
.site-header:not(.scrolled).on-light .nav__toggle span { background: var(--brand-dark); }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; }
.nav__toggle span:nth-child(3) { top: 27px; }
body.nav-open .nav__toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--cream-50); text-align: center; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(28,51,35,0.55) 0%, rgba(28,51,35,0.35) 40%, rgba(28,51,35,0.75) 100%);
}
.hero__inner { max-width: 820px; margin: 0 auto; padding: 6rem 1.5rem 3rem; }
.hero h1 { color: var(--cream-50); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero .eyebrow { color: var(--gold-400); }
.hero__tag { font-family: var(--font-script); font-weight: 700; font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--gold-400); margin: 0.4rem 0 1.9rem; line-height: 1.2; }
.script-accent { font-family: var(--font-script); font-weight: 700; color: var(--accent); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1; display: block; margin-bottom: 0.2rem; }
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); color: var(--cream-100); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.hero__scroll::before { content: ""; display: block; width: 1px; height: 34px; background: var(--cream-100); margin: 0 auto 8px; animation: scrollpulse 1.8s infinite; }
@keyframes scrollpulse { 0%,100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative; padding: 9rem 0 4rem; text-align: center; color: var(--cream-50);
  background: var(--green-800); overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream-50); }
.page-hero p { color: var(--cream-100); max-width: 560px; margin: 0.6rem auto 0; }
.breadcrumb { font-size: 0.82rem; color: var(--gold-400); letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.breadcrumb a { color: var(--gold-400); }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 1.75rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 12px; background: var(--green-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

/* Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.split--rev .split__media { order: 2; }
.stats { display: flex; gap: 2.5rem; margin-top: 1.8rem; flex-wrap: wrap; }
.stat b { font-family: var(--font-head); font-size: 2.4rem; color: var(--brand); display: block; line-height: 1; }
.stat span { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 1rem; }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; transition: transform 0.5s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item::after { content: "⤢"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: rgba(28,51,35,0.35); opacity: 0; transition: opacity 0.3s var(--ease); }
.gallery__item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(20,28,22,0.94); display: none; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,0.12); border: 0; color: #fff; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 1.5rem; display: grid; place-items: center; transition: background 0.2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.28); }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 1.5rem; }
.lightbox__nav--next { right: 1.5rem; }

/* ---------- Attractions list ---------- */
.attraction { display: flex; gap: 1.3rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border); }
.attraction__num { font-family: var(--font-head); font-size: 2rem; color: var(--accent); line-height: 1; min-width: 48px; }
.attraction h3 { font-size: 1.35rem; margin-bottom: 0.3rem; }
.attraction p { color: var(--text-muted); font-size: 0.98rem; }

/* ---------- Video embed ---------- */
.video-embed { position: relative; width: 100%; max-width: 960px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe, .video-embed video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; }

/* ---------- Google reviews ---------- */
.reviews-summary { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.reviews-summary__score { font-family: var(--font-head); font-size: 3.2rem; color: var(--brand); line-height: 1; }
.reviews-summary__meta .stars { font-size: 1.1rem; margin-bottom: 2px; }
.reviews-summary__meta a { font-size: 0.9rem; color: var(--text-muted); }
.g-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-muted); }
.g-badge svg { width: 18px; height: 18px; }
.review-card__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.8rem; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--brand); display: grid; place-items: center; font-weight: 600; font-family: var(--font-head); font-size: 1.2rem; overflow: hidden; }
.review-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-card__name { font-weight: 600; color: var(--brand-dark); font-size: 0.98rem; }
.review-card__when { font-size: 0.8rem; color: var(--text-muted); }
.review-card__text { color: var(--ink-700); font-size: 0.98rem; line-height: 1.55; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--surface); border-radius: var(--radius); padding: 2.2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.testimonial__quote { font-family: var(--font-head); font-size: 1.15rem; font-style: italic; color: var(--ink-700); line-height: 1.5; }
.testimonial__quote::before { content: "“"; font-size: 3rem; color: var(--accent); line-height: 0; vertical-align: -0.4em; margin-right: 0.2rem; }
.testimonial__author { margin-top: 1.2rem; font-weight: 600; color: var(--brand); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.85rem; }
.stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 0.8rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-700); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 1rem; background: var(--white); color: var(--text); transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: 0.85rem; color: var(--text-muted); }
.form-status { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.92rem; display: none; }
.form-status.show { display: block; }
.form-status.success { background: var(--green-100); color: var(--green-800); }
.form-status.error { background: #fbe6e2; color: #8a3324; }

/* ---------- Contact info ---------- */
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.6rem; }
.info-item svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.info-item b { display: block; color: var(--brand-dark); }
.info-item span, .info-item a { color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-800); color: var(--cream-100); text-align: center; border-radius: var(--radius); padding: clamp(2.5rem, 6vw, 4rem); }
.cta-band h2 { color: var(--cream-50); }
.cta-band p { max-width: 520px; margin: 0.8rem auto 1.8rem; color: var(--cream-100); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-dark); color: var(--sand-200); padding: 3.5rem 0 1.5rem; font-size: 0.94rem; }
.footer a { color: var(--sand-200); }
.footer a:hover { color: var(--gold-400); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer__grid h4 { color: var(--cream-50); font-size: 1.15rem; margin-bottom: 1rem; letter-spacing: 0.03em; }
.footer__brand .brand__name { color: var(--cream-50); font-size: 1.6rem; }
.footer__brand p { margin-top: 0.8rem; max-width: 320px; color: var(--sand-200); }
.footer ul li { margin-bottom: 0.6rem; }
.footer__social { display: flex; gap: 0.8rem; margin-top: 1rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; transition: background 0.2s; }
.footer__social a:hover { background: var(--accent); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { padding-top: 1.5rem; text-align: center; font-size: 0.82rem; color: rgba(232,221,199,0.6); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .gallery { columns: 2; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  /* Collapse the (now larger) nav tabs into the mobile menu earlier so they never clip */
  .nav__links {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--cream-50); box-shadow: var(--shadow); padding: 1rem 0;
    transform: translateY(-120%); transition: transform 0.35s var(--ease); align-items: stretch;
  }
  body.nav-open .nav__links { transform: none; }
  .nav__links a { padding: 0.9rem 1.5rem; color: var(--ink-700) !important; }
  .nav__links a::after { display: none; }
  .nav__cta { margin: 0.6rem 1.5rem; }
  .nav__toggle { display: block; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
}

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