/* ==========================================================================
   W&I Constructions and Engineering — main stylesheet
   Pure CSS, no build step. Edit tokens in :root to restyle the whole site.
   ========================================================================== */

:root {
  --navy: #0B1628;
  --dark: #07101D;
  --white: #FFFFFF;
  --off-white: #F6F7F9;
  --light-gray: #E7EAF0;
  --text: #172033;
  --muted: #667085;
  --gold: #D89A2B;
  --gold-light: #F0B84A;
  --line: #D5DAE3;
  --line-dark: rgba(255, 255, 255, 0.14);

  --font-head: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 120px);
  --header-h: 84px;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .3s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--navy); color: var(--white); padding: 10px 16px;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { max-width: 68ch; }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.22rem); color: var(--muted); line-height: 1.6; }
strong { font-weight: 700; color: var(--navy); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tint { background: var(--off-white); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.78); }
.section--dark h2, .section--dark h3, .section--dark h4, .section--dark strong { color: var(--white); }
.section--dark .lead { color: rgba(255,255,255,.72); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.split {
  display: grid; gap: clamp(40px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }

/* Section heading block with a dimension-line marker (drafting motif) */
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 60px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }
.section-head h2 + p { margin-top: 18px; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .95rem;
  color: var(--gold); margin-bottom: 16px;
}
.kicker::before {
  content: ""; width: 34px; height: 9px; flex: none;
  border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.section--dark .kicker, .hero .kicker, .page-hero .kicker { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  border: 1.5px solid transparent; border-radius: var(--radius);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--gold { background: var(--gold); color: var(--dark); }
.btn--gold:hover { background: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #16264A; }
.btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--wa { background: #1FA855; color: var(--white); }
.btn--wa:hover { background: #178C46; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; color: var(--navy);
  border-bottom: 1.5px solid var(--gold); padding-bottom: 3px;
  transition: gap var(--t), color var(--t);
}
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { gap: 12px; }
.section--dark .text-link { color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t), border-color var(--t), height var(--t);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(10px); }
}
.site-header.is-scrolled { border-color: var(--light-gray); box-shadow: 0 8px 30px rgba(11,22,40,.07); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 64px; width: auto; transition: height var(--t); }
.site-header.is-scrolled .brand img { height: 56px; }

.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav-list { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.nav-list a {
  position: relative; font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--text); padding: 8px 0; transition: color var(--t);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right var(--t);
}
.nav-list a:hover { color: var(--navy); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { right: 0; }
.nav-list a[aria-current="page"] { color: var(--navy); }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: .95rem; }

.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 1px solid var(--light-gray); border-radius: var(--radius);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: var(--navy);
  transition: transform var(--t), background var(--t); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; color: var(--white); background: var(--dark);
  min-height: min(calc(100vh - var(--header-h)), 860px);
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-media, .page-hero-media { position: absolute; inset: 0; }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after, .page-hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7,16,29,.94) 0%, rgba(7,16,29,.82) 42%, rgba(7,16,29,.35) 100%),
    linear-gradient(0deg, rgba(7,16,29,.75) 0%, rgba(7,16,29,0) 45%);
}
/* Blueprint grid overlay: the signature drafting motif */
.blueprint::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(240,184,74,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,184,74,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, rgba(0,0,0,.55) 55%, transparent 100%);
}
.hero-content { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: clamp(64px, 9vw, 120px) 0 56px; }
.hero h1 { color: var(--white); max-width: 24ch; font-size: clamp(2.3rem, 4.8vw, 3.75rem); }
.hero h1 .line { display: block; }
.hero .lead { color: rgba(255,255,255,.8); max-width: 60ch; margin-top: 26px; }

