/* ============================================================
   Yelagiri Paradise — styles.css
   Plain CSS, mobile-first, no frameworks.
   ============================================================ */

:root {
  --cream: #fbf7f0;
  --forest: #1f4d3a;
  --forest-dark: #15392a;
  --wood: #8b4a2b;
  --gold: #c8963e;
  --teal: #1aa5b8;
  --ink: #26241f;
  --ink-soft: #55534c;
  --border-soft: rgba(38, 36, 31, 0.12);

  --font-heading: Georgia, "Times New Roman", Times, serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(38, 36, 31, 0.08);
  --shadow-md: 0 10px 30px rgba(38, 36, 31, 0.14);

  --header-height: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--forest); line-height: 1.2; }
h1 { font-size: clamp(2rem, 6vw, 3rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding-block: clamp(3rem, 6vw, 5rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.4rem;
}
.note { font-size: 0.85rem; color: var(--ink-soft); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--forest);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: #2a1d0a; }
.btn--outline-light { background: transparent; color: #fff; border-color: #fff; }
.btn--outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--whatsapp { background: #25d366; color: #0b3d20; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--forest);
  text-decoration: none;
  white-space: nowrap;
}
.logo--footer { color: var(--cream); font-size: 1.4rem; margin-bottom: 0.4rem; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--forest);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: var(--cream);
  padding: 1.5rem;
  transform: translateY(-110%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.site-nav.is-open { transform: translateY(0); }
.site-nav ul { display: flex; flex-direction: column; gap: 1.2rem; font-size: 1.1rem; margin-bottom: 1.5rem; }
.site-nav a { text-decoration: none; font-weight: 600; }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static;
    transform: none;
    background: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: visible;
  }
  .site-nav ul { flex-direction: row; gap: 1.6rem; margin-bottom: 0; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(21, 57, 42, 0.92) 0%, rgba(21, 57, 42, 0.35) 55%, rgba(21, 57, 42, 0.15) 100%);
}
.hero__content { position: relative; padding-block: 3rem; }
.hero__content h1 { color: #fff; }
.hero__content p { max-width: 42ch; margin-block: 1rem 1.6rem; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* ---------- About ---------- */
.about__grid { display: grid; gap: 2rem; }
.about__media { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.quick-facts { display: grid; gap: 0.7rem; margin-top: 1.4rem; }
.quick-facts li { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; }
.icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--teal); }

@media (min-width: 860px) {
  .about__grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
}

/* ---------- Room cards ---------- */
.room-cards { display: grid; gap: 2rem; margin-top: 2rem; }
.room-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.room-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.room-card__meta { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 0.6rem; }
.room-card__price { margin-block: 0.9rem 1rem; }
.sample-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wood);
  border: 1px solid var(--wood);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  margin-left: 0.4rem;
}
.feature-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 0.6rem; }
.feature-tags li {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--forest);
}

@media (min-width: 900px) {
  .room-cards { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 4 / 3;
}
.carousel__slide picture,
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.85);
  color: var(--forest);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.carousel__nav--prev { left: 0.6rem; }
.carousel__nav--next { right: 0.6rem; }
.carousel__dots { display: flex; justify-content: center; gap: 0.4rem; padding: 0.7rem 0; }
.carousel__dots[hidden] { display: none; }
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border-soft);
  cursor: pointer;
  padding: 0;
}
.carousel__dots button.is-active { background: var(--teal); }

/* ---------- Amenities ---------- */
.amenity-grid {
  display: grid;
  gap: 1.4rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.amenity-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  padding-bottom: 1.2rem;
  position: relative;
}
.amenity-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.amenity-card__media img { width: 100%; height: 100%; object-fit: cover; }
.amenity-card .icon--amenity {
  width: 34px; height: 34px;
  color: var(--gold);
  margin: 1rem 1.2rem 0.4rem;
}
.amenity-card h3 { margin-inline: 1.2rem; }
.amenity-card p { margin-inline: 1.2rem; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery__filters { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-block: 1.4rem 1.8rem; }
.filter-btn {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
}
.filter-btn.is-active { background: var(--forest); color: #fff; border-color: var(--forest); }

.gallery__grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item[hidden] { display: none; }
.gallery-item__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.gallery-item__btn picture,
.gallery-item__btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.gallery-item__btn:hover img { transform: scale(1.05); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(15, 20, 18, 0.9); }
.lightbox__dialog {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox__image { max-width: min(92vw, 1000px); max-height: 86vh; object-fit: contain; border-radius: var(--radius-md); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  color: var(--forest);
  cursor: pointer;
}
.lightbox__close { top: 1rem; right: 1rem; width: 40px; height: 40px; font-size: 1.4rem; line-height: 1; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 44px; height: 44px; font-size: 1.1rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------- Location ---------- */
.location__grid { display: grid; gap: 2rem; }
.distance-list li, .todo-list li { padding-block: 0.25rem; border-bottom: 1px dashed var(--border-soft); }
address { font-style: normal; margin-block: 0.8rem 1rem; }
.location__map { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.location__map iframe { width: 100%; height: 100%; border: 0; }

@media (min-width: 860px) {
  .location__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ---------- Enquiry form ---------- */
.enquiry-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.8rem;
  max-width: 640px;
}
.form-row { display: flex; flex-direction: column; gap: 0.35rem; }
.form-row label { font-weight: 600; font-size: 0.92rem; }
.form-row input, .form-row select, .form-row textarea {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
.form-row input:invalid:not(:placeholder-shown) { border-color: #b3261e; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.4rem; }
.form-error {
  background: #fdecea;
  color: #8a1c15;
  border: 1px solid #f2b8b5;
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
}
.form-error[hidden] { display: none; }

@media (min-width: 640px) {
  .enquiry-form { grid-template-columns: 1fr 1fr; }
  .form-row:not(.form-row--half) { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.faq details {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  margin-bottom: 0.8rem;
}
.faq summary { font-weight: 700; cursor: pointer; color: var(--forest); }
.faq details p { margin-top: 0.6rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: var(--cream); padding-block: 3rem 1.5rem; }
.footer__grid { display: grid; gap: 1.6rem; margin-bottom: 2rem; }
.footer__grid a { text-decoration: none; opacity: 0.9; }
.footer__grid a:hover { text-decoration: underline; }
.footer__grid h3 { color: var(--gold); font-size: 1rem; margin-bottom: 0.5rem; }
.social-list { display: flex; flex-direction: column; gap: 0.4rem; }
.footer__copyright { font-size: 0.85rem; opacity: 0.75; border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.2rem; }

@media (min-width: 720px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .carousel__track, .gallery-item__btn img { transition: none; }
}
