/* ============================================================
   main.css — Inuka Africa  |  Brand: #317D46 green / #E3332C red
   Font: Roboto (brand font per Inuka Africa guidelines)
   Breakpoints: xs<480 | sm<768 | md<1024 | lg<1280 | xl 1280+
   ============================================================ */

/* ── 1. CSS Custom Properties ──────────────────────────────────────────────── */
:root {
    /* Brand */
    --green:        #317D46;
    --green-dark:   #235834;
    --green-deeper: #1a4228;
    --green-light:  #e8f5ec;
    --green-mid:    #4a9e5f;
    --red:          #E3332C;
    --red-dark:     #b91c1c;
    --red-light:    #fdecea;

    /* Neutrals */
    --white:   #ffffff;
    --off-white: #fafaf8;
    --gray-50:  #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --text:     #374151;

    /* Typography */
    --font-display: 'Roboto', sans-serif; /* Bold 700 for headlines */
    --font-body:    'Roboto', sans-serif;           /* Regular 400 for body */

    /* Spacing */
    --section-py: clamp(1.75rem, 5vw, 3rem);
    --container:  1240px;

    /* UI */
    --radius-sm:  4px;
    --radius:     8px;
    --radius-lg:  16px;
    --radius-xl:  24px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
    --shadow:     0 4px 16px rgba(0,0,0,.09);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.13);
    --transition: .25s cubic-bezier(.4,0,.2,1);

    /* Nav */
    --nav-h: 72px;
    --topbar-h: 38px;
}

/* ── 2. Reset & Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

/* ── 3. Utility ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}
.section { padding-block: var(--section-py); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.skip-link {
    position: absolute; top: -100px; left: 1rem; z-index: 9999;
    background: var(--green); color: var(--white);
    padding: .5rem 1rem; border-radius: var(--radius); font-weight: 700;
    transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ── 4. Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 500; }
h4 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; }

.section-label {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: .75rem;
}
.section-label::before {
    content: '';
    display: inline-block;
    width: 20px; height: 2px;
    background: var(--green);
    vertical-align: middle;
    margin-right: .5rem;
}

.lead { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--gray-700); line-height: 1.75; }

/* ── 5. Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .72rem 1.6rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none !important;
    min-height: 48px; /* touch target */
}
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.btn-green  { background: var(--green);  color: var(--white); border-color: var(--green); }
.btn-green:hover  { background: var(--green-dark); border-color: var(--green-dark); }

.btn-red    { background: var(--red);    color: var(--white); border-color: var(--red); }
.btn-red:hover    { background: var(--red-dark); border-color: var(--red-dark); }

.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline-green:hover { background: var(--green-light); }

.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }

.btn-ghost { background: transparent; color: var(--green); border-color: transparent; padding-inline: .5rem; }
.btn-ghost:hover { color: var(--green-dark); }

.btn-lg { padding: .9rem 2rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1rem; font-size: .85rem; min-height: 36px; }

