/* SRI Engineering & Construction Services — site styles */
:root {
  --navy: #101C2C;
  --navy-2: #182840;
  --navy-line: #2A3D58;
  --gold: #C49B55;
  --gold-deep: #9C7836;
  --grey: #F4F5F7;
  --white: #FFFFFF;
  --ink: #1B2533;
  --ink-soft: #4A5566;
  --rule: #DDE1E7;
  --on-navy: #E7EBF1;
  --on-navy-soft: #A9B4C4;

  --f-head: "Montserrat", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--f-head); color: var(--navy); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: var(--on-navy); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--navy-line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); margin-right: auto; }
.brand-mark { width: 42px; height: 42px; flex: none; }
.brand-text { font-family: var(--f-head); line-height: 1.1; }
.brand-text strong { display: block; font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; }
.brand-text span { display: block; font-size: .72rem; font-weight: 500; color: var(--on-navy-soft); letter-spacing: .02em; }

.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 10px 12px; text-decoration: none; font: 600 .9rem var(--f-head); color: var(--on-navy); border-radius: var(--radius); }
.nav a:hover { color: var(--gold); }
.nav a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--navy-line); color: var(--white); border-radius: var(--radius); padding: 8px 12px; font: 600 .9rem var(--f-head); cursor: pointer; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--radius); font: 700 .95rem var(--f-head); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #D3AD6A; }
.btn-line { border-color: currentColor; color: var(--white); background: transparent; }
.btn-line:hover { color: var(--gold); }
.btn-line-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-line-dark:hover { background: var(--navy); color: var(--white); }
.btn-wa { background: #1F9E57; color: #fff; }
.btn-wa:hover { background: #18864A; }
.header-cta { padding: 10px 16px; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); overflow: hidden; position: relative; }
.hero::before { /* drawing-sheet grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--navy-2) 1px, transparent 1px), linear-gradient(90deg, var(--navy-2) 1px, transparent 1px);
  background-size: 32px 32px; opacity: .55;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.hero-company { font: 700 .95rem var(--f-head); color: var(--gold); letter-spacing: .04em; margin-bottom: 18px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.hero .wrap > *, .split > *, .contact-grid > *, .section-head > * { min-width: 0; }
.hero h1 span { display: block; }
.hero-lead { font-size: 1.15rem; color: var(--on-navy); max-width: 46ch; margin: 18px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.sld { width: 100%; height: auto; }
.sld .wire { fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: square; }
.sld .wire-soft { fill: none; stroke: var(--on-navy-soft); stroke-width: 1.4; }
.sld .sym { fill: none; stroke: var(--gold); stroke-width: 2.2; }
.sld .node { fill: var(--gold); }
.sld text { font-family: var(--f-head); fill: var(--on-navy); font-size: 17px; font-weight: 600; }
.sld .tag { fill: var(--on-navy-soft); font-size: 13px; font-weight: 500; font-family: var(--f-body); }
.sld a:hover text, .sld a:focus text { fill: var(--gold); }
.sld a:focus { outline: none; }
.sld a:focus-visible rect { stroke: var(--gold); stroke-width: 2; }
.sld .feeder-box { fill: var(--navy); stroke: var(--navy-line); stroke-width: 1.4; }
.sld a:hover .feeder-box { stroke: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  .sld .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); animation: draw 1.1s cubic-bezier(.6,.1,.2,1) forwards; animation-delay: var(--d, 0s); }
  .sld .pop { opacity: 0; animation: pop .4s ease-out forwards; animation-delay: var(--d, 0s); }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes pop { to { opacity: 1; } }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--navy-2) 1px, transparent 1px), linear-gradient(90deg, var(--navy-2) 1px, transparent 1px); background-size: 32px 32px; opacity: .5; }
.page-head .wrap { position: relative; padding-top: clamp(44px, 6vw, 76px); padding-bottom: clamp(44px, 6vw, 76px); }
.page-head h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 20ch; }
.page-head p { color: var(--on-navy); font-size: 1.12rem; max-width: 60ch; margin: 0; }
.crumbs { font: 500 .85rem var(--f-body); color: var(--on-navy-soft); margin-bottom: 14px; }
.crumbs a { color: var(--on-navy-soft); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
.band { padding: clamp(56px, 8vw, 100px) 0; }
.band-grey { background: var(--grey); }
.band-navy { background: var(--navy); color: var(--on-navy); }
.band-navy h2, .band-navy h3 { color: var(--white); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px 56px; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); }
.band-navy .section-head p { color: var(--on-navy-soft); }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink); max-width: 60ch; }

/* Service lines — "feeder" rows */
.feeders { border-top: 2px solid var(--navy); }
.feeder { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 20px 32px; padding: 30px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.feeder-icon { width: 52px; height: 52px; color: var(--gold-deep); }
.feeder h3 { font-size: 1.3rem; margin: 4px 0 6px; }
.feeder p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.feeder ul { list-style: none; padding: 0; margin: 4px 0 0; columns: 2; column-gap: 28px; font-size: .95rem; }
.feeder li { break-inside: avoid; padding: 3px 0 3px 16px; position: relative; }
.feeder li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 2px; background: var(--gold); }
.feeder .more { font: 700 .9rem var(--f-head); color: var(--navy); white-space: nowrap; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; margin-top: 6px; }
.feeder .more:hover { color: var(--gold-deep); }

/* Industries */
.sectors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-left: 1px solid var(--navy-line); }
.sector { padding: 8px 26px 8px 24px; border-right: 1px solid var(--navy-line); }
.sector svg { width: 40px; height: 40px; color: var(--gold); margin-bottom: 18px; }
.sector h3 { font-size: 1.08rem; margin-bottom: 8px; }
.sector p { color: var(--on-navy-soft); font-size: .95rem; margin: 0; }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 48px; }
.reason { border-top: 3px solid var(--gold); padding-top: 18px; }
.reason h3 { font-size: 1.08rem; }
.reason p { color: var(--ink-soft); font-size: .97rem; margin: 0; }

