/* South Sudan Wholesale 2.0 — unified visual system. Loaded last to keep all templates consistent. */
:root {
    --tollo-ink: #17211d;
    --tollo-forest: #123c31;
    --tollo-green: #18705c;
    --tollo-lime: #c8ef50;
    --tollo-cream: #f5f5ee;
    --tollo-paper: #fffefa;
    --tollo-rule: #dce1d8;
    --tollo-muted: #647067;
    --tollo-shadow: 0 18px 60px rgba(23, 33, 29, .10);
    --ag-container-max: 1240px;
    --ag-section-pad: clamp(72px, 8vw, 124px);
    --ag-radius-lg: 16px;
    --ag-radius-md: 10px;
    --ag-radius-sm: 6px;
}

body, body.ag-corporate-body { color: var(--tollo-ink); background: var(--tollo-paper); font-size: 16px; line-height: 1.62; }
html, body { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { color: var(--tollo-ink); letter-spacing: -.045em; }
h1 { font-size: clamp(2.8rem, 5.6vw, 5.2rem); line-height: .98; }
h2 { font-size: clamp(2.2rem, 4.25vw, 3.7rem); line-height: 1.04; }
h3 { letter-spacing: -.03em; }
.ag-container { max-width: var(--ag-container-max); padding-inline: 24px; }
.ag-section-header { margin-bottom: clamp(32px, 5vw, 58px); }
.ag-section-header p { max-width: 660px; font-size: 1.02rem; }
.ag-eyebrow { color: var(--tollo-green); background: rgba(24,112,92,.09); border-color: rgba(24,112,92,.18); padding: 6px 12px; letter-spacing: .13em; }

/* Header and navigation */
.ag-topbar { background: var(--tollo-forest); color: rgba(255,255,255,.75); border: 0; padding: 7px 0; font-size: .74rem; }
.ag-topbar a, .ag-topbar-link { color: rgba(255,255,255,.8); }
.ag-topbar-badge { background: var(--tollo-lime); color: var(--tollo-forest); border-radius: 3px; }
.ag-topbar-portal-btn { background: transparent; border: 1px solid rgba(255,255,255,.28); color: #fff; border-radius: 3px; }
.ag-site-header { position: sticky; top: 0; z-index: 1000; width: 100%; background: rgba(255,254,250,.98); border-color: rgba(23,33,29,.1); box-shadow: 0 2px 14px rgba(23,33,29,.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: all .3s ease; }
.ag-site-header.ag-scrolled { background: rgba(255,254,250,.95); box-shadow: 0 10px 34px rgba(23,33,29,.10); }
.ag-header-container { min-height: 76px; padding-block: 10px; }
.ag-brand-mark svg rect { fill: var(--tollo-forest); }
.ag-brand-name { color: var(--tollo-forest); font-size: 1.45rem; letter-spacing: -.06em; }
.ag-brand-tagline { color: var(--tollo-muted); font-size: .54rem; }
.ag-nav-list { gap: 0; }
.ag-nav-list > li > a, .ag-nav-item > a { padding: 10px 11px; font-size: .79rem; color: var(--tollo-ink); border-radius: 0; }
.ag-nav-list > li > a:hover, .ag-nav-list .current-menu-item > a, .ag-nav-item > a:hover { color: var(--tollo-green); background: transparent; }
.ag-nav-list .current-menu-item > a { box-shadow: inset 0 -2px var(--tollo-lime); }
.ag-nav-list .menu-item-has-children { position: relative; }
.ag-nav-list .sub-menu { position: absolute; z-index: 50; top: 100%; left: 0; min-width: 220px; padding: 9px; background: var(--tollo-paper); border: 1px solid var(--tollo-rule); box-shadow: var(--tollo-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.ag-nav-list .menu-item-has-children:hover > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ag-nav-list .sub-menu a { display: block; padding: 9px 11px; font-size: .82rem; border-radius: 5px; }
.ag-nav-list .sub-menu a:hover { background: var(--tollo-cream); color: var(--tollo-green); }
.ag-btn { /* BUG 2 FIX: removed border-radius: 4px override — pill shape now controlled by ux-polish.css */
    padding: 13px 21px; font-family: var(--ag-font-body); font-weight: 700; letter-spacing: 0; }
.ag-btn-sm { padding: 9px 13px; font-size: .76rem; }
.ag-btn-accent { background: var(--tollo-lime); color: var(--tollo-forest); border-color: var(--tollo-lime); }
.ag-btn-accent:hover { background: #d5f66c; color: var(--tollo-forest); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(200,239,80,.25); }
.ag-btn-primary, .ag-btn-teal { background: var(--tollo-green); border-color: var(--tollo-green); }
.ag-btn-outline { border-color: var(--tollo-forest); color: var(--tollo-forest); }
.ag-header-actions .ag-btn-outline { border-color: transparent; }

/* Hero, proof and data modules */
.ag-hero-corporate { min-height: 670px; padding: clamp(70px,8vw,124px) 0 70px; background: var(--tollo-forest); }
.ag-hero-overlay { background: linear-gradient(90deg, rgba(9,31,24,.98) 0%, rgba(9,31,24,.91) 48%, rgba(9,31,24,.38) 100%); }
.ag-hero-inner { grid-template-columns: minmax(0,1.05fr) minmax(390px,.8fr); gap: clamp(32px,6vw,90px); align-items: center; }
.ag-hero-title { max-width: 720px; color: #fff; }
.ag-hero-teal { color: var(--tollo-lime); }
.ag-underline-yellow::after { background: var(--tollo-lime); height: 13px; opacity: .75; }
.ag-hero-lead { max-width: 590px; font-size: 1.1rem; color: rgba(255,255,255,.76); }
.ag-hero-badge { border-radius: 3px; color: #d9f6a0; background: rgba(200,239,80,.12); border-color: rgba(200,239,80,.25); }
.ag-hero-badge-dot { background: var(--tollo-lime); }
.ag-hero-photo-wrap { border-radius: 15px; box-shadow: 18px 18px 0 rgba(200,239,80,.86); }
.ag-hero-photo { min-height: 450px; }
.ag-hero-chip { border-radius: 7px; box-shadow: 0 12px 30px rgba(0,0,0,.2); }
.ag-hero-stats { border-top-color: rgba(255,255,255,.18); }
.ag-hero-stat { border-right-color: rgba(255,255,255,.18); }
.ag-hero-stat-val { color: var(--tollo-lime); }
.ag-trust-strip { background: #0f2f26; border: 0; }
.ag-trust-strip-inner { justify-content: space-between; gap: 20px; }
.ag-trust-badge { color: rgba(255,255,255,.74); }
.ag-trust-badge-icon { background: rgba(200,239,80,.12); border-color: rgba(200,239,80,.3); color: var(--tollo-lime); }
.ag-stats-section { padding: 75px 0; background: var(--tollo-cream); }
.ag-stats-section::before { display: none; }
.ag-stat-item { border-right: 1px solid var(--tollo-rule); }
.ag-stat-item:last-child { border: 0; }
.ag-stat-number { color: var(--tollo-forest); font-size: clamp(2.35rem,4vw,4rem); }
.ag-stat-label { color: var(--tollo-ink); }
.ag-stat-unit { color: var(--tollo-muted); }

/* Reusable surfaces, product grid, forms */
.ag-featured-catalog-section, .ag-divisions-overview-section, .ag-brand-portfolio-strip { background: var(--tollo-paper); }
.ag-pmk-grid { gap: 10px; grid-template-rows: 300px 300px; }
.ag-pmk-card { border-radius: var(--ag-radius-sm); } /* BUG 8 FIX: use token instead of hardcoded 8px */
.ag-pmk-label { text-align: left; padding: 0 24px; bottom: 24px; }
.ag-pmk-label h3 { text-transform: none; letter-spacing: -.035em; font-size: 1.65rem; }
.ag-pmk-label span { text-align: left; }
.ag-division-card, .ag-audience-card, .ag-cert-card, .ag-product-card, .ag-form-card, .ag-sidebar-card, .ag-contact-card { border-color: var(--tollo-rule); border-radius: 10px; box-shadow: none; }
.ag-division-card { padding: 30px; border-top: 3px solid transparent; }
.ag-division-card:hover, .ag-audience-card:hover, .ag-product-card:hover { border-color: var(--tollo-green); border-top-color: var(--tollo-lime); box-shadow: var(--tollo-shadow); }
.ag-div-icon { color: var(--tollo-green); }
.ag-link-arrow { color: var(--tollo-green); }
.ag-brand-item { color: var(--tollo-forest); background: var(--tollo-paper); border-radius: 4px; border-color: var(--tollo-rule); font-size: .85rem; }
.ag-brand-item:hover { border-color: var(--tollo-green); }
.ag-origin-map-section, .ag-page-header { background: linear-gradient(120deg, #0f3329, #185c49); }
.ag-origin-map-section.ag-supply-network { background: #ffffff !important; }
.ag-page-header { padding: clamp(70px,10vw,130px) 0; }
.ag-page-header::after { opacity: .18; }
.ag-breadcrumb { background: var(--tollo-paper); border-color: var(--tollo-rule); }
.ag-catalog-layout { padding-block: 54px 96px; }
.ag-filter-panel { border-color: var(--tollo-rule); border-radius: 9px; }
.ag-products-grid { gap: 18px; }
.ag-product-card { padding: 14px; }
.ag-pcard-img-box { height: 210px; border-radius: 6px; }
.ag-pcard-brand, .ag-badge-teal { color: var(--tollo-green); }
.ag-search-box input, .ag-form-group input, .ag-form-group select, .ag-form-group textarea { border-radius: 4px; border-color: var(--tollo-rule); }
.ag-search-box input:focus, .ag-form-group input:focus, .ag-form-group select:focus, .ag-form-group textarea:focus { border-color: var(--tollo-green); box-shadow: 0 0 0 3px rgba(24,112,92,.12); }

/* Original testimonial and conversion blocks */
.ag-proof-section { padding: var(--ag-section-pad) 0; background: #e8eee5; }
.ag-proof-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.ag-proof-card { display: flex; min-height: 290px; flex-direction: column; justify-content: space-between; padding: 30px; background: var(--tollo-paper); border: 1px solid var(--tollo-rule); border-radius: var(--ag-radius-sm); } /* BUG 8 FIX */
.ag-proof-card-featured { color: #fff; background: var(--tollo-forest); border-color: var(--tollo-forest); }
.ag-proof-quote { color: var(--tollo-lime); font-family: Georgia, serif; font-size: 5rem; height: 58px; line-height: 1; }
.ag-proof-card p { max-width: 32ch; font-size: 1.15rem; font-weight: 600; line-height: 1.42; }
.ag-proof-card div { padding-top: 17px; border-top: 1px solid var(--tollo-rule); }
.ag-proof-card strong, .ag-proof-card span:last-child { display: block; }
.ag-proof-card span:last-child { color: var(--tollo-muted); font-size: .82rem; }
.ag-proof-card-featured div { border-color: rgba(255,255,255,.2); }
.ag-proof-card-featured span:last-child { color: rgba(255,255,255,.65); }
.ag-lead-section { padding: clamp(60px, 8vw, 90px) 0; background: var(--tollo-paper); }
.ag-lead-shell { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 64px); padding: clamp(32px, 5vw, 56px); background: var(--tollo-forest); border-radius: 18px; align-items: center; box-shadow: 0 20px 50px rgba(12, 27, 42, 0.14); }
.ag-lead-copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.5rem); margin: 12px 0 16px 0; line-height: 1.25; }
.ag-lead-copy p { color: rgba(255,255,255,.78); font-size: 1.05rem; line-height: 1.65; max-width: 550px; margin-bottom: 24px; }
.ag-lead-points { display: grid; gap: 12px; color: #d7eead; font-size: .92rem; font-weight: 500; }
.ag-lead-points > span::before { content: '\2713'; margin-right: 10px; color: var(--tollo-lime); font-weight: bold; }
.ag-lead-points span span::before,
.ag-lead-points span [data-i18n]::before { content: none !important; margin: 0 !important; }

/* Lead Form Card Styling */
.ag-lead-form-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ag-lform-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e2e8f0;
}

.ag-lform-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.01em;
}

.ag-lform-header p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.ag-lform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .ag-lform-grid { grid-template-columns: 1fr; }
}

.ag-lform-field {
    display: flex;
    flex-direction: column;
}

.ag-lform-label-text {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ag-lform-label-text .ag-req {
    color: #ef4444;
}

.ag-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.ag-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 3;
    transition: color 0.2s ease;
}

.ag-input-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.ag-input-wrap input,
.ag-lead-form .ag-input-wrap input,
.ag-lead-form-card .ag-input-wrap input {
    width: 100% !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 44px !important;
    padding-right: 14px !important;
    font-family: inherit !important;
    font-size: 0.88rem !important;
    color: #0f172a !important;
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    outline: none !important;
}

.ag-input-wrap input::placeholder,
.ag-lead-form .ag-input-wrap input::placeholder {
    color: #94a3b8 !important;
    font-size: 0.86rem !important;
    opacity: 1 !important;
}

.ag-input-wrap input:focus {
    background: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}

.ag-input-wrap input:focus + .ag-input-icon,
.ag-input-wrap input:focus ~ .ag-input-icon {
    color: #10b981 !important;
}

.ag-input-wrap input.is-invalid {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.ag-lead-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(163, 230, 53, 0.35);
}

.ag-lead-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(163, 230, 53, 0.45);
}

.ag-lead-submit-btn:disabled,
.ag-lead-submit-btn.is-submitting {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}

.ag-lform-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: #64748b;
    font-size: 0.75rem;
    line-height: 1.4;
}

.ag-lform-privacy svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.ag-lform-privacy small {
    font-size: inherit;
    color: inherit;
}

/* Footer CTA colors handled in theme-modes.css */
.ag-footer-main { background: #10261f; }
.ag-footer-bottom { background: #0b1c17; }
.ag-footer-rfq { padding: 0; color: rgba(255,255,255,.55); font: inherit; font-size: .87rem; text-align: left; background: transparent; border: 0; cursor: pointer; }
.ag-footer-rfq:hover { color: var(--tollo-lime); }
.ag-footer-wa-btn, .ag-whatsapp-fab { background: #25d366; }
.ag-whatsapp-fab { right: 28px; bottom: 28px; width: 58px; height: 58px; border-radius: 50%; box-shadow: 0 10px 25px rgba(18,140,126,.28); }
/* RFQ FAB sits cleanly above WhatsApp FAB */
.ag-rfq-float-btn { right: 28px; bottom: 102px; width: 58px; height: 58px; left: auto; }

@media (max-width: 1200px) {
    .ag-main-nav { display: none; }
    .ag-hamburger { display: inline-flex; }
    .ag-header-actions .ag-btn-outline { display: none; }
    .ag-hero-inner { grid-template-columns: 1fr .8fr; }
}
@media (max-width: 900px) {
    .ag-hero-corporate { min-height: auto; }
    .ag-hero-inner, .ag-lead-shell { grid-template-columns: 1fr; }
    .ag-hero-right { max-width: 560px; margin: 15px auto 0; width: calc(100% - 22px); }
    .ag-proof-grid { grid-template-columns: 1fr; }
    .ag-proof-card { min-height: 220px; }
    .ag-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 26px; }
    .ag-footer-col-main { grid-column: 1 / -1; }
    .ag-catalog-layout { grid-template-columns: 1fr; }
    .ag-filter-panel { position: static; }
}
@media (max-width: 640px) {
    .ag-container { padding-inline: 18px; }
    .ag-topbar { display: none; }
    .ag-header-container { min-height: 68px; }
    .ag-brand-name { font-size: 1.25rem; }
    .ag-brand-tagline { display: none; }
    .ag-header-actions .ag-btn-accent { display: none; }
    .ag-hero-corporate { padding-top: 65px; }
    .ag-hero-title { font-size: clamp(2.6rem, 13vw, 4rem); }
    .ag-hero-lead { font-size: .98rem; }
    .ag-hero-actions { flex-direction: column; align-items: stretch; }
    .ag-hero-actions .ag-btn { width: 100%; }
    .ag-hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 0; }
    .ag-hero-stat:nth-child(2) { border-right: 0; }
    .ag-hero-photo { min-height: 330px; }
    .ag-hero-chip { transform: scale(.78); transform-origin: center; }
    .ag-chip-top { left: -27px; }.ag-chip-bottom { right: -27px; }
    .ag-trust-strip-inner { justify-content: flex-start; overflow-x: auto; padding-block: 14px; }
    .ag-trust-badge { flex: 0 0 max-content; }
    .ag-stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
    .ag-stat-item { padding: 20px 12px; }.ag-stat-item:nth-child(2) { border-right: 0; } /* BUG 4 FIX: restore vertical padding on mobile */
    .ag-pmk-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, 180px); gap: 6px; }
    .ag-pmk-card.ag-pmk-wide { grid-column: span 2; }
    .ag-pmk-label { padding: 0 15px; bottom: 15px; }.ag-pmk-label h3 { font-size: 1.13rem; }
    .ag-pmk-label span { font-size: .64rem; }
    .ag-divisions-grid, .ag-products-grid { grid-template-columns: 1fr; }
    .ag-proof-card { padding: 24px; }
    .ag-lead-shell { padding: 24px 18px; margin-inline: -4px; }
    .ag-footer-grid { grid-template-columns: 1fr; }
    .ag-footer-col-main { grid-column: auto; }
    .ag-footer-bottom-inner { align-items: flex-start; flex-direction: column; }
    .ag-whatsapp-fab { width: 48px; height: 48px; right: 16px; bottom: 16px; }
    .ag-rfq-float-btn { width: 48px; height: 48px; right: 16px; bottom: 78px; left: auto; }
}
