/* ADHI NEXORA — drafting-sheet identity, fiber colour-code accents */
:root {
  --paper: #EEF2EF;
  --paper-2: #E2E8E4;
  --ink: #0F2A3A;
  --ink-2: #3E5663;
  --line: #B9C6C1;
  --f-blue: #1E63D6;
  --f-orange: #F0761E;
  --f-green: #23955A;
  --white: #FBFCFB;

  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --step-3: clamp(2.3rem, 1.4rem + 3.6vw, 4.25rem);

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

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-3); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--f-orange); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; min-height: 48px; padding: 0 22px;
  background: var(--ink); color: var(--white);
  font: 600 1rem/1 var(--body); text-decoration: none;
  border: 0; border-radius: var(--radius); cursor: pointer;
  transition: background-color .2s;
}
.btn:hover { background: var(--f-blue); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--f-orange); }
.link:hover { text-decoration-color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.125rem/1 var(--display); font-variation-settings: "wdth" 125; letter-spacing: .02em; }
.brand__mark { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.brand__mark circle:first-child { fill: var(--f-blue); stroke: var(--f-blue); }
.nav__menu { display: flex; align-items: center; gap: 28px; }
.nav__menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav__menu a:not(.btn):hover { color: var(--f-blue); }
.nav__toggle { display: none; }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy h1 { max-width: 14ch; }
.lead { margin-top: 24px; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

.hero__drawing { margin: 0; background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 10px; box-shadow: 8px 8px 0 var(--paper-2); }
.route { width: 100%; height: auto; }
.route__grid { stroke: #DCE4E0; stroke-width: 1; }
.cable { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s ease-out forwards; }
.cable--feeder { stroke: var(--f-blue); stroke-width: 5; animation-delay: .2s; }
.cable--dist { stroke: var(--f-orange); stroke-width: 3; animation-delay: .9s; }
.cable--drop { stroke: var(--f-green); stroke-width: 1.75; animation-duration: .6s; animation-delay: 1.7s; }
.node { opacity: 0; animation: pop .4s ease-out forwards; }
.node rect, .node circle { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.node--olt rect { fill: var(--ink); }
.node--olt { animation-delay: .05s; }
.node--odc { animation-delay: .75s; }
.node--odp { animation-delay: 1.5s; }
.node text, .dim text, .pb text { font: 600 11px var(--body); fill: var(--ink-2); text-anchor: middle; letter-spacing: .02em; }
.dim text { font-weight: 500; font-style: italic; }
.homes use { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; opacity: 0; animation: pop .4s ease-out 2.2s forwards; }
.hero__drawing figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 6px 2px; border-top: 1px solid var(--line); margin-top: 6px; font-size: var(--step--1); color: var(--ink-2); }
.legend { display: inline-flex; gap: 4px; flex: none; }
.legend i { width: 18px; height: 6px; border-radius: 3px; background: var(--c); }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section__head p { color: var(--ink-2); max-width: 46ch; }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); }
.service { padding: 32px 28px 8px 0; }
.service + .service { padding-left: 28px; border-left: 1px solid var(--line); }
.service__icon { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.service--net .service__icon circle:first-child { fill: var(--f-blue); stroke: var(--f-blue); }
.service--web .service__icon path { stroke: var(--f-orange); }
.service--auto .service__icon path:first-child { stroke: var(--f-green); }
.service p { margin-top: 12px; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .9688rem; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 2px; background: var(--f-orange); }

/* Projects — dark section with drafting sheets */
.section--ink { background: var(--ink); color: var(--white); border-top: 0; }
.section--ink .section__head p { color: #A9BCC4; }
.sheet { background: var(--paper); color: var(--ink); border-radius: var(--radius); border: 1px solid var(--ink); outline: 1.5px solid var(--paper); outline-offset: 6px; margin: 6px 6px 0; }
.sheet + .sheet { margin-top: 56px; }
.sheet__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); }
.sheet__text p { margin-top: 16px; color: var(--ink-2); max-width: 60ch; }
.ticks--light { margin-top: 24px; }
.sheet__art { display: flex; align-items: center; }

.titleblock { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr .7fr; margin: 0; border-top: 1.5px solid var(--ink); }
.titleblock div { padding: 12px 18px 14px; }
.titleblock div + div { border-left: 1px solid var(--ink); }
.titleblock dt { font-size: .75rem; color: var(--ink-2); }
.titleblock dd { margin: 2px 0 0; font-weight: 600; font-size: .9375rem; }

/* As Plan / As Build toggle */
.planbuild { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.planbuild__tabs { display: flex; border-bottom: 1px solid var(--line); }
.planbuild__tabs button { flex: 1; min-height: 44px; background: none; border: 0; font: 600 .9375rem var(--body); color: var(--ink-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.planbuild__tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--f-blue); }
.planbuild__tabs button[data-mode="build"][aria-selected="true"] { border-bottom-color: var(--f-green); }
.pb { width: 100%; height: auto; padding: 12px; }
.pb__road { fill: none; stroke: var(--paper-2); stroke-width: 22; }
.pb__plan, .pb__build { fill: none; stroke-width: 3; stroke-linejoin: round; transition: opacity .35s; }
.pb__plan { stroke: var(--f-blue); stroke-dasharray: 8 6; }
.pb__build { stroke: var(--f-green); opacity: 0; }
.pb[data-mode="build"] .pb__plan { opacity: .25; }
.pb[data-mode="build"] .pb__build { opacity: 1; }
.pb__odc { fill: var(--ink); }
.pb__odp { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.pb text { text-anchor: start; }

/* Office mock */
.mock { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .8125rem; }
.mock__bar { display: flex; align-items: center; gap: 5px; padding: 9px 12px; background: var(--ink); color: #C6D3D8; }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #3E5663; }
.mock__bar span { margin-left: 8px; font-weight: 600; }
.mock__body { display: grid; grid-template-columns: 48px 1fr; min-height: 200px; }
.mock__side { background: var(--paper-2); display: grid; align-content: start; gap: 12px; padding: 14px 12px; }
.mock__side b { height: 8px; border-radius: 4px; background: var(--line); }
.mock__side b.on { background: var(--f-blue); }
.mock__main { padding: 10px 14px; }
.mock__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--paper-2); }
.mock__row--head { color: var(--ink-2); font-weight: 600; font-size: .75rem; }
.mock__row em { font-style: normal; font-weight: 600; font-size: .75rem; padding: 3px 8px; border-radius: 3px; }
.mock__row .ok { background: #DDF0E5; color: #17683F; }
.mock__row .wait { background: #FDE8D8; color: #A3480B; }
.mock__row .draft { background: var(--paper-2); color: var(--ink-2); }

/* Steps — a real sequence, so numbered */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.steps li { counter-increment: s; position: relative; padding: 52px 24px 0 0; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--paper); border: 2px solid var(--ink); border-radius: 50%;
  font: 700 .9375rem var(--display); z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 17px; left: 34px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:nth-child(1)::before { border-color: var(--f-blue); }
.steps li:nth-child(2)::before { border-color: var(--f-orange); }
.steps li:nth-child(3)::before { border-color: var(--f-green); }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: .9688rem; }

/* Contact */
.contact { background: var(--paper-2); }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.contact__grid > div > p { margin-top: 20px; color: var(--ink-2); max-width: 44ch; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list li > span:first-child { color: var(--ink-2); font-size: .9375rem; }
.contact__list a { font-weight: 600; text-decoration-color: var(--f-orange); text-underline-offset: 4px; overflow-wrap: anywhere; }

.form { background: var(--white); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9375rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 12px; min-height: 46px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--ink); }
.field [aria-invalid="true"] { border-color: #C2410C; }
.form__error { color: #B23A0A; font-weight: 500; font-size: .9375rem; }
.form__note { font-size: var(--step--1); color: var(--ink-2); }
.form .btn { justify-self: start; }

/* Footer */
.footer { background: var(--ink); color: #A9BCC4; padding: 28px 0; font-size: var(--step--1); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.brand--light { color: var(--white); font-size: 1rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero__grid, .sheet__body, .contact__grid { grid-template-columns: 1fr; }
  .hero__copy h1 { max-width: 14ch; }
  .section__head { grid-template-columns: 1fr; }
  .services { grid-template-columns: 1fr; }
  .service, .service + .service { padding: 28px 0; border-left: 0; }
  .service + .service { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li:nth-child(2)::after { display: none; }
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock div:nth-child(3) { border-left: 0; }
  .titleblock div:nth-child(n+3) { border-top: 1px solid var(--ink); }
}
@media (max-width: 720px) {
  .nav__toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer;
  }
  .nav__bars, .nav__bars::before, .nav__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s; }
  .nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
  .nav__bars::before { top: -6px; } .nav__bars::after { top: 6px; }
  .nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
  .nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav__menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__menu .btn { margin-top: 16px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .steps li { padding: 0 0 0 52px; }
  .hero__drawing { box-shadow: 5px 5px 0 var(--paper-2); }
  .hero__drawing figcaption { flex-direction: column; align-items: flex-start; }
  .sheet { margin: 6px 6px 0; }
  .contact__list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 440px) {
  .titleblock { grid-template-columns: 1fr; }
  .titleblock div + div { border-left: 0; border-top: 1px solid var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cable, .node, .homes use { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .pb__plan, .pb__build, .btn { transition: none; }
}
