/* ============================================================
   MikroTik Alarab Libya — Design System
   Type: Space Grotesk (display) + Inter (body) + JetBrains Mono
   Palette: paper/ink + electric blue + signal orange
   ============================================================ */

:root {
  --paper: #F7F6F2;
  --paper-2: #EEEDE6;
  --paper-3: #E4E2D8;
  --ink: #0B0D0C;
  --ink-2: #1C1F1D;
  --ink-3: #4A4E4B;
  --ink-4: #8A8E8A;
  --rule: #D9D7CC;

  --accent: oklch(0.58 0.18 255);
  --accent-soft: oklch(0.92 0.04 255);
  --accent-hi: oklch(0.68 0.19 255);
  --signal: oklch(0.64 0.18 30);
  --signal-soft: oklch(0.94 0.04 30);

  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 4px;
  --radius-lg: 8px;
}

[dir="rtl"] {
  --display: 'Tajawal', ui-sans-serif, system-ui, sans-serif;
  --body: 'Tajawal', ui-sans-serif, system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Typography ---------- */

.display { font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 0.95; }
.display-xl { font-family: var(--display); font-weight: 600; font-size: clamp(48px, 8vw, 128px); letter-spacing: -0.04em; line-height: 0.92; }
.display-lg { font-family: var(--display); font-weight: 600; font-size: clamp(40px, 5.5vw, 80px); letter-spacing: -0.035em; line-height: 0.95; }
.display-md { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 48px); letter-spacing: -0.02em; line-height: 1.02; }
.display-sm { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.2vw, 32px); letter-spacing: -0.015em; line-height: 1.1; }

.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.mono-sm { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px;
  background: var(--ink-3);
}

.lead { font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }

/* ---------- Layout ---------- */

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) { .container { padding: 0 20px; } }

.section {
  padding: clamp(60px, 8vw, 120px) 0;
  position: relative;
}
.section + .section { border-top: 1px solid var(--rule); }

/* ---------- Topbar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  /* Stabilize on iOS scroll */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand__mark {
  height: 34px;
  width: auto;
}
.brand__sub {
  display: flex;
  flex-direction: column;
  line-height: 1;
  padding-left: 14px;
  border-left: 1px solid var(--rule);
}
[dir="rtl"] .brand__sub { border-left: none; border-right: 1px solid var(--rule); padding-left: 0; padding-right: 14px; }
.brand__sub .t1 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-4); }
.brand__sub .t2 { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 3px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color 0.15s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link.active { color: var(--ink); }
.nav__link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--accent);
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  border: 1px solid var(--rule);
  border-radius: 100px;
  padding: 2px;
  background: var(--paper);
}
.lang-toggle button {
  padding: 6px 12px;
  border-radius: 100px;
  color: var(--ink-3);
  transition: all 0.15s ease;
}
.lang-toggle button.active {
  background: var(--ink);
  color: var(--paper);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta-btn:hover { background: var(--accent); transform: translateY(-1px); }
.cta-btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.cta-btn--outline:hover { background: var(--ink); color: var(--paper); }

.cta-btn svg { width: 14px; height: 14px; }

/* ---------- Hamburger button ---------- */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.mobile-menu-btn svg { width: 20px; height: 20px; }
.mobile-menu-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mobile-menu-btn.is-open { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Mobile Dropdown Menu (≤900px)
   Simple full-width dropdown that slides under the header.
   ============================================================ */

@media (max-width: 900px) {
  /* Show hamburger button */
  .mobile-menu-btn { display: inline-flex; }

  /* Hide desktop CTA inside topbar on mobile (CTA is shown inside the dropdown) */
  .topbar__right > .cta-btn,
  .topbar__cta { display: none; }
  .topbar .lang-toggle { display: none; }
  .topbar__right { gap: 8px; }

  /* Default state: nav hidden */
  .nav {
    display: none;
  }

  /* Open state: full-width dropdown that slides down under the header */
  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;

    background: var(--paper);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 12px 24px -10px rgba(11,13,12,0.15);

    padding: 12px 24px 24px;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    animation: dropdownIn 0.22s ease;
  }

  @keyframes dropdownIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Reset wp_nav_menu <ul> if present */
  .nav.open .nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  .nav.open .nav__list > li { display: block; }

  /* Style ALL anchors in the dropdown */
  .nav.open > a.nav__link,
  .nav.open .nav__list > li > a {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    font-family: var(--display);
    font-size: 16px;
    font-weight: 500;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    text-decoration: none;
    background: transparent;
    transition: color 0.15s ease, padding 0.15s ease;
  }
  .nav.open > a.nav__link::after,
  .nav.open .nav__list > li > a::after {
    content: none !important;
  }
  .nav.open > a.nav__link:hover,
  .nav.open .nav__list > li > a:hover,
  .nav.open > a.nav__link:focus,
  .nav.open .nav__list > li > a:focus {
    color: var(--accent) !important;
    padding-inline-start: 12px;
    outline: none;
  }
  .nav.open > a.nav__link.active,
  .nav.open .nav__list > li.current-menu-item > a,
  .nav.open .nav__list > li.current_page_item > a {
    color: var(--accent) !important;
  }

  /* Drawer extras: CTA + meta */
  .nav.open .mobile-drawer-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
  }
  .nav.open .mobile-drawer-cta .cta-btn {
    width: 100%;
    justify-content: center;
    padding: 14px 18px;
    font-size: 15px;
    background: var(--ink);
    color: var(--paper);
  }
  .nav.open .mobile-drawer-cta .cta-btn:hover {
    background: var(--accent);
  }

  .nav.open .mobile-drawer-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--rule);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-4);
  }
  .nav.open .mobile-drawer-meta a {
    color: var(--ink-3);
    text-decoration: none;
  }
  .nav.open .mobile-drawer-meta a:hover { color: var(--ink); }
}