/* ── 6. Top Bar ──────────────────────────────────────────────────────────────── */
.topbar {
    background: var(--green-deeper);
    color: rgba(255,255,255,.85);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.topbar-contacts { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.topbar-link {
    display: flex; align-items: center; gap: .35rem;
    color: rgba(255,255,255,.85); font-size: .8rem;
    transition: color var(--transition);
}
.topbar-link:hover { color: var(--white); text-decoration: none; }
.topbar-social { display: flex; gap: .65rem; }
.social-icon {
    display: inline-flex; align-items: center;
    padding: .3rem;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: background var(--transition), color var(--transition), padding var(--transition);
}
.social-icon .icon-label {
    max-width: 0; overflow: hidden; white-space: nowrap;
    font-size: .72rem; font-weight: 500; opacity: 0; margin-left: 0;
    transition: max-width .25s ease, opacity .2s ease, margin-left .2s ease;
}
.social-icon:hover { background: rgba(255,255,255,.2); color: var(--white); text-decoration: none; padding: .3rem .55rem .3rem .35rem; }
.social-icon:hover .icon-label { max-width: 80px; opacity: 1; margin-left: .35rem; }
.social-icon-fb:hover { background: #1877F2; color: var(--white); }
.social-icon-ig:hover { background: #E1306C; color: var(--white); }
.social-icon-li:hover { background: #0A66C2; color: var(--white); }
.social-icon-tw:hover { background: #000;    color: var(--white); }

@media (max-width: 479px) {
    .topbar-contacts { gap: .75rem; }
    .topbar-link { font-size: .72rem; }
    .topbar-social { display: none; }
}

/* ── 7. Site Header / Nav ────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    height: var(--nav-h);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    gap: 1rem;
}
.nav-logo { flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-link {
    display: block;
    padding: .5rem .75rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute; bottom: 0; left: .75rem; right: .75rem;
    height: 2px; background: var(--green);
    transform: scaleX(0); transition: transform var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--green); text-decoration: none; }
.nav-link.active::after, .nav-link:hover::after { transform: scaleX(1); }

.nav-cta { margin-left: 1rem; }

/* Hamburger */
.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    border: none; background: none;
    padding: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav-toggle:hover { background: var(--gray-100); }
.hamburger,
.hamburger::before,
.hamburger::after {
    content: '';
    display: block;
    width: 22px; height: 2px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.hamburger { position: relative; }
.hamburger::before { position: absolute; top: -7px; }
.hamburger::after  { position: absolute; top:  7px; }
.nav-open .hamburger         { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg) translate(5px, 5px); }
.nav-open .hamburger::after  { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 1023px) {
    .nav-toggle { display: flex; }
    .nav-cta.nav-cta { display: none; }

    .main-nav {
        position: fixed;
        top: calc(var(--topbar-h) + var(--nav-h));
        left: 0; right: 0;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        padding: 1.25rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform .3s ease, opacity .3s ease;
        pointer-events: none;
    }
    .main-nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: .25rem;
    }
    .nav-link { padding: .85rem 1rem; font-size: 1rem; }
    .nav-link::after { display: none; }
    .nav-link.active { background: var(--green-light); color: var(--green); }
}

/* ── 8. Page Hero / Banner ───────────────────────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 55%, var(--green-deeper) 100%);
    color: var(--white);
    padding: clamp(1.75rem, 5vw, 3rem) 0;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.85); margin-top: .6rem; font-size: 1.05rem; }

/* ── 9. Hero Slider (Home) ───────────────────────────────────────────────────── */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: clamp(420px, 70vh, 680px);
    background: var(--green-deeper);
}
.hero-slide {
    position: absolute; inset: 0;
    display: flex; align-items: center;
    opacity: 0; transition: opacity .8s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(26,66,40,.85) 0%, rgba(26,66,40,.4) 60%, transparent 100%);
}
.hero-content {
    position: relative; z-index: 1;
    color: var(--white);
    max-width: 620px;
    padding: 2rem 0;
    animation: heroFadeUp .7s ease both;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-kicker {
    font-size: .78rem; font-weight: 700;
    letter-spacing: .15em; text-transform: uppercase;
    color: rgba(255,255,255,.75);
    margin-bottom: .75rem;
    display: flex; align-items: center; gap: .5rem;
}
.hero-kicker::before {
    content: ''; width: 28px; height: 2px;
    background: var(--green-mid);
}
.hero-content h1 { color: var(--white); }
.hero-content p  { margin-top: 1rem; font-size: 1.1rem; color: rgba(255,255,255,.85); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Slider controls */
.slider-dots {
    position: absolute; bottom: 1.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: .6rem; z-index: 10;
}
.slider-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,.4); border: none; cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.slider-dot.active { background: var(--white); transform: scale(1.3); }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 10; width: 44px; height: 44px;
    border-radius: 50%; background: rgba(255,255,255,.2);
    border: 1px solid rgba(255,255,255,.3); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background var(--transition);
    backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(255,255,255,.35); }
.slider-arrow.prev { left: 1.25rem; }
.slider-arrow.next { right: 1.25rem; }

@media (max-width: 767px) {
    .hero-slider { min-height: 480px; }
    .slider-arrow { display: none; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── 10. Product Cards ───────────────────────────────────────────────────────── */
/* ── Product Carousel ────────────────────────────────────────────────────────── */
.pcarousel-wrap {
    position: relative;
    /* Contained within the page container — no edge bleed */
}

/* Scrollable track — single row, no wrap */
.pcarousel-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;          /* Firefox */
    padding-block: .5rem 1rem;      /* room for card shadow */
    padding-inline: .25rem;
    cursor: grab;
}
.pcarousel-track:active { cursor: grabbing; }
.pcarousel-track::-webkit-scrollbar { display: none; }

/* Individual card in carousel — fixed width, never shrinks */
.pcarousel-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex;
    flex-direction: column;
}
.pcarousel-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

/* Shared card internals (also used on products.php category cards) */
.product-card-img {
    height: 180px;
    object-fit: cover;
    width: 100%;
    display: block;
}
.product-card-body {
    padding: 1.25rem 1.25rem .75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.product-card-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius);
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: .85rem;
}
.product-card-icon svg { color: var(--green); }
.product-card h3   { font-size: 1rem; margin-bottom: .4rem; }
.product-card p    { color: var(--gray-500); font-size: .88rem; flex: 1; line-height: 1.5; }
.product-card-footer { padding: 0 1.25rem 1.25rem; }

/* Prev / Next arrow buttons */
.pcarousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-60%); /* slightly above centre — above the dots */
    z-index: 10;
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--green);
    transition: background var(--transition), box-shadow var(--transition), opacity var(--transition);
    opacity: 0;  /* hidden by default — shown when hovering wrap or when edge reached */
}
.pcarousel-wrap:hover .pcarousel-btn { opacity: 1; }
.pcarousel-btn:hover { background: var(--green); color: var(--white); box-shadow: var(--shadow-lg); }
.pcarousel-btn:disabled { opacity: .25 !important; pointer-events: none; }
.pcarousel-prev { left: .1rem; }
.pcarousel-next { right: .1rem; }

/* Dot indicators */
.pcarousel-dots {
    display: flex;
    justify-content: center;
    gap: .4rem;
    margin-top: .25rem;
    padding-bottom: .25rem;
}
.pcarousel-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--gray-300);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}
.pcarousel-dot.active {
    background: var(--green);
    transform: scale(1.25);
}

/* On very wide screens show more cards — keep carousel feel */
@media (min-width: 1100px) {
    .pcarousel-card { flex: 0 0 300px; }
}
/* On small phones slightly narrower cards */
@media (max-width: 480px) {
    .pcarousel-card { flex: 0 0 240px; }
    .pcarousel-btn  { display: none; } /* touch devices use swipe */
}

/* ── product-card class kept for products.php category cards (different layout) */
.product-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}

/* ── 11. Stats Counter ────────────────────────────────────────────────────────── */
.stats-section {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding-block: clamp(2rem, 3.5vw, 2.5rem);
    position: relative;
    overflow: hidden;
}
.stats-section::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}
.stats-grid {
    position: relative; z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    text-align: center;
}
.stat-item { min-width: 120px; }

.stat-item {}
.stat-number {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: clamp(2.8rem, 6vw, 4rem);
    color: var(--white);
    line-height: 1;
    display: block;
}
.stat-suffix { font-size: .55em; vertical-align: super; font-weight: 900; }
.stat-label  { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .4rem; font-weight: 500; }

