/* ============================================================
 * WILLKIN GREEN COFFEE — MAIN CSS
 * Design system: green-dark #1a3d2b, green-mid #2d6a4f,
 * green-bright #52b788, green-light #95d5b2, white, offwhite #f8f9f6
 * ============================================================ */

/* ---- RESET & ROOT ---- */
:root {
    --green-dark: #1a3d2b;
    --green-mid: #2d6a4f;
    --green-bright: #52b788;
    --green-light: #95d5b2;
    --green-fade: #e6f4ec;
    --offwhite: #f8f9f6;
    --white: #ffffff;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --gold: #c9a44b;
    --gold-light: #fef9e7;
    --border: #e5e7eb;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
    --radius: 8px;
    --radius-lg: 14px;
    --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-mid); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-dark); }
ul { list-style: none; }

/* ---- UTILITY ---- */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--alt { background: var(--offwhite); }
.section--dark { background: var(--green-dark); color: var(--white); }
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 12px; }
.section-header p { color: var(--text-muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.section--dark .section-header h2 { color: var(--white); }
.section--dark .section-header p { color: rgba(255,255,255,.7); }

/* ---- HEADER ---- */
.site-header {
    background: var(--green-dark);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
    border-bottom: 3px solid var(--green-bright);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; gap: 14px;
}
.site-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; flex-shrink: 0;
}
.logo-icon {
    width: 38px; height: 38px; background: var(--green-bright);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
}
.logo-icon svg { width: 20px; height: 20px; fill: var(--white); }
.logo-text { font-size: 16px; font-weight: 800; color: var(--white); line-height: 1.15; }
.logo-text small {
    display: block; font-size: 10px; font-weight: 500;
    color: var(--green-light); letter-spacing: .06em; text-transform: uppercase;
}

/* ---- NAV ---- */
.primary-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.primary-nav a {
    color: var(--green-light); font-size: 14px; font-weight: 600;
    padding: 6px 4px; border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.primary-nav a:hover { color: var(--white); border-bottom-color: var(--green-bright); }
.primary-nav .nav-cta {
    background: var(--green-bright); color: var(--green-dark) !important;
    padding: 8px 18px; border-radius: 6px; font-weight: 700;
    border-bottom: none;
}
.primary-nav .nav-cta:hover { background: var(--white); }
.lang-switcher { display: flex; gap: 8px; }
.lang-switcher a { padding: 4px 6px; border-radius: 4px; font-size: 14px; }
.lang-switcher a.active { background: rgba(255,255,255,.15); }

/* ---- BUTTON ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 13px 28px; font-size: 15px; font-weight: 700;
    border-radius: 8px; transition: all .22s; line-height: 1.2;
    border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green-bright); color: var(--green-dark); border-color: var(--green-bright); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn-white { background: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn-white:hover { background: transparent; color: var(--white); }
.btn-outline { background: transparent; color: var(--green-mid); border-color: var(--green-mid); }
.btn-outline:hover { background: var(--green-mid); color: var(--white); }
.btn-outline-white { background: transparent; color: rgba(255,255,255,.8); border-color: rgba(255,255,255,.4); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); color: var(--white); border-color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-row--center { justify-content: center; }

/* ---- HERO ---- */
.hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0f2d1e 100%);
    color: var(--white); padding: 90px 0 80px; text-align: center;
}
.hero h1 { font-size: 44px; font-weight: 900; line-height: 1.2; margin-bottom: 16px; letter-spacing: -.5px; }
.hero h1 span { display: block; color: var(--green-bright); font-size: 28px; font-weight: 600; margin-top: 4px; }
.hero .hero-sub { font-size: 18px; color: rgba(255,255,255,.75); max-width: 680px; margin: 0 auto 36px; }
.hero .btn-row { justify-content: center; }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--green-mid); color: var(--white); padding: 28px 0; }
.trust-inner { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.trust-item { text-align: center; }
.trust-item strong { display: block; font-size: 24px; font-weight: 800; color: var(--green-bright); }
.trust-item span { font-size: 13px; font-weight: 500; color: var(--green-light); text-transform: uppercase; letter-spacing: .04em; }

/* ---- PRODUCT GRID ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.product-card {
    background: var(--white); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow); border: 1px solid var(--border);
    transition: transform .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__image {
    position: relative; height: 200px; overflow: hidden; background: var(--green-fade);
}
.product-card__image img {
    width: 100%; height: 100%; object-fit: cover; transition: transform .4s;
}
.product-card:hover .product-card__image img { transform: scale(1.06); }
.product-card__badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--green-dark); color: var(--white);
    font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: 4px; letter-spacing: .04em; text-transform: uppercase;
    border: 1px solid var(--green-bright);
}
.product-card__sca {
    position: absolute; top: 12px; right: 12px;
    background: var(--gold); color: #1a1a1a;
    font-size: 11px; font-weight: 700; padding: 4px 10px;
    border-radius: 4px; letter-spacing: .03em;
}
.product-card__body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__origin {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
}
.product-card__title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.product-card__altitude { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.product-card__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tag {
    display: inline-block; font-size: 11px; font-weight: 600; padding: 3px 10px;
    border-radius: 12px; letter-spacing: .02em;
}
.tag--green { background: var(--green-fade); color: var(--green-mid); }
.tag--gold { background: var(--gold-light); color: #8b6914; }
.product-card__price {
    margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border);
    display: flex; align-items: baseline; justify-content: space-between;
}
.product-card__price .price { font-size: 16px; font-weight: 800; color: var(--green-dark); }
.product-card__price .port { font-size: 12px; color: var(--text-muted); }
.product-card__link {
    display: block; margin-top: 12px; text-align: center;
    font-size: 13px; font-weight: 700; color: var(--green-bright);
    padding: 8px; border: 1px solid var(--green-bright); border-radius: 6px;
    transition: all .2s;
}
.product-card__link:hover { background: var(--green-bright); color: var(--green-dark); }

/* ---- ABOUT / WHY US ---- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.feature-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px;
    box-shadow: var(--shadow); transition: transform .2s;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-card__icon {
    width: 48px; height: 48px; background: var(--green-fade);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.feature-card__icon svg { width: 24px; height: 24px; fill: var(--green-mid); }
.feature-card h4 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- PROCESS STEPS ---- */
.process-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.process-step {
    text-align: center; padding: 24px 16px;
    background: var(--white); border-radius: var(--radius-lg);
    border: 1px solid var(--border); box-shadow: var(--shadow);
}
.process-step__num {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--green-fade); color: var(--green-mid);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 800; margin-bottom: 12px;
}
.process-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ---- PROOF SECTION ---- */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.proof-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
    box-shadow: var(--shadow); transition: transform .2s;
}
.proof-card:hover { transform: translateY(-2px); }
.proof-card__label {
    display: inline-block; font-size: 11px; font-weight: 700;
    padding: 3px 10px; border-radius: 12px; margin-bottom: 10px;
    background: var(--gold-light); color: #8b6914;
}
.proof-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.proof-card p { font-size: 13px; color: var(--text-muted); }

