/* ============================================
   TWOSON GUESTHOUSE — Elegant Design System
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --beige: #f4f1ea;        /* Primary: Warm Earthy Beige */
  --sage: #6b705c;         /* Secondary: Sage/Olive Green */
  --wood: #8a5a44;         /* Accent: Wood Brown */
  --wood-dark: #6e4836;
  --white: #ffffff;        /* Background: Crisp White */
  
  --text-dark: #2b2b2b;
  --text-body: #555555;
  --text-light: #888888;
  
  --line-green: #06C755;
  --glow-line: rgba(6, 199, 85, 0.4);

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;
  
  --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 30px rgba(0,0,0,0.1);
  
  --radius-sm: 4px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-body);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.3;
}

.title-accent {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sage);
  margin-bottom: 1rem;
  font-weight: 500;
}

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 var(--space-sm); }
.section { padding: var(--space-xl) 0; }
.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 14px 32px;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
  transition: all 0.4s ease;
}

.btn-wood { background: var(--wood); color: var(--white); }
.btn-wood:hover { background: var(--wood-dark); transform: translateY(-3px); box-shadow: 0 8px 15px rgba(138, 90, 68, 0.2); }

.btn-sage { background: var(--sage); color: var(--white); }
.btn-sage:hover { background: #5a5f4c; transform: translateY(-3px); box-shadow: 0 8px 15px rgba(107, 112, 92, 0.2); }

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-bar {
  background: var(--sage);
  color: var(--white);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 8px 0;
  transform: translateY(0);
  transition: transform 0.3s ease;
}
.header.scrolled .top-bar { transform: translateY(-100%); position: absolute; }

.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-contact { display: flex; gap: 20px; }
.top-contact span { display: flex; align-items: center; gap: 6px; }
.top-contact svg { width: 14px; height: 14px; fill: currentColor; }
.top-badge { font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.main-nav { padding: 20px 0; transition: padding 0.4s ease; }
.header.scrolled .main-nav { padding: 15px 0; }

.main-nav .container { display: flex; justify-content: space-between; align-items: center; }

.brand-logo { font-size: 1.8rem; letter-spacing: 1px; color: var(--white); transition: color 0.4s ease; }
.header.scrolled .brand-logo { color: var(--text-dark); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--white); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; transition: color 0.4s ease; }
.header.scrolled .nav-links a { color: var(--text-dark); }
.nav-links a:hover { opacity: 0.7; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 25px; height: 2px; background: var(--white); transition: background 0.4s ease; }
.header.scrolled .hamburger span { background: var(--text-dark); }

/* ============================================
   HERO BANNER
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 20px;
  margin-top: 50px;
  animation: fadeIn 1.5s ease;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.hero-title { font-size: clamp(3rem, 6vw, 5rem); color: var(--white); margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-subtitle { font-size: 1.15rem; font-weight: 300; margin-bottom: 40px; letter-spacing: 0.5px; opacity: 0.9; }

/* ============================================
   WELCOME & VIBE
   ============================================ */
.welcome { background: var(--beige); }

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.welcome-img { position: relative; }
.welcome-img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-soft); }
.welcome-img::after {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 100%; height: 100%;
  border: 1px solid var(--sage);
  z-index: -1;
}

.welcome-text { padding: 0 var(--space-md); }
.welcome-text h2 { font-size: 2.8rem; margin-bottom: 20px; }
.welcome-text p { font-size: 1.05rem; margin-bottom: 30px; line-height: 1.8; color: var(--text-body); }

/* ============================================
   OUR ROOMS
   ============================================ */
.rooms { background: var(--white); }

.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; }

.room-card {
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: all 0.4s ease;
  padding-bottom: 30px;
}

.room-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

.room-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover .room-img img { transform: scale(1.05); }

.room-info { padding: 30px 25px 0; text-align: center; }
.room-info h3 { font-size: 1.5rem; margin-bottom: 15px; }
.room-details { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; letter-spacing: 0.5px; }
.room-price { font-size: 1.25rem; font-weight: 600; color: var(--text-dark); margin-bottom: 25px; font-family: 'Playfair Display', serif; }

/* ============================================
   AMENITIES
   ============================================ */
.amenities { background: var(--beige); padding: var(--space-lg) 0; }
.amenities-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }

.amenity-item { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.amenity-icon { width: 60px; height: 60px; color: var(--sage); display: flex; align-items: center; justify-content: center; }
.amenity-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.2; }
.amenity-item h4 { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 1rem; color: var(--text-dark); letter-spacing: 0.5px; text-transform: uppercase; }

/* ============================================
   GUEST GALLERY
   ============================================ */
.gallery { background: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
  margin-top: 40px;
}

.gallery-item { overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: brightness(0.95); }
.gallery-item:hover img { transform: scale(1.05); filter: brightness(1.05); }

.gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(3) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(4) { grid-column: span 1; grid-row: span 1; }
.gallery-item:nth-child(5) { grid-column: span 2; grid-row: span 1; }

/* ============================================
   LOCATION & CONTACT (FOOTER)
   ============================================ */
.contact-footer { background: var(--wood-dark); color: var(--beige); padding: var(--space-xl) 0 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-bottom: 60px; }

.contact-col h3 { color: var(--white); font-size: 2rem; margin-bottom: 30px; position: relative; padding-bottom: 15px; }
.contact-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 1px; background: var(--sage); }

.contact-col p { font-size: 0.95rem; line-height: 1.8; margin-bottom: 20px; opacity: 0.9; }

.map-placeholder {
  width: 100%; height: 250px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-weight: 300; letter-spacing: 1px;
  margin-top: 20px;
}

.contact-details { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.contact-link { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; color: var(--beige); transition: color 0.3s; }
.contact-link:hover { color: var(--white); }
.contact-link svg { width: 20px; height: 20px; fill: currentColor; }

.footer-bottom {
  text-align: center;
  padding: 25px 0;
  border-top: 1px solid rgba(244, 241, 234, 0.1);
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ============================================
   MANDATORY MASSIVE LINE FLOATING CTA
   ============================================ */
.float-line-mammoth {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--line-green);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 18px 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 15px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 0 50px var(--glow-line), 0 15px 35px rgba(0,0,0,0.25);
  border: 3px solid var(--white);
  z-index: 9999;
  animation: glow-pulse-elegant 2.5s infinite;
}

.float-line-mammoth svg { width: 34px; height: 34px; fill: currentColor; }

@keyframes glow-pulse-elegant {
  0%, 100% { transform: scale(1); box-shadow: 0 0 40px rgba(6, 199, 85, 0.4), 0 10px 20px rgba(0,0,0,0.15); }
  50% { transform: scale(1.05); box-shadow: 0 0 70px rgba(6, 199, 85, 0.7), 0 15px 30px rgba(0,0,0,0.25); border-color: #f4f1ea; }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-img::after { display: none; }
  .room-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-auto-rows: 200px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .float-line-mammoth { font-size: 1.1rem; padding: 15px 25px; border-width: 2px; }
  .float-line-mammoth svg { width: 28px; height: 28px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .header.scrolled .main-nav { background: var(--white); }
  
  .hero-title { font-size: 2.5rem; }
  .room-grid { grid-template-columns: 1fr; }
  
  .gallery-item:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  
  .float-line-mammoth { font-size: 1rem; padding: 12px 20px; bottom: 15px; right: 15px; }
}
