/* ============================================================
   LOGIC ROTATING EQUIPMENT SOLUTIONS (LRES)
   Site-wide stylesheet — with real photos
   Palette: deep industrial navy + red accent
   ============================================================ */

:root {
  --navy-950: #061a2f;
  --navy-900: #0b2a4a;
  --navy-800: #123a63;
  --navy-700: #1a4a7a;
  --accent: #e8392a;
  --accent-dark: #c0201a;
  --accent-soft: #fde0e0;
  --ink: #1c2b3a;
  --muted: #5b6b7b;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --line: #e3e8ee;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(6, 26, 47, 0.10);
  --shadow-lg: 0 24px 60px rgba(6, 26, 47, 0.18);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --maxw: 1180px;
}

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

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1rem;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-800); text-decoration: none; transition: color .2s; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 84px 0; }

h1, h2, h3, h4 { line-height: 1.15; color: var(--navy-900); font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 12px;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  line-height: 1.2; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(244,123,32,.35); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--navy-800); }
.btn-ghost:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy-950);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand .logo-img { height: 52px; width: auto; object-fit: contain; display: block; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: #d7e2ee; padding: 10px 15px; border-radius: 8px; font-weight: 500; font-size: .97rem;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active { color: #fff; background: var(--accent); }
.nav .cta { background: var(--accent); color: #fff; padding: 10px 20px; }
.nav .cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .25s; }

/* ---------- Hero with background photo ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--navy-950);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: url('../Logic-photos/pump-room-hero.jpg') center 60%/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6,26,47,.85) 0%, rgba(6,26,47,.62) 40%, rgba(11,42,74,.25) 75%, rgba(11,42,74,.10) 100%),
    linear-gradient(180deg, rgba(6,26,47,.15) 0%, rgba(6,26,47,0) 40%, rgba(6,26,47,.45) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 110px 0 120px; max-width: 860px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  background: rgba(244,123,32,.12); padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(244,123,32,.35);
  margin-bottom: 26px;
}
.hero h1 { color: #fff; }
.hero h1 .hl { color: var(--accent); }
.hero p.lead { color: #c7d6e6; font-size: 1.18rem; margin: 24px 0 34px; max-width: 640px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-strip { position: relative; z-index: 1; background: rgba(6,26,47,.65); border-top: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); }
.hero-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; }
.hero-stat { display: flex; gap: 14px; align-items: flex-start; }
.hero-stat svg { width: 26px; height: 26px; color: var(--accent); flex: none; margin-top: 2px; }
.hero-stat strong { display: block; color: #fff; font-size: 1rem; }
.hero-stat span { color: #9fb6cc; font-size: .88rem; }

/* ---------- Generic content bands ---------- */
.band { background: var(--surface); }
.band.alt { background: var(--bg); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .lead { color: var(--muted); margin: 18px 0; }
.split ul.tick { margin-top: 22px; }
.split ul.tick li { display: flex; gap: 10px; padding: 7px 0; font-weight: 500; }
.split ul.tick svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon {
  width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 20px;
}
.card .icon svg { width: 30px; height: 30px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .95rem; }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--navy-800); }
.card .more svg { width: 16px; height: 16px; transition: .2s; }
.card:hover .more svg { transform: translateX(4px); }

/* ---------- Services list (page) ---------- */
.service-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  margin-bottom: 22px; transition: .2s;
}
.service-row:hover { border-color: var(--accent); }
.service-row .num {
  width: 64px; height: 64px; border-radius: 12px; background: var(--navy-900); color: var(--accent);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 800;
}
.service-row h3 { margin-bottom: 6px; }
.service-row p { color: var(--muted); }
.service-row ul.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.service-row ul.tags li { background: var(--bg); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--navy-800); }

/* ---------- Products ---------- */
.product-group { margin-bottom: 60px; }
.product-group > h2 { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.product-group > h2 .chip {
  font-size: .78rem; background: var(--accent-soft); color: var(--accent-dark);
  padding: 5px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .04em;
}
.product-group > p { color: var(--muted); max-width: 720px; margin-bottom: 26px; }
.product-sub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.product-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px;
  text-align: center; transition: .2s; overflow: hidden;
}
.product-tile:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }
.product-tile .ic { width: 52px; height: 52px; margin: 0 auto 12px; color: var(--navy-800); }
.product-tile .ic svg { width: 100%; height: 100%; }
.product-tile strong { display: block; font-size: .95rem; color: var(--navy-900); }
.product-tile img.product-photo {
  width: 100%; height: 140px; object-fit: contain; margin: 0 auto 14px;
  border-radius: 8px; background: var(--bg);
}

