/* =====================================================
   VIDHYARTHI PG — MAIN STYLESHEET
   Palette: Primary #0D6EFD | Accent #28A745 | BG #F8F9FA
   Font: Poppins (400 body / 600 buttons / 700 headings)
   ===================================================== */

:root {
  --primary: #0D6EFD;
  --primary-dark: #0a58ca;
  --secondary: #FFFFFF;
  --bg: #F8F9FA;
  --accent: #28A745;
  --accent-dark: #1e7e34;
  --text: #212529;
  --muted: #6c757d;
  --radius: 18px;
  --shadow-sm: 0 4px 14px rgba(13, 110, 253, 0.08);
  --shadow-md: 0 10px 30px rgba(33, 37, 41, 0.10);
  --shadow-lg: 0 20px 50px rgba(33, 37, 41, 0.16);
  --grad-primary: linear-gradient(135deg, #0D6EFD 0%, #0a58ca 60%, #084298 100%);
  --grad-dark: linear-gradient(150deg, #101827 0%, #0d1b3a 55%, #0a2540 100%);
}

/* ============ BASE ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }

a { text-decoration: none; transition: all .3s ease; }

img { max-width: 100%; }

.btn { font-weight: 600; border-radius: 50px; transition: all .3s ease; }
.btn:hover { transform: translateY(-2px); }

.text-accent { color: var(--accent) !important; }

/* Section spacing */
.section { padding: 90px 0; }

/* Section headers */
.section-head { max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: 2.35rem; margin: 14px 0 12px; }
.section-head p { color: var(--muted); }
.section-tag {
  display: inline-block;
  background: rgba(13, 110, 253, 0.10);
  color: var(--primary);
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
}
.section-tag.light { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ============ SCROLL PROGRESS BAR ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 2000;
  transition: width .1s linear;
}

/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 12px rgba(33, 37, 41, 0.06);
  transition: all .3s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(33, 37, 41, 0.12); }

.navbar { padding: 14px 0; }

.navbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--grad-primary);
  color: #fff;
  font-size: 1.3rem;
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.brand-text { font-weight: 700; font-size: 1.28rem; color: var(--text); }
.brand-text span { color: var(--primary); }

.nav-links .nav-link {
  font-weight: 500;
  color: var(--text);
  margin: 0 6px;
  position: relative;
  padding: 8px 6px;
}
.nav-links .nav-link::after {
  content: "";
  position: absolute;
  left: 6px; right: 6px; bottom: 0;
  height: 2.5px;
  background: var(--primary);
  border-radius: 3px;
  transform: scaleX(0);
  transition: transform .3s ease;
}
.nav-links .nav-link:hover::after,
.nav-links .nav-link.active::after { transform: scaleX(1); }
.nav-links .nav-link:hover, .nav-links .nav-link.active { color: var(--primary); }

.header-ctas { gap: 10px; }

/* Call / WhatsApp buttons */
.btn-call {
  background: var(--grad-primary);
  color: #fff;
  padding: 9px 20px;
  box-shadow: var(--shadow-sm);
}
.btn-call:hover { color: #fff; box-shadow: 0 8px 22px rgba(13, 110, 253, 0.35); }

.btn-wa {
  background: linear-gradient(135deg, #28A745, #1e7e34);
  color: #fff;
  padding: 9px 20px;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.25);
}
.btn-wa:hover { color: #fff; box-shadow: 0 8px 22px rgba(40, 167, 69, 0.4); }

.navbar-toggler { border: none; font-size: 1.7rem; color: var(--primary); padding: 4px 8px; }
.navbar-toggler:focus { box-shadow: none; }

/* Mobile offcanvas */
.mobile-nav { max-width: 300px; }
.mobile-nav .offcanvas-title { font-weight: 700; }
.mobile-links li a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 10px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid #f0f1f3;
}
.mobile-links li a i { color: var(--primary); }
.mobile-links li a:hover { color: var(--primary); padding-left: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  background: url("../img/bg.jpg") center/cover no-repeat;
  padding: 120px 0 90px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(8, 20, 40, 0.88) 0%, rgba(10, 30, 66, 0.72) 55%, rgba(13, 110, 253, 0.30) 100%);
}
.hero-content { position: relative; z-index: 2; }

