:root {
  --navy: #0d1726;
  --blue: #16304f;
  --blue-bright: #2a59a0;
  --red: #cb2330;
  --red-dark: #931820;
  --accent: #e23a45;
  --ink: #1a222e;
  --muted: #586477;
  --bg: #e7ecf3;
  --bg-alt: #d9e0ea;
  --line: #c7d1e0;
  --radius: 14px;
  --shadow: 0 14px 36px rgba(6, 16, 32, .18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

.container { width: min(1140px, 92%); margin: 0 auto; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  border: 2px solid var(--red);
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; }
.btn-full { width: 100%; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* Top bar */
.topbar { background: var(--navy); color: #cdd9ec; font-size: .86rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.topbar-phone { color: #fff; font-weight: 600; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 58px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-weight: 600; color: var(--ink); }
.nav a:hover { color: var(--blue); }
.nav-toggle { display: none; font-size: 1.6rem; background: none; border: none; cursor: pointer; color: var(--navy); }

/* Hero */
.hero {
  background:
    linear-gradient(150deg, rgba(8,14,26,.96) 0%, rgba(10,20,36,.90) 45%, rgba(16,30,52,.80) 100%),
    url('images/hero-commercial.jpg') center/cover no-repeat;
  color: #fff;
  padding: 96px 0 86px;
}
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .85rem; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.12; font-weight: 800; }
.hero-sub { margin: 20px 0 30px; font-size: 1.15rem; max-width: 620px; color: #dbe6f6; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 38px; margin-top: 48px; flex-wrap: wrap; }
.hero-trust div { display: flex; flex-direction: column; }
.hero-trust strong { font-size: 1.9rem; color: #fff; }
.hero-trust span { color: #b9c9e2; font-size: .9rem; }

/* Sections */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: .82rem; }
.section-eyebrow.light { color: var(--accent); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; color: var(--navy); margin: 8px 0 12px; }
.section-title.light { color: #fff; }
.section-lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 40px; }

/* Cards grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdd9ec; }
.card-icon { font-size: 2.2rem; margin-bottom: 12px; }
.card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); }

/* About */
.about-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--muted); margin-bottom: 16px; }
.about-text .btn { margin-top: 10px; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.6rem; color: var(--blue); }
.stat span { color: var(--muted); font-size: .92rem; }

/* Values */
.value { padding: 26px; border-left: 4px solid var(--accent); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.value h3 { color: var(--navy); margin-bottom: 8px; }
.value p { color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin: 0; aspect-ratio: 3 / 4; }
.shot-wide { grid-column: span 2; aspect-ratio: 3 / 2; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.06); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px; color: #fff; font-weight: 600;
  background: linear-gradient(transparent, rgba(13,20,38,.82));
}

/* Suppliers strip */
.suppliers { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 34px 0; }
.suppliers-label { text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-weight: 600; margin-bottom: 22px; }
.supplier-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; }
.supplier-logos img { height: 42px; width: auto; filter: grayscale(1); opacity: .7; transition: filter .2s ease, opacity .2s ease; }
.supplier-logos img:hover { filter: grayscale(0); opacity: 1; }

/* Footer logo */
.footer-logo { background: #fff; padding: 14px 20px; border-radius: 12px; display: inline-block; }
.footer-logo img { height: 70px; width: auto; display: block; }

/* Contact */
.section-dark { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; }
.contact-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.contact-lead { color: #dbe6f6; margin: 14px 0 24px; }
.contact-list { list-style: none; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: 1.08rem; }
.contact-list a:hover { color: var(--accent); }
.contact-form { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 13px 14px; margin-bottom: 14px;
  border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue-bright); border-color: transparent; }
.form-note { color: var(--muted); font-size: .82rem; text-align: center; margin-top: 10px; }

/* Footer */
.footer { background: var(--navy); color: #cdd9ec; padding: 44px 0; text-align: center; }
.footer-inner { display: grid; gap: 10px; justify-items: center; }
.brand-footer { color: #fff; }
.footer .muted { color: #8da3c4; font-size: .88rem; }
.footer-links a { color: #fff; text-decoration: underline; text-underline-offset: 2px; font-size: .9rem; }
.footer-links a:hover { color: var(--accent); }

/* Legal / statement pages */
.legal { max-width: 760px; }
.legal h2 { color: var(--navy); font-size: 1.25rem; margin: 26px 0 8px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal ul { color: var(--muted); margin: 0 0 14px 20px; }
.legal li { margin-bottom: 6px; }
.legal a:not(.btn) { color: var(--red); font-weight: 600; }
.legal .muted-note { font-size: .88rem; font-style: italic; margin: 20px 0; }

/* Floating call button (mobile) */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #1a2233; font-size: 1.5rem;
  display: none; place-items: center; box-shadow: var(--shadow);
}

/* ---- Animations ---------------------------------------------------- */
/* Scroll-reveal (only active once JS adds .anim-ready, so content still
   shows if JavaScript is off). */
body.anim-ready .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
body.anim-ready .reveal.in { opacity: 1; transform: none; }

/* Hero entrance (pure CSS, runs on load) */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
.hero .eyebrow  { animation: fadeUp .7s .05s both; }
.hero h1        { animation: fadeUp .8s .18s both; }
.hero-sub       { animation: fadeUp .8s .34s both; }
.hero-cta       { animation: fadeUp .8s .50s both; }
.hero-trust     { animation: fadeUp .8s .66s both; }
.hero-trust strong { display: inline-block; }

/* Pulsing call-to-action */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200, 32, 43, .55); }
  70%  { box-shadow: 0 0 0 18px rgba(200, 32, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 32, 43, 0); }
}
.btn-pulse { animation: pulse 2.4s infinite; }

/* Floating button gentle bob */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.float-call { animation: bob 2.8s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  body.anim-ready .reveal { opacity: 1; transform: none; transition: none; }
  .hero .eyebrow, .hero h1, .hero-sub, .hero-cta, .hero-trust,
  .btn-pulse, .float-call { animation: none; }
}

/* ---- Address / map ------------------------------------------------- */
.address-bar { background: var(--bg-alt); border-top: 1px solid var(--line); }
.address-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 56px 0; }
.address-card h3 { color: var(--navy); font-size: 1.5rem; margin-bottom: 10px; }
.address-card p { color: var(--muted); margin-bottom: 8px; }
.address-card .addr-line { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.address-card a { color: var(--red); font-weight: 600; }
.address-card a.btn { color: #fff; }
.address-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 280px; }
.address-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; display: block; }

/* Responsive */
@media (max-width: 860px) {
  .nav { position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; gap: 0;
         border-bottom: 1px solid var(--line); padding: 10px 0; display: none; }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 12px 6%; }
  .nav-toggle { display: block; }
  .grid, .grid-3, .about-inner, .contact-inner, .about-stats { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .shot, .shot-wide { grid-column: span 1; aspect-ratio: 3 / 2; }
  .address-inner { grid-template-columns: 1fr; }
  .supplier-logos { gap: 26px; }
  .supplier-logos img { height: 34px; }
  .brand-logo { height: 46px; }
  .hero { padding: 64px 0 56px; }
  .float-call { display: grid; }
}

/* ============================================================
   Extra polish: header shrink, hover effects, new sections,
   lightbox pop-up, animated counters, back-to-top
   ============================================================ */

/* Header shrinks as you scroll */
.header { transition: box-shadow .25s ease, background .25s ease; }
.header-inner { transition: padding .25s ease; }
.brand-logo { transition: height .25s ease; }
.header.scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, .12); }
.header.scrolled .header-inner { padding: 7px 0; }
.header.scrolled .brand-logo { height: 46px; }

/* Animated underline under nav links */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--red); transition: width .25s ease;
}
.nav a:not(.btn):hover::after { width: 100%; }

