/* ============================================
   BOTANICAL LABORATORY THEME - CSS VARIABLES
   ============================================ */

:root {
  /* Color Palette - Digital Greenhouse */
  --color-canvas: #FAFAFA;
  --color-forest: #2A3B2F;
  --color-sprout: #8FB339;
  --color-parchment: #E0D7C6;
  --color-white: #FFFFFF;
  --color-black: #000000;
  --color-text: #1A1A1A;
  --color-text-light: #666666;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Playfair Display', 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;
  --section-padding: 4rem 1rem;
  
  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 20px rgba(143, 179, 57, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Grid Pattern */
  --grid-size: 20px;
}

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

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

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

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

/* Blueprint Grid Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(42, 59, 47, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 59, 47, 0.03) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  pointer-events: none;
  z-index: 0;
}

/* Magnifier Cursor Effect */
body.magnifier-active {
  cursor: none;
}

.magnifier-cursor {
  position: fixed;
  width: 60px;
  height: 60px;
  border: 2px solid var(--color-sprout);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  display: none;
  background: radial-gradient(circle, rgba(143, 179, 57, 0.1) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(143, 179, 57, 0.3);
}

body.magnifier-active .magnifier-cursor {
  display: block;
}

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

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

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

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

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

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

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header-container {
  position: relative;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(42, 59, 47, 0.1);
  padding: var(--space-md) var(--space-lg);
}

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

.brand-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-forest);
  letter-spacing: -0.02em;
  flex: 1;
}

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

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

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

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

/* Burger Menu */
.burger-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 10001;
  position: absolute;
  right: var(--space-lg);
  top: 50%;
  transform: translateY(-50%);
}

.burger-icon {
  width: 24px;
  height: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-forest);
  border-radius: 2px;
  transition: all var(--transition-base);
}

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

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

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

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: var(--color-white);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  transition: right var(--transition-base);
  padding: var(--space-xxl) var(--space-lg);
  overflow-y: auto;
}

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

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.mobile-nav-link {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(42, 59, 47, 0.1);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.mobile-overlay.active {
  display: block;
  opacity: 1;
}

@media (max-width: 1023px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-nav {
    display: block;
  }
}

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

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
  position: relative;
  z-index: 1;
}

/* ============================================
   HERO BANNERS (FULL-WIDTH)
   ============================================ */

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

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  width: 100%;
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
}

.hero-text-wrapper {
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(15px);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: var(--space-lg);
  color: var(--color-forest);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}

.hero-image-below {
  display: none;
}
.footer-section p{color: white;}
.footer-bottom p{color: white;}
/* Growth Scroll Animation */
.growth-line {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 0;
  background: linear-gradient(to top, var(--color-sprout), transparent);
  transition: height var(--transition-slow);
  z-index: 1;
}

/* ============================================
   SECTIONS
   ============================================ */

.content-section {
  padding: var(--section-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  text-align: center;
}

.content-section > * {
  text-align: left;
}

.content-section .section-title {
  text-align: center;
}

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

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

/* Floating Layers Effect */
.floating-container {
  position: relative;
  margin: var(--space-xl) 0;
}

.floating-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-slow), box-shadow var(--transition-base);
}

.floating-image:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
}

.floating-image img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

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

/* Bloom Effect on Hover */
.illustration-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.illustration-card::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 179, 57, 0.1), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

.illustration-card:hover::before {
  width: 300%;
  height: 300%;
}

.illustration-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.illustration-card:hover img {
  transform: scale(1.08);
}

/* Grid Layouts */
.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) auto;
  max-width: 1000px;
  align-items: center;
}

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

.grid-four {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) auto;
  max-width: 1000px;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  border: 2px solid var(--color-forest);
  background: var(--color-white);
  color: var(--color-forest);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  margin-top: 10px;
}

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

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

.btn-primary:hover {
  background: var(--color-sprout);
  color: black;
  border-color: var(--color-sprout);
}

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

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

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

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

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

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

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-sprout);
}

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

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

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

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

.map-container {
  margin: var(--space-xxl) 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

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

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

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

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

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

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

/* ============================================
   SPECIMEN ARCHIVE (Library)
   ============================================ */

.archive-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.filter-btn {
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid rgba(42, 59, 47, 0.3);
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

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

.specimen-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base), opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
  transform: translateY(0);
}

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

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

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

.specimen-latin {
  font-style: italic;
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: var(--space-sm);
}

.specimen-notes {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   PROCESS ANATOMY (The Lab)
   ============================================ */

.process-timeline {
  position: relative;
  padding: var(--space-xxl) 0;
}

.process-step {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xxl);
  align-items: center;
  position: relative;
}

.process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.process-visual {
  flex: 1;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.process-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.process-details {
  flex: 1;
  padding: var(--space-lg);
  background: rgba(224, 215, 198, 0.2);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: var(--color-sprout);
  color: var(--color-white);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

/* ============================================
   PRINT CONFIGURATOR
   ============================================ */

.configurator-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.config-preview {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: var(--space-lg);
}

.preview-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

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

.option-group {
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.option-label {
  font-weight: 600;
  color: var(--color-forest);
  margin-bottom: var(--space-md);
  display: block;
}

.option-select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid rgba(42, 59, 47, 0.2);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  background: var(--color-white);
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.option-select:focus {
  outline: none;
  border-color: var(--color-sprout);
}

.price-display {
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-sprout);
  text-align: center;
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: rgba(143, 179, 57, 0.1);
  border-radius: var(--radius-md);
}

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

.footer-container {
  background: var(--color-forest);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-inner {
  max-width: var(--container-max);
  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-size: 1.1rem;
}

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

.footer-link {
  color: rgba(250, 250, 250, 0.8);
  font-size: 0.9rem;
  transition: color var(--transition-base);
}

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

.footer-contact {
  color: rgba(250, 250, 250, 0.8);
  font-size: 0.9rem;
  line-height: 1.8;
}

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

/* ============================================
   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: 768px) {
  :root {
    --section-padding: 3rem 1rem;
  }
  
  .hero-section {
    min-height: 50vh;
  }
  
  .hero-text-wrapper {
    padding: var(--space-lg);
  }
  
  .grid-two,
  .grid-three,
  .grid-four {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column !important;
  }
  
  .configurator-layout {
    grid-template-columns: 1fr;
  }
  
  .config-preview {
    position: static;
  }
  
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 2rem 1rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }
  
  .header-container {
    padding: var(--space-sm) var(--space-md);
  }
  
  .brand-text {
    font-size: 1.25rem;
  }
  
  .hero-text-wrapper {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  :root {
    --section-padding: 1.5rem 0.75rem;
  }
  
  .header-container {
    padding: var(--space-sm);
  }
}

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

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  right: var(--space-lg);
  max-width: 500px;
  background: var(--color-white);
  border: 2px solid var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
}

.privacy-popup.active {
  display: block;
}

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

.privacy-popup-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: flex-end;
}

/* ============================================
   THANK YOU & 404 PAGES
   ============================================ */

.message-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) var(--space-lg);
  text-align: center;
}

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

.message-icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  color: var(--color-sprout);
}

/* ============================================
   PARALLAX EFFECTS
   ============================================ */

.parallax-layer {
  transition: transform var(--transition-slow);
}

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

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

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

