/* ==========================================================================
   Probst Kunststoff- & Prägetechnik – main stylesheet
   ========================================================================== */

:root {
  --blue: #2980b9;
  --blue-dark: #1f6391;
  --blue-light: #eaf3f9;
  --blue-glow: rgba(41, 128, 185, 0.18);
  --text: #333333;
  --muted: #666666;
  --line: #e6e9ee;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --footer: #222222;
  --footer-text: #bfc5cc;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(20, 40, 60, 0.06);
  --shadow-md: 0 12px 30px rgba(20, 40, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(20, 40, 60, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 88px;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Open Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-dark); }

h1, h2, h3, h4 {
  color: var(--text);
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 .6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1.2em; }
strong { color: var(--text); font-weight: 600; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff;
  padding: .6rem 1rem; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s, background .35s;
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
  transition: min-height .35s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 68px; }

.logo { display: inline-flex; flex-direction: column; line-height: 1; color: var(--blue); }
.logo:hover { color: var(--blue); }
.logo-name {
  font-size: 2.35rem; font-weight: 400; letter-spacing: -0.03em;
  transition: font-size .35s var(--ease);
}
.site-header.is-scrolled .logo-name { font-size: 1.9rem; }
.logo-tagline { font-size: .78rem; font-weight: 400; letter-spacing: .01em; margin-top: .2rem; padding-left: .15rem; }

.nav-toggle {
  display: none; background: none; border: 0; padding: .5rem; cursor: pointer;
  width: 44px; height: 44px; position: relative; z-index: 120;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px auto;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav li { position: relative; }
.nav a, .nav button.sub-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .95rem; border-radius: 999px;
  color: var(--text); font-size: .92rem; font-weight: 600;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  position: relative; transition: color .2s, background .25s;
}
.nav a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem; height: 2px;
  background: var(--blue); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav a:hover, .nav a.is-active, .nav .sub-toggle.is-active,
.nav li.has-sub.is-open > .sub-toggle, .nav li.has-sub:hover > .sub-toggle { color: var(--blue); }
.nav .chev { width: 12px; height: 12px; transition: transform .3s var(--ease); }
.nav li.has-sub.is-open > .sub-toggle .chev, .nav li.has-sub:hover > .sub-toggle .chev { transform: rotate(180deg); }

.nav .sub {
  position: absolute; top: calc(100% + .6rem); left: 50%; translate: -50% 0;
  min-width: 240px; background: #fff; border-radius: 12px; padding: .5rem;
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav .sub::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line);
  transform: translateX(-50%) rotate(45deg);
}
.nav li.has-sub:hover > .sub, .nav li.has-sub.is-open > .sub, .nav li.has-sub:focus-within > .sub {
  opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s;
}
.nav .sub a { display: block; padding: .6rem .9rem; border-radius: 8px; width: 100%; font-weight: 500; }
.nav .sub a::after { display: none; }
.nav .sub a:hover, .nav .sub a.is-active { background: var(--blue-light); color: var(--blue); }
.nav .sub a.is-child { padding-left: 1.6rem; font-size: .88rem; }
.nav .sub a.is-child::before { content: "– "; color: var(--blue); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  background: var(--blue); color: #fff; border: 2px solid var(--blue);
  box-shadow: 0 8px 20px var(--blue-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px var(--blue-glow); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--blue); box-shadow: none; }
