/* Design System */
:root {
  --primary: #184f44;
  --primary-rgb: 24, 79, 68;
  --vibrant-green: #184f44;
  --accent: #f2da91;
  --accent-rgb: 242, 218, 145;
  --earthy-brown: #8c6a3f;
  --background-light: #F2DA91;
  --background-cream: #f9f7f4;
  --white: #ffffff;
  --text-main: #184f44;
  --text-muted: #8c6a3f;
  --text-gold: #f2da91;
  /* Solid gold for accessibility */
  --primary-dark: #0d2b25;
  --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xl: 50px;
  --radius-lg: 30px;

  /* Responsive Typography Scale - Refined for Small Screens */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --fs-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.9rem);
  --fs-base: clamp(0.9rem, 0.85rem + 0.4vw, 1rem);
  --fs-lg: clamp(1rem, 0.95rem + 0.5vw, 1.25rem);
  --fs-xl: clamp(1.2rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-2xl: clamp(1.4rem, 1.25rem + 0.8vw, 1.75rem);
  --fs-3xl: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
  --fs-4xl: clamp(2rem, 1.75rem + 1.5vw, 3rem);
  /* Reduced minimums for large headings to prevent overflow on mobile (390px) */
  --fs-5xl: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --fs-6xl: clamp(2.75rem, 2.25rem + 3vw, 4.5rem);
  --fs-7xl: clamp(3rem, 2.5rem + 4vw, 6rem);
  --fs-8xl: clamp(3.25rem, 3rem + 5vw, 7.5rem);

  /* Responsive Spacing */
  --space-unit: 1rem;
  --space-xs: calc(0.5 * var(--space-unit));
  --space-sm: calc(0.75 * var(--space-unit));
  --space-md: calc(1.5 * var(--space-unit));
  --space-lg: calc(2 * var(--space-unit));
  --space-xl: calc(3 * var(--space-unit));
  --space-xxl: calc(5 * var(--space-unit));

  /* Shadow System - Softer, more spread out for premium feel */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 25px 50px -12px rgba(24, 79, 68, 0.15);
  /* Tinted shadow */
}

@media (max-width: 640px) {
  :root {
    --space-unit: 0.85rem;
    /* Slightly larger base for comfortable spacing */
    --radius-xl: 30px;
    --radius-lg: 20px;
  }
}

/* Hover Safety for Touch Devices */
@media (hover: hover) {
  /* Move hover specific styles here in subsequent steps or assume widespread support/graceful degradation */
}

[data-theme="dark"] {
  --primary: #f2da91;
  --primary-rgb: 242, 218, 145;
  --vibrant-green: #f2da91;
  --accent: #184f44;
  --accent-rgb: 24, 79, 68;
  --background-light: #0d2b25;
  --background-cream: #184f44;
  --white: #ffffff;
  --text-main: #f9f7f4;
  --text-muted: #f2da91;
  --primary-dark: #051411;
}

/* Base Styles */
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-main);
  background-color: var(--background-light);
  line-height: 1.6;
  overflow-x: hidden;
  opacity: 0;
  animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

h1 {
  font-size: var(--fs-8xl);
  line-height: 1.2;
  /* Improved for multi-line luxury headings */
}

h2 {
  font-size: var(--fs-6xl);
  line-height: 1.1;
}

h3 {
  font-size: var(--fs-3xl);
  line-height: 1.2;
}

h4 {
  font-size: var(--fs-xl);
  line-height: 1.3;
}

p {
  font-size: var(--fs-base);
}

.text-sm {
  font-size: var(--fs-sm);
}

.text-xs {
  font-size: var(--fs-xs);
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

.font-logo {
  font-family: 'Mongolian Baiti', serif;
  text-transform: none;
  /* Logo might not want uppercase if not specified, but the footer has it */
}

.invert-white {
  filter: brightness(0) invert(1);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.reveal {
  /* Initial state handled by JS/GSAP to avoid FOUC or conflicts */
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity, filter;
  /* optimize performance */
}

/* GSAP will add 'active' if needed, but we rely on inline styles mostly */
.reveal.active {
  opacity: 1;
  visibility: visible;
}

/* Unified Components */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary);
  color: var(--white);
  padding: 1rem 2rem;
  min-height: 48px;
  /* Standard touch target */
  min-width: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-align: center;
  border: 2px solid transparent;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) {
  .btn-primary:hover {
    background-color: var(--vibrant-green);
    /* Keep it vibrant */
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
    /* Subtle lift */
  }
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  /* Tactile feedback */
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent);
  color: var(--primary);
  padding: 1rem 2rem;
  min-height: 48px;
  min-width: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: none;
  /* Secondary usually flat or subtle */
  cursor: pointer;
}