/* ── 12. Testimonials ─────────────────────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    position: absolute; top: 1.25rem; right: 1.5rem;
    font-family: var(--font-display);
    font-size: 4rem; line-height: 1;
    color: var(--green-light);
}
.testimonial-card p { color: var(--gray-700); font-style: italic; line-height: 1.75; }
.testimonial-author {
    display: flex; align-items: center; gap: .85rem;
    margin-top: 1.25rem; padding-top: 1.25rem;
    border-top: 1px solid var(--gray-200);
}
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
    border: 2px solid var(--green-light);
}
.testimonial-name { font-weight: 500; font-size: .95rem; }
.testimonial-location { font-size: .82rem; color: var(--gray-500); }

/* ── Partners ─────────────────────────────────────────────────────────────────── */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}
.partner-logo-item {
    display: flex; align-items: center; justify-content: center;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: box-shadow var(--transition), transform var(--transition);
    min-width: 140px; max-width: 200px;
}
.partner-logo-item:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-logo-item img { max-height: 56px; max-width: 160px; width: auto; object-fit: contain; }
.partner-name-fallback { font-size: .9rem; font-weight: 600; color: var(--gray-700); text-align: center; }

/* ── 13. Team Cards ───────────────────────────────────────────────────────────── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.team-card {
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card-img-wrap { position: relative; overflow: hidden; height: 240px; }
.team-card-img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .4s ease;
}
.team-card:hover .team-card-img { transform: scale(1.04); }
.team-card-body { padding: 1.25rem; }
.team-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; }
.team-card .role { font-size: .85rem; color: var(--green); margin-top: .2rem; font-weight: 500; }

/* ── 14. FAQ Accordion ────────────────────────────────────────────────────────── */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child { border-top: 1px solid var(--gray-200); }
.faq-question {
    width: 100%; background: none; border: none; text-align: left;
    padding: 1.1rem 0;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    font-family: var(--font-body); font-size: 1rem; font-weight: 700;
    color: var(--text); cursor: pointer;
    transition: color var(--transition);
}
.faq-question:hover { color: var(--green); }
.faq-question[aria-expanded="true"] { color: var(--green); }
.faq-icon {
    flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition), background var(--transition);
    color: var(--green);
}
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
    background: var(--green);
    color: var(--white);
}
.faq-answer {
    overflow: hidden; max-height: 0;
    transition: max-height .35s ease, padding .25s ease;
}
.faq-answer-inner { padding-bottom: 1.1rem; color: var(--gray-700); line-height: 1.75; }
.faq-answer.open { max-height: 600px; }

/* FAQ categories */
.faq-categories {
    display: flex; flex-wrap: wrap; gap: .5rem;
    justify-content: center; margin-bottom: 2.5rem;
}
.faq-cat-btn {
    padding: .45rem 1.1rem; border-radius: 999px;
    border: 1.5px solid var(--gray-200);
    background: var(--white); color: var(--gray-700);
    font-size: .88rem; font-weight: 500; cursor: pointer;
    transition: all var(--transition);
}
.faq-cat-btn:hover, .faq-cat-btn.active {
    background: var(--green); border-color: var(--green); color: var(--white);
}

/* ── 15. Contact Form ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label {
    display: block; margin-bottom: .4rem;
    font-size: .88rem; font-weight: 500; color: var(--gray-700);
}
.form-control {
    width: 100%; padding: .72rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius);
    font-family: var(--font-body); font-size: .95rem;
    color: var(--text); background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(49,125,70,.15);
}
.form-control::placeholder { color: var(--gray-300); }
.form-control.error { border-color: var(--red); }
.form-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: .8rem; color: var(--gray-500); margin-top: .3rem; }
.form-error { font-size: .8rem; color: var(--red); margin-top: .3rem; }

/* ── 16. Locations ────────────────────────────────────────────────────────────── */
.locations-layout {
    display: grid; gap: 1.5rem;
    grid-template-columns: 1fr;
}
@media (min-width: 900px) {
    .locations-layout {
        grid-template-columns: 360px 1fr;
        align-items: start;
    }
}
#map {
    width: 100%; height: 380px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}
@media (min-width: 900px) { #map { height: 580px; position: sticky; top: calc(var(--topbar-h) + var(--nav-h) + 1.5rem); } }

.branch-card {
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.branch-card:hover, .branch-card.active {
    border-color: var(--green);
    box-shadow: 0 4px 20px rgba(49,125,70,.15);
}
.branch-county { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green); background: var(--green-light); padding: .2rem .65rem; border-radius: 999px; margin-bottom: .6rem; }
.branch-card h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.branch-meta { margin-top: .65rem; display: flex; flex-direction: column; gap: .35rem; }
.branch-meta-item { display: flex; align-items: flex-start; gap: .45rem; font-size: .87rem; color: var(--gray-500); }
.branch-meta-item svg { flex-shrink: 0; margin-top: 2px; color: var(--green); }
.branch-meta-item a { color: var(--gray-700); }
.branch-meta-item a:hover { color: var(--green); }
.branch-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }

/* ── 17. Loan Application Form ────────────────────────────────────────────────── */
.loan-steps {
    display: flex; gap: 0; margin-bottom: 3rem;
    counter-reset: step;
}
.loan-step {
    flex: 1; text-align: center; position: relative;
    counter-increment: step;
}
.loan-step::before {
    content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--gray-200); color: var(--gray-500);
    font-weight: 700; font-size: .9rem;
    margin: 0 auto .5rem;
    position: relative; z-index: 1;
    transition: background var(--transition), color var(--transition);
}
.loan-step.active::before  { background: var(--green); color: var(--white); }
.loan-step.done::before    { background: var(--green-dark); color: var(--white); content: '✓'; }
.loan-step-label { font-size: .78rem; color: var(--gray-500); font-weight: 500; }
.loan-step.active .loan-step-label { color: var(--green); font-weight: 500; }
.loan-step::after {
    content: '';
    position: absolute; top: 18px; left: calc(50% + 20px);
    width: calc(100% - 40px); height: 2px;
    background: var(--gray-200);
}
.loan-step:last-child::after { display: none; }
.loan-step.done::after { background: var(--green); }

