/* Electec Engineering — brand tokens and site styles. System font stack, no webfonts. */
:root {
  --navy: #1a4f8b;
  --navy-deep: #12365f;
  --teal: #1fb6a6;
  --slate: #3b4a5a;
  --white: #ffffff;
  --ink: #16212d;          /* body text on white, contrast 15.8:1 */
  --mist: #f3f6fa;         /* alt section background */
  --line: #d6dee8;
  --teal-text: #0e8078;   /* teal for small text on white, 5.2:1 */
  --focus: #1a4f8b;
  --font: "Segoe UI", Inter, system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy-deep); letter-spacing: -.01em; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
ul, ol { padding-left: 1.25rem; }
img, svg { max-width: 100%; height: auto; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .hero :focus-visible { outline-color: var(--white); }

.wrap { width: min(var(--maxw), 100% - 2rem); margin-inline: auto; }
.wrap.narrow { max-width: 720px; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--mist); }
.section-dark { background: var(--navy-deep); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark a { color: var(--white); }
.intro { color: var(--slate); max-width: 62ch; font-size: 1.125rem; }

/* Skip link */
.skip { position: absolute; left: 1rem; top: -100px; background: var(--navy-deep); color: #fff; padding: .5rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { top: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--navy); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: .04em; }
.brand-sub { font-weight: 400; font-size: .62rem; letter-spacing: .28em; margin-top: .2em; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--navy-deep); padding: .35rem 0; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .lang a { color: var(--slate); font-weight: 500; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .75rem; }
@media (max-width: 720px) {
  .bar { flex-wrap: wrap; padding: .6rem 0; min-height: 0; }
  .site-nav { width: 100%; }
  .site-nav ul { gap: .2rem .9rem; }
  .site-nav a { font-size: .875rem; }
  .site-nav .lang { margin-left: auto; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy-deep); color: var(--white); padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 600px at 20% 100%, rgba(26,79,139,.75), transparent 60%); z-index: -2; }
.traces { position: absolute; top: 0; right: 0; height: 100%; width: auto; min-width: 60%; z-index: -1; pointer-events: none; }
@media (max-width: 720px) { .traces { opacity: .45; min-width: 120%; } }
.hero-inner { position: relative; max-width: 780px; margin-inline: auto; margin-left: max(1rem, calc((100% - var(--maxw)) / 2)); }
.eyebrow { color: var(--teal); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 600; margin-bottom: 1rem; }
.hero h1 { color: var(--white); margin-bottom: .6em; }
.lead { font-size: clamp(1.15rem, 2.2vw, 1.4rem); color: #dfe8f2; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 2rem; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; color: #dfe8f2; font-size: .95rem; }
.facts li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: .55rem; vertical-align: 2px; }

/* Buttons */
.btn { display: inline-block; padding: .8rem 1.4rem; border-radius: 8px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: background-color .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn-accent { background: var(--teal); color: var(--navy-deep); border-color: var(--teal); }
.btn-accent:hover { background: #7fdcd2; border-color: #7fdcd2; color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); color: var(--white); }

/* Services */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { position: relative; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 10px; padding: 1.5rem 1.5rem 1.25rem; background: var(--white); }
.card:nth-child(4) { border-top-color: var(--teal); }
.card-num { font-variant-numeric: tabular-nums; color: var(--teal-text); font-weight: 700; font-size: .85rem; letter-spacing: .1em; margin-bottom: .5rem; }
.card h3 { color: var(--navy-deep); }
.card p:last-child { margin-bottom: 0; }
.typical { color: var(--slate); font-size: .95rem; border-left: 3px solid var(--teal); padding-left: .75rem; }
.typical strong { color: var(--navy-deep); }
.offers { list-style: none; padding: 0; margin: .5rem 0 0; }
.offers li { padding: .5rem 0; border-top: 1px dashed var(--line); font-weight: 600; color: var(--navy-deep); }
.card-link { margin-top: .75rem; font-weight: 600; }

/* Recent work */
.work-list { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: .75rem; }
.work-list li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.25rem 1rem 3rem; position: relative; }
.work-list li::before { content: ""; position: absolute; left: 1.15rem; top: 1.45rem; width: 12px; height: 12px; border: 3px solid var(--teal); border-radius: 50%; }
.note { color: var(--slate); font-size: .95rem; }

/* Process */
.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: .5rem; border-top: 2px solid var(--line); position: relative; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin: .5rem 0 .75rem; }
.steps p { margin: 0; color: var(--slate); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 3rem; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; gap: 2rem; } }
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 600; color: var(--navy-deep); }
input, select, textarea { font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid #75828f; border-radius: 6px; padding: .65rem .8rem; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid var(--navy); outline-offset: 2px; }
textarea { resize: vertical; min-height: 8rem; }
.hint { font-size: .9rem; color: var(--slate); margin: 0; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .btn { justify-self: start; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #dfe8f2; padding: 2.5rem 0 2rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.foot-brand { display: flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 1rem; }
.foot-brand svg { width: 32px; height: 32px; }
.legal { margin-bottom: .75rem; }
.foot-links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.copy { margin: 0; color: #b9c7d8; }

/* Subpages and notices */
.subpage main h1 { color: var(--navy-deep); }
.subpage main h2 { font-size: 1.3rem; margin-top: 1.75rem; }
.notice { text-align: center; padding-top: 2rem; }
.notice svg { margin-bottom: 1rem; }