/* Hide drawer extras on desktop */
.mobile-drawer-cta,
.mobile-drawer-meta { display: none; }


/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(60px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
  overflow: hidden;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11,13,12,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,13,12,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, black 0%, transparent 80%);
  pointer-events: none;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
}
.hero__text h1 {
  margin-top: 20px;
}
.hero__text h1 .accent { color: var(--accent); }
.hero__text .lead { margin-top: 24px; }
.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero__meta {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.hero__meta .stat { display: flex; flex-direction: column; gap: 4px; }
.hero__meta .stat .n { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.hero__meta .stat .l { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero__visual svg { width: 100%; height: 100%; display: block; }
.hero__visual .corner-label {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.55);
  padding: 12px 14px;
}
.hero__visual .corner-label.tl { top: 0; left: 0; }
.hero__visual .corner-label.tr { top: 0; right: 0; text-align: right; }
.hero__visual .corner-label.bl { bottom: 0; left: 0; }
.hero__visual .corner-label.br { bottom: 0; right: 0; text-align: right; }

.hero__visual .signal-dot {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 oklch(0.58 0.18 255 / 0.6); }
  100% { box-shadow: 0 0 0 28px oklch(0.58 0.18 255 / 0); }
}

/* ---------- Hero Slider ---------- */

.hero-slider {
  position: relative;
  width: 100%;
  height: clamp(560px, 82vh, 780px);
  height: clamp(560px, 82dvh, 780px);
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
  /* Stabilize for iOS — prevent layout shifts on toolbar show/hide */
  contain: layout paint;
}
.hero-slider *, .hero-slider *::before, .hero-slider *::after { box-sizing: border-box; }
.hero-slider__stage {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
  /* Force own composite layer to avoid scroll jitter */
  will-change: opacity;
  transform: translateZ(0);
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* GPU-accelerated wrapper for Ken Burns child */
  transform: translateZ(0);
  backface-visibility: hidden;
}
.hero-slide__art svg,
.hero-slide__bg-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-origin: 60% 55%;
  /* Promote to its own layer so the animation never repaints the page */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-slide.is-active .hero-slide__art svg,
.hero-slide.is-active .hero-slide__bg-img {
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  from { transform: scale(1.05) translateX(-1%); }
  to   { transform: scale(1.15) translateX(2%); }
}
.hero-slide__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(11,13,12,0.92) 0%, rgba(11,13,12,0.72) 40%, rgba(11,13,12,0.30) 75%, rgba(11,13,12,0.15) 100%),
    linear-gradient(180deg, rgba(11,13,12,0.35) 0%, transparent 35%, rgba(11,13,12,0.55) 100%);
}
[dir="rtl"] .hero-slide__scrim {
  background:
    linear-gradient(270deg, rgba(11,13,12,0.92) 0%, rgba(11,13,12,0.72) 40%, rgba(11,13,12,0.30) 75%, rgba(11,13,12,0.15) 100%),
    linear-gradient(180deg, rgba(11,13,12,0.35) 0%, transparent 35%, rgba(11,13,12,0.55) 100%);
}
.hero-slide__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 80px 48px 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}
.hero-slide.is-active .hero-slide__kicker { animation: heroSlideUp 0.8s ease 0.10s both; }
.hero-slide.is-active .hero-slide__title  { animation: heroSlideUp 0.9s cubic-bezier(0.2,0.7,0.2,1) 0.25s both; }
.hero-slide.is-active .hero-slide__body   { animation: heroSlideUp 0.9s cubic-bezier(0.2,0.7,0.2,1) 0.40s both; }
.hero-slide.is-active .hero-slide__ctas   { animation: heroSlideUp 0.9s cubic-bezier(0.2,0.7,0.2,1) 0.55s both; }
@keyframes heroSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-slide__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.85);
  padding: 7px 16px;
  border: 1px solid rgba(247,246,242,0.22);
  border-radius: 100px;
  background: rgba(11,13,12,0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-slide__kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
.hero-slide__title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.2vw, 92px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  color: var(--paper);
  max-width: 16ch;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero-slide__title .accent {
  color: var(--accent);
  background: linear-gradient(180deg, oklch(0.78 0.18 255) 0%, oklch(0.58 0.18 255) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-slide__body {
  color: rgba(247,246,242,0.78);
  max-width: 52ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.6;
  margin: 22px 0 0;
}
.hero-slide__ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* CTA variants used inside the hero */
.cta-btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.cta-btn--light:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px oklch(0.58 0.18 255 / 0.25);
}
.cta-btn--ghost,
.cta-btn--ghost-light {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(247,246,242,0.35);
}
.cta-btn--ghost:hover,
.cta-btn--ghost-light:hover {
  background: rgba(247,246,242,0.08);
  border-color: rgba(247,246,242,0.6);
  color: var(--paper);
}
.cta-btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cta-btn--dark:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.hero-slider__nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 0 48px;
  max-width: 1360px;
  width: 100%;
}
.hero-slider__counter {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(247,246,242,0.85);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.hero-slider__bar {
  display: inline-block;
  width: 120px;
  height: 2px;
  background: rgba(247,246,242,0.2);
  position: relative;
  overflow: hidden;
}
.hero-slider__bar-fill {
  position: absolute;
  inset: 0;
  background: var(--paper);
  transform-origin: left;
  animation: heroBarFill linear both;
}
[dir="rtl"] .hero-slider__bar-fill { transform-origin: right; }
@keyframes heroBarFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero-slider__dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-slider__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 4px;
  color: rgba(247,246,242,0.5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
}
.hero-slider__dot:hover { color: var(--paper); border-color: rgba(247,246,242,0.25); }
.hero-slider__dot.is-active {
  background: var(--paper);
  color: var(--ink);
}

.hero-slider__arrows {
  display: flex;
  gap: 8px;
}
.hero-slider__arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(247,246,242,0.25);
  color: var(--paper);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  cursor: pointer;
}
.hero-slider__arrow:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero-slider__arrow svg { width: 18px; height: 18px; }
[dir="rtl"] .hero-slider__arrow svg { transform: scaleX(-1); }

.hero-slider__label {
  position: absolute;
  z-index: 3;
  font-size: 10px;
  color: rgba(247,246,242,0.55);
  padding: 14px 24px;
  font-family: var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero-slider__label--tl { top: 16px; left: 16px; }
.hero-slider__label--tr { top: 16px; right: 16px; }
[dir="rtl"] .hero-slider__label--tl { left: auto; right: 16px; }
[dir="rtl"] .hero-slider__label--tr { right: auto; left: 16px; }

@media (max-width: 1024px) {
  .hero-slide__content { padding: 72px 32px 140px; }
  .hero-slider__nav { padding: 0 32px; }
}
@media (max-width: 700px) {
  .hero-slider { height: 620px; height: 88dvh; max-height: 720px; }
  .hero-slide__content { padding: 64px 24px 120px; }
  .hero-slide__scrim {
    background: linear-gradient(180deg, rgba(11,13,12,0.55) 0%, rgba(11,13,12,0.75) 60%, rgba(11,13,12,0.92) 100%);
  }
  [dir="rtl"] .hero-slide__scrim {
    background: linear-gradient(180deg, rgba(11,13,12,0.55) 0%, rgba(11,13,12,0.75) 60%, rgba(11,13,12,0.92) 100%);
  }
  .hero-slide__title { max-width: 100%; }
  .hero-slider__nav { bottom: 20px; gap: 16px; padding: 0 24px; }
  .hero-slider__bar { width: 64px; }
  .hero-slider__dot { width: 32px; height: 28px; font-size: 10px; }
  .hero-slider__arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide__art svg,
  .hero-slide__bg-img,
  .hero-slide__kicker::before,
  .hero-slide.is-active .hero-slide__kicker,
  .hero-slide.is-active .hero-slide__title,
  .hero-slide.is-active .hero-slide__body,
  .hero-slide.is-active .hero-slide__ctas {
    animation: none !important;
  }
}


/* ---------- Logo marquee ---------- */

.marquee-wrap {
  padding: 36px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  overflow: hidden;
}
.marquee-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 24px;
}
.marquee {
  display: flex;
  gap: 72px;
  align-items: center;
  animation: marquee 40s linear infinite;
  width: max-content;
}
.marquee:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
[dir="rtl"] .marquee { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}
.marquee .logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  flex-shrink: 0;
  color: var(--ink-3);
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0.7;
  transition: opacity 0.2s ease, color 0.2s ease;
  min-width: 140px;
}
.marquee .logo-cell:hover { opacity: 1; color: var(--ink); }
.marquee .logo-cell img { height: 32px; width: auto; object-fit: contain; filter: grayscale(1); opacity: 0.75; }
.marquee .logo-cell:hover img { filter: grayscale(0); opacity: 1; }

