/* Cowva booking — homepage stylesheet (Warm Care direction).
   Scoped to home.html only; other booking pages keep booking.css.
   Light mode is deliberate and locked (see meta color-scheme). */

/* DM Sans (variable, 400–800), self-hosted: no render-blocking request to
   Google Fonts. latin-ext carries the naira sign (U+20A6). */
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/dm-sans-latin.6c1e961057d2.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "DM Sans";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("fonts/dm-sans-latin-ext.b9209b52c467.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    /* Brand teal, unified with cowva.com (#00B5AD family). Darkened steps
       are used wherever text needs WCAG AA contrast. */
    --teal-500: #00B5AD;   /* decorative only — never body text on light */
    --action: #007A73;     /* buttons: white text = 5.2:1 */
    --action-press: #00635D;
    --link: #006B65;       /* text links on tinted grounds = 5.5:1 */
    --ink-900: #123C40;
    --ink-600: #435E63;
    --tint: #F2FAF8;       /* page ground */
    --hero-a: #E2F5F0;     /* hero wash */
    --hero-b: #D4EEE8;
    --card: #ffffff;
    --line: #DCEBE9;
    --foot: #0F3A3E;
    --danger: #B4231F;

    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 3px rgba(18, 60, 64, .06), 0 10px 26px rgba(18, 60, 64, .08);
    --shadow-float: 0 2px 5px rgba(18, 60, 64, .07), 0 18px 40px rgba(18, 60, 64, .13);
    --font-sans: "DM Sans", -apple-system, "Segoe UI", Roboto, Helvetica, 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-sans);
    font-size: 1rem;
    line-height: 1.6;
    background: var(--tint);
    color: var(--ink-900);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); }