/* Title block (like an engineering drawing sheet) holding trust indicators */
.title-block {
  position: relative; z-index: 2;
  border-top: 1px solid var(--line-dark);
  background: rgba(7,16,29,.72);
}
@supports (backdrop-filter: blur(6px)) { .title-block { background: rgba(7,16,29,.55); backdrop-filter: blur(6px); } }
.title-block ul { display: grid; grid-template-columns: repeat(3, 1fr) auto; }
.title-block li {
  padding: 22px 28px 22px 0; display: flex; flex-direction: column; gap: 2px;
  border-right: 1px solid var(--line-dark); padding-left: 28px;
}
.title-block li:first-child { padding-left: 0; }
.title-block li:last-child { border-right: 0; padding-right: 0; justify-content: center; }
.title-block small { font-size: .78rem; color: rgba(255,255,255,.55); letter-spacing: .02em; }
.title-block b { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--white); }
.title-block .tb-ref { font-family: var(--font-head); font-size: .8rem; color: var(--gold-light); text-align: right; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; color: var(--white); background: var(--dark); overflow: hidden;
  padding: clamp(88px, 11vw, 150px) 0 clamp(64px, 7vw, 96px);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); max-width: 20ch; font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
.page-hero .lead { color: rgba(255,255,255,.8); margin-top: 22px; max-width: 62ch; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 26px; }
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255,255,255,.35); }

/* ==========================================================================
   CARD SYSTEM + HOVER EFFECTS (shared by every card on every page)
   Add class "card" to any card. Image cards also use ".card-media".
   ========================================================================== */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--light-gray); border-radius: var(--radius);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t);
  will-change: transform;
}
.card::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease); z-index: 2;
}
.card-media { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: var(--light-gray); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body p { color: var(--muted); font-size: .98rem; }
.card-icon {
  width: 48px; height: 48px; display: grid; place-items: center; flex: none;
  color: var(--navy); background: var(--off-white); border: 1px solid var(--light-gray);
  transition: color var(--t), background var(--t), border-color var(--t);
}
.card-icon svg { width: 24px; height: 24px; }
.card-arrow { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--navy); }
.card-arrow svg { width: 18px; height: 18px; transition: transform var(--t); }
.section--dark .card { background: rgba(255,255,255,.035); border-color: var(--line-dark); }
.section--dark .card-body p, .section--dark .card p { color: rgba(255,255,255,.7); }
.section--dark .card-icon { background: rgba(255,255,255,.06); border-color: var(--line-dark); color: var(--gold-light); }
a.card { color: inherit; }

@media (hover: hover) {
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px -18px rgba(11,22,40,.28);
    border-color: var(--line);
  }
  .card:hover::before { transform: scaleX(1); }
  .card:hover .card-media img { transform: scale(1.05); }
  .card:hover .card-icon { color: var(--dark); background: var(--gold); border-color: var(--gold); }
  .card:hover .card-arrow svg { transform: translateX(4px); }
  .section--dark .card:hover { background: rgba(255,255,255,.07); border-color: rgba(240,184,74,.45); box-shadow: 0 18px 40px -18px rgba(0,0,0,.6); }
}
/* Same feedback for keyboard users on linked cards */
a.card:focus-visible { transform: translateY(-5px); box-shadow: 0 18px 40px -18px rgba(11,22,40,.28); }
a.card:focus-visible::before { transform: scaleX(1); }
a.card:focus-visible .card-media img { transform: scale(1.05); }
a.card:focus-visible .card-icon { color: var(--dark); background: var(--gold); border-color: var(--gold); }
a.card:focus-visible .card-arrow svg { transform: translateX(4px); }

/* ---------- Service cards (home) ---------- */
.service-card .card-body { gap: 10px; }
.service-card .card-icon { margin-top: -50px; position: relative; z-index: 3; background: var(--white); }
.service-card h3 { font-size: 1.14rem; }

/* ---------- Who we are ---------- */
.figure-stack { position: relative; }
.figure-stack .main { overflow: hidden; }
.figure-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.figure-note {
  display: flex; align-items: center; gap: 18px; background: var(--navy); color: var(--white);
  padding: 20px 24px; border-top: 3px solid var(--gold);
}
.figure-note b { display: block; flex: none; font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--white); letter-spacing: -0.03em; }
.figure-note span { font-size: .92rem; color: rgba(255,255,255,.75); }
.check-list { display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; color: var(--gold); margin-top: 2px; }
.section--dark .check-list li { color: rgba(255,255,255,.82); }
.discipline-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.discipline-tags li { font-size: .88rem; font-weight: 600; font-family: var(--font-head); color: var(--navy); border: 1px solid var(--line); padding: 7px 14px; background: var(--white); }

