/* ============================================
   Design System - Airy Nordic Tech
   ============================================ */

:root {
  /* Colors */
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-crystal-white: #FDFDFE;
  --color-glacier-blue: #D8ECF7;
  --color-silver-mist: #C7D1D6;
  --color-sky-blue: #8DB7E5;
  --color-air-green: #CDEED4;
  --color-text-dark: #1a1a1a;
  --color-text-light: #4a4a4a;
  --color-border: rgba(199, 209, 214, 0.3);
  
  /* Typography */
  --font-heading: 'Sora', sans-serif;
  --font-subheading: 'Nunito Sans', sans-serif;
  --font-body: 'Roboto', 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;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-airy: 0 2px 20px rgba(141, 183, 229, 0.15);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-smooth: 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);
  color: var(--color-text-dark);
  background-color: var(--color-crystal-white);
  line-height: 1.6;
  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;
}

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

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

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);
  color: var(--color-text-light);
}

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

.site-header {
  background: rgba(253, 253, 254, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: transform var(--transition-smooth);
  height: var(--header-height);
}

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

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

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

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

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

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

.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 30px;
  justify-content: center;
  align-items: center;
}

.burger-line {
  width: 100%;
  height: 2px;
  background: var(--color-text-dark);
  transition: var(--transition-fast);
  border-radius: 2px;
}

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

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

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

/* ============================================
   Main Content
   ============================================ */

main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height) - 200px);
}

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

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

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

.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-glacier-blue) 0%, var(--color-air-green) 100%);
  overflow: hidden;
  padding: var(--space-xxl) var(--space-md);
}

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

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

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

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

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

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

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

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

/* ============================================
   Cards & Grids
   ============================================ */

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

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-airy);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: var(--space-md);
  color: var(--color-sky-blue);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.card-text {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   Image Galleries
   ============================================ */

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

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

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

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

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

/* ============================================
   Forms
   ============================================ */

.form-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-airy);
  border: 1px solid var(--color-border);
}

.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-size: 0.95rem;
}

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-sky-blue);
  box-shadow: 0 0 0 3px rgba(141, 183, 229, 0.1);
}

.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 {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

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

/* ============================================
   Interactive Elements
   ============================================ */

.slider-container {
  position: relative;
  margin: var(--space-xl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-controls {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-sm);
  z-index: 10;
}

.slider-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition-fast);
}

.slider-btn.active {
  background: white;
  width: 30px;
  border-radius: 6px;
}

.air-quality-meter {
  background: linear-gradient(135deg, var(--color-glacier-blue) 0%, var(--color-air-green) 100%);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  text-align: center;
  box-shadow: var(--shadow-airy);
}

.meter-display {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-primary);
  margin: var(--space-lg) 0;
  font-family: var(--font-heading);
}

.meter-label {
  font-size: 1.2rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.heat-map {
  width: 100%;
  max-width: 800px;
  margin: var(--space-xl) auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.cross-section {
  width: 100%;
  max-width: 600px;
  margin: var(--space-xl) auto;
  display: block;
  border-radius: var(--radius-md);
}

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

.site-footer {
  background: var(--color-silver-mist);
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xxl);
  border-top: 1px solid var(--color-border);
}

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

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

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}

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

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: var(--color-text-light);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

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

.privacy-popup {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  max-width: 400px;
  background: white;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  transform: translateY(150%);
  transition: transform var(--transition-smooth);
  border: 1px solid var(--color-border);
}

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

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

.popup-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

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

.popup-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.popup-btn {
  flex: 1;
  min-width: 100px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

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

.popup-btn-accept:hover {
  background: var(--color-sky-blue);
}

.popup-btn-decline {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid var(--color-border);
}

.popup-btn-decline:hover {
  background: var(--color-glacier-blue);
}

/* ============================================
   Maps
   ============================================ */

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

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

.thank-you-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}

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

.thank-you-title {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

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

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

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

.error-code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--color-sky-blue);
  margin-bottom: var(--space-md);
  font-family: var(--font-heading);
}

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

.error-description {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

/* ============================================
   Policy Pages
   ============================================ */

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

.policy-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: var(--space-lg);
  color: var(--color-primary);
}

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

.policy-section-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
  font-family: var(--font-heading);
}

.policy-text {
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.policy-list {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

.policy-list li {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

/* ============================================
   Products Page
   ============================================ */

.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: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-airy);
  transition: var(--transition-smooth);
  border: 1px solid var(--color-border);
}

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

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

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

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

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(253, 253, 254, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: var(--space-lg);
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--color-border);
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .burger-toggle {
    display: flex;
  }
  
  .hero-section {
    min-height: 500px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .image-gallery {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .privacy-popup {
    max-width: calc(100% - var(--space-md) * 2);
    right: var(--space-md);
    left: var(--space-md);
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .section-spacing {
    padding: var(--space-lg) 0;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .hero-section {
    min-height: 400px;
  }
  
  .form-container {
    padding: var(--space-lg);
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .image-gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  .section-container {
    padding: var(--space-md) var(--space-sm);
  }
  
  .hero-section {
    padding: var(--space-lg) var(--space-sm);
  }
}

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

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

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

@keyframes airflow {
  0%, 100% {
    transform: translateX(0) translateY(0);
    opacity: 0.3;
  }
  50% {
    transform: translateX(10px) translateY(-10px);
    opacity: 0.6;
  }
}

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

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

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

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

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

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

.hidden {
  display: none;
}

.visible {
  display: block;
}

