/*
Theme Name: Kartikay Home Stay
Author: High-End Hospitality Design Studio
Version: 1.0.0
Description: Production-ready Theme for Kartikay Home Stay
*/

/* 1. RESET & BASE LAYOUT */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-cream);
  color: var(--dark);
  font-size: 16px;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
}

.bg-cream { background-color: var(--bg-cream); }
.bg-surface { background-color: var(--bg-surface); }
.bg-forest { background-color: var(--primary); }

/* 2. TYPOGRAPHY SYSTEM */
h1, h2, h3, h4, .font-serif {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.sub-heading {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--dark);
  margin-bottom: 20px;
}

.light-text .section-title { color: #FFFFFF; }

/* 3. BUTTONS & MAGNETIC MICRO-INTERACTIONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-gold {
  background-color: var(--secondary);
  color: #FFFFFF;
}

.btn-gold:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(201, 162, 39, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #FFFFFF;
}

/* 4. HERO & FLOATING BOOKING BAR */
.hero-viewport {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(18,55,42,0.6) 0%, rgba(28,28,28,0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #FFFFFF;
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin: 15px 0 25px 0;
}

.booking-bar-wrapper {
  margin-top: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.booking-quick-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 8px;
}

.form-group input, .form-group select {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #FFFFFF;
  outline: none;
  font-family: inherit;
}

/* 5. 3D CARDS & ROOM SHOWCASE */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.room-card {
  perspective: 1000px;
}

.room-card-inner {
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.room-card:hover .room-card-inner {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.room-image-wrap {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.room-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.room-card:hover .room-image-wrap img {
  transform: scale(1.08);
}

.room-price-badge {
  position: absolute;
  bottom: 15px; right: 15px;
  background: var(--primary);
  color: #FFFFFF;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
}

.room-card-body {
  padding: 25px;
}

.room-specs {
  list-style: none;
  margin: 15px 0;
  border-top: 1px solid #EEE;
  border-bottom: 1px solid #EEE;
  padding: 12px 0;
  font-size: 0.85rem;
  color: #666;
}

/* 6. MASONRY GALLERY */
.masonry-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: block;
  height: 280px;
}

.gallery-item.item-tall { grid-row: span 2; height: 580px; }
.gallery-item.item-wide { grid-column: span 2; }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

/* 7. CURSOR FOLLOWER UI */
.cursor-dot, .cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
}

.cursor-dot { width: 8px; height: 8px; background-color: var(--secondary); }
.cursor-outline {
  width: 40px; height: 40px;
  border: 1px solid var(--secondary);
  transition: transform 0.15s ease-out;
}

/* 8. SINGLE ROOM & STICKY FORM */
.single-room-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.sticky-booking-card {
  position: sticky;
  top: 100px;
  background: #FFFFFF;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid #EAEAEA;
}

/* 9. RESPONSIVE MEDIA QUERIES */
@media (max-width: 992px) {
  .booking-quick-form { grid-template-columns: repeat(2, 1fr); }
  .single-room-grid { grid-template-columns: 1fr; }
  .cursor-dot, .cursor-outline { display: none; }
}

@media (max-width: 600px) {
  .booking-quick-form { grid-template-columns: 1fr; }
  .masonry-gallery { grid-template-columns: 1fr; }
  .gallery-item.item-tall, .gallery-item.item-wide { grid-row: auto; grid-column: auto; height: 250px; }
}