/* ---------- Technical expertise: drawing sheet layout ---------- */
.spec-sheet {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto;
  gap: 0; border: 1px solid var(--line-dark);
}
.spec-sheet .card { border: 0; border-radius: 0; background: transparent; padding: 34px 30px; gap: 14px; }
.spec-sheet .card + .card { border-left: 1px solid var(--line-dark); }
.spec-sheet .card:nth-child(n+4) { border-top: 1px solid var(--line-dark); }
.spec-sheet .card:nth-child(4) { border-left: 0; }
.spec-sheet .spec-lead { grid-row: span 2; border-right: 1px solid var(--line-dark); display: flex; flex-direction: column; justify-content: space-between; }
.spec-sheet .spec-lead + .card { border-left: 0; }
.spec-sheet .card:nth-child(4) { border-left: 0; }
.spec-code { font-family: var(--font-head); font-weight: 700; font-size: .82rem; color: var(--gold-light); }
.spec-sheet h3 { font-size: 1.2rem; }
.spec-sheet p { font-size: .96rem; }
.spec-diagram { margin-top: 28px; color: rgba(240,184,74,.75); }
.spec-diagram svg { width: 100%; height: auto; }

/* ---------- Why cards ---------- */
.why-card { padding: 28px; gap: 14px; }
.why-card p { color: var(--muted); font-size: .96rem; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process--5 { grid-template-columns: repeat(5, 1fr); }
.process .card { padding: 32px 28px 34px; border-radius: 0; gap: 12px; }
.process .card + .card { border-left: 0; }
.step-no { font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: #BAC2D0; letter-spacing: -0.04em; transition: color var(--t); }
@media (hover: hover) { .process .card:hover .step-no { color: var(--gold); } }
.process .card p { color: var(--muted); font-size: .96rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 40px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 1px; background: var(--line); }
.section--dark .timeline::before { background: var(--line-dark); }
.timeline .card { padding: 28px 26px 30px; gap: 10px; }
.timeline .card::after {
  content: ""; position: absolute; top: -36px; left: 26px; width: 15px; height: 15px;
  border: 2px solid var(--gold); background: var(--white); border-radius: 50%; transition: background var(--t);
}
.section--dark .timeline .card::after { background: var(--navy); }
@media (hover: hover) { .timeline .card:hover::after { background: var(--gold); } }
.timeline .year { font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; color: var(--navy); line-height: 1; }
.section--dark .timeline .year { color: var(--white); }
.timeline .phase { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; }
.timeline p { font-size: .96rem; color: var(--muted); }

/* ---------- Leadership ---------- */
.leader-card .card-media { aspect-ratio: 4 / 5; background: #EEF0F4; }
.leader-card .card-media img { object-position: center top; }
.leader-card .role { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; }
.leader-card .card-body { gap: 8px; }
.leader-card .card-body p { margin-top: 6px; }

/* Team page profiles */
.profile {
  display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start;
}
.profile + .profile { margin-top: clamp(64px, 8vw, 104px); padding-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--light-gray); }
.profile--flip { grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); }
.profile--flip .profile-photo { order: 2; }
.profile-photo { position: sticky; top: calc(var(--header-h) + 24px); }
.profile-photo .card-media { aspect-ratio: 4 / 5; }
.profile-photo .card-body { padding: 20px 22px; }
.profile h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.profile .role { font-family: var(--font-head); font-weight: 700; color: var(--gold); margin-top: 8px; display: block; }
.profile-text { display: grid; gap: 18px; margin-top: 26px; }
.profile-text p { color: #3A4458; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 30px; }
.fact-grid .card { padding: 20px 22px; gap: 6px; }
.fact-grid small { color: var(--muted); font-size: .85rem; }
.fact-grid b { font-family: var(--font-head); color: var(--navy); font-size: 1rem; }

/* ---------- Capabilities / local ---------- */
.cap-card { padding: 30px 28px; gap: 12px; }
.cap-card p { color: var(--muted); font-size: .96rem; }
.region-strip { max-width: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--light-gray); color: var(--muted); font-size: .95rem; }
.region-strip b { color: var(--navy); font-family: var(--font-head); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.cta-band .container { position: relative; z-index: 2; }
.cta-band .container > div:first-child { max-width: 760px; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,.75); margin-top: 16px; }


/* ---------- About: pillars, standards ---------- */
.pillar { padding: 34px 30px; gap: 14px; }
.pillar p { color: var(--muted); }
.promise-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.promise-values .card { padding: 20px 22px; gap: 8px; }
.promise-values .card h3 { font-size: 1.02rem; }
.promise-values .card p { font-size: .9rem; color: var(--muted); }

.approach-list { display: grid; gap: 0; border-top: 1px solid var(--line-dark); }
.approach-list .card { flex-direction: row; gap: 22px; align-items: flex-start; padding: 26px 22px; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; background: transparent; }
.approach-list h3 { font-size: 1.12rem; }
.approach-list p { margin-top: 6px; font-size: .96rem; }

.standards { border: 1px solid var(--light-gray); background: var(--white); }
.standards-row { display: grid; grid-template-columns: 1fr 1.6fr 1.4fr; }
.standards-row > * { padding: 20px 24px; border-bottom: 1px solid var(--light-gray); }
.standards-row > * + * { border-left: 1px solid var(--light-gray); }
.standards-head > * { background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: .95rem; border-color: var(--line-dark); }
.standards-row.card { flex-direction: row; display: grid; border: 0; border-radius: 0; }
.standards-row.card::before { height: 100%; width: 3px; right: auto; top: 0; left: 0; transform: scaleY(0); transform-origin: top; }
@media (hover: hover) {
  .standards-row.card:hover { transform: none; box-shadow: none; background: var(--off-white); }
  .standards-row.card:hover::before { transform: scaleY(1); }
}
.standards-row .bench { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.standards-row .ours { color: var(--text); }
.standards-row .trad { color: var(--muted); }
.standards-row:last-child > * { border-bottom: 0; }
.fine-print { font-size: .88rem; color: var(--muted); margin-top: 16px; }

/* ---------- Services page ---------- */
.service-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; scroll-margin-top: calc(var(--header-h) + 24px); }
.service-detail + .service-detail { margin-top: clamp(64px, 8vw, 110px); }
.service-detail--flip .service-media { order: 2; }
.service-media.card { overflow: hidden; }
.service-media .card-media { aspect-ratio: 4 / 3; }
.service-no { font-family: var(--font-head); font-weight: 700; color: var(--gold); font-size: .95rem; margin-bottom: 12px; display: block; }
.service-detail h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.service-detail > div > p { margin-top: 16px; color: #3A4458; }
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 24px 0 28px; }
.cap-list .card { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; font-size: .94rem; font-weight: 500; }
.cap-list svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.service-index { display: flex; flex-wrap: wrap; gap: 10px; }
.service-index a.card { flex-direction: row; align-items: center; gap: 10px; padding: 10px 16px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--navy); }
.service-index svg { width: 18px; height: 18px; color: var(--gold); }