/* ── 18. Cards / White Boxes ──────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.card-green {
    background: var(--green-light);
    border-color: rgba(49,125,70,.2);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute; top: -40px; right: -40px;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255,255,255,.06);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p  { color: rgba(255,255,255,.85); margin-top: .6rem; }
.cta-banner .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

/* ── 19. Section Dividers & Accents ───────────────────────────────────────────── */
.green-accent {
    display: inline-block; width: 48px; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--green-mid));
    border-radius: 2px; margin-bottom: 1rem;
}

/* ── 20. Mission/Vision Cards ─────────────────────────────────────────────────── */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}
.mvv-card {
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    border: 1px solid var(--gray-200);
}
.mvv-card.mission { background: var(--green); color: var(--white); border-color: var(--green); }
.mvv-card.vision  { background: var(--white); }
.mvv-card.values  { background: var(--off-white); }
.mvv-icon { width: 44px; height: 44px; margin-bottom: 1rem; }
.mvv-card h3 { margin-bottom: .6rem; }
.mvv-card.mission h3 { color: var(--white); }
.mvv-card.mission p  { color: rgba(255,255,255,.85); }

/* ── 21. Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    background: var(--gray-900);
    color: #d1d5db;
    margin-top: 2.5rem;
}
.footer-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 640px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-top { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }

.footer-brand {}
.footer-brand img { height: 38px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-family: var(--font-display); font-style: italic; color: var(--green-mid); font-size: 1rem; margin-bottom: .75rem; }
.footer-desc { font-size: .88rem; line-height: 1.7; color: #9ca3af; }
/* ── Footer "Follow us" social row ──────────────────────────────────────────── */
.footer-follow { margin-top: 1.25rem; }
.footer-follow-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #6b7280;
    margin-bottom: .6rem;
}
.footer-social { display: flex; gap: .45rem; flex-wrap: wrap; }

