/* coffeegear.co — Espresso Bar Theme */
:root {
    --bg: #FBF7F0;
    --surface: #FFFFFF;
    --primary: #2C1810;
    --accent: #B87333;
    --accent-hover: #9A6030;
    --secondary: #5C3D2E;
    --text: #1A1A1A;
    --text-muted: #6B5B4F;
    --border: #E8DFD5;
    --hero-overlay: rgba(44, 24, 16, 0.55);
    --shadow: 0 2px 12px rgba(44, 24, 16, 0.08);
    --shadow-hover: 0 8px 30px rgba(44, 24, 16, 0.14);
    --radius: 10px;
    --transition: 0.25s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.25; color: var(--primary); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: 1.3rem; }
.spec-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--accent);
    letter-spacing: 0.02em;
    display: block;
    margin-bottom: 0.5rem;
}
.section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.section-intro {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

/* ── Navigation ── */
.site-nav {
    position: sticky; top: 0; z-index: 100;
    background: var(--primary);
    padding: 0.8rem 0;
    box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.site-nav .container { display: flex; align-items: center; justify-content: space-between; }
.logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem; font-weight: 700;
    color: #FBF7F0 !important; display: flex; align-items: center; gap: 0.4rem;
}
.logo-icon { font-size: 1.2em; }
.nav-links a {
    color: rgba(251,247,240,0.85); font-size: 0.92rem; font-weight: 500;
    padding: 0.4rem 1rem; border-radius: 6px; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #FBF7F0; background: rgba(184,115,51,0.25); }
.nav-links { display: flex; gap: 0.25rem; }
.nav-toggle { display: none; background: none; border: none; color: #FBF7F0; font-size: 1.5rem; cursor: pointer; }

/* ── Hero ── */
.hero {
    position: relative; min-height: 520px;
    display: flex; align-items: center;
    background-size: cover; background-position: center;
    overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(44,24,16,0.72) 0%, rgba(44,24,16,0.35) 100%);
}
.hero-content {
    position: relative; z-index: 2; max-width: 640px;
    padding: 4rem 0; margin-left: 5%;
}
.hero h1 { color: #FBF7F0; margin-bottom: 1rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p { color: rgba(251,247,240,0.9); font-size: 1.15rem; margin-bottom: 2rem; max-width: 500px; }
.btn {
    display: inline-block; padding: 0.85rem 2rem;
    background: var(--accent); color: #FBF7F0;
    font-weight: 600; font-size: 0.95rem;
    border-radius: 8px; border: none; cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: #FBF7F0; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline {
    background: transparent; border: 2px solid rgba(251,247,240,0.5);
    color: #FBF7F0; margin-left: 1rem;
}
.btn-outline:hover { border-color: var(--accent); background: rgba(184,115,51,0.15); color: #FBF7F0; }

/* ── Disclosure ── */
.disclosure {
    background: rgba(184,115,51,0.08); border-left: 3px solid var(--accent);
    padding: 1rem 1.5rem; margin: 2rem auto; max-width: 1200px;
    font-size: 0.85rem; color: var(--text-muted); border-radius: 0 var(--radius) var(--radius) 0;
}
.disclosure strong { color: var(--secondary); }

/* ── Category Grid ── */
.category-section { padding: 5rem 0 3rem; }
.category-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; margin-top: 2rem;
}
.category-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    aspect-ratio: 3/2; cursor: pointer;
    box-shadow: var(--shadow); transition: all var(--transition);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card:hover img { transform: scale(1.05); }
.category-card .card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(44,24,16,0.8) 0%, transparent 60%);
    display: flex; flex-direction: column; justify-content: flex-end; padding: 1.5rem;
}
.category-card h3 { color: #FBF7F0; font-size: 1.25rem; margin-bottom: 0.25rem; }
.category-card .card-sub { color: rgba(251,247,240,0.75); font-size: 0.85rem; }

/* ── Product Sections ── */
.product-section { padding: 4rem 0; border-top: 1px solid var(--border); }
.product-section:nth-child(even) { background: rgba(184,115,51,0.03); }
.product-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; margin-bottom: 3rem; }
.product-header-text h2 { margin-bottom: 0.5rem; }
.product-header img { border-radius: var(--radius); box-shadow: var(--shadow); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; }
.product-card {
    background: var(--surface); border-radius: var(--radius);
    padding: 1.75rem; border: 1px solid var(--border);
    transition: all var(--transition);
}
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); }
.product-card h3 { margin-bottom: 0.25rem; }
.product-card .product-desc { color: var(--text-muted); font-size: 0.95rem; margin: 0.75rem 0 1.25rem; }
.product-card .price-tag {
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    color: var(--accent); font-weight: 500; margin-bottom: 1rem; display: block;
}
.product-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.product-links a {
    padding: 0.5rem 1.2rem; border-radius: 6px;
    font-size: 0.85rem; font-weight: 600;
    transition: all var(--transition);
}
.link-az { background: var(--primary); color: #FBF7F0 !important; }
.link-az:hover { background: var(--secondary); }
.link-eb { background: transparent; border: 1.5px solid var(--border); color: var(--primary) !important; }
.link-eb:hover { border-color: var(--accent); color: var(--accent) !important; }

/* ── Colombia / Farm Section ── */
.farm-section {
    padding: 5rem 0;
    background: var(--primary);
    color: #FBF7F0;
    position: relative;
    overflow: hidden;
}
.farm-section::before {
    content: ''; position: absolute; inset: 0;
    background: url('images/farm-landscape.jpg') center/cover no-repeat;
    opacity: 0.2;
}
.farm-content { position: relative; z-index: 2; }
.farm-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.farm-grid img { border-radius: var(--radius); width: 100%; height: 240px; object-fit: cover; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.farm-section h2 { color: #FBF7F0; }
.farm-section .section-label { color: var(--accent); }
.farm-section p { color: rgba(251,247,240,0.85); max-width: 700px; margin-bottom: 1.5rem; font-size: 1.05rem; }
.farm-section .btn { margin-top: 0.5rem; }

/* ── Buying Guide ── */
.guide-section { padding: 5rem 0; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.guide-grid img { border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-tips { list-style: none; }
.guide-tips li {
    padding: 1rem 0; border-bottom: 1px solid var(--border);
    display: flex; gap: 1rem; align-items: flex-start;
}
.guide-tips li:last-child { border-bottom: none; }
.tip-num {
    font-family: 'Playfair Display', serif; font-size: 1.5rem;
    color: var(--accent); font-weight: 700; flex-shrink: 0; min-width: 2rem;
}
.tip-text h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem; margin-bottom: 0.25rem; }
.tip-text p { color: var(--text-muted); font-size: 0.92rem; }

/* ── CTA / Newsletter ── */
.cta-section {
    padding: 4rem 0; text-align: center;
    background: rgba(184,115,51,0.06);
}
.cta-section img { max-width: 400px; margin: 0 auto 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.cta-section p { max-width: 500px; margin: 0 auto 1.5rem; color: var(--text-muted); }

/* ── Footer ── */
.site-footer { background: var(--primary); color: rgba(251,247,240,0.8); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-col h4 { color: var(--accent); font-size: 1rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; font-weight: 600; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: rgba(251,247,240,0.7); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(251,247,240,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8rem; color: rgba(251,247,240,0.5); }

/* ── Aux Pages ── */
.page-header {
    background: var(--primary); padding: 3.5rem 0;
    text-align: center;
}
.page-header h1 { color: #FBF7F0; font-size: 2.2rem; }
.page-header p { color: rgba(251,247,240,0.75); margin-top: 0.5rem; }
.page-content {
    max-width: 800px; margin: 3rem auto; padding: 0 24px;
}
.page-content h2 { font-size: 1.5rem; margin: 2rem 0 0.75rem; color: var(--primary); }
.page-content h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.page-content p { margin-bottom: 1rem; color: var(--text-muted); }
.page-content ul, .page-content ol { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-muted); }
.page-content li { margin-bottom: 0.4rem; }
.page-content a { color: var(--accent); }

/* ── Contact Form ── */
.contact-form { max-width: 560px; margin: 2rem auto; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block; font-weight: 500; font-size: 0.9rem;
    margin-bottom: 0.4rem; color: var(--secondary);
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 0.75rem 1rem;
    border: 1.5px solid var(--border); border-radius: 8px;
    font-family: 'Inter', sans-serif; font-size: 0.95rem;
    background: var(--surface); color: var(--text);
    transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none; border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* ── 404 ── */
.error-page { text-align: center; padding: 6rem 24px; }
.error-page h1 { font-size: 6rem; color: var(--accent); margin-bottom: 0.5rem; }
.error-page p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ── Thanks ── */
.thanks-page { text-align: center; padding: 5rem 24px; }
.thanks-page h1 { color: var(--primary); margin-bottom: 1rem; }
.thanks-page p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto 2rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .product-header { grid-template-columns: 1fr; }
    .product-header img { order: -1; }
    .guide-grid { grid-template-columns: 1fr; }
    .farm-grid { grid-template-columns: 1fr; }
    .farm-grid img { height: 200px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
    .category-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .hero-content { margin-left: 0; padding: 3rem 24px; }
    .hero { min-height: 420px; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 1rem; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .btn-outline { margin-left: 0; margin-top: 0.75rem; }
    .hero .btn { display: block; text-align: center; }
    .footer-grid { grid-template-columns: 1fr; }
    .farm-grid img { height: 180px; }
}