.solution-card { padding: 28px; gap: 12px; }
.solution-card ul { display: grid; gap: 8px; margin-top: 4px; }
.solution-card li { display: flex; gap: 10px; font-size: .95rem; color: var(--muted); }
.solution-card li::before { content: ""; width: 10px; height: 1.5px; background: var(--gold); margin-top: 12px; flex: none; }
.section--dark .solution-card li { color: rgba(255,255,255,.72); }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.contact-card { padding: 28px 26px; gap: 12px; }
.contact-card small { color: var(--muted); font-size: .88rem; }
.contact-card b { font-family: var(--font-head); color: var(--navy); font-size: 1.08rem; word-break: break-word; }
.inquiry { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.inquiry-steps { display: grid; gap: 14px; counter-reset: iq; }
.inquiry-steps .card { flex-direction: row; gap: 18px; padding: 20px 22px; align-items: flex-start; }
.inquiry-steps .card::after { counter-increment: iq; content: counter(iq, decimal-leading-zero); order: -1; font-family: var(--font-head); font-weight: 800; color: var(--gold); font-size: 1.1rem; min-width: 28px; }
.inquiry-steps h3 { font-size: 1.02rem; }
.inquiry-steps p { font-size: .94rem; color: var(--muted); margin-top: 4px; }
.sample-msg { background: var(--navy); color: rgba(255,255,255,.85); padding: 30px; border-left: 3px solid var(--gold); }
.sample-msg p { font-size: .98rem; margin-top: 12px; }
.sample-msg h3 { color: var(--white); }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.strip a.card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--navy); }
.strip .card-icon { width: 40px; height: 40px; }
.strip .card-icon svg { width: 20px; height: 20px; }

