/* ===================================================================
   GANESHA SADAN — STYLES & RESPONSIVE ENGINE
   =================================================================== */
:root {
  --maroon: #7A1F2B;
  --maroon-dark: #551420;
  --gold: #E7A227;
  --gold-soft: #F3C468;
  --forest: #35603F;
  --ivory: #FBF3E6;
  --ivory-dim: #F2E6D2;
  --ink: #2B211C;
  --terracotta: #C1502E;
  --white: #ffffff;

  --display: 'Cinzel', serif;
  --body: 'Poppins', sans-serif;
  --telugu: 'Noto Sans Telugu', sans-serif;

  --radius: 14px;
  --shadow: 0 12px 30px -12px rgba(43,33,28,.25);
  --transition: .35s cubic-bezier(.4,0,.2,1);
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5 {
  font-family: var(--display);
  line-height: 1.25;
  letter-spacing: .5px;
  word-break: break-word;
}

.break-text {
  word-break: break-all;
  overflow-wrap: anywhere;
}

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

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: .75rem;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  color: var(--maroon-dark);
}

.section-head p {
  margin-top: 12px;
  color: #5c4e44;
  font-size: 1rem;
}

/* ---------- reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: .9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--maroon-dark);
}

.btn-primary:hover {
  background: var(--gold-soft);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(231,162,39,.6);
}

.btn-outline {
  border-color: var(--ivory);
  color: var(--ivory);
}

.btn-outline:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-3px);
}

.btn-dark {
  background: var(--maroon);
  color: var(--ivory);
}

.btn-dark:hover {
  background: var(--maroon-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(122,31,43,.5);
}

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: #20ba5a;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -8px rgba(37,211,102,.6);
}

/* ===================================================================
   HEADER / NAV
   =================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 14px 0;
}

header.scrolled {
  background: rgba(122,31,43,.96);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

/* Inner pages (Rooms, Facilities, Location, Contact, etc.) have no dark
   hero image behind the header, so the header must never be transparent
   on these pages — otherwise the ivory-colored logo/nav text disappears
   against the ivory page background. Add class="header-solid" to the
   <header id="siteHeader"> tag on any page that has no hero section. */
header.header-solid {
  background: var(--maroon-dark);
  padding: 10px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: clamp(1rem, 4vw, 1.3rem);
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}

.logo span em {
  font-style: normal;
  color: var(--gold);
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--maroon-dark);
  font-size: 1.1rem;
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  color: var(--ivory);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .4px;
  position: relative;
  padding: 6px 0;
}

nav.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

nav.main-nav a:hover::after, nav.main-nav a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-call {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-soft);
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1200;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--ivory);
  transition: var(--transition);
}

/* On solid (non-transparent) headers the hamburger bars must stay ivory
   too — this is already the default above, kept here for clarity. */
header.header-solid .hamburger span {
  background: var(--ivory);
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(43,33,28,.65), rgba(85,20,32,.85)),
             url('../Img/Nav.webp') center/cover no-repeat;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--ivory);
  text-align: center;
  margin: 0 auto;
  max-width: 820px;
  width: 100%;
}

.hero-eyebrow {
  font-family: var(--telugu);
  color: var(--gold-soft);
  font-size: clamp(.85rem, 3vw, 1.05rem);
  margin-bottom: 14px;
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  color: var(--ivory);
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
}

.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  margin: 18px auto 30px;
  max-width: 560px;
  font-size: clamp(.92rem, 2.5vw, 1.08rem);
  color: #f2e6d2;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-stats div {
  text-align: center;
  flex: 1 1 100px;
  min-width: 90px;
}

.hero-stats strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(1.4rem, 4vw, 1.9rem);
  color: var(--gold-soft);
}

.hero-stats span {
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e8d9c4;
}

/* ===================================================================
   INNER PAGE HERO (for pages without a full hero image, e.g. Rooms,
   Facilities, Location, Contact) — gives the section below the solid
   header some breathing room and a matching maroon backdrop.
   =================================================================== */
.page-hero {
  background: var(--maroon-dark);
  padding: 140px 0 60px;
}

.page-hero .section-head {
  text-align: left;
  margin: 0;
  max-width: 780px;
}

.page-hero .eyebrow {
  color: var(--gold-soft);
}

.page-hero h1 {
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  color: var(--ivory);
}

.page-hero p {
  color: #e9d9c6;
  margin-top: 14px;
  font-size: 1rem;
}