/* Each social icon — collapses to icon only, expands to icon + name on hover */
.footer-social-icon {
    display: inline-flex;
    align-items: center;
    padding: .45rem;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #9ca3af;
    text-decoration: none;
    transition: background var(--transition), color var(--transition), padding var(--transition);
}
.footer-social-icon svg { flex-shrink: 0; }
.footer-social-icon .icon-label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 500;
    opacity: 0;
    margin-left: 0;
    transition: max-width .25s ease, opacity .2s ease, margin-left .2s ease;
}
.footer-social-icon:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    padding: .45rem .65rem .45rem .5rem;
    text-decoration: none;
}
.footer-social-icon:hover .icon-label {
    max-width: 100px;
    opacity: 1;
    margin-left: .4rem;
}
/* Brand colours on hover */
.footer-social-icon-wa:hover       { background: rgba(37,211,102,.2);  color: #25D366; }
.footer-social-icon-fb:hover       { background: rgba(24,119,242,.2);  color: #1877F2; }
.footer-social-icon-ig:hover       { background: rgba(225,48,108,.2);  color: #E1306C; }
.footer-social-icon-li:hover       { background: rgba(10,102,194,.2);  color: #0A66C2; }

.footer-heading { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: .75rem; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .88rem; color: #9ca3af; transition: color var(--transition); }
.footer-links a:hover { color: var(--green-mid); text-decoration: none; }

/* Scrollable cap for the Our Products list — shows 5 items then scrolls */
.footer-products-list {
    max-height: calc(5 * 1.6rem + 4 * .55rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.15) transparent;
    padding-right: .25rem;
}

.footer-contact-list { display: flex; flex-direction: column; gap: .6rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .88rem; color: #9ca3af; }
.footer-contact-list svg { flex-shrink: 0; margin-top: 2px; color: var(--green-mid); }
.footer-contact-list a { color: #9ca3af; }
.footer-contact-list a:hover { color: var(--green-mid); text-decoration: none; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-block: 0.6rem;
    display: flex; flex-wrap: wrap;
    justify-content: space-between; align-items: center; gap: .4rem;
    font-size: .82rem; line-height: 1.4; color: #6b7280;
}
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: #6b7280; transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--green-mid); text-decoration: none; }

/* ── 22. Alerts / Flash ───────────────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; display: flex; align-items: flex-start; gap: .75rem; }
.alert-success { background: var(--green-light); color: var(--green-dark); border-left: 4px solid var(--green); }
.alert-error   { background: var(--red-light);   color: var(--red-dark); border-left: 4px solid var(--red); }
.alert-info    { background: #eff6ff; color: #1e40af; border-left: 4px solid #3b82f6; }

/* ── 23. Privacy Policy ───────────────────────────────────────────────────────── */
.prose { max-width: 760px; margin-inline: auto; line-height: 1.8; }
.prose h2 { margin-top: 2.5rem; margin-bottom: .75rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: .5rem; font-size: 1.1rem; font-family: var(--font-body); font-weight: 700; }
.prose p, .prose li { color: var(--gray-700); margin-bottom: .75rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }

/* ── 24. Animations & Scroll Reveals ─────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── 25. Admin Bar (locations-admin) ──────────────────────────────────────────── */
.admin-topbar {
    background: var(--green-deeper);
    color: var(--white);
    padding: .75rem 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
}
.admin-topbar strong { font-size: .95rem; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.admin-table th { background: var(--green); color: var(--white); text-align: left; padding: .7rem .9rem; }
.admin-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.admin-table tr:hover td { background: var(--green-light); }

/* ── 26. Miscellaneous ────────────────────────────────────────────────────────── */
.badge {
    display: inline-block; padding: .25rem .65rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
}
.badge-green { background: var(--green-light); color: var(--green-dark); }
.badge-red   { background: var(--red-light);   color: var(--red-dark); }

.divider { height: 1px; background: var(--gray-200); margin-block: 2rem; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--gray-500); }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 1rem; opacity: .35; display: block; }

/* Sticky CTA strip (mobile) */
.sticky-cta {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: .75rem 1rem;
    box-shadow: 0 -4px 12px rgba(0,0,0,.1);
    z-index: 150;
    gap: .5rem;
}
@media (max-width: 639px) {
    .sticky-cta { display: flex; }
    .sticky-cta .btn { flex: 1; justify-content: center; font-size: .9rem; padding: .7rem; }
    body { padding-bottom: 76px; }
}

/* ============================================================
   ADDITIONS — moved from inline / admin page <style> blocks
   All new sections appended here to keep styles centralised.
   Responsiveness is NOT affected: all rules are additive and
   use the same breakpoint variables already defined above.
   ============================================================ */

/* ── Loan Calculator result (was inline <style> in index.php) ───────────────── */
.calc-result-main {
    font-family: var(--font-display);
    font-size: 2.2rem;
    color: var(--green);
}
.calc-result-main span { font-size: 1rem; }
.calc-result-sub {
    font-size: .88rem;
    color: var(--gray-500);
    margin-top: .4rem;
}

/* ── Admin topbar (was inline in locations-admin.php) ───────────────────────── */
.admin-topbar {
    background: var(--green-deeper);
    color: var(--white);
    padding: .6rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .85rem;
    position: sticky;
    top: 0;
    z-index: 200;
}

/* ── Admin wrapper & layout ─────────────────────────────────────────────────── */
.adm-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.adm-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.adm-tab {
    padding: .65rem 1.4rem;
    font-size: .9rem;
    font-weight: 500;
    color: var(--gray-500);
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--transition), border-color var(--transition);
    white-space: nowrap;
}
.adm-tab:hover { color: var(--green); }
.adm-tab.active { color: var(--green); border-bottom-color: var(--green); }
.adm-tab-count {
    display: inline-block;
    background: var(--green-light);
    color: var(--green-dark);
    font-size: .7rem;
    font-weight: 700;
    padding: .1rem .45rem;
    border-radius: 999px;
    margin-left: .35rem;
}

.adm-panel { display: none; }
.adm-panel.active { display: block; }

.adm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 860px) {
    .adm-grid { grid-template-columns: 380px 1fr; }
}

/* ── Admin stats row ────────────────────────────────────────────────────────── */
.adm-stats { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.adm-stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: .55rem 1.1rem;
    display: flex;
    align-items: baseline;
    gap: .4rem;
}
.adm-stat-num   { font-size: 1.3rem; font-weight: 700; color: var(--green); line-height: 1; }
.adm-stat-label { font-size: .78rem; color: var(--gray-500); }

/* ── Hierarchy tree ─────────────────────────────────────────────────────────── */
.hier-tree { display: flex; flex-direction: column; gap: .25rem; }

.hier-hq {
    background: linear-gradient(135deg, var(--green-deeper), var(--green-dark));
    border-radius: var(--radius);
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.hier-hq-label   { display: flex; flex-direction: column; }
.hier-hq-badge   { font-size: .65rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: .2rem; }
.hier-hq-name    { font-weight: 700; color: var(--white); font-size: .92rem; }
.hier-hq-sub     { font-size: .76rem; color: rgba(255,255,255,.65); margin-top: .1rem; }

.hier-region     { border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--gray-200); background: var(--white); }
.hier-region-header { display: flex; align-items: center; justify-content: space-between; padding: .7rem .9rem; border-left: 3px solid var(--green); flex-wrap: wrap; gap: .5rem; }
.hier-region-name   { font-weight: 700; font-size: .88rem; }
.hier-region-meta   { font-size: .75rem; color: var(--gray-500); margin-top: .08rem; }
.hier-region-actions { display: flex; gap: .35rem; }

.hier-branch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    padding: .6rem .9rem .6rem 1.75rem;
    border-top: 1px solid var(--gray-100);
    background: var(--white);
}
.hier-branch:hover   { background: var(--gray-50); }
.hier-branch-dot     { width: 7px; height: 7px; border-radius: 50%; background: var(--green-mid); flex-shrink: 0; }
.hier-branch-info    { flex: 1; min-width: 0; }
.hier-branch-name    { font-size: .86rem; font-weight: 500; }
.hier-branch-sub     { font-size: .75rem; color: var(--gray-500); margin-top: .08rem; }
.hier-branch-actions { display: flex; gap: .3rem; flex-shrink: 0; }

.hier-unassigned { border-left-color: var(--red) !important; }
.hier-unassigned .hier-region-name { color: var(--red); }

/* Region inline rename form */
.rename-form { display: none; padding: .5rem .9rem .7rem 1.75rem; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.rename-form.open { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* ── Image Upload Panel (used by all admin editors) ─────────────────────────── */
.upload-panel { margin-top: 2rem; }
.upload-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--gray-200);
}

.upload-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }

.upload-slot {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius);
    background: var(--gray-50);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
}
.upload-slot:hover, .upload-slot.drag-over {
    border-color: var(--green);
    background: var(--green-light);
}
.upload-slot.has-image { border-style: solid; border-color: var(--green); }

.upload-slot-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.upload-slot-thumb-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: var(--gray-400);
    font-size: .75rem;
    text-align: center;
    padding: .5rem;
}
.upload-slot-label {
    padding: .45rem .6rem;
    font-size: .74rem;
    font-weight: 500;
    color: var(--gray-700);
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .3rem;
}
.upload-slot-delete {
    background: var(--red-light);
    color: var(--red-dark);
    border: none;
    border-radius: var(--radius-sm);
    padding: .1rem .35rem;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.4;
    display: none;
}
.upload-slot.has-image .upload-slot-delete { display: inline-block; }
.upload-slot input[type="file"] { display: none; }

