/* =========================================================
   Triox Power — Electrical Solutions
   Brand: lime #b3e549 · black #080808 · white #ffffff
          secondary: forest #033a2b · amber #f3c02b
   Type:  Clash Display (primary) · Gilroy → Outfit (secondary)
   ========================================================= */

:root {
  --lime: #b3e549;
  --lime-dark: #9bcc35;
  --black: #080808;
  --white: #ffffff;
  --forest: #033a2b;
  --amber: #f3c02b;

  --ink: #141414;
  --muted: #5d625a;
  --line: #e4e7df;
  --bg-soft: #f5f7f1;
  --dark-2: #121212;
  --dark-line: #262626;

  --font-display: "Clash Display", "Outfit", system-ui, sans-serif;
  --font-body: "Gilroy", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(8, 8, 8, 0.08);
  --header-h: 76px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }
.hl { color: var(--lime); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px;
  background: var(--lime);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--black); }
.btn-primary:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: var(--white); }
.btn-ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--forest); }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.scrolled { background: rgba(8, 8, 8, 0.94); border-color: var(--dark-line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 200px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a:not(.btn) {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 500;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--lime); transition: width .25s;
}
.main-nav a:not(.btn):hover, .main-nav a.active { color: var(--white); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 6px; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  background: var(--black);
  overflow: hidden;
  padding: calc(var(--header-h) + 60px) 0 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,8,8,.96) 0%, rgba(8,8,8,.82) 42%, rgba(8,8,8,.25) 100%),
    url("../assets/img/engineer.jpg") center 30% / cover no-repeat;
}
.hero-inner { position: relative; z-index: 2; max-width: var(--container); }
.hero h1 { max-width: 15ch; }
.hero .eyebrow { color: var(--lime); }
.hero .lead { max-width: 560px; font-size: 1.15rem; color: rgba(255,255,255,.8); }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 12px 28px; color: rgba(255,255,255,.75); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23080808' stroke-width='2'/%3E%3C/svg%3E") center/12px no-repeat;
}
.bolt-deco {
  position: absolute; z-index: 1;
  right: -40px; bottom: -60px;
  width: 340px; height: auto;
  fill: var(--lime);
  opacity: .9;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Stats ---------- */
.stats { background: var(--lime); color: var(--black); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid rgba(8,8,8,.15); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; line-height: 1; }
.stat-label { font-size: .92rem; font-weight: 500; opacity: .75; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

.section-dark { background: var(--black); color: var(--white); }
.section-dark .eyebrow { color: var(--lime); }
.section-dark p { color: rgba(255,255,255,.75); }

.section-green { background: var(--forest); color: var(--white); }
.section-green .eyebrow { color: var(--lime); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--lime); }
.service p { color: var(--muted); font-size: .97rem; margin: 0; }
.icon {
  width: 58px; height: 58px; border-radius: 12px;
  background: var(--black);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.icon svg { width: 28px; height: 28px; fill: none; stroke: var(--lime); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-media img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.split-media { position: relative; }
.split-media::after {
  content: ""; position: absolute; left: -16px; bottom: -16px;
  width: 45%; height: 45%;
  border-left: 4px solid var(--lime); border-bottom: 4px solid var(--lime);
  border-bottom-left-radius: var(--radius);
  z-index: -1;
}
.section-dark .split-media { z-index: 0; }

.benefits { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 24px; }
.benefits li { display: grid; gap: 4px; padding-left: 24px; border-left: 3px solid var(--lime); }
.benefits strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--white); }
.benefits span { color: rgba(255,255,255,.7); font-size: .98rem; }

/* ---------- Process timeline ----------
   Phones/tablets: vertical timeline.
   Laptops (≥1081px): alternating above/below a horizontal axis. */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 17px; top: 10px; bottom: 10px;
  border-left: 2px dashed var(--tl-line);
}
.timeline { --tl-accent: #A8D96C; --tl-line: #56766B; }
.t-step { --c: var(--tl-accent); position: relative; padding-left: 60px; }
.t-dot {
  position: absolute; left: 0; top: -4px;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest); color: var(--c);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  z-index: 1;
}
.t-head { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: .5em; }
.t-icon { display: flex; flex: none; }
.t-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--c); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.t-body p { font-size: .95rem; color: rgba(255,255,255,.72); margin: 0; }