/* KZN agencies: one panel per manufacturer — logo, blurb, then its products */
.agency {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 28px;
}
.agency:last-child { margin-bottom: 0; }
.agency-head { display: flex; align-items: center; gap: 28px; margin-bottom: 24px; }
.agency-logo {
  flex: none; width: 240px; height: 116px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 22px; transition: .25s ease;
}
.agency-logo:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.agency-logo img { max-width: 100%; max-height: 86px; width: auto; height: auto; object-fit: contain; }
.agency-head .chip {
  display: inline-block; font-size: .74rem; background: var(--accent-soft); color: var(--accent-dark);
  padding: 4px 11px; border-radius: 999px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.agency-head h3 { font-size: 1.35rem; color: var(--navy-900); margin: 8px 0 6px; }
.agency-head p { color: var(--muted); max-width: 680px; }
.product-tile small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }

/* Product category hero banner */
.product-banner {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 30px;
  height: 320px;
}
.product-banner img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,26,47,.85) 0%, rgba(6,26,47,.20) 50%, transparent 100%);
}
.product-banner .container { position: relative; z-index: 1; height: 100%; display: flex; align-items: flex-end; padding-bottom: 36px; }
.product-banner h2 { color: #fff; margin-bottom: 4px; }
.product-banner p { color: #c7d6e6; font-size: 1rem; }

/* ---------- Brand strip ---------- */
.brand-grid { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.brand-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 26px;
  font-weight: 700; color: var(--navy-800); font-size: 1.05rem; box-shadow: var(--shadow);
}
.brand-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* Logo images in grids */
.logo-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.logo-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 24px; box-shadow: 0 2px 8px rgba(0,0,0,.06); transition: .25s ease;
  display: flex; align-items: center; justify-content: center; color: inherit;
  text-decoration: none; min-width: 120px;
}
.logo-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.logo-item:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.logo-item img { height: 50px; width: auto; object-fit: contain; filter: grayscale(0) brightness(1); transition: .25s ease; }
.logo-item:hover img { filter: brightness(1.05); transform: scale(1.05); }
.logo-item.logo-sm { padding: 14px 20px; min-width: 100px; }
.logo-item.logo-sm img { height: 42px; }

/* Scrolling logo strips (clients + brands) — main.js fills the track and adds
   .is-running. Without JS (or with reduced motion) it stays a centred, wrapping row. */
.logo-track { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; }

/* Uniform logo tiles in full colour; hovering lifts one */
.logo-marquee .logo-item {
  position: relative; width: 172px; height: 86px; padding: 16px 22px; min-width: 0; flex: none;
  border-radius: 14px; box-shadow: none;
  transition: transform .35s ease, box-shadow .35s, border-color .35s;
}
.logo-marquee .logo-item img { height: auto; width: auto; max-height: 50px; max-width: 100%; }
.logo-marquee .logo-item:hover,
.logo-marquee .logo-item:focus-visible {
  transform: translateY(-3px);
  border-color: var(--accent); box-shadow: 0 10px 26px -12px rgba(232,57,42,.55);
}
.logo-marquee .logo-item:hover img { transform: none; }
.logo-marquee div.logo-item:hover { transform: none; border-color: var(--line); box-shadow: none; }
/* linked logos get a small "opens website" cue */
.logo-marquee a.logo-item::after {
  content: "\2197"; position: absolute; top: 5px; right: 8px; font-size: 12px; line-height: 1;
  color: var(--muted); opacity: 0; transform: translate(-2px, 2px); transition: opacity .3s, transform .3s;
}
.logo-marquee a.logo-item:hover::after,
.logo-marquee a.logo-item:focus-visible::after { opacity: 1; transform: none; }

/* Running: breaks out of the container to span the full screen, edges fade out */
.logo-marquee.is-running {
  margin-inline: calc(50% - 50vw); padding: 10px 0 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
section:has(.logo-marquee.is-running) { overflow-x: clip; }
.logo-marquee.is-running .logo-track {
  flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content;
  animation: logo-scroll var(--marquee-duration, 40s) linear infinite reverse; /* moves left -> right */
}
.logo-marquee.is-running .logo-item { margin-right: 18px; }
.logo-marquee.is-running:hover .logo-track,
.logo-marquee.is-running:focus-within .logo-track { animation-play-state: paused; }
/* display-only strips (clients, brands) keep scrolling under the mouse */
.logo-marquee.no-pause.is-running:hover .logo-track,
.logo-marquee.no-pause.is-running:focus-within .logo-track { animation-play-state: running; }
@keyframes logo-scroll { to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .logo-marquee .logo-item { width: 140px; height: 72px; padding: 12px 16px; }
  .logo-marquee .logo-item img { max-height: 42px; }
}

/* ---------- Stats band ---------- */
.stats { background: var(--navy-900); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { color: #c7d6e6; margin-top: 8px; font-size: .95rem; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--navy-900), var(--navy-800)); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #c7d6e6; max-width: 620px; margin: 0 auto 30px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact strip on home ---------- */
.contact-strip { background: var(--surface); border-top: 4px solid var(--accent); }
.contact-strip .container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.contact-strip h2 { font-size: 1.6rem; margin-bottom: 6px; }
.contact-strip p { color: var(--muted); }

/* ---------- Workshop photo split ---------- */
.photo-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.photo-split .photo-frame {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.photo-split .photo-frame img { width: 100%; height: 400px; object-fit: cover; display: block; }
.photo-split .photo-frame .caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 14px 20px;
  background: linear-gradient(transparent, rgba(6,26,47,.85));
  color: #c7d6e6; font-size: .85rem; font-weight: 600;
}

/* ---------- Photo gallery grid ---------- */
.photo-gallery {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
}
.photo-gallery .gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
}
.photo-gallery .gallery-item.tall { grid-row: 1 / 3; }
.photo-gallery .gallery-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .4s ease;
}
.photo-gallery .gallery-item:hover img { transform: scale(1.04); }
.photo-gallery .gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 14px;
  background: linear-gradient(transparent, rgba(6,26,47,.85));
  color: #c7d6e6; font-size: .8rem; font-weight: 600;
}
.photo-gallery .gallery-item .badge-overlay {
  position: absolute; top: 12px; right: 12px;
  background: rgba(255,255,255,.95); border-radius: 8px; padding: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.photo-gallery .gallery-item .badge-overlay img { height: 50px; width: auto; }

/* ---------- Feature cards (about section) ---------- */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.feature-card {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: .2s; box-shadow: var(--shadow);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
  width: 38px; height: 38px; border-radius: 8px; flex: none;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-card strong { display: block; font-size: .9rem; color: var(--navy-900); line-height: 1.2; }
.feature-card span { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; line-height: 1.3; }

/* Mini stats strip inside about section */
.mini-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 24px;
}
.mini-stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; text-align: center; box-shadow: var(--shadow);
  transition: .2s;
}
.mini-stat:hover { border-color: var(--accent); transform: translateY(-2px); }
.mini-stat .num { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.mini-stat .label { color: var(--muted); font-size: .82rem; margin-top: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #9fb6cc; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.footer p { font-size: .92rem; }
.footer .brand { margin-bottom: 16px; }
.footer .brand .logo-img { height: 58px; }
.footer ul li { padding: 5px 0; }
.footer ul a { color: #9fb6cc; }
.footer ul a:hover { color: #fff; }
.footer .fb { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: .92rem; }
.footer .fb svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.footer .fb a { color: #cfdbe8; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .85rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: #fff; padding: 74px 0 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .4;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 26px 26px;
}
.page-hero .container { position: relative; }
.page-hero .crumb { font-size: .85rem; color: #9fb6cc; margin-bottom: 14px; }
.page-hero .crumb a { color: var(--accent); }
.page-hero h1 { color: #fff; }
.page-hero p { color: #c7d6e6; max-width: 640px; margin-top: 16px; font-size: 1.08rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: start; }
.contact-card { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.contact-card .ic { width: 46px; height: 46px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 3px; }
.contact-card p, .contact-card a { color: var(--muted); font-size: .95rem; }
.contact-card a { color: var(--navy-800); font-weight: 600; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 6px; }
.form > p { color: var(--muted); margin-bottom: 24px; font-size: .95rem; }
.form label { display: block; font-weight: 600; font-size: .9rem; margin: 16px 0 6px; color: var(--navy-900); }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 9px; font-family: inherit;
  font-size: .98rem; color: var(--ink); background: #fff; transition: .15s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(244,123,32,.15); }
.form textarea { min-height: 130px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 12px; }

/* ---------- FAQ / misc ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 6px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 600; color: var(--navy-900); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 16px; }

/* ---------- BEE badge ---------- */
.bee-badge { display: inline-flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; box-shadow: var(--shadow); margin-top: 20px; }
.bee-badge img { height: 80px; width: auto; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 2000;
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px; text-align: center; padding: 24px;
  transition: opacity .6s ease, visibility .6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader.hidden { display: none; }

/* Company logo — the arrows in the "O" spin (animation lives in the SVG) */
.loader-logo {
  width: min(440px, 80vw); height: auto;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,.35));
  animation: loader-in .7s ease-out both;
}
@keyframes loader-in {
  from { opacity: 0; transform: translateY(8px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.loader-text .sub {
  color: #9fb6cc; font-size: .82rem; letter-spacing: .22em;
  text-transform: uppercase; font-weight: 600;
}
.loader-text .bar {
  width: 220px; height: 4px; border-radius: 999px; margin: 22px auto 0;
  background: rgba(255,255,255,.12); overflow: hidden; position: relative;
}
.loader-text .bar::after {
  content: ""; position: absolute; top: 0; left: -40%; height: 100%; width: 40%;
  border-radius: 999px; background: #e8392a;
  animation: load-bar 1.4s ease-in-out infinite;
}
@keyframes load-bar {
  0% { left: -40%; }
  100% { left: 100%; }
}

/* ============================================================
   FULLSCREEN LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 1500;
  background: rgba(4, 14, 26, .95);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
  padding: 24px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-stage {
  position: relative; max-width: 92vw; max-height: 88vh;
  display: flex; flex-direction: column; align-items: center;
}
/* Shown at its real size at most (never stretched, so it stays sharp); big photos shrink to fit */
.lightbox-stage img {
  width: auto; height: auto; max-width: 92vw; max-height: 78vh; object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.55));
}
.lightbox-stage .caption {
  color: #c7d6e6; font-size: .95rem; font-weight: 600;
  margin-top: 18px; text-align: center; max-width: 90vw;
}
.lightbox-stage .count {
  color: #6f8296; font-size: .82rem; margin-top: 6px; letter-spacing: .08em;
}
.lightbox-close {
  position: absolute; top: -14px; right: -14px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; transition: .2s;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.lightbox-close:hover { background: var(--accent-dark); transform: scale(1.08); }
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center; transition: .2s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: var(--accent); border-color: var(--accent); }
.lightbox-prev { left: 6px; }
.lightbox-next { right: 6px; }
body.lb-lock { overflow: hidden; }

/* Lightbox targets: product tiles / photos should hint they are clickable */
.lb-target { cursor: zoom-in; }
.product-tile.lb-target { position: relative; }
.product-tile.lb-target::after {
  content: ""; position: absolute; top: 12px; right: 12px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--navy-900) no-repeat center / 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E");
  opacity: 0; transform: scale(.8); transition: .2s ease;
}
.product-tile.lb-target:hover::after,
.product-tile.lb-target:focus-visible::after { opacity: 1; transform: none; }
.product-tile.lb-target:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (hover: none) { .product-tile.lb-target::after { opacity: .85; transform: none; } }

@media (max-width: 640px) {
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-close { top: -8px; right: -8px; width: 40px; height: 40px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .product-sub { grid-template-columns: repeat(2, 1fr); }
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .photo-split { grid-template-columns: 1fr; gap: 36px; }
  .contact-strip .container, .contact-grid { grid-template-columns: 1fr; }
  .hero-strip .container { grid-template-columns: repeat(2, 1fr); }
  .mini-stats { grid-template-columns: repeat(2, 1fr); }
  .photo-gallery { grid-template-rows: 180px 180px; }

  .nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 320px);
    background: var(--navy-950); flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 90px 26px 30px; gap: 6px; transform: translateX(100%); transition: transform .3s ease; z-index: 99;
    box-shadow: -10px 0 40px rgba(0,0,0,.35);
  }
  .nav.open { transform: translateX(0); }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .nav-toggle { display: block; z-index: 101; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .product-sub { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 80px 0 90px; }
  .hero-bg::after { background: linear-gradient(180deg, rgba(6,26,47,.55) 0%, rgba(6,26,47,.68) 50%, rgba(6,26,47,.80) 100%); }
  .form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .product-banner { height: 220px; }
  .agency { padding: 20px; }
  .agency-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .agency-logo { width: 200px; height: 96px; }
  .agency-logo img { max-height: 66px; }
  .product-banner h2 { font-size: 1.4rem; }
  .photo-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-gallery .gallery-item.tall { grid-row: auto; }
  .photo-gallery .gallery-item { height: 200px; }
  .mini-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mini-stat { padding: 12px; }
  .mini-stat .num { font-size: 1.2rem; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Document cards ---------- */
.doc-card { display: flex; align-items: flex-start; gap: 20px; text-decoration: none; color: inherit; }
.doc-card:hover { border-color: var(--accent); }
.doc-icon {
  width: 52px; height: 52px; border-radius: 12px; flex: none;
  background: var(--bg); color: var(--navy-800);
  display: grid; place-items: center;
}
.doc-icon svg { width: 26px; height: 26px; }
.doc-icon--accent { background: var(--accent-soft); color: var(--accent); }
.doc-card h3 { margin-bottom: 6px; }
.doc-card p { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.doc-meta { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--accent); letter-spacing: .02em; }

/* ---------- Doc card hover tooltip ---------- */
.doc-card { position: relative; }
.doc-card[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy-900); color: #fff; font-size: .82rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  transform: translateX(-50%) translateY(6px);
  z-index: 10;
}
.doc-card[data-tooltip]:hover::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
