/* Errota Labs — site styles (multi-page) */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --bg-alt: #F4F6F7;
  --surface: #FFFFFF;
  --ink: #14212B;
  --muted: #51606B;
  --line: #DDE3E7;
  --primary: #24566B;
  --primary-ink: #FFFFFF;
  --accent: #C98A1E;
  --band: #14212B;
  --band-2: #1C2F3B;
  --band-ink: #E8EEF1;
  --band-muted: #A9B8C1;
  --ok: #2E7D4F;
  --err: #B3261E;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E171D; --bg-alt: #121E25; --surface: #15222A; --ink: #E4ECEF; --muted: #93A3AC; --line: #253540;
    --primary: #7DB8CC; --primary-ink: #0E171D; --accent: #E2A845;
    --band: #091015; --band-2: #10202A; --band-ink: #E4ECEF; --band-muted: #93A3AC;
    --ok: #6FCF97; --err: #F2827A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E171D; --bg-alt: #121E25; --surface: #15222A; --ink: #E4ECEF; --muted: #93A3AC; --line: #253540;
  --primary: #7DB8CC; --primary-ink: #0E171D; --accent: #E2A845;
  --band: #091015; --band-2: #10202A; --band-ink: #E4ECEF; --band-muted: #93A3AC;
  --ok: #6FCF97; --err: #F2827A; color-scheme: dark;
}

*, *::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-body); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.25rem, 4.8vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.3; }
p { margin: 0; }
p + p { margin-top: 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; margin: 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; }