/* ---------- Cards / Tiles ---------- */

.grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
}

.tile {
  background: var(--paper);
  padding: 32px 28px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: background 0.2s ease;
}
.tile:hover { background: var(--paper-2); }
.tile__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.tile__title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.tile__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: auto;
}
.tile__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  background: var(--paper);
}
.tile__icon svg { width: 22px; height: 22px; }

/* ---------- Section header ---------- */

.sec-head {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  padding-bottom: 56px;
  align-items: end;
}
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: 16px; padding-bottom: 40px; }
}
.sec-head__left .eyebrow { margin-bottom: 16px; }
.sec-head__right { text-align: left; }
[dir="rtl"] .sec-head__right { text-align: right; }

/* ---------- Products ---------- */

.product-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.chip {
  padding: 8px 14px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  transition: all 0.15s ease;
  background: var(--paper);
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.product-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 16px 36px -16px rgba(11,13,12,0.18);
}

/* 1. Brand row at the top */
.product-card__brand {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--paper-2);
}
.product-card__brand span {
  display: inline-block;
}

/* 2. Product image */
.product-card__img {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(135deg, var(--paper-2) 0px, var(--paper-2) 10px, var(--paper-3) 10px, var(--paper-3) 11px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  display: block;
}
.product-card__img .placeholder {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 6px 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* 3. Body — name, category, spec, buttons */
.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* 3a. Product name */
.product-card__name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0;
}

/* 3b. Category */
.product-card__cat {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 8px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

/* 3c. Short description */
.product-card__spec {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 4px 0 0;
}

/* 4. Footer with action buttons */
.product-card__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.product-card__order,
.product-card__datasheet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.product-card__order svg,
.product-card__datasheet svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* WhatsApp order — primary, green */
.product-card__order {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.product-card__order:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--paper);
  transform: translateY(-1px);
}

/* Datasheet — secondary, outlined */
.product-card__datasheet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.product-card__datasheet:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ---------- Stats row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) { .stats-row { grid-template-columns: repeat(2, 1fr); } }
.stats-row > div {
  padding: 36px 24px;
  border-left: 1px solid var(--rule);
}
.stats-row > div:first-child { border-left: none; }
[dir="rtl"] .stats-row > div { border-left: none; border-right: 1px solid var(--rule); }
[dir="rtl"] .stats-row > div:first-child { border-right: none; }
.stats-row .n {
  font-family: var(--display);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stats-row .l {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 10px;
}
.stats-row .n .unit { color: var(--accent); }

/* ---------- About / timeline ---------- */

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; gap: 32px; } }