.map-wrap { position: relative; border: 1px solid var(--light-gray); overflow: hidden; aspect-ratio: 16 / 7; background: var(--light-gray); }
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.wa-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: clamp(32px, 5vw, 80px); align-items: center; }
.qr-card { padding: 22px; background: var(--white); width: min(320px, 100%); }
.qr-card img { width: 100%; }
.qr-card p { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 12px; }

.social-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.social-card { padding: 26px 22px; gap: 12px; align-items: flex-start; }
.social-card b { font-family: var(--font-head); color: var(--navy); }
.social-card small { color: var(--muted); font-size: .88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--off-white); border-top: 1px solid var(--light-gray); color: var(--text); }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand img { height: 78px; width: auto; }
.footer-brand p { margin-top: 18px; color: var(--muted); font-size: .96rem; max-width: 34ch; }
.footer-brand .tagline { font-family: var(--font-head); font-weight: 700; color: var(--navy); margin-top: 14px; }
.site-footer h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: 18px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: var(--muted); font-size: .96rem; transition: color var(--t); }
.footer-links a:hover { color: var(--navy); }
.footer-contact { display: grid; gap: 14px; }
.footer-contact a, .footer-contact span { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: .96rem; }
.footer-contact a:hover { color: var(--navy); }
.footer-contact svg { width: 19px; height: 19px; color: var(--gold); flex: none; margin-top: 3px; }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--navy); background: var(--white);
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.social a svg { width: 20px; height: 20px; }
.social a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); transform: translateY(-2px); }
.footer-bottom { background: var(--navy); color: rgba(255,255,255,.65); font-size: .88rem; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom a { color: rgba(255,255,255,.85); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: var(--white);
  box-shadow: 0 10px 28px -6px rgba(7,16,29,.45);
  transition: transform var(--t), box-shadow var(--t), background var(--t);
}
.wa-float svg { width: 32px; height: 32px; }
.wa-float .wa-tip {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(6px, -50%);
  background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 600; font-size: .88rem;
  padding: 8px 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t), transform var(--t);
}
@media (hover: hover) {
  .wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(7,16,29,.5); background: #1FBE5B; }
  .wa-float:hover .wa-tip { opacity: 1; transform: translate(0, -50%); }
}
.wa-float:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.wa-float:focus-visible .wa-tip { opacity: 1; transform: translate(0, -50%); }
body.nav-open .wa-float { opacity: 0; pointer-events: none; }

