/* ==========================================================================
   Elvinsoft — marketing site stylesheet (mobile-first)
   Brand: navy #0B2545 (primary), green #13A10E (accent), light grey #F4F6F8.
   Text-on-green uses --green-dark (#0E7A0B, 5.5:1 with white) because the
   bright brand green is only 3.4:1 with white and fails WCAG AA for text.
   ========================================================================== */

:root {
    --navy:        #0B2545;
    --navy-2:      #13315C;
    --navy-3:      #1D4372;
    --green:       #13A10E;
    --green-dark:  #0E7A0B;
    --green-soft:  #E7F6E6;
    --grey:        #F4F6F8;
    --grey-2:      #E3E8EE;
    --ink:         #1A1A1A;
    --muted:       #4A5565;
    --white:       #FFFFFF;
    --radius:      12px;
    --radius-lg:   18px;
    --shadow:      0 1px 2px rgba(11,37,69,.06), 0 8px 24px -12px rgba(11,37,69,.18);
    --shadow-lg:   0 18px 48px -20px rgba(11,37,69,.35);
    --container:   1140px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ----- base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--green-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.1rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--grey { background: var(--grey); }
.section__head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 10px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ----- buttons --------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
    font: 700 1rem/1.1 var(--font); text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn .ic { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; }
.btn--accent { background: var(--green-dark); color: #fff; }
.btn--accent:hover { background: #0B640A; color: #fff; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--grey-2); }
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: var(--green-soft); color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn-row--center { justify-content: center; }

/* ----- header (CSS-only mobile menu: works without JavaScript) ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--grey-2); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; position: relative; }
.brand img { width: 150px; height: auto; }
.nav__check { position: absolute; opacity: 0; pointer-events: none; }
.nav__toggle { display: inline-flex; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy); }
.nav__toggle .ic { width: 26px; height: 26px; }
.nav__menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--grey-2); box-shadow: var(--shadow-lg); padding: 8px 16px 20px;
}
.nav__check:checked ~ .nav__menu { display: block; }
.nav__check:focus-visible + .nav__toggle { outline: 3px solid var(--green); border-radius: 8px; }
.nav__links { list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--grey); }
.nav__links a[aria-current="page"] { color: var(--green-dark); }
.nav__cta { width: 100%; margin-top: 14px; }

/* ----- hero ------------------------------------------------------------------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); color: #fff; padding: 48px 0 56px; overflow: hidden; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255,255,255,.86); font-size: 1.1rem; max-width: 560px; }
.hero .eyebrow { color: #8BE38A; }
.hero__inner { display: grid; gap: 36px; align-items: center; }
.hero__art { max-width: 520px; margin: 0 auto; width: 100%; }
.hero__note { margin-top: 18px; font-size: .92rem; color: rgba(255,255,255,.75); }
.page-hero { background: var(--navy); color: #fff; padding: 44px 0 40px; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.86); max-width: 680px; margin: 0; font-size: 1.08rem; }
.page-hero .eyebrow { color: #8BE38A; }

/* ----- grids & cards ------------------------------------------------------------ */
.grid { display: grid; gap: 20px; }
.card { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.section--grey .card { border-color: transparent; }
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); margin-bottom: 16px; }
.card__icon .ic { width: 24px; height: 24px; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; text-decoration: none; color: var(--green-dark); }
.card__link .ic { width: 16px; height: 16px; }
.card--link { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li .ic { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); stroke-width: 3; }

/* ----- process steps --------------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 18px 18px 18px 70px; box-shadow: var(--shadow); }
.steps li::before {
    counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 18px;
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--navy); color: #fff; font-weight: 800;
}
.steps h3 { margin-bottom: 2px; }
.steps p { margin: 0; color: var(--muted); }

/* ----- pricing ---------------------------------------------------------------------- */
.pricing { display: grid; gap: 20px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow); }
.price-card--featured { border: 2px solid var(--green-dark); }
.price-badge { position: absolute; top: -13px; left: 24px; background: var(--green-dark); color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.price-card__amount { margin: 6px 0 2px; }
.price-card__amount .from { display: block; color: var(--muted); font-size: .9rem; }
.price-card__amount .num { font-size: 1.9rem; font-weight: 800; color: var(--navy); }
.price-card__for { color: var(--muted); font-size: .95rem; }
.price-card .ticks { margin-bottom: 24px; }
.price-card .btn { margin-top: auto; }
.price-card .btn + .btn { margin-top: 10px; }
.mpesa-note { display: flex; gap: 14px; align-items: flex-start; background: var(--green-soft); border-radius: var(--radius); padding: 18px 20px; margin-top: 28px; }
.mpesa-note .ic { width: 26px; height: 26px; flex: none; color: var(--green-dark); }
.mpesa-note p { margin: 0; }

/* ----- services page ---------------------------------------------------------------- */
.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.svc-nav a { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--grey-2); color: var(--navy); font-weight: 600; font-size: .92rem; text-decoration: none; }
.svc-nav a:hover { border-color: var(--green-dark); color: var(--green-dark); }
.svc { display: grid; gap: 28px; padding: 48px 0; border-top: 1px solid var(--grey-2); }
.svc:first-of-type { border-top: 0; }
.svc__head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.svc__head .card__icon { margin: 0; flex: none; }
.svc__head h2 { margin: 0; }
.svc__note { margin-top: 16px; font-size: .92rem; color: var(--muted); border-left: 3px solid var(--green); padding-left: 12px; }

/* ----- FAQ ------------------------------------------------------------------------- */
.faq h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.faq details { background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 16px; font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 1.4rem; color: var(--green-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 16px 16px; margin: 0; color: var(--muted); }

/* ----- portfolio --------------------------------------------------------------------- */
.pf-grid { display: grid; gap: 22px; }
.pf-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.pf-card__img { position: relative; aspect-ratio: 16 / 10; background: var(--grey); }
.pf-card__img img { width: 100%; height: 100%; object-fit: cover; }
.pf-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pf-card__body p { color: var(--muted); margin: 0 0 14px; }
.pf-card__body .card__link { margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-3); background: var(--grey); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
.sample-badge { position: absolute; top: 12px; left: 12px; background: #FFF4CC; color: #5C4400; border: 1px solid #E8C65A; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }

/* ----- contact ----------------------------------------------------------------------- */
.contact-grid { display: grid; gap: 28px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card__icon { margin: 0; flex: none; width: 44px; height: 44px; }
.contact-list strong { display: block; color: var(--navy); }
.contact-list a, .contact-list span { color: var(--muted); }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--grey-2); vertical-align: top; }
.hours th { font-weight: 600; padding-right: 12px; color: var(--navy); }
.form { display: grid; gap: 16px; }
.form label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
    width: 100%; min-height: 48px; padding: 12px 14px; font: inherit; color: var(--ink);
    background: #fff; border: 1.5px solid #B9C3CF; border-radius: 10px;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(29,67,114,.2); }
.form [aria-invalid="true"] { border-color: #B42318; }
.field-error { color: #B42318; font-size: .88rem; margin-top: 4px; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; }
.alert--ok { background: var(--green-soft); color: #0B4F09; border: 1px solid #9ED89C; }
.alert--err { background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.form-note { font-size: .88rem; color: var(--muted); margin: 0; }

/* ----- prose pages (privacy, terms) --------------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 2em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: .4em; }
.updated { color: var(--muted); font-size: .92rem; }

/* ----- CTA band ------------------------------------------------------------------------ */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; border-radius: var(--radius-lg); padding: 36px 22px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.86); max-width: 560px; margin: 0 auto; }

/* ----- footer ---------------------------------------------------------------------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.8); padding: 48px 0 96px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand img { width: 150px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: .95rem; }
.footer-h { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer-contact a, .footer-contact span { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .ic { width: 18px; height: 18px; flex: none; color: #8BE38A; }
.socials { list-style: none; padding: 0; margin: 16px 0 0; display: flex; gap: 10px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); }
.socials svg { width: 20px; height: 20px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: .88rem; }

/* ----- floating WhatsApp button -------------------------------------------------------- */
.wa-float {
    position: fixed; right: 16px; bottom: 16px; z-index: 60;
    display: inline-flex; align-items: center; gap: 8px;
    background: #128C3E; color: #fff; border-radius: 999px; padding: 12px; box-shadow: 0 10px 28px -8px rgba(0,0,0,.45);
    text-decoration: none; font-weight: 700;
}
.wa-float:hover { background: #0E7A34; color: #fff; }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float span { display: none; }

/* ----- cookie notice (only rendered when analytics is configured) ---------------------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 84px; z-index: 70; background: #fff; border: 1px solid var(--grey-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; max-width: 520px; }
.cookie p { margin: 0 0 12px; font-size: .92rem; }

/* ----- 404 ------------------------------------------------------------------------------ */
.notfound { text-align: center; padding: 72px 0; }
.notfound .code { font-size: 4.5rem; font-weight: 800; color: var(--grey-2); line-height: 1; }

/* ===== tablet ======================================================================== */
@media (min-width: 640px) {
    .container { padding: 0 24px; }
    .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .pf-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .wa-float { padding: 12px 18px 12px 14px; }
    .wa-float span { display: inline; }
    .wa-float .ic { width: 26px; height: 26px; }
    .cta-band { padding: 48px 40px; }
}

/* ===== desktop ======================================================================= */
@media (min-width: 960px) {
    .section { padding: 80px 0; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .pf-grid { grid-template-columns: repeat(3, 1fr); }
    .pricing { grid-template-columns: repeat(3, 1fr); }
    .hero { padding: 80px 0 88px; }
    .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
    .page-hero { padding: 64px 0 56px; }
    .svc { grid-template-columns: 1.15fr .85fr; gap: 48px; padding: 64px 0; }
    .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 48px; }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
    .site-footer { padding-bottom: 40px; }
    .steps--row { grid-template-columns: repeat(5, 1fr); }
    .steps--row li { padding: 70px 18px 20px; }

    /* desktop navigation */
    .nav__toggle { display: none; }
    .nav__menu { display: flex !important; position: static; align-items: center; gap: 28px; background: none; border: 0; box-shadow: none; padding: 0; }
    .nav__links { display: flex; gap: 22px; }
    .nav__links a { padding: 6px 0; border: 0; color: var(--muted); }
    .nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--green); }
    .nav__cta { width: auto; margin: 0; }
    .brand img { width: 168px; }
}

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

/* heading styled like h3 where the outline needs an h2 */
.h3 { font-size: 1.2rem; }
.price-card__amount .num--quote { font-size: 1.35rem; color: var(--muted); }