.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.value-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.value-list li:last-child { border-bottom: 1px solid var(--rule); }
.value-list .i {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  padding-top: 3px;
}
.value-list h4 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.value-list p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; gap: 40px; } }

.form-row { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border 0.15s ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--ink);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }

.submit-btn {
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 6px;
  transition: background 0.15s ease;
}
.submit-btn:hover { background: var(--accent); }
.submit-btn.sent { background: oklch(0.55 0.15 140); }

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info__item {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: start;
}
.contact-info__item:last-child { border-bottom: 1px solid var(--rule); }
.contact-info__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 3px;
}
.contact-info__value { font-size: 16px; line-height: 1.5; }
.contact-info__value a { border-bottom: 1px dotted var(--ink-4); }
.contact-info__value a:hover { border-color: var(--ink); }

.map-placeholder {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  margin-top: 32px;
  background:
    linear-gradient(135deg, var(--paper-2) 0%, var(--paper-3) 100%);
  position: relative;
  overflow: hidden;
}
.map-placeholder svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-placeholder__pin {
  position: absolute;
  top: 42%;
  left: 58%;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-placeholder__pin .dot {
  width: 14px; height: 14px;
  background: var(--signal);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 0 var(--signal);
  animation: pulse-orange 2.4s ease-out infinite;
}
@keyframes pulse-orange {
  0% { box-shadow: 0 0 0 0 oklch(0.64 0.18 30 / 0.5); }
  100% { box-shadow: 0 0 0 24px oklch(0.64 0.18 30 / 0); }
}
.map-placeholder__pin .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 4px 8px;
  border-radius: 3px;
}

