/* evistep.com: one stylesheet for every page. Colours are the Evistep logo's own. */

@font-face {
    font-family: "Manrope";
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #121418;
    --ink-2: #1a1d22;
    --ink-3: #23272e;
    --ink-line: rgba(255, 255, 255, .09);
    --on-ink: #f2f3f0;
    --on-ink-muted: #a9afb8;
    --paper: #f4f5f1;
    --white: #fff;
    --text: #16181c;
    --muted: #59606a;
    --line: #e1e3dc;
    --green-1: #8fe032;
    --green-2: #6dcc09;
    --green-3: #3ea502;
    --green-text: #2f7a07;
    --orange: #ffa10b;
    --radius: 18px;
    --wrap: 1180px;
    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--green-text); text-underline-offset: .2em; }
a:hover { color: var(--text); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 16px; top: -60px; z-index: 100;
    background: var(--green-1); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.eyebrow {
    font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: var(--green-text); margin-bottom: .9em;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5em;
    padding: .9em 1.5em; border: 0; border-radius: 999px;
    background: var(--green-1); color: var(--ink);
    font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none;
    cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--green-2); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--ghost { background: transparent; color: var(--on-ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--small { padding: .65em 1.15em; font-size: .92rem; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18, 20, 24, .92);
    backdrop-filter: saturate(160%) blur(12px);
    -webkit-backdrop-filter: saturate(160%) blur(12px);
    border-bottom: 1px solid var(--ink-line);
}
.site-header__bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.site-header__logo img { width: 144px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) {
    color: var(--on-ink-muted); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 6px 0;
}
.site-nav a:not(.btn):hover, .site-nav a[aria-current] { color: var(--white); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--green-1); }
.nav-toggle {
    display: none; width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; color: var(--white);
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 22px; height: 2px; margin: 0 auto; background: currentColor;
    border-radius: 2px; transition: transform .2s, opacity .2s; position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 72px;
        flex-direction: column; align-items: stretch; gap: 0;
        padding: 8px 24px 24px; background: var(--ink); border-bottom: 1px solid var(--ink-line);
    }
    .nav-open .site-nav { display: flex; }
    .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ink-line); font-size: 1.05rem; }
    .site-nav a[aria-current] { box-shadow: none; color: var(--green-1); }
    .site-nav .btn { margin-top: 18px; }
}

/* Sections */
.section { padding: 104px 0; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-ink); }
.section--ink .eyebrow { color: var(--green-1); }
.section--ink a:not(.btn) { color: var(--green-1); }
.section--ink a:not(.btn):hover { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.section--ink .section-head p:last-child { color: var(--on-ink-muted); }
.section-foot { margin-top: 44px; }
@media (max-width: 700px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 36px; }
}

/* Home hero */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(900px 480px at 85% 10%, rgba(109, 204, 9, .16), transparent 60%),
        var(--ink);
    color: var(--on-ink);
    padding: 96px 0 104px;
}
.hero::after {
    content: ""; position: absolute; right: -90px; bottom: -120px; width: 520px; height: 520px;
    background: url("../../images/brand/evistep-icon.svg") no-repeat center / contain;
    opacity: .06; pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.hero .eyebrow { color: var(--green-1); }
.hero h1 { color: var(--white); max-width: 15em; }
.hero h1 em { font-style: normal; color: var(--green-1); }
.hero__lead { color: var(--on-ink-muted); font-size: 1.2rem; max-width: 34em; margin-bottom: 2em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.proof { display: grid; gap: 14px; }
.proof__item {
    display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: center;
    padding: 20px 22px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-line);
    color: var(--on-ink); text-decoration: none; transition: background .15s, border-color .15s;
}
a.proof__item:hover { background: rgba(255, 255, 255, .07); border-color: rgba(143, 224, 50, .4); color: var(--on-ink); }
.proof__icon {
    width: 56px; height: 56px; border-radius: 14px; background: var(--ink-3);
    display: grid; place-items: center;
}
.proof__icon { color: var(--green-1); }
.proof__icon img { width: 34px; height: 34px; object-fit: contain; }
.proof__icon svg { width: 28px; height: 28px; }
.proof__value { display: block; font-size: 1.9rem; font-weight: 800; line-height: 1.1; color: var(--white); letter-spacing: -.02em; }
.proof__label { display: block; color: var(--on-ink-muted); font-size: .95rem; line-height: 1.4; margin-top: 2px; }
@media (max-width: 960px) {
    .hero { padding: 64px 0 72px; }
    .hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .hero::after { width: 320px; height: 320px; right: -80px; bottom: -80px; }
}

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 30px 28px;
}
.service__icon {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
    display: grid; place-items: center; background: #ecf8df; color: var(--green-3);
}
.service__icon svg { width: 28px; height: 28px; }
.service p { color: var(--muted); }
.service__proof {
    margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line);
    font-size: .95rem; color: var(--text); margin-bottom: 0;
}
.service__proof strong { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 960px) { .service-grid { grid-template-columns: 1fr; } }