.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
  font-weight: 500;
  font-size: .88rem;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 22px;
}
.hero-tag i { color: #4cd964; }

.hero h1 {
  color: #fff;
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 18px;
}
.text-gradient {
  background: linear-gradient(90deg, #6db4ff, #4cd964);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.18rem;
  max-width: 560px;
  margin-bottom: 30px;
}

.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero-btns .btn { padding: 13px 30px; font-size: 1rem; }
.btn-book { background: var(--grad-primary); border: none; box-shadow: 0 10px 26px rgba(13, 110, 253, 0.4); }
.btn-hero-call { color: var(--primary); }
.btn-hero-wa { background: linear-gradient(135deg, #28A745, #1e7e34); border: none; box-shadow: 0 10px 26px rgba(40, 167, 69, 0.35); }

/* Feature badges */
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.badge-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .88rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 50px;
  transition: all .3s ease;
}
.badge-chip:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.badge-chip i { color: #6db4ff; }

/* Hero stats */
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 30px;
}
.hero-stats .stat h3 { color: #fff; font-size: 2rem; margin-bottom: 2px; }
.hero-stats .stat p { color: rgba(255, 255, 255, 0.65); font-size: .86rem; margin: 0; }

/* ============ FACILITIES ============ */
.facilities { background: var(--secondary); }

.facility-card {
  background: var(--bg);
  border: 1px solid #eef0f3;
  border-radius: var(--radius);
  text-align: center;
  padding: 34px 18px 28px;
  height: 100%;
  transition: all .35s ease;
}
.facility-card:hover {
  background: #fff;
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 110, 253, 0.25);
}
.f-icon {
  width: 66px; height: 66px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-size: 1.7rem;
  color: var(--primary);
  background: rgba(13, 110, 253, 0.1);
  border-radius: 20px;
  transition: all .35s ease;
}
.facility-card:hover .f-icon {
  background: var(--grad-primary);
  color: #fff;
  transform: rotateY(180deg);
}
.facility-card h5 { font-size: 1.02rem; margin-bottom: 8px; }
.facility-card p { color: var(--muted); font-size: .85rem; margin: 0; }

/* ============ WHY CHOOSE US ============ */
.why-us { background: var(--grad-dark); position: relative; overflow: hidden; }
.why-us::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.25), transparent 70%);
  top: -200px; right: -150px;
}

/* 5-column layout on lg */
.col-lg-1-5 { flex: 0 0 auto; width: 50%; }
@media (min-width: 768px) { .col-lg-1-5 { width: 33.333%; } }
@media (min-width: 992px) { .col-lg-1-5 { width: 20%; } }