/* Steps (true sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; position: relative; }
.steps li { counter-increment: step; padding: 0 22px 0 0; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); background: var(--white); color: var(--navy); font: 800 1rem var(--f-head); margin-bottom: 16px; position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 20px; left: 40px; right: 0; height: 2px; background: var(--rule); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* Work types */
.worktypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.worktype { background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--navy); padding: 24px 24px 22px; }
.worktype h3 { font-size: 1.08rem; }
.worktype p { color: var(--ink-soft); font-size: .95rem; margin: 0 0 12px; }
.worktype dl { margin: 0; font-size: .88rem; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.worktype dt { color: var(--ink-soft); }
.worktype dd { margin: 0; font-weight: 600; color: var(--navy); }

/* Service areas */
.areas { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
.areas li { font: 600 .95rem var(--f-head); padding: 9px 16px; border: 1.5px solid var(--navy); border-radius: 999px; color: var(--navy); background: var(--white); }
.band-navy .areas li { border-color: var(--gold); color: var(--white); background: transparent; }
.note { font-size: .9rem; color: var(--ink-soft); }
.band-navy .note { color: var(--on-navy-soft); }

/* Two-column prose */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
.statement { border-left: 4px solid var(--gold); padding: 4px 0 4px 24px; }
.statement h3 { font-size: 1rem; color: var(--gold-deep); margin-bottom: 8px; }
.statement p { font: 600 1.18rem/1.5 var(--f-head); color: var(--navy); margin: 0; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--rule); position: relative; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 14px; height: 8px; border-left: 2.5px solid var(--gold-deep); border-bottom: 2.5px solid var(--gold-deep); transform: rotate(-45deg); }
.checklist strong { font-family: var(--f-head); color: var(--navy); }

/* Service detail */
.service-detail { padding: 56px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail .split { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); }
.service-detail .feeder-icon { margin-bottom: 18px; }
.items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.item { padding: 16px 0; border-top: 1px solid var(--rule); }
.item h4 { font-size: 1rem; margin-bottom: 4px; }
.item p { color: var(--ink-soft); font-size: .94rem; margin: 0; }

/* Notice */
.notice { background: var(--grey); border: 1px dashed #B9C0CB; padding: 28px; border-radius: var(--radius); }
.notice h3 { margin-bottom: 8px; }
.notice p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--gold); color: var(--navy); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 52px; padding-bottom: 52px; }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { margin: 0; font-size: 1.05rem; }
.cta-band .btn-navy { background: var(--navy); color: var(--white); }
.cta-band .btn-navy:hover { background: var(--navy-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Contact & form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 28px; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.contact-list .k { display: block; font-size: .85rem; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list a, .contact-list .v { font: 700 1.08rem var(--f-head); color: var(--navy); text-decoration: none; word-break: break-word; }
.contact-list a:hover { color: var(--gold-deep); }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--grey); }

.form-card { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--gold); padding: clamp(22px, 4vw, 40px); border-radius: var(--radius); }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-top: 22px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 .9rem var(--f-head); color: var(--navy); }
.field .opt { font-weight: 400; color: var(--ink-soft); font-family: var(--f-body); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid #C6CCD5; border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--gold); outline-offset: 0; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B3261E; }
.err { color: #B3261E; font-size: .85rem; min-height: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-privacy { grid-column: 1 / -1; font-size: .86rem; color: var(--ink-soft); margin: 0; }
.form-status { grid-column: 1 / -1; margin: 0; padding: 14px 16px; border-radius: var(--radius); background: #EAF5EE; color: #145C33; font-weight: 500; display: none; }
.form-status.show { display: block; }

/* Careers */
.roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.role { border: 1px solid var(--rule); padding: 24px; border-radius: var(--radius); background: var(--white); }
.role h3 { font-size: 1.1rem; }
.role p { color: var(--ink-soft); font-size: .95rem; }
.role ul { padding-left: 18px; margin: 0; font-size: .93rem; color: var(--ink); }

/* Prose page */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose ul { padding-left: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-soft); font-size: .94rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 60px; padding-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .tagline { font: 600 1rem var(--f-head); color: var(--gold); margin: 14px 0 10px; }
.legal { border-top: 1px solid var(--navy-line); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; padding-bottom: 24px; font-size: .85rem; }

/* WhatsApp float */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1F9E57; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(16, 28, 44, .35); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: #18864A; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-block; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); border-bottom: 1px solid var(--navy-line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 8px var(--gutter) 18px; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--navy-line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
  .section-head, .split, .contact-grid, .service-detail .split { grid-template-columns: 1fr; }
  .feeder { grid-template-columns: 52px minmax(0, 1fr); }
  .feeder ul, .feeder .more { grid-column: 2; }
  .reasons, .worktypes, .roles { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand-text span { display: none; }
  .feeder { grid-template-columns: 1fr; gap: 12px; }
  .feeder ul, .feeder .more { grid-column: 1; }
  .feeder ul { columns: 1; }
  .feeder-icon { width: 44px; height: 44px; }
  .sectors { grid-template-columns: 1fr; border-left: 0; }
  .sector { border-right: 0; border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; }
  .reasons, .worktypes, .roles, .items, .form-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::before { position: absolute; left: 0; top: 0; }
  .steps li::after { display: none; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; justify-content: center; }
}
