/* Valverde Power Solutions — concept site
   Restrained industrial identity: Inter for reading, Sora for headings, deep purple from the existing mark as the single accent. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-variable.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fonts/sora-variable.woff2') format('woff2'); }

:root {
  --ink: #17132a;
  --text: #2f2b44;
  --muted: #625d7a;
  --line: #e2dfeb;
  --line-strong: #c9c4d8;
  --canvas: #f6f5f9;
  --surface: #ffffff;
  --surface-2: #efedf5;
  --brand: #4a1a9c;
  --brand-deep: #2b1461;
  --brand-ink: #1a0f3d;
  --brand-soft: #ece6f8;
  --brand-tint: #f4f0fb;
  --green: #2f8a47;
  --green-soft: #e4f3e8;
  --amber: #a8620a;
  --amber-soft: #fbefdc;
  --slate-soft: #e9ecf2;
  --slate: #4b5565;
  --red: #b3261e;
  --focus: #6a3fd1;
  --radius: 10px;
  --radius-sm: 6px;
  --wrap: 1180px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Sora', 'Inter', system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(23,19,42,.06), 0 8px 24px -12px rgba(23,19,42,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.6; color: var(--text); background: var(--surface); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { color: var(--ink); }
.small { font-size: .92rem; }
.muted { color: var(--muted); }
.lede { font-size: 1.18rem; color: var(--text); max-width: 62ch; }
.measure { max-width: 68ch; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: .5rem .9rem; border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; color: var(--ink); background: var(--surface-2); font-size: .88rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table-wrap table { min-width: 640px; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 1rem; }

/* Draft bar */
.draft-bar { background: #fff6dd; color: #4a3a12; border-bottom: 1px solid #f0dca6; font-size: .84rem; line-height: 1.4; padding: .4rem 0; }
.draft-bar .wrap { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand img { display: block; width: 200px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav ul { list-style: none; display: flex; gap: 1.55rem; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: .35rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover, .site-nav a.is-active { border-bottom-color: var(--brand); color: var(--brand-deep); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; position: absolute; left: 11px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .2s, top .2s; }
.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .78rem 1.25rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .98rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand-deep); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn-light { background: #fff; color: var(--brand-deep); }
.btn-light:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.04rem; }
.btn-row { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.arrow::after { content: "→"; font-weight: 500; }

/* Sections */
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.section-canvas { background: var(--canvas); }
.section-tint { background: var(--brand-tint); }
.section-dark { background: var(--brand-ink); color: #d9d3ea; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.section-dark a:not(.btn) { color: #cbb8f5; }
.section-dark .muted { color: #a79fc4; }
.section-head { max-width: 72ch; margin-bottom: 2.2rem; }
.section-head h2 { margin-bottom: .4rem; }
.eyebrow { display: block; font-family: var(--font-head); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .7rem; }
.section-dark .eyebrow { color: #b79cf2; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-start { align-items: start; }
.split-form { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }

/* Hero */
.hero { background: linear-gradient(180deg, #1a0f3d 0%, #2b1461 70%, #301a6a 100%); color: #e6e0f4; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 85% 20%, rgba(120,80,220,.28), transparent 60%), radial-gradient(40% 60% at 10% 90%, rgba(60,160,90,.18), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding: clamp(3.2rem, 7vw, 6rem) 0; }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero .lede { color: #d9d3ea; font-size: 1.15rem; }
.hero .eyebrow { color: #b79cf2; }
.hero-proof { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; color: #cfc7e6; }
.hero-proof span::before { content: "•"; color: #8fd39b; margin-right: .5rem; }
.hero-figure { background: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 1rem; margin: 0; box-shadow: 0 20px 50px -20px rgba(0,0,0,.5); }
.hero-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: .6rem; }
.page-hero { background: var(--brand-ink); color: #d9d3ea; padding: clamp(2.6rem, 5vw, 4.2rem) 0; }
.page-hero h1 { color: #fff; margin-bottom: .6rem; }
.page-hero .lede { color: #cfc7e6; }
.page-hero .eyebrow { color: #b79cf2; }
.crumbs { font-size: .86rem; color: #a79fc4; margin-bottom: 1rem; }
.crumbs a { color: #cbb8f5; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; gap: .5rem; }
.card h3 { margin-bottom: .2rem; }
.card p:last-child { margin-bottom: 0; }
.card-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--brand); box-shadow: var(--shadow); color: inherit; }
.card-link .more { color: var(--brand); font-weight: 600; margin-top: auto; padding-top: .6rem; }
.card-num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.card-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: .5rem; }
.card-icon svg { width: 22px; height: 22px; }
.section-dark .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #d9d3ea; }
.section-dark .card h3 { color: #fff; }

/* Tags & status */
.tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 999px; line-height: 1.4; vertical-align: middle; }
.tag-verify { background: #fde68a; color: #4a3a12; }
.tag-dev { background: var(--amber-soft); color: var(--amber); }
.tag-hist { background: var(--slate-soft); color: var(--slate); }
.tag-active { background: var(--green-soft); color: var(--green); }
.tag-brand { background: var(--brand-soft); color: var(--brand); }
.tag-neutral { background: var(--surface-2); color: var(--muted); }
.status-line { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; align-items: center; font-size: .9rem; color: var(--muted); margin: .4rem 0 1rem; }
.evidence { display: inline-block; font-size: .72rem; font-weight: 600; padding: .12rem .45rem; border-radius: 4px; border: 1px solid var(--line-strong); color: var(--muted); background: #fff; white-space: nowrap; vertical-align: middle; }
.evidence-target { border-color: #b9a6ea; color: var(--brand); background: var(--brand-tint); }
.evidence-supplier { border-color: #cbd5e1; color: var(--slate); background: var(--slate-soft); }
.evidence-estimate { border-color: #f1d39b; color: var(--amber); background: var(--amber-soft); }
.evidence-measured { border-color: #a9dcb5; color: var(--green); background: var(--green-soft); }
.evidence-nd { border-style: dashed; }

/* Definition / fact lists */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { background: var(--surface); padding: 1rem 1.1rem; }
.facts dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: .25rem; }
.facts dd { margin: 0; color: var(--ink); font-weight: 500; }
.kv { border-top: 1px solid var(--line); }
.kv > div { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; color: var(--ink); }
.kv dd { margin: 0; }

/* Steps / process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; }
.steps > li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; color: var(--brand); line-height: 1; padding-top: .1rem; }
.steps h3 { margin-bottom: .3rem; }
.steps .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.steps .meta b { color: var(--ink); font-weight: 600; }

/* Checklist */
.check { list-style: none; padding: 0; }
.check li { padding-left: 1.8rem; position: relative; margin-bottom: .55rem; }
.check li::before { content: ""; position: absolute; left: 0; top: .42em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--brand-soft); border: 1px solid #b9a6ea; }
.check li::after { content: ""; position: absolute; left: .32rem; top: .62em; width: .32rem; height: .55rem; border: solid var(--brand); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.section-dark .check li::before { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.section-dark .check li::after { border-color: #b79cf2; }

/* Notices */
.note { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
.note-warn { border-left-color: #e0b04a; background: #fff8e6; }
.note p:last-child { margin: 0; }

/* Team */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.person { display: grid; grid-template-columns: 84px 1fr; gap: 1rem; align-items: start; }
.person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); }
.person h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.person .role { font-size: .88rem; color: var(--muted); margin-bottom: .4rem; }
.person p { font-size: .93rem; margin-bottom: .3rem; }
.person details summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; }
.person details p { margin-top: .6rem; }

/* FAQ */
details.faq { border-top: 1px solid var(--line); padding: 1rem 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); font-family: var(--font-head); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; font-size: 1.3rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > *:not(summary) { margin-top: .7rem; }

/* Diagram */
.diagram { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.diagram svg { display: block; width: 100%; height: auto; }
.diagram figcaption { font-size: .86rem; color: var(--muted); margin-top: .7rem; }
.hero-figure svg { display: block; width: 100%; height: auto; }

/* News list */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.news-list time { font-size: .88rem; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: .15rem; }
.news-list h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.news-list p { margin: 0; font-size: .95rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
label { display: block; font-weight: 600; color: var(--ink); font-size: .93rem; margin-bottom: .35rem; }
label .opt { color: var(--muted); font-weight: 400; }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: .7rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(106,63,209,.25); outline-offset: 0; }
textarea { min-height: 140px; resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem 1.2rem; margin: 0; }
legend { font-family: var(--font-head); font-weight: 700; color: var(--ink); padding: 0 .4rem; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.is-error { display: block; background: #fdecea; color: var(--red); }
.form-status.is-ok { display: block; background: var(--green-soft); color: var(--green); }
.hp { position: absolute; left: -9999px; }
.aside-box { background: var(--canvas); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.aside-box h3 { font-size: 1.05rem; }

/* CTA band */
.cta-band { background: var(--brand-deep); color: #e6e0f4; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.6rem 0; }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #cfc7e6; max-width: 56ch; }

/* Compare / scorecard */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }

/* Footer */
.site-footer { background: #120c29; color: #b6adcf; padding: 3.5rem 0 2rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; }
.footer-logo { filter: brightness(0) invert(1); opacity: .9; width: 180px; }
.footer-descriptor { font-family: var(--font-head); color: #fff; font-weight: 600; margin: .8rem 0 .4rem; }
.footer-h { font-family: var(--font-head); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 0 0 .7rem; }
.footer-h + .footer-h, .small + .footer-h { margin-top: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.site-footer a { color: #d9d3ea; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8f87ad; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem; }

/* Responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paths { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .split, .split-form { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .draft-bar { font-size: .76rem; }
  html, body { overflow-x: hidden; }
  .grid-2, .grid-3, .grid-4, .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .brand img { width: 160px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.4rem; flex-direction: column; align-items: stretch; gap: 1rem; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: .2rem; }
  .site-nav a:not(.btn) { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-cta { justify-content: center; }
  .news-list li { grid-template-columns: 1fr; gap: .2rem; }
  .kv > div { grid-template-columns: 1fr; gap: .2rem; }
  .steps > li { grid-template-columns: 40px 1fr; padding: 1rem; }
  .person { grid-template-columns: 64px 1fr; }
  .person img { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
@media print { .draft-bar, .site-header, .site-footer, .cta-band { display: none; } }
