/* Trinity House — public website. One stylesheet for every page. */

:root {
  --ink: #0e1726;        /* deep navy-black, from the logo's black */
  --ink-2: #172235;
  --ink-3: #22304a;
  --red: #d4251c;        /* the logo's gear */
  --red-dark: #b01d15;
  --red-soft: #ff6a5f;   /* red for text on dark backgrounds */
  --paper: #f6f4ef;
  --white: #ffffff;
  --line: #e3dfd6;
  --text: #1c2330;
  --muted: #5a6472;
  --on-dark: #e8ecf2;
  --on-dark-muted: #a9b3c2;
  --radius: 14px;
  --wrap: 1180px;
  --serif: "Noto Serif", Georgia, "Times New Roman", serif;
  --head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--white); overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 4px; }

/* review-only bits (removed before going live) */
.review-ribbon {
  background: #fff4c2; color: #5c4a00; font-size: 13px; text-align: center; padding: 6px 16px;
  border-bottom: 1px solid #ecd987;
}
.confirm {
  display: inline-block; background: #fff1a8; color: #6b5500; border: 1px solid #e9d36b;
  font: 600 11px/1.6 var(--body); letter-spacing: .04em; text-transform: uppercase;
  padding: 0 6px; border-radius: 4px; vertical-align: middle; white-space: nowrap;
}

/* "upcoming" badge (part of the real site) */
.soon {
  display: inline-block; font: 700 10.5px/1 var(--body); letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap;
  background: rgba(255, 106, 95, .16); color: #ff8a80; border: 1px solid rgba(255, 106, 95, .35);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); text-decoration: none; white-space: nowrap;
  padding: 15px 22px; border-radius: 10px; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 11px 16px; font-size: 15px; }
.btn-wa { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-wa:hover { border-color: #fff; background: rgba(255,255,255,.06); }

/* ---------- logo lockup in the header ---------- */
.lockup { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; white-space: nowrap; }
.lockup img { width: 44px; height: auto; }
.lockup .words { display: flex; flex-direction: column; line-height: 1; }
.lockup .name { font: 700 21px/1 var(--serif); letter-spacing: .05em; }
.lockup .name sup { font: 700 8px/1 var(--body); color: var(--red); letter-spacing: 0; margin-left: 2px; vertical-align: top; position: relative; top: -2px; }
.lockup .tag { font: 700 8.6px/1 var(--body); letter-spacing: .13em; color: var(--red); margin-top: 6px; }

/* ---------- thin strip above the header ---------- */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .erp-link { color: #fff; border-color: rgba(255,255,255,.22); padding: 5px 10px; font-size: 13px; }
.topbar .erp-link:hover { border-color: #fff; color: #fff; text-decoration: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--text);
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"], .drawer a[aria-current="page"] { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink); white-space: nowrap; }
.erp-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted);
  text-decoration: none; white-space: nowrap; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
}
.erp-link svg { width: 15px; height: 15px; }
.erp-link:hover { color: var(--ink); border-color: var(--ink); }
.icon-btn {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; }
.drawer { display: none; }

/* ---------- home hero ---------- */
.hero { position: relative; background: var(--ink); color: var(--on-dark); overflow: hidden; }
.hero .tracks {
  position: absolute; right: -140px; top: 40px; width: 900px; height: auto;
  stroke: #fff; stroke-width: 2; opacity: .08; pointer-events: none;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.hero .wrap { position: relative; padding-top: 84px; padding-bottom: 84px; }
.hero-text { max-width: 800px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font: 600 13px/1.3 var(--body);
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); flex: none; }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); font-weight: 800; color: #fff; margin: 22px 0; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--red-soft); }
.lead { font-size: 19px; color: var(--on-dark); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .cta-row { margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 14px; color: var(--on-dark-muted); }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--red-soft); }

