/*
Theme Name: Sunflower Hub Africa
Theme URI: https://sunflower.africa
Author: Sunflower Hub Africa
Description: Sunflower contract farming and value addition platform. Connects Kenyan farmers with guaranteed markets for sunflower produce. Features farmer registration, collection centre directory, and educational content.
Version: 1.0.0
Text Domain: sunflower
*/

/* ═══════════════════════════════════════════════
   RESET & VARIABLES
   ═══════════════════════════════════════════════ */
:root {
    --sh-gold: #F2B705;
    --sh-gold-dark: #D9A004;
    --sh-gold-light: #FFF3CC;
    --sh-gold-glow: rgba(242,183,5,0.12);
    --sh-green: #2D6A4F;
    --sh-green-light: #40916C;
    --sh-green-pale: #D8F3DC;
    --sh-earth: #5C4033;
    --sh-earth-light: #8B6F47;
    --sh-dark: #1A1A0E;
    --sh-dark-2: #2C2C1A;
    --sh-cream: #FFFEF5;
    --sh-cream-2: #FBF8EF;
    --sh-white: #FFFFFF;
    --sh-text: #3D3D2E;
    --sh-text-light: #6B6B55;
    --sh-text-muted: #9B9B80;
    --sh-border: #E8E4D4;
    --sh-shadow: 0 4px 24px rgba(92,64,51,0.08);
    --sh-shadow-lg: 0 12px 48px rgba(92,64,51,0.12);
    --sh-radius: 12px;
    --sh-transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    color: var(--sh-text);
    line-height: 1.7;
    font-size: 16px;
    background: var(--sh-cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--sh-dark);
}

a { color: var(--sh-green); text-decoration: none; transition: var(--sh-transition); }
a:hover { color: var(--sh-green-light); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.sh-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.sh-btn {
    display: inline-block;
    padding: 15px 38px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--sh-transition);
    text-align: center;
}
.sh-btn-gold {
    background: var(--sh-gold);
    color: var(--sh-dark);
}
.sh-btn-gold:hover {
    background: var(--sh-gold-dark);
    color: var(--sh-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(242,183,5,0.35);
}
.sh-btn-green {
    background: var(--sh-green);
    color: var(--sh-white);
}
.sh-btn-green:hover {
    background: var(--sh-green-light);
    color: var(--sh-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(45,106,79,0.3);
}
.sh-btn-outline {
    background: transparent;
    color: var(--sh-white);
    border: 2px solid var(--sh-white);
}
.sh-btn-outline:hover { background: var(--sh-white); color: var(--sh-green); }
.sh-btn-outline-green {
    background: transparent;
    color: var(--sh-green);
    border: 2px solid var(--sh-green);
}
.sh-btn-outline-green:hover { background: var(--sh-green); color: var(--sh-white); }
.sh-btn-sm { padding: 10px 24px; font-size: 12px; }
.sh-btn-lg { padding: 18px 48px; font-size: 16px; }

/* ═══════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════ */
.sh-topbar {
    background: var(--sh-green);
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    padding: 8px 0;
}
.sh-topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.sh-topbar a { color: var(--sh-gold); }

.sh-header {
    background: var(--sh-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.sh-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 72px;
}
.sh-logo { display: flex; align-items: center; gap: 12px; }
.sh-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--sh-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.sh-logo-text strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--sh-dark);
    line-height: 1.15;
}
.sh-logo-text span {
    display: block;
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sh-green);
    font-weight: 600;
}

.sh-nav { display: flex; align-items: center; gap: 0; }
.sh-nav a {
    color: var(--sh-text);
    padding: 26px 16px;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}
.sh-nav a:hover { color: var(--sh-green); }
.sh-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px; right: 16px;
    height: 3px;
    background: var(--sh-gold);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: var(--sh-transition);
}
.sh-nav a:hover::after { transform: scaleX(1); }
.sh-nav .sh-nav-cta {
    background: var(--sh-gold);
    color: var(--sh-dark) !important;
    padding: 10px 24px;
    border-radius: 50px;
    margin-left: 12px;
    font-weight: 700;
}
.sh-nav .sh-nav-cta::after { display: none; }
.sh-nav .sh-nav-cta:hover { background: var(--sh-gold-dark); box-shadow: 0 4px 16px rgba(242,183,5,0.3); }

