/*
Theme Name: EMBA Media Network
Theme URI: https://embamedia.network
Author: EMBA Media Network
Author URI: https://embamedia.network
Description: Custom theme for EMBA Media Network — Advancing Development Through Women-Led Enterprise. Features Maasai beadwork-inspired design, warm ember/amber palette, and responsive layout.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: emba-theme
Tags: custom-logo, custom-menu, featured-images, full-width-template, one-column, two-columns
*/

/* ========== VARIABLES ========== */
:root {
    --ember: #EF7D3C;
    --ember-deep: #D4622A;
    --amber: #F5A623;
    --amber-light: #FFC857;
    --terracotta: #C4563A;
    --navy: #1A1A2E;
    --navy-mid: #252547;
    --pearl: #FEFEFE;
    --cloud: #F7F6F4;
    --mist: #F0EEEB;
    --warm-white: #FFFBF5;
    --text-primary: #2A2A3D;
    --text-secondary: #5A5A72;
    --text-muted: #8A8A9A;
    --border: rgba(0,0,0,0.06);
}

/* ========== RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--pearl);
}
h1, h2, h3 { font-family: 'DM Serif Display', serif; line-height: 1.25; font-weight: 400; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }

/* ========== MAASAI BEADWORK MOTIF ========== */
.maasai-motif {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}
.maasai-motif svg { width: 100%; height: 100%; }
.maasai-motif--sm { width: 320px; height: 320px; opacity: 0.12; }
.maasai-motif--md { width: 480px; height: 480px; opacity: 0.1; }
.maasai-motif--lg { width: 600px; height: 600px; opacity: 0.09; }
.maasai-motif--light svg circle,
.maasai-motif--light svg path,
.maasai-motif--light svg rect,
.maasai-motif--light svg polygon { stroke: white; fill: white; }

/* ========== NAV ========== */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(254,254,254,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 1px 16px rgba(0,0,0,0.06); }
.nav-inner {
    display: flex; justify-content: space-between;
    align-items: center; height: 64px;
}
.logo-group { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img { height: 38px; width: auto; }
.logo-text { font-family: 'DM Serif Display', serif; font-size: 1.05rem; color: var(--text-primary); }
.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary);
    font-weight: 600; font-size: 0.82rem; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ember); }
.nav-cta {
    background: var(--ember) !important; color: white !important;
    padding: 8px 20px; border-radius: 50px; font-weight: 700;
    transition: all 0.2s;
}
.nav-cta:hover { background: var(--ember-deep) !important; }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); margin: 5px 0; transition: all 0.3s; }

/* ========== HERO ========== */
.hero-image { width: 100%; height: 440px; position: relative; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-text {
    padding: 64px 0 56px;
    background: var(--pearl);
    position: relative; overflow: hidden;
}
.hero-text .container { max-width: 700px; position: relative; z-index: 1; }
.hero-eyebrow {
    font-size: 0.68rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ember); margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--ember); }
.hero-text h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--navy); margin-bottom: 20px; line-height: 1.15;
}
.hero-sub {
    font-size: 0.88rem; font-weight: 700; color: var(--text-muted);
    letter-spacing: 0.04em; margin-bottom: 20px;
}
.hero-desc {
    font-size: 1rem; color: var(--text-secondary);
    line-height: 1.85; margin-bottom: 32px;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 13px 26px; border-radius: 50px;
    font-weight: 700; font-size: 0.88rem;
    text-decoration: none; transition: all 0.25s;
    cursor: pointer; border: none; font-family: 'Nunito', sans-serif;
}
.btn-primary { background: var(--ember); color: white; }
.btn-primary:hover { background: var(--ember-deep); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text-secondary); background: transparent; }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }

/* ========== SECTIONS ========== */
.s { padding: 80px 0; position: relative; overflow: hidden; }
.s--mist { background: var(--cloud); }
.s--warm { background: var(--warm-white); }
.s--dark { background: var(--navy); color: white; }
.s > .container { position: relative; z-index: 1; }
.s-eyebrow {
    font-size: 0.66rem; font-weight: 800;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ember); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.s--dark .s-eyebrow { color: var(--amber); }
.s-eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.s-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; color: var(--navy); }
.s--dark .s-title { color: white; }
.s-intro {
    color: var(--text-secondary); font-size: 0.95rem;
    line-height: 1.8; max-width: 540px; margin-bottom: 44px;
}
.s--dark .s-intro { color: rgba(255,255,255,0.55); }

/* ========== WHAT WE DO ========== */
.wwd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wwd-card {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    background: var(--pearl); transition: all 0.35s;
}
.wwd-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,0.07); }
.wwd-card-img { height: 200px; overflow: hidden; }
.wwd-card-img img { width: 100%; height: 100%; object-fit: cover; }
.wwd-card-body { padding: 24px 20px; }
.wwd-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--navy); }
.wwd-card p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; }

/* ========== OUR PROGRAMS ========== */
.focus-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.focus-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.focus-text p {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.85; margin-bottom: 14px;
}
.stats-row {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-top: 24px;
}
.stat { text-align: center; padding: 14px 6px; }
.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem; color: var(--ember);
}
.stat-label { font-size: 0.66rem; color: var(--text-muted); font-weight: 600; margin-top: 2px; line-height: 1.3; }
.photo-mosaic {
    display: grid; grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px; height: 440px;
}
.photo-mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.photo-mosaic .tall { grid-row: span 2; }