/* Work cards (Evistep's own work) */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--radius); color: var(--on-ink);
}
.work-card__plate {
    display: grid; place-items: center; aspect-ratio: 16 / 6; padding: 24px;
    background:
        radial-gradient(420px 160px at 50% 120%, rgba(143, 224, 50, .10), transparent 70%),
        var(--ink-3);
    border-bottom: 1px solid var(--ink-line);
}
.work-card__plate img { max-height: 60px; max-width: 64%; width: auto; object-fit: contain; }
.work-card__body { display: flex; flex-direction: column; flex: 1; padding: 28px 30px 26px; }
.work-card h3 { color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.work-card p { color: var(--on-ink-muted); }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 4px 0 20px; }
.figures div { padding: 14px 14px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-line); }
.figures dt { font-size: 1.55rem; font-weight: 800; color: var(--green-1); line-height: 1.1; letter-spacing: -.02em; }
.figures dd { margin: 4px 0 0; font-size: .85rem; color: var(--on-ink-muted); line-height: 1.3; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.facts li {
    font-size: .85rem; font-weight: 700; padding: .4em .85em; border-radius: 999px;
    background: rgba(143, 224, 50, .09); color: #cdeeb0;
}
.work-card__link {
    margin-top: auto; align-self: flex-start; font-weight: 800; text-decoration: none;
    color: var(--green-1);
}
.section--ink .work-card__link { color: var(--green-1); }
.work-card__link:hover { text-decoration: underline; }
@media (max-width: 860px) { .work-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) {
    .work-card__body { padding: 24px 22px 22px; }
    .figures { gap: 8px; }
    .figures div { padding: 12px 10px 10px; }
    .figures dt { font-size: 1.2rem; }
}

/* Founder's products */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
    display: flex; flex-direction: column;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 24px;
}
.product-card__plate {
    display: grid; place-items: center; aspect-ratio: 16 / 7; border-radius: 12px; padding: 20px;
    background: var(--ink-2); margin-bottom: 22px;
}
.product-card__plate img { max-height: 40px; max-width: 70%; width: auto; object-fit: contain; }
.product-card h3, .product-card p, .product-card .work-card__link { margin-left: 14px; margin-right: 14px; }
.product-card p { color: var(--muted); font-size: 1rem; }
.product-card .work-card__link { color: var(--green-text); }
@media (max-width: 960px) { .product-grid { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about__text p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }
.about__text .quote:not(.eyebrow) {
    color: var(--text); font-size: 1.35rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em;
    border-left: 4px solid var(--green-1); padding-left: 22px; margin: 0 0 1.2em;
}
.about__subtitle { font-size: 1.4rem; margin-top: 1.6em; }
.fact-list { margin: 0; border-top: 1px solid var(--line); }
.fact-list div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.fact-list dt { font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.fact-list dd { margin: 0; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 420px) { .fact-list div { grid-template-columns: 1fr; gap: 2px; } }

/* Estimate */
.estimate { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.estimate__intro p:not(.eyebrow) { color: var(--on-ink-muted); font-size: 1.1rem; }
.contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 14px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; color: var(--on-ink); }
.contact-list svg { width: 22px; height: 22px; color: var(--green-1); margin-top: 3px; }
.section--paper .estimate__intro p:not(.eyebrow) { color: var(--muted); }
.section--paper .contact-list li { color: var(--text); }
.map-link { margin-top: 24px; font-weight: 700; }
.section--paper .contact-list svg { color: var(--green-3); }
@media (max-width: 960px) { .estimate { grid-template-columns: 1fr; gap: 40px; } }

.estimate-form {
    background: var(--white); color: var(--text); border-radius: 22px; padding: 36px;
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.section--paper .estimate-form { border: 1px solid var(--line); box-shadow: none; }
@media (max-width: 520px) { .estimate-form { padding: 24px 20px; border-radius: 18px; } }
.estimate-form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font-weight: 800; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.optional { font-weight: 600; color: var(--muted); font-size: .85rem; margin-left: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.field input[type="text"], .field input[type="email"], .field textarea {
    width: 100%; font: inherit; font-size: 1rem; color: var(--text);
    padding: 12px 14px; border: 1.5px solid #d4d7cf; border-radius: 12px; background: #fbfbf9;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus {
    outline: 0; border-color: var(--green-3); background: var(--white); box-shadow: 0 0 0 4px rgba(109, 204, 9, .18);
}
.field [aria-invalid="true"] { border-color: #c2410c; }
.field-error { color: #b4380a; font-size: .88rem; font-weight: 700; margin: 6px 0 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { margin: 0; font-weight: 700; font-size: .95rem; cursor: pointer; }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices span {
    display: inline-block; padding: .6em 1.1em; border-radius: 999px;
    border: 1.5px solid #d4d7cf; background: #fbfbf9; transition: all .15s;
}
.choices label:hover span { border-color: var(--green-3); }
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.choices input:focus-visible + span { outline: 3px solid var(--green-2); outline-offset: 2px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 8px; }
.form-status { margin: 0; font-weight: 700; font-size: .95rem; flex: 1 1 240px; }
.form-status[data-state="ok"] { color: var(--green-text); }
.form-status[data-state="error"] { color: #b4380a; }
.form-status[data-state="busy"] { color: var(--muted); }

/* Inner page title band */
.page-hero {
    position: relative; overflow: hidden;
    background: radial-gradient(700px 360px at 90% 0%, rgba(109, 204, 9, .14), transparent 60%), var(--ink);
    color: var(--on-ink); padding: 80px 0 72px;
}
.page-hero::after {
    content: ""; position: absolute; right: -60px; bottom: -110px; width: 340px; height: 340px;
    background: url("../../images/brand/evistep-icon.svg") no-repeat center / contain; opacity: .06;
}
.page-hero .eyebrow { color: var(--green-1); }
.page-hero h1 { color: var(--white); max-width: 16em; }
.page-hero p:last-child { color: var(--on-ink-muted); font-size: 1.2rem; max-width: 36em; margin-bottom: 0; }
.page-hero a { color: var(--green-1); }
.page-hero a:hover { color: var(--white); }
@media (max-width: 700px) { .page-hero { padding: 56px 0 52px; } }
.page-hero + .section--ink { padding-top: 8px; }

/* Call to action band */
.cta-band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
    padding: 44px 48px; border-radius: 24px; background: var(--ink); color: var(--on-ink);
}
.cta-band h2 { color: var(--white); margin: 0 0 .25em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.cta-band p { margin: 0; color: var(--on-ink-muted); }
@media (max-width: 520px) { .cta-band { padding: 32px 24px; } }

/* 404 */
.not-found { text-align: center; padding: 120px 0 128px; }
.not-found .eyebrow { color: var(--green-1); }
.not-found h1 { color: var(--white); margin: 0 auto .4em; }
.not-found p:not(.eyebrow) { color: var(--on-ink-muted); font-size: 1.15rem; max-width: 32em; margin: 0 auto 2em; }
.not-found .hero__actions { justify-content: center; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 72px 0 0; font-size: .97rem; border-top: 1px solid var(--ink-line); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 56px; }
.site-footer__brand img { width: 144px; margin-bottom: 18px; }
.site-footer__brand p { margin-bottom: 20px; }
.site-footer__title { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.site-footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.social { list-style: none; padding: 0; margin: 0; display: flex; gap: 10px; }
.social a {
    width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255, 255, 255, .06); color: var(--on-ink);
}
.social a:hover { background: var(--green-1); color: var(--ink); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.site-footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    border-top: 1px solid var(--ink-line); padding-top: 22px; padding-bottom: 28px; font-size: .88rem;
}
.site-footer__bottom p { margin: 0; }
@media (max-width: 960px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
