:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-alt: #efefed;
  --text: #1a1d23;
  --muted: #6b7280;
  --primary: #1a6bc4;
  --primary-light: #eef4fb;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  --radius: 16px;
  font-size: 16px;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 0);
  background-size: 24px 24px;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  min-height: 64px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  border-bottom-color: #e5e7eb;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.06);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.brand-logo {
  width: 48px;
  height: 48px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.brand-name {
  margin: 0;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: nowrap; /* prevent nav items from wrapping and increasing header height */
  white-space: nowrap;
  overflow-x: auto; /* allow horizontal scroll on very small screens instead of wrapping */
}

.site-nav a {
  color: var(--muted);
  font-weight: 600;
  position: relative;
  transition: color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
  left: 0;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.language-switcher button {
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.language-switcher button:hover {
  background: rgba(255,255,255,0.95);
  border-color: rgba(0,0,0,0.15);
}

main {
  margin: 0 auto;
  max-width: 1360px;
}

.hero-section {
  position: relative;
  min-height: 90vh;
  display: grid;
  align-items: center;
  padding: 2rem 1.5rem 3rem;
}

.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.carousel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: white;
  text-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.hero-copy .eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  color: #f9fafb;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.hero-copy p {
  margin: 0;
  max-width: 36rem;
  font-size: 1.05rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 24px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.hero-scroll::after {
  content: '';
  width: 2px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(6px); opacity: 0.3; }
}

.products-section {
  background: var(--surface);
}

.contact-section {
  background: var(--surface);
}

.product-category,
.about-copy,
.contact-grid {
  margin-bottom: 2rem;
}

.product-category h3 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.product-category p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
}

.product-card-image {
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.product-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}

.product-card:hover .product-card-image::after {
  opacity: 1;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
  filter: brightness(1.15) contrast(1.1);
}

.product-card-info {
  padding: 1rem 1.25rem 1.25rem;
}

.product-card-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card-info span {
  font-size: 0.9rem;
  color: var(--muted);
}

.about-copy p {
  margin: 0 0 1rem;
  max-width: 820px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.contact-card a {
  display: inline-block;
  color: var(--text);
  font-weight: 600;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--primary);
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Section enhancements ---------- */

.section {
  padding: 5rem 1.5rem;
}

.section-header {
  margin-bottom: 2.5rem;
}

.section-label {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::after {
  content: '';
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.section h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- About features ---------- */

.about-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.about-feature {
  background: var(--surface);
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.about-feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 0.75rem;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.about-feature h4 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
}

.about-feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  z-index: 50;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(15,23,42,0.85);
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 1rem 1.5rem;
  text-align: center;
  background: var(--surface-alt);
  color: var(--muted);
  border-top: 1px solid #e5e7eb;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-footer p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-header {
    padding: 0.75rem 1rem;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: -8px 0 30px rgba(0,0,0,0.08);
    padding: 5rem 2rem 2rem;
    transition: right 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 100;
    overflow-y: auto;
  }

  .site-nav.open {
    right: 0;
  }

  .site-nav a {
    padding: 0.8rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid #f0f0ee;
  }

  .site-nav a::after {
    display: none;
  }

  .about-features {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .hero-section {
    min-height: 70vh;
    padding-top: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

  .about-features {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .about-feature {
    padding: 1rem 0.75rem;
  }

  .about-feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .section {
    padding: 3rem 1rem;
  }
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(18, 18, 28, 0.96), rgba(0, 0, 0, 0.98));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.lightbox.open .lightbox-inner {
  transform: scale(1);
  opacity: 1;
}

.lightbox-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 1.25rem;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.lightbox.open .lightbox-bottom {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Lightbox buttons (glassmorphism) ---------- */

.lightbox-btn {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.lightbox-btn:active {
  transform: translateY(-50%) scale(0.94);
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.08);
}

/* ---------- Image ---------- */

.lightbox-image-wrapper {
  position: relative;
  max-width: 95vw;
  max-height: 88vh;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
  background: rgba(0, 0, 0, 0.2);
}

.lightbox-image-wrapper img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-image-wrapper img.loaded {
  opacity: 1;
}

.lightbox-image-wrapper img.slide-out {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-image-wrapper img.slide-in {
  animation: imgIn 0.3s ease forwards;
}

@keyframes imgIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

/* Loading spinner */
.lightbox-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lightbox-spinner::after {
  content: '';
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(255, 255, 255, 0.08);
  border-top-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: lbSpin 0.7s linear infinite;
}

@keyframes lbSpin {
  to { transform: rotate(360deg); }
}

/* Counter badge */
.lightbox-counter {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Thumbnails */
.lightbox-thumbnails {
  display: flex;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 90vw;
  overflow-x: auto;
}

.lightbox-thumbnails img {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  border: 2px solid transparent;
}

.lightbox-thumbnails img:hover {
  opacity: 0.7;
  transform: scale(1.07);
}

.lightbox-thumbnails img.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

/* ---------- Lightbox responsive ---------- */

@media (max-width: 768px) {
  .lightbox-image-wrapper {
    max-width: 96vw;
    max-height: 75vh;
  }

  .lightbox-image-wrapper img {
    max-height: 75vh;
  }

  .lightbox-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .lightbox-thumbnails {
    gap: 6px;
    padding: 6px 10px;
  }

  .lightbox-thumbnails img {
    width: 38px;
    height: 38px;
  }
}
