/* ============================================================
   AFRICAN BIOCHAR — Main Stylesheet
   ============================================================ */

/* === CSS CUSTOM PROPERTIES === */
:root {
    --primary:        #2d5a1b;
    --primary-light:  #4a8a2c;
    --accent:         #7ab648;
    --accent-light:   #a8d475;
    --earth:          #8b6914;
    --dark:           #192410;
    --text:           #444444;
    --text-light:     #777777;
    --bg-light:       #f5f8f0;
    --bg-earth:       #f7f2e8;
    --white:          #ffffff;
    --shadow-xs:      0 1px 4px rgba(0,0,0,0.07);
    --shadow-sm:      0 2px 12px rgba(0,0,0,0.09);
    --shadow:         0 4px 24px rgba(0,0,0,0.12);
    --shadow-lg:      0 8px 48px rgba(0,0,0,0.15);
    --transition:     all 0.3s cubic-bezier(0.4,0,0.2,1);
    --radius:         12px;
    --radius-lg:      20px;
    --max-w:          1200px;
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    line-height: 1.75;
    overflow-x: hidden;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* === CONTAINER === */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
    color: var(--primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 700; }

/* === SECTION BASE === */
section { padding: 1.1rem 0; }

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0.8rem auto 3rem;
    line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.link-underline {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 3px;
    display: inline-block;
    margin-top: 1.8rem;
    transition: var(--transition);
}
.link-underline:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 0.7rem 0;
}

.nav-container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    transition: var(--transition);
}
.nav-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: filter 0.3s ease;
}
/* Logo becomes white silhouette on transparent (dark hero) navbar */
.navbar:not(.scrolled) .nav-logo .logo-img {
    filter: brightness(0) invert(1);
}
/* Full colours on white scrolled navbar */
.navbar.scrolled .nav-logo .logo-img {
    filter: none;
}
.navbar.scrolled .nav-logo { color: var(--primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.92);
    position: relative;
    transition: var(--transition);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a:hover,
.nav-links a.active { color: rgba(255,255,255,1); }

.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active { color: var(--primary); }

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
    background: var(--primary) !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}
.hamburger span {
    display: block;
    width: 24px; height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--primary); }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    height: 100vh;
    min-height: 620px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #1a3a0a; /* solid fallback if image is missing */
}

/* Farm photo layer — filters applied here only, text unaffected */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/Farm.jpg') center center / cover no-repeat;
    filter: contrast(1.2) saturate(1.15) brightness(1.06);
    z-index: 0;
}

/* Dark gradient overlay on top of photo */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(18,48,8,0.78) 0%, rgba(25,65,12,0.55) 50%, rgba(15,40,8,0.72) 100%);
    z-index: 1;
}

/* Parallax effect on desktop via JS (background-attachment:fixed causes bugs on mobile Safari) */
@media (min-width: 769px) {
    .hero::before { background-attachment: fixed; }
}

.hero-overlay { display: none; } /* overlay handled in background gradient */

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 80px;
    width: 100%;
}

.hero-tagline {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.88);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero h1 {
    color: var(--white);
    max-width: 680px;
    margin-bottom: 2.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    z-index: 2;
    bottom: 2.2rem; right: 2.5rem;
    width: 48px; height: 48px;
    border: 2px solid rgba(255,255,255,0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: pulse-ring 2.2s ease-in-out infinite;
    transition: var(--transition);
}
.scroll-indicator:hover { border-color: var(--accent); }

.scroll-dot {
    width: 8px; height: 8px;
    background: var(--white);
    border-radius: 50%;
    animation: scroll-bounce 1.6s ease-in-out infinite;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
    50%       { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}
@keyframes scroll-bounce {
    0%, 100% { transform: translateY(-3px); }
    50%       { transform: translateY(4px); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { background: var(--white); }

.about h2 {
    text-align: center;
    color: #4a5c38;
    margin-bottom: 3.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: center;
}

.about-logo img {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    filter: drop-shadow(0 12px 32px rgba(0,0,0,0.12));
    transition: transform 0.6s ease;
}
.about-logo img:hover { transform: scale(1.04) rotate(1.5deg); }

.about-block { margin-bottom: 2rem; }
.about-block h3 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--earth);
    margin-bottom: 0.6rem;
    font-weight: 700;
}
.about-block p {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text);
}

.about-supply {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-style: italic;
    color: var(--text-light);
    font-size: 0.92rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-top: 0.5rem;
}
.about-supply i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   STATS BANNER
   ============================================================ */
.stats {
    background: var(--primary);
    padding: 0.8rem 0;
    position: relative;
    overflow: hidden;
}
.stats::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(122,182,72,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item { position: relative; z-index: 1; }

.stat-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 4vw, 4rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-symbol {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.stat-item p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 600;
}

/* ============================================================
   WHAT IS BIOCHAR
   ============================================================ */
.biochar-info { background: var(--bg-light); }

.biochar-intro {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 4rem;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1.2rem;
    line-height: 1.85;
}

.biochar-intro p {
    font-size: 0.98rem;
    color: var(--text);
    line-height: 1.85;
}

/* Process Steps */
.process-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: nowrap;
}

.step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 2rem 1.2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--accent);
}

