/* Armitel. Design system: DESIGN.md (source of truth). */

@font-face {
  font-family: "Red Hat Display";
  src: url("/assets/fonts/red-hat-display-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/assets/fonts/red-hat-text-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --deep: #0c3b2a;
  --deep-2: #082a1e;
  --on-deep: #e9f1ec;
  --on-deep-2: #a9c2b4;
  --gray: #f1f3f2;
  --panel: #ffffff;
  --ink: #17221c;
  --ink-2: #4d5a52;
  --line: #dde3df;
  --green: #009245;
  --green-ink: #007a3a;
  --green-hover: #00642f;
  --mint: #6fd39c;

  /* Plan layers: light tones on deep, dark tones on light */
  --l1-dark: #ffb44d; --l2-dark: var(--mint); --l3-dark: #8cc3ff; --l4-dark: #e7a6ff;
  --l1: #c2650c; --l2: var(--green-ink); --l3: #2b62a8; --l4: #8a4bab;

  --display: "Red Hat Display", "Helvetica Neue", sans-serif;
  --text: "Red Hat Text", "Helvetica Neue", sans-serif;
  --pad: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --header: 72px;
  --radius: 0;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.25s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body { margin: 0; background: var(--gray); color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
h1, h2, h3, h4, .kicker { font-family: var(--display); }
ul { list-style: none; padding: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; }
.dark :focus-visible, .site-header :focus-visible, .contact-a :focus-visible, .foot :focus-visible { outline-color: var(--mint); }

.todo { background: #ffe14d; color: #000; padding: 0 0.25em; font-size: 0.85em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--panel); color: var(--ink); padding: 8px 12px; }

.top, .hero, .services, .brands, .legal { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--deep); color: var(--on-deep); border-bottom: 1px solid rgba(233, 241, 236, 0.1); }
.top { display: flex; align-items: center; gap: 40px; height: var(--header); }
.logo { color: var(--mint); flex: none; }
.logo svg { width: 120px; height: auto; }
.top nav { display: flex; gap: 32px; margin-left: auto; }
.top nav a, .tel { text-decoration: none; font-weight: 500; color: var(--on-deep-2); padding: 6px 0; border-bottom: 2px solid transparent; transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.top nav a[aria-current] { color: var(--on-deep); border-bottom-color: var(--mint); }
.tel { color: var(--on-deep); font-weight: 700; white-space: nowrap; }

/* Hero */
.dark { background: var(--deep); color: var(--on-deep); }
.hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; padding-top: clamp(40px, 6vw, 80px); padding-bottom: clamp(64px, 7vw, 104px); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-ink); }
.dark .kicker, .contact-a .kicker { color: var(--mint); }
h1 { font-size: clamp(34px, 3.8vw, 54px); line-height: 1.08; font-weight: 700; margin-top: 14px; }
h1 em { font-style: normal; color: var(--mint); }
.lede { color: var(--on-deep-2); font-size: 18px; margin-top: 18px; max-width: 42ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 30px; }
.btn { display: inline-block; background: var(--green-ink); color: #fff; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 2px; transition: background var(--dur) var(--ease); }
.link { font-weight: 600; text-underline-offset: 0.25em; }

.hero-figure { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(233, 241, 236, 0.14); border-radius: var(--radius); padding: clamp(14px, 2vw, 28px); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 14px; font-size: 14px; }
.legend a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-deep-2); }

/* Installation plan: light lines on deep green */
.plan { width: 100%; height: auto; }
.plan text { font-family: var(--text); font-size: 10px; fill: var(--on-deep-2); }
.plan .walls rect, .plan .walls path { fill: none; stroke: var(--on-deep); stroke-width: 1.3; }
.plan .walls .door { stroke-width: 0.7; stroke-dasharray: 2 3; opacity: 0.7; }
.plan .walls .gap { stroke: var(--deep); stroke-width: 3; }
.plan .furniture rect { fill: none; stroke: rgba(233, 241, 236, 0.28); stroke-width: 0.75; }
.plan .rooms text { font-weight: 600; fill: var(--on-deep); }
.plan .equip { fill: var(--deep); stroke: var(--on-deep); stroke-width: 1.2; }
.plan .equip-lines { stroke: var(--on-deep); stroke-width: 0.7; }
.plan .num { display: none; }
.plan .trace { fill: none; }
.plan .fiber { stroke: var(--l1-dark); stroke-width: 2.5; }
.plan .cat6 { stroke: var(--l2-dark); stroke-width: 1.6; stroke-dasharray: 6 4; }
.plan .power { stroke: var(--l3-dark); stroke-width: 1.3; stroke-dasharray: 10 3 2 3; }
.plan .phone { stroke: var(--l4-dark); stroke-width: 1.4; stroke-dasharray: 1 3; stroke-linecap: round; }
.plan .jack { fill: var(--deep); stroke: var(--l2-dark); stroke-width: 1.5; }
.plan .outlet circle { fill: var(--deep); stroke: var(--l3-dark); stroke-width: 1.2; }
.plan .outlet path { stroke: var(--l3-dark); stroke-width: 1.2; }
.plan .handset { fill: var(--l4-dark); }
.plan .titleblock rect, .plan .titleblock path { fill: var(--deep); stroke: var(--on-deep); stroke-width: 0.8; }
.plan .titleblock text { fill: var(--on-deep-2); }
.plan .titleblock .tb-name { font-weight: 700; font-size: 12px; fill: var(--mint); }

/* Draw-in: each layer wipes in once, in order 01 to 04 */
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.plan .layer { animation: wipe 0.5s var(--ease) both; }
.plan .layer[data-layer="02"] { animation-delay: 0.25s; }
.plan .layer[data-layer="03"] { animation-delay: 0.5s; }
.plan .layer[data-layer="04"] { animation-delay: 0.75s; }

.swatch { width: 28px; height: 8px; flex: none; }
.swatch path { fill: none; }
.swatch[data-layer="01"] path { stroke: var(--l1-dark); stroke-width: 3; }
.swatch[data-layer="02"] path { stroke: var(--l2-dark); stroke-width: 2; stroke-dasharray: 6 4; }
.swatch[data-layer="03"] path { stroke: var(--l3-dark); stroke-width: 2; stroke-dasharray: 10 3 2 3; }
.swatch[data-layer="04"] path { stroke: var(--l4-dark); stroke-width: 2; stroke-dasharray: 1 3; stroke-linecap: round; }
.services .swatch[data-layer="01"] path { stroke: var(--l1); }
.services .swatch[data-layer="02"] path { stroke: var(--l2); }
.services .swatch[data-layer="03"] path { stroke: var(--l3); }
.services .swatch[data-layer="04"] path { stroke: var(--l4); }

/* Services */
.services, .brands { padding-top: clamp(64px, 8vw, 112px); }
.head { margin-bottom: 32px; }
h2 { font-size: clamp(28px, 2.6vw, 38px); font-weight: 700; line-height: 1.15; margin-top: 8px; }

/* Shared: light version of the plan for mini plans on the gray background */
.plan.mini text { fill: var(--ink-2); font-size: 11px; }
.plan.mini .walls rect, .plan.mini .walls path { stroke: var(--ink); }
.plan.mini .walls .gap { stroke: var(--gray); }
.plan.mini .furniture rect { stroke: #c9d1cc; }
.plan.mini .rooms text { fill: var(--ink); }
.plan.mini .equip { fill: var(--gray); stroke: var(--ink); }
.plan.mini .equip-lines { stroke: var(--ink); }
.plan.mini .fiber { stroke: var(--l1); }
.plan.mini .cat6 { stroke: var(--l2); }
.plan.mini .power { stroke: var(--l3); }
.plan.mini .phone { stroke: var(--l4); }
.plan.mini .jack { fill: var(--gray); stroke: var(--l2); }
.plan.mini .outlet circle { fill: var(--gray); stroke: var(--l3); }
.plan.mini .outlet path { stroke: var(--l3); }
.plan.mini .handset { fill: var(--l4); }
.plan.mini .titleblock { display: none; }
.plan.mini .layer { animation: none; opacity: 0.12; transition: opacity var(--dur) var(--ease); }
.plan.mini[data-focus="01"] .layer[data-layer="01"],
.plan.mini[data-focus="02"] .layer[data-layer="02"],
.plan.mini[data-focus="03"] .layer[data-layer="03"],
.plan.mini[data-focus="04"] .layer[data-layer="04"] { opacity: 1; }
.plan.mini[data-focus] .layer .trace { stroke-width: 3; }
.plan.mini { overflow: hidden; }
.services .swatch { width: 24px; }

/* Data band */
.band { background: var(--panel); border-bottom: 1px solid var(--line); }
.band dl { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; grid-template-columns: repeat(3, 1fr); }
.band dl > div { padding: 26px 24px 28px 0; }
.band dl > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.band dt { font-size: 13px; color: var(--ink-2); }
.band dd { font-family: var(--display); font-size: clamp(20px, 1.8vw, 26px); font-weight: 700; }
.band a { text-decoration: none; }
/* Services: selector + plan */
.svc3-wrap { display: grid; grid-template-columns: 260px 1fr 1fr; gap: 0; background: var(--panel); border-top: 2px solid var(--deep); }
.svc3-tabs { border-right: 1px solid var(--line); }
.svc3-tabs a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.svc3-tabs a[aria-current] { color: var(--on-deep); background: var(--deep); }
.svc3-tabs a[aria-current] .swatch path { stroke: var(--on-deep); }
.svc3-panels { padding: 32px clamp(24px, 3vw, 40px); }
.svc3 h3 { font-size: 24px; font-weight: 700; }
.svc3 p { color: var(--ink-2); margin-top: 10px; }
.svc3 h4 { font-size: 15px; margin-top: 22px; }
.svc3 .inc li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.svc3 + .svc3 { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.js-tabs .svc3 { display: none; }
.js-tabs .svc3.is-active { display: block; margin-top: 0; padding-top: 0; border-top: 0; }
.svc3-plan { padding: 32px clamp(24px, 3vw, 40px); border-left: 1px solid var(--line); display: flex; align-items: center; }
@media (max-width: 1000px) {
  .svc3-wrap { grid-template-columns: 1fr; }
  .svc3-tabs { display: grid; grid-template-columns: 1fr 1fr; border-right: 0; }
  .svc3-plan { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .band dl { grid-template-columns: 1fr; }
  .band dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .band dl > div { padding: 16px 0; }
}

/* Brands: one white surface split by rules */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); background: var(--panel); border-top: 2px solid var(--deep); border-left: 1px solid var(--line); }
.brand { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand, .brand a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 28px 12px; text-decoration: none; text-align: center; height: 100%; }
.brand a { padding: 0; }
.brand img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.brand span { font-size: 13px; color: var(--ink-2); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--max); margin: clamp(64px, 8vw, 112px) auto; padding: 0 var(--pad); }
.contact-a { background: var(--deep); color: var(--on-deep); border-radius: var(--radius) 0 0 var(--radius); padding: clamp(28px, 4vw, 56px); }
.contact-a p { color: var(--on-deep-2); margin-top: 14px; max-width: 44ch; }
.contact .sheet { background: var(--panel); border-radius: 0 var(--radius) var(--radius) 0; padding: clamp(20px, 3vw, 40px) clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.sheet > div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.sheet > div:last-child { border-bottom: 0; }
.sheet dt { color: var(--ink-2); font-size: 15px; }
.sheet dd { font-weight: 600; }
.sheet a { text-decoration: none; }

/* Footer */
.foot { background: var(--deep-2); color: var(--on-deep-2); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 28px var(--pad); font-size: 14px; }
.foot .logo svg { width: 86px; }
.foot span { margin-right: auto; }
.foot a { text-decoration: none; }

/* Legal pages */
.legal { padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(64px, 8vw, 112px); }
.legal-body { max-width: 72ch; background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 4vw, 56px); margin-top: 28px; }
.legal-body h2 { font-size: 22px; margin: 36px 0 8px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-2); margin-top: 10px; }
.legal-body .sheet { margin: 20px 0 8px; border-top: 1px solid var(--line); }
.legal-body .sheet > div:last-child { border-bottom: 1px solid var(--line); }
.legal-body a { color: var(--green-ink); }
.legal-body .btn { color: #fff; }

@media (hover: hover) and (pointer: fine) {
  .top nav a:hover, .legend a:hover { color: var(--on-deep); }
  .btn:hover { background: var(--green-hover); }
  .band a:hover, .sheet a:hover { color: var(--green-ink); }
  .svc3-tabs a:not([aria-current]):hover { color: var(--ink); background: var(--gray); }
  .contact-a a:not(.btn):hover, .foot a:hover { color: var(--on-deep); }
}

@media (max-width: 900px) {
  :root { --header: 104px; }
  .top nav a, .tel { min-height: 44px; display: inline-flex; align-items: center; }
  .hero { padding-top: 28px; }
  .top { height: auto; flex-wrap: wrap; gap: 8px 24px; padding-top: 14px; padding-bottom: 10px; }
  .top nav { order: 3; width: 100%; margin: 0; gap: 24px; }
  .tel { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .contact-a { border-radius: var(--radius) var(--radius) 0 0; }
  .contact .sheet { border-radius: 0 0 var(--radius) var(--radius); }
}
@media (max-width: 600px) {
  .svc3-tabs { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .sheet > div { grid-template-columns: 90px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