.sh-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--sh-dark);
    font-size: 28px;
    cursor: pointer;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.sh-hero {
    background: linear-gradient(135deg, var(--sh-green) 0%, #1B4332 60%, var(--sh-dark-2) 100%);
    color: #fff;
    padding: 100px 0 110px;
    position: relative;
    overflow: hidden;
}
.sh-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(242,183,5,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(64,145,108,0.1) 0%, transparent 50%);
    pointer-events: none;
}
/* Sunflower decorative circles */
.sh-hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px; height: 400px;
    border: 50px solid rgba(242,183,5,0.08);
    border-radius: 50%;
    pointer-events: none;
}
.sh-hero-content { position: relative; z-index: 2; max-width: 680px; }
.sh-hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(242,183,5,0.15);
    color: var(--sh-gold);
    padding: 8px 20px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin-bottom: 24px;
    border: 1px solid rgba(242,183,5,0.25);
}
.sh-hero h1 {
    font-size: 56px;
    color: #fff;
    margin-bottom: 22px;
    line-height: 1.08;
}
.sh-hero h1 span { color: var(--sh-gold); }
.sh-hero p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.8;
    max-width: 560px;
}
.sh-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.sh-hero-stats {
    display: flex;
    gap: 44px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.sh-hero-stat strong {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--sh-gold);
    line-height: 1;
}
.sh-hero-stat span { font-size: 12px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: 0.1em; }

/* Page hero */
.sh-page-hero {
    background: linear-gradient(135deg, var(--sh-green), #1B4332);
    color: #fff;
    padding: 56px 0 60px;
    text-align: center;
    position: relative;
}
.sh-page-hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sh-gold), var(--sh-green-light), var(--sh-gold));
}
.sh-page-hero h1 { font-size: 46px; color: #fff; margin-bottom: 10px; }
.sh-page-hero p { color: rgba(255,255,255,0.7); font-size: 16px; }

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.sh-section { padding: 80px 0; }
.sh-section-white { background: var(--sh-white); }
.sh-section-green { background: var(--sh-green); color: #fff; }
.sh-section-green h2, .sh-section-green h3 { color: #fff; }
.sh-section-green p { color: rgba(255,255,255,0.8); }
.sh-section-gold { background: var(--sh-gold); color: var(--sh-dark); }
.sh-section-gold h2 { color: var(--sh-dark); }

.sh-section-header { text-align: center; margin-bottom: 50px; }
.sh-section-header h2 { font-size: 40px; margin-bottom: 14px; }
.sh-section-header h2 span { color: var(--sh-gold); }
.sh-section-green .sh-section-header h2 span { color: var(--sh-gold); }
.sh-section-header p { color: var(--sh-text-light); font-size: 16px; max-width: 620px; margin: 0 auto; }
.sh-section-line {
    width: 60px; height: 4px;
    background: var(--sh-gold);
    margin: 16px auto 0;
    border-radius: 2px;
}

/* ═══════════════════════════════════════════════
   CARDS (generic)
   ═══════════════════════════════════════════════ */
.sh-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sh-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sh-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.sh-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    padding: 32px 28px;
    border: 1px solid var(--sh-border);
    transition: var(--sh-transition);
}
.sh-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sh-shadow-lg);
    border-color: var(--sh-gold);
}
.sh-card-icon {
    width: 56px; height: 56px;
    background: var(--sh-gold-glow);
    border: 1px solid rgba(242,183,5,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 18px;
}
.sh-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.sh-card p {
    font-size: 14px;
    color: var(--sh-text-light);
    line-height: 1.7;
}

/* Dark card variant (for green sections) */
.sh-card-dark {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--sh-radius);
    padding: 32px 28px;
    transition: var(--sh-transition);
}
.sh-card-dark:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(242,183,5,0.3);
    transform: translateY(-3px);
}
.sh-card-dark h3 { color: #fff; font-size: 18px; margin-bottom: 10px; }
.sh-card-dark p { color: rgba(255,255,255,0.75); font-size: 14px; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   PROCESS STEPS
   ═══════════════════════════════════════════════ */
.sh-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.sh-step {
    text-align: center;
    padding: 32px 20px;
    position: relative;
    counter-increment: step;
}
.sh-step::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--sh-gold);
    color: var(--sh-dark);
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 18px;
}
.sh-step h3 { font-size: 16px; margin-bottom: 8px; }
.sh-step p { font-size: 13px; color: var(--sh-text-light); line-height: 1.6; }
/* Connector line */
.sh-step::after {
    content: '';
    position: absolute;
    top: 56px;
    left: calc(50% + 38px);
    width: calc(100% - 76px);
    height: 2px;
    background: var(--sh-border);
}
.sh-step:last-child::after { display: none; }

