/* ========================================
   Dutch Ergonomic Productivity Design System
   ======================================== */

:root {
  /* Colors */
  --color-primary: #2c6e49;
  --color-secondary: #f4f1de;
  --color-arctic-white: #F6F7F8;
  --color-graphite-slate: #2F3337;
  --color-dutch-sky-blue: #9DB7D0;
  --color-soft-steel-grey: #C8CFD6;
  --color-warm-oak: #C19A6B;
  --color-muted-sage: #AEBFAA;
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Besley', 'Charter', 'Sentinel', serif;
  
  /* 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: 12px;
  --radius-xl: 16px;
  --border-thin: 1px solid var(--color-soft-steel-grey);
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(47, 51, 55, 0.08);
  --shadow-md: 0 4px 12px rgba(47, 51, 55, 0.12);
  --shadow-lg: 0 8px 24px rgba(47, 51, 55, 0.16);
  
  /* Transitions */
  --transition-fast: 0.3s ease;
  --transition-medium: 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;
    overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-graphite-slate);
  background-color: var(--color-arctic-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

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

a {
  color: var(--color-dutch-sky-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-graphite-slate);
}

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

/* ========================================
   Header & Navigation
   ======================================== */

.site-header {
  background: var(--color-arctic-white);
  border-bottom: var(--border-thin);
  padding: var(--space-md) var(--space-lg);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-medium);
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-graphite-slate);
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.main-nav {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-graphite-slate);
  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: var(--color-dutch-sky-blue);
  transition: width var(--transition-fast);
}

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

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

.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-arctic-white) 0%, var(--color-soft-steel-grey) 100%);
  padding: var(--space-xxl) var(--space-lg);
  overflow: hidden;
}

/* Background images for hero sections (except index.html) */
body:not(.page-index) .hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.4;
}

body:not(.page-index) .hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 247, 248, 0.7);
  z-index: 1;
}

/* Page-specific background images */
.page-ergonomics .hero-section::before {
  background-image: url('../img/ergonomic-home-office-furniture-in-the-netherlands__42448.webp');
}

.page-products .hero-section::before {
  background-image: url('../img/ergonomic-home-office-furniture-in-the-netherlands__42449.webp');
}

.page-workspace-plans .hero-section::before {
  background-image: url('../img/plain-blank-ergonomic-home-office-furniture-in-the__42446.webp');
}

.page-contact .hero-section::before {
  background-image: url('../img/ergonomic-home-office-furniture-in-the-netherlands__42450.webp');
}

.page-thank-you .hero-section::before {
  background-image: url('../img/ergonomic-home-office-furniture-in-the-netherlands__42451.webp');
}

.page-404 .hero-section::before {
  background-image: url('../img/plain-blank-ergonomic-home-office-furniture-in-the__42447.webp');
}

.page-privacy .hero-section::before,
.page-terms .hero-section::before,
.page-cookies .hero-section::before,
.page-return .hero-section::before {
  background-image: url('../img/ergonomic-home-office-furniture-in-the-netherlands__42452.webp');
}

/* Responsive adjustments for background images */
@media (max-width: 768px) {
  body:not(.page-index) .hero-section::before,
  .page-thank-you .thank-you-section::before,
  .page-404 .error-page::before {
    opacity: 0.3;
  }

  body:not(.page-index) .hero-section::after,
  .page-thank-you .thank-you-section::after,
  .page-404 .error-page::after {
    background: rgba(246, 247, 248, 0.8);
  }
}

@media (max-width: 480px) {
  body:not(.page-index) .hero-section::before,
  .page-thank-you .thank-you-section::before,
  .page-404 .error-page::before {
    background-size: cover;
    background-position: center;
    opacity: 0.25;
  }

  body:not(.page-index) .hero-section::after,
  .page-thank-you .thank-you-section::after,
  .page-404 .error-page::after {
    background: rgba(246, 247, 248, 0.85);
  }
}

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

.hero-title {
  margin-bottom: var(--space-lg);
  color: var(--color-graphite-slate);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-graphite-slate);
  max-width: 700px;
  margin: 0 auto var(--space-xl);
  opacity: 0.8;
}

.hero-banner {
  width: 100%;
  max-width: var(--max-width);
  margin: var(--space-lg) auto 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

/* ========================================
   Content Sections
   ======================================== */

.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xxl) var(--space-lg);
}