@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: var(--shadow-sm);
}

.pill-container {
  border-radius: 50px;
  overflow: hidden;
}

.glass-nav {
  position: sticky;
  top: 0;
  z-index: 70;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 0 1.5rem;
}

[data-theme="dark"] .glass-nav {
  background-color: rgba(13, 43, 37, 0.95) !important;
  border-bottom: 1px solid rgba(242, 218, 145, 0.1);
}

[data-theme="dark"] footer.bg-primary {
  background-color: #051411 !important;
}

.logo-img {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 10;
  transition: height 0.3s ease;
}

@media (min-width: 1024px) {
  .logo-img {
    height: 210px;
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    z-index: 100;
  }
}

.footer-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .footer-logo {
    height: 350px;
    margin: 1rem 0;
  }
}

.glass-nav.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Custom Utilities */
.shadow-3xl {
  box-shadow: 0 35px 60px -15px rgba(24, 79, 68, 0.2);
}

.text-vibrant {
  color: #1B8A46;
}

.text-gold {
  color: #F2DA91;
}

.bg-forest {
  background-color: #184F44;
}

.rounded-brand {
  border-radius: 40px;
}

.bg-cream {
  background-color: #F9F7F4;
}

.bg-primary-dark {
  background-color: var(--primary-dark);
}

/* Value Card Hover Effect */
@media (hover: hover) {

  /* Value Card Hover Effect */
  .bg-white.group.reveal:hover {
    background-color: var(--primary) !important;
    color: var(--accent) !important;
    transform: translateY(-10px);
  }

  .bg-white.group.reveal:hover h3,
  .bg-white.group.reveal:hover p {
    color: var(--accent) !important;
  }

  .bg-white.group.reveal:hover .w-16 {
    background-color: rgba(var(--accent-rgb), 0.1) !important;
  }

  .bg-white.group.reveal:hover .material-symbols-outlined {
    color: var(--accent) !important;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-main);
  transition: color 0.3s ease;
  position: relative;
}

@media (hover: hover) {
  .nav-link:hover {
    color: var(--vibrant-green);
  }
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

@media (hover: hover) {
  .nav-link:hover::after {
    width: 100%;
  }
}

.nav-link.active {
  color: #F2DA91;
}

.nav-link.active::after {
  width: 100%;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
}

/* Container-in-Container Style */
/* Uiverse Inspired Brand Cards */
.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--primary);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
  min-height: 420px;
  padding: 8px;
}

.brand-card-border {
  position: absolute;
  inset: 0px;
  border: 2px solid var(--accent);
  opacity: 0;
  transform: rotate(10deg);
  transition: all 0.5s ease-in-out;
  border-radius: 20px;
  pointer-events: none;
}

.brand-card-inner {
  background-color: var(--accent);
  border-radius: 16px;
  padding: 2.5rem;
  height: 100%;
  transition: all 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 5;
}

.brand-card-bottom-text {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  font-size: 8px;
  text-transform: uppercase;
  padding: 2px 10px;
  color: var(--accent);
  background: var(--primary);
  opacity: 0;
  letter-spacing: 7px;
  transition: all 0.5s ease-in-out;
  white-space: nowrap;
  font-weight: 900;
  z-index: 10;
}

@media (hover: hover) {
  .brand-card:hover {
    border-radius: 20px;
    transform: translateY(-8px) scale(1.01);
    /* Smooth lift */
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-xl);
  }

  .brand-card:hover .brand-card-border {
    inset: 15px;
    opacity: 1;
    transform: rotate(0);
  }

  .brand-card:hover .brand-card-inner {
    background-color: var(--primary);
    color: var(--accent);
  }

  .brand-card:hover .brand-card-bottom-text {
    letter-spacing: 3px;
    opacity: 1;
  }
}

.brand-card .icon-primary {
  background-color: var(--primary) !important;
  color: var(--accent) !important;
}

.brand-card .icon-secondary {
  background-color: var(--accent) !important;
  color: var(--primary) !important;
}

