/* Migori County — public site identity.
   Loaded after faztech.css and the staff-brand override, so these tokens win. */

:root {
    color-scheme: light;
    --brown:      #1c3d36;
    --brown-2:    #3d6a5c;
    --brown-deep: #102420;
    --gold:       #b8883d;
    --gold-deep:  #7a5a28;
    --bg-0:       #f4efe4;
    --bg-1:       #ebe4d4;
    --bg-2:       #e2d8c4;
    --tint-1:     rgba(184, 136, 61, .14);
    --tint-2:     rgba(28, 61, 54, .06);
    --ink:        #1c1914;
    --muted:      #5c5348;
    --muted-2:    #8a7d6b;
    --accent:     #8a5a22;
    --surface:    #fffdf8;
    --card:       rgba(28, 25, 20, .03);
    --card-2:     rgba(184, 136, 61, .10);
    --line:       rgba(28, 25, 20, .10);
    --line-2:     rgba(138, 90, 34, .28);
    --panel:      #fffdf8;
    --frame:      #e7dcc8;
    --field-bg:   #f7f2e8;
    --soft:       rgba(184, 136, 61, .08);
    --header-bg:  rgba(244, 239, 228, .86);
    --ring:       rgba(184, 136, 61, .18);
    --hover-shadow: 0 22px 40px -24px rgba(28, 37, 32, .35);
    --big-shadow:  0 40px 80px -28px rgba(16, 36, 32, .35);
    --btn-primary-bg:     #1c3d36;
    --btn-primary-color:  #f6f1e6;
    --btn-primary-shadow: 0 12px 28px -14px rgba(16, 36, 32, .7);
    --radius:    18px;
    --radius-lg: 28px;
    --font:      "Outfit", "Segoe UI", sans-serif;
    --display:   "Fraunces", "Times New Roman", serif;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --brown:      #d7b56a;
    --brown-2:    #e4c48a;
    --brown-deep: #f3ecdf;
    --gold:       #e4c48a;
    --gold-deep:  #b8883d;
    --bg-0:       #101816;
    --bg-1:       #17211e;
    --bg-2:       #1e2b27;
    --tint-1:     rgba(228, 196, 138, .12);
    --tint-2:     rgba(228, 196, 138, .05);
    --ink:        #f4efe4;
    --muted:      #cbbfa8;
    --muted-2:    #9a8d78;
    --accent:     #e4c48a;
    --surface:    #182421;
    --card:       rgba(244, 239, 228, .04);
    --card-2:     rgba(228, 196, 138, .10);
    --line:       rgba(244, 239, 228, .10);
    --line-2:     rgba(228, 196, 138, .32);
    --panel:      #15211d;
    --frame:      #1c2b26;
    --field-bg:   #121c19;
    --soft:       rgba(228, 196, 138, .05);
    --header-bg:  rgba(16, 24, 22, .82);
    --btn-primary-bg:     #e4c48a;
    --btn-primary-color:  #1c1914;
    --btn-primary-shadow: 0 12px 28px -14px rgba(0, 0, 0, .6);
}

