:root {
  --primary: #064e3b;
  --primary-light: #059669;
  --secondary: #0c4a6e;
  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --background: #f8fafc;
  --surface: #ffffff;
  --text-main: #0f172a;
  --text-muted: #475569;
  --glass: rgba(255, 255, 255, 0.15);
  --glass-heavy: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.25);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 50px -12px rgb(0 0 0 / 0.25);
  --radius: 1rem;
  --radius-lg: 1.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

/* ===== GLASSMORPHISM ===== */
.glass {
  background: var(--glass-heavy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.glass-dark {
  background: rgba(6, 78, 59, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
}

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #065f46);
  color: white;
  box-shadow: 0 4px 14px rgba(6, 78, 59, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(6, 78, 59, 0.45);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #d97706);
  color: var(--primary);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: white;
  transform: translateY(-3px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.fade-in-up { animation: fadeInUp 0.9s ease forwards; }
.fade-in-left { animation: fadeInLeft 0.9s ease forwards; }
.fade-in-right { animation: fadeInRight 0.9s ease forwards; }
.delay-1 { animation-delay: 0.15s; opacity: 0; }
.delay-2 { animation-delay: 0.3s; opacity: 0; }
.delay-3 { animation-delay: 0.45s; opacity: 0; }

/* Scroll-triggered animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 0.6rem 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}
.navbar.scrolled .nav-links a { color: var(--text-main); }
.logo-img { height: 40px; width: auto; filter: brightness(0) invert(1); transition: all 0.3s ease; }
.navbar.scrolled .logo-img { filter: none; }
.logo h3 { color: white; transition: all 0.3s ease; }
.navbar.scrolled .logo h3 { color: var(--primary) !important; }
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

@media (hover: none) {
  .nav-links a::after { display: none; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  color: white;
  overflow: visible; /* Prevent clipping of the hero card */
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 78, 59, 0.3) 0%,
    rgba(6, 78, 59, 0.5) 50%,
    rgba(2, 44, 34, 0.8) 100%
  );
  z-index: 1;
}
.hero .container { 
  position: relative; 
  z-index: 2; 
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 3rem 2rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 900px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: white;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero p {
  font-size: 1.35rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 95px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: float 2s ease-in-out infinite;
}
.scroll-indicator span {
  display: block;
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  transform: rotate(45deg);
}

/* ===== AMENITY CARDS ===== */
.amenity-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.amenity-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}
.amenity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.amenity-card:hover::before { transform: scaleX(1); }
.amenity-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

/* ===== STATS BAR ===== */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: -4rem;
  position: relative;
  z-index: 10;
}
.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}
.stat-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  background: linear-gradient(135deg, var(--primary), #065f46);
  border-radius: 2rem;
  margin: 0 1.5rem;
  padding: 5rem 3rem;
  text-align: center;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section h2 { color: white; font-size: 2.5rem; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.9); position: relative; z-index: 1; }
.cta-section .btn { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
.footer {
  background: linear-gradient(180deg, #022c22, #011a14);
  color: #d1fae5;
  padding: 5rem 0 2rem;
}
.footer a { color: #a7f3d0; text-decoration: none; transition: color 0.3s; }
.footer a:hover { color: var(--accent); }

/* ===== LAYOUT GRIDS ===== */
.grid-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-2-col-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.grid-3-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: stretch; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 4rem; margin-bottom: 4rem; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links a:not(.btn, .blog-link) { display: none; }
  .blog-link { display: inline-block !important; margin-right: 0.5rem; font-size: 0.9rem; }
  .nav-links { gap: 0.5rem; }
  .logo h3 { font-size: 1rem !important; }
  .logo-img { height: 28px; }
  .hide-mobile { display: none; }
  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 4rem; /* Reduced bottom padding */
    display: block;
    overflow: visible;
  }
  .hero .container {
    margin: 0 1.25rem;
    padding: 3rem 1.5rem;
    margin-top: 2rem; /* Additional breathing room */
  }
  .hero-bg {
    background-image: url('hero2.png');
    background-attachment: scroll;
  }

  .grid-2-col, .grid-3-col, .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
  }
  .grid-2-col-mini { 
    grid-template-columns: 1fr 1fr; 
  }
  
  .stats-bar { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; gap: 1rem; }
  .stat-item { padding: 1rem 0.5rem; }
  .stat-number { font-size: 1.75rem; }
  
  .hero h1 { font-size: 1.75rem; line-height: 1.25; margin-bottom: 1rem; }
  .hero p { font-size: 0.95rem; margin-bottom: 1.75rem; line-height: 1.5; }
  .hero-cta { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
  .hero-cta .btn { width: 100%; }

  .section { padding: 4rem 0; }
  .cta-section { margin: 0; padding: 3rem 1.5rem; border-radius: 1rem; }
  
  .amenity-card, .pricing-card, .value-card { padding: 1.5rem; }
  
  /* Blog post specifics */
  .lifestyle-card { grid-template-columns: 1fr !important; text-align: center; }
  .lifestyle-card img, .lifestyle-card div { margin: 0 auto; }
  .compare-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
  .pros-cons { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}

/* Fix for iPad/Safari Zoom Bug on all mobile/tablet devices */
@media screen and (max-width: 1100px) {
  .hero-bg {
    background-attachment: scroll !important;
    background-position: center center !important;
    background-size: cover !important;
    -webkit-background-size: cover !important;
  }
}