@media (min-width: 1081px) {
  .timeline { grid-template-columns: repeat(6, 1fr); grid-template-rows: auto 72px auto; gap: 0 14px; }
  .timeline::before {
    position: static; grid-row: 2; grid-column: 1 / -1; align-self: center;
    border-left: 0; border-top: 2px dashed var(--tl-line);
  }
  .timeline::after {
    content: ""; grid-row: 2; grid-column: -2 / -1; justify-self: end; align-self: center;
    border-left: 12px solid var(--tl-line);
    border-top: 7px solid transparent; border-bottom: 7px solid transparent;
    margin-right: -6px;
  }
  .t-step { padding-left: 0; }
  .t-step:nth-child(odd) { grid-row: 1; padding-bottom: 22px; }
  .t-step:nth-child(even) { grid-row: 3; padding-top: 22px; }
  .t-step:nth-child(1) { grid-column: 1 / 3; }
  .t-step:nth-child(2) { grid-column: 2 / 4; }
  .t-step:nth-child(3) { grid-column: 3 / 5; }
  .t-step:nth-child(4) { grid-column: 4 / 6; }
  .t-step:nth-child(5) { grid-column: 5 / 7; }

  .t-body { padding-right: 16px; }
  .t-body p { padding-left: 40px; }

  /* dotted connector between the icon and the axis */
  .t-step::before {
    content: ""; position: absolute; left: 13px;
    border-left: 2px dotted var(--tl-line);
  }
  .t-step:nth-child(odd)::before { top: 36px; bottom: -36px; }
  .t-step:nth-child(even)::before { top: -36px; height: 54px; }

  .t-dot { left: -4px; top: auto; }
  .t-step:nth-child(odd) .t-dot { bottom: -54px; }
  .t-step:nth-child(even) .t-dot { top: -54px; }
}