/* Header */
.site-header { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.brand svg { width: 32px; height: 32px; }
.blades { fill: var(--primary); }
.hub { fill: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.nav-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav a.nav-link:hover, .nav a.nav-link[aria-current="page"] { color: var(--ink); }
.nav a.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
[data-theme-current="dark"] .theme-toggle .sun { display: none; }
[data-theme-current="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); height: 38px; padding: 0 12px; font: 600 0.95rem var(--font-body); cursor: pointer; }
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav { gap: 10px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 12px var(--gutter) 20px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav .btn-nav { width: 100%; }
}
@media (min-width: 821px) { .nav-links { display: flex; align-items: center; gap: 28px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; font: 600 1rem/1 var(--font-body); padding: 14px 22px; border-radius: var(--radius); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--bg-alt); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-light { background: #FFFFFF; color: #24566B; }
.btn-nav { padding: 11px 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Hero (home) */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; border-bottom: 1px solid var(--line); }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 56px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); }
.hero-copy p.lead { margin-top: 24px; font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-copy .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-art { background: var(--band); overflow: hidden; position: relative; }
.hero-art svg { width: 100%; height: 100%; }
.art-wave-a { fill: var(--primary); }
.art-wave-b { fill: var(--accent); }
.art-wave-c { fill: var(--band-2); }
.art-line { stroke: var(--band-muted); stroke-width: 0.6; opacity: .55; }
.art-node { fill: var(--band-ink); }
.art-node.hot { fill: var(--accent); }
.art-mill .blades { fill: var(--band-ink); opacity: .12; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { height: 260px; order: -1; }
  .hero-copy { padding: 48px var(--gutter); }
}

/* Generic sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: linear-gradient(160deg, var(--band), var(--band-2)); color: var(--band-ink); }
.section.dark p { color: var(--band-muted); }
.section.dark p.strong { color: var(--band-ink); }
.prose h2 { margin-bottom: 26px; }
.prose p { color: var(--muted); }
.section.dark .actions { margin-top: 34px; }
.center { text-align: center; }
.section-title { text-align: center; margin-bottom: 48px; }

/* Page header (inner pages) */
.page-head { background: linear-gradient(160deg, var(--band), var(--band-2)); color: var(--band-ink); padding: clamp(56px, 8vw, 96px) 0; }
.page-head p { margin-top: 18px; color: var(--band-muted); font-size: 1.15rem; max-width: 36em; }

/* CTA band */
.cta-wrap { padding: clamp(56px, 8vw, 96px) 0; }
.cta { background: var(--primary); color: var(--primary-ink); border-radius: 14px; padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 64px); text-align: center; }
.cta p { margin: 14px auto 28px; max-width: 36em; opacity: .92; }
:root[data-theme="dark"] .cta .btn-light, :root:not([data-theme="light"]) .cta .btn-light { color: #24566B; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card-art { height: 190px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.card-art svg { width: 100%; height: 100%; }
.card-body { padding: 30px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.35rem; }
.card-body p { margin-top: 14px; color: var(--muted); }
.card-body .btn { margin-top: auto; width: 100%; }
.card-body p:last-of-type { margin-bottom: 26px; }
.cards .card.wide { grid-column: 1 / -1; }
.cards .card.wide { flex-direction: row; }
.cards .card.wide .card-art { height: auto; width: 42%; border-bottom: 0; border-right: 1px solid var(--line); flex: none; }
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card.wide { flex-direction: column; }
  .cards .card.wide .card-art { width: 100%; height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
}
.i-ink { fill: var(--ink); }
.i-pri { fill: var(--primary); }
.i-acc { fill: var(--accent); }
.i-line { fill: var(--line); }
.i-surf { fill: var(--surface); }
.s-ink { stroke: var(--ink); fill: none; }
.s-pri { stroke: var(--primary); fill: none; }
.s-acc { stroke: var(--accent); fill: none; }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.tile .mark { width: 44px; height: 44px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tile .mark svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .tiles, .tiles.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles, .tiles.four { grid-template-columns: 1fr; } }

/* Expertise list */
.expertise { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 56px; max-width: 920px; margin: 0 auto; }
.expertise div { border-left: 3px solid var(--accent); padding-left: 22px; }
.expertise p { margin-top: 8px; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 700px) { .expertise { grid-template-columns: 1fr; } }

/* Contact form */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.contact-grid .intro p { color: var(--muted); }
.contact-grid .intro p + p { margin-top: 14px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 34px); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 11px 12px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.95rem; color: var(--muted); margin-bottom: 22px; }
.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 16px; font-size: 0.95rem; min-height: 1.4em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }

/* Footer */
.site-footer { background: var(--band); color: var(--band-muted); padding: 64px 0 36px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--band-ink); }
.site-footer .blades { fill: var(--band-ink); }
.site-footer h3 { color: var(--band-ink); font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 8px; }
.site-footer a { color: var(--band-muted); text-decoration: none; }
.site-footer a:hover { color: var(--band-ink); text-decoration: underline; }
.footer-tag { margin-top: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; text-align: center; font-size: 0.875rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Legal */
.legal { padding: clamp(48px, 7vw, 80px) 0 80px; }
.legal .wrap { max-width: 780px; }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.25em; margin: 12px 0; }
.legal li + li { margin-top: 6px; }

.notfound { min-height: 55vh; display: flex; align-items: center; }
.notfound p { color: var(--muted); margin: 16px 0 28px; }

/* ---- Errota v5 additions: eyebrow, service overview, price lists ---- */
.eyebrow { font: 600 0.85rem/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-link { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.svc-link:hover { border-color: var(--primary); transform: translateY(-2px); }
.svc-link p { margin-top: 10px; color: var(--muted); font-size: 0.98rem; }
.svc-from { margin-top: auto; padding-top: 18px; font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.svc-cta { background: var(--bg-alt); border-style: dashed; }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .svc-link { transition: none; } .svc-link:hover { transform: none; } }
.tile .mark.num { font: 700 1.2rem/1 var(--font-display); }
.card { scroll-margin-top: 96px; }
.price-list { list-style: none; margin: 4px 0 26px; padding: 0; border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pl-name { font-weight: 600; font-size: 0.98rem; }
.pl-name small { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.pl-price { font: 700 1.05rem/1.2 var(--font-display); color: var(--primary); white-space: nowrap; }
.card-body p:last-of-type { margin-bottom: 22px; }
.price-note { margin: 32px auto 0; max-width: 46em; text-align: center; color: var(--muted); font-size: 0.95rem; }