.step-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid #d4e9bc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin: 0 auto 1rem;
    transition: var(--transition);
}
.step:hover .step-icon {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.step h4 {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}
.step p {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.55;
}

.step-arrow {
    color: var(--accent-light);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-top: 0.5rem;
}

/* ============================================================
   PROPERTIES
   ============================================================ */
.properties { background: var(--white); }

.properties-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: start;
}

.properties-list h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    margin-bottom: 2.2rem;
}

.property-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
    border-bottom: 1px solid #eef2e8;
    transition: var(--transition);
}
.property-item:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.property-item:hover { transform: translateX(4px); }

.check-icon {
    width: 28px; height: 28px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.property-item h4 {
    color: var(--primary);
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}
.property-item p {
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.72;
}

.certification-text {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 1.8rem;
    background: var(--bg-earth);
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
}
.certification-text i { color: var(--earth); margin-top: 2px; flex-shrink: 0; }

.properties-image {
    position: sticky;
    top: 6rem;
}

.img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.img-wrapper img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    /* Gradient fallback if biochar-pile.jpg is missing */
    background: linear-gradient(145deg, #3a2810 0%, #5c4020 50%, #3a2810 100%);
    min-height: 250px;
}

.image-badge {
    position: absolute;
    bottom: 1.2rem; left: 1.2rem;
    background: var(--white);
    padding: 0.5rem 1.1rem;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    box-shadow: var(--shadow);
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
}
.image-badge i { color: var(--accent); }

/* ============================================================
   USES
   ============================================================ */
.uses { background: var(--bg-light); }
.uses h2 { text-align: center; }

.uses-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 3.5rem;
}

.use-cat-title {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.9rem;
}

.use-img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.1rem;
    box-shadow: var(--shadow-sm);
    height: 240px;
}

.use-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.4s ease;
}
.use-img-wrap img:hover { transform: scale(1.03); }

.use-intro {
    font-size: 0.87rem;
    color: var(--text);
    line-height: 1.72;
    margin-bottom: 0.5rem;
}

.use-bullets {
    list-style: disc;
    padding-left: 1.2rem;
}
.use-bullets li {
    font-size: 0.87rem;
    color: var(--text);
    line-height: 1.72;
    margin-bottom: 0.4rem;
}
.use-bullets li em {
    color: var(--primary);
    font-style: italic;
    font-weight: 600;
}

/* ============================================================
   FRICTIONLESS BUYING
   ============================================================ */
.frictionless { background: var(--white); }
.frictionless h2 { text-align: center; margin-bottom: 1.2rem; }

.frictionless-intro {
    max-width: 820px;
    margin: 0 auto 2rem;
    text-align: center;
}
.frictionless-intro p {
    font-size: 0.97rem;
    color: var(--text);
    line-height: 1.85;
    margin-bottom: 0.8rem;
}

.frictionless-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem 3rem;
    margin-bottom: 2rem;
    padding: 1.8rem 2rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.frictionless-feature h4 {
    color: var(--primary);
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}
.frictionless-feature p {
    font-size: 0.86rem;
    color: var(--text);
    line-height: 1.75;
}

.why-choose { margin-top: 0.5rem; }
.why-choose h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.why-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem 3rem;
    list-style: none;
}
.why-list li {
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.72;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
}
.why-list li strong { color: var(--primary); }

/* ============================================================
   UN SDGs SECTION
   ============================================================ */
.sdgs { background: var(--bg-light); }
.sdgs h2 { text-align: center; }

