/* ============================================
   CSS Variables - Biophilic Eco-Tech Theme
   ============================================ */
:root {
  /* Colors */
  --color-primary: #5A8F73;
  --color-secondary: #D8F5EB;
  --color-accent-blue: #B4D9F5;
  --color-accent-yellow: #F7E9A6;
  --color-white: #FCFEFF;
  --color-text-dark: #2c3e50;
  --color-text-light: #5a6c7d;
  --color-border: rgba(90, 143, 115, 0.2);
  
  /* Typography */
  --font-heading: 'Atkinson Hyperlegible', sans-serif;
  --font-subheading: 'Rubik', sans-serif;
  --font-body: 'Mulish', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(90, 143, 115, 0.1);
  --shadow-md: 0 4px 16px rgba(90, 143, 115, 0.15);
  --shadow-lg: 0 8px 32px rgba(90, 143, 115, 0.2);
  --shadow-soft: 0 2px 20px rgba(216, 245, 235, 0.5);
  
  /* 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-white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 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: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

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);
  font-family: var(--font-subheading);
}

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

/* ============================================
   Header Styles
   ============================================ */
.site-header {
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-secondary) 100%);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-medium);
}

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

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

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

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

.nav-link {
  font-family: var(--font-subheading);
  font-size: 1rem;
  color: var(--color-text-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-fast);
}

.nav-link:hover::after {
  width: 80%;
}

.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  z-index: 1001;
}

.burger-line {
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

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

.burger-toggle.active .burger-line:nth-child(2) {
  opacity: 0;
}

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

/* ============================================
   Mobile Menu
   ============================================ */
@media (max-width: 768px) {
  .burger-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    transform: translateX(-100%);
    transition: transform var(--transition-medium);
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent-blue) 50%, var(--color-white) 100%);
  padding: var(--space-xxl) var(--space-lg);
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../visual_gallery/1.webp') center/cover no-repeat;
  opacity: 0.3;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  text-align: center;
  color: var(--color-text-dark);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-xl);
  color: var(--color-text-light);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #4a7a5f 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  font-family: var(--font-subheading);
  font-size: 1.125rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
}

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

/* ============================================
   Section Styles
   ============================================ */
.content-section {
  padding: var(--space-xxl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-sm);
}

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

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: var(--transition-medium);
}

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

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.feature-text {
  color: var(--color-text-light);
  line-height: 1.8;
}

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

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

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

/* ============================================
   Banner Section
   ============================================ */
.banner-section {
  position: relative;
  padding: var(--space-xxl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent-blue) 100%);
  margin: var(--space-xxl) 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.banner-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   Contact Form
   ============================================ */
.contact-section {
  padding: var(--space-xxl) var(--space-lg);
  background: linear-gradient(135deg, var(--color-white) 0%, var(--color-secondary) 100%);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

.info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-text {
  flex: 1;
}

.info-label {
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

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

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

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(90, 143, 115, 0.1);
}

.form-input.error,
.form-textarea.error {
  border-color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 0.875rem;
  margin-top: var(--space-xs);
  display: block;
}

.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;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

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

.submit-button {
  width: 100%;
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--color-primary) 0%, #4a7a5f 100%);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-family: var(--font-subheading);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

/* ============================================
   Products Grid
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
  border: 2px solid transparent;
}

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

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-info {
  padding: var(--space-lg);
}

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

.product-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-subheading);
}

/* ============================================
   Interactive Elements
   ============================================ */
.interactive-demo {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  margin: var(--space-xl) 0;
}

.demo-controls {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.demo-button {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-secondary);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-family: var(--font-subheading);
  font-weight: 600;
  transition: var(--transition-fast);
  border: 2px solid transparent;
}

.demo-button:hover,
.demo-button.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.energy-bar-container {
  margin: var(--space-lg) 0;
}

.energy-bar {
  width: 100%;
  height: 40px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  margin-bottom: var(--space-md);
}

.energy-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: var(--radius-md);
  transition: width var(--transition-slow);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: var(--space-md);
  color: var(--color-white);
  font-weight: 600;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: linear-gradient(135deg, var(--color-primary) 0%, #4a7a5f 100%);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

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

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

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

.footer-link:hover {
  color: var(--color-white);
  padding-left: var(--space-sm);
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Privacy Popup
   ============================================ */
.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  max-width: 400px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  transform: translateY(150%);
  transition: transform var(--transition-medium);
  border: 2px solid var(--color-secondary);
}

.privacy-popup.show {
  transform: translateY(0);
}

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

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

.popup-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

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

.popup-button {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-family: var(--font-subheading);
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

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

.popup-accept:hover {
  background: #4a7a5f;
}

.popup-decline {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.popup-decline:hover {
  background: #c8e5d5;
}

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

.thank-you-content {
  max-width: 600px;
  background: var(--color-white);
  padding: var(--space-xxl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

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

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.thank-you-text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

/* ============================================
   404 Page
   ============================================ */
.error-section {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-white) 100%);
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
  opacity: 0.3;
}

.error-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.error-text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

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

.fade-in {
  animation: fadeIn var(--transition-medium) ease-out;
}

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

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .section-content {
    grid-template-columns: 1fr;
  }
  
  .image-grid {
    grid-template-columns: 1fr;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .privacy-popup {
    max-width: calc(100% - 2rem);
    right: var(--space-md);
    left: var(--space-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .content-section {
    padding: var(--space-lg) var(--space-md);
  }
  
  .hero-section {
    padding: var(--space-xl) var(--space-md);
  }
  
  .banner-section {
    padding: var(--space-lg) var(--space-md);
  }
}

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

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

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

.curved-shape {
  border-radius: var(--radius-xl);
}

.organic-gradient {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent-blue) 100%);
}