/* Cards: top accent line + icon lift on hover */
.card { position: relative; overflow: hidden; }
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--red), var(--blue));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-icon { transition: transform .3s ease; }
.card:hover .card-icon { transform: translateY(-4px) scale(1.08); }

/* Buttons get a sweeping shine on hover */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }
.btn-light { background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: #f0f2f6; border-color: #f0f2f6; color: var(--navy); }

/* Process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: 14px;
}
.step h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.15rem; }
.step p { color: var(--muted); }

/* Stats banner with big counting numbers */
.stats-banner { background: linear-gradient(160deg, var(--navy), var(--blue)); color: #fff; padding: 62px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-big strong { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; }
.stat-big span { color: #b9c9e2; font-size: .95rem; }

/* Call-to-action banner */
.cta-banner { background: linear-gradient(120deg, var(--red), var(--red-dark)); color: #fff; padding: 54px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.cta-inner p { color: #ffe3e4; margin-top: 6px; }

/* Lightbox pop-up */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(10, 16, 30, .92);
  display: flex; align-items: center; justify-content: center; padding: 4vw;
  opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw; max-height: 88vh; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  transform: scale(.92); transition: transform .3s ease;
}
.lightbox.open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 16px; right: 24px; background: none; border: none;
  color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer;
}
.shot { cursor: pointer; }
.shot::after {
  content: "🔍"; position: absolute; top: 12px; right: 12px;
  opacity: 0; transition: opacity .2s ease; font-size: 1.1rem;
}
.shot:hover::after { opacity: .9; }

/* Back-to-top button */
.to-top {
  position: fixed; left: 18px; bottom: 82px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 1.3rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--blue-bright); }

@media (max-width: 860px) {
  .steps, .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .to-top { display: none; }          /* keep things clear on mobile */
  .float-call { bottom: 88px; }       /* sit above the chat button */
}
@media (max-width: 520px) {
  .steps, .stats-grid { grid-template-columns: 1fr; }
}

/* ---- Chat assistant ---- */
.chat-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff;
  font-size: 1.6rem; box-shadow: 0 10px 28px rgba(200, 32, 43, .45);
  transition: transform .2s ease, opacity .2s ease; animation: pulse 2.6s infinite;
}
.chat-launch:hover { transform: scale(1.08); }
.chat-launch.hide { transform: scale(0); opacity: 0; pointer-events: none; }