/* Upload progress overlay */
.upload-progress {
    position: absolute;
    inset: 0;
    background: rgba(49,125,70,.85);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: .85rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.upload-progress.active { opacity: 1; }

/* Upload success/error toast */
.upload-toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--green-deeper);
    color: var(--white);
    padding: .75rem 1.25rem;
    border-radius: var(--radius);
    font-size: .88rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transform: translateY(2rem);
    opacity: 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.upload-toast.show { transform: translateY(0); opacity: 1; }
.upload-toast.error { background: var(--red-dark); }

/* ── Content admin pages (about, products, team, testimonials, hero) ────────── */
.content-admin-body { background: var(--gray-100); }

/* Responsive admin nav on small screens */
@media (max-width: 640px) {
    .adm-wrap { padding: 1rem .75rem; }
    .adm-tab  { padding: .55rem .9rem; font-size: .82rem; }
    .upload-slots { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* ── Product Detail Grid (products.php detail sections) ─────────────────────── */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 420px 1fr;
    }
    /* Alternate: odd products flip image to right */
    .product-detail-grid.flip {
        grid-template-columns: 1fr 420px;
    }
    .product-detail-grid.flip .product-detail-visual { order: 2; }
    .product-detail-grid.flip .product-detail-content { order: 1; }
}

.product-detail-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.product-detail-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.product-detail-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255,255,255,.96);
    border-radius: var(--radius);
    padding: .55rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: .1rem;
}
.product-detail-badge-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-500);
}
.product-detail-badge-value {
    font-size: .95rem;
    font-weight: 700;
    color: var(--green);
}
.product-detail-repayment {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    background: var(--green-light);
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    margin-top: 1rem;
    border-left: 3px solid var(--green);
}

/* ── Contact page two-column layout ─────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1100px;
    margin-inline: auto;
}
@media (min-width: 860px) {
    .contact-grid {
        /* Form gets more space; info sidebar is narrower */
        grid-template-columns: 1fr 340px;
        gap: 3rem;
    }
}

/* Contact info sidebar items */
.contact-info-row {
    display: flex;
    align-items: center;
    gap: .85rem;
    color: var(--text);
    text-decoration: none;
}
.contact-info-row:hover { text-decoration: none; }
.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--green-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-label  { font-weight: 600; font-size: 1rem; }
.contact-info-value  { color: var(--gray-500); font-size: .95rem; line-height: 1.55; }

/* SMS shortcode display block */
.sms-example-box {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: var(--gray-50);
    border: 1.5px dashed var(--gray-300);
    border-radius: var(--radius);
    padding: .5rem .85rem;
    margin-top: .5rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--green-dark);
    letter-spacing: .02em;
}
.sms-example-box svg { flex-shrink: 0; color: var(--gray-400); }
.sms-shortcode-number {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
    letter-spacing: .04em;
    display: block;
    margin: .2rem 0 .1rem;
}

/* ── WhatsApp & USSD styles ─────────────────────────────────────────────────── */

