/* ==========================================================================
   FreshGlobal — global stylesheet
   ========================================================================== */

:root {
    --green-dark: #123b1e;
    --green: #1f7a34;
    --green-mid: #20a53a;
    --green-light: #e9f5ea;
    --green-pale: #f3f9f0;
    --text: #1c2b20;
    --text-muted: #5f6d64;
    --white: #ffffff;
    --border: #e4e9e2;
    --radius: 10px;
    --shadow: 0 10px 30px rgba(18, 59, 30, 0.08);
    --shadow-lg: 0 20px 50px rgba(18, 59, 30, 0.14);
    --container: 1200px;
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Poppins', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Google Material Symbols (Rounded) — icon font. Sized via font-size on
   the element itself or an ancestor, same technique as any icon font. */
.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Entrance-animation targets (see main.js / anime.js). Hidden only when
   JS is confirmed running (html.js, set inline in <head>); otherwise
   content stays visible.
   .reveal        — animates immediately on page load (hero).
   .reveal-scroll — animates the first time its section scrolls into view. */
html.js .reveal { opacity: 0; }
html.js .reveal-scroll { opacity: 0; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    color: var(--text);
    margin: 0 0 .5em;
    line-height: 1.25;
    font-weight: 700;
}

p { margin: 0 0 1em; color: var(--text-muted); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 90px 0; }
.section-tight { padding: 60px 0; }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 54px; }
.section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--green);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 16px;
}
.section-head .eyebrow .material-symbols-rounded {
    font-size: 15px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--green-light);
    border-radius: 50%;
}
.section-head h2 {
    font-size: 44px;
    line-height: 1.22;
    letter-spacing: -.01em;
}
.section-head p { margin-top: 14px; font-size: 16px; }

.bg-light { background: var(--green-pale); }

/* Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.btn-primary { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-outline { background: transparent; color: var(--green); border-color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 100; }

.topbar { background: var(--green-dark); color: #d9e7dc; font-size: 13px; }
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 24px;
}
.topbar-left, .topbar-right { display: flex; gap: 24px; }
.topbar a, .topbar span { color: #d9e7dc; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: var(--white); }
.topbar .material-symbols-rounded { font-size: 16px; }

.navbar { background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 24px;
}

.logo,
.logo:hover,
.logo:focus { text-decoration: none; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    background: var(--green-light);
    border-radius: 50%;
    font-size: 16px;
    color: var(--green);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-title { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--text); }
.logo-sub { font-size: 11px; color: var(--text-muted); letter-spacing: .04em; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text);
    padding: 6px 0;
    position: relative;
    text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus {
    text-decoration: none;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--green);
    transition: width .2s ease;
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--green); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: 90px 0 90px;
    min-height: 600px;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 70%;
    overflow: hidden;
    z-index: 0;
}
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 70%;
    opacity: 0;
    transition: opacity 1.4s ease;
    z-index: 1;
}
.hero-video.is-playing { opacity: 1; }
.hero .container { position: relative; z-index: 3; width: 100%; }

/* Solid (not blurred, not translucent) card — reads cleanly over any
   frame of the video without dimming or glowing the footage itself. */