/* ---------- Reveal (single, subtle) ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.hero-content .reveal { transition-duration: .9s; }
.hero-content .reveal:nth-child(2) { transition-delay: .08s; }
.hero-content .reveal:nth-child(3) { transition-delay: .16s; }
.hero-content .reveal:nth-child(4) { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .spec-sheet { grid-template-columns: 1fr 1fr; }
  .spec-sheet .spec-lead { grid-column: 1 / -1; grid-row: auto; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .spec-sheet .card { border-left: 0 !important; border-top: 0 !important; }
  .spec-sheet .card:not(.spec-lead) { border-bottom: 1px solid var(--line-dark); }
  .spec-sheet .card:not(.spec-lead):nth-child(even) { border-right: 1px solid var(--line-dark); }
  .process--5 { grid-template-columns: repeat(3, 1fr); }
  .process--5 .card:nth-child(n+4) { border-top: 0; }
  .process--5 .card:nth-child(4) { border-left: 1px solid var(--light-gray); }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .promise-values { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .brand img { height: 48px; }
  .site-header.is-scrolled .brand img { height: 44px; }
  .site-header { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: 12px var(--gutter) 32px; overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list a { display: block; padding: 18px 0; font-size: 1.25rem; border-bottom: 1px solid var(--light-gray); }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current="page"] { color: var(--gold); }
  .nav .btn { margin-top: 26px; min-height: 54px; font-size: 1rem; }
  body.nav-open { overflow: hidden; }

  .split, .split--wide-left, .inquiry, .wa-panel { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .title-block ul { grid-template-columns: repeat(3, 1fr); }
  .title-block li:last-child { display: none; }
  .title-block li:nth-child(3) { border-right: 0; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process .card:nth-child(n+3) { border-top: 0; }
  .process .card:nth-child(3) { border-left: 1px solid var(--light-gray); }
  .process--5 .card:nth-child(4) { border-left: 0; }
  .process--5 .card:nth-child(odd) { border-left: 1px solid var(--light-gray); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .timeline::before { display: none; }
  .timeline .card::after { top: -8px; }
  .service-detail, .service-detail--flip { grid-template-columns: 1fr; }
  .service-detail--flip .service-media { order: 0; }
  .profile, .profile--flip { grid-template-columns: 1fr; }
  .profile--flip .profile-photo { order: 0; }
  .profile-photo { position: static; max-width: 380px; }
  .figure-stack { max-width: 520px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .map-wrap { aspect-ratio: 4 / 3; }
  .standards-row { grid-template-columns: 1fr 1.4fr 1.2fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-content { padding: 56px 0 40px; }
  .title-block ul { grid-template-columns: 1fr; }
  .title-block li { padding: 14px 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .title-block li:nth-child(3) { border-bottom: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .btn { white-space: normal; text-align: center; min-height: 52px; height: auto; padding-top: 12px; padding-bottom: 12px; }
  html, body { overflow-x: clip; }
  .spec-sheet { grid-template-columns: 1fr; }
  .spec-sheet .card:not(.spec-lead):nth-child(even) { border-right: 0; }
  .process, .process--5 { grid-template-columns: 1fr; }
  .process .card { border-left: 1px solid var(--light-gray) !important; border-top: 0; }
  .process .card:first-child { border-top: 1px solid var(--light-gray); }
  .timeline { grid-template-columns: 1fr; gap: 40px; }
  .cap-list { grid-template-columns: 1fr; }
  .contact-cards, .strip { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .promise-values { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
  .standards-head { display: none; }
  .standards-row, .standards-row.card { grid-template-columns: 1fr; }
  .standards-row > * + * { border-left: 0; }
  .standards-row > * { border-bottom: 0; padding: 6px 20px; }
  .standards-row { padding: 14px 0; border-bottom: 1px solid var(--light-gray); }
  .standards-row .ours::before { content: "W&I standard: "; font-weight: 700; color: var(--navy); }
  .standards-row .trad::before { content: "Typical practice: "; font-weight: 600; }
  .wa-float { width: 56px; height: 56px; }
  .map-wrap { aspect-ratio: 1 / 1; }
}

@media (max-width: 380px) {
  .social-grid { grid-template-columns: 1fr; }
  .brand img { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, a.card:focus-visible, .wa-float:hover, .social a:hover { transform: none !important; }
  .card:hover .card-media img, a.card:focus-visible .card-media img { transform: none !important; }
}
.section--dark .qr-card { background: var(--white); border-color: var(--white); }
.section--dark .qr-card p { color: var(--muted); }