/* ===================================================================
   ABOUT
   =================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-imgwrap {
  position: relative;
}

.about-imgwrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: var(--maroon);
  color: var(--ivory);
  padding: 14px 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.about-badge strong {
  display: block;
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--gold-soft);
}

.about-badge span {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-text h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  color: var(--maroon-dark);
  margin-bottom: 16px;
}

.about-text p {
  color: #5c4e44;
  margin-bottom: 14px;
}

.about-list {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: .9rem;
  color: var(--ink);
}

.about-list li i {
  color: var(--gold);
  font-size: .85rem;
}

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}

.gallery-grid figure {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-grid figure:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid figure:nth-child(4) {
  grid-column: span 2;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(43,33,28,.85), transparent);
  color: var(--ivory);
  font-size: .8rem;
  font-weight: 500;
}

.gallery-grid figure:hover img {
  transform: scale(1.08);
}

/* ===================================================================
   ROOMS / SERVICES
   =================================================================== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.room-card:hover {
  transform: translateY(-6px);
}

.room-card .room-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}

.room-card .room-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--maroon-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.room-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.room-body h3 {
  font-size: 1.2rem;
  color: var(--maroon-dark);
  margin-bottom: 6px;
}

.room-body p {
  font-size: .88rem;
  color: #6b5c50;
  margin-bottom: 14px;
}

.room-amen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.room-amen span {
  font-size: .7rem;
  background: var(--ivory-dim);
  color: var(--maroon-dark);
  padding: 4px 8px;
  border-radius: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.room-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0e6d6;
}

.room-price strong {
  font-family: var(--display);
  color: var(--terracotta);
  font-size: 1.1rem;
}

/* ===================================================================
   NEARBY PLACES (MATCHING REFERENCE DESIGN)
   =================================================================== */
.nearby-section {
  background: var(--ivory);
}

.nearby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.place-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.place-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -12px rgba(43,33,28,.3);
}

.place-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(231,162,39,.18);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.place-info h4 {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.place-info p {
  font-size: .85rem;
  color: #7a6a5c;
}

/* ===================================================================
   FAQ SECTION (ACCORDION - MATCHING REFERENCE DESIGN)
   =================================================================== */
.faq-section {
  background: var(--ivory-dim);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2d3be;
}

.faq-question {
  width: 100%;
  padding: 22px 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--maroon);
}

.faq-icon {
  font-size: .9rem;
  color: var(--gold);
  transition: transform var(--transition);
  margin-left: 16px;
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 22px;
}

.faq-answer p {
  color: #5c4e44;
  font-size: .95rem;
  line-height: 1.6;
}

/* ===================================================================
   BOOKING / CONTACT
   =================================================================== */
.booking {
  background: var(--maroon);
  color: var(--ivory);
}

.booking-card-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.booking-box {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.booking-box h3 {
  color: var(--ivory);
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.booking-box p {
  color: #e9d9c6;
  font-size: .92rem;
  margin-bottom: 24px;
}

.icon-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(231,162,39,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--gold-soft);
  font-size: 1.2rem;
}

/* ===================================================================
   CONTACT
   =================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  display: flex;
  gap: 12px;
  background: #fff;
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card .icon-circle {
  width: 40px;
  height: 40px;
  margin: 0;
  background: var(--ivory-dim);
  color: var(--maroon);
}

.contact-card h4 {
  color: var(--maroon-dark);
  font-size: .95rem;
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-card p, .contact-card a {
  color: #5c4e44;
  font-size: .88rem;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
  width: 100%;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.directions-btns {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* ===================================================================
   FOOTER
   =================================================================== */
footer {
  background: var(--maroon-dark);
  color: #e9d9c6;
  padding: 48px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-logo {
  font-family: var(--display);
  color: var(--ivory);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.footer-logo span {
  color: var(--gold);
}

footer h5 {
  color: var(--gold-soft);
  font-size: .8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

footer ul li {
  margin-bottom: 8px;
  font-size: .88rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .78rem;
  color: #c9b7a4;
}

/* ---------- floating whatsapp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 900;
  background: #25D366;
  color: #ffffff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37,211,102,.4);
  font-size: 1.6rem;
  transition: transform .3s ease;
}

.float-whatsapp:hover {
  transform: scale(1.1);
}

.back-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 900;
  background: var(--maroon);
  color: var(--ivory);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  font-size: .9rem;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* ===================================================================
   RESPONSIVE BREAKPOINTS
   =================================================================== */
@media (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
  nav.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80%;
    max-width: 300px;
    background: var(--maroon-dark);
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1100;
    box-shadow: -10px 0 30px rgba(0,0,0,.3);
  }
  nav.main-nav.open {
    transform: translateX(0);
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 20px;
    padding: 0 30px;
  }
  .hamburger {
    display: flex;
  }
  .nav-call {
    display: none;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery-grid figure:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .about-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    padding: 120px 0 40px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 14px;
  }
  .nav-book-btn {
    padding: 8px 14px;
    font-size: .8rem;
  }
  .hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .hero-btns .btn {
    width: 100%;
  }
  .about-badge {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 12px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}