/* SOFT TECHNO-MINIMALISM & BENTO GRID - REDESIGN */
:root {
  --bg-color: #F8F6F0; /* Soft sand/beige */
  --text-main: #2C2A29; /* Charcoal */
  --text-muted: #757D6F;
  --accent-color: #798871; /* Original Sage Green */
  --accent-hover: #5A6A52;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-bg-solid: #FFFFFF;
  
  --transition-smooth: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  
  --radius-xl: 48px;
  --radius-lg: 32px;
  --radius-md: 24px;
  
  /* Glassmorphism settings */
  --glass-bg: rgba(255, 255, 255, 0.5);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 24px 48px rgba(0,0,0,0.04);

  --logo-filter: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important; /* Force everywhere for consistency */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
  -webkit-overflow-scrolling: touch;
}

/* Custom Cursor */
.custom-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 20px; height: 20px;
  background: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s, height 0.3s, background-color 0.3s, border 0.3s;
  opacity: 0.8;
  will-change: transform;
}

.custom-cursor.hovering {
  width: 60px; height: 60px;
  background: transparent;
  border: 2px solid var(--accent-color);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  font-size: 18px; /* Base larger font for more readability */
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* Dynamic Texture & Orbs */
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  animation: floatOrb 25s infinite ease-in-out alternate;
}

.orb-1 {
  width: 65vw; height: 65vw;
  background: rgba(121, 136, 113, 0.15); /* sage green */
  top: -10%; left: -10%;
}

.orb-2 {
  width: 55vw; height: 55vw;
  background: rgba(197, 204, 184, 0.2); /* soft sage */
  bottom: 20%; right: -10%;
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10%, 15%) scale(1.1); }
}

/* Staggered Title Animation */
.split-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Typography Enhancements */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-title {
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 2rem;
}
.hero-title i {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-color);
}
.hero-subtitle {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  margin-bottom: 2.5rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 90%;
}

.section-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 2.5rem;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 0px;
  letter-spacing: 0.02em;
}
.custom-logo {
  height: 60px !important; 
  width: auto;
  /* Sage color filter: approximates #798871 */
  filter: brightness(0) saturate(100%) invert(56%) sepia(14%) saturate(614%) hue-rotate(55deg) brightness(91%) contrast(85%);
  transition: transform var(--transition-smooth), filter 0.3s;
}
.logo-icon-wrapper {
  height: 60px !important;
  margin-right: 4px !important; /* Reduced to match screenshot */
}

.nav {
  display: flex;
  gap: 3rem;
}

.nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 1.15rem;
  position: relative;
  padding: 0.5rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.magnetic-text {
  display: inline-block;
  transition: color var(--transition-smooth);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-color);
}
.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(121, 136, 113, 0.2);
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(44, 42, 41, 0.2);
  color: var(--text-main);
}
.btn-secondary:hover {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.btn-lg {
  padding: 1.2rem 2.8rem;
  font-size: 1.25rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Base Grid */
.bento-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(320px, auto); /* Larger cards */
  gap: 2rem; /* More space */
  padding: 2rem 5% 8rem;
  max-width: 1600px;
  margin: 0 auto;
}

.bento-card {
  background: var(--card-bg-solid);
  border-radius: var(--radius-lg);
  padding: 4rem; /* More air in cards */
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.smooth-hover {
  transition: var(--transition-smooth) !important;
  will-change: transform, box-shadow;
}
.smooth-hover:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  background: rgba(255, 255, 255, 0.7);
}

/* Glassmorphism Refined */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.02);
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }

/* Hero Elements */
.bento-hero {
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text-side {
  flex: 1;
}

.hero-image-side {
  flex: 1;
  height: 100%;
  position: relative;
}

.hero-arch-image {
  width: 100%;
  height: 600px;
  background: rgba(121, 136, 113, 0.1);
  border-radius: 40px;
  border-top-left-radius: 200px; /* Signature arch shape */
  border-top-right-radius: 40px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.05);
}

.hero-location {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 1.2rem;
  font-weight: 300;
}

.styled-map {
  filter: grayscale(0.2) sepia(0.3) saturate(1.2) hue-rotate(-10deg) contrast(0.9);
  transition: filter 0.8s ease;
}

.glass-tag {
  position: absolute;
  bottom: 2.5rem; left: 2.5rem;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--text-main);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
  pointer-events: auto;
}
.glass-tag:hover {
  background: #fff;
}