.divisions {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-top: 56px;
  position: relative; z-index: 1; background: var(--ink); box-shadow: 0 0 0 24px var(--ink); border-radius: 18px;
}
.division {
  display: flex; flex-direction: column; text-decoration: none; color: var(--on-dark);
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 18px; padding: 28px;
  transition: border-color .15s, transform .15s;
}
.division:hover { border-color: #4a5d82; transform: translateY(-2px); }
.division .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(212, 37, 28, .16); color: var(--red-soft); margin-bottom: 18px;
}
.division .ico svg { width: 25px; height: 25px; }
.kicker { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.division h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 8px 0 10px; }
.division p { font-size: 16px; color: var(--on-dark); }
.division .more {
  margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; color: var(--red-soft);
}
.division .more svg { width: 16px; height: 16px; }
.division.upcoming { background: transparent; border-style: dashed; border-color: #3a4b6c; }
.division.upcoming .ico { background: rgba(255,255,255,.06); color: var(--on-dark-muted); }
.division .kicker .soon { margin-left: 6px; position: relative; top: -1px; }

/* ---------- logo strip ---------- */
.logo-strip { background: #fff; border-bottom: 1px solid var(--line); }
.logo-strip .wrap { display: flex; align-items: center; gap: 40px; padding-top: 30px; padding-bottom: 30px; }
.strip-label { font: 600 13px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); max-width: 150px; flex: none; }
.logos { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.logos img { width: auto; object-fit: contain; }
.lg-elgi { height: 58px; }
.lg-siemens { height: 28px; }
.lg-schneider { height: 54px; }
.lg-bch { height: 62px; }
.lg-bosco { height: 66px; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head .eyebrow { color: var(--red); }
.section.dark .section-head .eyebrow { color: var(--on-dark-muted); }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; color: var(--ink); margin-top: 14px; }
.section.dark h2 { color: #fff; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.section.dark .section-head p { color: var(--on-dark-muted); }

/* about + timeline */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; }
.about-grid .section-head { margin-bottom: 0; }
.about-text p { font-size: 18px; color: var(--text); margin-top: 20px; }
.about-text .btn { margin-top: 30px; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 28px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2px solid var(--red);
}
.timeline li:last-child::before { background: var(--red); }
.timeline b { font: 800 20px/1.2 var(--head); color: var(--ink); }
.timeline p { color: var(--muted); font-size: 16px; margin-top: 2px; }

/* zones */
.zones-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.zones-grid .section-head { margin-bottom: 0; }
.zones-grid .ticks { margin-top: 28px; }
.zones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.zones li {
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff;
  display: grid; grid-template-columns: 70px 1fr; column-gap: 10px; align-items: center;
}
.zones b { grid-row: span 2; font: 800 21px/1 var(--head); color: var(--red); }
.zones span { font-weight: 600; color: var(--ink); line-height: 1.3; }
.zones small { font-size: 13px; color: var(--muted); }
.zones li.all { border-style: dashed; background: transparent; }
.zones li.all b { color: var(--muted); }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.why > div { padding: 34px 32px 34px 0; border-bottom: 1px solid var(--line); }
.why > div:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.why b { font: 700 13px/1 var(--body); color: var(--red); letter-spacing: .1em; }
.why h3 { font-size: 21px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.why p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- inner pages ---------- */
.page-hero { position: relative; background: var(--ink); color: var(--on-dark); padding: 72px 0 60px; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--red); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; color: #fff; margin: 20px 0 18px; max-width: 20em; }
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.jump a {
  text-decoration: none; font-size: 15px; font-weight: 500; color: #fff; padding: 9px 16px;
  border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
}
.jump a:hover { border-color: #fff; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.ticks svg { flex: none; width: 22px; height: 22px; color: var(--red); margin-top: 2px; }

.steps-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.steps-card h3 { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.steps li { counter-increment: st; position: relative; padding: 10px 0 10px 48px; }
.steps li::before {
  content: counter(st); position: absolute; left: 0; top: 10px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 700 13px/1 var(--body); background: #fff; color: var(--red);
  border: 2px solid var(--red); z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 16px; top: 44px; bottom: -10px; width: 2px; background: var(--line); }
.steps b { display: block; font: 700 17px/1.3 var(--head); color: var(--ink); }
.steps span { display: block; font-size: 15px; color: var(--muted); }

.partners { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; background: #fff;
  display: flex; flex-direction: column; gap: 16px;
}
.partner .logo { height: 72px; display: grid; place-items: center; }
.partner .logo img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; }
.partner h3 { font-size: 17px; font-weight: 700; color: var(--ink); }
.partner p { font-size: 15px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

.maint-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark); font-size: 16.5px; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--red-soft); margin-top: 2px; }

.stage-card {
  background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 18px; padding: 26px 26px 22px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.stage-card h3 { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.stage-card .title { font: 700 22px/1.25 var(--head); color: #fff; margin: 8px 0 18px; }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.stages li { counter-increment: s; position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 16px; color: var(--on-dark); }
.stages li::before {
  content: counter(s); flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 var(--body); background: var(--ink-3); color: var(--on-dark); border: 1px solid #34456a; position: relative; z-index: 1;
}
.stages li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 39px; bottom: -9px; width: 1px; background: #34456a; }
.stages li small { margin-left: auto; font-size: 12px; color: var(--on-dark-muted); text-align: right; }
.stage-card .foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ink-3); font-size: 14px; color: var(--on-dark-muted); }

.mini-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; }
.mini { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 22px 24px; }
.mini h3 { font-size: 19px; font-weight: 700; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mini p { color: var(--on-dark-muted); font-size: 15.5px; margin-top: 6px; }

.photo-slot {
  border-radius: 18px; border: 1px dashed #3a4b6c; margin-top: 16px;
  background: repeating-linear-gradient(135deg, var(--ink-2) 0 14px, #1b2840 14px 28px);
  display: grid; place-items: center; text-align: center; padding: 24px; color: var(--on-dark-muted); font-size: 15px;
}
.photo-slot.wide { aspect-ratio: 3 / 1; }
.photo-slot svg { display: block; width: 40px; height: 40px; margin: 0 auto 10px; opacity: .7; }

/* facts strip (About) */
.facts { background: #fff; border-bottom: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 28px 24px; border-left: 1px solid var(--line); text-align: center; }
.fact:first-child { border-left: 0; }
.fact b { display: block; font: 800 32px/1 var(--head); color: var(--ink); }
.fact span { display: block; margin-top: 8px; font-size: 15px; color: var(--muted); }

.prose p { font-size: 17.5px; margin-top: 18px; }
.prose p:first-child { margin-top: 0; }
.founder {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 40px 28px 32px;
  display: flex; flex-direction: column; align-items: center;
}
.served { width: 100%; text-align: center; }
.served-label { font: 600 12px/1.4 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.served-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 34px; margin-top: 30px; }
.served-logos img { height: 100px; width: auto; max-width: 100%; }
.served-logos img.wide { height: 52px; }
.timeline li.next::before { background: var(--paper); border-style: dashed; }
.timeline li.next b { color: var(--red); }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile {
  display: flex; flex-direction: column; text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; transition: border-color .15s, transform .15s;
}
.tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.tile .ico, .info .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: #fdeceb; color: var(--red); margin-bottom: 18px;
}
.tile .ico svg, .info .ico svg { width: 24px; height: 24px; }
.tile h3 { font-size: 23px; font-weight: 800; color: var(--ink); }
.tile p { color: var(--muted); margin-top: 8px; }
.tile .more { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--red); }
.tile .more svg, .after-tiles svg, .text-link svg { width: 16px; height: 16px; }
.after-tiles { margin-top: 28px; }
.after-tiles a, .text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); text-decoration: none; }

/* management */
.review-note { background: #fffbe6; border: 1px solid #f0e2a0; border-radius: 10px; padding: 12px 16px; font-size: 15px; color: #5c4a00; margin-bottom: 32px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.person { display: grid; grid-template-columns: 112px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font: 800 30px/1 var(--head); letter-spacing: .04em;
  box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 6px var(--red);
}
img.avatar { object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); }
.person h2 { font-size: 22px; font-weight: 800; color: var(--ink); }
.person .role { color: var(--red); font-weight: 600; font-size: 15px; margin: 4px 0 12px; }
.person p:not(.role) { color: var(--muted); font-size: 16px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info { display: grid; gap: 14px; }
.info { display: flex; gap: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; }
.info .ico { margin-bottom: 0; }
.info h2 { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.info p { font-size: 16.5px; color: var(--ink); }
.info a { text-decoration: none; }
.info a:hover { color: var(--red); }
.info .text-link { margin-top: 10px; font-size: 15px; color: var(--red); }
.info p.sub { margin-top: 10px; font-size: 15px; color: var(--muted); }

.quote-form { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: grid; gap: 16px; }
.quote-form h2 { font-size: 26px; font-weight: 800; color: var(--ink); margin-top: -8px; }
.form-kicker { font: 700 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.form-intro { color: var(--muted); margin-top: -6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--text); background: #fff;
  border: 1px solid #cfc9bd; border-radius: 10px; padding: 12px 14px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: var(--red); }
.field.bad input, .field.bad textarea { border-color: var(--red); background: #fff6f5; }
.quote-form .btn { justify-self: start; }
.form-note { font-size: 14px; color: var(--muted); }
.form-note a { color: var(--ink); }
.form-note.sent { color: #1d6b3a; font-weight: 600; }

/* ---------- contact band ---------- */
.cta-band { background: var(--ink); color: #fff; border-top: 4px solid var(--red); }
.cta-band .wrap { display: grid; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; max-width: 22em; }
.cta-band p { color: var(--on-dark-muted); margin-top: 12px; font-size: 18px; }

/* ---------- footer ---------- */
.site-footer { background: #0a111d; color: var(--on-dark-muted); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.2fr 1fr 1fr 0.8fr; gap: 40px; padding-top: 60px; padding-bottom: 48px; }
.footer-logo img { width: 230px; height: auto; margin-left: -8px; }
.site-footer h4 { font: 700 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.site-footer h4.gap { margin-top: 22px; }
.site-footer p, .site-footer li { line-height: 1.7; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom { border-top: 1px solid #1d2a40; }
.site-footer .bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; padding-bottom: 20px; font-size: 13.5px; }

.action-bar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav { display: none; }
  .icon-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .drawer {
    display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25); padding: 8px 24px 20px; z-index: 49;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .18s;
  }
  .drawer.open { transform: none; opacity: 1; visibility: visible; }
  .drawer a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
  .drawer a:last-child { border-bottom: 0; }
  .drawer .erp-link { display: flex; border: 0; padding: 14px 4px; font-size: 16px; color: var(--muted); border-radius: 0; }
  .partners { grid-template-columns: repeat(3, 1fr); }
  .people { grid-template-columns: 1fr; }
  .logo-strip .wrap { flex-direction: column; align-items: flex-start; gap: 18px; }
  .strip-label { max-width: none; }
  .logos { width: 100%; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .hero .tracks { width: 760px; right: -300px; top: 20px; }
  .divisions { grid-template-columns: 1fr; margin-top: 40px; }
  .about-grid, .zones-grid, .split, .maint-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 22px 16px; }
  .fact:nth-child(odd) { border-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tiles { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .why > div, .why > div:not(:nth-child(3n+1)) { padding: 28px 24px 28px 0; border-left: 0; }
  .why > div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .mini-cards { grid-template-columns: 1fr; margin-top: 40px; }
  .photo-slot.wide { aspect-ratio: 16 / 9; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .wrap { padding: 0 16px; }
  html { scroll-padding-top: 72px; }
  .site-header .wrap { height: 64px; gap: 12px; }
  .drawer { padding: 4px 16px 16px; }
  .lockup { gap: 9px; }
  .lockup img { width: 36px; }
  .lockup .name { font-size: 17px; }
  .lockup .name sup { font-size: 7px; }
  .lockup .tag { font-size: 7.2px; letter-spacing: .1em; margin-top: 5px; }
  .header-actions .btn { display: none; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .hero .cta-row .btn, .cta-band .cta-row .btn { flex: 1 1 100%; }
  .division { padding: 22px 20px; }
  .division h2 { font-size: 23px; }
  .logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 16px; justify-items: center; }
  .lg-elgi { height: 46px; } .lg-siemens { height: 20px; } .lg-schneider { height: 44px; } .lg-bch { height: 52px; } .lg-bosco { height: 54px; }
  .section-head { margin-bottom: 32px; }
  .zones { grid-template-columns: 1fr; }
  .partners { grid-template-columns: 1fr 1fr; gap: 12px; }
  .partner { padding: 18px 14px; }
  .partner .logo { height: 56px; }
  .partner .logo img { max-height: 50px; }
  .why { grid-template-columns: 1fr; }
  .why > div, .why > div:nth-child(even), .why > div:not(:nth-child(3n+1)) { padding: 24px 0; border-left: 0; }
  .page-hero { padding: 48px 0 44px; }
  .page-hero h1 { font-size: 30px; }
  .fact b { font-size: 26px; }
  .person { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .avatar { width: 84px; height: 84px; font-size: 24px; }
  .quote-form { padding: 22px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .quote-form .btn { justify-self: stretch; }
  .served-logos { gap: 24px 20px; margin-top: 24px; }
  .served-logos img { height: 72px; }
  .served-logos img.wide { height: 40px; }
  .steps-card, .stage-card { padding: 22px 18px 18px; }
  .stages li { font-size: 15px; padding: 7px 0; }
  .stages li:not(:last-child)::after { top: 35px; bottom: -7px; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .site-footer .bottom { padding-bottom: 72px; } /* room for the action bar */
  .action-bar {
    display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); backdrop-filter: blur(8px);
  }
  .action-bar .btn { padding: 13px 6px; font-size: 14px; gap: 6px; }
  .action-bar .btn svg { width: 16px; height: 16px; }
  .action-bar .btn-wa { border-color: var(--ink); color: var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* small Indian Railways logo after "The Indian Railways" (Services heading) */
.ir-logo { display: inline-block; width: 1.05em; height: 1.05em; margin-left: .28em; vertical-align: -0.16em; }

/* ---------- Partner with us ---------- */
.header-partner { padding: 9px 14px; font-size: 14.5px; border-width: 1.5px; }
.partner-line {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 22px; padding: 11px 16px;
  font-size: 15px; color: var(--on-dark); text-decoration: none; border: 1px dashed rgba(255, 106, 95, .6); border-radius: 10px;
}
.partner-line b { display: inline-flex; align-items: center; gap: 6px; color: var(--red-soft); white-space: nowrap; }
.partner-line svg { width: 16px; height: 16px; }
.partner-line:hover { border-style: solid; background: rgba(255, 255, 255, .04); }
.strip-partner {
  flex: none; display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; text-decoration: none; color: var(--ink);
  border: 1.5px dashed var(--red); border-radius: 12px; font-size: 14.5px; line-height: 1.3;
}
.strip-partner span { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; }
.strip-partner svg { width: 15px; height: 15px; }
.strip-partner:hover { border-style: solid; background: #fdf3f2; }
.partner-panel {
  margin-top: 28px; background: var(--ink); color: #fff; border-radius: 18px; padding: 28px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.partner-panel h3 { font-size: 26px; font-weight: 800; color: #fff; }
.partner-panel p { color: var(--on-dark-muted); margin-top: 8px; max-width: 34em; }
.drawer-partner { color: var(--red) !important; font-weight: 600 !important; }
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.offer { border: 1px solid var(--line); border-radius: 16px; padding: 26px; background: #fff; }
.offer .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: #fdeceb; color: var(--red); margin-bottom: 16px;
}
.offer .ico svg { width: 24px; height: 24px; }
.offer h3 { font-size: 20px; font-weight: 800; color: var(--ink); }
.offer p { color: var(--muted); margin-top: 8px; font-size: 16px; }
@media (max-width: 1060px) {
  .header-actions .header-partner { display: none; }
  .strip-partner { flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .offers { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .partner-line { font-size: 14px; }
  .partner-panel { padding: 22px 18px; }
  .partner-panel h3 { font-size: 22px; }
  .partner-panel .cta-row .btn { flex: 1 1 100%; }
  .offers { grid-template-columns: 1fr; }
  .strip-partner { width: 100%; }
}

/* ---------- 📎 Attach files on the forms (ERP SQL 276) ---------- */
.files-field .drop {
  position: relative; display: block; border: 1.5px dashed var(--red); border-radius: 10px; background: #fff;
  padding: 14px 12px; text-align: center; cursor: pointer;
}
.files-field .drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.files-field .drop:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.files-field .drop.over, .files-field .drop:hover { background: #fdf3f2; border-style: solid; }
.files-field .drop b { display: block; font-size: 15px; color: var(--ink); }
.files-field .drop small { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.field span em { font-style: normal; font-weight: 400; color: var(--muted); }
.files-field .file-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.files-field .file-list:empty { display: none; }
.files-field .file-list li {
  display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
}
.files-field .file-list .fname { flex: 1; min-width: 0; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.files-field .file-list .fsize { font-weight: 400; font-size: 13px; color: var(--muted); white-space: nowrap; }
.files-field .file-list button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 15px; padding: 2px 6px; }
.files-field .file-list button:hover { color: var(--red); }
.files-field .file-error { margin: 2px 0 0; font-size: 13px; color: var(--red); }
.files-field .file-error:empty { display: none; }

/* ---------- leadership quotes (home) ---------- */
.voices .voice { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.voices .voice + .voice { margin-top: 96px; }
.voices .voice.flip { grid-template-columns: 1.15fr 0.85fr; }
.voices .voice.flip .voice-photo { order: 2; }
.voice-photo { margin: 0; position: relative; }
.voice-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.voice-photo::after {
  content: ""; position: absolute; left: 22px; right: 22px; bottom: -6px; height: 6px;
  background: var(--red); border-radius: 0 0 6px 6px;
}
.bubble {
  position: relative; margin: 0; padding: 40px 44px 36px;
  border: 1.5px solid var(--ink); border-radius: 18px; background: var(--white);
}
.bubble p { font: 500 clamp(20px, 2vw, 26px)/1.5 var(--head); color: var(--text); letter-spacing: -0.005em; }
.bubble p b { font-weight: 800; color: var(--ink); }
.bubble .qmark {
  position: absolute; top: -30px; left: 32px; height: 44px; padding: 0 10px; background: var(--white);
  font: 700 84px/1 var(--serif); color: var(--red);
}
.bubble::after {
  content: ""; position: absolute; left: 56px; bottom: -12.5px; width: 22px; height: 22px; background: var(--white);
  border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg);
}
.voice-name { font: 800 22px/1.2 var(--head); color: var(--ink); margin-top: 30px; }
.voice-role { color: var(--muted); font-size: 15px; margin-top: 4px; }
/* fade in on scroll — only once site.js has switched it on, so the quotes still show without it */
.js-reveal .reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .8s ease; }
.js-reveal .reveal .voice-photo { transform: translateX(-24px); transition: transform .9s ease; }
.js-reveal .reveal.flip .voice-photo { transform: translateX(24px); }
.js-reveal .reveal.in, .js-reveal .reveal.in .voice-photo { opacity: 1; transform: none; }
@media (max-width: 900px) {
  .voices .voice, .voices .voice.flip { grid-template-columns: 1fr; gap: 40px; }
  .voices .voice.flip .voice-photo { order: 0; }
  .voices .voice + .voice { margin-top: 72px; }
  .voice-photo { max-width: 420px; }
  .js-reveal .reveal .voice-photo, .js-reveal .reveal.flip .voice-photo { transform: none; }
}
@media (max-width: 640px) {
  /* phone: the quote first, then a small round photo beside the name — far less scrolling */
  .voices .voice, .voices .voice.flip {
    grid-template-columns: 56px 1fr; grid-template-areas: "q q" "p n" "p r";
    column-gap: 14px; row-gap: 0; align-items: center;
  }
  .voices .voice + .voice { margin-top: 40px; }
  .voices .voice-body { display: contents; }
  .voices .voice-photo, .voices .voice.flip .voice-photo { grid-area: p; order: 0; max-width: none; margin-top: 24px; }
  .voices .voice-photo img { width: 56px; height: 56px; aspect-ratio: 1 / 1; border-radius: 50%; object-position: 50% 22%; }
  .voices .voice-photo::after { display: none; }
  .bubble { grid-area: q; padding: 24px 20px 20px; border-radius: 14px; }
  .bubble p { font-size: 17px; line-height: 1.5; }
  .bubble .qmark { top: -20px; left: 16px; height: 30px; padding: 0 8px; font-size: 56px; }
  .bubble::after { left: 18px; bottom: -11.5px; width: 20px; height: 20px; }
  .voice-name { grid-area: n; align-self: end; margin-top: 24px; font-size: 18px; }
  .voice-role { grid-area: r; align-self: start; margin-top: 2px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal, .js-reveal .reveal .voice-photo { opacity: 1; transform: none; transition: none; }
}

/* keep a hyphenated word on one line (e.g. after-sales in the leadership quote) */
.nobr { white-space: nowrap; }
