/*
Theme Name: Innotec Control
Theme URI: https://innotec-control.de
Author: Innotec Control
Description: Custom theme for Innotec Control — NDT & engineering inspection services. Bilingual DE/EN via Polylang.
Version: 1.0
Requires PHP: 7.4
Text Domain: innotec
*/

/* Innotec Control — NDT & Engineering Inspection site */

:root {
  --navy: #0a1830;
  --navy-soft: #0f2142;
  --ink: #1a2233;
  --ink-soft: #57606f;
  --paper: #ffffff;
  --paper-alt: #f4f6f9;
  --blue: #1d5fe0;
  --blue-dim: #164ab3;
  --blue-soft: #eaf0fd;
  --teal: #0e8a7d;
  --teal-soft: #e2f4f1;
  --amber: #e8a53d;
  --amber-soft: #fdf1e0;
  --indigo: #5b4fd6;
  --indigo-soft: #efedfc;
  --line: #e2e6ec;

  --font-heading: "Sora", "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1.5px 1.5px, rgba(10,24,48,0.05) 1.5px, transparent 0);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1680px; margin: 0 auto; padding: 0 40px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.8em;
}

.brand-mark { color: var(--blue); }
.bg-navy .brand-mark, .hero .brand-mark { color: #9dc1ff; }

/* ---------- Bilingual switcher (DE default / EN toggle) ---------- */
/* Default (no JS): English hidden, German shows. When JS runs, the toggle
   script sets inline display styles directly on each element — this is
   more reliable than a CSS cascade rule and cannot leave both languages
   hidden at once, regardless of browser quirks. */
.lang-en { display: none; }

.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  font-size: 0.78rem; font-weight: 700; flex: none;
}
.lang-switch button, .lang-switch a { border: none; background: transparent; padding: 8px 12px; cursor: pointer; color: var(--ink-soft); }
.lang-switch button.active, .lang-switch a.active { background: var(--navy); color: #fff; }
.nav-drawer .lang-switch { margin-bottom: 18px; align-self: flex-start; }
/* In the header, the switch sits on a dark background — flip to light text/border */
.site-header .lang-switch { border-color: rgba(255,255,255,0.3); }
.site-header .lang-switch button, .site-header .lang-switch a { color: rgba(255,255,255,0.75); }
.site-header .lang-switch button.active, .site-header .lang-switch a.active { background: #fff; color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(29,95,224,0.28); }
.btn-primary:hover { background: var(--blue-dim); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline.on-light { border-color: var(--line); color: var(--navy); }
.btn-outline.on-light:hover { border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  border-bottom: none;
  overflow: visible;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  position: fixed;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, #0e2a52 0%, var(--navy) 55%, #0a1830 100%),
    radial-gradient(circle at 85% 20%, rgba(29,95,224,0.35), transparent 55%);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), #0e8a7d, #e8a53d) 1;
}
/* On pages without a full-bleed hero, the header must stay readable even
   before any scroll — give it the same solid treatment by default there. */
body:not(.has-hero-photo) .site-header {
  position: sticky;
  background-color: var(--navy);
  background-image:
    linear-gradient(100deg, #0e2a52 0%, var(--navy) 55%, #0a1830 100%),
    radial-gradient(circle at 85% 20%, rgba(29,95,224,0.35), transparent 55%);
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), #0e8a7d, #e8a53d) 1;
}
/* Soft floating blob, same motion language as .bg-motion elsewhere on the
   site — gives the header a touch of life instead of sitting static. */
.site-header::before {
  content: "";
  position: absolute; z-index: 0; pointer-events: none;
  width: 260px; height: 260px; top: -110px; left: -60px;
  border-radius: 50%; filter: blur(50px);
  background: radial-gradient(circle, rgba(29,95,224,0.30), transparent 70%);
  animation: floatBlob1 16s ease-in-out infinite;
}
.site-header::after {
  content: "";
  position: absolute; z-index: 0; pointer-events: none;
  width: 200px; height: 200px; top: 10px; left: 220px;
  border-radius: 50%; filter: blur(46px);
  background: radial-gradient(circle, rgba(14,138,125,0.16), transparent 70%);
  animation: floatBlob2 20s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .site-header::before, .site-header::after { animation: none !important; }
}
.site-header .inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 160px; gap: 24px;
}
/* Text-based logo fallback (used until a real logo file is supplied) */
.logo-wordmark {
  font-family: var(--font-heading);
  font-weight: 800; font-size: 1.6rem; letter-spacing: -0.01em; line-height: 1;
  white-space: nowrap;
}
.logo-wordmark .logo-in { color: #fff; }
.logo-wordmark .logo-ctrl { color: #8fb4ff; }
.footer-grid .logo-wordmark .logo-in { color: #fff; }
.footer-grid .logo-wordmark .logo-ctrl { color: #8fb4ff; }
.footer-grid .logo-wordmark { font-size: 1.3rem; }
.site-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.site-logo img {
  height: 128px; width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.site-logo .name {
  font-family: var(--font-heading);
  font-weight: 700; font-size: 1.05rem; color: #fff;
  line-height: 1.15;
}
.main-nav { flex: 1; }
.main-nav ul { list-style: none; display: flex; gap: 2.1rem; margin: 0; padding: 0; justify-content: center; }
.main-nav a { font-size: 1.12rem; font-weight: 500; color: rgba(255,255,255,0.85); padding: 4px 0; position: relative; text-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.main-nav a:hover, .main-nav a.current { color: #fff; }
.main-nav a.current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: #e8a53d;
}

/* Hamburger + drawer nav (mobile & tablet) */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
  background: rgba(255,255,255,0.06);
  align-items: center; justify-content: center;
  cursor: pointer; flex: none;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; }
.nav-toggle .bars { position: relative; width: 20px; height: 14px; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 6px; }
.nav-toggle .bars span:nth-child(3) { top: 12px; }
body.nav-open .nav-toggle .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle .bars span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-drawer-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(10,24,48,0.45);
  z-index: 60; opacity: 0; transition: opacity 0.25s ease;
}
body.nav-open .nav-drawer-overlay { display: block; opacity: 1; }

.nav-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 82vw);
  background: #fff; z-index: 70;
  box-shadow: -12px 0 34px rgba(10,24,48,0.18);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex; flex-direction: column;
  padding: 24px 22px;
}
body.nav-open .nav-drawer { transform: translateX(0); }
.nav-drawer .drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.nav-drawer .drawer-head img { height: 64px; }
.nav-drawer .drawer-close {
  width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.nav-drawer ul { list-style: none; margin: 0; padding: 0; }
.nav-drawer li { border-bottom: 1px solid var(--line); }
.nav-drawer a {
  display: block; padding: 16px 4px; font-size: 1rem; font-weight: 600; color: var(--navy);
}
.nav-drawer a.current { color: var(--blue); }
.nav-drawer .drawer-cta { margin-top: 20px; }

/* ---------- Hero ---------- */
/* ---------- Hero v2 — full-bleed photo hero (reference-matched design) ---------- */
.hero-v2 {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-v2-bg {
  position: absolute; inset: 0;
  background-color: var(--navy);
  background-image: linear-gradient(135deg, #16345c, var(--navy) 65%, #0a1830 100%);
  background-size: cover;
  background-position: center;
  animation: heroZoom 24s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  0%   { transform: scale(1); }
  100% { transform: scale(1.09); }
}
@keyframes heroZoomSoft {
  0%   { transform: scale(1); }
  100% { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2-bg { animation: none; }
}
.hero-v2-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(6,15,31,0.82) 0%, rgba(6,15,31,0.55) 42%, rgba(6,15,31,0.22) 75%),
              linear-gradient(0deg, rgba(6,15,31,0.35) 0%, transparent 30%);
  pointer-events: none;
}
.hero-v2-video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.hero-v2-inner {
  position: relative; z-index: 1;
  max-width: 620px;
  padding: 150px 24px 64px;
}
.hero-v2-inner h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 20px;
}
.hero-v2-divider { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.hero-v2-divider span { display: block; width: 34px; height: 1px; background: rgba(255,255,255,0.5); }
.hero-v2-divider i { width: 5px; height: 5px; border-radius: 50%; background: #e8a53d; display: block; }
.hero-v2-lede {
  font-family: var(--font-body);
  font-size: 1.02rem; line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  margin: 0 0 34px;
}
.hero-v2-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 26px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.hero-v2-btn:hover { background: var(--blue); transform: translateY(-2px); }
.hero-v2-hint {
  position: absolute; z-index: 2; bottom: 14px; right: 16px;
  font-size: 0.72rem; color: rgba(255,255,255,0.55);
  background: rgba(0,0,0,0.35); padding: 5px 10px; border-radius: 4px;
}
@media (max-width: 680px) {
  .hero-v2 { min-height: 520px; }
  .hero-v2-inner { padding: 60px 20px; }
}

/* ---------- Hero compact — smaller, more-faded photo hero for inner pages ---------- */
.hero-compact {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-compact-bg {
  position: absolute; inset: 0;
  background-color: var(--navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 320' preserveAspectRatio='xMidYMax slice'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' opacity='0.14'%3E%3C!-- storage tanks --%3E%3Crect x='60' y='190' width='90' height='110' rx='4'/%3E%3Cellipse cx='105' cy='190' rx='45' ry='12'/%3E%3Crect x='170' y='150' width='70' height='150' rx='4'/%3E%3Cellipse cx='205' cy='150' rx='35' ry='10'/%3E%3C!-- distillation column --%3E%3Crect x='300' y='60' width='34' height='240' rx='4'/%3E%3Cline x1='300' y1='100' x2='334' y2='100'/%3E%3Cline x1='300' y1='140' x2='334' y2='140'/%3E%3Cline x1='300' y1='180' x2='334' y2='180'/%3E%3Cline x1='300' y1='220' x2='334' y2='220'/%3E%3Ccircle cx='317' cy='45' r='14'/%3E%3C!-- connecting pipes --%3E%3Cpath d='M150 260 L300 260'/%3E%3Cpath d='M240 200 L300 200'/%3E%3Cpath d='M334 160 L420 160 L420 300'/%3E%3C!-- second tank cluster --%3E%3Crect x='460' y='210' width='80' height='90' rx='4'/%3E%3Cellipse cx='500' cy='210' rx='40' ry='11'/%3E%3C!-- pipe rack --%3E%3Cline x1='560' y1='240' x2='1200' y2='240'/%3E%3Cline x1='560' y1='260' x2='1200' y2='260'/%3E%3Cline x1='600' y1='180' x2='600' y2='240'/%3E%3Cline x1='700' y1='180' x2='700' y2='240'/%3E%3Cline x1='800' y1='180' x2='800' y2='240'/%3E%3Cline x1='900' y1='180' x2='900' y2='240'/%3E%3C!-- crane --%3E%3Cline x1='980' y1='300' x2='980' y2='90'/%3E%3Cline x1='980' y1='90' x2='1120' y2='120'/%3E%3Cline x1='980' y1='90' x2='940' y2='105'/%3E%3Cline x1='1080' y1='113' x2='1080' y2='170'/%3E%3C!-- far tanks --%3E%3Crect x='1140' y='230' width='60' height='70' rx='4'/%3E%3Cellipse cx='1170' cy='230' rx='30' ry='9'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #16345c, var(--navy) 65%, #0a1830 100%);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  animation: heroZoomSoft 26s ease-in-out infinite alternate;
}
.hero-compact-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,15,31,0.88) 0%, rgba(6,15,31,0.72) 55%, rgba(6,15,31,0.55) 100%);
  pointer-events: none;
}
.hero-compact-inner {
  position: relative; z-index: 1;
  padding: 120px 24px 36px;
  max-width: 760px;
}
.hero-compact-inner .eyebrow { color: #8fb4ff; }
.hero-compact-inner h1 {
  color: #fff; margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}
@media (prefers-reduced-motion: reduce) {
  .hero-compact-bg { animation: none; }
}
@media (max-width: 680px) {
  .hero-compact { min-height: 240px; }
  .hero-compact-inner { padding: 120px 20px 32px; }
}

/* ---------- Hero (legacy — still used on inner pages like Services/Industries) ---------- */
.hero {
  position: relative;
  background: linear-gradient(115deg, var(--navy) 0%, var(--navy-soft) 55%, #123056 100%);
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.035) 0 2px, transparent 2px 90px),
    radial-gradient(circle at 82% 30%, rgba(29,95,224,0.35), transparent 55%),
    radial-gradient(circle at 15% 80%, rgba(14,138,125,0.25), transparent 50%);
  background-size: auto, 140% 140%, 140% 140%;
  animation: heroDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroDrift {
  0%   { background-position: 0 0, 0% 0%, 100% 100%; }
  100% { background-position: 0 0, 100% 40%, 0% 60%; }
}
.hero .container {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { color: #c3ccdb; font-size: 1.08rem; max-width: 44ch; margin-bottom: 1.8em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-photo {
  aspect-ratio: 4/3.1;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(150deg, #16345c, #0a1830 70%);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
}
.hero-photo .badge {
  font-family: var(--font-heading);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #90a4c4;
  border: 1px dashed rgba(255,255,255,0.25);
  padding: 10px 16px; border-radius: 6px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -90px;
}
.trust-strip .row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff;
  box-shadow: 0 24px 60px rgba(10,24,48,0.18);
  border-radius: 4px;
}
.trust-strip .item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 44px 28px;
  border-right: 1px solid var(--line);
}
.trust-strip .item:last-child { border-right: none; }
.trust-strip .item-icon {
  width: 52px; height: 52px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--navy); border-radius: 50%;
  color: var(--navy);
}
.trust-strip .item h3 {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 8px;
}
.trust-strip .item p {
  font-size: 0.86rem; line-height: 1.5; margin: 0 0 14px; max-width: 22ch;
}
.trust-strip .item-line { width: 26px; height: 2px; background: #e8a53d; display: block; }

/* ---------- Who We Are (home teaser, reference-matched) ---------- */
.who-we-are { padding: 52px 0; }
.who-we-are-grid {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start;
}
.who-we-are-grid h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  line-height: 1.2; text-transform: none; letter-spacing: 0;
}
.who-we-are-grid p { font-size: 1.02rem; line-height: 1.7; max-width: 52ch; }

/* ---------- Detail page content — richer than plain default text ---------- */
.entry-content { color: var(--ink-soft); }
.entry-content .text-placeholder { font-style: italic; color: #a5680f; background: var(--amber-soft); padding: 2px 6px; border-radius: 4px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content p:empty,
.entry-content p:has(> br:only-child) { display: none; }
.entry-content p {
  font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5em;
}
.entry-content strong { color: var(--navy); font-weight: 700; }
.entry-content h2, .entry-content h3 {
  font-family: var(--font-heading); color: var(--navy);
  margin-top: 2.2em; margin-bottom: 0.6em;
}
.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.15rem; }
.entry-content ul {
  list-style: none; margin: 1.8em 0; padding: 0;
  display: grid; gap: 12px;
}
.entry-content ul li {
  position: relative;
  padding: 16px 20px 16px 52px;
  background: var(--paper-alt);
  border-radius: 8px;
  border-left: 3px solid var(--blue);
  font-size: 0.98rem;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.entry-content ul li:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(10,24,48,0.08);
  border-left-color: var(--teal);
}
.entry-content ul li::before {
  content: "✓";
  position: absolute; left: 16px; top: 16px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  line-height: 24px; text-align: center;
}
.entry-content ul li:nth-child(3n+2) { border-left-color: var(--teal); }
.entry-content ul li:nth-child(3n+2)::before { background: var(--teal); }
.entry-content ul li:nth-child(3n+3) { border-left-color: var(--amber); }
.entry-content ul li:nth-child(3n+3)::before { background: var(--amber); }
.entry-content blockquote {
  margin: 2em 0; padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: var(--blue-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic; color: var(--navy);
}

/* ---------- Detail page variants (Branchen / Ausrüstung / Leistungen) ---------- */
.split-reverse > *:first-child { order: 2; }
.split-reverse > *:last-child { order: 1; }

.detail-tag {
  display: inline-block; font-family: var(--font-heading); font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.variant-industry .detail-tag { background: var(--blue-soft); color: var(--blue); }
.variant-equipment .detail-tag { background: var(--teal-soft); color: var(--teal); }
.variant-service .detail-tag { background: var(--amber-soft); color: var(--amber-dim, #a5680f); }

.entry-content.variant-industry ul li { border-left-color: var(--blue); }
.entry-content.variant-industry ul li::before { background: var(--blue); }
.entry-content.variant-equipment ul li { border-left-color: var(--teal); }
.entry-content.variant-equipment ul li::before { background: var(--teal); }
.entry-content.variant-service ul li { border-left-color: var(--amber-dim, #a5680f); }
.entry-content.variant-service ul li::before { background: var(--amber-dim, #a5680f); }

/* ---------- Sections ---------- */
section { padding: 60px 0; position: relative; }
.section-tight { padding: 42px 0; }
.section-head { max-width: 62ch; margin: 0 auto 2.2rem; text-align: center; }
.bg-alt {
  position: relative;
  overflow: hidden;
  background-color: var(--paper-alt);
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(10,24,48,0.05) 1.5px, transparent 0);
  background-size: 28px 28px;
}
.bg-alt::before, .bg-alt::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; z-index: 0;
}
.bg-alt::before {
  width: 420px; height: 420px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(29,95,224,0.14), transparent 70%);
  animation: floatBlob1 18s ease-in-out infinite;
}
.bg-alt::after {
  width: 380px; height: 380px; bottom: -140px; right: -100px;
  background: radial-gradient(circle, rgba(14,138,125,0.14), transparent 70%);
  animation: floatBlob2 20s ease-in-out infinite;
}
.bg-alt > .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .bg-alt::before, .bg-alt::after { animation: none !important; }
}
.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2 { color: #fff; }
.bg-navy p { color: #b7c1d4; }

/* Floating animated blobs — subtle motion behind section content */
.bg-motion { position: relative; overflow: hidden; }
.bg-motion::before, .bg-motion::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(60px);
  pointer-events: none; z-index: 0;
}
.bg-motion::before {
  width: 420px; height: 420px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(29,95,224,0.16), transparent 70%);
  animation: floatBlob1 18s ease-in-out infinite;
}
.bg-motion::after {
  width: 380px; height: 380px; bottom: -140px; right: -100px;
  background: radial-gradient(circle, rgba(14,138,125,0.16), transparent 70%);
  animation: floatBlob2 20s ease-in-out infinite;
}
.bg-motion.dark::before { background: radial-gradient(circle, rgba(29,95,224,0.28), transparent 70%); }
.bg-motion.dark::after { background: radial-gradient(circle, rgba(232,165,61,0.18), transparent 70%); }
.bg-motion > .container { position: relative; z-index: 1; }
@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes floatBlob2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, -30px) scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .bg-motion::before, .bg-motion::after { animation: none !important; }
}

/* ---------- Photo / illustration placeholder ---------- */
.photo {
  position: relative;
  border-radius: 8px;
  display: flex; align-items: flex-end; justify-content: flex-start;
  min-height: 190px;
  overflow: hidden;
  color: #fff;
  padding: 18px;
  transition: transform 0.4s ease;
}
.industry-card:hover .photo, .equipment-card:hover .photo { transform: scale(1.045); }
.photo.zoom-slow img { animation: heroZoom 22s ease-in-out infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  .photo.zoom-slow img { animation: none; }
}
.photo::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.16;
  background-image:
    radial-gradient(circle at 20% 20%, #fff 0, transparent 2px),
    radial-gradient(circle at 60% 55%, #fff 0, transparent 2px),
    radial-gradient(circle at 85% 30%, #fff 0, transparent 2px),
    radial-gradient(circle at 35% 80%, #fff 0, transparent 2px);
  background-size: 60px 60px;
}
.photo .icon-mark {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
}
.photo span {
  position: relative;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.photo.c1 { background: linear-gradient(135deg, #1d5fe0, #0a1830 115%); }
.photo.c2 { background: linear-gradient(135deg, #0e8a7d, #0a1830 115%); }
.photo.c3 { background: linear-gradient(135deg, #e8a53d, #0a1830 130%); }
.photo.c4 { background: linear-gradient(135deg, #2f6fed, #123056 110%); }
.photo.tall { min-height: 320px; }
.photo.wide { aspect-ratio: 16/9; min-height: 0; }

/* ---------- Service grid (icons) ---------- */
.service-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.service-card {
  display: block; color: inherit; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid transparent; border-radius: 8px;
  padding: 26px 22px; text-align: center;
  transition: transform 0.3s cubic-bezier(.16,.84,.44,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(10,24,48,0.14); border-color: var(--line); }
.service-card:nth-child(3n+1):hover { border-top-color: var(--blue); }
.service-card:nth-child(3n+2):hover { border-top-color: var(--teal); }
.service-card:nth-child(3n+3):hover { border-top-color: var(--amber); }
.service-card .icon {
  width: 72px; height: 72px; margin: 0 auto 16px;
  border-radius: 14px; background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.service-card:hover .icon { transform: scale(1.15) rotate(-6deg); }
.service-card .icon:has(img) { background: transparent; }
/* Rotate through the brand's four accent colors instead of one flat blue */
.service-card:nth-child(4n+2) .icon { background: var(--teal-soft); color: var(--teal); }
.service-card:nth-child(4n+3) .icon { background: var(--amber-soft); color: var(--amber); }
.service-card:nth-child(4n+4) .icon { background: var(--indigo-soft); color: var(--indigo); }
.service-card h3 { font-size: 1rem; margin-bottom: 6px; }
.service-card p { font-size: 0.86rem; margin: 0; }

/* ---------- Services list (detailed page) ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; }
.service-list .row { display: flex; gap: 18px; padding: 20px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; transition: padding-left 0.2s ease, color 0.2s ease; }
.service-list .row:nth-child(-n+2) { border-top: none; }
.service-list .row:hover { padding-left: 8px; }
.service-list .row:hover h3 { color: var(--blue); }
.service-list .icon {
  width: 64px; height: 64px; flex: none; border-radius: 12px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.25s ease;
}
.service-list .icon:has(img) { background: transparent; }
.service-list .row:hover .icon { transform: scale(1.08) rotate(-4deg); }
.service-list .row:nth-child(4n+2) .icon { background: var(--teal-soft); color: var(--teal); }
.service-list .row:nth-child(4n+3) .icon { background: var(--amber-soft); color: var(--amber); }
.service-list .row:nth-child(4n+4) .icon { background: var(--indigo-soft); color: var(--indigo); }
.service-list h3 { margin-bottom: 4px; }
.service-list p { font-size: 0.9rem; margin: 0; }

/* ---------- Industries grid ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.industry-card { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); display: block; color: inherit; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.industry-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,24,48,0.15); border-color: transparent; }
.industry-card .photo { border-radius: 0; border: none; aspect-ratio: 4/3; min-height: 0; overflow: hidden; }
.industry-card .photo img { transition: transform 0.5s cubic-bezier(.16,.84,.44,1); }
.industry-card:hover .photo img { transform: scale(1.08); }
.industry-card .body { padding: 20px; }
.industry-card h3 { margin-bottom: 6px; }
.industry-card p { font-size: 0.9rem; margin: 0 0 8px; }
.industry-card .more {
  display: block; font-size: 0.8rem; font-weight: 700; color: var(--blue);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.industry-card:hover .more { max-height: 24px; opacity: 1; }

/* ---------- Stat / trust badges (qualitative, no fake numbers) ---------- */
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-soft); color: var(--blue-dim);
  font-size: 0.82rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}

/* ---------- Certifications ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cert-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 26px; text-align: center;
}
.cert-card .mark {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.cert-card h3 { font-size: 1rem; }
.cert-card p { font-size: 0.85rem; margin: 0; }

/* ---------- Equipment ---------- */
.equipment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.equipment-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: block; color: inherit; text-decoration: none; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.equipment-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10,24,48,0.15); border-color: transparent; }
.equipment-card .photo { border-radius: 0; border: none; aspect-ratio: 4/3; min-height: 0; overflow: hidden; }
.equipment-card .photo img { transition: transform 0.5s cubic-bezier(.16,.84,.44,1); }
.equipment-card:hover .photo img { transform: scale(1.08); }
.equipment-card .body { padding: 18px; }
.equipment-card h3 { font-size: 1rem; margin-bottom: 4px; }
.equipment-card p { font-size: 0.85rem; margin: 0 0 8px; }
.equipment-card .more {
  display: block; font-size: 0.8rem; font-weight: 700; color: var(--blue);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}
.equipment-card:hover .more { max-height: 24px; opacity: 1; }

/* ---------- Split (text + photo) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }

/* ---------- Timeline / values ---------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.value-grid .value { transition: transform 0.25s ease; }
.value-grid .value:hover { transform: translateY(-4px); }
.value-grid .value .num {
  display: inline-block; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em;
  background: var(--blue-soft); color: var(--blue-dim);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 0.8em;
}
.value-grid .value:nth-child(4n+2) .num { background: var(--teal-soft); color: var(--teal); }
.value-grid .value:nth-child(4n+3) .num { background: var(--amber-soft); color: #a06b17; }
.value-grid .value:nth-child(4n+4) .num { background: var(--indigo-soft); color: var(--indigo); }

/* ---------- Quote / contact form ---------- */
.quote-panel {
  background: var(--navy); color: #fff; border-radius: 12px;
  padding: 46px 44px;
  position: relative; overflow: hidden;
}
.quote-panel > * { position: relative; z-index: 1; }
.quote-panel h2 { color: #fff; }
.quote-panel p { color: #b7c1d4; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 1.6rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-field label {
  display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.03em;
  text-transform: uppercase; color: #9aa8c0; margin-bottom: 7px;
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid rgba(255,255,255,0.18); background: rgba(255,255,255,0.06);
  color: #fff; padding: 12px 14px; border-radius: 6px; font-family: var(--font-body); font-size: 0.94rem;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #8290a8; }
.form-field select option { color: #111; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--blue); background: rgba(255,255,255,0.1); }
.form-field textarea { resize: vertical; min-height: 110px; }

.form-field.on-light input,
.form-field.on-light select,
.form-field.on-light textarea {
  background: #fff; border-color: var(--line); color: var(--ink);
}
.form-field.on-light label { color: var(--ink-soft); }
.form-field.on-light input::placeholder, .form-field.on-light textarea::placeholder { color: #9aa3b2; }
.form-field.on-light input:focus, .form-field.on-light select:focus, .form-field.on-light textarea:focus { background: #fff; border-color: var(--blue); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.25fr; gap: 60px; }
.contact-info dl { display: grid; grid-template-columns: 120px 1fr; row-gap: 18px; margin: 0; }
.contact-info dt { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); padding-top: 2px; }
.contact-info dd { margin: 0; font-weight: 600; color: var(--navy); }

/* ---------- Real plugin contact form (Contact Form 7 / WPForms), themed
   in a flat, minimal style: borderless gray fields with in-field
   placeholder text (no visible labels), generous spacing, and a bordered
   button with a bold accent-colored left edge. Wrapped by
   innotec_contact_form() in <div class="cf7-on-light"> when placed on a
   light background (Kontakt page); left unwrapped (dark default) on the
   home page's dark quote panel. ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.wpcf7-form,
.wpforms-form {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 24px; margin-top: 1.4rem;
}
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form input[type=tel],
.wpcf7-form select, .wpcf7-form textarea,
.wpforms-form input[type=text], .wpforms-form input[type=email], .wpforms-form input[type=tel],
.wpforms-form select, .wpforms-form textarea {
  width: 100%; border: none; background: rgba(255,255,255,0.07);
  color: #fff; padding: 20px 18px; border-radius: 2px; font-family: var(--font-body); font-size: 1rem;
  transition: background 0.15s ease;
}
.wpcf7-form input[type=file], .wpforms-form input[type=file] { color: #cdd5e3; font-size: 0.9rem; padding: 14px 16px; }
.wpcf7-form input[type=file]::file-selector-button,
.wpforms-form input[type=file]::file-selector-button {
  background: rgba(255,255,255,0.14); border: none; color: #fff; font-weight: 600;
  padding: 9px 16px; border-radius: 4px; margin-right: 12px; cursor: pointer; font-family: var(--font-body);
}
.cf7-on-light .wpcf7-form input[type=file]::file-selector-button {
  background: var(--blue); color: #fff;
}
.wpcf7-form input::placeholder, .wpcf7-form textarea::placeholder,
.wpforms-form input::placeholder, .wpforms-form textarea::placeholder { color: #aab3c5; }
.wpcf7-form select, .wpforms-form select { color: #cdd5e3; }
.wpcf7-form select option, .wpforms-form select option { color: #111; }
.wpcf7-form input:focus, .wpcf7-form select:focus, .wpcf7-form textarea:focus,
.wpforms-form input:focus, .wpforms-form select:focus, .wpforms-form textarea:focus {
  outline: 2px solid var(--eyebrow-accent); outline-offset: 2px; background: rgba(255,255,255,0.11);
}
.wpcf7-form textarea, .wpforms-form textarea { resize: vertical; min-height: 230px; }
.wpcf7-form label:has(textarea), .wpcf7-form label:has(input[type=file]),
.wpcf7-form label.full, .wpforms-form .full {
  grid-column: 1 / -1;
}
.wpcf7-form br { display: none; }
.wpcf7-form .wpcf7-submit,
.wpforms-form button[type=submit] {
  grid-column: 1 / -1; justify-self: start; margin-top: 6px;
  background: transparent; border: 1px solid rgba(255,255,255,0.35); border-left: 4px solid var(--eyebrow-accent);
  color: #fff; font-size: 0.95rem; font-weight: 700; letter-spacing: normal; text-transform: none;
  padding: 16px 34px; border-radius: 0; cursor: pointer; transition: background 0.15s ease;
}
.wpcf7-form .wpcf7-submit:hover, .wpforms-form button[type=submit]:hover { background: rgba(255,255,255,0.08); }
.wpcf7-response-output { grid-column: 1 / -1; margin-top: 0.5rem !important; border-radius: 2px; }

/* Success state: form is hidden via JS (main.js) and the response message
   becomes a large centered "thank you" card with a checkmark, instead of
   the default small strip below the submit button. */
.wpcf7-response-output.wpcf7-mail-sent-ok {
  border: none !important; background: rgba(34,197,94,0.14); color: #d3f8e2;
}
.cf7-on-light .wpcf7-response-output.wpcf7-mail-sent-ok { background: #eafaf0; color: #147a3d; }
.wpcf7.cf7-success .wpcf7-response-output {
  text-align: center; padding: 52px 32px !important; border-radius: 12px;
  font-size: 1.1rem; font-weight: 600; animation: cf7FadeIn 0.5s ease;
}
.wpcf7.cf7-success .wpcf7-response-output::before {
  content: "\2713";
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin: 0 auto 18px;
  border-radius: 50%; background: #16a34a; color: #fff; font-size: 1.8rem; font-weight: 700;
}
@keyframes cf7FadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cf7-on-light .wpcf7-form input, .cf7-on-light .wpcf7-form select, .cf7-on-light .wpcf7-form textarea {
  background: #f2f4f7; color: var(--ink);
}
.cf7-on-light .wpcf7-form select { color: var(--ink); }
.cf7-on-light .wpcf7-form input[type=file] { color: var(--ink-soft); }
.cf7-on-light .wpcf7-form input::placeholder, .cf7-on-light .wpcf7-form textarea::placeholder { color: #8a93a6; }
.cf7-on-light .wpcf7-form input:focus, .cf7-on-light .wpcf7-form select:focus, .cf7-on-light .wpcf7-form textarea:focus {
  background: #eaeef4; outline-color: var(--blue);
}
.cf7-on-light .wpcf7-form .wpcf7-submit {
  background: #fff; border-color: var(--line); border-left: 4px solid var(--blue); color: var(--ink);
}
.cf7-on-light .wpcf7-form .wpcf7-submit:hover { background: #f7f9fc; }

@media (max-width: 680px) {
  .wpcf7-form, .wpforms-form { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(29,95,224,0.28), transparent 55%),
    radial-gradient(circle at 88% 100%, rgba(14,138,125,0.22), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' opacity='0.05'%3E%3Ccircle cx='24' cy='24' r='3.4'/%3E%3Cpath d='M24 24 L24 68 L68 68 L68 112'/%3E%3Ccircle cx='68' cy='112' r='3.4'/%3E%3Cpath d='M116 12 L116 56'/%3E%3Ccircle cx='116' cy='56' r='2.8'/%3E%3Cpath d='M96 90 L130 90 L130 130'/%3E%3Ccircle cx='96' cy='90' r='2.8'/%3E%3Ccircle cx='130' cy='130' r='2.8'/%3E%3Cpath d='M8 100 L44 100'/%3E%3Ccircle cx='8' cy='100' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, cover, 200px auto;
  background-repeat: no-repeat, no-repeat, repeat;
  color: #b7c1d4;
  padding: 56px 0 26px;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--blue), #0e8a7d, #e8a53d) 1;
}
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 36px; }
.footer-grid .site-logo .name { color: #fff; }
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.1em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 9px; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; display: flex; justify-content: space-between; font-size: 0.8rem; color: #8492ab; }

/* ---------- Motion ---------- */
/* Content only starts hidden if the 'js' class is present (set by an inline
   script in <head> before paint). If JavaScript fails to load or run for any
   reason, .reveal/.reveal-stagger elements are never hidden in the first
   place — this guarantees the page is never blank due to a script issue. */
.js .reveal { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 0.7s cubic-bezier(.16,.84,.44,1), transform 0.7s cubic-bezier(.16,.84,.44,1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.js .reveal-stagger > * { opacity: 0; transform: translateY(22px) scale(0.985); transition: opacity 0.65s cubic-bezier(.16,.84,.44,1), transform 0.65s cubic-bezier(.16,.84,.44,1); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0) scale(1); }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: .54s; }

.hero h1 { animation: fadeUp .8s cubic-bezier(.16,.84,.44,1) both .08s; }
.hero .lede { animation: fadeUp .8s cubic-bezier(.16,.84,.44,1) both .2s; }
.hero .actions { animation: fadeUp .8s cubic-bezier(.16,.84,.44,1) both .32s; }
.hero .eyebrow { animation: fadeUp .8s cubic-bezier(.16,.84,.44,1) both .0s; }
.hero-photo, .hero .photo { animation: fadeUpScale .9s cubic-bezier(.16,.84,.44,1) both .4s; }
@keyframes fadeUp { from { opacity:0; transform: translateY(16px);} to { opacity:1; transform: translateY(0);} }
@keyframes fadeUpScale { from { opacity:0; transform: translateY(20px) scale(0.97);} to { opacity:1; transform: translateY(0) scale(1);} }

/* Subtle scroll parallax on the hero photo — purely decorative, disabled
   under reduced-motion via the JS that sets it. */
.hero .photo[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .hero h1, .hero .lede, .hero .actions, .hero .eyebrow, .hero-photo, .hero .photo {
    animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta-desktop { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-top: 50px; }
  .trust-strip .row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-list { grid-template-columns: 1fr; }
  .service-list .row:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .service-list .row:first-child { border-top: none; }
  .industry-grid, .equipment-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .who-we-are-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-header .inner { height: 96px; }
  .site-logo img { height: 68px; }
  .nav-drawer .drawer-head img { height: 56px; }
  .trust-strip { margin-top: -50px; }
}
@media (max-width: 560px) {
  .service-grid, .industry-grid, .equipment-grid, .cert-grid, .value-grid { grid-template-columns: 1fr; }
  .trust-strip .row { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .quote-panel { padding: 30px 24px; }
  .site-header .inner { height: 80px; }
  .site-logo img { height: 54px; }
  .trust-strip { margin-top: -34px; }
  .hero-v2-inner h1, .hero-compact-inner h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue); outline-offset: 2px;
}