/* ---- ORDER TERMS ---- */
.terms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.term-item {
    background: var(--white); border-radius: var(--radius);
    padding: 20px 18px; border: 1px solid var(--border);
}
.term-item h4 { font-size: 14px; font-weight: 700; color: var(--green-mid); margin-bottom: 4px; }
.term-item p { font-size: 13px; color: var(--text-muted); }

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0f2d1e 100%);
    color: var(--white); padding: 72px 0; text-align: center;
}
.cta-section h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,.7); max-width: 560px; margin: 0 auto 30px; }
.cta-section .btn-row { justify-content: center; }

/* ---- FOOTER ---- */
.site-footer { background: #122618; color: rgba(255,255,255,.6); padding: 60px 0 30px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--white); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid a { color: rgba(255,255,255,.5); font-size: 13px; display: block; padding: 4px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--green-bright); }
.footer-brand .logo-text { font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.4); line-height: 1.6; }
.footer-bottom {
    margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12px; color: rgba(255,255,255,.3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}

/* ---- PRODUCT HERO (archive / products page) ---- */
.product-hero {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0f2d1e 100%);
    color: var(--white); padding: 70px 0 60px; text-align: center;
}
.product-hero h1 { font-size: 38px; font-weight: 800; margin-bottom: 14px; }
.product-hero p { font-size: 16px; color: rgba(255,255,255,.7); max-width: 700px; margin: 0 auto 28px; }
.product-hero .btn-row { justify-content: center; }

