/* =============================================
   STAYNEST HOSTEL — DESIGN SYSTEM
   Theme: Royal Purple & Midnight Blue
   ============================================= */

:root {
  --navy-900:   #111827; /* Midnight Blue */
  --purple:     #6D28D9; /* Royal Purple */
  --purple-hover: #5B21B6;
  --gold:       #F59E0B; /* Gold */
  --gold-hover: #D97706;
  --slate:      #94A3B8; /* Slate Gray */
  --bg:         #F1F5F9; /* Soft White */
  --surface:    #FFFFFF;
  --border:     #E2E8F0;
  --text-1:     #111827;
  --text-2:     #4B5563;
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(17,24,39,.1);
  --shadow:     0 4px 15px rgba(17,24,39,.08);
  --shadow-lg:  0 10px 25px rgba(17,24,39,.1);
  --nav-h:      80px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── TYPOGRAPHY ─────────────────────────── */
.display { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
.heading-1 { font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.heading-2 { font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 700; line-height: 1.25; }
.eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; display: block;}
.text-gold { color: var(--gold); }
.text-purple { color: var(--purple); }

/* ─── LAYOUT ─────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-header h2 { font-size: 2.2rem; }
.section-header .divider { width: 50px; height: 3px; background: var(--gold); margin: 15px auto 0; }

/* ─── BUTTONS ────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 600;
  transition: all 0.2s;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-hover); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--text-1); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-outline-purple { border: 1.5px solid var(--purple); background: transparent; color: var(--purple); }
.btn-outline-purple:hover { background: var(--purple); color: #fff; }

/* ─── NAVBAR ─────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  background: var(--navy-900); z-index: 1000;
  display: flex; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.navbar.scrolled {
  background: var(--navy-900);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 36px; filter: brightness(0) invert(1); } /* Logo is always white on dark nav */
.nav-logo-text { font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.nav-logo-text span { color: var(--gold); }

.nav-links { display: flex; gap: 32px; }
.nav-link { color: #fff; font-size: 0.95rem; font-weight: 500; }
.nav-link:hover, .nav-link.active { color: var(--purple); }

.nav-cta { background: var(--purple); color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; display: flex; align-items: center; gap: 8px;}
.nav-cta:hover { background: var(--purple-hover); }

/* ─── HERO SPLIT LAYOUT ──────────────────── */
.hero {
  display: flex; height: 100vh; min-height: 700px;
  background: var(--navy-900); padding-top: var(--nav-h);
}
.hero-image {
  flex: 1; position: relative;
  background-image: url('../images/hero-bg.png');
  background-size: cover; background-position: center;
}
.hero-content {
  flex: 1; padding: 60px;
  display: flex; flex-direction: column; justify-content: center;
}
.hero-quote-icon { font-size: 2.5rem; color: var(--purple); margin-bottom: 20px; }
.hero-title { color: #fff; margin-bottom: 20px; }
.hero-subtitle { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 450px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 60px; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-outline-light i { color: var(--purple); }

.hero-badges { display: flex; gap: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.hero-badge { display: flex; align-items: center; gap: 12px; }
.badge-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; color: var(--purple); font-size: 1.1rem; }
.badge-info h4 { color: #fff; font-size: 0.9rem; font-weight: 600; }
.badge-info p { color: rgba(255,255,255,0.5); font-size: 0.75rem; }

/* ─── BOOKING BAR ────────────────────────── */
.booking-bar-wrapper { margin-top: -50px; position: relative; z-index: 10; padding: 0 24px;}
.booking-bar {
  max-width: 1100px; margin: 0 auto;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 24px 32px;
  display: flex; align-items: center; gap: 30px;
}
.booking-title { display: flex; align-items: center; gap: 16px; flex-shrink: 0; min-width: 200px; }
.booking-icon { width: 48px; height: 48px; background: rgba(109,40,217,0.1); color: var(--purple); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.booking-title h3 { font-size: 1.1rem; color: var(--navy-900); }
.booking-title p { font-size: 0.8rem; color: var(--text-2); }
.booking-form { display: flex; gap: 16px; flex: 1; align-items: flex-end; }
.form-col { flex: 1; }
.form-col label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--navy-900); margin-bottom: 8px; }
.form-col input { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 0.9rem; outline: none; transition: border 0.2s;}
.form-col input:focus { border-color: var(--purple); }
.booking-form .btn { padding: 13px 24px; white-space: nowrap; height: 44px; }

/* ─── WHY STAY WITH US (CARDS) ───────────── */
.facilities-section { padding-top: 100px; }
.facilities-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.facility-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 30px 20px; text-align: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.facility-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--purple); }
.facility-icon { font-size: 2.2rem; color: var(--purple); margin-bottom: 20px; display: inline-block; }
.facility-card h3 { font-size: 0.95rem; margin-bottom: 10px; color: var(--navy-900); }
.facility-card p { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }

/* ─── ROOMS ──────────────────────────────── */
.rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.room-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.room-image { height: 220px; width: 100%; object-fit: cover; }
.room-content { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.room-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.room-header h3 { font-size: 1.1rem; color: var(--navy-900); }
.room-capacity { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--purple); font-weight: 600; }
.room-desc { font-size: 0.9rem; color: var(--text-2); margin-bottom: 24px; flex: 1; }
.room-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid var(--border); }
.room-price { font-size: 1.3rem; font-weight: 800; color: var(--purple); }
.room-price span { font-size: 0.8rem; font-weight: 500; color: var(--text-2); }

/* ─── GALLERY ────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 40px; }
.gallery-item { border-radius: var(--radius); overflow: hidden; height: 240px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }

/* ─── CTA BANNER ─────────────────────────── */
.cta-banner-wrapper { padding: 0 24px; margin-bottom: -60px; position: relative; z-index: 10; }
.cta-banner {
  background: var(--purple); border-radius: var(--radius-lg);
  padding: 40px 60px; display: flex; justify-content: space-between; align-items: center;
  box-shadow: var(--shadow-lg); max-width: 1152px; margin: 0 auto;
}
.cta-content { display: flex; align-items: center; gap: 20px; }
.cta-icon { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; }
.cta-content h2 { color: #fff; font-size: 1.8rem; margin-bottom: 5px; }
.cta-content p { color: rgba(255,255,255,0.8); font-size: 1rem; }

/* ─── FOOTER ─────────────────────────────── */
.footer { background: var(--navy-900); padding-top: 140px; padding-bottom: 40px; color: rgba(255,255,255,0.7); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 60px; }
.footer-brand .nav-logo-img { filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { font-size: 0.9rem; margin-bottom: 20px; line-height: 1.6; }
.social-links { display: flex; gap: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.2s; }
.social-links a:hover { background: var(--purple); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; font-weight: 600; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 12px; margin-bottom: 16px; font-size: 0.9rem; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 4px; }
.newsletter-form input { width: 100%; padding: 12px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2); background: transparent; color: #fff; margin-bottom: 12px; outline: none; }
.newsletter-form input:focus { border-color: var(--purple); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; height: auto; }
  .hero-image { display: none; } /* On mobile, hide split image or show differently */
  .facilities-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .booking-bar { flex-direction: column; align-items: stretch; }
  .booking-form { flex-direction: column; }
  .facilities-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { flex-direction: column; text-align: center; gap: 20px; }
}
