/* ============================================
   GENERATIVE LOOP - Algorithmic Minimalism
   Wireframe Tech & Soft Geometry Design
   ============================================ */

:root {
  /* Color Palette - Synthetic Natural */
  --color-base-dark: #1A1A1A;
  --color-base-light: #E0F2F1;
  --color-primary: #B19CD9;
  --color-primary-alt: #FF7F50;
  --color-accent: #F4D03F;
  --color-text-primary: #1A1A1A;
  --color-text-secondary: #4A4A4A;
  --color-text-light: #E0F2F1;
  --color-bg-primary: #FFFFFF;
  --color-bg-secondary: #F8F8F8;
  --color-bg-dark: #1A1A1A;
  
  /* Typography */
  --font-header: 'Syne', sans-serif;
  --font-body: 'JetBrains Mono', 'Courier New', monospace;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 50px;
  
  /* Shadows - Neomorphism */
  --shadow-soft: 8px 8px 16px rgba(0, 0, 0, 0.1), -8px -8px 16px rgba(255, 255, 255, 0.8);
  --shadow-inset: inset 4px 4px 8px rgba(0, 0, 0, 0.1), inset -4px -4px 8px rgba(255, 255, 255, 0.8);
  --shadow-elevated: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 0 20px rgba(177, 156, 217, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid */
  --grid-gap: 1.5rem;
  --container-max: 1200px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

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

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

/* ============================================
   TYPOGRAPHY
   ============================================ */

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

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

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
}

h3 {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

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

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

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

a:hover {
  color: var(--color-primary-alt);
}

/* ============================================
   GRID SYSTEM - Visible Graph Paper
   ============================================ */

.grid-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
}

.grid-pattern {
  background-image: 
    linear-gradient(rgba(177, 156, 217, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(177, 156, 217, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
  background: var(--color-bg-primary);
  border-bottom: 1px solid rgba(177, 156, 217, 0.2);
  padding: var(--space-md) 0;
  position: relative;
  z-index: 1000;
}

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

.header-container > * {
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-header);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 700;
  color: var(--color-text-primary);
}

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

.nav-menu li a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.nav-menu li a:hover {
  background: rgba(177, 156, 217, 0.1);
}

/* Burger Menu */
.burger-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 1001;
  order: 3;
}

.burger-icon {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  position: relative;
  transition: all var(--transition-base);
}

.burger-icon::before,
.burger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.burger-icon::before {
  top: -8px;
}

.burger-icon::after {
  bottom: -8px;
}

.burger-toggle.active .burger-icon {
  background: transparent;
}

.burger-toggle.active .burger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.burger-toggle.active .burger-icon::after {
  bottom: 0;
  transform: rotate(-45deg);
}

/* Mobile Navigation */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-bg-primary);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: var(--space-xxl) var(--space-lg);
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

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

.mobile-nav-menu {
  list-style: none;
  margin-top: var(--space-xl);
}

.mobile-nav-menu li {
  margin-bottom: var(--space-md);
}

.mobile-nav-menu li a {
  display: block;
  padding: var(--space-md);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.mobile-nav-menu li a:hover {
  background: rgba(177, 156, 217, 0.1);
}


/* ============================================
   HERO BANNER - Full Width
   ============================================ */

.hero-banner {
  width: 100vw;
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

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

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
}

.hero-title {
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

/* ============================================
   SECTION STYLES
   ============================================ */

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

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
  width: 100%;
}

.content-section .grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title {
  position: relative;
  display: inline-block;
  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-primary-alt));
  border-radius: var(--radius-pill);
}

.section-description {
  max-width: 700px;
  margin: var(--space-md) auto 0;
  color: var(--color-text-secondary);
}

/* Grid Layouts */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.grid-item {
  background: var(--color-bg-secondary);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.grid-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-alt));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

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

.grid-item:hover::before {
  transform: scaleX(1);
}

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

.two-column-image {
  max-height: 350px;
  object-fit: cover;
}

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

.grid-item-text {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Two Column Layout */
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 100%;
}

.two-column-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
}

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

/* ============================================
   BUTTONS - Neomorphism
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-soft);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  margin-top: 10px;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-alt));
  color: var(--color-text-light);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(177, 156, 217, 0.5);
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-xl);
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

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

.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(177, 156, 217, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--color-bg-primary);
  transition: all var(--transition-base);
}

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

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
}

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

/* ============================================
   PRODUCTS
   ============================================ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  width: 100%;
  max-width: 100%;
  justify-items: center;
}

.product-card {
  background: var(--color-bg-secondary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all var(--transition-base);
}

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

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

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

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

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

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

/* ============================================
   MAPS
   ============================================ */

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

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

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: var(--space-xxl);
}

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

.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-text-light);
  margin-bottom: var(--space-md);
  font-size: 1rem;
}

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

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

.footer-menu li a {
  color: rgba(224, 242, 241, 0.8);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

.footer-menu li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(224, 242, 241, 0.2);
  font-size: 0.85rem;
  color: rgba(224, 242, 241, 0.6);
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-nav,
  .mobile-nav-overlay {
    display: block;
  }
  
  .two-column {
    grid-template-columns: 1fr;
  }
  
  .two-column-image {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .burger-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    padding: var(--space-lg) var(--space-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    padding: 0 var(--space-sm);
  }
  
  .grid-container {
    padding: 0 var(--space-sm);
  }
  
  .form-container {
    padding: var(--space-lg);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }
  
  .hero-banner {
    min-height: 50vh;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

/* SVG Path Animation Container */
.svg-path-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   PRIVACY POPUP
   ============================================ */

.privacy-popup {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-md);
  right: var(--space-md);
  max-width: 500px;
  background: var(--color-bg-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  z-index: 10000;
  padding: var(--space-lg);
  border: 2px solid var(--color-primary);
  animation: slideUp 0.4s ease-out;
}

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

.privacy-popup-content h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.25rem;
}

.privacy-popup-content p {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
}

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

.privacy-popup-buttons .btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
}

@media (max-width: 480px) {
  .privacy-popup {
    left: var(--space-sm);
    right: var(--space-sm);
    padding: var(--space-md);
  }
  
  .privacy-popup-buttons {
    flex-direction: column;
  }
  
  .privacy-popup-buttons .btn {
    width: 100%;
  }
}