/* Two-column layout: wheel left, cards right */
.sdgs-layout {
    display: grid;
    grid-template-columns: 1fr 1.7fr;
    gap: 4rem;
    align-items: center;
    margin-top: 1rem;
}

/* SDG Wheel */
.sdg-wheel-wrap { display: flex; align-items: center; justify-content: center; }
.sdg-wheel-img {
    width: 100%;
    max-width: 360px;
    filter: drop-shadow(0 8px 28px rgba(0,0,0,0.14));
    transition: transform 0.5s ease;
    /* Placeholder ring if image missing */
    background: conic-gradient(
        #E5243B 0% 6%, #DDA63A 6% 12%, #4C9F38 12% 18%, #C5192D 18% 24%,
        #FF3A21 24% 30%, #26BDE2 30% 36%, #FCC30B 36% 42%, #A21942 42% 48%,
        #FD6925 48% 54%, #DD1367 54% 60%, #FD9D24 60% 66%, #BF8B2E 66% 72%,
        #3F7E44 72% 78%, #0A97D9 78% 84%, #56C02B 84% 90%, #00689D 90% 94%,
        #19486A 94% 100%
    );
    border-radius: 50%;
    min-height: 50px;
}
.sdg-wheel-img:hover { transform: rotate(6deg) scale(1.03); }

/* Cards wrap + hint */
.sdg-cards-wrap { display: flex; flex-direction: column; gap: 1rem; }

.sdg-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
    font-style: italic;
}
.sdg-hint i { color: var(--accent); }

/* ===== FLIP CARDS GRID (flex, 3 per row, last row centred) ===== */
.sdg-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

/* ===== INDIVIDUAL FLIP CARD ===== */
.flip-card {
    width: 168px;
    height: 168px;
    perspective: 1100px;
    cursor: pointer;
    flex-shrink: 0;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

/* ===== FRONT FACE ===== */
.flip-card-front {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.6rem 0.6rem;
}

/* When a real SDG tile image is provided it fills the front completely */
.sdg-tile-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}
/* Hide the CSS fallback once the real image loads */
.sdg-tile-img:not([src=""]):not([src*="sdg-"]) + .sdg-tile-fallback,
.flip-card-front:has(.sdg-tile-img[complete]) .sdg-tile-fallback { display: none; }

/* CSS fallback tile (shown when image is missing) */
.sdg-tile-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.6rem 0.6rem;
}

.sdg-num-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: rgba(255,255,255,0.95);
    align-self: flex-start;
    line-height: 1;
}
.sdg-front-icon {
    font-size: 2.3rem;
    color: rgba(255,255,255,0.92);
}
.sdg-front-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    text-align: center;
    line-height: 1.25;
}

/* ===== BACK FACE ===== */
.flip-card-back {
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
    border-top: 4px solid;
}

.flip-back-content { text-align: center; }

.flip-sdg-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.45rem;
}

.flip-back-content p {
    font-size: 0.67rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.88);
}