/* ═══════════════════════════════════════════════
   BENEFIT HIGHLIGHT CARDS
   ═══════════════════════════════════════════════ */
.sh-benefit {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    padding: 36px 30px;
    border-left: 5px solid var(--sh-gold);
    box-shadow: var(--sh-shadow);
    transition: var(--sh-transition);
}
.sh-benefit:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-shadow-lg);
}
.sh-benefit h3 {
    font-size: 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sh-benefit p { font-size: 14px; color: var(--sh-text-light); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   COLLECTION CENTRES
   ═══════════════════════════════════════════════ */
.sh-centre-card {
    background: var(--sh-white);
    border-radius: var(--sh-radius);
    padding: 28px;
    border: 1px solid var(--sh-border);
    transition: var(--sh-transition);
    text-align: center;
}
.sh-centre-card:hover {
    border-color: var(--sh-gold);
    transform: translateY(-3px);
    box-shadow: var(--sh-shadow-lg);
}
.sh-centre-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--sh-green-pale);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.sh-centre-card h3 { font-size: 20px; margin-bottom: 6px; }
.sh-centre-region {
    font-size: 12px;
    color: var(--sh-green);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}
.sh-centre-card p { font-size: 13px; color: var(--sh-text-light); line-height: 1.7; }

/* ═══════════════════════════════════════════════
   CONTACT / REGISTRATION FORM
   ═══════════════════════════════════════════════ */
.sh-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.sh-contact-info {
    background: var(--sh-green);
    color: #fff;
    border-radius: var(--sh-radius);
    padding: 40px;
}
.sh-contact-info h2 { color: #fff; font-size: 32px; margin-bottom: 24px; }
.sh-contact-item { display: flex; gap: 14px; margin-bottom: 22px; align-items: flex-start; }
.sh-contact-icon {
    width: 42px; height: 42px;
    background: rgba(242,183,5,0.15);
    border: 1px solid rgba(242,183,5,0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sh-contact-item h4 { font-family: 'Source Sans 3',sans-serif; font-size: 14px; font-weight: 700; color: var(--sh-gold); margin-bottom: 4px; }
.sh-contact-item p { font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.6; }
.sh-contact-item a { color: rgba(255,255,255,0.85); }
.sh-contact-item a:hover { color: var(--sh-gold); }

.sh-contact-form {
    background: var(--sh-white);
    border: 1px solid var(--sh-border);
    border-radius: var(--sh-radius);
    padding: 40px;
}
.sh-contact-form h2 { font-size: 28px; margin-bottom: 24px; }

.sh-form .sh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.sh-form .sh-form-group { margin-bottom: 16px; }
.sh-form label { display: block; font-size: 13px; font-weight: 600; color: var(--sh-dark); margin-bottom: 6px; }
.sh-form input, .sh-form select, .sh-form textarea {
    width: 100%; padding: 12px 16px;
    border: 1px solid var(--sh-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Source Sans 3', sans-serif;
    color: var(--sh-text);
    background: var(--sh-cream);
    transition: var(--sh-transition);
}
.sh-form input:focus, .sh-form select:focus, .sh-form textarea:focus {
    outline: none;
    border-color: var(--sh-gold);
    box-shadow: 0 0 0 3px rgba(242,183,5,0.15);
    background: var(--sh-white);
}
.sh-form textarea { resize: vertical; min-height: 100px; }

/* ═══════════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════════ */
.sh-cta {
    background: linear-gradient(135deg, var(--sh-green), #1B4332);
    color: #fff;
    padding: 64px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.sh-cta::before {
    content: '';
    position: absolute;
    right: -60px; top: -60px;
    width: 300px; height: 300px;
    border: 50px solid rgba(242,183,5,0.06);
    border-radius: 50%;
}
.sh-cta h2 { font-size: 40px; color: #fff; margin-bottom: 14px; position: relative; }
.sh-cta h2 span { color: var(--sh-gold); }
.sh-cta p { font-size: 17px; color: rgba(255,255,255,0.8); margin-bottom: 28px; max-width: 600px; margin-left: auto; margin-right: auto; position: relative; }

/* Gold CTA variant */
.sh-cta-gold {
    background: var(--sh-gold);
    color: var(--sh-dark);
    padding: 56px 0;
    text-align: center;
}
.sh-cta-gold h2 { font-size: 36px; color: var(--sh-dark); margin-bottom: 12px; }
.sh-cta-gold p { font-size: 16px; color: var(--sh-earth); margin-bottom: 24px; }

/* ═══════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════ */
.sh-faq-item {
    background: var(--sh-white);
    border: 1px solid var(--sh-border);
    border-radius: 10px;
    margin-bottom: 12px;
    overflow: hidden;
}
.sh-faq-q {
    padding: 20px 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--sh-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--sh-transition);
}
.sh-faq-q:hover { color: var(--sh-green); }
.sh-faq-q .sh-faq-toggle { font-size: 20px; color: var(--sh-gold); transition: var(--sh-transition); }
.sh-faq-item.active .sh-faq-toggle { transform: rotate(45deg); }
.sh-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.sh-faq-item.active .sh-faq-a { max-height: 500px; }
.sh-faq-a-inner {
    padding: 0 24px 20px;
    font-size: 14px;
    color: var(--sh-text-light);
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.sh-footer {
    background: var(--sh-dark);
    color: rgba(255,255,255,0.55);
    padding: 64px 0 0;
}
.sh-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 48px; }
.sh-footer h4 { color: #fff; font-family: 'Outfit',sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 18px; }
.sh-footer p { font-size: 14px; line-height: 1.7; }
.sh-footer ul li { margin-bottom: 10px; }
.sh-footer ul li a { color: rgba(255,255,255,0.55); font-size: 13px; }
.sh-footer ul li a:hover { color: var(--sh-gold); }
.sh-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}
.sh-footer-bottom a { color: var(--sh-gold); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sh-hero h1 { font-size: 42px; }
    .sh-page-hero h1 { font-size: 36px; }
    .sh-section-header h2 { font-size: 32px; }
    .sh-grid-3 { grid-template-columns: 1fr 1fr; }
    .sh-grid-4, .sh-steps { grid-template-columns: 1fr 1fr; }
    .sh-step::after { display: none; }
    .sh-footer-grid { grid-template-columns: 1fr 1fr; }
    .sh-contact-grid { grid-template-columns: 1fr; }
    .sh-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sh-topbar { display: none; }
    .sh-menu-toggle { display: block; }
    .sh-nav {
        display: none;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: var(--sh-white);
        flex-direction: column;
        padding: 12px 0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    }
    .sh-nav.active { display: flex; }
    .sh-nav a { padding: 14px 24px; }
    .sh-nav a::after { display: none; }
    .sh-nav .sh-nav-cta { margin: 8px 24px; text-align: center; }

    .sh-hero { padding: 60px 0 70px; }
    .sh-hero h1 { font-size: 32px; }
    .sh-hero-stats { flex-wrap: wrap; gap: 24px; }
    .sh-section { padding: 50px 0; }
    .sh-grid-3, .sh-grid-4, .sh-steps { grid-template-columns: 1fr; }
    .sh-form .sh-form-row { grid-template-columns: 1fr; }
    .sh-footer-grid { grid-template-columns: 1fr; }
    .sh-footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .sh-cta h2 { font-size: 28px; }
}

body.admin-bar .sh-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .sh-header { top: 46px; } }
