/* =========================================================
   Baagh Villa — Ranikhet
   Palette: deodar green, pine ink, warm cream, tiger amber
   ========================================================= */

:root {
  --ink: #1d2a24;
  --forest: #2f4a3a;
  --forest-deep: #1f3328;
  --moss: #5c7a5f;
  --cream: #f7f2e8;
  --sand: #ece3d1;
  --amber: #c9822b;
  --amber-dark: #a8691d;
  --muted: #5f6b64;
  --line: rgba(29, 42, 36, 0.12);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -20px rgba(20, 35, 28, 0.35);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest-deep);
}
h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h1 em, h2 em, .brand-text em { color: var(--amber); font-style: italic; }

p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--amber-dark);
  margin-bottom: 0.9em;
}

.note, .small { font-size: 0.9rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font: 500 0.95rem/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  background: var(--amber);
  border: 1.5px solid var(--amber);
  padding: 15px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--amber-dark); border-color: var(--amber-dark); transform: translateY(-2px); }
.btn-small { padding: 10px 20px; font-size: 0.88rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,0.7); }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: #fff;
  transition: background 0.3s, box-shadow 0.3s, color 0.3s;
}
.site-header.scrolled {
  background: rgba(247, 242, 232, 0.95);
  backdrop-filter: blur(10px);
  color: var(--forest-deep);
  box-shadow: 0 1px 0 var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 48px; height: auto; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25)); }
