/* ============================================================
   VEGTRADEHUB — GLOBAL STYLESHEET
   ============================================================ */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    background: #145a23;
    color: white;
    font-size: 0.82rem;
    padding: 0.45rem 0;
}

.topbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topbar .left span,
.topbar .right span {
    margin-right: 1.5rem;
    opacity: 0.9;
}

.topbar .right a {
    color: #7ee89b;
    font-weight: 600;
    margin-left: 1rem;
    transition: color 0.3s;
}

.topbar .right a:hover { color: #fff; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
    background: linear-gradient(180deg, #2ea043 0%, #238636 100%);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-bottom: 3px solid #145a23;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    animation: logo-bounce 2.4s ease-in-out infinite;
}

@keyframes logo-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.logo-text h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 1px 2px 4px rgba(0,0,0,0.2);
}

.logo-text span {
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Nav */
nav {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

nav a {
    color: rgba(255,255,255,0.88);
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
}

nav a:hover,
nav a.active {
    background: rgba(255,255,255,0.18);
    color: #fff;
}

nav .nav-cta {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    color: #1e7e34;
    font-weight: 700;
    padding: 0.5rem 1.3rem;
    border-radius: 20px;
    margin-left: 0.6rem;
    box-shadow: 0 4px 0 #b3b3b3, 0 5px 10px rgba(0,0,0,0.2);
    transition: all 0.15s;
    border: 1px solid #fff;
}

nav .nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #b3b3b3, 0 8px 15px rgba(0,0,0,0.25);
}

nav .nav-cta:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #b3b3b3, inset 0 2px 5px rgba(0,0,0,0.1);
}

/* Mobile hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.4rem;
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ============================================================
   PAGE HERO (shared hero banner style)
   ============================================================ */
.page-hero {
    background: radial-gradient(circle at 50% 50%, #2ea043 0%, #1e7e34 70%, #145a23 100%);
    color: #fff;
    text-align: center;
    padding: 4.5rem 2rem 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.1);
    border-bottom: 5px solid #145a23;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 40%, rgba(255,255,255,0.1) 0%, transparent 55%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

.page-hero > * { position: relative; z-index: 1; }

.page-hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 0 #145a23, 0 8px 15px rgba(0,0,0,0.3);
    animation: fadeUp 0.7s ease-out;
}

.page-hero p {
    font-size: 1.2rem;
    opacity: 0.92;
    max-width: 680px;
    margin: 0 auto;
    animation: fadeUp 0.7s ease-out 0.15s backwards;
}

/* Breadcrumb inside hero */
.breadcrumb {
    font-size: 0.82rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    animation: fadeUp 0.7s ease-out 0.05s backwards;
}

.breadcrumb a { color: #fff; opacity: 0.7; transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { margin: 0 0.4rem; opacity: 0.5; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.3rem;
    color: #1e7e34;
    margin-bottom: 0.6rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #5cb85c);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 680px;
    margin: 1.2rem auto 0;
}

/* Generic card */
.card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15), 0 6px 6px -5px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255,255,255,0.5);
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 35px -5px rgba(30,126,52,0.25), 0 10px 10px -5px rgba(0,0,0,0.1);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: linear-gradient(160deg, #145a23 0%, #1e7e34 100%);
    color: #fff;
    margin-top: auto;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
    border-top: 5px solid #28a745;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.6fr;
    gap: 2.5rem;
}

.footer-col h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    color: #7ee89b;
}

.footer-col p,
.footer-col a {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.72);
    line-height: 2;
    display: block;
    transition: color 0.25s;
}

.footer-col a:hover { color: #fff; }

.footer-col .logo-footer {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-footer-img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.footer-col .tagline-footer {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
    display: block;
}

/* Social / contact pills */
.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255,255,255,0.08);
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    margin: 0.2rem 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.82);
    transition: background 0.25s;
}

.contact-pill:hover { background: rgba(255,255,255,0.15); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ============================================================
   UTILITY / ANIMATION CLASSES
   ============================================================ */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    /* Hamburger visible */
    .hamburger { display: flex; }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: #1a6b2e;
        flex-direction: column;
        padding: 1rem 1.5rem 1.5rem;
        gap: 0.15rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }

    nav.open { display: flex; }

    nav a { padding: 0.65rem 1rem; font-size: 0.95rem; }
    nav .nav-cta { margin: 0.4rem 0 0; border-radius: 8px; text-align: center; }

    .header-inner { flex-wrap: wrap; }

    /* Topbar Mobile */
    .topbar-inner { flex-direction: column; text-align: center; padding: 0.5rem 1rem; }
    .topbar .left span, .topbar .right span { display: block; margin: 0 0 0.3rem 0; }
    .topbar .right a { margin-left: 0; display: inline-block; margin-top: 0.3rem; }

    .topbar .left span { margin-right: 0; } /* override existing mobile rule */

    .page-hero { padding: 3rem 1.5rem 2.5rem; }
    .page-hero h2 { font-size: 2rem; }
    .page-hero p { font-size: 1rem; }

    /* Mobile adjustments for Home Hero */
    .home-hero { padding: 4rem 1.5rem 3rem; }
    .home-hero h2 { font-size: 2.2rem; }
    .home-hero p { font-size: 1.1rem; }

    /* Mobile adjustments for Stats Bar */
    .stats-bar { gap: 2rem; margin-top: 2rem; }
    .stat-number { font-size: 2.2rem; }


    .container { padding: 2.5rem 1.2rem; }

    /* Mobile grids */
    .featured-strip, .why-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}