/* ===== SDG COLOUR THEMES ===== */
/* Front backgrounds */
.sdg-bg-1  { background: #E5243B; }
.sdg-bg-2  { background: #DDA63A; }
.sdg-bg-5  { background: #FF3A21; }
.sdg-bg-13 { background: #3F7E44; }
.sdg-bg-15 { background: #56C02B; }

/* Back accent colours */
.sdg-back-1  { background: #1f0508; border-color: #E5243B; }
.sdg-back-1  .flip-sdg-label { color: #E5243B; }
.sdg-back-2  { background: #201600; border-color: #DDA63A; }
.sdg-back-2  .flip-sdg-label { color: #DDA63A; }
.sdg-back-5  { background: #200500; border-color: #FF3A21; }
.sdg-back-5  .flip-sdg-label { color: #FF8070; }
.sdg-back-13 { background: #0a1a0c; border-color: #3F7E44; }
.sdg-back-13 .flip-sdg-label { color: #56C02B; }
.sdg-back-15 { background: #0a1a04; border-color: #56C02B; }
.sdg-back-15 .flip-sdg-label { color: #56C02B; }

/* ============================================================
   SOURCING
   ============================================================ */
.sourcing {
    position: relative;
    background: url('../images/source.png') center center / cover no-repeat;
}

/* Dark overlay for text readability */
.sourcing::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18, 45, 8, 0.42);
    z-index: 0;
}

.sourcing .container {
    position: relative;
    z-index: 1;
}

/* Make all text white over the dark overlay */
.sourcing-content h2  { color: var(--white); margin-bottom: 1.2rem; }
.sourcing-content .btn { margin-top: 0.5rem; }

.sourcing-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

.sourcing-content > p {
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.5rem;
    font-size: 0.96rem;
    line-height: 1.85;
}

.sourcing-list { margin-bottom: 1.5rem; }
.sourcing-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    font-size: 0.94rem;
    color: rgba(255,255,255,0.9);
}
.sourcing-list li:last-child { border-bottom: none; }

.list-icon {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent);
    font-size: 0.95rem;
}

.sourcing-export {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 2rem;
}
.sourcing-export i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }

/* Map */
.sourcing-visual { display: flex; justify-content: center; }

.map-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}
.map-container img {
    width: 100%;
    filter: drop-shadow(0 12px 36px rgba(0,0,0,0.14));
    transition: transform 0.5s ease;
}
.map-container img:hover { transform: scale(1.02); }

.map-pin {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255,255,255,0.92);
    padding: 0.38rem 0.8rem;
    border-radius: 100px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    white-space: nowrap;
    animation: float 3.5s ease-in-out infinite;
}
.map-pin i { color: var(--accent); }

.pin-namibia { top: 28%; left: -2%; animation-delay: 0s; }
.pin-sa       { bottom: 16%; right: -2%; animation-delay: 1.2s; }

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-9px); }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--bg-light); }
.contact h2 { text-align: center; }

.contact-cta {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.5rem;
}

.btn-email {
    font-size: 1rem;
    padding: 1rem 2.5rem;
    letter-spacing: 0.04em;
    text-transform: none;
    border-radius: 8px;
    gap: 0.7rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 0.8rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
}
.footer-logo img {
    width: 44px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.86rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.7rem;
}
.social-links a {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
}

.footer h4 {
    color: var(--white);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1.4rem;
}

.footer-nav ul li { padding: 0.3rem 0; }
.footer-nav ul li a {
    color: rgba(255,255,255,0.65);
    font-size: 0.87rem;
    transition: var(--transition);
}
.footer-nav ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-certs ul li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.87rem;
    color: rgba(255,255,255,0.65);
}
.footer-certs ul li i { color: var(--accent); font-size: 0.75rem; }

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 44px; height: 44px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: var(--transition);
    z-index: 900;
}
.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ============================================================
   WAVE DIVIDERS (between sections)
   ============================================================ */
.wave-divider {
    line-height: 0;
    overflow: hidden;
}
.wave-divider svg { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .sdgs-layout { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
    .sdg-wheel-img { max-width: 280px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
    .frictionless-features { grid-template-columns: 1fr; }
    .why-list { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    .about-logo img { max-width: 260px; }
    .about-supply { justify-content: center; }

    .properties-grid { grid-template-columns: 1fr; }
    .properties-image { position: static; margin-top: 2rem; }

    .sourcing-grid { grid-template-columns: 1fr; gap: 3rem; }
    .sourcing-visual { margin-top: 1rem; }

    .contact-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }

    .process-steps { flex-direction: column; align-items: center; }
    .step { max-width: 320px; width: 100%; }
    .step-arrow { transform: rotate(90deg); }
}

@media (max-width: 768px) {
    section { padding: 0.8rem 0; }

    /* Mobile nav */
    .hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        height: 100vh; width: 280px;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 2rem 2rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
        z-index: 999;
        gap: 0;
    }
    .nav-links.open { right: 0; }
    .nav-links li { width: 100%; border-bottom: 1px solid #f0f0f0; }
    .nav-links a { color: var(--text) !important; font-size: 0.92rem; display: block; padding: 0.8rem 0; }
    .nav-cta { background: transparent !important; color: var(--primary) !important; }

    /* Mobile overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
    }
    .nav-overlay.open { display: block; }

    .hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { text-align: center; justify-content: center; }

    .uses-grid { grid-template-columns: 1fr; }
    .frictionless-features { padding: 1.2rem; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    section { padding: 0.6rem 0; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
    .stat-number { font-size: 2.4rem; }
    .stat-symbol { font-size: 1.6rem; }

    .hero { background-attachment: scroll; }
    .scroll-indicator { right: 1.2rem; bottom: 1.5rem; }
}
