/* Shared styling for the parent-brand content pages: contact, privacy, terms, 404.
   Tokens mirror the inline :root block in index.php so these read as Umusirimu
   rather than as either sub-brand. */

:root {
    --cream: #f7f3ea;
    --cream-deep: #efe7d6;
    --paper: #fffdf8;
    --ink: #16110d;
    --ink-soft: #5b5047;
    --line: rgba(22, 17, 13, 0.12);

    --haha: #4f8f33;
    --haha-deep: #2f5c1e;
    --gold: #c2913f;
    --gold-light: #e2bd72;

    --sans: 'Fira Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --shell: 1280px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.shell {
    width: 100%;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 24px;
}

a { color: inherit; }

/* ---------- Masthead ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(247, 243, 234, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
}

.wordmark img { display: block; height: 44px; width: auto; }

.masthead__nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    font-weight: 500;
}

.masthead__nav a { text-decoration: none; }
.masthead__nav a:not(.btn-call):hover { color: var(--haha-deep); }

.nav-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    font-size: 18px;
}
.nav-whatsapp:hover { background: #25d366; color: #fff; border-color: #25d366; }

.btn-call {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    font-size: 14.5px;
}
.btn-call:hover { background: var(--haha-deep); }

/* ---------- Page head band ---------- */

.page-head {
    padding: 72px 0 52px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--cream-deep), var(--cream));
}

.page-head__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 18px;
}
.page-head__eyebrow::after {
    content: '';
    width: 46px;
    height: 2px;
    background: var(--gold);
}

.page-head h1 {
    margin: 0;
    font-size: clamp(34px, 5.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-weight: 800;
    max-width: 16ch;
}

.page-head__lede {
    margin: 18px 0 0;
    max-width: 62ch;
    font-size: 18.5px;
    color: var(--ink-soft);
}

.page-head__meta {
    margin-top: 22px;
    font-size: 14px;
    color: var(--ink-soft);
}

/* ---------- Prose ---------- */

.prose-wrap { padding: 56px 0 80px; }

.prose {
    max-width: 74ch;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 46px clamp(22px, 4vw, 54px) 50px;
}

.prose h2 {
    margin: 46px 0 14px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.01em;
    scroll-margin-top: 96px;
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
    margin: 30px 0 10px;
    font-size: 17.5px;
    font-weight: 700;
}

.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }

.prose ul { margin: 0 0 18px; padding-left: 22px; color: var(--ink-soft); }
.prose li { margin-bottom: 9px; }

.prose a { color: var(--haha-deep); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-deep, #8a6424); }

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0 22px;
    font-size: 15.5px;
}
.prose th, .prose td {
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.prose th {
    font-weight: 700;
    background: var(--cream);
    color: var(--ink);
}
.prose td { color: var(--ink-soft); }

.table-scroll { overflow-x: auto; }

.callout {
    margin: 0 0 22px;
    padding: 18px 20px;
    border-left: 3px solid var(--gold);
    background: var(--cream);
    border-radius: 0 12px 12px 0;
}
.callout p:last-child { margin-bottom: 0; }

.toc {
    margin: 0 0 34px;
    padding: 20px 22px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.toc h2 {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin-bottom: 6px; }

/* ---------- Contact cards ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
    gap: 18px;
    max-width: 960px;
    margin-bottom: 34px;
}

.contact-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 28px 26px 30px;
    text-decoration: none;
    display: block;
    transition: transform .16s ease, border-color .16s ease;
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--gold); }

.contact-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--cream-deep);
    font-size: 20px;
    margin-bottom: 16px;
}
.contact-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.contact-card__value { display: block; margin-top: 9px; font-weight: 600; color: var(--ink); }

/* ---------- 404 ---------- */

.notfound {
    min-height: 62vh;
    display: flex;
    align-items: center;
    padding: 70px 0 84px;
}
.notfound .notfound__code {
    font-size: clamp(76px, 15vw, 150px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.045em;
    margin: 0 0 14px;
    color: var(--ink);
}
.notfound__code span { color: var(--gold); }
.notfound h1 { margin: 0 0 14px; font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -0.02em; }
.notfound p { margin: 0 0 30px; max-width: 54ch; color: var(--ink-soft); font-size: 18px; }

.route-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    max-width: 800px;
}
.route-card {
    display: block;
    padding: 24px 24px 26px;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: var(--paper);
    transition: transform .16s ease;
}
.route-card:hover { transform: translateY(-3px); }
.route-card h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.route-card p { margin: 0; font-size: 15px; }
.route-card--haha { background: var(--haha-deep); border-color: var(--haha-deep); color: var(--cream); }
.route-card--haha p { color: rgba(247,243,234,.8); }
.route-card--umusare { background: #171210; border-color: #171210; color: var(--cream); }
.route-card--umusare p { color: rgba(247,243,234,.72); }

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

.footer {
    background: var(--ink);
    color: rgba(247, 243, 234, 0.76);
    padding: 64px 0 30px;
}
.footer a { color: rgba(247, 243, 234, 0.76); text-decoration: none; }
.footer a:hover { color: var(--gold-light); }

.footer__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 42px;
}
.footer__about .wordmark img {
    height: 52px;
    filter: invert(1) brightness(1.7);
    margin-bottom: 16px;
}
.footer__about p { margin: 0; font-size: 15px; max-width: 42ch; }

.footer__col h4 {
    margin: 0 0 14px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream);
    font-weight: 700;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.footer__col li { margin-bottom: 9px; }

.footer__base {
    border-top: 1px solid rgba(247, 243, 234, 0.14);
    padding-top: 22px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}

@media (max-width: 900px) {
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 620px) {
    body { font-size: 16px; }
    .masthead__nav { gap: 14px; }
    .nav-link-text { display: none; }
    .btn-call { padding: 10px 14px; }
    .page-head { padding: 52px 0 40px; }
    .prose { border-radius: 14px; padding: 30px 20px 34px; }
    .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Visit us (contact page) ---------- */

.visit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
    max-width: 960px;
    margin-bottom: 34px;
    padding: 34px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
}
.visit--single { grid-template-columns: minmax(0, 1fr); }

.visit h2 {
    margin: 0 0 14px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.visit address {
    margin: 0 0 18px;
    font-style: normal;
    font-weight: 600;
    line-height: 1.55;
    color: var(--ink);
}
.visit address span { display: block; }

.visit__hours { margin: 0 0 18px; }
.visit__hours dt {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}
.visit__hours dd { margin: 0; font-weight: 600; color: var(--ink); }

.visit__note { margin: 0 0 22px; font-size: 15px; color: var(--ink-soft); }

.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.visit__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease;
}
.visit__btn:hover { transform: translateY(-2px); border-color: var(--gold); }
.visit__btn--primary { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.visit__review {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 15px;
    color: var(--ink-soft);
}
.visit__review a { color: var(--haha-deep); text-decoration: underline; text-underline-offset: 3px; }

.visit__map {
    min-height: 260px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--cream-deep);
}
.visit__map iframe { display: block; width: 100%; height: 100%; border: 0; }

@media (max-width: 820px) {
    .visit { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; }
}
