/* ==========================================================================
   Everlink Solutions - site styles (no framework, no external dependencies)
   Brand colours sampled from the logo.
   ========================================================================== */
:root {
    --brand: #a01919;          /* "Everlink" red */
    --brand-dark: #7d1212;
    --accent: #f44b00;         /* logo icon orange */
    --ink: #1c1e23;
    --text: #3a3d44;
    --muted: #6b6f78;
    --line: #e4e2de;
    --bg: #ffffff;
    --bg-alt: #f6f5f2;
    --dark: #17191e;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(20,20,30,.05), 0 8px 24px rgba(20,20,30,.06);
    --max: 1160px;
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.05rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-inline { width: 1em; height: 1em; vertical-align: -.12em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; border: 0; border-radius: 8px;
       padding: 12px 22px; font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-small { padding: 8px 16px; font-size: .95rem; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #fdf1ee; color: var(--brand-dark); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 48px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 8px 14px; border-radius: 6px; }
.site-nav a:not(.btn):hover { background: var(--bg-alt); }
.site-nav a.active:not(.btn) { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); border-radius: 0; }
.site-nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; background: var(--dark); color: #d4d6dc; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 400px at 85% 20%, rgba(244,75,0,.20), transparent 70%),
                radial-gradient(500px 380px at 10% 110%, rgba(160,25,25,.35), transparent 70%); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding: 96px 24px 104px; }
.hero h1 { color: #fff; }
.hero .lead { font-size: 1.2rem; color: #c3c6ce; max-width: 34em; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--brand); margin-bottom: 14px; }
.hero .eyebrow { color: #ff8a57; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.panel-window { background: #22252c; border: 1px solid #343842; border-radius: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; }
.panel-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #343842; }
.panel-bar span { width: 10px; height: 10px; border-radius: 50%; background: #444955; }
.panel-bar span:first-child { background: var(--accent); }
.panel-body { padding: 10px; }
.panel-row { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: 8px; color: #e7e8eb; font-size: .95rem; }
.panel-row + .panel-row { border-top: 1px solid #2d3038; }
.panel-row .icon { color: #ff8a57; width: 20px; height: 20px; }
.panel-row span { flex: 1; }
.panel-row em { font-style: normal; font-size: .8rem; color: #9fd3a9; background: rgba(80,170,100,.14); padding: 2px 9px; border-radius: 99px; }

/* Page hero (inner pages) */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.page-hero .lead { font-size: 1.15rem; max-width: 42em; color: var(--text); }
.page-hero h1 { max-width: 22em; }
.page-hero-center { text-align: center; }
.page-hero-center h1, .page-hero-center .lead { margin-left: auto; margin-right: auto; }
.page-hero-center .hero-actions { justify-content: center; }
.page-hero-center .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.page-hero-center img { margin: 0 auto 32px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-link { margin: 32px 0 0; font-weight: 600; }
.section-link a { text-decoration: none; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.card p { margin: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; background: #fbeee9; color: var(--brand); margin-bottom: 18px; flex: none; }

.service { display: flex; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.service .card-icon { margin: 0; }
.service p { margin: 0; }
.section-alt .service { box-shadow: var(--shadow); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.feature-list .icon { color: var(--brand); margin-top: 2px; }
.feature-list strong { display: block; color: var(--ink); }
.feature-list span { color: var(--muted); font-size: .96rem; }

.tech-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.tech-list li { border: 1px solid var(--line); border-radius: 99px; padding: 9px 20px; font-weight: 500; color: var(--ink); background: #fff; }

.stat-panel { display: grid; gap: 16px; }
.stat { border-left: 3px solid var(--brand); background: var(--bg-alt); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.stat strong { display: block; font-size: 1.8rem; color: var(--ink); line-height: 1.2; }
.stat span { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }

/* CTA */
.cta { background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #c4320d); color: #fbe3dc; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 64px 24px; }
.cta h2 { color: #fff; }
.cta p { margin: 0; max-width: 40em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1px solid #cfccc6; border-radius: 8px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 160px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(160,25,25,.15); }
.field:has(.field-validation-error) input, .field:has(.field-validation-error) textarea { border-color: #c0392b; }
.field-validation-error { display: block; color: #b3261e; font-size: .9rem; margin-top: 6px; }
.field-validation-valid { display: none; }
.req { color: var(--brand); }
.optional { font-weight: 400; color: var(--muted); }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.notice p:last-child { margin-bottom: 0; }
.notice-error { background: #fdecea; color: #8a1c13; border: 1px solid #f5c2bc; }
.notice-success { display: flex; gap: 16px; background: #edf7ef; color: #1e5b2c; border: 1px solid #c4e4cb; padding: 28px; }
.notice-success h2 { font-size: 1.35rem; color: #1e5b2c; }
.notice-success .icon { width: 30px; height: 30px; color: #2e8540; }

.contact-aside { display: grid; gap: 20px; }
.aside-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.aside-card h2 { font-size: 1.15rem; }
.aside-list, .check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.aside-list li, .check-list li { display: flex; gap: 12px; }
.aside-list .icon, .check-list .icon { color: var(--brand); width: 20px; height: 20px; margin-top: 4px; }
.aside-list small { color: var(--muted); font-size: .9rem; }

/* Footer */
.site-footer { background: var(--dark); color: #a9acb5; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px; padding: 64px 24px 40px; }
.footer-brand { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer-heading { color: #fff; font-weight: 600; margin-bottom: 12px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d0d2d8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .muted { color: #8b8f99; }
.footer-bottom { border-top: 1px solid #2b2e35; padding: 20px 24px; font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* Responsive */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; padding: 72px 24px 80px; gap: 40px; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
    body { font-size: 16px; }
    .header-inner { height: 64px; }
    .brand img { height: 40px; }
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
                background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px; box-shadow: 0 12px 24px rgba(0,0,0,.08); }
    .site-nav.open { display: flex; }
    .site-nav a:not(.btn) { padding: 12px 10px; }
    .site-nav a.active:not(.btn) { box-shadow: inset 3px 0 0 var(--brand); }
    .site-nav .btn { margin: 10px 0 0; justify-content: center; }
    .grid-2, .grid-3, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .page-hero { padding: 52px 0 48px; }
    .service { flex-direction: column; gap: 14px; }
    .hero-panel { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