::selection { background: #e4c48a; color: #1c1914; }

body {
    font-size: 17px;
    line-height: 1.7;
    background-color: var(--bg-0);
    background-image:
        radial-gradient(900px 480px at 100% -8%, var(--tint-1), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, var(--tint-2), transparent 55%);
    background-attachment: fixed;
}
body::before {
    inset: 0;
    width: auto;
    height: auto;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: .045;
    filter: none;
    mix-blend-mode: multiply;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
html[data-theme="dark"] body::before { opacity: .07; mix-blend-mode: overlay; }
body::after { display: none; }

h1, h2 {
    font-weight: 560;
    letter-spacing: -0.03em;
    line-height: 1.08;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.1rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
h3 { font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; font-size: 1.35rem; }

a { text-underline-offset: .18em; }
.card a, .prose a, .footer-links a, .contact-list a { text-decoration-thickness: 1px; }
.card a:hover, .prose a:hover { color: var(--accent); }

.eyebrow {
    font-family: var(--font);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    color: var(--accent);
}
.section { padding: 96px 0; }
.section__head { text-align: left; margin-left: 0; margin-right: 0; max-width: 40rem; }
.section__head p { font-size: 1.12rem; }

.btn {
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 600;
    letter-spacing: .01em;
    padding: 14px 24px;
}
.btn--primary:hover { filter: none; background: #24564b; color: #f6f1e6; }
html[data-theme="dark"] .btn--primary:hover { background: #f3e2bc; color: #1c1914; filter: none; }
.btn--lg { padding: 16px 28px; }

.site-header {
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(184, 136, 61, .35);
}
.nav { height: 84px; }
.nav__brand img { height: 52px; width: auto; border-radius: 8px; background: #fff; }
a.figure { display: block; cursor: zoom-in; }
.person .figure { max-width: none; width: 100%; aspect-ratio: 3 / 4; margin: 0 auto 14px; }
.news-card { transition: transform .18s ease, box-shadow .18s ease; }
.person .figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.nav__brand span {
    font-family: var(--display);
    font-weight: 560;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
}
.nav__links { gap: 26px; }
.nav__links a, .nav__sub-toggle {
    font-size: .92rem;
    letter-spacing: .04em;
}
.nav__links a.is-active { color: var(--accent); }
.nav__sub {
    border-radius: 16px;
    padding: 8px;
}
.theme-toggle { border-color: var(--line-2); }

.hero-hero { min-height: clamp(620px, 88vh, 900px); }
.hero-hero__scrim {
    background:
        linear-gradient(90deg, rgba(10, 24, 20, .88) 0%, rgba(10, 24, 20, .62) 46%, rgba(10, 24, 20, .18) 100%),
        linear-gradient(180deg, rgba(10, 24, 20, .25), rgba(10, 24, 20, .45));
}
.hero-hero__inner {
    text-align: left;
    max-width: 740px;
    margin-right: auto;
    padding: 88px 0 72px;
}
.hero-hero__inner .eyebrow--onphoto {
    color: #e4c48a;
    letter-spacing: .22em;
}
.hero-hero__inner h1 {
    font-size: clamp(2.8rem, 5.6vw, 4.8rem);
    max-width: 14em;
    text-shadow: none;
}
.hero-hero__inner p {
    margin-left: 0;
    max-width: 36rem;
    font-size: 1.15rem;
    color: rgba(244, 239, 228, .88);
    text-shadow: none;
}
.hero-hero__inner .hero__cta { justify-content: flex-start; }
.btn--onphoto { border-color: rgba(228, 196, 138, .7); }
.btn--onphoto:hover { background: rgba(228, 196, 138, .16); }
.hero-hero__stats { justify-content: flex-start; gap: 0; margin-top: 48px; }
.hero-hero__stats .hero__stat {
    padding: 0 28px;
    border-left: 1px solid rgba(228, 196, 138, .4);
}
.hero-hero__stats .hero__stat:first-child { padding-left: 0; border-left: 0; }
.hero-hero__stats .hero__stat strong {
    font-weight: 560;
    font-size: clamp(1.6rem, 2.4vw, 2.2rem);
    letter-spacing: -0.03em;
}
.hero-hero__dots button.is-active { background: #e4c48a; }

.page-hero {
    text-align: left;
    padding: 88px 0 36px;
    background: linear-gradient(180deg, rgba(184, 136, 61, .14), transparent 78%);
}
.page-hero .container { max-width: 1140px; }
.page-hero h1 { max-width: 16em; margin-bottom: 16px; }
.page-hero p { margin: 0; max-width: 38rem; font-size: 1.18rem; }

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 28px 26px 26px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.card::before {
    width: 42px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin-bottom: 16px;
}
.card:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
}
.card p { line-height: 1.65; }

.linelist li {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
    border-radius: 0;
    padding: 16px 0;
}
.linelist li:hover { border-left-color: transparent; }
.linelist strong { color: var(--accent); font-weight: 560; font-size: 1.05rem; }

.cta-band {
    background:
        radial-gradient(500px 180px at 90% 0%, rgba(228, 196, 138, .22), transparent 60%),
        linear-gradient(145deg, #1c3d36, #102420);
    border: 1px solid rgba(228, 196, 138, .35);
    border-radius: 28px;
    padding: 64px 48px;
    text-align: left;
}
.cta-band h2, .cta-band p { margin-left: 0; margin-right: 0; }
.cta-band p { max-width: 36rem; }
.cta-band .btn--primary { background: #e4c48a; color: #1c1914; }
.cta-band .btn--primary:hover { background: #f3e2bc; color: #1c1914; }

.site-footer {
    background: #102420;
    border-top: 3px solid #b8883d;
    color: #d9cbb6;
}
.site-footer h4 { color: #e4c48a; letter-spacing: .16em; font-family: var(--font); font-size: .72rem; }
.footer-brand__name {
    font-family: var(--display);
    font-weight: 560;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: #f4efe4;
    margin-bottom: 12px;
}
.footer-brand p { color: #cbbfa8; max-width: 320px; }
.footer-links a { color: #e7dcc8; }
.footer-links a:hover { color: #e4c48a; }
.footer-bottom { border-top-color: rgba(228, 196, 138, .25); color: #b7a890; }

.figure { border-radius: 24px; border-color: var(--line-2); }
.shots { gap: 14px; }
a.shot { display: block; color: inherit; cursor: zoom-in; }
.shot { border-radius: 18px; aspect-ratio: 4 / 3; }
.shot .cap { font-family: var(--font); font-weight: 500; letter-spacing: .02em; font-size: .82rem; }
.pf-lightbox .lb-cap {
    position: absolute; left: 0; right: 0; bottom: 22px; margin: 0;
    text-align: center; color: #f4efe4; font-family: var(--font); font-size: .95rem;
}
.news-card { display: block; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-card div { padding: 14px 16px 18px; }
.news-card strong { display: block; font-family: var(--display); font-weight: 560; letter-spacing: -0.02em; margin-bottom: 6px; }
.news-card span { color: var(--muted); font-size: .85rem; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--hover-shadow); }

@media (max-width: 680px) {
    .nav { height: 72px; }
    .hero-hero__inner { padding: 72px 0 56px; }
    .hero-hero__inner h1 { max-width: none; }
    .hero-hero__stats { gap: 18px; }
    .hero-hero__stats .hero__stat { padding: 0; border: 0; }
    .page-hero { padding: 56px 0 20px; }
    .page-hero h1 { max-width: none; }
    .cta-band { padding: 36px 22px; }
    .nav__links.is-open { top: 72px; background: var(--panel); }
}
