/* Gama Engineering & Control — site styles
   Layout: engineering drawing sheet. White pages, charcoal "plan room" bands, red used only for action and safety. */
:root {
  --red: #B91C1C;
  --red-dk: #7F1D1D;
  --red-soft: #FBEAEA;
  --ink: #222831;
  --ink-2: #4A515C;
  --muted: #646B76;
  --line: #E1E4E9;
  --bg: #F5F6F8;
  --white: #FFFFFF;
  --night: #1B2027;
  --night-2: #262C35;
  --night-line: rgba(255, 255, 255, .09);

  --f-body: "Heebo", "Assistant", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.5rem + 3vw, 3.7rem);

  --wrap: 1200px;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  --radius: 6px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dk); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--grey { background: var(--bg); }
.section--night { background: var(--night); color: #E8EAEE; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--step--1); font-weight: 700; letter-spacing: .04em; color: var(--red);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section--night .eyebrow { color: #F08A8A; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head h2 { font-size: var(--step-3); }
.sec-head p { color: var(--muted); font-size: var(--step-1); line-height: 1.6; }
.section--night .sec-head p { color: #B9BEC7; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 24px; border-radius: var(--radius); border: 2px solid var(--b);
  background: var(--b); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.btn:hover { --b: var(--red-dk); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { background: transparent; color: var(--ink); --b: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; --b: var(--ink); }
.btn--light { background: transparent; color: #fff; --b: rgba(255, 255, 255, .55); }
.btn--light:hover { background: #fff; color: var(--ink); --b: #fff; }
.btn--sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.textlink svg { width: 18px; height: 18px; transition: transform .2s; }
.textlink:hover svg { transform: translateX(-4px); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--white); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(34, 40, 49, .06); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo svg { width: 40px; height: 40px; }
.logo-text { display: flex; align-items: baseline; gap: 10px; font-size: 1.32rem; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.logo-text .bar { width: 1.5px; height: 20px; background: var(--red); align-self: center; }
.logo-text .sub { font-weight: 500; color: var(--ink-2); }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; display: flex; gap: 2px; }
.nav a {
  display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem;
  border-radius: 4px; position: relative; white-space: nowrap;
}
.nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--red); transform: scaleX(0); transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { flex: none; }
.menu-btn { display: none; margin-inline-start: auto; width: 46px; height: 46px; border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn .icon-x { display: none; }
.menu-open .menu-btn .icon-x { display: block; }
.menu-open .menu-btn .icon-menu { display: none; }

@media (max-width: 1140px) {
  .nav a { padding: 8px 9px; font-size: .94rem; }
  .logo-text .sub { display: none; }
  .logo-text .bar { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .menu-btn { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; background: #fff; margin: 0;
    padding: 12px var(--gut-r) 32px var(--gut); overflow-y: auto; display: none; border-top: 1px solid var(--line);
  }
  .menu-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { font-size: 1.15rem; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a::after { display: none; }
  .nav .nav-cta { display: flex; margin-top: 20px; }
  .logo-text .sub { display: inline; }
  .logo-text .bar { display: block; }
}
@media (min-width: 981px) { .nav .nav-cta { display: none; } }
@media (max-width: 420px) { .logo-text { font-size: 1.12rem; } .logo svg { width: 34px; height: 34px; } }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; background: var(--night);
  background-image:
    linear-gradient(var(--night-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--night-line) 1px, transparent 1px),
    radial-gradient(120% 90% at 20% 60%, #2A313B 0%, var(--night) 70%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
}
.hero .wrap { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero-copy { display: grid; gap: 22px; align-content: start; }
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.12; }
.hero h1 .kicker { display: block; font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; color: #F08A8A; margin-bottom: 18px; }
.hero h1 .kicker::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-inline-end: 10px; }
.hero-lead { font-size: var(--step-1); color: #D5D9E0; line-height: 1.6; max-width: 34em; }
.hero-note { color: #AEB4BE; font-size: 1rem; }
.hero-feats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero-feats li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 0 0; padding-inline-end: 14px; font-size: .95rem; line-height: 1.45; color: #E3E6EB; }
.hero-feats li + li { padding-inline-start: 14px; border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.hero-feats .icon { color: #F08A8A; width: 26px; height: 26px; margin-top: 1px; }
.hero-feats strong { display: block; font-weight: 700; color: #fff; }

.iso-panel { position: relative; display: grid; gap: 14px; min-width: 0; }
.iso-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.iso-modes { display: inline-flex; padding: 4px; gap: 4px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; }
.iso-modes button {
  font: inherit; font-size: .9rem; font-weight: 600; color: #C9CED6; background: transparent; border: 0; border-radius: 999px;
  padding: 7px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s;
}
.iso-modes button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8FD19E; }
.iso-modes button[data-iso-state="alarm"]::before { background: #F25555; }
.iso-modes button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.iso-sheet { font-family: var(--f-mono); font-size: .75rem; color: #8A919C; direction: ltr; letter-spacing: .04em; }
.iso-stage { position: relative; }
svg.iso { display: block; width: 100%; height: auto; direction: ltr; overflow: visible; }

/* drawing styles */
.iso .slab { fill: #2B323C; stroke: rgba(255, 255, 255, .28); stroke-width: 1; }
.iso .slab-side { fill: #20262E; stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.iso .slab-front { fill: #171B21; stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.iso .floor-grid { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.iso .wall { stroke: rgba(255, 255, 255, .42); stroke-width: 2.4; stroke-linecap: square; fill: none; }
.iso .fire-wall { stroke: #E25B5B; stroke-dasharray: 7 5; stroke-width: 2.4; }
.iso .floor-tag { font-family: var(--f-body); font-size: 16px; fill: #E98585; font-weight: 600; }
.iso .f { stroke: #20252C; stroke-width: .9; stroke-linejoin: round; }
.iso [data-s="hv"] { --t: #FFFFFF; --l: #D9DDE3; --r: #B6BDC7; --dot: #222831; }
.iso [data-s="sm"], .iso [data-s="pf"] { --t: #F6CACA; --l: #D24A4A; --r: #A51A1A; --dot: #7F1D1D; }
.iso [data-s="fd"] { --t: #6B7380; --l: #4C535E; --r: #3A4049; }
.iso [data-s="base"] { --t: #59616D; --l: #424852; --r: #343941; }
.iso .t { fill: var(--t); } .iso .l { fill: var(--l); } .iso .r { fill: var(--r); }
.iso [data-s="core"] .f { fill: rgba(255, 255, 255, .045); stroke: rgba(255, 255, 255, .5); stroke-dasharray: 3 3; }
.iso .stair { stroke: rgba(255, 255, 255, .3); stroke-width: 1.2; }
.iso .glyph { fill: none; stroke: #2A1414; stroke-width: 1.2; }
.iso [data-s="hv"] .glyph { stroke: #59616D; }
.iso .glyph.thin { stroke-width: .9; }
.iso .flow {
  stroke: var(--dot); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 0 18;
  animation: iso-flow .9s linear infinite; stroke-dashoffset: var(--o);
}
.iso [data-s="pf"] .flow { stroke: #F07777; stroke-width: 4; }
@keyframes iso-flow { from { stroke-dashoffset: var(--o); } to { stroke-dashoffset: calc(var(--o) - 18px); } }
.is-paused .iso .flow { animation-play-state: paused; }
.iso .lbl polyline { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.iso .lbl circle { fill: #fff; }
.iso .lbl .code { font-family: var(--f-mono); font-size: 18px; font-weight: 500; fill: #fff; letter-spacing: .03em; }
.iso .lbl .sub { font-family: var(--f-body); font-size: 16px; fill: #C3C8D0; }
.iso .st-a { display: none; }
.iso .fire { opacity: 0; transition: opacity .4s; }
.iso .fire-core { fill: #FF5A3C; }
.iso .fire-glow { fill: rgba(255, 90, 60, .25); transform-box: fill-box; transform-origin: center; animation: iso-pulse 1.4s ease-in-out infinite; }
@keyframes iso-pulse { 50% { transform: scale(1.35); opacity: .45; } }
.iso .puff { fill: #C9CED6; pointer-events: none; }

/* normal state: smoke-control systems idle */
.iso [data-s="sm"] .flow, .iso [data-s="pf"] .flow { opacity: 0; transition: opacity .4s; }
.iso [data-s="sm"], .iso [data-s="pf"] { transition: opacity .5s; }
.iso [data-s="hv"] { transition: opacity .6s; }
.iso [data-s="hv"] .flow { transition: opacity .4s; }
.iso [data-s="fd"] .f { transition: fill .4s; }
/* alarm sequence: detection → HVAC off → damper closes → smoke fan → pressurisation */
.is-alarm .iso .fire { opacity: 1; }
.is-alarm .iso [data-s="hv"] { opacity: .5; transition-delay: .3s; }
.is-alarm .iso [data-s="hv"] .flow { opacity: 0; transition-delay: .3s; }
.is-alarm .iso [data-s="fd"] { --t: #F07777; --l: #C52828; --r: #8E1717; }
.is-alarm .iso [data-s="fd"] .f { transition-delay: .9s; }
.is-alarm .iso .fd-lbl .st-n { display: none; }
.is-alarm .iso .fd-lbl .st-a { display: inline; fill: #FF8C8C; font-weight: 700; }
.is-alarm .iso [data-s="sm"] .flow { opacity: 1; transition-delay: 1.4s; }
.is-alarm .iso [data-s="pf"] .flow { opacity: 1; transition-delay: 1.9s; }

.iso-status { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); overflow: hidden; }
.iso-status li { background: #1F252D; padding: 10px 12px; display: grid; gap: 2px; font-size: .82rem; line-height: 1.35; color: #9EA5B0; min-width: 0; }
.iso-status b { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; color: #fff; }
.iso-status b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #8FD19E); flex: none; transition: background .4s, box-shadow .4s; }
.iso-status .a { display: none; }
.is-alarm .iso-status .n { display: none; }
.is-alarm .iso-status .a { display: inline; }
.iso-status li[data-k="hv"] { --c: #8FD19E; }
.iso-status li[data-k="fd"] { --c: #8FD19E; }
.iso-status li[data-k="sm"], .iso-status li[data-k="pf"] { --c: #6B7380; }
.is-alarm .iso-status li[data-k="hv"] { --c: #6B7380; }
.is-alarm .iso-status li[data-k="fd"], .is-alarm .iso-status li[data-k="sm"], .is-alarm .iso-status li[data-k="pf"] { --c: #F25555; }
.is-alarm .iso-status li[data-k="sm"] b::before, .is-alarm .iso-status li[data-k="pf"] b::before { box-shadow: 0 0 0 4px rgba(242, 85, 85, .22); }
.iso-caption { color: #C3C8D0; font-size: .95rem; line-height: 1.55; min-height: 3.1em; }
.iso-caption::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; background: #8FD19E; border-radius: 50%; vertical-align: 1px; transition: background .3s; }
.is-alarm .iso-caption::before { background: #F25555; }

@media (max-width: 1024px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .iso-panel { max-width: 760px; }
}
@media (max-width: 640px) {
  .hero-feats { grid-template-columns: 1fr; }
  .hero-feats li { padding-block: 12px 0; }
  .hero-feats li + li { padding-inline-start: 0; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .iso-status { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .btn-row .btn { flex: 1 1 auto; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-copy { display: grid; gap: 18px; }
.about-copy h2 { font-size: var(--step-3); }
.about-copy p { color: var(--ink-2); max-width: 62ch; }
.about-sectors { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; list-style: none; }
.about-sectors li { font-size: .9rem; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; }
.drawing {
  position: relative; background: var(--night); border-radius: var(--radius); padding: 28px 28px 22px; overflow: hidden;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.drawing svg { display: block; width: 100%; height: auto; }
.badge-25 {
  position: absolute; top: 20px; inset-inline-start: 20px; background: var(--red); color: #fff; border-radius: var(--radius);
  padding: 14px 18px; display: grid; line-height: 1; gap: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.badge-25 b { font-size: 2.8rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.badge-25 span { font-size: .9rem; font-weight: 500; }
.title-block { display: grid; grid-template-columns: 1fr auto; border: 1px solid rgba(255, 255, 255, .22); margin-top: 16px; font-family: var(--f-mono); font-size: .72rem; color: #9AA1AB; direction: ltr; }
.title-block > * { padding: 6px 10px; }
.title-block > * + * { border-left: 1px solid rgba(255, 255, 255, .22); }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.5vw, 40px);
  display: grid; gap: 18px; align-content: start; position: relative; transition: box-shadow .25s, border-color .25s, transform .25s;
}
.svc:hover { border-color: #D0D4DB; box-shadow: 0 18px 44px rgba(34, 40, 49, .08); transform: translateY(-2px); }
.svc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.svc-tag { font-family: var(--f-mono); font-size: .8rem; font-weight: 500; color: var(--red); background: var(--red-soft); padding: 5px 10px; border-radius: 4px; }
.svc-ico { width: 54px; height: 54px; border-radius: var(--radius); display: grid; place-items: center; background: var(--ink); color: #fff; }
.svc-ico .icon { width: 28px; height: 28px; }
.svc h3 { font-size: var(--step-2); }
.svc h3 small { display: block; font-size: 1rem; font-weight: 600; color: var(--muted); margin-top: 8px; letter-spacing: 0; }
.svc p { color: var(--ink-2); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.checks .icon { width: 20px; height: 20px; color: var(--red); margin-top: 3px; stroke-width: 2.4; }
.svc .btn { justify-self: start; margin-top: 6px; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* ---------- process timeline ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; inset-inline: 28px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.35) 0 8px, transparent 8px 14px); }
.timeline li { position: relative; display: grid; gap: 12px; align-content: start; padding-inline-end: 28px; }
.step-no {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--night); border: 2px solid rgba(255, 255, 255, .5);
  font-family: var(--f-mono); font-weight: 500; font-size: 1.05rem; color: #fff; position: relative; z-index: 1;
}
.timeline li:last-child .step-no { background: var(--red); border-color: var(--red); }
.timeline h3 { font-size: var(--step-1); color: #fff; margin-top: 8px; }
.timeline p { color: #B9BEC7; line-height: 1.6; }
@media (max-width: 900px) {
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 28px; bottom: 28px; inset-inline: auto; inset-inline-start: 27px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 8px, transparent 8px 14px); }
  .timeline li { grid-template-columns: 56px 1fr; column-gap: 20px; padding: 0; }
  .timeline li > :not(.step-no) { grid-column: 2; }
  .timeline .step-no { grid-row: 1 / span 2; }
  .timeline h3 { margin-top: 12px; }
}
.section--light-timeline .timeline::before { background: repeating-linear-gradient(90deg, #C9CDD4 0 8px, transparent 8px 14px); }
.section--light-timeline .step-no { background: #fff; border-color: #C9CDD4; color: var(--ink); }
.section--light-timeline .timeline h3 { color: var(--ink); }
.section--light-timeline .timeline p { color: var(--ink-2); }
@media (max-width: 900px) { .section--light-timeline .timeline::before { background: repeating-linear-gradient(180deg, #C9CDD4 0 8px, transparent 8px 14px); } }

/* ---------- sectors ---------- */
.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; list-style: none; }
.sector { background: #fff; padding: clamp(24px, 3vw, 34px); display: grid; gap: 12px; align-content: start; transition: background .25s; }
.sector:hover { background: #FCFCFD; }
.sector .icon { width: 34px; height: 34px; color: var(--red); stroke-width: 1.5; }
.sector h3 { font-size: var(--step-1); }
.sector p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 40px); list-style: none; }
.why li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.why .ico { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--red); background: #fff; }
.why h3 { font-size: 1.12rem; margin-bottom: 6px; }
.why p { color: var(--muted); font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .why { grid-template-columns: 1fr; } }

/* ---------- certification ---------- */
.cert { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.seal { width: clamp(150px, 18vw, 200px); aspect-ratio: 1; max-width: 100%; color: #fff; }
.seal svg { width: 100%; height: 100%; }
.cert h2 { font-size: var(--step-3); margin-bottom: 18px; }
.cert p { color: #C9CDD4; max-width: 64ch; }
.cert p + p { margin-top: 12px; }
.cert .who { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .98rem; color: #E3E6EB; }
.cert .who b { color: #fff; }
@media (max-width: 720px) { .cert { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-wrap .sec-head { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 2px; font-size: 1.12rem; font-weight: 700; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; position: relative; transition: background .2s, border-color .2s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; background: var(--ink); translate: -50% -50%; transition: rotate .25s; }
.faq summary .pm::after { rotate: 90deg; }
.faq details[open] summary .pm { background: var(--red); border-color: var(--red); }
.faq details[open] summary .pm::before, .faq details[open] summary .pm::after { background: #fff; }
.faq details[open] summary .pm::after { rotate: 0deg; }
.faq summary:hover { color: var(--red); }
.faq .ans { padding: 0 2px 24px; color: var(--ink-2); display: grid; gap: 10px; max-width: 68ch; }
.faq .ans ul { padding-inline-start: 22px; display: grid; gap: 4px; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; } .faq-wrap .sec-head { position: static; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 22px; }
.contact-info h2 { font-size: var(--step-3); }
.contact-info > p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.6; }
.card-person { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-person b { font-size: 1.15rem; }
.card-person span { color: var(--muted); }
.contact-list { list-style: none; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 12px; }
.contact-list .icon { color: var(--red); }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--red); }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.quick .btn { padding-inline: 10px; }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .quick { grid-template-columns: 1fr; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 40px); box-shadow: 0 24px 60px rgba(34, 40, 49, .07); }
.form h3 { font-size: var(--step-1); margin-bottom: 4px; }
.form .hint { color: var(--muted); font-size: .92rem; margin-bottom: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: var(--radius);
  padding: 12px 14px; min-height: 50px; width: 100%; transition: border-color .2s, background .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #D3D7DE; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field input[type="tel"], .field input[type="email"] { direction: ltr; text-align: right; }
.field .err { color: var(--red); font-size: .88rem; font-weight: 500; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: #fff; }
.field.invalid .err { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.seg label { position: relative; font-weight: 600; font-size: .95rem; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 8px; border-radius: var(--radius); background: var(--bg); border: 1.5px solid transparent; transition: all .2s; line-height: 1.3; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--red); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-foot .btn { min-width: 240px; }
.form-foot small { color: var(--muted); font-size: .85rem; }
.btn .spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.is-sending .btn .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-msg { margin-top: 18px; padding: 14px 16px; border-radius: var(--radius); font-weight: 500; display: none; }
.form-msg.err { display: block; background: var(--red-soft); color: var(--red-dk); }
.form-ok { display: grid; gap: 14px; justify-items: start; padding: 12px 0; }
.form-ok .ok-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.form-ok .ok-ico .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-ok h3 { font-size: var(--step-2); }
.form-ok p { color: var(--ink-2); }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } .seg { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; min-width: 0; } }

/* ---------- inner pages ---------- */
.page-hero { background: var(--night); color: #fff; position: relative; overflow: hidden;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 32px 32px; }
.page-hero .wrap { padding-block: clamp(36px, 5vw, 64px) clamp(44px, 6vw, 80px); display: grid; gap: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; color: #9AA1AB; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: #6B7380; }
.crumbs a { color: #C9CDD4; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-hero h1 { font-size: var(--step-4); max-width: 20ch; }
.page-hero .lead { font-size: var(--step-1); color: #D5D9E0; max-width: 46em; line-height: 1.6; }
.page-hero .tag { font-family: var(--f-mono); font-size: .82rem; color: #F08A8A; letter-spacing: .04em; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose { display: grid; gap: 18px; min-width: 0; }
.prose > section { display: grid; gap: 16px; padding-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.prose > section:last-child { border-bottom: 0; }
.prose > section + section { padding-top: clamp(8px, 1vw, 16px); }
.prose h2 { font-size: var(--step-2); }
.prose h3 { font-size: var(--step-1); }
.prose p, .prose li { color: var(--ink-2); max-width: 70ch; }
.prose ul.dots { padding-inline-start: 22px; display: grid; gap: 6px; }
.prose ul.dots li::marker { color: var(--red); }
.note { padding: 16px 18px; background: var(--bg); border-inline-start: 3px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; font-size: .97rem; color: var(--ink-2); }
.checkgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; }
.checkgrid li { background: var(--bg); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; }
.checkgrid li .icon { color: var(--red); width: 28px; height: 28px; }
.checkgrid h3 { font-size: 1.1rem; color: var(--ink); }
.checkgrid p { font-size: .98rem; }
@media (max-width: 640px) { .checkgrid { grid-template-columns: 1fr; } }
.side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.toc b { display: block; font-size: .85rem; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; }
.toc a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: .96rem; line-height: 1.4; }
.toc a:hover { color: var(--red); }
.cta-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.cta-card h2, .cta-card h3 { font-size: 1.25rem; }
.cta-card p { color: #C9CDD4; font-size: .98rem; line-height: 1.55; }
.cta-card .btn { width: 100%; }
.cta-card a.tel { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.15rem; }
@media (max-width: 960px) { .article { grid-template-columns: 1fr; } .side { position: static; order: -1; } .toc { display: none; } }

.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 36px; }
.cta-band h2 { font-size: var(--step-2); }
.cta-band p { color: #FBDADA; margin-top: 6px; }
.cta-band .btn { --b: #fff; color: var(--red-dk); }
.cta-band .btn:hover { --b: var(--ink); color: #fff; }
.cta-band .btn--light:hover { color: var(--ink); --b: #fff; background: #fff; }

.legal .prose { max-width: 760px; }
.legal .prose h2 { font-size: var(--step-1); margin-top: 8px; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #B9BEC7; padding-block: 64px 28px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.foot .logo { color: #fff; }
.foot .logo-text .sub { color: #C9CDD4; display: inline; }
.foot .logo-text .bar { display: block; }
.foot p { margin-top: 16px; font-size: .96rem; line-height: 1.65; max-width: 34ch; }
.foot h2 { font-size: .95rem; color: #fff; margin-bottom: 14px; letter-spacing: .02em; }
.foot ul { list-style: none; display: grid; gap: 8px; }
.foot a { color: #B9BEC7; text-decoration: none; font-size: .96rem; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot-base { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .88rem; color: #8A919C; }
.foot-base ul { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- floating whatsapp ---------- */
.wa {
  position: fixed; z-index: 40; left: calc(18px + env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1F9D55; color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  transition: transform .2s, background .2s;
}
.wa:hover { color: #fff; background: #188046; transform: translateY(-2px); }
.wa .icon { width: 26px; height: 26px; }
@media (max-width: 560px) { .wa { width: 56px; padding: 0; justify-content: center; } .wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* ---------- reveal ---------- */
.reveal { transition: opacity .7s ease, transform .7s ease; }
.js .reveal.pre { opacity: 0; transform: translateY(18px); }
.form-ok[hidden], form[hidden] { display: none !important; }
.nav a.nav-cta { color: #fff; border-bottom: 0; border-radius: var(--radius); justify-content: center; padding: 12px 24px; }
.nav a.nav-cta:hover { color: #fff; }
