/* ==========================================================================
   Kgodiso Foundation - additions layered on top of style.css
   Kept separate so style.css stays a clean copy of the original stylesheet.
   ========================================================================== */

/* --- Inline icons (replaces the Font Awesome icon font) ------------------ */

.site-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-icon > svg {
    width: 1.1em;
    height: 1.1em;
    display: block;
}

.social-carousel-arrow .site-icon > svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* --- Select inputs -------------------------------------------------------
   style.css styles .form-group input and textarea but never select. */

.form-group select {
    width: 100%;
    padding: 0.85rem 2.5rem 0.85rem 1rem;
    border: 1px solid var(--neutral-light-grey);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-charcoal);
    background-color: var(--bg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233E4F45' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    background-size: 1.1rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent-golden);
    box-shadow: 0 0 0 3px rgba(212, 162, 58, 0.18);
}

/* --- Form panel heading --------------------------------------------------
   style.css sets .form-panel h2 to golden, which fails contrast on the
   panel's white background. Match the other card headings instead. */

.form-panel h2 {
    color: var(--primary-deep-green);
}

/* --- Honeypot ------------------------------------------------------------
   A field real people never see and never fill in. Bots do. Hidden from
   assistive tech via aria-hidden and from sighted users via clipping. */

.form-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Server-rendered form feedback --------------------------------------- */

.form-message {
    margin-bottom: 1.25rem;
}

/* --- Skip link ----------------------------------------------------------- */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.75rem 1.25rem;
    background: var(--primary-deep-green);
    color: var(--bg-white);
    border-radius: 0 0 8px 0;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* --- Final CTA with two buttons ------------------------------------------ */

.final-cta .btn + .btn {
    margin-left: 0.75rem;
}

@media (max-width: 520px) {
    .final-cta .btn {
        display: block;
        margin: 0.6rem auto 0;
    }

    .final-cta .btn + .btn {
        margin-left: auto;
    }
}

/* --- Home "Who We Are" grid ----------------------------------------------
   These columns used to live in an inline style, which outranked the 820px
   breakpoint in style.css and made the home page scroll sideways on phones. */

.feature-grid.who-we-are {
    grid-template-columns: 1.45fr 0.95fr;
    align-items: stretch;
}

.feature-grid.who-we-are-aside {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 0;
}

@media (max-width: 820px) {
    .feature-grid.who-we-are {
        grid-template-columns: 1fr;
    }
}

/* --- Story cards --------------------------------------------------------- */

.story-learn-more {
    margin-top: 1rem;
}

/* --- Reduced motion ------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