@media (hover: hover) {

  .brand-card:hover .text-primary,
  .brand-card:hover h3,
  .brand-card:hover p,
  .brand-card:hover span,
  .brand-card:hover li {
    color: var(--accent) !important;
  }

  .brand-card:hover .btn-primary {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
    border-color: var(--accent) !important;
  }

  .brand-card:hover .bg-primary {
    background-color: var(--accent) !important;
    color: var(--primary) !important;
  }
}

/* Specific Logo Animation for GreenUtopia */
.brand-card .icon-wrapper {
  height: 64px;
  width: 64px;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

.brand-card .icon-primary,
.brand-card .icon-secondary {
  position: absolute;
  top: 0;
  left: 0;
  transition: all 0.5s ease-in-out;
}

.brand-card .icon-secondary {
  left: 64px;
  opacity: 0;
}

@media (hover: hover) {
  .brand-card:hover .icon-primary {
    transform: translateX(-64px);
    opacity: 0;
  }

  .brand-card:hover .icon-secondary {
    left: 0;
    opacity: 1;
  }
}

/* Carousel Styles */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
}

.carousel-track {
  display: flex;
  transition: transform 0.7s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 1rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  z-index: 20;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.carousel-btn-prev {
  left: 1rem;
}

.carousel-btn-next {
  right: 1rem;
}

.carousel-indicators {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 20;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.carousel-dot.active {
  width: 2rem;
  background-color: var(--accent);
}

/* Form Enhancements */
.form-card {
  background-color: #184F44;
  padding: 8px;
  border-radius: 55px;
  box-shadow: 0 40px 80px -20px rgba(24, 79, 68, 0.2);
  position: relative;
  overflow: hidden;
}

.form-inner {
  background-color: #ffffff;
  padding: 3.5rem;
  border-radius: 48px;
  height: 100%;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  margin-bottom: 2.5rem;
}

.form-label {
  font-size: 0.75rem;
  color: var(--vibrant-green);
  font-weight: 700;
  position: absolute;
  top: -0.6rem;
  left: 1.25rem;
  margin: 0;
  padding: 0 8px;
  background: #ffffff;
  width: fit-content;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input-group:focus-within .form-label {
  color: var(--accent);
  transform: translateY(-2px);
}

.form-input {
  width: 100%;
  padding: 1.25rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid var(--vibrant-green);
  border-radius: 12px;
  background: transparent;
  color: var(--text-main);
  transition: all 0.3s ease;
  outline: none;
  background-color: rgba(255, 255, 255, 0.8);
  /* Slight opacity for depth */
}

.form-input::placeholder {
  color: rgba(24, 79, 68, 0.3);
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 10px 20px -10px rgba(242, 218, 145, 0.3);
}

textarea.form-input {
  border-radius: 12px;
  resize: none;
  min-height: 150px;
}

.form-select {
  appearance: none;
  cursor: pointer;
  padding-right: 3.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%231B8A46'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 1.25rem;
}

/* Responsive adjustments */
img,
video {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding-top: 8rem;
  padding-bottom: 8rem;
}

@media (max-width: 1024px) {
  .section-padding {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
  }

  #mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: var(--white);
    z-index: 60 !important;
    /* Lower than header (70) so close button is visible */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    display: flex !important;
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start !important;
    /* Start from top to allow scrolling */
    padding-top: 120px !important;
    /* Space for header */
    padding-bottom: 2rem;
    overflow-y: auto !important;
  }

  [data-theme="dark"] #mobile-menu {
    background-color: var(--primary-dark);
  }

  #mobile-menu.active,
  #mobile-menu.closing {
    visibility: visible;
  }

  #mobile-menu.active {
    transform: translateX(0);
  }

  #mobile-menu a {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  #mobile-menu.active a {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggered entrance and exit animations */
  #mobile-menu.active a:nth-child(1) {
    transition-delay: 0.2s;
  }

  #mobile-menu.active a:nth-child(2) {
    transition-delay: 0.3s;
  }

  #mobile-menu.active a:nth-child(3) {
    transition-delay: 0.4s;
  }

  #mobile-menu.active a:nth-child(4) {
    transition-delay: 0.5s;
  }

  /* Closing Animation: Links fly up and fade out */
  #mobile-menu.closing a {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.7, 0, 0.3, 1);
  }

  #mobile-menu.closing a:nth-child(1) {
    transition-delay: 0s;
  }

  #mobile-menu.closing a:nth-child(2) {
    transition-delay: 0.05s;
  }

  #mobile-menu.closing a:nth-child(3) {
    transition-delay: 0.1s;
  }

  #mobile-menu.closing a:nth-child(4) {
    transition-delay: 0.15s;
  }

  #mobile-menu a {
    padding: 1rem 2rem;
    display: block;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .glass-nav {
    height: 70px;
    padding: 0 1rem;
  }

  .glass-nav .max-w-7xl {
    height: 100%;
  }

  .brand-card {
    min-height: auto;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
  }

  .form-card,
  .form-inner {
    border-radius: var(--radius-lg);
  }

  .form-inner {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {

  .btn-primary,
  .btn-secondary {
    width: 100%;
    padding: 0.875rem 1.5rem;
  }

  .form-inner {
    padding: 1.25rem 1rem !important;
    border-radius: 20px !important;
    height: auto !important;
    /* Allow content to dictate height */
  }

  .form-card {
    border-radius: 24px !important;
    padding: 6px !important;
  }

  .form-input-group {
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 10;
    isolation: isolate;
  }

  .form-input {
    padding: 1rem 1rem !important;
    /* Smaller padding */
  }

  .form-label {
    left: 1rem !important;
    /* Align with new padding */
    top: -0.5rem !important;
    font-size: 0.7rem !important;
    background-color: #ffffff;
    padding: 0 4px;
  }



  h1 {
    font-size: clamp(2rem, 10vw, 2.8rem) !important;
    line-height: 1.2 !important;
    /* Fix for overlapping letters */
    overflow-wrap: break-word;
    word-break: break-word;
    letter-spacing: -0.04em;
    width: 100% !important;
    max-width: calc(100vw - 3rem) !important;
    margin-bottom: 1.5rem;
    display: block;
  }

  .form-card {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 24px !important;
    padding: 6px !important;
    box-sizing: border-box !important;
  }

  .form-inner {
    width: 100% !important;
    box-sizing: border-box !important;
  }


  h2 {
    font-size: 1.25rem !important;
  }

  /* Fix overflowing contact buttons */
  .bg-background-cream.rounded-\[40px\] {
    border-radius: 20px !important;
    padding: 0.75rem !important;
    gap: 0.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .bg-background-cream.rounded-\[40px\] .w-16.h-16 {
    width: 2.5rem !important;
    height: 2.5rem !important;
    min-width: 2.5rem !important;
  }

  .bg-background-cream.rounded-\[40px\] .flex-1 {
    min-width: 0;
    /* Align flex items */
  }

  .bg-background-cream.rounded-\[40px\] .text-xl {
    font-size: 0.85rem !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    line-height: 1.2;
  }

  .bg-background-cream.rounded-\[40px\] .text-\[9px\] {
    display: none !important;
    /* Hide tiny label on small screens to save space */
  }

  /* Restore missing Form Label Fixes */
  .form-label {
    left: 1rem !important;
    top: -0.6rem !important;
    font-size: 0.65rem !important;
    background-color: #ffffff;
    padding: 0 4px;
    z-index: 50 !important;
  }
}

/* Dark Mode specific fixes */
[data-theme="dark"] body {
  background-color: var(--background-light);
}

[data-theme="dark"] .bg-primary {
  background-color: var(--primary-dark);
}

[data-theme="dark"] .bg-background-cream {
  background-color: var(--background-cream);
}

[data-theme="dark"] .text-primary,
[data-theme="dark"] .text-primary-link {
  color: var(--text-main) !important;
}

[data-theme="dark"] .text-vibrant {
  color: var(--primary) !important;
}

[data-theme="dark"] .text-brown\/70,
[data-theme="dark"] .text-brown\/80,
[data-theme="dark"] .text-brown\/60 {
  color: rgba(249, 247, 244, 0.7);
}

[data-theme="dark"] .bg-white {
  background-color: #0b241f !important;
}

[data-theme="dark"] .glass-nav {
  background-color: rgba(13, 43, 37, 0.9);
  border-bottom: 1px solid rgba(242, 218, 145, 0.1);
}

[data-theme="dark"] .nav-link {
  color: var(--text-main);
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: var(--primary);
}

[data-theme="dark"] #mobile-menu {
  background-color: #0d2b25 !important;
}

[data-theme="dark"] .btn-primary {
  background-color: var(--primary) !important;
  color: var(--accent) !important;
}

[data-theme="dark"] .btn-primary:hover {
  background-color: #ffffff !important;
  color: #000000 !important;
}

[data-theme="dark"] .btn-secondary {
  background-color: transparent !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}

[data-theme="dark"] .text-primary\/70,
[data-theme="dark"] .text-primary\/60,
[data-theme="dark"] .text-primary\/80,
[data-theme="dark"] .text-brown\/70,
[data-theme="dark"] .text-brown\/60 {
  color: rgba(249, 247, 244, 0.7);
}

[data-theme="dark"] .border-primary\/10,
[data-theme="dark"] .border-gold\/10 {
  border-color: rgba(242, 218, 145, 0.1);
}

[data-theme="dark"] .invert-white {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .form-card {
  background-color: var(--primary) !important;
  /* Gold exterior */
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .form-inner {
  background-color: #0d2b25 !important;
  /* Deep emerald interior */
}

[data-theme="dark"] .form-label {
  background-color: #0d2b25 !important;
  /* Matches interior */
  color: var(--primary) !important;
  /* Gold text */
}

[data-theme="dark"] .form-input-group:focus-within .form-label {
  color: #ffffff !important;
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select {
  background-color: transparent !important;
  border: 2px solid rgba(242, 218, 145, 0.3) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .form-input::placeholder {
  color: rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-select:focus {
  background-color: rgba(255, 255, 255, 0.05) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 20px rgba(242, 218, 145, 0.1);
}

[data-theme="dark"] select.form-input option {
  background-color: #0d2b25;
  color: #ffffff;
}

[data-theme="dark"] .bg-background-cream .brand-card-inner {
  background-color: var(--background-cream) !important;
}

[data-theme="dark"] .text-white\/60,
[data-theme="dark"] .text-white\/80,
[data-theme="dark"] .text-white\/90 {
  color: rgba(249, 247, 244, 0.7);
}

[data-theme="dark"] .border-white\/10 {
  border-color: rgba(242, 218, 145, 0.1);
}

/* Theme Switch UI */
.switch {
  font-size: 14px;
  position: relative;
  display: inline-block;
  width: 4em;
  height: 2.2em;
  border-radius: 30px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-left: 1.5rem;
  vertical-align: middle;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  /* Default Dark Green */
  transition: 0.4s;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(242, 218, 145, 0.2);
  /* Subtle Gold Border */
}

.slider:before {
  position: absolute;
  content: "";
  height: 1.2em;
  width: 1.2em;
  border-radius: 20px;
  left: 0.5em;
  bottom: 0.5em;
  /* Centered vertically relative to 2.2em height? 2.2 - 1.2 = 1.0 / 2 = 0.5 */
  transition: 0.4s;
  transition-timing-function: cubic-bezier(0.81, -0.04, 0.38, 1.5);
  box-shadow: inset 8px -4px 0px 0px #f2da91;
  /* Gold Crescent */
  z-index: 10;
  background-color: transparent;
}

.switch input:checked+.slider {
  background-color: var(--background-cream);
  /* Cream Background for Light Mode */
  border-color: var(--primary);
}

.switch input:checked+.slider:before {
  transform: translateX(1.8em);
  background-color: var(--primary);
  /* solid sun circle */
  box-shadow: none;
  /* Remove crescent shadow */
}

.star,
.cloud {
  display: none !important;
}

.star_1 {
  left: 2.5em;
  top: 0.5em;
}

.star_2 {
  left: 2.2em;
  top: 1.2em;
}

.star_3 {
  left: 3em;
  top: 0.9em;
}

.switch input:checked+.slider .star {
  opacity: 0;
}

.cloud {
  width: 3.5em;
  position: absolute;
  bottom: -1.4em;
  left: -1.1em;
  opacity: 0;
  transition: all 0.4s;
}

.switch input:checked+.slider .cloud {
  opacity: 1;
}

/* Custom Hamburger Menu */
.label-check {
  display: none;
}

.hamburger-container {
  transform: scale(0.75);
  transform-origin: right center;
  margin-right: 0;
}

.hamburger-label {
  width: 70px;
  height: 58px;
  display: block;
  cursor: pointer;
  position: relative;
}

.hamburger-label div {
  width: 70px;
  height: 6px;
  background-color: var(--primary);
  position: absolute;
  border-radius: 4px;
}

.line1 {
  transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  top: 0;
}

.line2 {
  margin: 18px 0 0 0;
  transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  top: 0;
}

.line3 {
  margin: 36px 0 0 0;
  transition: all 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  top: 0;
}

#label-check:checked+.hamburger-label .line1 {
  transform: rotate(35deg) scaleX(.55) translate(39px, -4.5px);
  border-radius: 50px 50px 50px 0;
}

#label-check:checked+.hamburger-label .line3 {
  transform: rotate(-35deg) scaleX(.55) translate(39px, 4.5px);
  border-radius: 0 50px 50px 50px;
}

#label-check:checked+.hamburger-label .line2 {
  border-top-right-radius: 50px;
  border-bottom-right-radius: 50px;
  width: 45px;
}

/* Staggered Animation Delays */
.reveal:nth-child(1) {
  transition-delay: 100ms;
}

.reveal:nth-child(2) {
  transition-delay: 200ms;
}

.reveal:nth-child(3) {
  transition-delay: 300ms;
}

.reveal:nth-child(4) {
  transition-delay: 400ms;
}

/* Service Card Animation Styles */
.service-card {
  width: 100%;
  min-height: 400px;
  /* Taller for content */
  border-radius: 40px;
  background: var(--accent);
  position: relative;
  padding: 2.5rem;
  border: 2px solid transparent;
  transition: all 0.5s ease-out;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

.service-card-details {
  color: var(--primary);
  height: 100%;
  gap: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.service-card-button {
  transform: translate(-50%, 125%);
  width: auto;
  min-width: 60%;
  border-radius: 9999px;
  /* Pill shape */
  border: none;
  background-color: var(--primary);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 1rem 2rem;
  position: absolute;
  left: 50%;
  bottom: 0;
  opacity: 0;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
}

/* Fix for Contact/Inquire buttons in Dark Mode (Gold on Gold issue) */
[data-theme="dark"] .brand-card-inner .btn-secondary,
[data-theme="dark"] .brand-card-inner .\!text-primary {
  color: #0d2b25 !important;
}

.service-card-button:hover {
  background-color: var(--vibrant-green);
  color: var(--background-cream);
}

.service-text-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1rem;
}

.service-text-body {
  color: var(--primary);
  opacity: 0.8;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .service-card {
    padding: 1.5rem;
    min-height: 350px;
  }

  .service-text-title {
    font-size: 1.5rem;
    overflow-wrap: break-word;
  }

  .service-card-button {
    min-width: 80%;
  }
}

@media (max-width: 400px) {
  .service-card {
    padding: 1.25rem;
  }

  .service-text-title {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Hover Effects */
.service-card:hover {
  border-color: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px);
}

.service-card:hover .service-card-button {
  transform: translate(-50%, 50%);
  opacity: 1;
}

/* Adaptive Title: White in Light Mode, Gold in Dark Mode */
.text-adaptive-title {
  color: #ffffff;
}

[data-theme="dark"] .text-adaptive-title {
  color: #f2da91;
}

/* Adaptive Highlight: Dark Green in Light Mode, Gold in Dark Mode */
.text-adaptive-highlight {
  color: #184f44;
}

[data-theme="dark"] .text-adaptive-highlight {
  color: #f2da91;
}

/* From Uiverse.io by AbanoubMagdy1 */
.loader {
  --dim: 1.5rem;
  /* Adjusted for button fitting */
  width: var(--dim);
  height: var(--dim);
  position: relative;
  animation: spin988 2s linear infinite;
  margin: 0 auto;
  /* Center in button */
  display: inline-block;
}

.loader .circle {
  --color: currentColor;
  /* Use button text color */
  --dim: 0.6rem;
  /* Scaled down */
  width: var(--dim);
  height: var(--dim);
  background-color: var(--color);
  border-radius: 50%;
  position: absolute;
}

.loader .circle:nth-child(1) {
  top: 0;
  left: 0;
}

.loader .circle:nth-child(2) {
  top: 0;
  right: 0;
}

.loader .circle:nth-child(3) {
  bottom: 0;
  left: 0;
}

.loader .circle:nth-child(4) {
  bottom: 0;
  right: 0;
}

@keyframes spin988 {
  0% {
    transform: scale(1) rotate(0);
  }

  20%,
  25% {
    transform: scale(1.3) rotate(90deg);
  }

  45%,
  50% {
    transform: scale(1) rotate(180deg);
  }

  70%,
  75% {
    transform: scale(1.3) rotate(270deg);
  }

  95%,
  100% {
    transform: scale(1) rotate(360deg);
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--background-cream);
  padding: 3rem;
  border-radius: 30px;
  border: 2px solid var(--gold);
  max-width: 90%;
  width: 450px;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--gold);
  font-size: 40px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.modal-text {
  color: var(--text-main);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.modal-close-btn {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close-btn:hover {
  background-color: var(--vibrant-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}