.chat-widget {
  position: fixed; right: 18px; bottom: 18px; z-index: 81;
  width: min(360px, calc(100vw - 36px)); height: min(540px, calc(100vh - 90px));
  background: #fff; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(11, 37, 69, .3);
  opacity: 0; transform: translateY(20px) scale(.96); transform-origin: bottom right;
  pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.chat-widget.open { opacity: 1; transform: none; pointer-events: auto; }
.chat-head {
  display: flex; align-items: center; gap: 10px; padding: 13px 16px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
}
.chat-head img { height: 34px; background: #fff; border-radius: 8px; padding: 3px 6px; }
.chat-head strong { display: block; font-size: .96rem; }
.chat-head span { font-size: .74rem; color: #b9c9e2; }
.chat-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--bg-alt); display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.msg.user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { color: var(--red); font-weight: 600; }
.msg.user a { color: #fff; }
.chat-action { align-self: flex-start; background: var(--red); color: #fff; border: none; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .88rem; cursor: pointer; }
.chat-action:hover { background: var(--red-dark); }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 1px; background: #9fb0c9; border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat-quick { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.chip { background: #eef3fa; border: 1px solid var(--line); color: var(--navy); border-radius: 16px; padding: 6px 12px; font-size: .82rem; cursor: pointer; transition: background .2s ease; }
.chip:hover { background: #dde8f6; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; font: inherit; }
.chat-input input:focus { outline: 2px solid var(--blue-bright); border-color: transparent; }
.chat-input button { background: var(--red); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.chat-input button:hover { background: var(--red-dark); }
@media (prefers-reduced-motion: reduce) { .chat-launch { animation: none; } }

/* ---- Accessibility menu ---- */
.a11y-launch {
  position: fixed; left: 18px; bottom: 18px; z-index: 82;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: #1559b3; color: #fff; font-size: 1.5rem; display: grid; place-items: center;
  box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease;
}
.a11y-launch:hover { background: #0f4a99; transform: scale(1.08); }
.a11y-panel {
  position: fixed; left: 18px; bottom: 80px; z-index: 83;
  width: min(300px, calc(100vw - 36px)); background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(8, 16, 32, .3);
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom left;
  pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.a11y-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #1559b3; color: #fff; }
.a11y-close { background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.a11y-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; }
.a11y-options button {
  background: #eef3fa; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 8px; font-size: .82rem; cursor: pointer; color: var(--navy); text-align: center;
}
.a11y-options button:hover { background: #dde8f6; }
.a11y-options button.active { background: #1559b3; color: #fff; border-color: #1559b3; }
.a11y-reset { grid-column: span 2; background: #fbe6e6 !important; color: #a51820 !important; }

/* Accessibility display modes (toggled on <html>) */
html.a11y-bigtext { font-size: 118%; }
html.a11y-contrast { --ink: #000; --muted: #161616; --line: #222; }
html.a11y-contrast .section-title, html.a11y-contrast .card h3,
html.a11y-contrast .step h3, html.a11y-contrast .value h3 { color: #000; }
html.a11y-links a:not(.btn):not(.chat-action):not(.a11y-launch) {
  text-decoration: underline !important; text-underline-offset: 2px;
  background: #fff7b0; color: #1a1a1a !important; padding: 0 2px; border-radius: 3px;
}
html.a11y-readable, html.a11y-readable * { font-family: Verdana, Tahoma, Geneva, sans-serif !important; }
html.a11y-spacing * { line-height: 1.85 !important; letter-spacing: .02em; word-spacing: .08em; }
html.a11y-cursor, html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M5 3 L5 33 L13 25 L19 37 L25 34 L19 22 L31 22 Z' fill='black' stroke='white' stroke-width='2'/%3E%3C/svg%3E") 5 3, auto !important;
}
html.a11y-motion { scroll-behavior: auto; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important;
}

/* ============================================================
   IMMERSIVE 3D LAYER — depth, tilt, parallax, living hero
   Pure CSS + JS. No libraries, no runtime API calls.
   Fully disabled by "Pause Motion" (html.a11y-motion) and by
   the OS "reduce motion" setting (see the media query at the end).
   ============================================================ */

/* ---- Living hero background: aurora glow + floating orbs ---- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-inner { position: relative; z-index: 2; }

.hero-bg {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
  perspective: 900px;
  pointer-events: none;
}

/* Soft glowing colour orbs that slowly drift for a deep, alive feel */
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(48px); opacity: .55;
  will-change: transform;
}
.orb-1 { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle at 30% 30%, #2a59a0, transparent 70%);
  animation: drift1 18s ease-in-out infinite; }
.orb-2 { width: 380px; height: 380px; top: 40px; right: -90px;
  background: radial-gradient(circle at 40% 40%, #e23a45, transparent 70%);
  opacity: .45; animation: drift2 22s ease-in-out infinite; }
.orb-3 { width: 320px; height: 320px; bottom: -110px; left: 30%;
  background: radial-gradient(circle at 50% 50%, #1559b3, transparent 70%);
  animation: drift3 26s ease-in-out infinite; }
.orb-4 { width: 220px; height: 220px; top: 30%; left: 55%;
  background: radial-gradient(circle at 50% 50%, #4f8fd6, transparent 70%);
  opacity: .35; animation: drift1 20s ease-in-out infinite reverse; }

@keyframes drift1 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(40px,-30px,0) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(-50px,26px,0) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate3d(0,0,0) scale(1); } 50% { transform: translate3d(30px,-40px,0) scale(1.15); } }

/* Perspective "floor" grid receding into the distance under the hero */
.hero-grid-floor {
  position: absolute; left: -25%; right: -25%; bottom: -10%; height: 60%;
  background-image:
    linear-gradient(rgba(120,170,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,.16) 1px, transparent 1px);
  background-size: 46px 46px;
  transform: perspective(500px) rotateX(62deg);
  transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 78%);
          mask-image: linear-gradient(to top, #000 0%, transparent 78%);
  opacity: .7;
  animation: floorflow 8s linear infinite;
}
@keyframes floorflow { from { background-position: 0 0; } to { background-position: 0 46px; } }

/* ---- Intro splash: dark screen, copper pipe bursts as you scroll ---- */
.intro {
  position: relative; height: 200vh;   /* scroll distance builds the system */
  background: transparent;              /* let the fixed 3D pipes show on the home screen */
}
.intro-stage {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; isolation: isolate;
  background: transparent;
}
.intro-stage .hero-bg { z-index: 0; }

/* 3D text wordmark — "Expert" red, "Plumbing" white, extruded + cursor tilt */
.intro-logo {
  position: relative; z-index: 2; perspective: 800px; text-align: center;
  animation: introRise 1s .1s both, introFloat 6s ease-in-out 1.1s infinite;
}
/* Real logo PNG — already transparent; float it on the dark with a soft glow */
.intro-logo img {
  height: min(240px, 52vw); width: auto; display: block;
  filter:
    drop-shadow(0 0 1.5px rgba(255, 255, 255, .8))
    drop-shadow(0 10px 22px rgba(0, 0, 0, .55))
    drop-shadow(0 0 34px rgba(120, 160, 255, .3));
  transform: rotateX(var(--lx, 0deg)) rotateY(var(--ly, 0deg));
  transform-style: preserve-3d; transition: transform .18s ease;
}
@keyframes introRise { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes introFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2; display: grid; justify-items: center; gap: 2px;
  color: #cdd9ec; font-size: .78rem; letter-spacing: 1.5px; text-transform: uppercase;
  animation: cueFade 1.2s .8s both;
}
.scroll-cue-chev { font-size: 1.9rem; line-height: 1; animation: cueBob 1.8s ease-in-out infinite; }
@keyframes cueBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@keyframes cueFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-chev, .intro-logo { animation: none; } }

/* WebGL 3D canvas — sits above the CSS orbs, below the hero text */
.hero-3d {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; display: block;
  pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;   /* fades in once the scene is ready */
}
.hero-3d.ready { opacity: 1; }

/* Hero text gets a subtle depth shadow so it floats above the scene */
.hero h1 { text-shadow: 0 10px 40px rgba(0,0,0,.45); }
.hero-trust strong { text-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* ---- 3D tilt: cards / steps / stats / photos react to the cursor ---- */
/* Perspective lives on the parent so children tilt in real depth. */
.grid, .grid-3, .steps, .gallery, .about-stats { perspective: 1100px; }

.tilt {
  transform-style: preserve-3d;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
  will-change: transform;
}
.tilt.tilting { transition: box-shadow .3s ease; }   /* JS drives transform live while hovering */

/* Lift the inner content off the surface for a layered, tactile feel */
.card .card-icon, .card h3, .step .step-num, .step h3, .stat strong {
  transform: translateZ(38px);
  transition: transform .3s ease;
}
.card h3, .step h3 { transform: translateZ(24px); }

/* A soft moving glare that tracks the cursor across tilted surfaces */
.tilt { position: relative; }
.tilt .glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%),
    rgba(255,255,255,.35), transparent 45%);
  opacity: 0; transition: opacity .3s ease; z-index: 3;
}
.tilt.tilting .glare { opacity: 1; }

/* Deeper, richer float shadows on the interactive surfaces */
.card, .step, .stat, .value { box-shadow: 0 10px 30px rgba(9,20,45,.10); }
.card.tilting, .step.tilting, .stat.tilting, .value.tilting {
  box-shadow: 0 30px 60px rgba(9,20,45,.28);
}

/* Work photos: pop forward in 3D on hover */
.shot { transform-style: preserve-3d; }
.shot.tilting { box-shadow: 0 34px 70px rgba(9,20,45,.4); }

/* ---- Scroll parallax hooks (JS sets --sy) ---- */
.parallax-slow { will-change: transform; }

/* ---- Respect reduced-motion & the on-page Pause Motion toggle ---- */
@media (prefers-reduced-motion: reduce) {
  .orb, .hero-grid-floor { animation: none; }
  .tilt { transition: none; }
  .tilt .glare { display: none; }
}
html.a11y-motion .orb,
html.a11y-motion .hero-grid-floor { animation: none !important; }
html.a11y-motion .card .card-icon, html.a11y-motion .card h3,
html.a11y-motion .step .step-num, html.a11y-motion .step h3,
html.a11y-motion .stat strong { transform: none !important; }
html.a11y-motion .tilt .glare { display: none !important; }

/* ============================================================
   DARK MODERN THEME  +  3D pop-up scroll reveal
   ============================================================ */
:root {
  --navy: #0b1220;
  --blue-bright: #3f7fe0;
  --ink: #e9eef7;
  --muted: #9fb0c9;
  --bg: #080d15;
  --bg-alt: #0d1522;
  --line: #223148;
  --surface: #121c2b;
  --shadow: 0 18px 44px rgba(0, 0, 0, .55);
}
body { background: var(--bg); color: var(--ink); }

/* Headings & text readable on dark */
.section-title { color: var(--ink); }
.section-eyebrow { color: #5f9bff; }
.card h3, .step h3, .value h3, .address-card h3 { color: #eef3fb; }
.stat strong { color: #6fa8ff; }

/* Card / panel surfaces */
.card, .step, .stat { background: var(--surface); border-color: var(--line); }
.card:hover { border-color: #33507e; }
.value { background: var(--surface); }
.section-alt { background: var(--bg-alt); }

/* Header → dark glass with a text brandmark */
.header { background: rgba(9, 14, 24, .82); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header.scrolled { box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }
.nav a { color: var(--ink); }
.nav a:hover { color: #6fa8ff; }
.nav-toggle { color: var(--ink); }
.brandmark { font-weight: 800; font-size: 1.5rem; letter-spacing: -.5px;
  color: var(--ink); transition: font-size .25s ease; }
.bm-red { color: #ef3b47; }
.header.scrolled .brandmark { font-size: 1.28rem; }
.brand-logo { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .55)) drop-shadow(0 2px 6px rgba(0, 0, 0, .5)); }
@media (max-width: 860px) { .nav { background: #0b1220; border-bottom-color: var(--line); } }

/* Suppliers → real logos on clean white chips so they stay legible on dark */
.suppliers { background: var(--surface); border-color: var(--line); }
.suppliers-label { color: var(--muted); }
.supplier-logos img { background: #fff; padding: 10px 16px; border-radius: 10px;
  filter: none; opacity: .92; height: 56px; }
.supplier-logos img:hover { opacity: 1; }

/* Contact form → dark glass */
.contact-form { background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.contact-form input, .contact-form textarea {
  background: rgba(255, 255, 255, .05); color: var(--ink); border-color: var(--line); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #8296b3; }
.form-note { color: var(--muted); }

/* Address bar */
.address-bar { background: var(--bg-alt); border-color: var(--line); }
.address-card .addr-line { color: var(--ink); }

/* ---- 3D pop-up scroll reveal — each section rises & rotates into view ---- */
body.anim-ready .reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(14deg) translateY(46px) scale(.96);
  transform-origin: 50% 100%;
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
body.anim-ready .reveal.in {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  body.anim-ready .reveal { opacity: 1; transform: none; transition: none; }
}
html.a11y-motion body.anim-ready .reveal { opacity: 1; transform: none; transition: none; }

/* ---- Continuous 3D plumbing background (page3d.js) ---- */
#page3d {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: 0;   /* JS fades it in past the intro */
}
/* All content sits above the fixed 3D layer */
.topbar, .intro, .hero, .section, .suppliers, .stats-banner,
.cta-banner, .address-bar, .footer { position: relative; z-index: 1; }

/* Let the copper pipe show through the main content sections */
.section:not(.section-dark) { background: transparent; }
.section-alt { background: rgba(13, 21, 34, .62); }
.card, .step, .stat {
  background: rgba(18, 28, 43, .84);
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
}
.value { background: rgba(18, 28, 43, .7); }
.suppliers { background: rgba(15, 23, 36, .82); }

@media (max-width: 860px) { #page3d { display: none; } }   /* keep phones light & fast */
