/* ============================================================================
   evoTraffic public marketing site — brand theme (green) + layout.
   Green tokens reused from the EvoMobile admin (ux-tokens.css [data-accent="green"]):
   primary #647E35 / hover #56702E / deep #475D26 / light #8BA84A / text #515151.
   Standalone: no dependency on the admin (FR-154 / AD-92).
   ============================================================================ */

:root {
    --green: #647E35;
    --green-dark: #56702E;
    --green-deep: #475D26;
    --green-light: #8BA84A;
    --green-tint: #eef2e6;
    --green-tint-2: #f6f8f2;

    --ink: #273016;        /* darkest headings on light */
    --heading: #33401c;
    --text: #515151;       /* body (admin green-mode text) */
    --muted: #737b6a;
    --bg: #ffffff;
    --surface: #f6f8f2;
    --border: rgba(100, 126, 53, 0.16);
    --border-strong: rgba(100, 126, 53, 0.30);

    --gradient-brand: linear-gradient(135deg, #647E35 0%, #475D26 100%);
    --gradient-brand-bright: linear-gradient(135deg, #8BA84A 0%, #647E35 55%, #475D26 100%);

    --radius-sm: 0.5rem;
    --radius: 0.85rem;
    --radius-lg: 1.25rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(39, 48, 22, .07);
    --shadow: 0 6px 24px rgba(39, 48, 22, .09), 0 2px 6px rgba(39, 48, 22, .06);
    --shadow-lg: 0 18px 50px rgba(39, 48, 22, .14), 0 6px 16px rgba(39, 48, 22, .08);

    --nav-h: 74px;
    --maxw: 1160px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 8px);
    -webkit-text-size-adjust: 100%;
}
body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    font-size: 1.02rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { color: var(--heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green-deep); }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--green-deep); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    font: inherit; font-weight: 700; cursor: pointer;
    padding: .8rem 1.5rem; border-radius: var(--radius-full);
    border: 2px solid transparent; transition: transform var(--ease) .18s, box-shadow var(--ease) .18s, background .18s, color .18s, border-color .18s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(100, 126, 53, .35); }
.btn-primary:hover { background: var(--green-dark); color: #fff; box-shadow: 0 12px 26px rgba(100, 126, 53, .45); }
.btn-outline { background: transparent; color: var(--green-deep); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--green-tint); color: var(--green-deep); border-color: var(--green); }
.btn-on-dark { background: #fff; color: var(--green-deep); }
.btn-on-dark:hover { background: #f3f6ec; color: var(--green-deep); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100;
    background: rgba(255, 255, 255, .82); backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
/* evoTraffic wordmark logo — a wide horizontal lockup that reads cleanly at a normal navbar size on
   the light bar (no overflow needed; supersedes the old tall-logo 3x/overflow trick). */
.nav-brand { display: flex; align-items: center; gap: .6rem; }
.nav-brand img { height: 42px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-links a.nav-item {
    color: var(--heading); font-weight: 600; padding: .55rem .85rem; border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
}
.nav-links a.nav-item:hover { background: var(--green-tint); color: var(--green-deep); }
.nav-actions { display: flex; align-items: center; gap: .6rem; margin-left: .5rem; }

.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: .5rem; border-radius: var(--radius-sm); }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--heading); border-radius: 2px; margin: 5px 0; transition: .2s; }

/* ---------- Layout shell ---------- */
main { display: block; }
.section { padding: 5.5rem 0; }
.section-tint { background: var(--surface); }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800;
    color: var(--green-dark); background: var(--green-tint); padding: .35rem .8rem; border-radius: var(--radius-full); margin-bottom: 1rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: var(--gradient-brand);
    padding: calc(var(--nav-h) + 4.5rem) 0 5rem;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(1100px 500px at 80% -10%, rgba(139,168,74,.55), transparent 60%),
                radial-gradient(700px 400px at 0% 110%, rgba(255,255,255,.10), transparent 55%);
    pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
