@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Poppins:wght@300;400;500;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css');

:root {
  /* Brownish and Golden Palette */
  --bg-dark: #fbf9f6;
  --bg-dark-secondary: #f0e9df;
  --gold-primary: #E5A900;
  --gold-hover: #e8c655;
  --text-light: #2c1a12;
  --text-muted: rgba(44, 26, 18, 0.85);
  --border-gold: rgba(212, 175, 55, 0.5);
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  
  --transition-standard: all 0.3s ease;
  --header-height: 100px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

body {
  font-family: var(--font-body);
  font-weight: 600;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

p, span, div {
  font-weight: 600;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-standard);
}

img, video {
  max-width: 100%;
  display: block;
}

/* =========================================
   LUXURY HEADER
   ========================================= */
.global-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, height 0.4s ease;
}

.global-header.scrolled {
  background: rgba(251, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-gold);
  height: 85px;
}

.header-logo img {
  height: 120px;
  width: auto;
  transition: var(--transition-standard);
}

.global-header.scrolled .header-logo img {
  height: 60px; /* Increased from 40px */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
  margin: 0 auto;
}

.nav-links li a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  position: relative;
  padding: 0.5rem 0;
}

/* Ensure visibility when header is transparent (over dark hero image) - Desktop only */
@media (min-width: 769px) {
  .global-header:not(.scrolled) .nav-links li a {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }

  .global-header:not(.scrolled) .header-cta:not(.btn-book-now) {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
  }
}

/* Ensure mobile nav links are always dark because the dropdown background is light */
@media (max-width: 768px) {
  .nav-links li a, .nav-links .header-cta:not(.btn-book-now) {
    color: var(--text-light) !important;
    text-shadow: none !important;
  }
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold-primary);
  transition: width 0.3s ease;
}

.nav-links li a:hover, .nav-links li a.active {
  color: var(--gold-primary);
}

.nav-links li a:hover::after, .nav-links li a.active::after {
  width: 100%;
}

.header-cta {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition-standard);
}

.header-cta:hover {
  background: var(--gold-primary);
  color: var(--bg-dark);
}

/* =========================================
   HOSPITALITY HERO
   ========================================= */
.hospitality-hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(1, 10, 6, 0.9) 0%, rgba(1, 10, 6, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 5%;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 6rem);
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #ffffff;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.gold-divider-line {
  width: 100px;
  height: 2px;
  background-color: var(--gold-primary);
  margin: 0 auto;
}

.small-divider {
  width: 60px;
}

.left-align-div {
  margin: 0 0 1.5rem 0;
}

/* =========================================
   COMMON SECTION STYLES
   ========================================= */
.section-padding {
  padding: 6rem 5%;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--gold-primary);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-light);
}

/* =========================================
   PROFESSIONAL FOOTER
   ========================================= */
.global-footer {
  background-color: var(--bg-dark-secondary);
  padding: 5rem 5% 2rem;
  border-top: 1px solid var(--border-gold);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .footer-logo {
  height: 100px; /* Increased from 60px */
  margin-bottom: 1.5rem;
  background: #fff; /* to make jpeg logo look clean */
  padding: 10px;
  border-radius: 4px;
}

.footer-brand p {
  color: var(--text-muted);
  max-width: 400px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-heading);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: var(--transition-standard);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 5px;
}

.footer-contact p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-gold);
  border-radius: 50%;
  font-size: 0.9rem;
  color: var(--gold-primary);
}

.social-icons a:hover {
  background-color: var(--gold-primary);
  color: var(--bg-dark);
}

.hero-background img, .hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-container {
  position: relative;
  width: 100%;
  height: 180px;
  border: 1px solid var(--border-gold);
  border-radius: 4px;
  overflow: hidden;
}

.map-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-gold);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-links, .header-cta { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .social-icons { justify-content: center; }
}

/* =========================================
   POPUP MODAL STYLES
   ========================================= */
