/* AB&A Fire and Security — site styles */
:root {
  --navy: #1B3A5C; --navy-deep: #10263F; --navy-mid: #24476D; --navy-line: #2E4E73; --navy-soft: #6E8BAB;
  --red: #C21C1C; --red-dark: #9E1616;
  --ink: #3A3A3A; --ink-soft: #4A4A4A; --gray: #7A7A7A; --line: #E2E5EA; --mist: #F4F6F8; --white: #FFFFFF;
  --wrap: 1560px; --pad: clamp(20px, 4vw, 48px);
  --font: "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { margin: 0; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #FFB000; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--white); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
[id] { scroll-margin-top: 96px; }
svg.ico { width: 24px; height: 24px; flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; font: 700 15px/1.2 var(--font); text-transform: uppercase; letter-spacing: .02em; text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; }
.btn svg { width: 18px; height: 18px; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-ghost { border-color: var(--white); color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-phone { border-color: var(--white); color: var(--white); font-size: 20px; text-transform: none; }
.btn-phone:hover { background: rgba(255,255,255,.12); color: var(--white); }
.more-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; text-transform: uppercase; color: var(--navy); text-decoration: none; }
.more-link svg { width: 18px; height: 18px; }
.more-link:hover { color: var(--red); }

/* Utility bar */
.utility { background: var(--navy-deep); color: var(--white); font-size: 14px; }
.utility .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 20px; min-height: 42px; }
.utility-left, .utility-right { display: flex; align-items: center; gap: 28px; }
.utility a { white-space: nowrap; color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.utility a:hover { text-decoration: underline; }
.utility svg { width: 16px; height: 16px; }
.utility .area { display: inline-flex; align-items: center; gap: 8px; }
.utility .btn { min-height: 42px; font-size: 13px; padding: 0 22px; }
.utility .btn:hover { text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 24px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 58px; width: auto; }
.site-footer .brand img { height: 64px; }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 40px; font-weight: 800; color: var(--navy); line-height: .9; letter-spacing: -0.035em; }
.brand-sub { font-size: 12.5px; font-weight: 700; color: var(--navy); letter-spacing: .06em; margin-top: 4px; }
.brand svg { width: 30px; height: 44px; margin-bottom: 14px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button { color: var(--ink); text-decoration: none; font: 600 15px var(--font); padding: 10px 12px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav-drop > button:hover { color: var(--red); }
.nav a[aria-current="page"] { color: var(--red); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 16px; height: 16px; }
.drop-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 16px 32px rgba(16,38,63,.14); padding: 8px 0; }
.nav-drop.open .drop-menu { display: block; }
@media (hover: hover) { .nav-drop:hover .drop-menu { display: block; } }
.drop-menu a { display: block; padding: 10px 18px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.drop-menu a:hover { background: var(--mist); color: var(--red); }
.drop-menu .all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 700; color: var(--red); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--white); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,38,63,.88) 0%, rgba(16,38,63,.6) 38%, rgba(16,38,63,0) 68%); }
.hero .wrap { position: relative; z-index: 1; min-height: 560px; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(42px, 6vw, 72px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; max-width: 9em; }
.hero p { font-size: 19px; max-width: 30em; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-sub { position: relative; z-index: 1; }

/* Feature cards row */
.pillars { background: var(--white); border-bottom: 1px solid var(--line); }
.pillars .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pillar { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 32px 24px; border-right: 1px solid var(--line); }
.pillar:last-child { border-right: 0; }
.pillar-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.pillar-icon svg { width: 30px; height: 30px; }
.pillar h3 { font-size: 18px; font-weight: 800; text-transform: uppercase; color: var(--navy); letter-spacing: .01em; line-height: 1.2; align-self: center; }
.pillar p { grid-column: 2; font-size: 14.5px; color: var(--ink-soft); margin-top: -6px; }
.pillar .more-link { grid-column: 2; }

/* Stats band */
.stats { background: var(--navy); color: var(--white); position: relative; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 30px 24px; border-right: 1px solid var(--navy-line); }
.stat:last-child { border-right: 0; }
.stat svg { width: 46px; height: 46px; }
.stat strong { display: block; font-size: 15px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.stat span { display: block; font-size: 14px; color: #D8E0EA; margin-top: 6px; line-height: 1.45; }

/* Section base */
.section { padding: 80px 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--navy-deep); color: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.section-dark h2, .section-navy h2 { color: var(--white); }
.head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: end; margin-bottom: 36px; }
.head-row p { color: var(--ink-soft); font-size: 16px; max-width: 34em; }
.rule { display: block; width: 44px; height: 3px; background: var(--red); margin-bottom: 14px; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 38em; margin-top: 16px; }
.section-dark .lead, .section-navy .lead { color: #D8E0EA; }

/* Solutions tiles */
.tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.tile-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-img svg { width: 54px; height: 54px; }
.tile strong { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.tile:hover strong { color: var(--red); }
.tile-more .tile-img { background: var(--red); flex-direction: column; gap: 4px; color: var(--white); }
.tile-more .big { font-size: 30px; font-weight: 800; line-height: 1; }
.tile-more .small { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tile-more strong { color: var(--red); }

/* Systems list */
.systems { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.sys-group { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 26px 26px 22px; }
.sys-group h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.sys-group li { padding: 8px 0 8px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; }
.sys-group li:first-child { border-top: 0; }
.sys-group li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }
.sys-note { margin-top: 24px; font-size: 15px; color: var(--ink-soft); }

/* Industries */
.industries .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr); gap: 48px; align-items: center; }
.industries p { color: #D8E0EA; margin-top: 16px; }
.ind-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ind { background: var(--navy-mid); border: 1px solid var(--navy-line); padding: 26px 14px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ind svg { width: 40px; height: 40px; }
.ind strong { display: block; font-size: 15.5px; line-height: 1.25; }
.ind span { display: block; font-size: 13px; color: #D8E0EA; }

/* Feature split */
.feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature.reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-body { display: flex; flex-direction: column; gap: 18px; }
.feature-body p { font-size: 16.5px; }
.section-dark .feature-body p, .section-navy .feature-body p { color: #D8E0EA; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 700; padding: 8px 14px; border: 1px solid var(--navy-soft); color: var(--white); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.step { background: var(--white); border: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 12px; }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.step h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.step p { font-size: 15px; color: var(--ink-soft); }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.card { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--red); padding: 26px 24px; }
.card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* About + certs */
.quote { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; font-weight: 700; color: var(--navy); margin: 0; }
.quote-by strong { display: block; color: var(--ink); }
.quote-by span { font-size: 14.5px; color: var(--ink-soft); }
.cert-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.cert-list li { border: 1px solid var(--line); padding: 16px 18px; background: var(--white); }
.cert-list strong { display: block; font-size: 22px; font-weight: 800; color: var(--navy); }
.cert-list span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; display: block; }

/* Specs */
.specs { margin: 4px 0 0; }
.specs div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-size: 14px; color: var(--ink-soft); }
.specs dd { margin: 0; font-size: 19px; font-weight: 700; color: var(--navy); }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); background: var(--navy-deep); color: var(--white); }
.cta-media { position: relative; min-height: 300px; }
.cta-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-media::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 90px; background: var(--navy-deep); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.cta-body { padding: 56px var(--pad) 56px 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.cta-body h2 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.cta-body p { color: #D8E0EA; font-size: 17px; }
.cta-body .hero-actions { margin-top: 14px; }

/* Proposal form */
.estimate { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.estimate-intro { display: flex; flex-direction: column; gap: 16px; }
.estimate-intro p { color: #D8E0EA; }
.estimate-intro a { color: var(--white); font-weight: 700; }
.form { background: var(--white); color: var(--ink); padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; font-weight: 700; }
.field.full, .form .btn, .form-status { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: 400 16px var(--font); border: 1px solid var(--gray); border-radius: 2px; padding: 12px 14px; min-height: 48px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.form .btn { width: 100%; min-height: 54px; }
.form-status { font-size: 15px; font-weight: 700; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--white); padding: 56px 0 28px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 0; }
.footer-grid > div { padding: 0 28px; border-left: 1px solid var(--navy-line); }
.footer-grid > div:first-child { padding-left: 0; border-left: 0; }
.footer-grid h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.footer-grid li { margin-bottom: 4px; }
.site-footer a { color: #D8E0EA; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer .brand-name, .site-footer .brand-sub { color: var(--white); }
.tagline { margin-top: 12px; font-size: 16px; font-weight: 700; }
.contact-line { overflow-wrap: anywhere; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.contact-line svg { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: 13.5px; color: #D8E0EA; }

/* Chat */
.chat-launcher { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--red); color: var(--white); border: 0; border-radius: 999px; min-height: 56px; padding: 0 22px; font: 700 16px var(--font); display: inline-flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 10px 28px rgba(16,38,63,.3); }
.chat-launcher:hover { background: var(--red-dark); }
.chat-launcher svg { width: 20px; height: 20px; }
.chat-panel { position: fixed; right: 20px; bottom: 88px; z-index: 60; width: min(380px, calc(100vw - 40px)); max-height: min(620px, calc(100vh - 120px)); background: var(--white); border-radius: 12px; box-shadow: 0 18px 48px rgba(16,38,63,.28); display: flex; flex-direction: column; overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { background: var(--navy); color: var(--white); padding: 14px 12px 14px 20px; display: flex; justify-content: space-between; align-items: center; }
.chat-head strong { display: block; font-size: 17px; }
.chat-head span { font-size: 13px; color: #D8E0EA; }
.chat-close { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-close svg { width: 20px; height: 20px; }
.chat-log { padding: 18px; background: var(--mist); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; flex: 1; }
.msg { max-width: 88%; font-size: 15px; line-height: 1.55; padding: 11px 14px; border-radius: 12px; }
.msg-bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg-user { align-self: flex-end; background: var(--navy); color: var(--white); border-bottom-right-radius: 4px; }
.msg a { font-weight: 700; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 0; }
.chat-chips button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); font: 600 14px var(--font); cursor: pointer; }
.chat-chips button:hover { background: var(--navy); color: var(--white); }
.chat-form { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); margin-top: 12px; }
.chat-form input { flex: 1; min-width: 0; min-height: 44px; border: 1px solid var(--gray); border-radius: 8px; padding: 0 12px; font: 15px var(--font); }
.chat-form button { min-height: 44px; padding: 0 16px; background: var(--red); color: var(--white); border: 0; border-radius: 8px; font: 700 15px var(--font); cursor: pointer; }
.chat-foot { text-align: center; padding: 0 16px 14px; font-size: 14px; font-weight: 700; }

/* Responsive */
@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav > a, .nav-drop > button { padding: 10px 8px; font-size: 14.5px; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px var(--pad) 20px; box-shadow: 0 14px 28px rgba(16,38,63,.14); max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; font-size: 16px; }
  .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav-drop:hover .drop-menu { display: none; }
  .nav-drop.open .drop-menu { display: block; }
  .pillars .wrap, .stats .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar:nth-child(2), .stat:nth-child(2) { border-right: 0; }
  .pillar:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--navy-line); }
  .industries .wrap, .feature, .feature.reverse, .estimate, .head-row { grid-template-columns: 1fr; gap: 28px; }
  .feature.reverse .feature-media { order: 0; }
  .systems { grid-template-columns: 1fr 1fr; }
  .steps, .cards { grid-template-columns: 1fr 1fr; }
  .cert-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .footer-grid > div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:nth-child(2), .footer-grid > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .utility .area { display: none; }
}
@media (max-width: 760px) {
  .utility-left .mail span { display: none; }
  .hero .wrap { min-height: 520px; }
  .hero::after { background: linear-gradient(180deg, rgba(16,38,63,.9) 0%, rgba(16,38,63,.75) 55%, rgba(16,38,63,.35) 100%); }
  .ind-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr; }
  .cta-media::after { display: none; }
  .cta-body { padding: 40px var(--pad); }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .brand-name { font-size: 32px; }
  .brand svg { width: 24px; height: 36px; margin-bottom: 10px; }
  .pillars .wrap, .stats .wrap, .systems, .steps, .cards, .form, .footer-grid { grid-template-columns: 1fr; }
  .pillar, .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .stat { border-bottom-color: var(--navy-line); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > div { padding-left: 0 !important; border-left: 0 !important; }
  .hero-actions .btn { width: 100%; }
  .utility .btn { padding: 0 14px; }
  .chat-launcher .label { display: none; }
  .chat-launcher { padding: 0 16px; }
}
.section-dark .specs div, .section-navy .specs div { border-bottom-color: var(--navy-line); }
.section-dark .specs dt, .section-navy .specs dt { color: #D8E0EA; }
.section-dark .specs dd, .section-navy .specs dd { color: var(--white); }

/* Nav login */
.nav > a.nav-login { margin-left: 8px; border: 2px solid var(--navy); color: var(--navy); padding: 8px 14px; border-radius: 2px; gap: 6px; }
.nav > a.nav-login:hover { background: var(--navy); color: var(--white); }
.nav > a.nav-login[aria-current="page"] { background: var(--navy); color: var(--white); }
.nav-login svg { width: 16px; height: 16px; }

/* Page header for inner pages */
.page-hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.025em; max-width: 16em; }
.page-hero p { font-size: 18.5px; color: #D8E0EA; max-width: 40em; margin-top: 16px; }
.page-hero .hero-actions { margin-top: 26px; }
.crumb { font-size: 14px; color: #D8E0EA; margin-bottom: 14px; display: block; }
.crumb a { color: #D8E0EA; }

/* Prose */
.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.prose h2 { margin-bottom: 4px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.info-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: flex-start; }
.info-list li:first-child { border-top: 1px solid var(--line); }
.info-list svg { width: 22px; height: 22px; margin-top: 2px; }
.info-list strong { display: block; color: var(--navy); }
.cta-simple .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-simple h2 { font-size: clamp(26px, 3vw, 34px); }
.cta-simple p { color: #D8E0EA; margin-top: 8px; font-size: 17px; }
.icon-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.icon-card { background: var(--white); border: 1px solid var(--line); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.icon-card .pillar-icon { width: 56px; height: 56px; }
.icon-card .pillar-icon svg { width: 26px; height: 26px; }
.icon-card h3 { font-size: 19px; font-weight: 800; color: var(--navy); }
.icon-card p { font-size: 15.5px; color: var(--ink-soft); }
.icon-card ul { margin-top: 4px; }
.icon-card li { font-size: 15px; padding: 4px 0 4px 22px; position: relative; }
.icon-card li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 10px; height: 6px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: rotate(-45deg); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-grid .form { border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(16,38,63,.08); }
.urgent { background: var(--navy); color: var(--white); padding: 22px 24px; margin-top: 24px; }
.urgent strong { display: block; font-size: 18px; }
.urgent a { color: var(--white); font-weight: 800; font-size: 22px; text-decoration: none; }

/* Login */
.login-hero { position: relative; overflow: hidden; background: #0A0D2C; min-height: 640px; display: flex; align-items: center; }
.login-hero::before { content: ""; position: absolute; inset: 0; background: url(/images/flame-bg.jpg) 56% 45% / auto 125% no-repeat; -webkit-mask-image: radial-gradient(ellipse 26% 58% at 56% 45%, #000 50%, transparent 100%); mask-image: radial-gradient(ellipse 26% 58% at 56% 45%, #000 50%, transparent 100%); }
.login-hero .wrap { position: relative; z-index: 1; }
.login-hero .wrap { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.login-copy { color: var(--white); }
.login-copy h1 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
.login-copy p { color: #D8E0EA; font-size: 18px; margin-top: 16px; max-width: 30em; }
.login-card { background: var(--white); padding: 34px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 56px rgba(0,0,0,.35); }
.login-card h2 { font-size: 24px; font-weight: 800; color: var(--navy); }
.login-card p { font-size: 15px; color: var(--ink-soft); }
.pin-input { letter-spacing: .3em; font-size: 22px !important; text-align: center; }
.login-status { font-size: 15px; font-weight: 600; color: var(--navy); background: var(--mist); border-left: 4px solid var(--red); padding: 12px 14px; }
.login-status[hidden] { display: none; }

@media (max-width: 1080px) {
  .nav > a.nav-login { margin: 12px 0 0; justify-content: center; }
  .two-col, .contact-grid, .login-hero .wrap { grid-template-columns: 1fr; }
  .icon-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .brand img { height: 46px; }
  .icon-cards { grid-template-columns: 1fr; }
  .login-card { padding: 24px; }
}

@media (max-width: 1080px) { .login-hero::before { background-position: 50% 30%; -webkit-mask-image: radial-gradient(ellipse 60% 40% at 50% 30%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 60% 40% at 50% 30%, #000 45%, transparent 100%); opacity: .6; } }

/* Industry photo tiles */
.ind { position: relative; overflow: hidden; }
.ind.has-img { padding: 0; min-height: 230px; border: 0; justify-content: flex-end; }
.ind.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ind.has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,38,63,0) 25%, rgba(16,38,63,.92) 78%); }
.ind-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ind.has-img .ind-body { padding: 0 12px 18px; }
.icon-card-img { width: calc(100% + 52px); margin: -28px -26px 6px; aspect-ratio: 16 / 9; object-fit: cover; max-width: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field .opt { font-weight: 400; color: var(--ink-soft); }
.field input::placeholder, .field textarea::placeholder { color: #8A8A8A; }
.chat-followups { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
.chat-followups button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--red); background: var(--white); color: var(--red); font: 600 14px var(--font); cursor: pointer; }
.chat-followups button:hover { background: var(--red); color: var(--white); }

/* Trailer gallery */
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 300px; gap: 14px; margin-top: 32px; }
.gallery a { display: block; overflow: hidden; background: var(--navy-deep); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }
.gallery .g-tall { grid-row: span 2; }
.gallery .g-wide { grid-column: 1 / -1; grid-row: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; } .gallery .g-tall, .gallery .g-wide { grid-row: auto; grid-column: auto; } .gallery img { height: auto; } }

/* ===== Motion and interactivity ===== */
.site-header { transition: box-shadow .25s ease; }
.site-header .wrap { transition: min-height .25s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(16,38,63,.12); }
.site-header.scrolled .wrap { min-height: 66px; }
.brand img { transition: height .25s ease; }
.site-header.scrolled .brand img { height: 48px; }

/* Hero entrance and slow zoom */
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.hero-bg { animation: heroZoom 20s ease-out forwards; transform-origin: 60% 60%; }
.hero h1, .page-hero h1, .login-copy h1 { animation: fadeUp .8s ease both; }
.hero p, .page-hero p, .login-copy p { animation: fadeUp .8s ease .15s both; }
.hero .hero-actions, .page-hero .hero-actions { animation: fadeUp .8s ease .3s both; }
.login-card { animation: fadeUp .8s ease .2s both; }

/* Scroll reveal (only when JS adds .js-motion) */
.js-motion .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.js-motion .reveal.in { opacity: 1; transform: none; }

/* Hover lift */
.card, .step, .icon-card, .sys-group, .pillar { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover, .step:hover, .icon-card:hover, .sys-group:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(16,38,63,.12); }
.pillar-icon { transition: background .25s ease, transform .25s ease; }
.pillar:hover .pillar-icon { background: var(--red); transform: scale(1.06); }
.more-link svg, .btn svg { transition: transform .2s ease; }
.more-link:hover svg, .btn:hover svg { transform: translateX(4px); }
.tile-img { transition: box-shadow .25s ease, transform .25s ease; }
.tile-img img { transition: transform .5s ease; }
.tile:hover .tile-img { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(16,38,63,.18); }
.tile:hover .tile-img img { transform: scale(1.08); }
.tile-more .tile-img { background: linear-gradient(135deg, #C21C1C, #9E1616 50%, #C21C1C); background-size: 200% 200%; animation: shimmer 6s ease infinite; }
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ind.has-img img { transition: transform .6s ease; }
.ind:hover img { transform: scale(1.08); }
.icon-card-img { transition: transform .5s ease; }
.icon-card:hover .icon-card-img { transform: scale(1.04); }
.feature-media { overflow: hidden; }
.feature-media img { transition: transform .8s ease; }
.feature-media:hover img { transform: scale(1.04); }

/* Systems ticker */
.ticker { background: var(--navy-deep); color: var(--white); overflow: hidden; border-top: 1px solid var(--navy-line); }
.ticker-track { display: flex; width: max-content; animation: ticker 45s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; flex-shrink: 0; }
.ticker li { padding: 16px 28px; font-size: 15px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 28px; }
.ticker li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-left: 28px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Services filter tabs */
.sys-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sys-tabs button { min-height: 44px; padding: 0 18px; border: 2px solid var(--navy); background: var(--white); color: var(--navy); font: 700 14px var(--font); text-transform: uppercase; letter-spacing: .02em; border-radius: 2px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.sys-tabs button:hover, .sys-tabs button.active { background: var(--navy); color: var(--white); }
.sys-group.hide { display: none; }
.systems.filtered { grid-template-columns: minmax(0, 1fr); max-width: 720px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(8,14,28,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: fadeUp .35s ease both; }
.lightbox button { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: var(--red); }
.lightbox button svg { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #D8E0EA; font-size: 14px; }
@media (max-width: 600px) { .lightbox { padding: 70px 10px; } .lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .ticker-track, .tile-more .tile-img { animation: none !important; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker ul[aria-hidden] { display: none; }
  .js-motion .reveal { opacity: 1; transform: none; }
}
.stat strong [data-count] { display: inline; font-size: inherit; color: inherit; margin: 0; }

/* ===== 3D flame experience (preview) ===== */
.xp { position: relative; height: calc(100vh - 122px); min-height: 560px; background: radial-gradient(ellipse at 50% 70%, #1B3A5C 0%, #10263F 45%, #070E1C 100%); overflow: hidden; color: var(--white); }
.xp-stage { position: absolute; inset: 0; }
.xp-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; }
.xp-stage.xp-fallback { background: url(/images/fleet.jpg) center / cover; opacity: .5; }
.xp-overlay { position: absolute; left: max(var(--pad), calc((100% - var(--wrap)) / 2 + var(--pad))); top: 44px; z-index: 2; max-width: 520px; pointer-events: none; }
.xp-overlay .hero-actions, .xp-overlay a { pointer-events: auto; }
.xp-kicker { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #FFB000; }
.xp-overlay h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin-top: 12px; text-shadow: 0 4px 24px rgba(0,0,0,.5); animation: fadeUp .9s ease both; }
.xp-overlay p { margin-top: 14px; color: #D8E0EA; font-size: 17px; animation: fadeUp .9s ease .15s both; }
.xp-overlay .hero-actions { margin-top: 22px; animation: fadeUp .9s ease .3s both; }
.xp-controls { position: absolute; right: var(--pad); bottom: 28px; z-index: 2; display: flex; gap: 10px; }
.xp-controls button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(16,38,63,.6); cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); }
.xp-controls button:hover { background: var(--red); border-color: var(--red); }
.xp-controls svg { width: 22px; height: 22px; }
.xp-noscript { position: absolute; bottom: 20px; left: var(--pad); }
@media (max-width: 700px) { .xp { height: 82vh; } .xp-overlay { top: 24px; right: var(--pad); } .xp-overlay .hero-actions { display: none; } }

/* Fleet banner under the flame hero */
.fleet-band { position: relative; overflow: hidden; color: var(--white); background: var(--navy-deep); }
.fleet-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.fleet-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,38,63,.92) 0%, rgba(16,38,63,.65) 40%, rgba(16,38,63,.05) 75%); }
.fleet-band .wrap { position: relative; z-index: 1; min-height: 460px; display: flex; flex-direction: column; justify-content: center; padding-top: 64px; padding-bottom: 64px; }
.fleet-band h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.fleet-band p { max-width: 32em; margin-top: 14px; font-size: 18px; color: #E4EAF1; }
@media (max-width: 760px) { .fleet-band::after { background: linear-gradient(180deg, rgba(16,38,63,.9), rgba(16,38,63,.55)); } }

/* Inner page header with a background photo */
.page-hero.has-bg .wrap { min-height: 460px; display: flex; flex-direction: column; justify-content: center; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%; animation: heroZoom 20s ease-out forwards; }
.page-hero.has-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,38,63,.93) 0%, rgba(16,38,63,.72) 42%, rgba(16,38,63,.15) 78%); }
@media (max-width: 760px) { .page-hero.has-bg::after { background: linear-gradient(180deg, rgba(16,38,63,.92), rgba(16,38,63,.7)); } }

/* Longer menu labels: keep them on one line, and switch to the menu button sooner */
.nav > a, .nav-drop > button, .nav-login { white-space: nowrap; }
@media (max-width: 1440px) { .nav > a, .nav-drop > button { font-size: 14.5px; padding: 10px 8px; } .brand img { height: 52px; } }
@media (max-width: 1260px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 8px var(--pad) 20px; box-shadow: 0 14px 28px rgba(16,38,63,.14); max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .nav-drop > button { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; justify-content: space-between; font-size: 16px; }
  .drop-menu { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .nav-drop:hover .drop-menu { display: none; }
  .nav-drop.open .drop-menu { display: block; }
  .nav > a.nav-login { margin: 12px 0 0; justify-content: center; }
}

/* ===== Customer report portal ===== */
.login-hint { font-size: 14px; color: var(--ink-soft); background: #FFF6E5; border-left: 4px solid #FFB000; padding: 10px 12px; }
.portal { background: var(--mist); min-height: 70vh; padding-bottom: 64px; }
.portal[hidden] { display: none; }
.pt-bar { background: var(--navy); color: var(--white); }
.pt-bar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.pt-bar strong { font-size: 18px; display: block; }
.pt-bar span { font-size: 13px; color: #D8E0EA; }
.pt-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-tab, .pt-out { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: transparent; color: var(--white); font: 600 14px var(--font); cursor: pointer; }
.pt-tab.on { background: var(--white); color: var(--navy); }
.pt-out { border-color: transparent; text-decoration: underline; }
.pt-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; padding-top: 28px; }
.pt-aside { display: flex; flex-direction: column; gap: 10px; }
.pt-cust { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.pt-side { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; cursor: pointer; font: inherit; color: var(--ink); }
.pt-side strong { display: block; font-size: 15px; }
.pt-side span { font-size: 13px; color: var(--ink-soft); }
.pt-side.on { background: var(--navy); color: var(--white); border-color: var(--navy); }
.pt-side.on span { color: #D8E0EA; }
.pt-help { font-size: 13px; color: var(--ink-soft); margin-top: 6px; }
.pt-main { background: var(--white); border-radius: 12px; padding: 28px; border: 1px solid var(--line); }
.pt-office { grid-column: 1 / -1; }
.pt-crumbs { font-size: 14px; margin-bottom: 8px; color: var(--ink-soft); }
.pt-crumbs button { background: none; border: 0; padding: 0; color: var(--red); text-decoration: underline; cursor: pointer; font: inherit; }
.pt-search { float: right; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; width: min(320px, 100%); }
.pt-search input { min-height: 42px; border: 1px solid var(--gray); border-radius: 8px; padding: 0 12px; font: 15px var(--font); }
.pt-key { font-size: 13px; color: var(--ink-soft); margin: 4px 0 6px; display: flex; gap: 8px; align-items: center; }
.pt-h { font-size: 28px; font-weight: 800; color: var(--navy); margin-top: 6px; clear: none; }
.pt-sub { color: var(--ink-soft); margin: 4px 0 18px; }
.pt-grid { clear: both; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pt-folder, .pt-report { position: relative; text-align: left; background: var(--white); border: 1px solid var(--line); border-left-width: 6px; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 8px; font: inherit; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease; }
.pt-folder { cursor: pointer; }
.pt-folder:hover, .pt-report:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(16,38,63,.12); }
.pt-folder svg, .pt-report svg { width: 28px; height: 28px; color: var(--navy); }
.pt-folder strong, .pt-report strong { font-size: 16px; line-height: 1.35; color: var(--navy); }
.pt-folder span:not(.pt-badge) { font-size: 13px; color: var(--ink-soft); }
.pt-folder small, .pt-report small { font-size: 13px; color: var(--ink-soft); }
.pt-folder.pass, .pt-report.pass { border-color: #CFE9D6; border-left-color: #1E8E3E; }
.pt-folder.fail, .pt-report.fail { border-color: #F3C9C9; border-left-color: #C21C1C; }
.pt-report.pass { box-shadow: inset 0 0 0 2px #1E8E3E; }
.pt-report.fail { box-shadow: inset 0 0 0 2px #C21C1C; }
.pt-badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pt-badge.pass { background: #E6F4EA; color: #1E6B33; }
.pt-badge.fail { background: #FBE3E3; color: #9E1616; }
.pt-new { position: absolute; top: 14px; right: 14px; background: var(--navy); color: var(--white); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.pt-view { margin-top: 4px; align-self: flex-start; min-height: 36px; padding: 0 14px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: 8px; font: 600 14px var(--font); cursor: pointer; }
.pt-view:hover { background: var(--navy); color: var(--white); }
.pt-check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 14px; }
.pt-empty { color: var(--ink-soft); }
.pt-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-form .full, .pt-form .btn, .pt-msg { grid-column: 1 / -1; }
.pt-form .field select, .pt-form .field input { font: 400 16px var(--font); border: 1px solid var(--gray); border-radius: 6px; padding: 10px 12px; min-height: 46px; background: var(--white); }
.pt-form .result-pass select { border: 2px solid #1E8E3E; }
.pt-form .result-fail select { border: 2px solid #C21C1C; }
.pt-drop { border: 2px dashed var(--navy-soft); border-radius: 12px; padding: 28px; text-align: center; cursor: pointer; align-items: center; }
.pt-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pt-drop span { font-size: 16px; font-weight: 600; }
.pt-drop small { font-weight: 400; color: var(--ink-soft); }
.pt-preview { font-size: 15px; font-weight: 400; background: var(--mist); padding: 12px 14px; border-radius: 8px; }
.pt-msg { font-weight: 600; color: var(--navy); }
.pt-form .btn { justify-self: start; }
@media (max-width: 900px) { .pt-body { grid-template-columns: 1fr; } .pt-search { float: none; margin-bottom: 10px; } .pt-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pt-form { grid-template-columns: 1fr; } .pt-main { padding: 20px; } }
.login-hero[hidden] { display: none; }
.pt-check input { width: 18px; height: 18px; min-height: 0; }
.pt-preview small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: 13px; }

/* ===== October updates ===== */
.rule { display: none; }
@media (min-width: 1081px) { .stats-3 .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Utility bar: Customer Login appears here when the main menu collapses */
.util-login { display: none !important; border: 1.5px solid #6FA8E8; color: var(--white); padding: 0 12px; border-radius: 2px; font-weight: 700; font-size: 13px; min-height: 32px; align-items: center; gap: 6px; }
.util-login svg { width: 14px; height: 14px; }
.utility .wrap { flex-wrap: nowrap; }
@media (max-width: 1260px) {
  .util-login { display: inline-flex !important; }
  .utility .area { display: none; }
}
@media (max-width: 760px) {
  .utility .wrap { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .utility-left { gap: 14px; }
  .utility-left a span { display: none; }                 /* phone and email show as icons */
  .utility-left svg { width: 20px; height: 20px; }
  .utility-right { gap: 8px; }
  .utility .util-cta { min-height: 32px; padding: 0 10px; font-size: 12px; }
  .utility .util-cta svg { display: none; }
  .utility .util-cta .long { display: none; }
  .util-login { padding: 0 8px; font-size: 12px; }
}
html, body { overflow-x: hidden; }

/* Fire watch page */
.spec-lines { margin: 6px 0 0; padding: 0; list-style: none; }
.spec-lines li { padding: 14px 0 14px 28px; border-bottom: 1px solid var(--navy-line); font-size: 18px; font-weight: 700; color: var(--white); position: relative; }
.spec-lines li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 7px; border-left: 2.5px solid #FFB000; border-bottom: 2.5px solid #FFB000; transform: rotate(-45deg); }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; }
#watch .prose { max-width: 900px; }
@media (max-width: 760px) { .steps-3 { grid-template-columns: 1fr; } }

/* Contact page */
.contact-actions { background: var(--mist); padding: 40px 0 0; }
.contact-actions .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; transform: translateY(-80px); margin-bottom: -80px; position: relative; z-index: 2; }
.ca { display: flex; flex-direction: column; gap: 6px; padding: 26px 24px; border-radius: 14px; color: var(--white); text-decoration: none; box-shadow: 0 18px 40px rgba(16,38,63,.22); transition: transform .25s ease, box-shadow .25s ease; position: relative; overflow: hidden; }
.ca::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.08); transition: transform .4s ease; }
.ca:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(16,38,63,.3); color: var(--white); }
.ca:hover::after { transform: scale(1.4); }
.ca-ico { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.16); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.ca-ico svg { width: 26px; height: 26px; }
.ca strong { font-size: 20px; font-weight: 800; }
.ca span:not(.ca-ico) { font-size: 15px; color: rgba(255,255,255,.88); overflow-wrap: anywhere; }
.ca em { font-style: normal; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-top: 10px; display: inline-flex; align-items: center; gap: 6px; }
.ca em svg { width: 16px; height: 16px; transition: transform .2s ease; }
.ca:hover em svg { transform: translateX(4px); }
.ca-red { background: linear-gradient(135deg, #C21C1C, #9E1616); }
.ca-navy { background: linear-gradient(135deg, #24476D, #1B3A5C); }
.ca-fire { background: linear-gradient(135deg, #FF7A00, #C21C1C 85%); }
.ca-dark { background: linear-gradient(135deg, #10263F, #0A1A2E); border: 1px solid rgba(255,176,0,.45); }
.contact-section { background: var(--mist); }
.contact-side h2 { font-size: clamp(28px, 3vw, 36px); }
.next-steps { margin: 22px 0 24px; display: flex; flex-direction: column; gap: 14px; }
.next-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border-radius: 12px; padding: 16px 18px; border: 1px solid var(--line); transition: transform .2s ease, border-color .2s ease; }
.next-steps li:hover { transform: translateX(4px); border-color: #FFB000; }
.next-steps li > span { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: linear-gradient(135deg, #FF7A00, #C21C1C); color: var(--white); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.next-steps strong { display: block; color: var(--navy); }
.contact-grid .form { border-radius: 14px; border-top: 5px solid var(--red); }
.form-title { font-size: 24px; font-weight: 800; color: var(--navy); }
.contact-grid .form .field input:focus, .contact-grid .form .field select:focus, .contact-grid .form .field textarea:focus { outline: none; border-color: #FF7A00; box-shadow: 0 0 0 3px rgba(255,122,0,.2); }
.urgent { border-radius: 12px; background: linear-gradient(135deg, #1B3A5C, #10263F); border-left: 5px solid #FFB000; }
@media (max-width: 1080px) { .contact-actions .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .contact-actions .wrap { grid-template-columns: 1fr; transform: none; margin-bottom: 0; padding-top: 24px; } }

/* Login and portal: match the rest of the site */
.login-hero { background: linear-gradient(135deg, #10263F 0%, #1B3A5C 60%, #24476D 100%) !important; }
.login-hero::before { mix-blend-mode: screen; opacity: .9; }
.login-card { border-radius: 14px; border-top: 5px solid var(--red); }
.login-card h2 { font-size: 26px; }
.forgot-link { align-self: flex-start; background: none; border: 0; padding: 4px 0; color: var(--red); font: 600 14px var(--font); text-decoration: underline; cursor: pointer; }
.pt-bar { background: linear-gradient(90deg, #10263F, #1B3A5C); border-bottom: 3px solid var(--red); }
.pt-tab, .pt-out { border-radius: 2px; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; font-size: 13px; }
.pt-tab.on { background: var(--red); border-color: var(--red); color: var(--white); }
.pt-side { border-radius: 12px; transition: transform .2s ease, box-shadow .2s ease; }
.pt-side:hover { transform: translateX(3px); box-shadow: 0 8px 20px rgba(16,38,63,.1); }
.pt-side.on { background: linear-gradient(135deg, #1B3A5C, #10263F); border-left: 4px solid #FFB000; }
.pt-main { border-radius: 14px; }
.pt-crumbs button { color: var(--red); }
.pt-folder.neutral, .pt-report.neutral { border-color: var(--line); border-left-color: var(--navy); }
.pt-due { display: inline-flex; flex-direction: column; gap: 4px; background: linear-gradient(135deg, #1B3A5C, #10263F); color: var(--white); border-left: 5px solid #FFB000; border-radius: 12px; padding: 14px 18px; margin: 0 0 20px; }
.pt-due strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #FFB000; }
.pt-due span { font-size: 15px; }
.pt-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-navy-outline { border: 2px solid var(--navy); color: var(--navy); background: var(--white); }
.btn-navy-outline:hover { background: var(--navy); color: var(--white); }
@media (min-width: 1081px) { .footer-grid { grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); } }
.site-footer a[href="/chief-regulation-4"] { white-space: nowrap; }
.section .contact-grid .form .form-title { font-size: 24px; }

/* Contact: form lit from behind */
.contact-hero { background: radial-gradient(ellipse at 70% 120%, rgba(255,122,0,.35), rgba(194,28,28,.12) 40%, rgba(16,38,63,0) 70%), linear-gradient(135deg, #10263F, #1B3A5C 70%); }
.contact-section { padding-top: 72px; }
.form-glow { position: relative; isolation: isolate; }
.form-glow::before { content: ""; position: absolute; inset: -26px; z-index: -1; border-radius: 30px; background: radial-gradient(ellipse at 50% 55%, rgba(255,150,30,.75), rgba(255,58,0,.45) 38%, rgba(194,28,28,.18) 62%, rgba(194,28,28,0) 75%); filter: blur(28px); animation: formGlow 4s ease-in-out infinite alternate; }
@keyframes formGlow { from { opacity: .7; transform: scale(.98); } to { opacity: 1; transform: scale(1.02); } }
.form-glow .form { box-shadow: 0 0 0 1px rgba(255,140,30,.35), 0 20px 50px rgba(16,38,63,.18); }
@media (prefers-reduced-motion: reduce) { .form-glow::before { animation: none; } }

/* Fire watch personnel: text left, steps stacked on the right */
.watch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.steps-stack { grid-template-columns: 1fr; margin-top: 0; gap: 14px; }
.steps-stack .step { flex-direction: row; align-items: flex-start; gap: 16px; }
.steps-stack .step-num { flex-shrink: 0; }
.steps-stack .step h3 { margin-bottom: 4px; }
@media (max-width: 900px) { .watch-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Login: same night sky as the homepage, everything centered */
.login-hero.login-v2 { background: radial-gradient(ellipse at 50% 70%, #1B3A5C 0%, #10263F 45%, #050B18 100%) !important; min-height: calc(100vh - 122px); align-items: flex-start; }
.login-hero.login-v2::before { display: none; }
.login-v2 .wrap { display: flex !important; flex-direction: column; align-items: center; gap: 30px; padding-top: 56px; padding-bottom: 72px; position: relative; z-index: 1; }
.login-v2 .login-copy { text-align: center; }
.login-v2 .login-copy h1 { font-size: clamp(32px, 4.4vw, 56px); text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.login-v2 .login-glow { width: min(460px, 100%); }
.login-v2 .login-card { width: 100%; }
.login-embers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.login-embers i { position: absolute; border-radius: 50%; opacity: 0; box-shadow: 0 0 6px currentColor; animation-name: emberRise; animation-timing-function: linear; animation-iteration-count: infinite; }
@keyframes emberRise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translate(30px, -110vh); opacity: 0; } }
.login-hero[hidden] { display: none !important; }
.form-glow::before { inset: -34px; background: radial-gradient(ellipse at 50% 52%, rgba(255,160,40,.95), rgba(255,90,0,.7) 40%, rgba(194,28,28,.35) 64%, rgba(194,28,28,0) 78%); filter: blur(30px); }

/* Forms: illuminated border like the homepage tiles (replaces the glow behind) */
.form-glow::before { display: none !important; animation: none !important; }
.form-glow .form, .form-glow .login-card {
  border: 3px solid transparent !important;
  border-radius: 16px;
  background: linear-gradient(#FFFFFF, #FFFFFF) padding-box,
              linear-gradient(90deg, #FF3A00 0%, #FF9500 18%, rgba(255,190,90,.75) 55%, rgba(255,214,150,.6) 100%) border-box;
  box-shadow: 0 0 6px rgba(255,140,30,.85), 0 0 26px rgba(255,120,20,.55), 0 18px 40px rgba(16,38,63,.18) !important;
}
.contact-hero { background: var(--navy) !important; }
/* Small phones: keep everything in the top bar on one line */
@media (max-width: 480px) {
  .utility .wrap { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .utility-left { gap: 10px; }
  .utility-left svg { width: 18px; height: 18px; }
  .utility-right { gap: 6px; }
  .util-login { padding: 0 7px; font-size: 11.5px; min-height: 30px; gap: 4px; }
  .util-login svg { width: 12px; height: 12px; }
  .utility .util-cta { min-height: 30px; padding: 0 8px; font-size: 11.5px; letter-spacing: 0; }
}
@media (max-width: 374px) {
  .util-login svg { display: none; }
  .utility .util-cta { padding: 0 6px; font-size: 11px; }
  .util-login { font-size: 11px; padding: 0 6px; }
}

/* Top bar labels: full words on larger screens, short words on phones */
.lbl-short { display: none; }
@media (max-width: 760px) {
  .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .utility .wrap { gap: 10px; padding-left: 14px; padding-right: 14px; }
  .utility-left { gap: 16px; }
  .utility-left svg { width: 20px; height: 20px; }
  .utility-right { gap: 8px; }
  .util-login { padding: 0 12px; font-size: 13px; min-height: 34px; gap: 6px; }
  .util-login svg { display: inline-block !important; width: 14px; height: 14px; }
  .utility .util-cta { min-height: 34px; padding: 0 14px; font-size: 13px; letter-spacing: .02em; }
}
@media (max-width: 760px) { .utility .util-cta { text-transform: none; letter-spacing: 0; font-size: 13.5px; } }
/* Portal site view: upcoming tests on the right of the heading */
.pt-head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pt-head-row .pt-sub { margin-bottom: 0; }
.pt-head-row .pt-due { margin: 0 0 0 auto; }
@media (max-width: 600px) { .pt-head-row .pt-due { margin-left: 0; } }