/* ========== IMPACT STRIP ========== */
.impact-strip {
    background: var(--warm-white);
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.impact-photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.impact-photo {
    border-radius: 12px; overflow: hidden; height: 200px; position: relative;
}
.impact-photo img { width: 100%; height: 100%; object-fit: cover; }
.impact-photo-caption {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(26,26,46,0.75));
    padding: 16px 12px 10px; z-index: 1;
}
.impact-photo-caption span { font-size: 0.72rem; font-weight: 700; color: white; }

/* ========== AWARDS ========== */
.awards-intro { max-width: 560px; margin-bottom: 40px; }
.awards-intro h2 { margin-bottom: 14px; }
.awards-intro p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.twin-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.twin-card {
    border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border);
    background: var(--pearl); transition: all 0.3s;
}
.twin-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,0.06); }
.twin-card-img { height: 180px; overflow: hidden; }
.twin-card-img img { width: 100%; height: 100%; object-fit: cover; }
.twin-card-body { padding: 24px 20px; }
.twin-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.twin-card-body .card-org {
    font-size: 0.66rem; color: var(--ember); font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.twin-card-body p { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.55; }
.twin-card-body .card-date {
    display: inline-block; margin-top: 10px;
    font-size: 0.72rem; font-weight: 700; color: var(--text-muted);
    background: var(--cloud); padding: 4px 12px; border-radius: 50px;
}

/* ========== PARTNERSHIP ========== */
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card {
    padding: 28px 22px; border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
}
.partner-card h3 { font-size: 0.95rem; color: white; margin-bottom: 8px; }
.partner-card p { font-size: 0.82rem; color: rgba(255,255,255,0.45); line-height: 1.6; }

/* ========== ABOUT ========== */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.about-text p {
    font-size: 0.95rem; color: var(--text-secondary);
    line-height: 1.8; margin-bottom: 14px;
}
.org-row { display: flex; gap: 14px; margin-top: 24px; }
.org-card {
    flex: 1; padding: 22px 18px;
    border: 1px solid var(--border);
    border-radius: 12px; background: var(--pearl);
}
.org-dot { width: 10px; height: 10px; border-radius: 50%; margin-bottom: 10px; }
.org-dot.ke { background: var(--ember); }
.org-dot.au { background: var(--navy); }
.org-card h4 { font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 0.88rem; margin-bottom: 4px; }
.org-card p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.5; }
.org-card a { font-size: 0.78rem; color: var(--ember); font-weight: 700; text-decoration: none; margin-top: 6px; display: inline-block; }
.org-card a:hover { text-decoration: underline; }
.about-img { height: 380px; border-radius: 16px; overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }

/* ========== CONTACT ========== */
.contact-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-text h2 { margin-bottom: 14px; }
.contact-text p { color: rgba(255,255,255,0.55); font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; }
.contact-details { display: flex; flex-direction: column; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.c-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); min-width: 7px; }
.contact-form {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px; padding: 28px;
}
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 0.75rem; font-weight: 700; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 14px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05); color: white;
    font-family: 'Nunito', sans-serif; font-size: 0.85rem;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--ember); }
.form-group select option { background: var(--navy); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-submit {
    width: 100%; background: var(--ember); color: white;
    padding: 12px; border-radius: 50px; font-weight: 700;
    font-size: 0.88rem; border: none; cursor: pointer;
    font-family: 'Nunito', sans-serif; transition: all 0.25s;
}
.btn-submit:hover { background: var(--ember-deep); }

/* ========== FOOTER ========== */
.site-footer {
    background: #0E0E1C; color: rgba(255,255,255,0.35);
    padding: 32px 0 16px; position: relative; overflow: hidden;
}
.site-footer .container { position: relative; z-index: 1; }
.footer-inner {
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-brand { font-family: 'DM Serif Display', serif; color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: rgba(255,255,255,0.35); text-decoration: none; font-size: 0.78rem; font-weight: 600; }
.footer-links a:hover { color: var(--amber); }
.footer-copy {
    font-size: 0.68rem; width: 100%; text-align: center;
    margin-top: 16px; padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ========== WP SPECIFIC ========== */
.wp-block-image img { border-radius: 14px; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content h2 { margin-top: 2em; margin-bottom: 0.5em; }
.page-header { padding: 48px 0 24px; }
.page-header h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--navy); }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .wwd-grid, .twin-cards, .partner-grid, .focus-grid,
    .about-grid, .contact-split { grid-template-columns: 1fr; }
    .org-row { flex-direction: column; }
    .impact-photos { grid-template-columns: 1fr 1fr; }
    .photo-mosaic { height: 300px; }
    .form-row { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column;
        position: absolute; top: 64px; left: 0; right: 0;
        background: white; padding: 20px 28px; gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .maasai-motif--lg { width: 350px; height: 350px; }
    .maasai-motif--md { width: 280px; height: 280px; }
}
@media (max-width: 600px) {
    .hero-image { height: 260px; }
    .hero-text { padding: 40px 0 36px; }
    .photo-mosaic { grid-template-columns: 1fr; height: auto; }
    .photo-mosaic img { min-height: 180px; }
    .photo-mosaic .tall { grid-row: auto; }
    .impact-photos { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr; }
    .maasai-motif { display: none; }
}