.hero-copy {
    max-width: 560px;
    background: var(--green-dark);
    border-radius: 16px;
    padding: 40px 44px;
    box-shadow: 0 24px 60px rgba(9, 30, 15, 0.35);
}
.hero-copy h1 {
    font-size: 50px;
    letter-spacing: -.01em;
    line-height: 1.18;
    color: var(--white);
}
.hero-copy h1 .accent { color: #7bd694; }
.hero-copy .divider {
    width: 70px; height: 4px;
    background: #7bd694;
    border-radius: 2px;
    margin: 20px 0;
}
.hero-copy p {
    font-size: 16px;
    max-width: 460px;
    color: #cfe0d2;
}
.hero-actions { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: #7bd694; border-color: #7bd694; color: var(--green-dark); }
.hero-actions .btn-primary:hover { background: var(--white); border-color: var(--white); }
.hero-actions .btn-outline { color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.hero-actions .btn-outline:hover { background: var(--white); color: var(--green-dark); border-color: var(--white); }

.hero-badge {
    position: absolute;
    top: 44px;
    right: 8%;
    width: 122px;
    height: 122px;
    z-index: 3;
}
.badge-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: badge-spin 16s linear infinite;
}
.badge-ring-text {
    font-family: var(--font-body);
    font-size: 8.4px;
    font-weight: 700;
    letter-spacing: 1.5px;
    fill: var(--green);
}
.badge-core {
    position: absolute;
    inset: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, #ffffff 0%, #eef8ef 70%, #e3f4e6 100%);
    box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(31, 122, 52, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.badge-core .material-symbols-rounded { color: var(--green-mid); font-size: 20px; margin-bottom: 2px; }
.badge-core strong { color: var(--green-dark); font-size: 21px; font-family: var(--font-head); line-height: 1; }
.badge-core span {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.2;
    margin-top: 3px;
}

@keyframes badge-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .badge-ring { animation: none; }
}

/* Feature strip — floats over the hero/body seam */
.feature-strip-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -70px;
    z-index: 3;
}
.feature-strip {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: start;
    gap: 20px;
}
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: flex; align-items: center; justify-content: center;
    font-size: 34px;
    color: var(--green);
}
.feature-item h4 { font-size: 14px; margin-bottom: 2px; font-family: var(--font-body); font-weight: 600; }
.feature-item p { font-size: 12.5px; margin: 0; }

/* ==========================================================================
   Products
   ========================================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card .thumb { height: 190px; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .body { padding: 18px 20px 22px; display: flex; align-items: center; gap: 14px; }
.product-card .icon-badge {
    flex: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.product-card h3 { font-size: 17px; margin-bottom: 4px; font-family: var(--font-body); font-weight: 600; }
.product-card a.view-link { font-size: 13px; color: var(--green); font-weight: 600; }

.products-footer { text-align: center; margin-top: 40px; }

/* ==========================================================================
   About / trade section
   ========================================================================== */
.trade-section { padding: 90px 0; }
.trade-grid {
    display: grid;
    grid-template-columns: .95fr 1.1fr .8fr;
    gap: 34px;
    align-items: stretch;
}

/* Grid items default to min-width:auto, which lets a long word or
   nowrap button force a track wider than its container (visible as a
   horizontal-scroll bug, worst on mobile). Reset it everywhere. */
.feature-strip > *,
.product-grid > *,
.trade-grid > *,
.stats-grid > *,
.footer-inner > * {
    min-width: 0;
}
.trade-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.trade-media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

.trade-copy .eyebrow {
    color: var(--green); font-weight: 600; text-transform: uppercase;
    font-size: 13px; letter-spacing: .06em; margin-bottom: 8px; display: block;
}
.trade-copy h2 { font-size: 33px; line-height: 1.25; }
.trade-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.trade-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.trade-list li .tick {
    flex: none; width: 20px; height: 20px; border-radius: 50%;
    background: var(--green); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; margin-top: 2px;
}

.trade-side {
    background: var(--green-pale);
    border-radius: var(--radius);
    padding: 34px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}
.trade-side .icon-circle {
    position: relative;
    flex: none;
    width: 96px; height: 96px; border-radius: 50%;
    background: var(--white); color: var(--green);
    border: 1px solid rgba(31, 122, 52, 0.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 40px; box-shadow: var(--shadow);
    margin-bottom: 6px;
}
.trade-side .icon-circle-accent {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--green);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    border: 2px solid var(--green-pale);
}
.trade-side h3 { font-size: 20px; margin: 6px 0 6px; }
.trade-side p { font-size: 14px; margin-bottom: 16px; }
.trade-side .btn { align-self: center; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats-section { padding: 70px 0; text-align: center; }
.stats-section h2 { font-size: 30px; margin-bottom: 44px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.stat-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stat-icon {
    width: 96px; height: 96px; border-radius: 50%;
    border: 2px solid var(--green-light);
    background: var(--green-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--green);
}
.stat-icon .material-symbols-rounded { font-size: 42px; }
.stat-item strong {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 34px;
    letter-spacing: -.02em;
    color: var(--green);
}
/* Direct-child selector so this only matches the label span, not an
   icon span nested two levels deep inside .stat-icon. */
.stat-item > span { font-size: 14px; color: var(--text-muted); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
    background: linear-gradient(120deg, var(--green-dark), var(--green));
    color: var(--white);
    border-radius: var(--radius);
    padding: 50px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); font-size: 28px; margin-bottom: 6px; }
.cta-banner p { color: #d9e7dc; margin: 0; }
.cta-banner .btn-primary { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.cta-banner .btn-primary:hover { background: var(--green-pale); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--green-dark); color: #cfe0d2; }
.footer-inner {
    padding: 70px 24px 40px;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 30px;
}
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #cfe0d2; font-size: 14px; }
.footer-col a:hover { color: var(--white); }
.footer-brand p { color: #b6cbb9; font-size: 14px; margin: 14px 0 18px; }
.logo-footer .logo-title { color: var(--white); }
.logo-footer .logo-sub { color: #b6cbb9; }
.logo-footer .logo-icon { background: rgba(255,255,255,.12); }

.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.social-links a:hover { background: var(--green-mid); }
.social-links a { font-size: 14px; }

.footer-contact li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #cfe0d2; }
.footer-contact li .material-symbols-rounded { width: 16px; margin-top: 2px; color: #8fbf98; font-size: 16px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #a9c3ad;
}
.footer-legal { display: flex; gap: 10px; }
.footer-legal a { color: #a9c3ad; }
.footer-legal a:hover { color: var(--white); }

/* ==========================================================================
   Page header (interior pages)
   ========================================================================== */
.page-hero {
    background: var(--green-pale);
    padding: 46px 0;
}
.page-hero h1 { font-size: 34px; margin-bottom: 6px; }
.breadcrumb { font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--green); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
    .footer-inner { grid-template-columns: 1fr 1fr 1fr; }
    .trade-grid { grid-template-columns: 1fr 1fr; }
    .trade-side { grid-column: 1 / -1; flex-direction: row; align-items: center; text-align: left; }
    .trade-side .icon-circle { margin-bottom: 0; }
    .trade-side .btn { align-self: auto; margin-left: auto; }
}

@media (max-width: 900px) {
    .topbar-left span:last-child,
    .topbar-right { display: none; }
    .main-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: var(--white);
        box-shadow: var(--shadow);
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }
    .main-nav.open { max-height: 500px; }
    .main-nav ul { flex-direction: column; padding: 10px 24px 20px; gap: 4px; }
    .main-nav a { display: block; padding: 10px 0; }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }

    .hero { padding: 130px 0 60px; min-height: 520px; }
    .hero-badge { top: 16px; right: 16px; width: 90px; height: 90px; }
    .badge-ring-text { font-size: 9.5px; }
    .badge-core .material-symbols-rounded { font-size: 16px; }
    .badge-core strong { font-size: 16px; }
    .badge-core span { font-size: 7px; }
    .hero-copy { max-width: 100%; padding: 30px 26px; }
    .hero-copy h1 { font-size: 34px; }
    .feature-strip { grid-template-columns: repeat(3, 1fr); }
    .feature-strip-wrap { position: relative; bottom: auto; left: auto; right: auto; margin-top: 24px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .trade-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    .feature-strip { grid-template-columns: repeat(2, 1fr); }
    .hero-copy h1 { font-size: 30px; }
    .section-head h2 { font-size: 32px; }
    .cta-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .product-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; padding: 50px 24px 30px; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }
    .section { padding: 60px 0; }
    .feature-strip { grid-template-columns: 1fr 1fr; padding: 20px; }
    .feature-strip-wrap { margin-top: 16px; }
    .feature-icon { width: 36px; height: 36px; font-size: 28px; }
    .hero { padding-bottom: 70px; }
}
