/* Kataveo site styles. Colors and type from the Kataveo brand kit:
   Cobalt #2438D9 primary, Navy #101540 text, Mist #F3F5FF light background,
   Orange #E5530F accent on white (used only for the radio-outage line). Manrope throughout. */

:root {
  --bg: #ffffff;
  --paper: #f3f5ff;
  --ink: #101540;
  --muted: #4a5075;
  --line: #dfe2f2;
  --brand: #2438d9;
  --brand-dark: #1a29a8;
  --tint: #f3f5ff;
  --accent: #e5530f;
  --font: "Manrope", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1120px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p, ul, ol, dl { margin: 0; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: 0.3em; }

.wrap { max-width: calc(var(--wrap) + 40px); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; }

/* Top line + header */
.topline { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }
.topline .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 24px; padding-block: 7px; }
.topline a { color: var(--ink); font-weight: 600; text-decoration: none; }

.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: block; line-height: 0; margin: -4px 0 -4px -17px; }
.brand img { height: 76px; width: auto; }
.foot-logo { display: block; line-height: 0; margin: -12px 0 6px -12px; }
.foot-logo img { height: 52px; width: auto; }
.topline .out { color: var(--accent); font-weight: 700; }
.nav-toggle { display: none; font: inherit; font-weight: 600; font-size: 1rem; background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 8px 14px; cursor: pointer; }
.nav > ul { list-style: none; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; margin: 0; }
.nav a.top { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav a.top:hover, .nav a.top[aria-current="page"], .nav li.is-section > a.top { color: var(--brand); }
.nav li.is-section > a.top, .nav a.top[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brand); }
.nav .sub { list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(16, 21, 64, 0.12); padding: 6px 0; display: none; }
.nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub { display: block; }
.nav .sub li { margin: 0; }
.nav .sub a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; font-size: 0.96rem; }
.nav .sub a:hover, .nav .sub a[aria-current="page"] { background: var(--tint); color: var(--brand); }
.nav .call a.top { background: var(--brand); color: #fff; border-radius: 4px; margin-left: 10px; padding-inline: 16px; }
.nav .call a.top:hover { background: var(--brand-dark); color: #fff; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); }
  .nav a.top { padding: 12px 0; border-bottom: 1px solid var(--line); box-shadow: none !important; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; }
  .nav .call a.top { margin: 14px 0 0; text-align: center; border-bottom: 0; }
}

/* Home intro */
.intro .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px; }
.intro .text { display: grid; gap: 18px; }
.intro p { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.intro .actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
@media (max-width: 860px) { .intro .wrap { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; } }

.btn { display: inline-block; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 4px; background: var(--brand); color: #fff; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--brand-dark); color: #fff; }

/* Photo spots */
figure { margin: 0; }
.photo img { width: 100%; border-radius: 3px; }
.photo figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }
.photo-todo { aspect-ratio: 4 / 3; max-width: 100%; border: 2px dashed #b8bfe6; background: var(--paper); border-radius: 3px; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); font-size: 0.95rem; }
.photo-todo strong { display: block; color: var(--ink); }
.photo.wide .photo-todo { aspect-ratio: 16 / 7; }
.todo { border: 2px dashed #d7b35a; background: #fdf8ea; padding: 14px 16px; font-size: 0.95rem; border-radius: 3px; }
.todo strong { color: #6b4d00; }

/* Home sections */
.band { padding-block: 48px; border-top: 1px solid var(--line); }
.band.paper { background: var(--paper); }
.services-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.services-list > div { display: grid; gap: 10px; align-content: start; min-width: 0; }
.services-list p { color: var(--muted); }
@media (max-width: 860px) { .services-list { grid-template-columns: 1fr; gap: 28px; } }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 20px; } }
.stack { display: grid; gap: 14px; }
.stack > p { max-width: 68ch; }

/* Inner pages */
.page-title { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-title .wrap { padding-block: 36px 32px; display: grid; gap: 10px; }
.page-title p { color: var(--muted); font-size: 1.1rem; max-width: 64ch; }
.crumbs { font-size: 0.9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }

.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-block: 40px 64px; }
.layout.no-side { grid-template-columns: minmax(0, 1fr); }
.side-nav { font-size: 0.97rem; }
.side-nav h2 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.side-nav ul { list-style: none; padding: 0; border-left: 2px solid var(--line); }
.side-nav li { margin: 0; }
.side-nav a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.side-nav a:hover { color: var(--brand); }
.side-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-left-color: var(--brand); }
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 48px; }
  .side-nav { order: 2; border-top: 1px solid var(--line); padding-top: 20px; }
}