/* ---------- About ---------- */
.split-reverse .split-copy { order: 0; }
.split-copy > p { color: var(--muted); }
.section-dark .split-copy > p { color: rgba(255,255,255,.75); }
.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checklist li::before {
  content: ""; width: 22px; height: 22px; flex: none; margin-top: 2px; border-radius: 6px;
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23b3e549' stroke-width='2'/%3E%3C/svg%3E") center/14px no-repeat;
}
.about-gallery { position: relative; padding-bottom: 18%; }
.about-gallery img { border-radius: var(--radius); object-fit: cover; }
.g-main { width: 82%; aspect-ratio: 4 / 5; }
.g-sub {
  position: absolute; right: 0; bottom: 0;
  width: 58%; aspect-ratio: 1 / 1;
  border: 8px solid var(--white);
  box-shadow: var(--shadow);
  object-position: 70% center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--lime);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; right: 6%; top: -30%;
  width: 180px; height: 160%;
  background: rgba(8,8,8,.08);
  clip-path: polygon(62% 0, 10% 58%, 44% 58%, 30% 100%, 92% 36%, 56% 36%);
}
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 64px 0; }
.cta-inner h2 { margin: 0; max-width: 20ch; color: var(--black); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s; }
.faq details[open] { border-color: var(--lime); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 60px 22px 24px; position: relative;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 400; transition: transform .25s, background-color .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); background: var(--lime); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 1.05rem; }
.contact-list a:hover { color: var(--lime); }
.ci { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; }
.ci svg { width: 20px; height: 20px; fill: none; stroke: var(--black); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.contact-form {
  background: var(--dark-2); border: 1px solid var(--dark-line);
  border-radius: 20px; padding: clamp(24px, 4vw, 40px);
  display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .88rem; font-weight: 500; color: rgba(255,255,255,.8); }
.opt { color: rgba(255,255,255,.45); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem;
  color: var(--white); background: var(--black);
  border: 1px solid #333; border-radius: var(--radius-sm);
  padding: 13px 14px; transition: border-color .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23b3e549' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); }
.field.invalid input, .field.invalid select { border-color: #ff6b6b; }
.err { color: #ff8a8a; font-size: .82rem; min-height: 0; }
.err:empty { display: none; }
.form-status { margin: 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: var(--lime); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.65); border-top: 1px solid var(--dark-line); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand img { width: 220px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 300px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 0; border-top: 1px solid var(--dark-line); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ---------- Read more button ---------- */
.btn-arrow span { transition: transform .2s; }
.btn-arrow:hover span { transform: translateX(4px); }

/* =========================================================
   About page
   ========================================================= */
.page-hero {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding: calc(var(--header-h) + 90px) 0 100px;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(8,8,8,.95) 0%, rgba(8,8,8,.8) 50%, rgba(8,8,8,.45) 100%),
    url("../assets/img/office.jpg") center 40% / cover no-repeat;
}
.page-hero-inner { position: relative; }
.page-hero h1 { font-size: clamp(2.3rem, 5.5vw, 4rem); max-width: 16ch; }
.page-hero .lead { max-width: 600px; font-size: 1.12rem; color: rgba(255,255,255,.8); margin: 0; }
.breadcrumb { display: flex; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: 22px; }
.breadcrumb a { color: var(--lime); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-card {
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-top: 4px solid var(--lime);
}
.mv-tag { display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--lime); margin-bottom: 16px; }
.mv-card h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.mv-card p { margin: 0; }

.section-green .split-copy > p { color: rgba(255,255,255,.75); }
.checklist-light li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23080808' stroke-width='2'/%3E%3C/svg%3E"); }
.section-green .split-media::after { display: none; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.promise { padding: 32px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .25s; }
.promise:hover { background: var(--bg-soft); }
.promise-n { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; color: var(--lime-dark); line-height: 1; display: block; margin-bottom: 16px; }
.promise p { color: var(--muted); font-size: .97rem; margin: 0; }

.section-soft { background: var(--bg-soft); }
.state-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
.state-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--lime);
}
.state-card h3 { margin: 0; font-size: 1.2rem; }
.state-card p { margin: 0; color: var(--muted); font-size: .9rem; text-align: right; }

@media (max-width: 960px) {
  .mv-grid { grid-template-columns: 1fr; }
  .promise-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .page-hero { padding: calc(var(--header-h) + 56px) 0 72px; }
  .promise-grid { grid-template-columns: 1fr; }
}

/* ---------- Swipe indicator (phones only) ---------- */
.scroll-indicator { display: none; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.scroll-dots { display: flex; gap: 8px; }
.scroll-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: #cfd5c6; cursor: pointer; transition: width .3s, background-color .3s;
}
.scroll-dots button.active { width: 26px; background: var(--black); }
.scroll-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; font-weight: 600; color: var(--muted);
  transition: opacity .4s;
}
.scroll-hint span { display: inline-block; color: var(--lime-dark); animation: nudge 1.4s ease-in-out infinite; }
.scroll-hint.done { opacity: 0; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--black); border-bottom: 1px solid var(--dark-line);
    padding: 8px 16px 24px;
    transform: translateY(-120%); visibility: hidden;
    transition: transform .35s ease, visibility .35s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--dark-line); font-size: 1.05rem; }
  .main-nav a:not(.btn)::after { display: none; }

  .split { grid-template-columns: 1fr; }
  .split-media img { aspect-ratio: 4 / 3; }
  .about-gallery { max-width: 560px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding: 28px 0; }
  .stat:nth-child(even) { padding-left: 20px; border-left: 1px solid rgba(8,8,8,.15); }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(8,8,8,.15); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { width: 160px; }
  .hero { min-height: auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat,
  .stat:nth-child(even) {
    flex-direction: row; align-items: center; gap: 16px;
    padding: 20px 0; border-left: 0;
    border-bottom: 1px solid rgba(8,8,8,.15);
  }
  .stat:last-child { border-bottom: 0; }
  .stat-num { flex: none; font-size: 2.1rem; }
  .hero-bg {
    background:
      linear-gradient(180deg, rgba(8,8,8,.75) 0%, rgba(8,8,8,.92) 60%, rgba(8,8,8,1) 100%),
      url("../assets/img/engineer.jpg") 60% 20% / cover no-repeat;
  }
  .bolt-deco { width: 180px; right: -50px; bottom: -40px; opacity: .5; }

  .t-icon { display: none; }

  /* About photo: full container width, equal gap on both sides */
  .about-gallery { max-width: none; padding-bottom: 0; }
  .g-main { width: 100%; aspect-ratio: 4 / 3; }

  /* Services: swipeable row with peeking next card */
  .services-grid {
    display: flex; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 10px 16px 26px;
    scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .services-grid > .card {
    flex: 0 0 82%; scroll-snap-align: start;
    transition: box-shadow .35s, border-color .35s, transform .35s;
  }
  .services-grid > .card.is-active {
    border-color: var(--lime);
    box-shadow: 0 12px 28px rgba(8, 8, 8, 0.12), 0 2px 6px rgba(8, 8, 8, 0.06);
    transform: translateY(-4px);
  }
  .services-grid > .card.reveal:not(.is-active) { opacity: 1; transform: none; }
  .services-grid > .card.reveal { opacity: 1; }
  .scroll-indicator { display: flex; margin-top: 6px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Legal pages (Privacy Policy, Terms & Conditions)
   ========================================================= */
.page-hero-legal { padding-bottom: 72px; }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-toc-title { font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.legal-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--ink); border-left-color: var(--lime); }

.legal-body { max-width: 760px; }
.legal-updated { display: inline-block; font-size: .88rem; font-weight: 500; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin-bottom: 8px; }
.legal-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 2.2em 0 .7em; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-body p, .legal-body li { color: #3d423b; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1em; display: grid; gap: 8px; }
.legal-body li::marker { color: var(--lime-dark); }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--forest); text-underline-offset: 3px; }
.legal-body a:hover { color: var(--lime-dark); }
.legal-body ul.legal-contact { list-style: none; padding: 20px 24px; background: var(--bg-soft); border-left: 4px solid var(--lime); border-radius: var(--radius-sm); gap: 4px; }

.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }

@media (max-width: 960px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; background: var(--bg-soft); border-radius: var(--radius); padding: 20px 22px; }
  .legal-toc ol { columns: 2; column-gap: 24px; display: block; border-left: 0; }
  .legal-toc a { padding: 5px 0; margin: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .legal-toc ol { columns: 1; }
  .footer-bottom { flex-direction: column; }
}
