/* CSS Variables */
:root {
  --color-primary: #4F7A58;
  --color-secondary: #CED6C1;
  --color-accent: #BFA08A;
  --color-background: #E3E4E0;
  --color-highlight: #D6B47F;
  --color-dark: #2E4B36;
  --color-text: #2E4B36;
  --color-text-light: #4F7A58;
  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Playfair Display', 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;
  --shadow-sm: 0 2px 4px rgba(46, 75, 54, 0.1);
  --shadow-md: 0 4px 8px rgba(46, 75, 54, 0.15);
  --shadow-lg: 0 8px 16px rgba(46, 75, 54, 0.2);
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s ease;
}

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

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

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

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

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600;
}

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

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

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

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

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

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

/* Header */
.header-container {
  background: linear-gradient(135deg, var(--color-background) 0%, var(--color-secondary) 100%);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-slow);
}

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

.header-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  position: relative;
}

.header-wrapper nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 1vw, 1.45rem);
  color: var(--color-dark);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
}

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

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

.burger-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-dark);
  cursor: pointer;
  padding: var(--space-sm);
  margin-left: auto;
  order: 999;
}

/* Mobile Menu */
@media (max-width: 768px) {
  .burger-toggle {
    display: block;
    margin-left: auto;
    order: 999;
    z-index: 1001;
  }
  
  .header-wrapper {
    justify-content: space-between;
  }
  
  .brand-text {
    order: 1;
    flex: 0 0 auto;
  }
  
  .header-wrapper nav {
    order: 999;
    flex: 0 0 auto;
    width: auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 140%;
    left: 0;
    right: 0;
    background: var(--color-background);
    flex-direction: column;
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    gap: var(--space-sm);
  }

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

  .nav-link {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
}

/* Main Content */
.main-content {
  min-height: calc(100vh - 200px);
  padding: var(--space-lg) var(--space-md);
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-background) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-dark);
  background: rgba(227, 228, 224, 0.3);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  margin: var(--space-lg);
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  margin-bottom: var(--space-lg);
  text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--color-text-light);
  max-width: 800px;
  margin: 0 auto;
}

/* Section Styles */
.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.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: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-highlight));
  border-radius: var(--radius-sm);
}

/* Grid Layouts */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.grid-item {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

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

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

.grid-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Product Cards */
.product-card {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

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

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

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

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

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

.product-price {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: var(--space-md);
}

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

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

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

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

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

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

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-background);
  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);
  color: var(--color-dark);
  font-weight: 500;
}

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

.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-text-light);
  cursor: pointer;
}

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

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

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

.footer-title {
  color: white;
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

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

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

.footer-link:hover {
  color: white;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

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

/* Privacy Popup */
.privacy-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(46, 75, 54, 0.9);
  z-index: 10000;
  overflow-y: auto;
  padding: var(--space-lg);
}

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

.popup-content {
  background: var(--color-background);
  max-width: 800px;
  max-height: 90vh;
  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: var(--color-primary);
  color: white;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
}

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

/* Gallery Filters */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-secondary);
  border: 2px solid var(--color-secondary);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-primary);
  font-size: 0.95rem;
}

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
}

.gallery-item img {
  transition: transform var(--transition-slow);
}

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

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10001;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: white;
  color: var(--color-dark);
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

/* 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;
}

/* Installation Diagrams */
.diagram-container {
  background: var(--color-secondary);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin: var(--space-lg) 0;
}

.diagram-step {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
  padding: var(--space-lg);
  background: var(--color-background);
  border-radius: var(--radius-md);
}

.diagram-number {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
}

.diagram-content {
  flex: 1;
}

/* Info Cards */
.info-card {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-background) 100%);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
}

.info-title {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

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

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

@keyframes mossGrowth {
  from {
    transform: scale(0.8);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.moss-grow {
  animation: mossGrowth 1s 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);
}

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

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

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

.hidden {
  display: none;
}

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

  .hero-section {
    min-height: 50vh;
  }

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

  .diagram-step {
    flex-direction: column;
    text-align: center;
  }

  .filter-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: var(--space-md) var(--space-sm);
  }

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

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

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

/* 404 Page */
.error-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.error-message {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: var(--color-dark);
  margin-bottom: var(--space-lg);
}