.btn--ghost:hover { background: var(--blue-light); color: var(--blue-dark); border-color: var(--blue-light); box-shadow: none; }
.btn--light { background: #fff; color: var(--blue); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn--light:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); box-shadow: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; box-shadow: none; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; position: relative; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .75rem;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.accent-line {
  width: 56px; height: 3px; background: var(--blue); border-radius: 2px; margin: 1.1rem 0 1.4rem;
  transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .2s;
}
.is-centered .accent-line { margin-inline: auto; transform-origin: center; }
.in-view .accent-line, .accent-line.in-view { transform: scaleX(1); }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 8vw, 7rem);
  background:
    radial-gradient(900px 500px at 85% 10%, var(--blue-light) 0%, transparent 60%),
    linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(41,128,185,.14), transparent 70%);
  animation: float 14s ease-in-out infinite;
}
.hero::before { width: 520px; height: 520px; top: -200px; right: -120px; }
.hero::after { width: 380px; height: 380px; bottom: -220px; left: -120px; animation-delay: -6s; animation-duration: 18s; }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, 24px, 0) scale(1.06); }
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  position: relative; z-index: 1;
}
.hero h1 { margin-bottom: .5rem; }
.hero .lead { margin-bottom: 1.5rem; }
.hero-list { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .6rem; }
.hero-list li { display: flex; align-items: center; gap: .75rem; color: var(--text); font-weight: 500; }
.hero-list .tick {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-light); color: var(--blue); display: grid; place-items: center;
}
.hero-list .tick svg { width: 15px; height: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg); transition: transform .8s var(--ease);
}
.hero-media:hover .frame { transform: rotate(0deg) scale(1.01); }
.hero-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transform: scale(1.04); transition: transform 6s linear; }
.hero-media.in-view img { transform: scale(1); }
.hero-media .badge {
  position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: 16px;
  padding: .9rem 1.2rem; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: .8rem;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.badge .num { font-size: 2rem; font-weight: 700; color: var(--blue); line-height: 1; }
.badge .lbl { font-size: .8rem; color: var(--muted); line-height: 1.3; }

/* staged entrance for hero children */
.hero [data-stagger] > * { opacity: 0; transform: translateY(18px); animation: rise .8s var(--ease) forwards; }
.hero [data-stagger] > *:nth-child(1) { animation-delay: .05s; }
.hero [data-stagger] > *:nth-child(2) { animation-delay: .15s; }
.hero [data-stagger] > *:nth-child(3) { animation-delay: .25s; }
.hero [data-stagger] > *:nth-child(4) { animation-delay: .35s; }
.hero [data-stagger] > *:nth-child(5) { animation-delay: .45s; }
.hero-media { opacity: 0; animation: rise 1s var(--ease) .3s forwards; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* --------------------------------------------------------------------------
   Page hero (sub pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(700px 320px at 50% -40%, var(--blue-light) 0%, transparent 70%),
    linear-gradient(180deg, #fff, #fbfcfd);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .4rem; opacity: 0; animation: rise .8s var(--ease) .05s forwards; }
.page-hero .lead { max-width: 820px; margin-inline: auto; opacity: 0; animation: rise .8s var(--ease) .2s forwards; }
.page-hero .accent-line { margin-inline: auto; transform: scaleX(1); animation: grow .9s var(--ease) .3s both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; opacity: 0; animation: rise .8s var(--ease) 0s forwards; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { margin: 0 .4rem; opacity: .5; }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::before {
  content: ""; position: absolute; inset: 0 auto auto 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue), #5dade2);
  transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); z-index: 1;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--blue-light); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 1.2rem;
  transition: transform .4s var(--ease), background .3s, color .3s;
}
.card .icon svg { width: 26px; height: 26px; }
.card:hover .icon { transform: rotate(-6deg) scale(1.06); background: var(--blue); color: #fff; }
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { margin: 0; font-size: .95rem; }
.card .more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; }
.card .more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }

.card--product { padding: 0; display: flex; flex-direction: column; }
.card--product .thumb { background: var(--bg-alt); overflow: hidden; aspect-ratio: 3 / 2; }
.card--product .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card--product:hover .thumb img { transform: scale(1.06); }
.card--product .body { padding: 1.6rem 1.75rem 1.9rem; }

/* --------------------------------------------------------------------------
   Feature rows (image + text)
   -------------------------------------------------------------------------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.feature + .feature { margin-top: clamp(3.5rem, 7vw, 6rem); }
.feature--reverse .feature-media { order: 2; }
.feature-media { position: relative; }
.feature-media .frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #fff;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.feature-media:hover .frame { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-media img { width: 100%; }
.feature-media::after {
  content: ""; position: absolute; z-index: -1; inset: 18px -18px -18px 18px;
  border-radius: var(--radius); background: var(--blue-light);
  transition: transform .6s var(--ease);
}
.feature--reverse .feature-media::after { inset: 18px 18px -18px -18px; }
.feature-media:hover::after { transform: translate(6px, 6px); }
.feature h2, .feature h3 { margin-bottom: .4rem; }
.feature ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.feature ul li { margin-bottom: .3rem; }

.spec-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .55rem; }
.spec-list li { display: grid; grid-template-columns: 170px 1fr; gap: .6rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list b { color: var(--text); font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem .35rem .45rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .85rem; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.chip:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.chip i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); display: inline-block; }

/* --------------------------------------------------------------------------
   Blurbs (icon + text)
   -------------------------------------------------------------------------- */
.blurbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.blurb { display: flex; gap: 1rem; align-items: flex-start; }
.blurb .ring {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue); display: grid; place-items: center;
  transition: background .3s, color .3s, transform .4s var(--ease);
}
.blurb .ring svg { width: 22px; height: 22px; }
.blurb:hover .ring { background: var(--blue); color: #fff; transform: scale(1.08); }
.blurb h4 { margin-bottom: .35rem; }
.blurb p { margin: 0; font-size: .93rem; }

/* --------------------------------------------------------------------------
   Prose (legal pages)
   -------------------------------------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.5rem; margin-top: 2.5rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; font-weight: 600; }
.prose ul { padding-left: 1.3rem; }
.prose a { word-break: break-word; text-decoration: underline; text-decoration-color: rgba(41,128,185,.35); text-underline-offset: 3px; }
.prose .box {
  background: var(--bg-alt); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.2rem 1.5rem; margin: 1.5rem 0;
}
.prose .box p:last-child { margin-bottom: 0; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.5rem; margin: 1rem 0; }
.prose dt { font-weight: 600; color: var(--text); }
.prose dd { margin: 0; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: #fff; }
table.sizes { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 520px; }
table.sizes th, table.sizes td { padding: .85rem 1.2rem; text-align: left; }
table.sizes thead th { background: var(--blue); color: #fff; font-weight: 600; letter-spacing: .02em; }
table.sizes tbody tr { border-top: 1px solid var(--line); transition: background .25s, opacity .3s; }
table.sizes tbody tr:nth-child(even) { background: #fafbfc; }
table.sizes tbody tr:hover { background: var(--blue-light); }
table.sizes td:first-child { font-weight: 700; color: var(--blue); }
table.sizes tbody tr.is-match { background: #dff0fa; box-shadow: inset 4px 0 0 var(--blue); }
table.sizes tbody tr.is-dim { opacity: .4; }
.sizes-row { opacity: 0; transform: translateX(-10px); }
.in-view .sizes-row { animation: slideRow .6s var(--ease) forwards; }
.in-view .sizes-row:nth-child(1) { animation-delay: .05s } .in-view .sizes-row:nth-child(2) { animation-delay: .1s }
.in-view .sizes-row:nth-child(3) { animation-delay: .15s } .in-view .sizes-row:nth-child(4) { animation-delay: .2s }
.in-view .sizes-row:nth-child(5) { animation-delay: .25s } .in-view .sizes-row:nth-child(6) { animation-delay: .3s }
.in-view .sizes-row:nth-child(7) { animation-delay: .35s } .in-view .sizes-row:nth-child(8) { animation-delay: .4s }
.in-view .sizes-row:nth-child(9) { animation-delay: .45s } .in-view .sizes-row:nth-child(10) { animation-delay: .5s }
.in-view .sizes-row:nth-child(11) { animation-delay: .55s } .in-view .sizes-row:nth-child(12) { animation-delay: .6s }
@keyframes slideRow { to { opacity: 1; transform: translateX(0); } }

.size-finder {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.size-finder label { font-weight: 600; color: var(--text); }
.size-finder .field { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.size-finder .field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-glow); }
.size-finder input { border: 0; outline: 0; padding: .6rem 1rem; width: 120px; font: inherit; color: var(--text); }
.size-finder .unit { padding: 0 .9rem 0 0; color: var(--muted); font-size: .9rem; }
.size-finder .result { font-size: .95rem; color: var(--text); min-height: 1.5em; }
.size-finder .result b { color: var(--blue); }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue) 55%, #3b9ad9);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.cta::before {
  content: ""; position: absolute; inset: -40%; pointer-events: none;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.14), transparent 40%),
              radial-gradient(circle at 70% 70%, rgba(255,255,255,.10), transparent 40%);
  animation: drift 20s linear infinite;
}
@keyframes drift { to { transform: rotate(360deg); } }
.cta > .container { position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: .5rem; }
.cta p { color: rgba(255,255,255,.88); max-width: 640px; margin: 0 auto 1.8rem; font-size: 1.05rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* --------------------------------------------------------------------------
   Contact strip
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; max-width: 820px; margin-inline: auto; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.contact-card .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin-bottom: 1rem; }
.contact-card .icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.contact-card p { margin: 0; font-size: .95rem; }
.contact-card a { font-weight: 600; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
.footer-grid > :first-child { max-width: 360px; }
.site-footer h4 { color: var(--blue); font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer .logo { color: #fff; margin-bottom: 1rem; }
.site-footer .logo .logo-name { color: #fff; font-size: 2rem; }
.site-footer .logo .logo-tagline { color: var(--footer-text); }
.site-footer p { margin: 0 0 .5rem; }
.site-footer a { color: #e6e9ee; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-links a { display: inline-flex; gap: .4rem; align-items: center; }
.footer-links a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); transition: transform .25s var(--ease); }
.footer-links a:hover::before { transform: scale(1.5); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.3rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .85rem; color: #9aa3ad; }
.footer-bottom nav { display: flex; gap: 1.4rem; }

.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--blue); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center;
  box-shadow: var(--shadow-md); z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s var(--ease), visibility 0s linear .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.to-top:hover { background: var(--blue-dark); }
.to-top svg { width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); will-change: opacity, transform; }
.reveal.from-left { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.zoom { transform: scale(.94); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .blurbs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 74px; }
  .hero-grid, .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature-media { order: 0; }
  .feature-media { max-width: 560px; }
  .hero-media .badge { left: 12px; bottom: -22px; }
  .hero-media .frame { transform: none; }
  .cards, .cards--2, .contact-grid { grid-template-columns: 1fr; }
  .spec-list li { grid-template-columns: 1fr; gap: .1rem; }
  .prose dl { grid-template-columns: 1fr; gap: 0 0; }
  .prose dd { margin-bottom: .6rem; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 86vw); background: #fff;
    box-shadow: var(--shadow-lg); padding: 6rem 1.5rem 2rem; overflow-y: auto; z-index: 110;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s var(--ease), visibility 0s linear .45s;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; transition-delay: 0s; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .nav a, .nav button.sub-toggle { width: 100%; justify-content: space-between; padding: .9rem 1rem; border-radius: 10px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav a:hover, .nav a.is-active { background: var(--blue-light); }
  .nav .sub {
    position: static; translate: 0; transform: none; min-width: 0; box-shadow: none; border: 0;
    padding: 0 0 0 .75rem; opacity: 1; visibility: visible; display: none;
  }
  .nav .sub::before { display: none; }
  .nav li.has-sub.is-open > .sub { display: flex; }
  /* Stays below the sticky header (z-index 100), whose stacking context contains the nav panel */
  .nav-backdrop { position: fixed; inset: 0; background: rgba(20,30,40,.4); z-index: 99; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  body.nav-locked { overflow: hidden; }
}

@media (max-width: 600px) {
  .blurbs, .footer-grid { grid-template-columns: 1fr; }
  .logo-name { font-size: 2rem; }
  .hero-media .badge { padding: .7rem .9rem; }
  .badge .num { font-size: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .sizes-row, .hero [data-stagger] > *, .hero-media, .page-hero h1, .page-hero .lead, .breadcrumb { opacity: 1; transform: none; }
  .accent-line { transform: scaleX(1); }
}

/* Symbols missing from Open Sans (e.g. U+23DA earth ground) */
.sym { font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", "Apple Symbols", sans-serif; }