/* ---------- Call-to-band ---------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(247,246,242,0.7); max-width: 48ch; }
.cta-band__right { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band__right .cta-btn { background: var(--paper); color: var(--ink); }
.cta-band__right .cta-btn:hover { background: var(--accent); color: var(--paper); }
.cta-band__right .cta-btn--outline { background: transparent; color: var(--paper); border-color: rgba(247,246,242,0.3); }
.cta-band__right .cta-btn--outline:hover { background: var(--paper); color: var(--ink); }

.cta-band::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, oklch(0.58 0.18 255 / 0.25) 0%, transparent 70%);
  pointer-events: none;
}

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

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0 32px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(247,246,242,0.12);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-grid h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.5);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: rgba(247,246,242,0.8); font-size: 14px; transition: color 0.15s ease; }
.footer-grid a:hover { color: var(--paper); }
.footer-grid .brand-block p { color: rgba(247,246,242,0.65); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 36ch; }
.footer-brand-mark { height: 32px; filter: invert(1); }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.5);
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Utilities ---------- */

.fade-in { animation: fadeInUp 0.6s ease both; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.divider { height: 1px; background: var(--rule); width: 100%; }
.pill-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pill-note .d {
  width: 6px; height: 6px; background: var(--signal); border-radius: 50%;
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---------- Tweaks panel ---------- */

.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 40px -20px rgba(11,13,12,0.25);
  width: 260px;
}
[dir="rtl"] .tweaks-panel { right: auto; left: 24px; }
.tweaks-panel h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.tweaks-panel .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.tweaks-panel .row:last-child { margin-bottom: 0; }
.tweaks-panel label { font-size: 13px; color: var(--ink-2); }

/* ============================================================
   WordPress + WPBakery additions (theme-specific)
   ============================================================ */

/* Larger logo on desktop */
.brand__mark { height: 48px; }
.brand .custom-logo {
  height: 48px !important;
  width: auto !important;
  max-width: 220px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .brand__mark,
  .brand .custom-logo { height: 36px !important; max-width: 150px; }
}

/* Footer logo: stronger size, brighter */
.footer-brand-mark {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}

/* Footer social icons */
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(247,246,242,0.06);
  color: rgba(247,246,242,0.85);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.footer-social__link:hover {
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-2px);
}
.footer-social__link svg { width: 16px; height: 16px; }