/* On the green hero the grey "evo" would blend, so the wordmark sits on a white pill. */
.hero .brand-badge { display: inline-flex; align-items: center; background: #fff; padding: .5rem 1.1rem; border-radius: var(--radius-full); margin-bottom: 1.6rem; box-shadow: var(--shadow); }
.hero .brand-badge img { height: 34px; display: block; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 1rem; }
.hero h1 .accent { color: #e9f2d6; }
.hero p.sub { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgba(255,255,255,.92); max-width: 640px; margin-bottom: 2rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-strip { position: relative; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.22); }
.hero-strip .stat b { display: block; font-size: 1.5rem; color: #fff; font-weight: 800; }
.hero-strip .stat span { color: rgba(255,255,255,.8); font-size: .92rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.about-copy p { font-size: 1.06rem; }
.about-highlights { display: grid; gap: 1rem; }
.hl-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm); }
.hl-card b { display: block; color: var(--green-deep); font-size: 1.05rem; margin-bottom: .15rem; }
.hl-card span { color: var(--muted); font-size: .95rem; }
.owner-badge { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--green-deep); background: var(--green-tint); border-radius: var(--radius-full); padding: .4rem .9rem; margin-bottom: 1.2rem; }

/* ---------- Services ---------- */
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 3rem; }
.app-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); transition: transform var(--ease) .2s, box-shadow var(--ease) .2s; }
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.app-card .icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: var(--radius); background: var(--gradient-brand); color: #fff; margin-bottom: 1.1rem; }
.app-card .icon svg { width: 28px; height: 28px; }
.app-card h3 { font-size: 1.4rem; }
.app-card .role { display: inline-block; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--green-dark); margin-bottom: .6rem; }
.app-card .problem { border-left: 3px solid var(--green-light); padding-left: .9rem; color: var(--muted); font-size: .97rem; margin-top: 1rem; }

.adv-head { text-align: center; margin: 0 auto 1.5rem; max-width: 640px; }
.adv-head h3 { font-size: 1.5rem; }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.adv { display: flex; gap: .75rem; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.15rem; box-shadow: var(--shadow-sm); }
.adv .tick { flex: 0 0 auto; width: 24px; height: 24px; border-radius: var(--radius-full); background: var(--green-tint); color: var(--green-deep); display: grid; place-items: center; margin-top: 1px; }
.adv .tick svg { width: 14px; height: 14px; }
.adv b { color: var(--heading); font-size: .98rem; }
.adv span { display: block; color: var(--muted); font-size: .88rem; }

/* Paperless callout band */
.paperless { margin-top: 3.25rem; background: var(--gradient-brand-bright); color: #fff; border-radius: var(--radius-lg); padding: 2.25rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.paperless h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.paperless p { color: rgba(255,255,255,.92); margin: .4rem 0 0; max-width: 640px; }

/* ---------- Contact ---------- */
.contact-card { max-width: 780px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.contact-side { background: var(--gradient-brand); color: #fff; padding: 2.25rem; }
.contact-side h3 { color: #fff; }
.contact-side p { color: rgba(255,255,255,.9); }
.contact-list { margin-top: 1.5rem; display: grid; gap: 1rem; }
.contact-list a, .contact-list div { color: #fff; display: flex; gap: .7rem; align-items: center; font-weight: 600; }
.contact-list svg { width: 20px; height: 20px; flex: 0 0 auto; opacity: .9; }
.contact-address { align-items: flex-start !important; }
.contact-address svg { margin-top: 2px; }
.contact-address span { font-weight: 500; line-height: 1.45; }
.contact-main { padding: 2.25rem; }
.contact-main .lead { font-size: 1.02rem; }

/* ---------- Footer ---------- */
.footer { background: #20290f; color: rgba(255,255,255,.72); padding: 3rem 0 1.5rem; }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
/* White chip so the grey "evo" stays legible on the dark footer. */
.footer-brand img { height: 38px; margin-bottom: 1rem; background: #fff; padding: 7px 12px; border-radius: 10px; }
.footer-brand p { max-width: 320px; font-size: .94rem; }
.footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9rem; }
.footer-cols a { color: rgba(255,255,255,.72); display: block; padding: .28rem 0; font-size: .95rem; }
.footer-cols a:hover { color: var(--green-light); }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.55); }

/* ---------- Entrance animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s var(--ease) forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { animation: none; opacity: 1; transform: none; }
    .btn:hover, .app-card:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .apps { grid-template-columns: 1fr; }
    .adv-grid { grid-template-columns: 1fr 1fr; }
    .contact-card { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .section { padding: 4rem 0; }
    .nav-burger { display: block; }
    .nav-actions .nav-admin-text { display: none; }
    .nav-links {
        position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); padding: .5rem;
        max-height: 0; overflow: hidden; transition: max-height .28s var(--ease); z-index: 90;
    }
    .nav:has(.nav-toggle:checked) .nav-links { max-height: 70vh; }
    .nav-links a.nav-item { padding: .85rem 1rem; border-radius: var(--radius-sm); }
    .paperless { padding: 1.75rem; }
    .adv-grid { grid-template-columns: 1fr; }
}
