:root {
  --container-max: 1392px; /* 1440 - 24*2 gutters */
  --gutter: 24px;
  --brand-dark: #0e2a36;
  --text-dark: #11232b;
  --badge-bg: rgba(17, 35, 43, 0.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text-dark);
  background: #F8FCFE;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* Bento frames with internal aurora */
.bento {
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  overflow: hidden;
  /* Static subtle gradient tint (no animated aurora) */
  background: linear-gradient(135deg,
              rgba(94, 209, 192, 0.05),
              rgba(234, 239, 131, 0.05));
}
.site-header.bento { 
  padding: 14px 24px; 
  margin-top: 24px; 
  margin-left: 32px; 
  margin-right: 32px; 
  background: white;
}
.hero.bento { 
  padding-top: 72px; 
  padding-bottom: 36px; 
  margin-top: 24px; 
  margin-left: 32px; 
  margin-right: 32px; 
  background: white;
}
.how { 
  margin-top: 32px; 
  margin-left: 32px; 
  margin-right: 32px; 
  padding-left: 8px; 
  padding-right: 8px; 
}
/* See for yourself */
.see { 
  margin-top: 40px; 
  margin-bottom: 40px; 
  margin-left: 32px; 
  margin-right: 32px; 
  padding-left: 8px; 
  padding-right: 8px; 
}
.see-head { text-align: left; }
.see-eyebrow { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 28px; letter-spacing: -0.01em; color: #1b3f4f; text-transform: uppercase; }
.see-title { margin: 6px 0 16px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 20px; color: #1b3f4f; }

.see-slider { position: relative; width: 100%; height: 512px; overflow: hidden; background: #ffffff; }
.see-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: calc(50% + var(--see-offset-x, 0px)) calc(50% + var(--see-offset-y, 0px)); user-select: none; pointer-events: none; transform: scale(var(--see-scale, 0.96)); transform-origin: center; }
.see-img--before { clip-path: inset(0 0 0 0); }
.see-img--after { clip-path: inset(50% 0 0 0); will-change: clip-path; z-index: 2; }

/* Divider line */
/* Horizontal divider for vertical interaction */
.see-divider { position: absolute; left: 0; right: 0; height: 1.5px; top: 50%; transform: translateY(-1px); background: #102E43; box-shadow: 0 0 0 1px #102E43 inset; pointer-events: none; z-index: 3; }

/* Draggable handle */
.see-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 36px; height: 36px; border-radius: 999px; border: 2px solid #102E43; background: #d6dadd; box-shadow: 0 2px 10px rgba(0,0,0,0.25); cursor: ns-resize; z-index: 4; }

/* Mobile: Horizontal slider (left to right) */
@media (max-width: 560px) {
  .see-img--after { clip-path: inset(0 50% 0 0); }
  
  /* Vertical divider for horizontal interaction */
  .see-divider { 
    left: 50%; 
    right: auto; 
    width: 1.5px; 
    height: 100%; 
    top: 0; 
    transform: translateX(-1px); 
  }
  
  /* Draggable handle for horizontal movement */
  .see-handle { 
    cursor: ew-resize; 
  }
}

/* Ensure proper initial positioning - no transitions for instant response */
.see-slider .see-divider,
.see-slider .see-handle {
  /* No transitions - instant movement for better UI responsiveness */
}
.see-handle::after { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(1); width: 10px; height: 10px; border-radius: 50%; background: #102E43; animation: pulseScale 1.6s ease-in-out infinite; }

@keyframes pulseScale {
  0%, 100% { transform: translate(-50%, -50%) scale(0.85); }
  50% { transform: translate(-50%, -50%) scale(1.25); }
}

/* Tighter height on small-height viewports */
@media (max-width: 960px) {
  .see-slider { height: 512px; }
}
@media (max-height: 600px) {
  .see-slider { height: 512px; }
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
  z-index: 2;
}
.header-actions { 
  display: flex; 
  align-items: center; 
  gap: 0; 
  position: relative;
  width: 50%;
  height: 100%;
  justify-content: flex-end;
  padding: 8px 0;
  margin: -8px 0;
}
.menu-toggle { 
  display: none; 
  width: 36px; 
  height: 36px; 
  border: none; 
  background: transparent; 
  padding: 0; 
  cursor: pointer; 
  position: relative;
  margin-left: auto;
}

.desktop-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.desktop-menu-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transition: transform 0.3s ease;
  display: block;
}


.menu-toggle-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  position: absolute;
  top: 24px; /* 24px margin top to match header bento */
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: calc(100% - 16px); /* 8px margin on each side */
  max-width: 1200px; /* Same max-width as header container */
  height: 75vh;
  background: #fff;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 0 0 24px 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  overflow: hidden;
}

.mobile-nav-overlay.active .mobile-nav-content {
  transform: translateX(-50%) translateY(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav-logo {
  height: 32px;
  width: auto;
}

.mobile-nav-close {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto; /* Aligns to the right, same as hamburger button */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-nav-close:hover {
  transform: scale(1.1);
  opacity: 0.8;
}

.mobile-nav-close-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.mobile-nav-close:hover .mobile-nav-close-icon {
  transform: rotate(90deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 24px;
  align-items: center; /* Center align the navigation links */
}

.mobile-nav a {
  text-decoration: none;
  color: #1b3f4f;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.01em;
  padding: 12px 0;
  transition: font-weight 300ms ease, color 300ms ease;
}

.mobile-nav a:hover {
  font-weight: 700;
  color: #0e2a36;
}

.brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--brand-dark);
  text-decoration: none;
  font-size: 22px;
}

.nav { display: flex; gap: 28px; justify-content: flex-end; }
.nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 18px;
  letter-spacing: 0.01em; /* 1% */
}

/* language toggle removed */

/* Hero */
.hero {
  text-align: center;
  padding-top: 64px;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  margin-right: 8px;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900; /* Black */
  font-size: 64px;
  line-height: 0.99; /* 99% */
  letter-spacing: 0.01em;
  margin: 28px 0 8px;
  color: #153543;
}

.hero-subtitle {
  font-family: 'Poppins', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 36px;
  letter-spacing: 0.03em; /* 3% */
  line-height: 0.75; /* 75% */
  margin: 0 0 28px;
  color: #1b3f4f;
}

.badges {
  display: flex;
  justify-content: center;
  align-items: center; /* vertical centering for separators */
  gap: 0;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500; /* Medium */
  font-size: 12px;
  line-height: auto;
  letter-spacing: 0.02em; /* 2% */
  padding: 0 24px; /* 24px padding on both sides for desktop */
  background: transparent;
}

.badges .badge { 
  position: relative;
  text-transform: uppercase;
}
.badges .badge:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -10px; /* positioned in the middle of the gap between badges */
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 30px;
  background-image: url('assets/hero-separator.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Materials strip inside hero */
.materials-strip {
  display: block;
  width: 100%;
  height: auto; /* show full image */
}
.materials-in-hero {
  display: block;
  width: 100%; /* exactly bento width at start */
  margin-left: 0;
  margin-right: 0;
  margin-top: 32px;
  transform: translateY(64px) scale(0.90);
  transform-origin: bottom center; /* grow upwards so bottom stays tucked */
  will-change: transform;
}

/* Animated aurora removed per spec (keep CSS lean) */

/* How we do it */
.how-head { position: relative; z-index: 1; text-align: left; }
.how-eyebrow { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; line-height: 0.93; color: #1b3f4f; text-transform: uppercase; }
.how-title { margin: 6px 0 16px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0; line-height: 0.75; color: #1b3f4f; }

.how-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  justify-content: center;
}

.how-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 16px 0 16px;
  box-shadow: -3px 3px 5.7px 1px rgba(16, 46, 67, 0.18);
  text-align: center;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
}
.how-media { aspect-ratio: 4 / 3; height: auto; border-radius: 14px; margin: 0 20px; background: repeating-conic-gradient(from 45deg, rgba(0,0,0,0.04) 0 15deg, rgba(0,0,0,0.02) 15deg 30deg); overflow: hidden; }
.how-media--img img { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 12px; display: block; margin: 0; }
.how-step { margin: 16px 20px 16px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 20px; letter-spacing: 0.05em; line-height: 0.75; color: #1b3f4f; }
.how-step .how-num { font-weight: 100; } /* important! */
.how-text { margin: 0 20px; font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 14px; line-height: 1.32; letter-spacing: -0.02em; color: #2a4754; }

/* responsive grid handled by auto-fit above; no fixed breakpoints needed */
/* Brands block */
.brands { 
  margin-top: 40px; 
  margin-bottom: 64px; 
  margin-left: 32px; 
  margin-right: 32px; 
  padding-left: 8px; 
  padding-right: 8px; 
}
.brands-head { text-align: left; }
.brands-title { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; line-height: 0.93; color: #1b3f4f; text-transform: uppercase; }
.brands-subtitle { margin: 6px 0 16px; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0; line-height: 0.95; color: #1b3f4f; }
.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 16px;
}

/* Mobile responsive - 3 brands per row */
@media (max-width: 768px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

/* Brand page model grid */
.models-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
.model-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: -2px 2px 5.7px 1px rgba(16, 46, 67, 0.05);
}
.model-card:hover {
  border: 1px solid rgba(16, 46, 67, 0.15);
  box-shadow: -3px 3px 5.7px 1px rgba(16, 46, 67, 0.15);
}
.model-media { aspect-ratio: 4 / 6; height: auto; border-radius: 8px; margin: 8px 8px; background: #f5f7f8; overflow: hidden; }
.model-media img { width: 100%; height: 100%; object-fit: fill; object-position: center; display: block; border-radius: 12px; }
.model-title { padding: 12px 12px 16px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 18px; color: #1b3f4f; text-align: center; }
.brand-card {
  display: grid;
  place-items: center;
  height: 68px;
  border: none;
  border-radius: 18px;
  background: #fff;
  color: #1b3f4f;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 300; /* Light */
  font-size: 20px;
  line-height: 0.95;
  letter-spacing: -0.02em; /* -2% */
  text-align: center;
  padding: 0 12px;
  box-shadow: -2px 2px 5.7px 1px rgba(16, 46, 67, 0.05);
}
.brand-card:hover {
  border: 1px solid rgba(16, 46, 67, 0.15);
  box-shadow: -3px 3px 5.7px 1px rgba(16, 46, 67, 0.15);
}

.brands-cta { display: none; }
.brands-helper { margin-top: 16px; text-align: left; font-family: 'Poppins', sans-serif; font-weight: 300; font-size: 18px; color: #2a4754; }
.brands-helper-btn {
  color: #1b3f4f;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; /* Light */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brands-helper-btn:hover {
  text-decoration: underline;
}
.btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #1b3f4f; color: #fff; text-decoration: none; font-family: 'Montserrat', sans-serif; font-weight: 700; }
.btn:hover { opacity: 0.9; }

/* Responsiveness */
@media (max-width: 960px) {
  .hero-title { font-size: 40px; }
  .hero-subtitle { font-size: 24px; line-height: 1; }
  .how-step { font-size: 20px; }
  .how-text { font-size: 18px; }
  /* intrinsic height will scale with width; no fixed height needed */
}

@media (max-width: 560px) {
  .nav { display: none; }
  .menu-toggle { display: inline-block; }
  
  /* Mobile brand page models grid - 2 columns */
  .models-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  /* Mobile checkout - de-containerized components */
  .checkout .product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 8px;
    box-sizing: border-box;
  }
  
  .checkout .thumb {
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    width: 100%;
    max-width: 400px;
  }
  
  .checkout .thumb-media {
    border-radius: 12px;
    background: repeating-conic-gradient(from 45deg, rgba(0,0,0,0.04) 0 15deg, rgba(0,0,0,0.02) 15deg 30deg);
  }
  
  .checkout .thumb-media img {
    border-radius: 12px;
  }
  
  .checkout .option-card {
    width: 100%;
    max-width: 400px;
  }
  
  .checkout .test-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 400px;
  }
  
  .checkout .actions {
    width: 80%;
    max-width: 400px;
    display: flex;
    justify-content: center;
  }
  
  /* Mobile checkout container - remove constraints */
  .container.checkout {
    margin: 0;
    padding: 0;
    max-width: none;
  }
  
  /* Mobile checkout head styling */
  .checkout .brands-head {
    padding-left: 16px;
  }
  .site-header.bento { margin-left: 8px; margin-right: 8px; }
  .hero.bento { margin-left: 8px; margin-right: 8px; }
  .how { margin-left: 8px; margin-right: 8px; padding-left: 4px; padding-right: 4px; }
  .brands { margin-left: 8px; margin-right: 8px; padding-left: 4px; padding-right: 4px; }
  .see { margin-left: 8px; margin-right: 8px; padding-left: 4px; padding-right: 4px; }
  .gallery { margin-left: 8px !important; margin-right: 8px !important; padding-left: 4px !important; padding-right: 4px !important; }
  .contact { margin-left: 8px !important; margin-right: 8px !important; padding-left: 4px !important; padding-right: 4px !important; }
  .materials-in-hero { transform: translateY(64px) scale(1.02); }
  .hero-title { 
    font-family: 'Montserrat', sans-serif;
    font-weight: 900; /* Black */
    font-size: 36px;
    line-height: 0.78; /* 78% */
    letter-spacing: 0; /* 0% */
  }
  .hero-title::before {
    content: "EVA FOAM\ASOFDEK\AMATERJALID";
    white-space: pre-line;
    font-size: 36px;
    line-height: 0.78;
    letter-spacing: 0;
  }
  .hero-title {
    font-size: 0; /* Hide original text on mobile */
  }
  .hero-subtitle { 
    font-family: 'Poppins', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 20px;
    line-height: 0.92; /* 92% */
    letter-spacing: 0.01em; /* 1% */
  }
  .badge { padding: 0 8px; } /* 8px padding for mobile */
  .badges .badge:not(:first-child)::before {
    background-image: url('assets/mobile-badge-separator.svg');
  }
  .how-grid { gap: 8px; } /* 8px gap between cards on mobile */
  .how .how-eyebrow::before {
    content: "KUIDAS SOFDEKI\ATELLIMINE KÄIB";
    white-space: pre-line;
    font-size: 20px;
    line-height: 0.93;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #1b3f4f;
    text-transform: uppercase;
  }
  .how .how-eyebrow {
    font-size: 0; /* Hide original text on mobile */
  }
  .brands-subtitle::before {
    content: "Meie andmebaasis on juba\Aüle 200 olemasoleva 3D mudeli";
    white-space: pre-line;
    font-size: 12px;
    line-height: 0.75;
    letter-spacing: 0;
    font-weight: 600;
    color: #1b3f4f;
  }
  .brands-subtitle {
    font-size: 0; /* Hide original text on mobile */
  }
  .brands-subtitle::before {
    line-height: 0.95; /* 95% line height for mobile */
  }
  .brand-card { 
    height: 40px; 
    font-size: 14px; 
    line-height: 0.95; /* 95% line height for mobile */
  }
  .how-step { font-size: 18px; }
  .how-text { font-size: 16px; }
  
  /* Mobile spacing for titles and subtitles */
  .how-eyebrow { margin-top: 32px; }
  .how-title { margin-bottom: 32px; }
  .brands-title { margin-top: 32px; }
  .brands-subtitle { margin-bottom: 32px; }
  .gallery-title { margin-top: 32px; }
  .gallery-subtitle { margin-bottom: 32px; }
  .contact-title { 
    margin-top: 32px; 
    font-size: 20px; 
    letter-spacing: 0.02em; 
    line-height: 0.93; 
  }
  .contact-subtitle { 
    margin-bottom: 32px; 
    font-size: 12px; 
    line-height: 0.75; 
  }
  .contact-form-grid {
    display: block !important;
  }
  .contact-form-column {
    display: block !important;
    width: 100% !important;
    margin-bottom: 20px !important;
  }
  .contact-form-column:last-child {
    margin-bottom: 0 !important;
  }
  .contact-form .form-group {
    width: 100%;
  }
  .contact-form input,
  .contact-form textarea {
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form-column .form-group {
    width: 100%;
    padding-bottom: 4px;
    margin-bottom: 16px;
  }
  .contact-form-column input,
  .contact-form-column textarea {
    width: 100%;
    box-sizing: border-box;
  }
  .contact-info {
    display: none !important;
  }
  .contact-form-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1b3f4f;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 4px;
  }
  .contact-form-btn:hover {
    text-decoration: underline;
  }
  .contact-form-arrow {
    transition: transform 0.3s ease;
  }
  .contact-form-btn:hover .contact-form-arrow {
    transform: translateX(4px);
  }
  .footer-logo {
    height: 32px;
    width: auto;
    margin: 0 0 8px !important;
  }
  .footer-column:first-child ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
   .footer-column:nth-child(2) ul {
     display: flex;
     flex-direction: column;
     gap: 8px;
   }
  .gallery-cta-btn {
    font-size: 18px;
  }
  .see-eyebrow { 
    margin-top: 32px; 
    font-size: 20px; 
    letter-spacing: 0.02em; 
    line-height: 0.93; 
  }
  .see-title { 
    margin-bottom: 32px; 
    font-size: 12px; 
    line-height: 0.75; 
  }
  
  /* Mobile brands helper spacing */
  .brands-helper-title { margin-bottom: 8px; font-size: 14px; }
  .brands-helper-text { margin: 8px 0; font-size: 14px; }
  
  /* Mobile gallery page spacing */
  .gallery-page {
    margin-left: 8px !important;
    margin-right: 8px !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }
  
  /* Gallery load more button alignment */
  .gallery-load-more {
    text-align: left;
    margin-top: 24px;
  }
  
  /* intrinsic height will scale with width; no fixed height needed */
}

/* Gallery section */
.gallery { 
  margin-top: 40px; 
  margin-bottom: 64px; 
  margin-left: 32px; 
  margin-right: 32px; 
  padding-left: 8px; 
  padding-right: 8px; 
}
.gallery-head { text-align: left; margin-bottom: 32px; }
.gallery-title { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.02em; line-height: 0.93; color: #1b3f4f; text-transform: uppercase; }
.gallery-subtitle { margin: 6px 0 0; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 12px; letter-spacing: 0; line-height: 0.75; color: #1b3f4f; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  overflow: hidden;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 4 / 3;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 10;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-cta {
  position: relative;
  margin-top: 24px;
  text-align: left;
}

.gallery-cta-btn {
  color: #1b3f4f;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 300; /* Light */
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gallery-cta-btn:hover {
  text-decoration: underline;
}


/* Image modal */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.gallery-modal.active {
  opacity: 1;
  visibility: visible;
}

.gallery-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active .gallery-modal-content {
  transform: scale(1);
}

.gallery-modal img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Desktop modal optimization */
@media (min-width: 768px) {
  .gallery-modal-content {
    max-width: 80vw;
    max-height: 80vh;
    min-width: 400px;
    min-height: 300px;
  }
  
  .gallery-modal img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
  }
}

.gallery-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.gallery-modal-close:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Responsive gallery */
@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 12px;
    padding: 16px;
  }
  
  .gallery-title { font-size: 32px; }
  .gallery-subtitle { font-size: 18px; }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    gap: 8px;
    padding: 12px;
  }
  
  .gallery-title { font-size: 28px; }
  .gallery-subtitle { font-size: 16px; }
}

/* Small-height screens (e.g., 1280x585) - tighten spacing and slightly reduce type */
@media (max-height: 600px) {
  .site-header.bento { margin-top: 12px; }
  .hero.bento { padding-top: 40px; padding-bottom: 20px; }
  .materials-in-hero { transform: translateY(48px) scale(0.96); }

  .nav a, .lang-toggle { font-size: 16px; }
  .hero-title { font-size: 52px; }
  .hero-subtitle { font-size: 30px; line-height: 1; }
  .badge { font-size: 18px; }

  .how-eyebrow { font-size: 34px; }
  .how-title { font-size: 18px; }
  .how-step { font-size: 22px; }
  .how-text { font-size: 18px; }

  .brands-title { font-size: 34px; }
  .brands-subtitle { font-size: 18px; }
  .brand-card { height: 64px; }
  
  .gallery-title { font-size: 34px; }
  .gallery-subtitle { font-size: 18px; }
}

/* Contact Section */
.contact { 
  margin-top: 40px; 
  margin-bottom: 64px; 
  margin-left: 32px; 
  margin-right: 32px; 
  padding-left: 8px; 
  padding-right: 8px; 
}
.contact-head { text-align: left; margin-bottom: 32px; }
.contact-title { margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 40px; letter-spacing: -0.02em; line-height: 1; color: #1b3f4f; text-transform: uppercase; }
.contact-subtitle { margin: 6px 0 0; font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0; color: #1b3f4f; }

.contact-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 32px;
  background: #ffffff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.contact-item h4 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #1b3f4f;
}

.contact-icon {
  flex-shrink: 0;
}

.contact-item p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #2a4754;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}


.contact-form-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

@media (min-width: 561px) {
  .menu-toggle {
    display: none !important;
  }
  
  .desktop-menu-toggle {
    display: block !important;
  }
  
  .see-head,
  .brands-head,
  .how-head {
    margin-bottom: 32px;
  }
  
  h4.brands-helper-title {
    margin-top: 24px;
    margin-bottom: 0px;
  }
  
  p.brands-helper-text {
    margin-top: 0;
    margin-bottom: 24px;
  }
  
  .contact-form-btn {
    color: #1b3f4f;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Light */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
  }
  
  .contact-form-btn:hover {
    text-decoration: underline;
  }
  
  .contact-form-arrow {
    stroke: #1b3f4f;
  }
  
  .nav {
    display: flex;
    flex-direction: row;
    gap: 32px;
    align-items: center;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1000;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }
  
  .header-actions:hover .nav,
  .nav:hover {
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav a {
    text-transform: uppercase;
    white-space: nowrap;
    transform: translateX(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    color: #1b3f4f;
  }
  
  .nav a:hover {
    color: #0e2a36;
  }
  
  .header-actions:hover .nav a,
  .nav:hover a {
    transform: translateX(0);
    opacity: 1;
  }
  
  .header-actions:hover .nav a:nth-child(1),
  .nav:hover a:nth-child(1) { transition-delay: 0.05s; }
  .header-actions:hover .nav a:nth-child(2),
  .nav:hover a:nth-child(2) { transition-delay: 0.1s; }
  .header-actions:hover .nav a:nth-child(3),
  .nav:hover a:nth-child(3) { transition-delay: 0.15s; }
  .header-actions:hover .nav a:nth-child(4),
  .nav:hover a:nth-child(4) { transition-delay: 0.2s; }
  .header-actions:hover .nav a:nth-child(5),
  .nav:hover a:nth-child(5) { transition-delay: 0.25s; }
  
  .desktop-menu-opened-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .header-actions:hover .nav .desktop-menu-opened-icon,
  .nav:hover .desktop-menu-opened-icon {
    transform: rotate(-90deg);
  }
  
  .contact-form-column:nth-child(3) {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .contact-form-column:nth-child(3) .form-group {
    flex-grow: 1;
  }

  .contact-form-column:nth-child(3) .contact-form-btn {
    margin-top: auto;
  }
}


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

.form-group label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #1b3f4f;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid #e1e5e7;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  color: #2a4754;
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1b3f4f;
  box-shadow: 0 0 0 3px rgba(27, 63, 79, 0.1);
}

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

.btn--contact {
  background: #1b3f4f;
  color: #fff;
  padding: 14px 32px;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  align-self: flex-start;
}

.btn--contact:hover {
  background: #0e2a36;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 63, 79, 0.3);
}

/* Footer */
.footer {
  background: #102E43;
  color: #fff;
  padding: 48px 0 24px;
  margin-top: 64px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin: 0 0 16px;
}

.footer-column:first-child ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}
 .footer-column:nth-child(2) ul {
   display: flex;
   flex-direction: column;
   gap: 8px;
 }

.footer-description {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
}

  .footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    justify-self: start;
  }

.footer-column h4 {
  margin: 0 0 16px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 8px;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: #fff;
}

.contact-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.contact-link:hover {
  color: #fff;
}

.contact-text {
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
}

/* Copy Notification */
.copy-notification {
  position: absolute;
  background: #1b3f4f;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  pointer-events: none;
  white-space: nowrap;
}

.copy-notification.show {
  transform: translateY(-40px);
  opacity: 1;
}

.social-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  padding: 0;
}

.social-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:link,
.footer-bottom a:visited {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 1);
}

.footer-bottom a:active {
  color: rgba(255, 255, 255, 0.6);
}

/* Gallery Page Styles */
.gallery-page {
  margin: 40px var(--gutter) 64px;
}

.gallery-page-head {
  text-align: left;
  margin-bottom: 32px;
}

.gallery-page-title {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #1b3f4f;
  text-transform: uppercase;
}

.gallery-page-subtitle {
  margin: 6px 0 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0;
  color: #1b3f4f;
}

.gallery-page-description {
  margin: 16px 0 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  color: #2a4754;
  max-width: 600px;
}

.gallery-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 2px solid #e1e5e7;
  border-radius: 999px;
  background: #fff;
  color: #2a4754;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: #1b3f4f;
  color: #1b3f4f;
}

.filter-btn.active {
  background: #1b3f4f;
  border-color: #1b3f4f;
  color: #fff;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.gallery-page-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.gallery-page-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.gallery-page-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-page-item:hover img {
  transform: scale(1.05);
}

.gallery-page-item-content {
  padding: 20px;
}

.gallery-page-item-title {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #1b3f4f;
}

.gallery-page-item-description {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.4;
  color: #2a4754;
}

.gallery-load-more {
  text-align: left;
  margin-top: 32px;
}

.btn--load-more {
  background: #1b3f4f;
  color: #fff;
  padding: 12px 32px;
  border: none;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn--load-more:hover {
  background: #0e2a36;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 63, 79, 0.3);
}

.btn--load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive gallery page */
@media (max-width: 960px) {
  .gallery-page-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
  
  .gallery-page-title { font-size: 32px; }
  .gallery-page-subtitle { font-size: 18px; }
  .gallery-page-description { font-size: 16px; }
}

@media (max-width: 560px) {
  .gallery-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gallery-page-title { font-size: 28px; }
  .gallery-page-subtitle { font-size: 16px; }
  .gallery-page-description { font-size: 14px; }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Large screens - fix centering issue */
@media (min-width: 1441px) {
  .site-header.bento,
  .hero.bento {
    margin-left: auto;
    margin-right: auto;
    max-width: calc(var(--container-max) - 64px);
  }
  
  .how,
  .brands,
  .see,
  .gallery,
  .contact {
    margin-left: auto;
    margin-right: auto;
    max-width: calc(var(--container-max) - 64px);
  }
}

/* Responsive contact and footer */
@media (max-width: 960px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .contact-title { font-size: 32px; }
  .contact-subtitle { font-size: 18px; }
}

@media (max-width: 560px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .contact-title { font-size: 28px; }
  .contact-subtitle { font-size: 16px; }
  
  .contact-content {
    padding: 24px;
  }
  
  /* Mobile see section */
  .see-slider { height: 400px; }
  .see-img { object-fit: contain; }
}