/* Footer contact list (when using key/value style) */
.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.4;
}
.footer-contact__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.4);
}
.footer-contact__value {
  font-size: 14px;
  color: rgba(247,246,242,0.8);
  word-break: break-word;
}
a.footer-contact__value:hover { color: var(--paper); }

/* Footer column titles (dynamic from customizer) */
.footer-col__title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247,246,242,0.5);
  margin: 0 0 16px;
}
.footer-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}
.footer-menu a {
  color: rgba(247,246,242,0.8);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-menu a:hover { color: var(--paper); }
.footer-bottom__copy,
.footer-bottom__legal {
  display: inline-block;
}

/* Footer responsive — better mobile layout */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 28px;
  }
  .footer-grid > .brand-block,
  .footer-grid > .footer-col--brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-grid > .brand-block,
  .footer-grid > .footer-col--brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* WPBakery: hero/marquee/cta-band/footer escape any column wrapper to full bleed */
.vc_row .hero-slider,
.vc_row .marquee-wrap,
.vc_row footer,
.vc_row .site-footer {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: none;
}
.wpb_content_element { margin-bottom: 0; }

/* WhatsApp footer button (main CTA below the products grid) */
.cta-btn--whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}
.cta-btn--whatsapp:hover {
  background: #1DAE54;
  color: #FFFFFF;
  border-color: #1DAE54;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(37,211,102,0.25);
}
.cta-btn--whatsapp svg { flex-shrink: 0; }

/* Products grid footer — "View all products" button centered */
.products-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  padding-top: 8px;
}
.products-footer .cta-btn {
  min-width: 220px;
  justify-content: center;
}
.cta-btn--dark {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cta-btn--dark:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px oklch(0.58 0.18 255 / 0.25);
}
.cta-btn--dark svg { flex-shrink: 0; }
[dir="rtl"] .products-footer .cta-btn svg { transform: scaleX(-1); }

/* Empty state shown when a filter has no matching cards on this page */
.products-empty {
  margin-top: 24px;
  padding: 24px;
  text-align: center;
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
  font-size: 14px;
}
.products-empty p { margin: 0; }
.products-empty__link {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  margin-inline-start: 6px;
}
.products-empty__link:hover { color: var(--accent); border-color: var(--accent); }
.products-empty[hidden] { display: none; }

/* ============================================================
   Inner page templates (Services, Products, About, Contact)
   ============================================================ */

/* Compact dark hero header at the top of every inner page */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(72px, 10vw, 140px) 0 clamp(56px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -180px;
  top: -180px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, oklch(0.58 0.18 255 / 0.22) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 920px;
}
.page-hero__crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(247,246,242,0.55);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}
.page-hero__crumb a {
  color: rgba(247,246,242,0.85);
  transition: color 0.15s ease;
}
.page-hero__crumb a:hover { color: var(--paper); }
.page-hero__crumb span[aria-hidden] { color: rgba(247,246,242,0.35); }
.page-hero__title {
  color: var(--paper);
  margin: 0;
  text-wrap: balance;
}
.page-hero__lead {
  color: rgba(247,246,242,0.78);
  margin-top: 22px;
  max-width: 60ch;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
}
.contact-list__item {
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-list__item:last-child { border-bottom: none; }
.contact-list__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-4);
}
.contact-list__value {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  word-break: break-word;
  transition: color 0.15s ease;
}
a.contact-list__value:hover { color: var(--accent); }

/* Contact form */
.contact-form-wrap {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
}
.contact-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-row input,
.form-row textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(11,13,12,0.08);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-row button {
  align-self: flex-start;
  margin-top: 4px;
}

.form-notice {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
}
.form-notice--success {
  background: oklch(0.95 0.06 145);
  color: oklch(0.30 0.10 145);
  border: 1px solid oklch(0.85 0.10 145);
}
.form-notice--error {
  background: oklch(0.95 0.06 25);
  color: oklch(0.35 0.13 25);
  border: 1px solid oklch(0.85 0.10 25);
}