.shell { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px;
    padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 50;
    background: var(--ink-900); color: #fff; padding: 10px 16px;
    border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
    outline: 3px solid var(--link);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Header ------------------------------------------------------------- */

.site-head { background: var(--hero-a); }
.head-row {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 14px; padding-bottom: 14px;
}
.brand {
    display: inline-flex; align-items: center; gap: 8px;
    font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em;
    color: var(--ink-900); text-decoration: none;
}
.brand-leaf { width: 22px; height: 22px; fill: var(--teal-500); flex: 0 0 auto; }
.brand-logo { display: block; height: 34px; width: auto; }
.head-login {
    font-size: .875rem; font-weight: 700; text-decoration: none;
    color: var(--link); background: var(--card);
    border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 18px; min-height: 44px; display: inline-flex; align-items: center;
}
.head-login:active { transform: scale(.97); }

/* --- Hero + finder ------------------------------------------------------ */

.hero {
    background: linear-gradient(180deg, var(--hero-a), var(--hero-b));
    padding-top: 36px;
    text-align: left;
}
.hero h1 { font-size: clamp(1.75rem, 5.5vw, 2.75rem); max-width: 22ch; }
.hero-sub {
    color: var(--ink-600); font-size: 1.03rem; margin-top: 14px; max-width: 56ch;
}

.finder {
    display: flex; flex-direction: column; gap: 10px;
    background: var(--card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    padding: 16px; margin-top: 26px;
    position: relative; z-index: 1;
    margin-bottom: -58px;   /* card bridges hero into the results section */
}
.finder-field { position: relative; display: flex; flex: 1; }
.finder-ic {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    width: 18px; height: 18px; fill: var(--action); pointer-events: none;
}
.finder select,
.finder input[type="search"] {
    width: 100%; min-height: 52px;
    border: 1.5px solid var(--line); border-radius: var(--radius-md);
    background: #FBFEFD; color: var(--ink-900);
    font: inherit; font-size: 1rem;
    padding: 12px 14px 12px 44px;
    appearance: none; -webkit-appearance: none;
}
.finder select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23435E63' d='m5 8 5 5 5-5H5Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
    padding-right: 40px;
}
.finder input[type="search"]::placeholder { color: #7A9296; }
.finder select:focus, .finder input[type="search"]:focus {
    border-color: var(--action); outline: none;
    box-shadow: 0 0 0 3px rgba(0, 122, 115, .18);
}
.finder-go {
    min-height: 52px; border: 0; border-radius: var(--radius-md);
    background: var(--action); color: #fff;
    font: inherit; font-size: 1.05rem; font-weight: 700;
    padding: 12px 28px; cursor: pointer;
}
.finder-go:hover { background: var(--action-press); }
.finder-go:active { transform: scale(.98); }
.finder-go[disabled] { opacity: .7; cursor: default; }

@media (min-width: 760px) {
    .hero { padding-top: 48px; }
    .finder { flex-direction: row; padding: 14px; }
    .finder-field:first-child { flex: 0 0 220px; }
}

/* --- Results ------------------------------------------------------------ */

.results { padding-top: 84px; padding-bottom: 8px; }

.steps-strip {
    display: flex; flex-wrap: wrap; gap: 8px;
    list-style: none; margin: 0 0 22px; padding: 0;
    font-size: .8rem; color: var(--ink-600);
}
.steps-strip li {
    background: var(--card); border: 1px solid var(--line);
    border-radius: 999px; padding: 7px 14px; font-weight: 600;
    display: inline-flex; gap: 7px; align-items: center;
}
.steps-strip b { color: var(--action); font-weight: 800; }

.result-count { font-size: .95rem; color: var(--ink-600); margin-bottom: 14px; }
.result-count strong { color: var(--ink-900); font-size: 1.05rem; }

.cards {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 14px;
}
@media (min-width: 660px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }

.fcard {
    display: flex; gap: 14px; align-items: flex-start;
    background: var(--card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 18px; min-height: 44px;
    text-decoration: none; color: inherit;
    height: 100%;
}
.fcard:hover { box-shadow: var(--shadow-float); }
.fcard:active { transform: scale(.985); }
.fcard-mono, .fcard-logo {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--radius-md);
}
.fcard-mono {
    background: linear-gradient(135deg, #00C9A7, #0092A8);
    color: #fff; font-weight: 800; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
}
.fcard-logo { object-fit: cover; background: var(--tint); }
.fcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fcard-name {
    font-weight: 800; font-size: 1rem; line-height: 1.3; color: var(--ink-900);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fcard-tag {
    color: var(--ink-600); font-size: .85rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; font-size: .78rem; font-weight: 700; }
.fcard-state { background: var(--tint); color: var(--ink-600); border-radius: 6px; padding: 3px 9px; }
.fcard-deposit { background: #E3F5F1; color: var(--link); border-radius: 6px; padding: 3px 9px; }
.fcard-arrow { color: var(--action); font-weight: 800; align-self: center; }

/* Skeletons (injected by home.js while fetching) — same box as .fcard so
   results arriving cause zero layout shift. */
.skel { pointer-events: none; }
.skel .fcard-mono { background: var(--line); }
.skel-line { display: block; height: 12px; border-radius: 6px; background: var(--line); }
.skel-line--wide { width: 85%; height: 15px; }
.skel-line--mid { width: 55%; margin-top: 8px; }
.skel-line--chip { width: 40%; margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
    .skel-line, .skel .fcard-mono { animation: skel-pulse 1.1s ease-in-out infinite alternate; }
    @keyframes skel-pulse { from { opacity: 1; } to { opacity: .45; } }
}

.finder-error[hidden] { display: none; }
.finder-error {
    background: #FDF3F2; border: 1px solid #F2D2D0; border-radius: var(--radius-md);
    padding: 16px 18px; margin-bottom: 14px;
    color: var(--ink-900); font-size: .95rem;
    display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.btn-retry {
    border: 1px solid var(--line); background: var(--card); color: var(--link);
    font: inherit; font-weight: 700; border-radius: 999px;
    padding: 10px 20px; min-height: 44px; cursor: pointer;
}

.zero-state { padding: 6px 0 12px; }
.zero-lead { color: var(--ink-600); max-width: 60ch; }
.zero-sub { font-weight: 800; margin: 18px 0 10px; font-size: .95rem; }
.cards--suggest { margin-bottom: 6px; }
.btn-ghost {
    display: inline-flex; align-items: center; min-height: 44px;
    margin-top: 16px; padding: 10px 22px;
    border: 1.5px solid var(--action); border-radius: 999px;
    color: var(--link); font-weight: 700; text-decoration: none; background: var(--card);
}
.btn-ghost:active { transform: scale(.97); }

/* --- Trust -------------------------------------------------------------- */

.trust { background: var(--card); margin-top: 40px; padding: 44px 0 48px; }
.trust h2, .how h2, .faq h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); margin-bottom: 22px; }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 660px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1020px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.tcard {
    display: flex; gap: 13px; align-items: flex-start;
    background: var(--tint); border: 1px solid var(--line);
    border-radius: var(--radius-lg); padding: 16px;
}
.tic {
    flex: 0 0 34px; height: 34px; border-radius: var(--radius-sm);
    background: #E3F5F1; color: var(--link);
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem;
}
.tic svg { width: 18px; height: 18px; fill: currentColor; }
.tcard h3 { font-size: .95rem; margin-bottom: 3px; }
.tcard p { color: var(--ink-600); font-size: .85rem; line-height: 1.5; }

/* --- How it works ------------------------------------------------------- */

.how { padding: 44px 0 8px; }
.how-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: 1fr; gap: 12px;
    counter-reset: step;
}
@media (min-width: 760px) { .how-list { grid-template-columns: repeat(3, 1fr); } }
.how-list li {
    counter-increment: step;
    background: var(--card); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card); padding: 20px 18px 18px;
    position: relative;
}
.how-list li::before {
    content: counter(step);
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: var(--radius-sm);
    background: var(--action); color: #fff; font-weight: 800; font-size: .95rem;
    margin-bottom: 12px;
}
.how-list h3 { font-size: 1rem; margin-bottom: 4px; }
.how-list p { color: var(--ink-600); font-size: .88rem; }

/* --- FAQ ---------------------------------------------------------------- */

.faq { padding: 40px 0 52px; }
.faq-item {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--radius-md); margin-bottom: 8px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer; list-style: none;
    padding: 15px 18px; min-height: 44px;
    font-weight: 700; font-size: .95rem; color: var(--ink-900);
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; color: var(--action); font-weight: 800; font-size: 1.2rem; line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { padding: 0 18px 16px; color: var(--ink-600); font-size: .92rem; max-width: 70ch; }
.faq-more { margin-top: 18px; color: var(--ink-600); font-size: .92rem; }

/* --- Footer ------------------------------------------------------------- */

.site-foot { background: var(--foot); color: #B9D6D3; padding: 36px 0 30px; }
.brand--foot { color: #fff; font-size: 1.15rem; }
.brand--foot .brand-leaf { fill: #2BD4C4; }
.foot-links { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 22px; }
@media (min-width: 760px) { .foot-links { flex-direction: row; flex-wrap: wrap; gap: 12px 26px; } }
.foot-links a {
    color: #E4F2F0; font-weight: 600; font-size: .92rem; text-decoration: none;
    min-height: 44px; display: inline-flex; align-items: center;
}
.foot-links a:hover { text-decoration: underline; }
.foot-fine { font-size: .8rem; color: #7FA6A3; }
.site-foot :focus-visible { outline-color: #2BD4C4; }

/* --- Motion ------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
    .fcard, .finder-go, .head-login, .btn-ghost { transition: box-shadow 180ms ease-out, transform 120ms ease-out, background 160ms ease-out; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