/* Gallery Block */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 300px;
}
.aesthetic-filter {
  filter: sepia(0.25) grayscale(0.2) contrast(0.9) brightness(1.05);
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 2.5rem 0;
  background: var(--accent-color);
  color: white;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
}
.marquee-content {
  display: flex;
  flex-shrink: 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite; /* Slowed down from 20s */
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-style: italic;
  letter-spacing: 0.05em;
}
.marquee-content span {
  padding-right: 2rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Video Section */
.video-section { text-align: center; }

.video-container {
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.vertical-video {
  aspect-ratio: 9/16;
}

.horizontal-video {
  aspect-ratio: 16/9;
}

.custom-video-overlay {
  background-color: rgba(25, 13, 1, 0.45) !important;
}

.play-button {
  background: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-main);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform 0.4s ease;
  width: 80px; 
  height: 80px;
}

.dark-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
  z-index: 1;
  pointer-events: none;
}

.video-container:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.service-tier {
  background: rgba(255,255,255,0.05);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(121, 136, 113, 0.1);
}

.tier-header {
  border-bottom: 1px solid rgba(121, 136, 113, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.tier-header h3 { font-size: 1.6rem; font-family: var(--font-body); font-weight: 400;}
.time-accent { font-family: var(--font-heading); font-size: 2.2rem; font-style: italic; color: var(--accent-color); }
.tier-header .price { display: block; margin-top: 1rem; font-weight: 500; font-size: 1.5rem; }

.service-tier ul { list-style: none; }
.service-tier li {
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 1.05rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(121, 136, 113, 0.05);
  color: var(--text-muted);
}
.service-tier li:last-child { border-bottom: none; }
.highlight-item {
  color: var(--text-main) !important;
  font-weight: 500 !important;
}

/* Offers */
.offer-title { font-size: 2rem; margin: 1.5rem 0 1rem; }
.offer-desc { font-size: 1.15rem; color: var(--text-muted); font-weight: 300; }
.new-price { font-size: 1.8rem; color: var(--accent-color); display: block; margin-top: 0.5rem;}

/* Reviews Marquee */
.reviews-marquee-container {
  overflow: hidden;
  white-space: nowrap;
  padding: 2rem 0;
  position: relative;
  width: 100%;
}

.reviews-marquee-container::before,
.reviews-marquee-container::after {
  content: '';
  position: absolute;
  top: 0; width: 15%; height: 100%;
  z-index: 2;
  pointer-events: none;
}
.reviews-marquee-container::before {
  left: 0; background: linear-gradient(to right, var(--bg-color), transparent);
}
.reviews-marquee-container::after {
  right: 0; background: linear-gradient(to left, var(--bg-color), transparent);
}

.reviews-marquee {
  display: inline-flex;
  gap: 2rem;
  animation: marqueeReviews 80s linear infinite; /* Slowed down from 40s */
}
@keyframes marqueeReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.review-card {
  background: var(--card-bg-solid);
  padding: 3rem;
  border-radius: var(--radius-md);
  min-width: 450px;
  white-space: normal;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
}
.review-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-style: italic;
  margin: 0;
  line-height: 1.4;
  text-align: center;
}

/* Rules */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.rule-icon-card {
  background: var(--card-bg-solid);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  text-align: left;
  border: 1px solid var(--glass-border);
}
.rule-icon { margin-bottom: 1.5rem; display: block; }
.rule-icon-card p { font-size: 1.1rem; color: var(--text-muted); font-weight: 300; line-height: 1.5; }

/* Footer Redesign */
.footer {
  background: #1C1A19; /* Very dark charcoal/brown tint from screenshot */
  color: #fff;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  margin-top: 4rem;
  position: relative;
}

.footer-bottom-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  gap: 2rem;
  padding: 4rem 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
}

.footer-block-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 1rem;
  display: block;
  margin-bottom: 1rem;
  transition: color 0.3s;
}

.footer-block-link:hover {
  color: #fff;
}

/* Footer social icons increased by 25% (18px -> 23px) */
.footer-block-link i, .footer-insta-icon {
  width: 23px !important;
  height: 23px !important;
  display: inline-block;
  vertical-align: middle;
}

.footer-insta-icon, .header-insta-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: opacity 0.3s, transform 0.3s;
}

.footer-insta-icon {
  filter: brightness(0) invert(1); /* White for footer */
  opacity: 0.8;
}

.header-insta-icon {
  filter: none; /* Original or charcoal depending on mode */
}

/* Dark mode adjustment for header icon */
@media (prefers-color-scheme: dark) {
  .header-insta-icon {
    filter: brightness(0) invert(1);
  }
}
.footer-insta-icon:hover {
  opacity: 1;
}

/* Mobile Adaptation for Footer & Grid */
@media (max-width: 992px) {
  .footer-bottom-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 600px) {
  .footer-bottom-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-col.brand h3 {
    justify-content: center;
  }
  
  /* Map & Location should stack */
  .map-location-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

/* Dynamics section improvement for tablets/mobile */
@media (max-width: 992px) {
  #dynamics.bento-card {
    grid-template-columns: 1fr !important;
    text-align: center;
    gap: 2rem;
  }
}

.header-socials a {
  opacity: 0.8;
  transition: opacity 0.3s, transform 0.3s;
  display: flex;
  align-items: center;
}