.why-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  text-align: center;
  padding: 30px 14px;
  height: 100%;
  transition: all .35s ease;
  position: relative;
  z-index: 1;
}
.why-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-6px);
  border-color: rgba(77, 171, 255, 0.4);
}
.why-card i { font-size: 2rem; color: #6db4ff; display: block; margin-bottom: 14px; }
.why-card h6 { color: #fff; font-size: .92rem; font-weight: 600; margin: 0; }

/* ============ ROOM GALLERY (SWIPER) ============ */
.room-gallery { background: var(--bg); }

.room-swiper { padding: 10px 6px 56px; }
.room-swiper .swiper-slide { border-radius: var(--radius); overflow: hidden; }

.g-item {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.g-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .5s ease;
}
.g-item:hover img { transform: scale(1.08); }
.zoom-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 1.9rem;
  color: #fff;
  background: rgba(13, 110, 253, 0.45);
  opacity: 0;
  transition: opacity .35s ease;
}
.g-item:hover .zoom-icon { opacity: 1; }

.room-swiper .swiper-pagination-bullet { background: var(--primary); }
.room-swiper .swiper-button-prev,
.room-swiper .swiper-button-next {
  width: 46px; height: 46px;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  color: var(--primary);
}
.room-swiper .swiper-button-prev::after,
.room-swiper .swiper-button-next::after { font-size: 1rem; font-weight: 700; }

/* ============ PHOTO GALLERY (MASONRY) ============ */
.photo-gallery { background: var(--secondary); }

.masonry-grid { columns: 4 240px; column-gap: 18px; }
.m-item {
  display: block;
  margin-bottom: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  break-inside: avoid;
  position: relative;
}
.m-item img { width: 100%; display: block; transition: transform .5s ease, filter .5s ease; }
.m-item:hover img { transform: scale(1.06); filter: brightness(0.85); }

/* ============ TESTIMONIALS ============ */
.reviews { background: var(--bg); }

.review-card {
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  transition: all .35s ease;
  position: relative;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: 8px; right: 22px;
  font-size: 4.5rem;
  font-weight: 700;
  color: rgba(13, 110, 253, 0.08);
  line-height: 1;
}
.review-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.review-card .stars { color: #FFB400; margin-bottom: 14px; font-size: .95rem; }
.review-card p { color: var(--muted); font-size: .93rem; line-height: 1.7; }

.reviewer { display: flex; align-items: center; gap: 13px; margin-top: 18px; }
.avatar {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  flex-shrink: 0;
}
.avatar.a2 { background: linear-gradient(135deg, #28A745, #1e7e34); }
.avatar.a3 { background: linear-gradient(135deg, #6f42c1, #4b2e83); }
.avatar.a4 { background: linear-gradient(135deg, #fd7e14, #ca6510); }
.avatar.a5 { background: linear-gradient(135deg, #d63384, #a02566); }
.avatar.a6 { background: linear-gradient(135deg, #20c997, #14876a); }
.reviewer h6 { margin: 0; font-size: .98rem; }
.reviewer span { color: var(--muted); font-size: .8rem; }

/* ============ FAQ ============ */
.faq { background: var(--secondary); }

.faq-accordion .accordion-item {
  border: 1px solid #eef0f3;
  border-radius: 14px !important;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-accordion .accordion-button {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  padding: 20px 24px;
  background: #fff;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed)::after { filter: brightness(0) invert(1); }
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-body { color: var(--muted); padding: 20px 24px; line-height: 1.75; }
.faq-accordion .accordion-body a { color: var(--primary); font-weight: 600; }

/* ============ BOOKING ============ */
.booking { background: var(--grad-dark); position: relative; overflow: hidden; }
.booking::after {
  content: "";
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(40, 167, 69, 0.2), transparent 70%);
  bottom: -180px; left: -120px;
}
.booking h2 { font-size: 2.3rem; }

.contact-lines { display: flex; flex-direction: column; gap: 16px; position: relative; z-index: 1; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  color: #fff;
  transition: all .3s ease;
}
a.contact-line:hover { background: rgba(255, 255, 255, 0.12); transform: translateX(6px); color: #fff; }
.contact-line i { font-size: 1.5rem; color: #6db4ff; }
.contact-line .bi-whatsapp { color: #4cd964; }
.contact-line small { display: block; color: rgba(255, 255, 255, 0.55); font-size: .78rem; }
.contact-line strong { font-size: 1.02rem; }

.booking-card {
  background: #fff;
  border-radius: 22px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}
.booking-card h4 { margin-bottom: 4px; }
.booking-card .form-label { font-weight: 500; font-size: .9rem; }
.booking-card .form-control,
.booking-card .form-select {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #e6e9ee;
  font-size: .95rem;
}
.booking-card .form-control:focus,
.booking-card .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}
.btn-submit {
  background: var(--grad-primary);
  border: none;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(13, 110, 253, 0.35);
}

/* ============ MAP ============ */
.map-section { padding: 0 0 90px; background: var(--secondary); }
.map-placeholder {
  border-radius: var(--radius);
  background: var(--bg);
  border: 2px dashed rgba(13, 110, 253, 0.3);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 20px;
}
.map-inner i { font-size: 2.6rem; color: var(--primary); }
.map-inner h5 { margin: 14px 0 8px; }
.map-inner p { color: var(--muted); margin-bottom: 18px; }

/* ============ FOOTER ============ */
.site-footer { background: #0d1320; color: rgba(255, 255, 255, 0.7); padding: 70px 0 0; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; color: #fff; }
.site-footer p { font-size: .92rem; line-height: 1.75; }
.site-footer h6 { color: #fff; margin-bottom: 20px; font-size: 1rem; letter-spacing: .4px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: rgba(255, 255, 255, 0.6); font-size: .92rem; }
.footer-links a:hover { color: #6db4ff; padding-left: 5px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: .92rem; }
.footer-contact i { color: var(--primary); font-size: 1.1rem; }
.footer-contact .bi-whatsapp { color: var(--accent); }
.footer-contact a { color: rgba(255, 255, 255, 0.7); }
.footer-contact a:hover { color: #6db4ff; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 1.05rem;
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 22px 0;
  margin-top: 50px;
}
.footer-bottom p { margin: 0; font-size: .88rem; }

/* ============ FLOATING BUTTONS ============ */
.float-btn {
  position: fixed;
  right: 22px;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 1.45rem;
  z-index: 1040;
  border: none;
  box-shadow: var(--shadow-md);
  transition: all .3s ease;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }

.float-wa { bottom: 170px; background: #25D366; animation: pulse-wa 2s infinite; }
.float-call { bottom: 105px; background: var(--grad-primary); }
.float-top {
  bottom: 40px;
  background: var(--text);
  opacity: 0;
  visibility: hidden;
}
.float-top.show { opacity: 1; visibility: visible; }

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ STICKY MOBILE BOTTOM BAR ============ */
.mobile-cta-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  z-index: 1050;
  box-shadow: 0 -4px 16px rgba(33, 37, 41, 0.15);
}
.cta-half {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 10px;
  color: #fff;
  font-weight: 600;
  font-size: .98rem;
}
.cta-call { background: var(--grad-primary); }
.cta-wa { background: linear-gradient(135deg, #25D366, #1e7e34); }
.cta-half:hover { color: #fff; filter: brightness(1.08); }

/* ============ EXIT INTENT POPUP ============ */
.exit-popup {
  position: fixed; inset: 0;
  background: rgba(13, 19, 32, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-popup.show { display: flex; animation: fadeIn .3s ease; }

.exit-popup-card {
  background: #fff;
  border-radius: 24px;
  max-width: 420px;
  width: 100%;
  padding: 42px 32px 34px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: popUp .35s cubic-bezier(.18, .89, .32, 1.28);
}
.exit-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  display: grid; place-items: center;
  transition: all .3s ease;
}
.exit-close:hover { background: var(--text); color: #fff; }
.exit-icon {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  font-size: 2rem;
  color: #fff;
  background: var(--grad-primary);
  border-radius: 22px;
}
.exit-popup-card h4 { margin-bottom: 10px; }
.exit-popup-card p { color: var(--muted); margin-bottom: 22px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popUp { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============ ACCESSIBILITY ============ */
:focus-visible { outline: 3px solid rgba(13, 110, 253, 0.5); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}