/* Topbar: WhatsApp link gets a subtle green tint on hover */
.topbar-link-whatsapp { color: #a8e6bc; }
.topbar-link-whatsapp:hover { color: #25D366; }

/* Topbar: USSD displayed as non-clickable label */
.topbar-ussd {
    cursor: default;
    opacity: .85;
    letter-spacing: .01em;
}
/* Hide USSD from topbar on very small screens — it's in the footer too */
@media (max-width: 640px) {
    .topbar-ussd { display: none; }
}

/* Contact page sidebar — WhatsApp row */
.contact-whatsapp-row { transition: background var(--transition); border-radius: var(--radius); padding: .25rem .35rem; margin: -.25rem -.35rem; }
.contact-whatsapp-row:hover { background: #e8faf0; text-decoration: none; }

.contact-info-icon-whatsapp {
    background: #e8faf0;
}
.contact-info-icon-whatsapp svg { color: #25D366; fill: #25D366; }

/* Contact page sidebar — USSD row */
.contact-ussd-row { cursor: default; }
.contact-info-icon-ussd { background: var(--gray-100); }
.contact-info-icon-ussd svg { stroke: var(--gray-500); }

/* Red variants — used inside Apply Channels card */
.contact-info-icon-ussd-red { background: var(--red-light); }
.contact-info-icon-ussd-red svg { stroke: var(--red-dark); }
.ussd-code-red { color: var(--red) !important; }

/* Contact page — SMS shortcode row (trigger button) */
.contact-shortcode-row {
    width: 100%; background: none; border: none; font: inherit;
    text-align: left; cursor: pointer;
}
.contact-shortcode-row:hover { background: var(--gray-50); }
.contact-info-icon-shortcode { background: #eff6ff; }
.contact-info-icon-shortcode svg { stroke: #3b82f6; }
.contact-info-icon-shortcode-red { background: var(--red-light); }
.contact-info-icon-shortcode-red svg { stroke: var(--red-dark); }
.sms-shortcode-number-red { color: var(--red) !important; }
.sms-example-box-red {
    background: var(--red-light);
    border-color: rgba(227,51,44,.25);
    color: var(--red-dark);
}
.sms-example-box-red svg { color: var(--red); }

/* SMS Shortcode Modal */
.sms-modal-dialog { max-width: 420px; }
.sms-modal-body { display: flex; flex-direction: column; gap: .85rem; }
.sms-modal-step { font-size: .9rem; color: var(--gray-900); margin: 0; }
.sms-modal-code {
    font-size: 2rem; font-weight: 800; color: var(--red);
    letter-spacing: .05em; text-align: center;
    padding: .6rem 1rem;
    background: var(--red-light);
    border-radius: var(--radius);
}
.sms-modal-note {
    font-size: .82rem; color: var(--gray-500); margin: 0;
    padding-top: .4rem; border-top: 1px solid var(--gray-100);
}

/* Apply Channels card — red left border accent */
.contact-apply-card { border-left: 4px solid var(--red); }

/* Direct Contact card — green left border accent */
.contact-direct-card { border-left: 4px solid var(--green); }
.contact-direct-card h2 { color: var(--green); }

/* Operating Hours card — light green-to-red gradient, dark text */
.contact-hours-card {
    background: linear-gradient(135deg, #d4edda 0%, #fdecea 100%);
    border-color: transparent;
}
.contact-hours-card h3 { color: var(--green-dark); }
.contact-hours-card td { color: var(--gray-700) !important; }
.contact-hours-card td:last-child { color: var(--text) !important; font-weight: 600; }
.contact-hours-card tr:last-child td:last-child { color: var(--red) !important; }

/* Contact page — WhatsApp channel row */
.contact-wa-channel-row { transition: background var(--transition); border-radius: var(--radius); padding: .25rem .35rem; margin: -.25rem -.35rem; }
.contact-wa-channel-row:hover { background: #e8faf0; text-decoration: none; }
.contact-info-icon-wa-channel { background: rgba(37,211,102,.12); }
.contact-info-icon-wa-channel svg { color: #25D366; fill: #25D366; }

/* USSD code — prominent display */
.ussd-code {
    font-family: var(--font-display);
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: var(--green) !important;
    letter-spacing: .04em;
    margin-top: .1rem;
}

/* Footer WhatsApp link */
.footer-contact-list a[href*="wa.me"] { color: #25D366; }
.footer-contact-list a[href*="wa.me"]:hover { color: #128C7E; }

/* ── Mobile sticky CTA — 3-button layout ────────────────────────────────────── */
/* Override existing sticky-cta to accommodate 3 buttons */
@media (max-width: 767px) {
    .sticky-cta {
        gap: .4rem;
        padding: .55rem .75rem;
    }
    .sticky-cta-btn {
        flex: 1;
        justify-content: center;
        font-size: .8rem !important;
        padding: .65rem .4rem !important;
        min-height: 44px;
        gap: .3rem;
    }
    /* WhatsApp button brand colour */
    .sticky-cta-whatsapp {
        background: #25D366;
        border-color: #25D366;
        color: #fff;
    }
    .sticky-cta-whatsapp:hover {
        background: #128C7E;
        border-color: #128C7E;
        color: #fff;
        text-decoration: none;
    }
}

/* upload slot hint text */
.upload-slot-hint {
    font-size: .7rem;
    color: var(--gray-400);
    padding: .25rem .6rem .4rem;
    margin: 0;
}

/* ── Product Category Cards Grid ─────────────────────────────────────────────── */
.product-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}
.product-category-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.product-category-card:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 2px;
}

.product-category-img-wrap {
    position: relative;
    overflow: hidden;
    background: var(--green-light);
}
.product-category-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.product-category-card:hover .product-category-img { transform: scale(1.04); }

.product-category-count {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: var(--green);
    color: var(--white);
    font-size: .72rem;
    font-weight: 700;
    padding: .2rem .6rem;
    border-radius: 999px;
}

.product-category-body {
    padding: 1.25rem 1.5rem .75rem;
    flex: 1;
}
.product-category-body h3 { font-size: 1.1rem; margin: .5rem 0 .4rem; }
.product-category-body p  { font-size: .88rem; color: var(--gray-700); line-height: 1.55; }

.product-category-footer {
    padding: .75rem 1.5rem 1.25rem;
}

/* ── Product Modal ────────────────────────────────────────────────────────────── */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: modal-fade-in .2s ease;
}
.product-modal-overlay[hidden] { display: none; }

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.product-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0,0,0,.25);
    animation: modal-slide-in .25s cubic-bezier(.34,1.56,.64,1);
    position: relative;
}
@keyframes modal-slide-in {
    from { transform: translateY(24px) scale(.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);   opacity: 1; }
}

.product-modal-close {
    position: absolute;
    top: .85rem;
    right: .85rem;
    z-index: 10;
    background: rgba(255,255,255,.2);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    transition: background var(--transition);
}
.product-modal-close:hover { background: rgba(255,255,255,.35); }

.product-modal-header {
    position: relative;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    padding: 1.75rem 1.75rem 1.25rem;
    flex-shrink: 0;
}
.product-modal-header-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .2;
}
.product-modal-header-text {
    position: relative;
    z-index: 1;
    color: var(--white);
}
.product-modal-header-text h2 {
    color: var(--white);
    font-size: 1.5rem;
    margin: .5rem 0 0;
}

.product-modal-body {
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-product-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.modal-product-card:hover {
    border-color: var(--green);
    box-shadow: var(--shadow-sm);
}

.modal-product-info { flex: 1; min-width: 0; }
.modal-product-name { font-size: .95rem; font-weight: 700; margin-bottom: .35rem; }
.modal-product-desc { font-size: .84rem; color: var(--gray-900); line-height: 1.5; margin-bottom: .6rem; }

.modal-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .78rem;
    font-weight: 500;
}
.modal-product-amount {
    display: flex; align-items: center; gap: .3rem;
    color: var(--green);
}
.modal-product-term {
    display: flex; align-items: center; gap: .3rem;
    color: var(--gray-500);
}
.modal-product-note {
    font-size: .80rem;
    color: var(--gray-600);
    margin-top: .4rem;
    font-style: italic;
}

.modal-product-actions { flex-shrink: 0; padding-top: .15rem; }

/* ── WhatsApp channel "Follow us" pill — shared sitewide ─────────────────────── */
.wa-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .55rem;
    border-radius: 999px;
    background: rgba(37,211,102,.18);
    border: 1px solid rgba(37,211,102,.35);
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.wa-channel-pill:hover {
    background: rgba(37,211,102,.35);
    border-color: rgba(37,211,102,.6);
    color: #fff;
    text-decoration: none;
}
@media (max-width: 640px) { .wa-channel-pill span { display: none; } }

/* ── Locations Page ──────────────────────────────────────────────────────────── */
.loc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
}
@media (min-width: 960px) {
    .loc-layout { grid-template-columns: 360px 1fr; align-items: start; }
}

.loc-sidebar {
    display: flex; flex-direction: column; gap: .4rem;
    max-height: 84vh; overflow-y: auto;
    padding-right: 3px;
    scroll-behavior: smooth;
}
.loc-sidebar::-webkit-scrollbar { width: 4px; }
.loc-sidebar::-webkit-scrollbar-track { background: transparent; }
.loc-sidebar::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

.loc-search-wrap {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--white);
    padding-bottom: .4rem;
    margin-bottom: 0;
}
.loc-search-icon { color: var(--gray-400); pointer-events: none; flex-shrink: 0; }
#loc-search { flex: 1; }

.loc-hq-card {
    background: linear-gradient(135deg, var(--green-deeper), var(--green-dark));
    border-radius: var(--radius-lg);
    padding: 1rem 1.15rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: box-shadow var(--transition), border-color var(--transition);
    margin-bottom: .25rem;
}
.loc-hq-card:hover, .loc-hq-card.active { border-color: rgba(255,255,255,.4); box-shadow: 0 6px 20px rgba(26,66,40,.4); }
.loc-hq-badge  { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-bottom: .35rem; }
.loc-hq-name   { font-weight: 700; font-size: .95rem; color: var(--white); line-height: 1.3; }
.loc-hq-detail { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: .25rem; }
.loc-hq-phone  { display: block; font-size: .8rem; color: rgba(255,255,255,.85); margin-top: .2rem; }
.loc-hq-phone:hover { color: var(--white); text-decoration: underline; }
.loc-hq-hours  { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: .25rem; }

.loc-region-block {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    margin-bottom: .25rem;
    transition: border-color var(--transition);
}
.loc-region-block.active { border-color: var(--green); }

.loc-region-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: .8rem 1rem;
    background: none; border: none; cursor: pointer;
    border-left: 3px solid var(--green);
    text-align: left;
    transition: background var(--transition);
    gap: .5rem;
}
.loc-region-header:hover { background: var(--green-light); }
.loc-region-block.active > .loc-region-header { background: var(--green-light); }

.loc-region-left    { display: flex; align-items: center; gap: .55rem; flex: 1; min-width: 0; }
.loc-region-chevron { color: var(--gray-300); flex-shrink: 0; transition: transform var(--transition), color var(--transition); display: flex; }
.loc-region-block.open > .loc-region-header .loc-region-chevron { transform: rotate(90deg); color: var(--green); }
.loc-region-name    { display: block; font-weight: 700; font-size: .9rem; color: var(--text); }
.loc-region-count   { display: block; font-size: .74rem; color: var(--gray-500); margin-top: .05rem; }
.loc-region-pill    { font-size: .67rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; background: var(--green-light); color: var(--green-dark); padding: .18rem .55rem; border-radius: 999px; flex-shrink: 0; }

.loc-branch-list  { max-height: 0; overflow: hidden; transition: max-height .35s ease; border-top: 0; }
.loc-region-block.open .loc-branch-list { max-height: 3000px; border-top: 1px solid var(--gray-100); }
.loc-branch-empty { padding: .65rem 1rem .65rem 2.4rem; font-size: .82rem; color: var(--gray-400); font-style: italic; }

.loc-branch-item {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .75rem .85rem .75rem 1.1rem;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background var(--transition);
    outline: none;
}
.loc-branch-item:last-child { border-bottom: none; }
.loc-branch-item:hover { background: var(--gray-50); }
.loc-branch-item:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
.loc-branch-item.active { background: var(--green-light); }

.loc-branch-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); flex-shrink: 0; margin-top: .42rem; transition: background var(--transition), transform var(--transition); }
.loc-branch-item:hover .loc-branch-dot,
.loc-branch-item.active .loc-branch-dot { background: var(--green); transform: scale(1.3); }