.content { display: grid; gap: 36px; max-width: 760px; min-width: 0; }
.content section { display: grid; gap: 14px; }
.content section + section { border-top: 1px solid var(--line); padding-top: 32px; }
.content p { max-width: 68ch; }
.content .note { color: var(--muted); font-size: 0.95rem; }
.cols { columns: 2; column-gap: 40px; }
.cols li { break-inside: avoid; }
@media (max-width: 600px) { .cols { columns: 1; } }

.item-group { display: grid; gap: 22px; }
.item { display: grid; gap: 6px; }
.item p { color: var(--muted); }

dl.levels { display: grid; gap: 0; border-top: 1px solid var(--line); }
dl.levels > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
dl.levels dt { font-weight: 700; }
dl.levels dd { margin: 0; color: var(--muted); }
@media (max-width: 600px) { dl.levels > div { grid-template-columns: 1fr; gap: 4px; } }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.98rem; }
th, td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.9rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--ink); }
td.len { white-space: nowrap; font-variant-numeric: tabular-nums; }

.phone-box { background: var(--tint); border-left: 4px solid var(--accent); padding: 18px 20px; display: grid; gap: 4px; }
.phone-box .big { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.01em; }
.phone-box .big a { color: var(--ink); text-decoration: none; }

ol.process { padding-left: 1.4em; display: grid; gap: 10px; }
ol.process li { margin: 0; padding-left: 4px; }
ol.process strong { display: block; }

.next { font-size: 1.02rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; padding-block: 40px 64px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #b9bedb; border-radius: 3px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.form-status { background: var(--tint); padding: 12px 14px; }
.details { display: grid; gap: 24px; }
.details address { font-style: normal; }
.details h2 { font-size: 1.1rem; margin-bottom: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { padding-block: 40px 24px; display: grid; gap: 28px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > :first-child { grid-column: 1 / -1; } }
.foot-cols h2 { font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
.foot-cols ul { list-style: none; padding: 0; }
.foot-cols a { color: var(--muted); text-decoration: none; }
.foot-cols a:hover { color: var(--brand); text-decoration: underline; }
.foot-cols address { font-style: normal; }
.foot-base { border-top: 1px solid var(--line); padding-top: 16px; font-size: 0.88rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.services-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
@media (max-width: 860px) { .services-list.two { grid-template-columns: 1fr; gap: 28px; } }
.details address { margin-top: 6px; color: var(--muted); }

/* Offices and service area */
address { font-style: normal; }
.offices { display: grid; gap: 14px; }
.offices strong { color: var(--ink); }
.areas { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.areas strong { color: var(--ink); }
.office-card { display: grid; gap: 10px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 10px; max-width: 420px; }
.office-card p { margin: 0; }

/* Top strip on smaller screens: one tidy line */
@media (max-width: 860px) {
  .topline .serve { display: none; }
  .topline .wrap { justify-content: center; }
}
@media (max-width: 560px) {
  .topline .oncall { display: none; }
  .topline .wrap { padding-block: 8px; }
}
.offices + p { margin-top: 14px; }

/* Contact form extras */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-note { font-size: 0.9rem; color: var(--muted); margin: 0; }
