/* CSS Variables */
:root {
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-mint: #E6F4EE;
  --color-sage: #A7C7A9;
  --color-terracotta: #D9A686;
  --color-stone: #F5F5F4;
  --color-forest: #2F3A2F;
  --font-primary: 'Sora', sans-serif;
  --font-secondary: 'Manrope', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 2px 4px rgba(47, 58, 47, 0.1);
  --shadow-md: 0 4px 8px rgba(47, 58, 47, 0.15);
  --shadow-lg: 0 8px 16px rgba(47, 58, 47, 0.2);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-forest);
  background-color: var(--color-mint);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-forest);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-terracotta);
}

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

/* Header */
.site-header {
  background-color: var(--color-stone);
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
}

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

.brand-text {
  font-family: var(--font-primary);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-forest);
  letter-spacing: -0.5px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-forest);
  cursor: pointer;
  padding: var(--space-sm);
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: var(--space-lg);
  flex-direction: row;
  width: auto;
  padding: 0;
  margin: 0;
}

.nav-link {
  font-weight: 500;
  color: var(--color-forest);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
}

.nav-link:hover {
  background-color: var(--color-sage);
  color: var(--color-forest);
}

.nav-close {
  display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-stone);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-fast);
    z-index: 999;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
  }

  .main-nav.active {
    right: 0;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-forest);
    cursor: pointer;
  }
}

/* Main Content */
main {
  min-height: calc(100vh - 200px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

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

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--color-forest);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--color-mint) 0%, var(--color-sage) 100%);
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section.with-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.hero-section.with-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 244, 238, 0.85) 0%, rgba(167, 199, 169, 0.85) 100%);
  z-index: 1;
}

.hero-section.with-bg-image .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-lg);
  color: var(--color-forest);
}

.hero-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: var(--space-xl);
  color: var(--color-forest);
  opacity: 0.9;
}

.hero-image {
  width: 100%;
  max-width: 900px;
  margin: var(--space-xl) auto 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-terracotta);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
  text-align: center;
}

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

.btn-secondary {
  background-color: var(--color-sage);
  color: var(--color-forest);
}

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

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Cards */
.card {
  background-color: var(--color-stone);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
}

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

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--color-forest);
  opacity: 0.8;
  font-size: 0.95rem;
}

/* Plant Cards */
.plant-card {
  background-color: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.plant-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.plant-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.plant-name {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-forest);
}

.plant-info {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background-color: var(--color-mint);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--color-forest);
}

.info-icon {
  width: 16px;
  height: 16px;
}

.plant-rating {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.rating-star {
  color: var(--color-terracotta);
  font-size: 1.2rem;
}

/* Filters */
.filter-section {
  background-color: var(--color-stone);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xl);
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
}

.filter-label {
  font-weight: 600;
  color: var(--color-forest);
  margin-right: var(--space-sm);
}

.filter-select,
.filter-input {
  padding: var(--space-sm) var(--space-md);
  border: 2px solid var(--color-sage);
  border-radius: var(--radius-md);
  background-color: white;
  color: var(--color-forest);
  font-family: var(--font-secondary);
  font-size: 0.95rem;
}

.filter-select:focus,
.filter-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* Forms */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--color-stone);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-forest);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-sage);
  border-radius: var(--radius-md);
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--color-forest);
  background-color: white;
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

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

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.checkbox-input {
  margin-top: 4px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-forest);
  opacity: 0.9;
}

/* Google Maps */
.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-lg);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* Care Tips */
.tip-card {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-sage);
}

