@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* --- 1. Variables --- */
:root {
  /* Core brand colors */
  --background: 0 0% 100%;
  --foreground: 0 0% 0%;

  --card: 0 0% 100%;
  --card-foreground: 0 0% 0%;

  --popover: 0 0% 100%;
  --popover-foreground: 0 0% 0%;

  --primary: 150 29% 43%; /* #4E8B71 approx, actually hsl(150, 29%, 43%) */
  --primary-foreground: 0 0% 100%;

  --secondary: 0 0% 96%;
  --secondary-foreground: 0 0% 0%;

  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 45%;

  --accent: 150 29% 43%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 0 0% 90%;
  --input: 0 0% 90%;
  --ring: 150 29% 43%;

  --radius: 0.75rem;

  --sage-50: #f0f6f3;
  --sage-100: #d8e8df;
  --sage-200: #b4d4c3;
  --sage-300: #88b9a0;
  --sage-400: #4e8b71;
  --sage-500: #3d7a61;
  --sage-600: #2f6150;
  --sage-700: #274e41;
  --sage-800: #213f36;
  --sage-900: #1c352e;
}

.dark {
  --background: 0 0% 5%;
  --foreground: 0 0% 98%;
  --card: 0 0% 8%;
  --card-foreground: 0 0% 98%;
  --popover: 0 0% 8%;
  --popover-foreground: 0 0% 98%;
  --primary: 150 29% 50%;
  --primary-foreground: 0 0% 100%;
  --secondary: 0 0% 15%;
  --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;
  --accent: 150 29% 50%;
  --accent-foreground: 0 0% 100%;
  --destructive: 0 62.8% 30.6%;
  --destructive-foreground: 0 0% 98%;
  --border: 0 0% 20%;
  --input: 0 0% 20%;
  --ring: 150 29% 50%;
}

/* --- 2. Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  border-color: hsl(var(--border));
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  margin: 0;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "rlig" 1, "calt" 1;
  overflow-x: hidden;
  width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; /* font-bold */
  letter-spacing: -0.025em; /* tracking-tight */
  margin-top: 0;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --- 3. Utilities --- */