.brand-crest { width: 96px; height: auto; display: block; }
.brand-text { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; letter-spacing: 0.01em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.95rem; position: relative; }
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--amber); transition: width 0.25s;
}
.site-nav a:not(.btn):hover::after { width: 100%; }
.site-nav .btn { color: #fff; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: currentColor; transition: transform 0.3s, opacity 0.3s; }
.site-header .nav-toggle { color: inherit; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  overflow: hidden;
  padding-top: var(--header-h);
  padding-bottom: 140px;
  /* Put your own photo at images/hero.jpg — it'll layer on top of the illustration */
  background:
    linear-gradient(90deg, rgba(20,35,28,0.55) 0%, rgba(20,35,28,0.25) 45%, rgba(20,35,28,0) 70%),
    linear-gradient(180deg, rgba(20,35,28,0.35) 0%, rgba(20,35,28,0.15) 40%, rgba(20,35,28,0.55) 100%),
    url("../images/hero.jpg") 70% center/cover no-repeat,
    linear-gradient(180deg, #e9b98a 0%, #d99a74 22%, #8fa3b3 55%, #5f7d8c 100%);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.ridges { position: absolute; bottom: 0; left: 0; width: 100%; height: 75%; }
.peak-far  { fill: #9fb3c3; opacity: 0.85; }
.peak-snow { fill: #fdfbf6; }
.ridge-2   { fill: #5f7d72; }
.ridge-3   { fill: #3c5a4a; }
.pines     { fill: #22382c; }
.ridge-4   { fill: #1f3328; }

.hero-content { position: relative; z-index: 2; max-width: 760px; margin-left: max(20px, (100% - 1180px) / 2); }
.hero .eyebrow { color: #ffe2b8; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.25); }
.hero h1 em { color: #ffd59a; }
.hero .lead { font-size: 1.15rem; max-width: 600px; color: rgba(255,255,255,0.92); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.quick-book {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 14px;
  align-items: end;
  padding: 18px 20px;
  background: rgba(247, 242, 232, 0.97);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.quick-book label span { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--moss); box-shadow: 0 0 0 3px rgba(92,122,95,0.18); }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 10vw, 130px) 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head p:last-child { color: var(--muted); }

/* Image placeholders: drop your photos into /images with these names */
.img-frame, .room-img, .g-item { background-color: var(--moss); background-size: cover; background-position: center; }
.img-about  { background-image: url("../images/villa.jpg"),  linear-gradient(160deg, #8fa98d, #2f4a3a); }
.img-room-1 { background-image: url("../images/room-valley.jpg"), linear-gradient(160deg, #c9a77c, #6b4f35); }
.img-room-2 { background-image: url("../images/room-suite.jpg"),  linear-gradient(160deg, #d9b48a, #8a5a2f); }
.img-room-3 { background-image: url("../images/room-family.jpg"), linear-gradient(160deg, #a7b89a, #4c6a4f); }
.g-1 { background-image: url("../images/gallery-1.jpg"), linear-gradient(160deg, #f0b37e, #7c8fa3); }
.g-2 { background-image: url("../images/gallery-2.jpg"), linear-gradient(160deg, #9fbf8f, #3c5a4a); }
.g-3 { background-image: url("../images/gallery-3.jpg"), linear-gradient(160deg, #e4c08a, #a35b2a); }
.g-4 { background-image: url("../images/gallery-4.jpg"), linear-gradient(160deg, #6f8f72, #1f3328); }
.g-5 { background-image: url("../images/gallery-5.jpg"), linear-gradient(160deg, #e48a3c, #3a2a1f); }
.g-6 { background-image: url("../images/gallery-6.jpg"), linear-gradient(160deg, #d8c3a5, #7a5b3f); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about-media { position: relative; }
.founder-grid { grid-template-columns: 1.1fr 1fr; }
.img-founder { background-image: url("../images/founder.jpg?v=2"), linear-gradient(160deg, #c9a77c, #4c6a4f); }
.img-frame { aspect-ratio: 4 / 5; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card {
  position: absolute; right: -24px; bottom: 36px;
  background: var(--forest); color: #fff;
  padding: 20px 26px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat-card strong { display: block; font-family: var(--serif); font-size: 2rem; line-height: 1; }
.stat-card span { font-size: 0.85rem; opacity: 0.85; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 16px; height: 9px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg);
}

/* Rooms */
.rooms { background: var(--sand); }
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.room-card {
  position: relative; background: var(--cream); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 0 var(--line); display: flex; flex-direction: column;
  transition: transform 0.35s, box-shadow 0.35s;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-card.featured { outline: 2px solid var(--amber); }
.badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--amber); color: #fff; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.room-img { aspect-ratio: 4 / 3; }
.room-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.room-body p { color: var(--muted); font-size: 0.97rem; }
.room-meta { list-style: none; padding: 0; margin: 4px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.room-meta li { font-size: 0.8rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--forest); }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--forest-deep); margin: 0; }
.price span { font-family: var(--sans); font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.rooms .note { text-align: center; margin-top: 32px; }

/* Amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.amenity { padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fffdf8; transition: border-color 0.3s, transform 0.3s; }
.amenity:hover { border-color: var(--amber); transform: translateY(-4px); }
.amenity svg { width: 38px; height: 38px; fill: none; stroke: var(--amber); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.amenity h4 { margin-bottom: 6px; }
.amenity p { font-size: 0.93rem; color: var(--muted); margin: 0; }

/* Explore */
.explore { background: var(--forest-deep); color: rgba(255,255,255,0.88); }
.explore h2, .explore h3 { color: #fff; }
.explore .eyebrow { color: #f0b46a; }
.explore .section-head p:last-child { color: rgba(255,255,255,0.7); }
.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,0.12); border-radius: var(--radius); overflow: hidden; }
.place { background: var(--forest-deep); padding: 38px 32px; transition: background 0.3s; }
.place:hover { background: var(--forest); }
.place-num { font-family: var(--serif); font-size: 2.6rem; color: var(--amber); line-height: 1; display: block; margin-bottom: 14px; }
.place p { color: rgba(255,255,255,0.72); font-size: 0.97rem; margin: 0; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; }
.g-item span {
  position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--serif); font-size: 1.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4); opacity: 0.95;
}
.g-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgba(0,0,0,0.35)); }
.g-item span { z-index: 1; }
.g-1 { grid-column: span 2; grid-row: span 2; }
.g-4 { grid-row: span 2; }
.g-6 { grid-column: span 2; }

/* Reach */
.reach { background: var(--sand); }
.reach-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.route { padding: 18px 0; border-bottom: 1px solid var(--line); }
.route h4 { margin-bottom: 4px; color: var(--amber-dark); }
.route p { margin: 0; color: var(--muted); }
.reach .note { margin-top: 20px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 440px; background: #ddd; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; }

/* Booking */
.book-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.contact-list svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 3px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--amber); }

.book-form {
  background: #fffdf8; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.book-form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--forest); margin-bottom: 16px; }
.book-form label input, .book-form label select, .book-form label textarea { margin-top: 6px; font-weight: 400; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.form-error { color: #a13a2a; font-size: 0.9rem; margin: 0 0 12px; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 70px 0 24px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.site-footer h5 { color: #fff; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a, .site-footer span { display: block; text-decoration: none; margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.brand-light { color: #fff; margin-bottom: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,0.1); margin-top: 50px; padding-top: 22px; font-size: 0.85rem; }
.footer-bottom p { margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 96px; z-index: 60; /* sits above the Netlify free-plan badge */
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4);
  transition: transform 0.25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .room-grid { grid-template-columns: 1fr 1fr; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); color: var(--forest-deep);
    padding: 10px 20px 24px;
    box-shadow: 0 20px 30px -20px rgba(0,0,0,0.3);
    transform: translateY(-120%); transition: transform 0.35s ease;
    visibility: hidden;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a.btn { margin-top: 16px; text-align: center; border-bottom: 0; }
  .site-header.menu-open { background: var(--cream); color: var(--forest-deep); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .about-grid, .reach-grid, .book-grid { grid-template-columns: 1fr; }
  .stat-card { right: 16px; }
  .img-frame { aspect-ratio: 4 / 3; }
  .img-about { background-position: center 75%; }
  .founder-grid .about-media { order: -1; width: 100%; max-width: 420px; justify-self: center; }
  .img-founder { aspect-ratio: 4 / 5; }

  .hero { padding-bottom: 40px; }
  .quick-book {
    position: relative; left: auto; bottom: auto; transform: none;
    margin-top: 40px; grid-template-columns: 1fr 1fr;
  }
  .quick-book .btn { grid-column: 1 / -1; }

  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .g-1 { grid-column: span 2; grid-row: span 1; }
  .g-4 { grid-row: span 1; }
}

@media (max-width: 600px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(20,35,28,0.55) 0%, rgba(20,35,28,0.35) 45%, rgba(20,35,28,0.65) 100%),
      url("../images/hero-mobile.jpg") 72% center/cover no-repeat,
      linear-gradient(180deg, #e9b98a 0%, #d99a74 22%, #8fa3b3 55%, #5f7d8c 100%);
  }
  body { font-size: 16px; }
  .room-grid, .amenity-grid, .explore-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-actions .btn { flex: 1; text-align: center; }
}