/* ---- FILTER BAR (archive) ---- */
.filter-bar {
    background: var(--offwhite); border-bottom: 1px solid var(--border);
    padding: 16px 0; position: sticky; top: 65px; z-index: 50;
}
.filter-inner { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-btn {
    padding: 7px 16px; font-size: 13px; font-weight: 600;
    border: 1px solid var(--border); border-radius: 20px;
    background: var(--white); color: var(--text-muted); cursor: pointer;
    transition: all .2s;
}
.filter-btn:hover { border-color: var(--green-bright); color: var(--green-mid); }
.filter-btn.active { background: var(--green-mid); color: var(--white); border-color: var(--green-mid); }

/* ---- SINGLE PRODUCT ---- */
.single-product { padding: 60px 0; }
.single-product-header { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; align-items: start; }
.single-product-img { border-radius: var(--radius-lg); overflow: hidden; background: var(--green-fade); }
.single-product-img img { width: 100%; height: auto; }
.single-product-meta h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.single-product-meta .meta-line { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.single-product-meta .badges-row { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em; }
.badge--grade { background: var(--green-dark); color: var(--white); }
.badge--sca { background: var(--gold); color: #1a1a1a; }
.badge--tag { background: var(--green-fade); color: var(--green-mid); }

/* ---- SPECS TABLE ---- */
.spec-table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; }
.spec-table tr { border-bottom: 1px solid var(--border); }
.spec-table th {
    padding: 12px 16px; text-align: left; font-size: 13px; font-weight: 700;
    color: var(--green-mid); background: var(--offwhite); width: 180px;
    white-space: nowrap;
}
.spec-table td { padding: 12px 16px; font-size: 14px; }

/* ---- FLAVOR PILLS ---- */
.flavor-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.pill {
    display: inline-block; font-size: 13px; font-weight: 600;
    padding: 6px 14px; border-radius: 20px;
    background: var(--green-fade); color: var(--green-dark);
}
.pill--alt { background: var(--gold-light); color: #8b6914; }
.flavor-label { font-size: 13px; font-weight: 700; color: var(--text-muted); margin-right: 4px; align-self: center; }

/* ---- PROCESS CARDS ---- */
.process-section { margin: 36px 0; }
.process-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 22px; margin-bottom: 14px;
    box-shadow: var(--shadow);
}
.process-card h4 { font-size: 16px; font-weight: 700; color: var(--green-mid); margin-bottom: 6px; }
.process-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ---- CROSS SELL ---- */
.shopee-cross-sell {
    background: #fff5e6; border: 1px solid #fcd34d; border-radius: var(--radius-lg);
    padding: 24px; margin: 32px 0; display: flex; align-items: flex-start; gap: 16px;
}
.shopee-cross-sell__icon {
    width: 48px; height: 48px; border-radius: 10px; background: #fcd34d;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #92400e; font-weight: 900;
}
.shopee-cross-sell h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.shopee-cross-sell p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.shopee-cross-sell a {
    font-size: 14px; font-weight: 700; color: #92400e;
    display: inline-flex; align-items: center; gap: 6px;
}

/* ---- CTA BOX ---- */
.cta-box {
    background: var(--green-fade); border: 2px solid var(--green-bright);
    border-radius: var(--radius-lg); padding: 32px; margin: 40px 0; text-align: center;
}
.cta-box h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.cta-box p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }
.cta-box a { margin: 0 8px; }

/* ---- PROOF CENTER PAGE ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; margin: 40px 0; }
.gallery-item { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); position: relative; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-item__caption {
    padding: 10px 14px; font-size: 13px; font-weight: 600;
    background: var(--white); color: var(--text);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .hero h1 { font-size: 30px; }
    .hero h1 span { font-size: 20px; }
    .single-product-header { grid-template-columns: 1fr; }
    .spec-table th { width: 130px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .section { padding: 48px 0; }
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: 26px; }
    .hero h1 span { font-size: 18px; }
    .hero .hero-sub { font-size: 15px; }
    .section-header h2 { font-size: 26px; }
    .product-grid { grid-template-columns: 1fr; }
    .trust-inner { gap: 24px; }
    .primary-nav { gap: 10px; font-size: 13px; }
    .btn-row { flex-direction: column; }
    .btn { width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .filter-inner { overflow-x: auto; flex-wrap: nowrap; }
}
