/* ============================================================
   Gonpapa Homestay — custom CSS (no frameworks, no runtime JS)
   Palette: Forest Green #2E7D32 | Wood Brown #5D4037
            Warm White #FAF7F2 | Golden #C9A227
   ============================================================ */

:root {
  --green: #2E7D32;
  --green-dark: #205723;
  --brown: #5D4037;
  --warm: #FAF7F2;
  --gold: #C9A227;
  --ink: #2a2420;
  --muted: #6b6258;
  --white: #ffffff;
  --shadow: 0 6px 20px rgba(45, 35, 25, 0.12);
  --shadow-sm: 0 2px 8px rgba(45, 35, 25, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--warm);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--brown); margin: 0 0 .5em; }
address { font-style: normal; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--green); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4em;
  padding: 12px 22px; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--call { background: var(--gold); color: #2a2014; }
.btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--block { width: 100%; justify-content: center; }
.btn .ico { width: 1.15em; height: 1.15em; fill: currentColor; flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  border-bottom: 1px solid #e7ded2;
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand__name { font-weight: 700; color: var(--green-dark); font-size: 1.15rem; }
.main-nav { margin-left: auto; }
.nav-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { color: var(--brown); font-weight: 500; }
.nav-menu a:hover { color: var(--green); text-decoration: none; }
.header-call { padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--brown); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 78vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(32,40,28,.45), rgba(32,40,28,.65)); z-index: -1; }
.hero__content { padding: 60px 20px; text-align: center; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: .2em; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero__tagline { font-size: clamp(1.1rem, 3vw, 1.5rem); margin: 0 0 1.6em; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: #fff; }
.section__title { font-size: clamp(1.6rem, 4vw, 2.3rem); text-align: center; }
.section__title::after { content: ""; display: block; width: 64px; height: 4px; background: var(--gold); border-radius: 4px; margin: 14px auto 0; }
.section__lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-top: 28px; }
.about-text p { margin: 0 0 1em; }
.about-img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 36px; }
.card { background: var(--warm); border: 1px solid #eee2d2; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.section--alt .card { background: var(--warm); }
.card h3 { color: var(--green-dark); }
.card p { margin: 0; color: var(--muted); }

/* ---------- Facilities ---------- */
.facilities { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.facilities li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #eee2d2; border-radius: var(--radius-sm); padding: 16px 18px; font-weight: 600; box-shadow: var(--shadow-sm); }
.section--alt .facilities li { background: var(--warm); }
.facility__icon { font-size: 1.5rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery__item { padding: 0; border: 0; background: none; cursor: pointer; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.06); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.9); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 92vw; max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }

/* ---------- Reviews CTA ---------- */
.reviews-cta { background: linear-gradient(135deg, var(--green), var(--green-dark)); color: #fff; text-align: center; }
.reviews-cta .section__title { color: #fff; }
.reviews-cta .section__title::after { background: var(--gold); }
.reviews-cta p { max-width: 620px; margin: 0 auto 28px; }
.reviews-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Location ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 28px; line-height: 0; }
.map-wrap iframe { display: block; }
.location__address { text-align: center; margin-top: 18px; font-weight: 600; color: var(--brown); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 28px; }
.contact-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; }
.contact-list li { line-height: 1.5; }
.contact-info__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.enquiry { background: #fff; border: 1px solid #eee2d2; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.section--alt .enquiry { background: var(--warm); }
.enquiry label { display: grid; gap: 6px; font-weight: 600; color: var(--brown); font-size: .95rem; }
.enquiry input, .enquiry textarea { font: inherit; padding: 11px 13px; border: 1px solid #d8cdbd; border-radius: var(--radius-sm); background: #fff; width: 100%; }
.enquiry input:focus, .enquiry textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.enquiry__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enquiry__status { margin: 0; font-weight: 600; min-height: 1.2em; }
.enquiry__status.is-ok { color: var(--green-dark); }
.enquiry__status.is-err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown); color: #f3ece2; padding-top: 48px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-bottom: 36px; }
.site-footer h3, .site-footer h4 { color: #fff; }
.footer__name { font-size: 1.3rem; }
.footer__nap { line-height: 1.8; }
.site-footer a { color: var(--gold); }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; font-size: .9rem; }
.footer__bar p { margin: 0; }
.footer__bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }
.footer__credit { color: #d8cdbd; }
.footer__credit a { color: var(--gold); font-weight: 600; }
.footer__credit a:hover { color: #e6c44e; text-decoration: underline; }
@media (max-width: 640px) {
  .footer__bar-inner { flex-direction: column; text-align: center; }
}

/* ---------- Floating buttons ---------- */
.fab-group { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 12px; }
.fab { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow); text-decoration: none; transition: transform .15s ease; }
.fab:hover { transform: scale(1.08); text-decoration: none; }
.fab .ico { width: 28px; height: 28px; fill: #fff; }
.fab--whatsapp { background: #25D366; }
.fab--call { background: var(--gold); }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; left: 18px; bottom: 18px; z-index: 200; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green); color: #fff; font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow); }
.back-to-top[hidden] { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal { padding: 48px 0 72px; }
.legal .container { max-width: 820px; }
.legal h1 { margin-bottom: .2em; }
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }
.legal p, .legal li { color: #3a332c; }
.legal .updated { color: var(--muted); font-size: .9rem; }
.legal-back { display: inline-block; margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { position: relative; }
  .nav-menu {
    position: absolute; right: 0; top: calc(var(--header-h) - 8px);
    background: #fff; flex-direction: column; gap: 0; min-width: 200px;
    border: 1px solid #e7ded2; border-radius: var(--radius-sm); box-shadow: var(--shadow);
    padding: 8px; display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu a { display: block; padding: 10px 12px; }
  .header-call span { display: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .enquiry__row { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .fab, .gallery__item img { transition: none; }
}
