/* ===== Elaichi Hills — shared styles ===== */

/* Self-hosted variable fonts (no CDN). Each file covers its whole weight
   range, so one request buys every weight we use. */
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay-Variable.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("/fonts/WorkSans-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #13301e;
  --green-800: #1c4a2c;
  --green-700: #246239;
  --green-600: #2f7d48;
  --green-500: #4a9f62;
  --green-100: #e7f3e9;
  --cream: #faf7ef;
  --cream-dark: #f1ead9;
  --gold: #bb9440;
  --gold-light: #d8b765;
  --text-dark: #1b2420;
  --text-muted: #5a6b60;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --shadow-sm: 0 2px 8px rgba(21, 50, 31, 0.08);
  --shadow-md: 0 10px 28px rgba(21, 50, 31, 0.14);
  --shadow-lg: 0 20px 56px rgba(21, 50, 31, 0.24);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --header-h: 68px;
  --max-width: 1180px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }

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

h1, h2, h3 {
  margin: 0 0 0.5em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--green-900);
  font-family: var(--font-serif);
}

h1 { font-size: clamp(2.3rem, 7vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7em;
}

.rule-gold {
  display: block;
  width: 56px;
  height: 3px;
  margin: 0 0 18px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}
.text-center .rule-gold, .center .rule-gold { margin-left: auto; margin-right: auto; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 64px 0; }
@media (min-width: 768px) { section { padding: 100px 0; } }

/* ---------- Scroll-reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

.text-center { text-align: center; }
.lede { font-size: 1.08rem; color: var(--text-muted); max-width: 640px; }
.lede.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--green-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-md); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow-md); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.75); }
.btn-outline:hover { background: rgba(255,255,255,0.14); }

.btn-ghost { background: var(--green-100); color: var(--green-800); }
.btn-ghost:hover { background: #dcedde; }

.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-row.center { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(21, 50, 31, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--green-900);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.2rem; display: block; letter-spacing: 0.01em; }
.brand-tag { font-size: 0.72rem; color: #cfe3d4; display: block; letter-spacing: 0.03em; }

.nav-links {
  display: none;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: #e7f1e9;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); border-color: var(--gold); }

.nav-actions { display: none; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.mobile-panel {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--green-900);
  display: flex;
  flex-direction: column;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-panel.is-open { transform: translateX(0); }
.mobile-panel-top { display: flex; justify-content: flex-end; }
.mobile-panel .nav-toggle { background: rgba(255,255,255,0.1); }
.mobile-links { display: flex; flex-direction: column; gap: 6px; margin-top: 24px; }
.mobile-links a {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-panel .btn-row { margin-top: auto; flex-direction: column; }
.mobile-panel .btn-row .btn { width: 100%; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
  background: var(--green-900);
}
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 65%;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,30,19,0.25) 0%, rgba(12,30,19,0.38) 45%, rgba(8,22,14,0.92) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 56px;
  width: 100%;
}
.hero-script {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-light);
  font-size: 1.15rem;
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.hero h1 { color: var(--white); margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,0.25); }
.hero-tagline {
  font-size: clamp(1.05rem, 2.6vw, 1.4rem);
  color: #e3efe5;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.hero-lede { color: #d7e6da; max-width: 560px; margin-bottom: 30px; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  color: #e3efe5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---------- Highlights ---------- */
.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}
@media (min-width: 700px) { .highlights-grid { grid-template-columns: repeat(4, 1fr); } }

.highlight-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.highlight-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.highlight-icon {
  width: 48px; height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-700);
}
.highlight-icon svg { width: 24px; height: 24px; }
.highlight-card h3 { font-size: 0.95rem; margin-bottom: 4px; }
.highlight-card p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Experiences ---------- */
.experience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 36px;
}
@media (min-width: 760px) { .experience-grid { grid-template-columns: repeat(3, 1fr); } }

.experience-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.experience-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--gold);
}
.experience-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.experience-icon svg { width: 28px; height: 28px; }
.experience-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.experience-card p { color: var(--text-muted); margin: 0; font-size: 0.96rem; }

/* ---------- Section tint ---------- */
.section-tint { background: var(--cream-dark); }
.section-dark {
  background: var(--green-900);
  color: var(--white);
}
.section-dark h2 { color: var(--white); }
.section-dark .lede { color: #cfe0d2; }

/* ---------- Photo preview strip ---------- */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.preview-grid a {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.preview-grid a:hover { box-shadow: var(--shadow-md); }
.preview-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.preview-grid a:hover img { transform: scale(1.07); }
.preview-grid a.span-2 { grid-column: span 2; aspect-ratio: 16 / 9; }

@media (min-width: 700px) {
  .preview-grid { grid-template-columns: repeat(4, 1fr); }
  .preview-grid a.span-2 { grid-column: span 2; aspect-ratio: 4/3; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--green-800), var(--green-600));
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #dcecdf; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #cfe0d2;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand { color: var(--white); font-family: var(--font-serif); font-weight: 700; font-size: 1.5rem; margin-bottom: 10px; }
.footer-col h3 { color: var(--white); font-family: var(--font-sans); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-col p, .footer-col a { color: #cfe0d2; font-size: 0.92rem; }
.footer-col a { display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-contact-item { display: flex; gap: 10px; margin-bottom: 12px; align-items: flex-start; }
.footer-contact-item svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.82rem;
  color: #9db8a2;
  text-align: center;
}

/* ---------- Floating WhatsApp button ---------- */
.fab-whatsapp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.15s ease;
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--green-900);
  color: var(--white);
  padding: 64px 0 48px;
  border-bottom: 3px solid var(--gold);
}
.page-hero h1 { color: var(--white); }
.page-hero .lede { color: #cfe0d2; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1000px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  background: var(--green-100);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  display: block;
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.gallery-item:hover { box-shadow: var(--shadow-md); }
.gallery-item img, .gallery-item video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.08); }

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10,24,15,0) 55%, rgba(10,24,15,0.55) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-zoom-icon {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--green-800);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover .gallery-zoom-icon { opacity: 1; transform: scale(1); }
.gallery-zoom-icon svg { width: 16px; height: 16px; }

.gallery-badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  background: rgba(14,26,18,0.65);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(2px);
}
.gallery-badge svg { width: 12px; height: 12px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(8, 18, 12, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.lightbox.is-open { display: flex; }
.lightbox-stage { position: relative; width: 100%; max-width: 980px; max-height: 88vh; display: flex; align-items: center; justify-content: center; }
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: -54px; right: 0; }
.lightbox-nav svg, .lightbox-close svg { width: 22px; height: 22px; }
.lightbox-prev { left: -8px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -8px; top: 50%; transform: translateY(-50%); }
@media (min-width: 700px) {
  .lightbox-prev { left: -58px; }
  .lightbox-next { right: -58px; }
}
@media (max-width: 699px) {
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 8px;
}
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.3rem; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-row .icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-row .icon-circle svg { width: 20px; height: 20px; }
.contact-row-text .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 2px; }
.contact-row-text .value { font-weight: 600; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--green-100);
}
@media (min-width: 640px) { .map-wrap { aspect-ratio: 16 / 10; } }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Misc ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green-700);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-cue { animation: none; }
}
