/* =========================================================
   Varaha Swamy Rest House — Main Stylesheet
   ========================================================= */

:root {
  --maroon: #7a1f2b;
  --maroon-dark: #5a1620;
  --gold: #d4af37;
  --gold-light: #f3e3ab;
  --cream: #fff8ef;
  --text-dark: #2b2420;
  --text-light: #6b5f56;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(90, 22, 32, 0.12);
  --radius: 14px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--maroon-dark);
  margin: 0 0 14px;
  line-height: 1.25;
}

p { margin: 0 0 16px; color: var(--text-light); }

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

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

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

.section { padding: 70px 0; }
.section-alt { background: var(--white); }

.section-tag {
  display: inline-block;
  color: var(--maroon);
  background: var(--gold-light);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
}

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

.section-head h2 { font-size: 2.1rem; }
.section-head p { font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s ease;
}
.btn-primary { background: var(--maroon); color: var(--white); }
.btn-primary:hover { background: var(--maroon-dark); transform: translateY(-2px); }
.btn-whatsapp { background: #25d366; color: var(--white); }
.btn-whatsapp:hover { background: #1ebc59; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--maroon-dark); }
.btn-gold { background: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: #c79c2b; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--maroon-dark);
  color: var(--gold-light);
  font-size: 0.85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: var(--gold-light); }
.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-links span { opacity: 0.85; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--maroon), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-family: 'Playfair Display', serif;
  font-weight: 700; font-size: 1.3rem; flex-shrink: 0;
}
.brand-text h1 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--maroon-dark);
}
.brand-text span {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: 0.2s;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--maroon); border-color: var(--gold); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 10px 18px; font-size: 0.88rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 26px; height: 3px; background: var(--maroon-dark); border-radius: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(40,10,15,0.62), rgba(40,10,15,0.72)),
              url('../images/temple-gopuram.jpg') center/cover no-repeat;
  color: var(--white);
}
.hero .container { position: relative; z-index: 2; max-width: 760px; }
.hero .section-tag { background: rgba(255,255,255,0.15); color: var(--gold-light); }
.hero h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 18px;
}
.hero p.lead {
  color: #f3e9e0;
  font-size: 1.15rem;
  max-width: 600px;
}
.hero .price-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--maroon-dark);
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 22px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--white);
  border-bottom: 1px solid #f0e4d8;
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 18px;
  padding: 24px 20px;
  text-align: center;
}
.trust-item { flex: 1 1 150px; }
.trust-item .num { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--maroon); font-weight: 700; }
.trust-item .label { font-size: 0.85rem; color: var(--text-light); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-images img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  height: 100%;
  object-fit: cover;
}
.about-images .tall { grid-row: span 2; height: 100%; }

/* ---------- Amenities ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}
.amenity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.amenity-card:hover { transform: translateY(-6px); }
.amenity-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}
.amenity-card h4 { font-size: 1rem; margin-bottom: 6px; }
.amenity-card p { font-size: 0.85rem; margin: 0; }

/* ---------- Room Packages ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
}
.room-card .room-img { height: 210px; overflow: hidden; }
.room-card .room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.room-card:hover .room-img img { transform: scale(1.08); }
.room-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--maroon);
  color: var(--white);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 2;
}
.room-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.room-body h3 { font-size: 1.2rem; margin-bottom: 6px; }
.room-price {
  color: var(--maroon);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.room-price span { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.room-features {
  list-style: none;
  padding: 0; margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--text-light);
}
.room-features li { padding: 4px 0; padding-left: 22px; position: relative; }
.room-features li::before {
  content: "✓";
  position: absolute; left: 0; color: var(--gold);
  font-weight: 700;
}
.room-body .btn-row { margin-top: auto; }
.room-body .btn { padding: 10px 16px; font-size: 0.85rem; flex: 1; justify-content: center; }
.price-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 28px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}
.gallery-grid a { display: block; height: 100%; border-radius: 10px; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gallery-grid a:hover img { transform: scale(1.1); }
.gallery-grid .big { grid-column: span 2; grid-row: span 2; }

/* ---------- Attractions ---------- */
.attractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.attraction-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.attraction-card img { height: 170px; width: 100%; object-fit: cover; }
.attraction-card .body { padding: 18px 20px; }
.attraction-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.attraction-card p { font-size: 0.88rem; margin: 0; }

/* ---------- Why choose us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 26px;
}
.why-card { display: flex; gap: 16px; align-items: flex-start; }
.why-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--maroon);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.why-card h4 { font-size: 1.02rem; margin-bottom: 4px; }
.why-card p { font-size: 0.88rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-item {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  color: var(--maroon-dark);
}
.faq-question .plus { font-size: 1.3rem; color: var(--gold); transition: transform 0.25s; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 22px;
}
.faq-item.open .faq-answer { max-height: 240px; padding-bottom: 18px; }
.faq-answer p { margin: 0; font-size: 0.92rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--maroon), var(--maroon-dark));
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
  border-radius: var(--radius);
  margin: 0 20px;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--gold-light); }
.cta-banner .btn-row { justify-content: center; }

/* ---------- Contact quick section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}
.info-row { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.info-row .icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--gold-light);
  color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
}
.info-row h4 { margin: 0 0 4px; font-size: 1rem; }
.info-row p { margin: 0; font-size: 0.92rem; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

form.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 0.85rem; font-weight: 600; color: var(--maroon-dark); margin-bottom: 4px; display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e4d5c4;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
}
.contact-form textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Legal pages ---------- */
.legal-hero {
  background: var(--maroon-dark);
  color: var(--gold-light);
  padding: 60px 20px 50px;
  text-align: center;
}
.legal-hero h1 { color: var(--white); margin-bottom: 8px; }
.legal-hero p { color: var(--gold-light); margin: 0; }
.legal-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 20px;
}
.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 34px;
  border-left: 4px solid var(--gold);
  padding-left: 14px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-light); font-size: 0.97rem; }
.legal-content ul { padding-left: 22px; }
.legal-updated {
  display: inline-block;
  background: var(--gold-light);
  color: var(--maroon-dark);
  font-size: 0.82rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--maroon-dark);
  color: #f0e0d5;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 { color: var(--gold-light); font-size: 1rem; margin-bottom: 16px; font-family: 'Poppins', sans-serif; }
.footer-grid p, .footer-grid a { color: #e8d3c4; font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid ul a:hover { color: var(--gold-light); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-bottom {
  text-align: center;
  padding: 22px 20px;
  font-size: 0.82rem;
  color: #d8b9a5;
}
.footer-bottom a { color: var(--gold-light); }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: var(--white);
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 998;
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 780px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  nav.main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 10px 20px 20px;
  }
  nav.main-nav.mobile-open ul { flex-direction: column; gap: 4px; }
  .hero h1 { font-size: 2.1rem; }
  .hero { min-height: 460px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .btn span.btn-text { display: none; }
}
