/* =====================================================
   ELITE PG — HOME PAGE STYLES
   Navbar · Hero · Sections · Gallery · Contact · Footer
   ===================================================== */

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  padding: 0 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(17, 29, 51, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(201,162,39,0.2);
}
.navbar.transparent { background: transparent; }
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 52px; width: auto; transition: height 0.3s ease; }
.scrolled .nav-logo-img { height: 44px; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0; padding: 0;
  flex: 1;
  justify-content: center;
}
.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s, background 0.2s;
  text-decoration: none;
}
.nav-link:hover { color: var(--gold-light); background: rgba(255,255,255,0.06); }
.nav-link.active { color: var(--gold); }

.nav-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.nav-admin-link {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-admin-link:hover { color: rgba(255,255,255,0.75); }
.btn-nav-cta {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: rgba(255,255,255,0.8);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(17,29,51,0.90) 0%,
    rgba(17,29,51,0.70) 50%,
    rgba(17,29,51,0.20) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 100px 28px 60px;
  margin-left: calc((100vw - 1200px) / 2);
  margin-left: max(28px, calc((100vw - 1200px) / 2));
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,162,39,0.12);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.hero-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-heading-accent { color: var(--gold-light); }
.hero-subtext {
  font-size: 15.5px;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-hero-primary {
  background: var(--gold);
  color: var(--navy-dark);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,162,39,0.35);
}
.btn-hero-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,162,39,0.45); }
.btn-hero-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  border: 1.5px solid rgba(255,255,255,0.3);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-hero-outline:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 16px 24px;
  width: fit-content;
}
.hero-stat { display: flex; flex-direction: column; align-items: center; padding: 0 20px; }
.hero-stat-num { font-size: 26px; font-weight: 700; color: var(--white); }
.hero-stat-num.available { color: #5DD39E; }
.hero-stat-label { font-size: 11px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.hero-stat-divider { width: 1px; height: 36px; background: rgba(255,255,255,0.15); }

.hero-scroll-cue {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ---------- SECTION COMMON ---------- */
.section-block { padding: 90px 0; }
.section-alt { background: var(--bg); }
.section-label-top {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.22;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-heading.centered { text-align: center; }
.section-subtext {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}
.section-subtext.centered { text-align: center; margin: 0 auto 48px; }

/* ---------- ABOUT ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 0;
}
.about-text { }
.about-text .section-label-top { margin-bottom: 14px; }
.about-para { font-size: 15px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 14px; }
.about-highlights {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px;
}
.highlight-chip {
  background: var(--gold-pale);
  color: var(--partial);
  border: 1px solid rgba(201,162,39,0.3);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
}
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: visible;
}
.about-img {
  width: 100%;
  border-radius: var(--radius-lg);
  object-fit: cover;
  height: 420px;
  box-shadow: var(--shadow-lg);
}
.about-img-badge {
  position: absolute;
  bottom: -18px; right: -18px;
  background: var(--navy);
  color: var(--white);
  border: 3px solid var(--gold);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
}
.badge-icon { font-size: 22px; }

/* ---------- AMENITIES ---------- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 0;
}
.amenity-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.amenity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(201,162,39,0.35); }
.amenity-icon { font-size: 30px; margin-bottom: 12px; }
.amenity-title { font-size: 14.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.amenity-desc { font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }

/* ---------- AVAILABILITY (STRUCTURE) SECTION ---------- */
.avail-stats-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.avail-stat-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 120px;
}
.avail-stat-num { display: block; font-size: 28px; font-weight: 700; color: var(--navy); }
.avail-stat-label { display: block; font-size: 11.5px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.available-stat .avail-stat-num { color: var(--available); }
.occupied-stat  .avail-stat-num { color: var(--occupied); }

.legend-row {
  display: flex; align-items: center; gap: 20px;
  justify-content: center;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.legend-item { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-secondary); }
.legend-dot {
  width: 12px; height: 12px; border-radius: 50%;
}
.dot-avail   { background: var(--available); }
.dot-occ     { background: var(--occupied); }
.dot-stairs  { background: var(--text-muted); }

/* Staircase card same height as room card */
.room-card.non-room {
  min-height: 80px;
  display: flex;
  align-items: center;
}

/* ---------- GALLERY ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 12px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}
.gallery-item-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: unset;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,29,51,0);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 16px;
  transition: background 0.3s;
}
.gallery-item:hover .gallery-overlay { background: rgba(17,29,51,0.45); }
.gallery-overlay span {
  color: white;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s;
}
.gallery-item:hover .gallery-overlay span { opacity: 1; transform: translateY(0); }
.gallery-note {
  text-align: center;
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.gallery-note code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 500;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none; border: none;
  color: white; font-size: 32px;
  cursor: pointer; line-height: 1;
  opacity: 0.7; transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-img { max-width: 90vw; max-height: 80vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-caption { color: rgba(255,255,255,0.6); font-size: 13.5px; }

/* ---------- CONTACT ---------- */
.contact-section { background: var(--navy-dark); }
.contact-section .section-label-top { color: var(--gold-light); }
.contact-section .section-heading { color: var(--white); }
.contact-section .about-para { color: rgba(255,255,255,0.6); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-icon { font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 3px; }
.contact-value { font-size: 14.5px; color: rgba(255,255,255,0.85); }
.contact-value a { color: var(--gold-light); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.contact-form-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 22px; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-success {
  background: var(--available-bg);
  color: var(--available);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-left { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { height: 44px; width: auto; }
.footer-tagline { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a { padding: 6px 12px; font-size: 13px; color: rgba(255,255,255,0.5); border-radius: 6px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-right { text-align: right; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-admin-link { font-size: 12px; color: rgba(255,255,255,0.2); text-decoration: none; margin-top: 4px; display: block; }
.footer-admin-link:hover { color: rgba(255,255,255,0.5); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-img { height: 280px; }
  .about-img-badge { bottom: -14px; right: -10px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item-large { grid-column: span 2; }
}
@media (max-width: 760px) {
  .nav-links, .nav-admin-link { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(17,29,51,0.98);
    padding: 16px 20px 24px;
    gap: 2px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
  }
  .nav-hamburger { display: flex; }
  .hero-content { margin-left: 0; padding: 100px 20px 50px; }
  .hero-stats { flex-wrap: wrap; gap: 0; }
  .section-block { padding: 60px 0; }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-large { grid-column: span 1; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
}
@media (max-width: 480px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .hero-cta-row { flex-direction: column; }
  .hero-stats { gap: 0; }
}