.loc-branch-info     { flex: 1; min-width: 0; }
.loc-branch-name     { font-weight: 800; font-size: .88rem; color: var(--text); }
.loc-branch-address  { font-size: .75rem; color: var(--gray-900); margin-top: .12rem; line-height: 1.45; }
.loc-branch-landmark { font-size: .78rem; color: var(--gray-700); margin-top: .1rem; line-height: 1.4; font-style: italic; }
.loc-branch-phone    { display: block; font-size: .80rem; color: var(--green); margin-top: .18rem; }
.loc-branch-phone:hover { text-decoration: underline; }
.loc-branch-hours    { font-size: .80rem; color: var(--gray-600); margin-top: .15rem; }
.loc-branch-actions  { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .55rem; }

.loc-map-wrap {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
#map {
    width: 100%; height: 420px;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--gray-200);
    box-shadow: var(--shadow);
    background: var(--gray-100);
}
@media (min-width: 960px) {
    #map {
        height: calc(100vh - var(--topbar-h) - var(--nav-h) - 6rem);
        max-height: 780px;
        position: relative;
        top: auto;
    }
    .loc-map-wrap {
        position: sticky;
        top: calc(var(--topbar-h) + var(--nav-h) + 1.75rem);
    }
}

.loc-map-bar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: .55rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: .82rem;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    flex-shrink: 0;
}
