/* ============================================
   CSS Variables - Design System
   ============================================ */
:root {
  /* Colors */
  --color-bg-main: #EEF1F5;
  --color-accent-cool: #C9D9E4;
  --color-text-dark: #4A5058;
  --color-accent-warm: #D7C89A;
  --color-metallic: #D0D3D4;
  --color-white: #FFFFFF;
  --color-black: #000000;
  
  /* Typography */
  --font-heading: 'Work Sans', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-accent: 'Rajdhani', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Layout */
  --container-max: 1200px;
  --container-padding: 1.5rem;
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --transition-slow: 0.8s ease;
  
  /* Shadows */
  --shadow-light: 0 2px 8px rgba(74, 80, 88, 0.08);
  --shadow-medium: 0 4px 16px rgba(74, 80, 88, 0.12);
  --shadow-window: 0 8px 24px rgba(74, 80, 88, 0.15);
  
  /* Borders */
  --border-thin: 1px solid var(--color-accent-cool);
  --border-medium: 2px solid var(--color-text-dark);
}

/* ============================================
   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-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-main);
  overflow-x: hidden;
}

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

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

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

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

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

/* ============================================
   Container & Layout
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

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

.flex {
  display: flex;
}

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

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

/* ============================================
   Header
   ============================================ */
.site-header {
  background-color: var(--color-white);
  border-bottom: var(--border-thin);
  padding: var(--space-md) 0;
  position: relative;
  transition: transform var(--transition-medium);
}

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

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-text {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  padding: var(--space-sm) 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent-warm);
  transition: width var(--transition-fast);
}

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

.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1001;
}

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

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

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

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

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-main) 0%, var(--color-accent-cool) 100%);
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(238, 241, 245, 0.7) 0%,
    rgba(201, 217, 228, 0.5) 100%
  );
  z-index: 2;
}

.hero-geometric {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.geometric-line {
  position: absolute;
  background-color: var(--color-white);
  opacity: 0.3;
}

.geometric-line.horizontal {
  width: 100%;
  height: 1px;
}

.geometric-line.vertical {
  width: 1px;
  height: 100%;
}

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

.hero-title {
  color: var(--color-text-dark);
  margin-bottom: var(--space-lg);
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

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

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background-color: var(--color-text-dark);
  color: var(--color-white);
  border: var(--border-medium);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-medium);
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background-color: var(--color-accent-warm);
  color: var(--color-text-dark);
  border-color: var(--color-accent-warm);
}

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

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

/* ============================================
   Content Sections
   ============================================ */
.content-block {
  background-color: var(--color-white);
  padding: var(--space-xl);
  border: var(--border-thin);
  box-shadow: var(--shadow-light);
  transition: box-shadow var(--transition-fast);
}

.content-block:hover {
  box-shadow: var(--shadow-window);
}

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

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--color-accent-warm);
}

.image-frame {
  position: relative;
  overflow: hidden;
  border: var(--border-thin);
  background-color: var(--color-bg-main);
}

.image-frame img {
  width: 100%;
  height: auto;
  transition: transform var(--transition-medium);
}

.image-frame:hover img {
  transform: scale(1.05);
}

.image-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(201, 217, 228, 0.1) 0%, rgba(215, 200, 154, 0.1) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ============================================
   Product Cards
   ============================================ */
.product-card {
  background-color: var(--color-white);
  border: var(--border-thin);
  padding: var(--space-lg);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-medium);
  border-color: var(--color-accent-warm);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: var(--space-md);
  border: var(--border-thin);
}

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

.product-description {
  flex-grow: 1;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
  opacity: 0.8;
}

.product-price {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-top: auto;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
  margin-bottom: var(--space-lg);
}

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

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-text-dark);
  border-width: 2px;
}

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

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

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

.checkbox-label {
  font-size: 0.9rem;
  line-height: 1.5;
}

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

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

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

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

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

.footer-link {
  color: var(--color-metallic);
  transition: color var(--transition-fast);
}

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

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

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

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

.privacy-popup {
  background-color: var(--color-white);
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-xl);
  position: relative;
  border: var(--border-medium);
}

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

.popup-close:hover {
  color: var(--color-accent-warm);
}

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

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

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

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

/* ============================================
   Comparison Charts
   ============================================ */
.chart-container {
  background-color: var(--color-white);
  padding: var(--space-lg);
  border: var(--border-thin);
  margin: var(--space-lg) 0;
}

.chart-bar {
  height: 40px;
  background-color: var(--color-accent-cool);
  margin-bottom: var(--space-md);
  position: relative;
  border: var(--border-thin);
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  font-family: var(--font-accent);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.chart-bar:hover {
  background-color: var(--color-accent-warm);
}

.chart-label {
  position: absolute;
  left: var(--space-md);
  z-index: 1;
}

.chart-value {
  position: absolute;
  right: var(--space-md);
  z-index: 1;
}

/* ============================================
   Case Study Cards
   ============================================ */
.case-card {
  background-color: var(--color-white);
  border: var(--border-thin);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.case-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-thin);
}

.case-title {
  font-size: 1.25rem;
  margin: 0;
}

.case-savings {
  font-family: var(--font-accent);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent-warm);
}

.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: var(--space-md) 0;
}

.case-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: var(--border-thin);
}

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

.thank-you-content {
  max-width: 600px;
}

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

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

.error-code {
  font-family: var(--font-accent);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: var(--space-md);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: var(--shadow-medium);
    transition: right var(--transition-medium);
    z-index: 1000;
    gap: var(--space-md);
  }

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

  .burger-toggle {
      position: relative;
      top: 7px;
    display: flex;
  }

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

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

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

  .case-images {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
    --space-xxl: 2.5rem;
    --space-xl: 2rem;
  }

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

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

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

@media (max-width: 320px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 1.5rem;
  }

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

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

