:root {
  /* Colors */
  --color-primary: #4A5D23; /* Deep soft green */
  --color-secondary: #8B9A46; /* Lighter soft green */
  --color-accent: #D4A373; /* Warm earth tone / beige-orange */
  --color-bg: #FAEDCD; /* Very light warm beige */
  --color-bg-light: #FEFAE0; /* Almost white beige */
  --color-text-main: #333333; /* Dark gray for readability */
  --color-text-light: #666666;
  --color-white: #FFFFFF;

  /* Typography */
  --font-title: "dreaming-outloud-script", cursive; /* From Adobe Fonts */
  --font-text: "dreaming-outloud-sans", sans-serif; /* From Adobe Fonts */

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-full: 9999px;
  
  /* Shadow */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.05);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-text);
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  font-size: 1.125rem;
  overflow-x: hidden;
}

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

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

/* Typography Classes */
h1, h2, h3, h4, .font-title {
  font-family: var(--font-title);
  font-weight: normal;
  line-height: 1.2;
}

.font-sans {
  font-family: var(--font-text) !important;
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: var(--space-sm);
}

p {
  margin-bottom: var(--space-sm);
}

.text-accent {
  color: var(--color-accent);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

section {
  padding: var(--space-lg) 0;
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(254, 250, 224, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav-links a {
  font-weight: bold;
  transition: color 0.3s ease;
  font-size: 1.2rem;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-primary);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-text);
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* offset header */
  background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.hero-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

/* Cards */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
}

.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.card-price {
  font-family: var(--font-title);
  font-size: 2.5rem;
  color: var(--color-accent);
  margin: var(--space-sm) 0;
}

.card-features {
  list-style: none;
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.card-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-family: var(--font-title);
}

/* Sections specific */
.bg-alt {
  background-color: var(--color-bg);
}

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

.bg-primary h2, .bg-primary p {
  color: var(--color-white);
}

.text-center {
  text-align: center;
}

.problem-section {
  max-width: 800px;
  margin: 0 auto;
}

.problem-list {
  list-style: none;
  margin-top: var(--space-md);
}

.problem-list li {
  background-color: var(--color-white);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-control {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-text);
  font-size: 1rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.footer-info p {
  color: rgba(255, 255, 255, 0.8);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide by default on mobile, toggled via JS */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-light);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    gap: var(--space-sm);
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero {
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .problem-list li {
    border-radius: var(--radius-sm);
  }
}

/* Utility for dynamic entry animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 50px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.show {
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox.show .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
}

.lightbox-trigger:hover {
  transform: scale(1.02);
}

.lightbox-prev, .lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s ease;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  z-index: 10000;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  color: var(--color-accent);
}