.tip-title {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.tip-icon {
  width: 32px;
  height: 32px;
  color: var(--color-terracotta);
}

.tip-list {
  list-style: none;
  padding-left: 0;
}

.tip-list li {
  padding: var(--space-sm) 0;
  padding-left: var(--space-lg);
  position: relative;
}

.tip-list li:before {
  content: "🌿";
  position: absolute;
  left: 0;
}

/* Footer */
.site-footer {
  background-color: var(--color-forest);
  color: var(--color-mint);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.footer-section h3 {
  color: var(--color-mint);
  margin-bottom: var(--space-md);
  font-size: 1.1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: var(--color-mint);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-link:hover {
  opacity: 1;
  color: var(--color-terracotta);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(230, 244, 238, 0.2);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Privacy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 58, 47, 0.8);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.privacy-popup.active {
  display: flex;
}

.popup-content {
  background-color: var(--color-stone);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-forest);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.popup-close:hover {
  background-color: var(--color-sage);
}

.popup-title {
  margin-bottom: var(--space-lg);
  color: var(--color-forest);
}

.popup-text {
  color: var(--color-forest);
  opacity: 0.9;
  line-height: 1.8;
}

.popup-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

/* Thank You Page */
.thank-you-section {
  text-align: center;
  padding: var(--space-xxl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.thank-you-section.with-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.thank-you-section.with-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 244, 238, 0.85) 0%, rgba(167, 199, 169, 0.85) 100%);
  z-index: 1;
}

.thank-you-section.with-bg-image .thank-you-content {
  position: relative;
  z-index: 2;
}

.thank-you-content {
  max-width: 600px;
  padding: var(--space-xl);
}

.thank-you-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  color: var(--color-sage);
}

.thank-you-title {
  margin-bottom: var(--space-lg);
}

.thank-you-text {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  color: var(--color-forest);
  opacity: 0.9;
}

/* 404 Page */
.error-section {
  text-align: center;
  padding: var(--space-xxl) 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.error-section.with-bg-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: overlay;
}

.error-section.with-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(230, 244, 238, 0.85) 0%, rgba(167, 199, 169, 0.85) 100%);
  z-index: 1;
}

.error-section.with-bg-image .error-content {
  position: relative;
  z-index: 2;
}

.error-content {
  max-width: 600px;
  padding: var(--space-xl);
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-sage);
  margin-bottom: var(--space-md);
}

.error-title {
  margin-bottom: var(--space-lg);
}

.error-text {
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  color: var(--color-forest);
  opacity: 0.9;
}

/* Legal Pages */
.legal-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-md);
}

.legal-content {
  background-color: var(--color-stone);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

.legal-content ul {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

.legal-content li {
  margin-bottom: var(--space-sm);
}

/* Room Layout Modal */
.room-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(47, 58, 47, 0.9);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.room-modal.active {
  display: flex;
}

.room-content {
  background-color: var(--color-stone);
  max-width: 700px;
  width: 100%;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.room-layout {
  width: 100%;
  height: 400px;
  background-color: var(--color-mint);
  border-radius: var(--radius-md);
  position: relative;
  margin: var(--space-lg) 0;
  border: 2px dashed var(--color-sage);
}

.plant-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--color-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: move;
  box-shadow: var(--shadow-md);
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .section {
    padding: var(--space-lg) 0;
  }

  .hero-section {
    padding: var(--space-xl) 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-label {
    margin-bottom: var(--space-xs);
  }

  .form-container {
    padding: var(--space-lg);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .card {
    padding: var(--space-md);
  }

  .form-container {
    padding: var(--space-md);
  }

  .popup-content {
    padding: var(--space-lg);
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

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

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.flex-center {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.flex-start {
  display: flex;
  align-items: start;
  gap: var(--space-md);
}

.icon-large {
  font-size: 1.5rem;
  color: var(--color-terracotta);
  margin-top: var(--space-xs);
}

.icon-xl {
  font-size: 2.5rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
}

.text-small {
  font-size: 0.9rem;
}

.text-smaller {
  font-size: 0.95rem;
}

.full-width {
  width: 100%;
}

.gallery-caption {
  padding: var(--space-md);
  background-color: var(--color-stone);
}

.gallery-caption h4 {
  margin-bottom: var(--space-sm);
}

.gallery-caption p {
  font-size: 0.9rem;
  color: var(--color-forest);
  opacity: 0.8;
}