/* Colors */
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-white { color: white; }
.text-background { color: hsl(var(--background)); }
.text-background\/70 { color: hsl(var(--background) / 0.7); }
.text-background\/50 { color: hsl(var(--background) / 0.5); }
.text-yellow-400 { color: #facc15; }

.bg-background { background-color: hsl(var(--background)); }
.bg-foreground { background-color: hsl(var(--foreground)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/5 { background-color: hsl(var(--primary) / 0.05); }
.bg-primary\/10 { background-color: hsl(var(--primary) / 0.1); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-muted { background-color: hsl(var(--muted)); }
.bg-card { background-color: hsl(var(--card)); }
.bg-white { background-color: white; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/95 { background-color: rgba(255, 255, 255, 0.95); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }

.from-black\/60 { --tw-gradient-from: rgba(0, 0, 0, 0.6); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-black\/40 { --tw-gradient-to: rgba(0, 0, 0, 0.4); --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.4), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }
.from-primary\/20 { --tw-gradient-from: hsl(var(--primary) / 0.2); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.from-primary\/10 { --tw-gradient-from: hsl(var(--primary) / 0.1); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-primary\/5 { --tw-gradient-to: hsl(var(--primary) / 0.05); }
.from-secondary { --tw-gradient-from: hsl(var(--secondary)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-muted { --tw-gradient-to: hsl(var(--muted)); }
.from-primary { --tw-gradient-from: hsl(var(--primary)); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-sage-600 { --tw-gradient-to: var(--sage-600); }

.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-2 { border-width: 2px; }
.border-border { border-color: hsl(var(--border)); }
.border-primary { border-color: hsl(var(--primary)); }
.border-primary\/20 { border-color: hsl(var(--primary) / 0.2); }
.border-primary\/30 { border-color: hsl(var(--primary) / 0.3); }
.border-white { border-color: white; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-background\/10 { border-color: hsl(var(--background) / 0.1); }

/* Typography */
.font-sans { font-family: 'Montserrat', sans-serif; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.italic { font-style: italic; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.whitespace-nowrap { white-space: nowrap; }

/* Layout & Spacing */
.container-narrow {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1200px; /* Guessing narrow container */
}

@media (min-width: 768px) {
  .container-narrow { padding-left: 2rem; padding-right: 2rem; }
}

.mx-auto { margin-left: auto; margin-right: auto; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Space Between Utilities */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }

.hidden { display: none; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Responsive Grid */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:block { display: block; }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .lg\:block { display: block; }
}

.min-h-screen { min-height: 100vh; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-20 { height: 5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }
.w-px { width: 1px; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-xs { max-width: 20rem; }

.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }

.m-0 { margin: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.ml-4 { margin-left: 1rem; }

.section-padding { padding-top: 4rem; padding-bottom: 4rem; }
@media (min-width: 768px) { .section-padding { padding-top: 6rem; padding-bottom: 6rem; } }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-6 { top: 1.5rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.right-6 { right: 1.5rem; }
.right-8 { right: 2rem; }
.bottom-24 { bottom: 6rem; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Effects */
.opacity-80 { opacity: 0.8; }
.opacity-50 { opacity: 0.5; }
.hover\:opacity-80:hover { opacity: 0.8; }
.backdrop-blur-sm { backdrop-filter: blur(4px); }
.shadow-soft { box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08); }
.shadow-elevated { box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12); }
.shadow-card { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

.object-cover { object-fit: cover; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[3\/4\] { aspect-ratio: 3 / 4; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-shadow { transition-property: box-shadow; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-300 { transition-duration: 300ms; }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:shadow-elevated:hover { box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12); }
.hover\:shadow-card:hover { box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1); }
.hover\:text-primary:hover { color: hsl(var(--primary)); }
.hover\:bg-white\/90:hover { background-color: rgba(255, 255, 255, 0.9); }
.hover\:bg-white:hover { background-color: white; }
.hover\:bg-primary:hover { background-color: hsl(var(--primary)); }
.hover\:bg-primary\/90:hover { background-color: hsl(var(--primary) / 0.9); }
.hover\:text-primary-foreground:hover { color: hsl(var(--primary-foreground)); }
.hover\:text-foreground:hover { color: hsl(var(--foreground)); }
.hover\:underline:hover { text-decoration: underline; }

/* --- 4. Components --- */

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.25rem; /* rounded (normally rectangular) */
  font-size: 0.875rem; /* text-sm */
  font-weight: 600; /* font-semibold */
  padding: 0.75rem 1.5rem; /* px-6 py-3 for better size */
  transition: all 0.3s;
  cursor: pointer;
}

.btn-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08); /* shadow-soft */
}
.btn-default:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12); /* shadow-elevated */
}

.btn-hero {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.12); /* shadow-elevated */
  font-size: 1rem; /* text-base */
  padding: 1rem 2rem; /* px-8 py-4 */
}
.btn-hero:hover {
  background-color: hsl(var(--primary) / 0.9);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1); /* shadow-card */
}

.btn-hero-outline {
  border: 2px solid white;
  background-color: transparent;
  color: white;
  font-size: 1rem; /* text-base */
  padding: 1rem 2rem; /* px-8 py-4 */
}
.btn-hero-outline:hover {
  background-color: white;
  color: hsl(var(--foreground));
}

.btn-outline {
  border: 2px solid hsl(var(--primary));
  background-color: transparent;
  color: hsl(var(--primary));
}
.btn-outline:hover {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-size-lg {
  height: 3.5rem; /* h-14 */
  padding-left: 2.5rem; /* px-10 */
  padding-right: 2.5rem;
  font-size: 1rem; /* text-base */
}
.btn-size-xl {
  height: 4rem; /* h-16 */
  border-radius: 1rem; /* rounded-2xl */
  padding-left: 3rem; /* px-12 */
  padding-right: 3rem;
  font-size: 1.125rem; /* text-lg */
}

/* Accordion */
.accordion-item {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem; /* rounded-xl */
  padding-left: 1.5rem; /* px-6 */
  padding-right: 1.5rem;
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.08); /* shadow-soft */
  margin-bottom: 1rem; /* space-y-4 implies this */
}
.accordion-trigger {
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1.125rem;
  color: hsl(var(--foreground));
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion-trigger:hover {
  color: hsl(var(--primary));
}
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease-out;
  color: hsl(var(--muted-foreground));
  font-size: 1rem;
}
.accordion-content.open {
  /* max-height is set by JS */
  padding-bottom: 1.5rem;
}
/* Chevron for accordion (manual implementation since lucide icons are static svg) */
.accordion-chevron {
  transition: transform 0.2s;
}

/* Animations */
@keyframes fade-up {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0; /* Start hidden */
}

.animate-fade-up.animate-active {
  animation: fade-up 0.6s ease-out forwards;
}

/* Classes to trigger animation on scroll */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }

/* Custom Overrides */
.fill-yellow-400 { fill: #facc15; }

/* Missing Utilities for Hero Section */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  max-width: 1280px;
}
@media (min-width: 768px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }
.backdrop-blur-md { backdrop-filter: blur(12px); }
.border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.z-20 { z-index: 20; }

.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-white\/80 { color: rgba(255, 255, 255, 0.8); }
.text-white\/90 { color: rgba(255, 255, 255, 0.9); }

/* Footer Utilities */
.footer-link {
  font-size: 1rem;
  line-height: 1.5rem;
  color: hsl(var(--background) / 0.7);
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: hsl(var(--primary));
}
.footer-text {
  font-size: 1rem;
  line-height: 1.5rem;
  color: hsl(var(--background) / 0.7);
}
.footer-btn {
  width: 100%;
  text-align: left;
}

/* Navbar Scroll States */
header.transparent-nav {
    background-color: transparent;
    border-bottom-color: transparent;
    box-shadow: none;
}

header.scrolled-nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom-color: hsl(var(--border));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Navbar Text Colors */
header.transparent-nav .nav-link,
header.transparent-nav .logo-text,
header.transparent-nav .mobile-menu-icon {
    color: white;
}

header.transparent-nav .logo-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

header.transparent-nav .nav-link:hover {
    color: hsl(var(--primary));
}

header.scrolled-nav .nav-link,
header.scrolled-nav .logo-text,
header.scrolled-nav .mobile-menu-icon {
    color: hsl(var(--foreground));
}

header.scrolled-nav .logo-subtitle {
    color: hsl(var(--muted-foreground));
}

header.scrolled-nav .nav-link:hover {
    color: hsl(var(--primary));
}

/* Navbar Transitions */
header {
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-link, .logo-text, .logo-subtitle, .mobile-menu-icon {
    transition: color 0.3s ease;
}

/* Mobile Menu Open State - Overrides transparent-nav */
header.mobile-open {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(4px);
    border-bottom-color: hsl(var(--border));
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

header.mobile-open .nav-link,
header.mobile-open .logo-text,
header.mobile-open .mobile-menu-icon {
    color: hsl(var(--foreground)) !important;
}

header.mobile-open .logo-subtitle {
    color: hsl(var(--muted-foreground)) !important;
}

header.mobile-open .nav-link:hover {
    color: hsl(var(--primary)) !important;
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 50;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: hsl(var(--primary) / 0.9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.2);
}

/* Mobile specific adjustment if needed, but 1.5rem is generally fine */
@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 1rem;
        right: 1rem;
        width: 2.75rem;
        height: 2.75rem;
    }
}
