/* ============================================
   Design System Variables
   ============================================ */

:root {
  /* Colors - Biophilic Palette */
  --color-primary: #CDEDD1;
  --color-secondary: #8FBF94;
  --color-accent: #5D6D59;
  --color-highlight: #FFF8E7;
  --color-warm-light: #FFDEB4;
  --color-cool-accent: #D8EAF1;
  --color-muted-overlay: #B8D8B8;
  --color-background: #F0FAF5;
  --color-text-dark: #2c3e2d;
  --color-text-light: #5D6D59;
  --color-white: #ffffff;
  --color-shadow: rgba(93, 109, 89, 0.1);

  /* Typography */
  --font-heading: 'Fraunces', serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Raleway', sans-serif;

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

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px var(--color-shadow);
  --shadow-md: 0 4px 16px var(--color-shadow);
  --shadow-lg: 0 8px 24px var(--color-shadow);

  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;

  /* Layout */
  --max-width: 1200px;
  --header-height: 80px;
}

/* ============================================
   Reset & Base Styles
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background);
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

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

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

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

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

.quote-text {
  font-family: var(--font-accent);
  font-weight: 300;
  font-style: italic;
  color: var(--color-accent);
}

/* ============================================
   Layout Components
   ============================================ */

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

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

.section-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.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));
}

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

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

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

/* ============================================
   Header
   ============================================ */

.header-main {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(240, 250, 245, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: transform var(--transition-medium);
  border-bottom: 1px solid var(--color-muted-overlay);
}

.header-main.hidden {
  transform: translateY(-100%);
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-accent);
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

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

.nav-link:hover {
  color: var(--color-accent);
  background: var(--color-primary);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: var(--space-sm);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    background: var(--color-background);
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    border-bottom: 1px solid var(--color-muted-overlay);
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

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

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
  padding-top: calc(var(--header-height) + var(--space-xl));
  padding-bottom: var(--space-xxl);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(93, 109, 89, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
  padding: 0 var(--space-md);
}

.hero-title {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease;
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-white);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 1s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-accent);
  box-shadow: var(--shadow-md);
}

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

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

.btn-secondary:hover {
  background: var(--color-warm-light);
}

/* ============================================
   Cards
   ============================================ */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  overflow: hidden;
}

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

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

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

.card-text {
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

/* ============================================
   Image Sections
   ============================================ */

.image-banner {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
}

.banner-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.banner-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(93, 109, 89, 0.4);
  z-index: 1;
}

.banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-white);
  max-width: 800px;
}

.banner-content h2,
.banner-content h3 {
  color: var(--color-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: var(--space-md);
}

.banner-content p {
  color: var(--color-white);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  font-size: 1.125rem;
}

@media (max-width: 768px) {
  .banner-section {
    min-height: 300px;
  }
  
  .banner-content {
    padding: var(--space-lg);
  }
  
  .banner-content h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  
  .banner-content p {
    font-size: 1rem;
  }
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4/3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(143, 191, 148, 0.3) 100%);
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ============================================
   Plant Animation Effects
   ============================================ */

.plant-container {
  position: relative;
  overflow: hidden;
}

.leaf-light {
  position: absolute;
  top: -50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 248, 231, 0.4) 0%, transparent 70%);
  animation: lightPass 8s infinite ease-in-out;
  pointer-events: none;
}

@keyframes lightPass {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.8);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) rotate(180deg) scale(1.2);
    opacity: 0.6;
  }
}

/* ============================================
   Interactive Visualizations
   ============================================ */

.viz-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
}

.chart-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.bar-label {
  min-width: 120px;
  font-weight: 500;
  color: var(--color-text-light);
}

.bar-track {
  flex: 1;
  height: 30px;
  background: var(--color-background);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-sm);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 600;
}

.progress-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(var(--color-secondary) 0deg, var(--color-primary) 180deg, var(--color-background) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: var(--space-md) auto;
}

.progress-inner {
  width: 120px;
  height: 120px;
  background: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
  font-family: var(--font-heading);
}

/* ============================================
   Filter System (Care Guide)
   ============================================ */

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  justify-content: center;
}

.filter-btn {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  color: var(--color-text-light);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--color-primary);
  color: var(--color-accent);
  border-color: var(--color-secondary);
}

.plant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.plant-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-medium);
  opacity: 1;
  transform: scale(1);
}

.plant-card.hidden {
  display: none;
}

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

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

.tag {
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-cool-accent);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-accent);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

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

.info-icon {
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
  font-size: 1.25rem;
}

.form-container {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
}

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

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

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

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

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

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

.checkbox-input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  flex-shrink: 0;
}

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

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md);
}

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

/* ============================================
   Privacy Popup
   ============================================ */

.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(93, 109, 89, 0.7);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-medium);
}

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

.privacy-modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform var(--transition-medium);
}

.privacy-overlay.active .privacy-modal {
  transform: scale(1);
}

.privacy-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.privacy-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-background);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.privacy-close:hover {
  background: var(--color-primary);
}

/* ============================================
   Footer
   ============================================ */

.footer-main {
  background: var(--color-accent);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
}

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

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.8);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   Room Sections
   ============================================ */

.room-section {
  margin: var(--space-xxl) 0;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-lg);
}

.room-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-medium);
}

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

.room-image-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.room-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.room-card:hover .room-image {
  transform: scale(1.1);
}

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

/* ============================================
   Thank You Page
   ============================================ */

.thanks-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.thanks-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-lg);
}

.thanks-icon {
  font-size: 4rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-lg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   404 Page
   ============================================ */

.error-container {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
  padding-top: calc(var(--header-height) + var(--space-xl));
}

.error-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xxl);
  box-shadow: var(--shadow-lg);
}

.error-code {
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

/* ============================================
   Animations
   ============================================ */

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

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

/* ============================================
   Responsive Design
   ============================================ */

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + var(--space-lg));
    min-height: 400px;
  }

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

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

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

  .btn {
    width: 100%;
    padding: var(--space-md);
  }
}

/* ============================================
   Utility Classes
   ============================================ */

.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); }

.pt-sm { padding-top: var(--space-sm); }
.pt-md { padding-top: var(--space-md); }
.pt-lg { padding-top: var(--space-lg); }
.pt-xl { padding-top: var(--space-xl); }

.pb-sm { padding-bottom: var(--space-sm); }
.pb-md { padding-bottom: var(--space-md); }
.pb-lg { padding-bottom: var(--space-lg); }
.pb-xl { padding-bottom: var(--space-xl); }