.booking-modal-overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(251, 249, 246, 0.85);
  backdrop-filter: blur(8px);
  overflow-y: auto;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.booking-modal-overlay.show {
  display: flex;
  opacity: 1;
}

.booking-modal-content {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid var(--gold-primary);
  padding: 4rem;
  width: 100%;
  max-width: 800px;
  transform: translateY(-50px);
  transition: transform 0.4s ease;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}

.booking-modal-overlay.show .booking-modal-content {
  transform: translateY(0);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--text-muted);
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-modal:hover {
  color: var(--gold-primary);
}

.btn-book-now:hover {
  background: var(--gold-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

@media (max-width: 768px) {
  .booking-modal-content {
    padding: 2.5rem 1.5rem;
  }
}

/* =========================================
   WELCOME SPLASH ANIMATION (GPU Accelerated & Smooth)
   ========================================= */
.welcome-splash {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 999999;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashFadeOut 0.8s cubic-bezier(0.77, 0, 0.175, 1) 1.2s forwards;
  pointer-events: none;
}

.splash-curtain {
  display: none; /* Removed janky clip-path */
}

.splash-text {
  color: var(--text-light);
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 2px;
  text-align: center;
  opacity: 0;
  transform: scale(0.95);
  animation: splashTextAppear 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.splash-dynamic-text {
  color: var(--gold-primary);
  font-style: italic;
  display: block;
  margin-top: 0.5rem;
  font-size: clamp(3rem, 6vw, 5rem);
}

@keyframes splashFadeOut {
  0% { opacity: 1; transform: translateY(0); visibility: visible; }
  100% { opacity: 0; transform: translateY(-100%); visibility: hidden; }
}

@keyframes splashTextAppear {
  0% { opacity: 0; transform: scale(0.95) translateY(20px); }
  30% { opacity: 1; transform: scale(1) translateY(0); }
  80% { opacity: 1; transform: scale(1) translateY(0); }
  100% { opacity: 0; transform: scale(1.05) translateY(-20px); }
}

/* Base mobile responsive tweaks */
@media (max-width: 768px) {
  .about-container, .hero-content, .booking-container {
    padding: 1rem;
  }
  .global-header {
    padding: 1rem;
    flex-wrap: wrap;
  }
  .nav-links {
    display: none; /* Hide or make hamburger on real mobile */
  }
  h1.hero-title {
    font-size: 3rem !important;
  }
}

/* =========================================
   MOBILE FIXES (Hamburger & Footer)
   ========================================= */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1000;
  margin-right: auto;
  margin-left: 1rem;
}
.hamburger span {
  width: 28px;
  height: 3px;
  background-color: var(--gold-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

@media (max-width: 768px) {
  /* Fix footer logo centering */
  .footer-brand {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-logo {
    margin: 0 auto 1.5rem auto !important;
    display: block;
  }

  /* Hamburger & Mobile Nav */
  .global-header {
    position: relative;
    justify-content: flex-end;
  }
  .header-logo {
    margin-right: auto;
  }
  .hamburger {
    display: flex;
    order: 3;
    margin-left: 1rem;
    margin-right: 0;
  }
  .nav-links {
    display: flex !important; /* Override previous display: none */
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    border-bottom: 1px solid transparent;
  }
  .nav-links.active {
    max-height: 800px;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-gold);
  }
  .nav-links li {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    margin: 0;
  }
  
  /* Hamburger Animation */
  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
  
  /* Header Buttons order */
  .header-cta {
    order: 2;
    padding: 0.5rem 1rem !important;
    font-size: 0.8rem !important;
  }
}

/* =========================================
   FURTHER MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 768px) {
  /* Fix logo line interruption by constraining height so it doesn't overflow header */
  .header-logo img {
    height: 55px !important;
    background: transparent !important;
  }
  
  /* Optimize Popup Modal for Mobile */
  .booking-modal-content {
    padding: 2rem 1.5rem !important;
    width: 95% !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    border-radius: 8px;
  }
  
  /* Force all form grids to 1 column on mobile */
  .form-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  
  /* Ensure CTAs look great inside the mobile menu */
  .nav-links .header-cta {
    display: inline-block !important;
    width: 80%;
    margin: 0.5rem auto !important;
    text-align: center;
  }
}

/* Fix: Hide cloned mobile CTAs on desktop view */
@media (min-width: 769px) {
  .mobile-only-cta {
    display: none !important;
  }
}

/* =========================================
   FINAL POLISH FOR MOBILE VIEW
   ========================================= */
@media (max-width: 768px) {
  /* 1. Gallery Section - Force 1 column so images are not squashed */
  .gallery-grid, .about-media.gallery-split {
    grid-template-columns: 1fr !important;
    display: grid !important;
    gap: 2rem !important;
  }
  
  /* 2. Hero Backgrounds - Use landscape aspect ratio instead of 100vh full screen */
  .hospitality-hero {
    height: 60vh !important; 
    min-height: 400px !important;
  }
  .hero-title {
    font-size: 2.5rem !important;
  }
  .hero-subtitle {
    font-size: 0.9rem !important;
  }

  /* 3. Hamburger CTA Buttons - Make them large, bold, and padded in the menu */
  .nav-links .header-cta {
    display: block !important;
    width: 85%;
    margin: 1rem auto !important;
    text-align: center;
    padding: 1rem !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
  }
  
  /* 4. Welcome Splash - Full screen sweep instead of awkward left-side curve on narrow screens */
  .splash-curtain {
    animation: splashSweepMobile 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards !important;
  }
  .splash-text {
    font-size: 1.5rem !important;
  }
  .splash-dynamic-text {
    font-size: 2.2rem !important;
  }
}

/* New Keyframe specifically for Mobile Splash Sweep (Center Expanding Circle) */
@keyframes splashSweepMobile {
  0% { clip-path: circle(0% at 50% 50%); }
  25% { clip-path: circle(150% at 50% 50%); } 
  75% { clip-path: circle(150% at 50% 50%); } 
  100% { clip-path: circle(0% at 50% 50%); }
}

/* Fix: Explicit centering for Popup Modal on Mobile */
@media (max-width: 768px) {
  .booking-modal-overlay {
    padding: 1rem !important; /* Reduce padding that might push the content */
    align-items: center !important;
    justify-content: center !important;
  }
  
  .booking-modal-content {
    margin: 0 auto !important; /* Fallback centering if flex fails */
    left: 0 !important;
    right: 0 !important;
    width: 90% !important; /* Leave a small predictable gap */
    max-width: 400px !important; /* Prevent it from stretching weirdly */
    padding: 2rem 1.5rem !important;
    transform: none !important; /* Remove translateY which can cause layout shifts on mobile */
  }
}

/* Fix: Don't crop logos/images that have text inside them */
.about-media img, .about-media video {
  object-fit: contain !important;
  background: var(--bg-dark);
}


/* Robust Mobile Fixes for Modal and Hero Backgrounds */
@media (max-width: 768px) {
  /* 1. Modal Centering: Bulletproof flex layout */
  .booking-modal-overlay.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important; /* No padding to mess up width */
    overflow: hidden !important; /* Prevent overlay from scrolling */
  }
  
  .booking-modal-content {
    box-sizing: border-box !important;
    margin: 0 !important;
    width: 90% !important;
    max-width: 380px !important;
    max-height: 90vh !important;
    overflow-y: auto !important; /* Internal scrolling only */
    transform: none !important; /* Remove any translate animations */
    padding: 2.5rem 1.5rem !important;
  }
  
  .close-modal {
    top: 15px !important;
    right: 20px !important;
    z-index: 10;
  }

  /* 2. Fix Hero Backgrounds (like RK Grande Grassy Wall) being cropped */
  .hero-background img, .hero-background video {
    object-fit: contain !important;
    background-color: var(--bg-dark);
  }
  
  .hospitality-hero {
    height: 56.25vw !important; /* Perfect 16:9 landscape aspect ratio */
    min-height: 250px !important;
    max-height: 350px !important;
  }
}

@media (max-width: 768px) {
  .booking-modal-content h2 {
    font-size: 1.6rem !important;
    padding-right: 20px; /* Space for the X button */
  }
}


/* Robust White Badge Logo Display */
.header-logo a {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: #ffffff;
  padding: 8px 20px;
  border-radius: 8px;
  height: 70px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.header-logo img {
  height: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  filter: contrast(1.5) saturate(2) drop-shadow(0 0 2px rgba(0,0,0,0.1));
}
.footer-logo {
  height: 90px !important; 
  width: auto !important;
  background: #ffffff !important;
  padding: 10px 20px !important;
  border-radius: 8px !important;
  filter: contrast(1.5) saturate(2) drop-shadow(0 0 2px rgba(0,0,0,0.1));
  margin-bottom: 1rem !important;
  object-fit: contain !important;
}


/* Floating Contact Buttons */
.floating-contact {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}
.float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 26px;
  color: white;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
  color: white;
}
.float-btn.whatsapp { background-color: #25D366; }
.float-btn.phone { background-color: var(--gold-primary); }

@media (max-width: 768px) {
  .floating-contact {
    bottom: 20px;
    right: 20px;
    gap: 10px;
  }
  .float-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/* Fix to ensure 50/50 split on about-container and prevent media from crushing text */
.about-container {
  display: flex;
  align-items: center;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-media {
  flex: 1;
  min-width: 0; /* Critical: prevents video/img intrinsic width from overpowering flex container */
  max-width: 50%;
}

@media (max-width: 992px) {
  .about-container {
    flex-direction: column !important;
  }
  .about-media, .about-text {
    max-width: 100%;
    width: 100%;
  }
}

/* =========================================
   ULTIMATE MOBILE VIEW OPTIMIZATIONS
   ========================================= */
@media (max-width: 992px) {
  /* Fix layout padding and gaps for tablets/mobiles */
  .section-padding {
    padding: 4rem 1.5rem !important;
  }
  
  .about-container {
    gap: 2.5rem !important;
  }
  
  .about-text h2 {
    font-size: 2rem !important;
  }
  
  /* Hero Sections - Give them presence on mobile */
  .hospitality-hero {
    height: 40vh !important;
    min-height: 300px !important;
    max-height: 450px !important;
  }
  .hero-background img {
    object-position: center center !important;
    transform: scale(1.3);
  }
  
  .hero-title {
    font-size: 3.5rem !important;
  }
  
  .hero-subtitle {
    font-size: 1rem !important;
    letter-spacing: 3px !important;
  }
  
  /* Footer mobile view fixing */
  .footer-top {
    gap: 2rem !important;
  }
  
  .footer-brand .footer-logo {
    height: 80px !important;
  }
  
  .global-footer {
    padding: 3rem 1.5rem 1rem !important;
  }
  
  /* Fix Booking Modal inputs from being squished */
  .booking-modal-content {
    padding: 2rem !important;
  }
  
  form div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

@media (max-width: 480px) {
  /* Smaller mobile specific */
  .hero-title {
    font-size: 2.8rem !important;
  }
  
  .section-padding {
    padding: 3rem 1rem !important;
  }
  
  .about-container {
    gap: 2rem !important;
  }
  
  .about-media img, .about-media video {
    border-radius: 6px !important;
  }
  
  .header-logo img {
    height: 45px !important;
  }
  
  .header-logo a {
    height: 55px !important;
    padding: 5px 12px !important;
  }
}

/* Remove any bad landscape forced heights from previous media queries */
@media (max-width: 768px) {
  .hospitality-hero {
    height: 75vh !important;
  }
}

/* =========================================
   GLOBAL FORM STYLES
   ========================================= */
input, select, textarea {
  color: #000 !important;
  color-scheme: light !important;
}

input::placeholder, select::placeholder, textarea::placeholder {
  color: #666 !important;
}