.content-section {
  margin-bottom: var(--space-xxl);
}

.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: var(--color-dutch-sky-blue);
  border-radius: 2px;
}

/* ========================================
   Grid Layouts
   ======================================== */

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

.grid-item {
  background: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

/* ========================================
   Product Cards
   ======================================== */

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

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.product-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--color-soft-steel-grey);
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

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

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

.product-description {
  color: var(--color-graphite-slate);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

.product-specs {
  list-style: none;
  margin-bottom: var(--space-md);
}

.product-specs li {
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  color: var(--color-graphite-slate);
  opacity: 0.7;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-dutch-sky-blue);
  margin-top: var(--space-md);
}

/* ========================================
   Ergonomic Diagrams & Infographics
   ======================================== */

.diagram-container {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.diagram-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-dutch-sky-blue), var(--color-muted-sage));
}

.diagram-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-graphite-slate);
}

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

.diagram-item {
  padding: var(--space-md);
  background: var(--color-arctic-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-dutch-sky-blue);
}

/* ========================================
   Contact Form
   ======================================== */

.contact-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  margin: var(--space-xl) 0;
}

.form-grid {
  display: grid;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 500;
  margin-bottom: var(--space-sm);
  color: var(--color-graphite-slate);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: var(--border-thin);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-dutch-sky-blue);
  box-shadow: 0 0 0 3px rgba(157, 183, 208, 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-sm);
}

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

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-graphite-slate);
  opacity: 0.8;
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-dutch-sky-blue);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
  text-align: center;
}

.btn:hover {
  background: var(--color-graphite-slate);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-full {
  width: 100%;
}

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

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

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

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

.site-footer {
  background: var(--color-graphite-slate);
  color: var(--color-arctic-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

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

.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  list-style: none;
  margin-bottom: var(--space-lg);
}

.footer-link {
  color: var(--color-soft-steel-grey);
  transition: color var(--transition-fast);
}

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

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(200, 207, 214, 0.2);
  color: var(--color-soft-steel-grey);
  font-size: 0.9rem;
}

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

.privacy-popup {
  display: none;
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  max-width: 400px;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: slideUp var(--transition-medium);
}

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

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

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

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

.popup-text {
  font-size: 0.9rem;
  color: var(--color-graphite-slate);
  opacity: 0.8;
  margin-bottom: var(--space-md);
}

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

.btn-accept {
  background: var(--color-dutch-sky-blue);
  color: white;
}

.btn-decline {
  background: var(--color-soft-steel-grey);
  color: var(--color-graphite-slate);
}

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

.thank-you-section {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-thank-you .thank-you-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/ergonomic-home-office-furniture-in-the-netherlands__42451.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.4;
}

.page-thank-you .thank-you-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 247, 248, 0.7);
  z-index: 1;
}

.thank-you-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

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

.thank-you-title {
  margin-bottom: var(--space-md);
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--color-graphite-slate);
  opacity: 0.8;
  margin-bottom: var(--space-xl);
}

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

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

.page-404 .error-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../img/plain-blank-ergonomic-home-office-furniture-in-the__42447.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.4;
}

.page-404 .error-page::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(246, 247, 248, 0.7);
  z-index: 1;
}

.error-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-dutch-sky-blue);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

/* ========================================
   Workspace Plans
   ======================================== */

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

.layout-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

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

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

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

.layout-description {
  color: var(--color-graphite-slate);
  opacity: 0.8;
}

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

@media (max-width: 768px) {
  :root {
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-xxl: 3rem;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-medium);
    z-index: 1000;
    padding: var(--space-xxl) var(--space-lg);
    flex-direction: column;
    align-items: flex-start;
  }

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

  .nav-list {
    flex-direction: column;
    width: 100%;
    gap: var(--space-md);
  }

  .nav-link {
    width: 100%;
    padding: var(--space-md);
    border-bottom: var(--border-thin);
  }

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

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

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

  .privacy-popup {
    right: var(--space-md);
    left: var(--space-md);
    max-width: none;
  }

  .footer-menu {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .hero-section {
    min-height: 50vh;
    padding: var(--space-xl) var(--space-md);
  }

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

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

  .error-code {
    font-size: 4rem;
  }
}

@media (min-width: 320px) and (max-width: 480px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

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

