/* =========================================================
   Nature Bliss Homestay — Stylesheet
   Mobile-first, premium Airbnb-style aesthetic
   ========================================================= */

:root {
  --white: #ffffff;
  --sage: #A8B89A;
  --sage-dark: #8fa17f;
  --beige: #D8C3A5;
  --peach: #F2C9A0;
  --forest: #2F5D50;
  --forest-dark: #234840;
  --ink: #2b332f;
  --ink-soft: #5a6560;
  --cream: #FAF9F6;
  --border: rgba(47, 93, 80, 0.12);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 16px rgba(47, 93, 80, 0.08);
  --shadow-md: 0 12px 32px rgba(47, 93, 80, 0.12);
  --shadow-lg: 0 24px 60px rgba(47, 93, 80, 0.16);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--forest-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 600;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

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

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

ul { list-style: none; margin: 0; padding: 0; }

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

.section { padding: 72px 0; }
.section-alt { background: var(--cream); }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.6em;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--forest);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: 2px;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.btn-primary {
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-whatsapp {
  background: #ffffff;
  color: var(--forest-dark);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
  padding: 13px 26px;
}
.btn-outline:hover { background: var(--forest); color: #fff; }

.btn-nav-cta {
  background: var(--forest);
  color: #fff;
  padding: 11px 22px;
  font-size: 0.9rem;
}
.btn-nav-cta:hover { background: var(--forest-dark); }

.btn-block { width: 100%; }

/* =========================================================
   Header / Nav
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest-dark);
}
.logo-text em { font-style: italic; color: var(--forest); font-weight: 500; }
.logo-leaf { font-size: 1.4rem; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav ul {
  display: flex;
  gap: 26px;
}
.main-nav ul a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav ul a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--forest);
  transition: width 0.25s var(--ease);
}
.main-nav ul a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: var(--forest-dark);
  margin: 0 auto;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 38, 32, 0.55) 0%, rgba(20, 38, 32, 0.35) 45%, rgba(20, 38, 32, 0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-top: 90px;
  padding-bottom: 60px;
}
.hero-content .eyebrow { color: var(--beige); }
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 0.25em;
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  color: #f1efe9;
  max-width: 560px;
  margin-bottom: 2em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Two CTA versions: one overlaid on the photo (tablet/desktop), one in a
   solid bar below the photo (mobile). Only one shows at a time. */
.hero-actions--below {
  display: none;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  z-index: 1;
}

/* Mobile: keep the house as the framed, full-bleed background with the
   eyebrow/heading/tagline overlaid on top — crop tightly on the home itself
   (less sky/lawn). CTA buttons move to a solid bar below the photo instead
   of sitting on top of it. */
@media (max-width: 639px) {
  .hero {
    min-height: auto;
    aspect-ratio: 3 / 4;
  }
  .hero-media img {
    object-position: 68% 42%;
  }
  .hero-actions--overlay {
    display: none;
  }
  .hero-actions--below {
    display: flex;
    flex-direction: column;
    background: #F3EEE4;
    padding: 24px 20px 32px;
  }
  .hero-actions--below .btn { width: 100%; }
  .hero-actions--below .btn-primary { background: var(--forest); color: #fff; }
}
.scroll-cue span {
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 6px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 6px; }
}

/* =========================================================
   Split layout (About / Nearby)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
.split-reverse .split-copy { order: 1; }
.split-reverse .split-media { order: 2; }

.split-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.split-media img { width: 100%; height: auto; object-fit: contain; display: block; }
.media-accent {
  position: absolute;
  bottom: -18px;
  right: -18px;
  width: 90px;
  height: 90px;
  background: var(--beige);
  border-radius: var(--radius-md);
  z-index: -1;
}

.split-copy h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.about-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--ink-soft);
}
.about-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
}

.map-embed { aspect-ratio: 4/3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius-lg); }

.nearby-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.nearby-list .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
}

/* =========================================================
   Amenities
   ========================================================= */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.amenity-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.amenity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.amenity-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenity-icon svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: var(--forest-dark);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.amenity-card h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
.amenity-card p { font-size: 0.9rem; margin: 0; }

/* =========================================================
   Gallery
   ========================================================= */
.gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.gallery-grid::-webkit-scrollbar {
  display: none;
}
.gallery-item {
  margin: 0;
  flex: 0 0 auto;
  height: 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.gallery-item img {
  height: 100%; width: auto;
  max-width: none;
  display: block;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img { transform: scale(1.06); }

/* =========================================================
   Reviews
   ========================================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
.review-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  margin: 0;
  border-top: 3px solid var(--sage);
}
.stars { color: var(--beige); letter-spacing: 3px; margin-bottom: 12px; font-size: 1.1rem; }
.review-card p { color: var(--ink); font-style: italic; }
.review-card footer { font-weight: 700; color: var(--forest); font-size: 0.9rem; }
.reviews-cta { text-align: center; margin-top: 36px; }

/* =========================================================
   Contact
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 18px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--forest-dark);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.contact-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-tile .icon { width: 24px; height: 24px; fill: var(--forest); flex-shrink: 0; }

.inquiry-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-md);
}
.inquiry-form h3 { margin-bottom: 0.8em; }
.form-row { margin-bottom: 18px; }
.form-row-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-row-split .form-row { margin-bottom: 0; }
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color 0.2s var(--ease);
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--forest); outline: none; }
.form-note { margin: 12px 0 0; font-size: 0.9rem; color: var(--forest); font-weight: 600; min-height: 1.2em; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--forest-dark);
  color: #e7ece9;
  padding: 44px 0 28px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.site-footer p { color: #cfd8d3; margin-bottom: 4px; }
.footer-copy { font-size: 0.82rem; color: #9fb0a8; margin-top: 16px; }

/* =========================================================
   Floating WhatsApp Button
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 600;
  animation: pulse 2.4s infinite;
  transition: transform 0.25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 14px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

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

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Tablet & up
   ========================================================= */
@media (min-width: 640px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item { height: 360px; }
  .form-row-split { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .amenities-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-item { height: 420px; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
  .section { padding: 100px 0; }
}

@media (max-width: 959px) {
  .main-nav {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .main-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
  }
  .main-nav ul a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid var(--border);
  }
  .nav-toggle { display: flex; }
}