.header-socials a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.footer-social-icons a {
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.footer-social-icons a:hover {
  opacity: 1;
}

.copyright { text-align: center; color: rgba(255,255,255,0.4); font-size: 1rem; }

/* Scroll Animations */
.reveal-up { opacity: 0; transform: translateY(80px); }
.reveal-down { opacity: 0; transform: translateY(-40px); }
.reveal-scale { opacity: 0; transform: scale(0.95); }

.revealed {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
  transition: var(--transition-smooth) !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .bento-container { grid-template-columns: repeat(2, 1fr); padding: 2rem 5%; }
  .bento-span-4 { grid-column: span 2; }
  .services-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { min-width: 350px; }
}

@media (max-width: 1024px) {
  .custom-cursor { display: none !important; } 
  * { cursor: auto !important; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 1.1rem; }
  .section-title { font-size: 2.2rem; }
  
  .header { flex-direction: column; gap: 1.5rem; justify-content: center; text-align: center; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; width: 100%; }
  .nav a { font-size: 0.95rem; }
  
  .bento-container { 
    display: flex; 
    flex-direction: column; 
    gap: 1.2rem; 
    padding: 1.5rem 5% 4rem; 
  }
  
  .hero-content { flex-direction: column; gap: 2rem; }
  .hero-arch-image { height: 400px; border-top-left-radius: 120px; }

  #dynamics.bento-card { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .vertical-video { max-width: 250px; margin: 0 auto; }

  .bento-card { 
    width: 100%; 
    padding: 2.5rem 1.5rem; 
    border-radius: var(--radius-md);
  }
  
  .hero-buttons { flex-direction: column; width: 100%; gap: 1rem; }
  .hero-buttons .btn { width: 100%; justify-content: center; }

  .bento-image {
    height: 350px;
    padding: 0;
  }
  
  .gallery-grid { grid-template-columns: 1fr 1fr; height: auto; }
  .gallery-img-wrapper { height: 150px; }

  .glass-tag {
    font-size: 1.1rem;
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 0.6rem 1.2rem;
  }
  
  .services-grid, .rules-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  
  .footer-bottom-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .footer-col.brand { padding-right: 0; display: flex; flex-direction: column; align-items: center; }
  .footer-col.brand p { text-align: center; margin: 0 auto 1.5rem; }
  .footer-col.brand h3 { justify-content: center; }
  .footer-social-icons { justify-content: center; }
  .footer-col h4 { text-align: center; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-col p { text-align: center; }
  
  .marquee-content { font-size: 1.6rem; }
  .review-card { min-width: 80vw; padding: 2rem 1.5rem;}
  .offer-title { font-size: 1.5rem; }
}

/* DARK MODE RULES - Must be at the very bottom strictly to override core styles */
@media (prefers-color-scheme: dark) {
  :root {
      --bg-color: #121411; /* Deep dark green/charcoal */
      --text-main: #F4F6F4; /* Soft white */
      --text-muted: #8F9A8F;
      --card-bg: rgba(30, 35, 30, 0.6);
      --card-bg-solid: #1C201A;
      --glass-bg: rgba(30, 35, 30, 0.4);
      --glass-border: rgba(255, 255, 255, 0.1);
      --glass-shadow: 0 24px 64px rgba(0,0,0,0.6);
      --logo-filter: invert(1) brightness(0.9) sepia(0.2) hue-rotate(50deg) saturate(0.5);
  }
  .noise-overlay { opacity: 0.02; }
  .video-placeholder { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); }
  .review-card, .rule-icon-card { background: var(--card-bg-solid); border-color: rgba(255,255,255,0.05); }
  
  .styled-map {
      filter: grayscale(0.8) invert(0.9) hue-rotate(180deg) sepia(0.2) contrast(0.8);
  }
  .aesthetic-filter {
      filter: sepia(0.2) grayscale(0.5) contrast(0.8) brightness(0.8);
  }

  .footer { background: #0E120D; color: var(--text-main); }
  .footer-col h4, .footer-col h3 { color: var(--text-main); }
  .footer-block-link { color: rgba(255,255,255,0.5); }
  .footer-block-link:hover { color: var(--text-main); }
  
  /* In dark mode, we keep the logo white for better visibility */
  .custom-logo {
      filter: brightness(0) invert(1);
  }
  
  .btn-secondary { border-color: rgba(255,255,255,0.2); color: var(--text-main); }
  .btn-secondary:hover { background: rgba(255,255,255,0.1); }
  .play-button { background: var(--card-bg-solid); color: var(--text-main); box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
  .hero-title i { color: var(--accent-color); }
  .glass-tag { background: rgba(18,20,17,0.8); border: 1px solid rgba(255,255,255,0.1); }
  
  .smooth-hover:hover {
      background: rgba(40, 48, 40, 0.8);
      box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  }
}
