/* Coffee Goblin — Design System */

:root {
    --dark-brown: #3d2b1f;
    --medium-brown: #6b5b4f;
    --light-brown: #a08c7a;
    --parchment: #f5efe6;
    --cream: #faf6ef;
    --white: #ffffff;
    --goblin-green: #4a7c59;
    --goblin-green-dark: #3a6347;
    --goblin-green-light: #5a9c6d;
    --gold: #c9a84c;
    --gold-light: #e0c878;
    --red: #c0392b;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lora', Georgia, serif;
    --font-ui: 'Inter', -apple-system, sans-serif;
    --max-width: 1200px;
    --header-height: 72px;
    --shadow-sm: 0 1px 3px rgba(61, 43, 31, 0.08);
    --shadow-md: 0 4px 12px rgba(61, 43, 31, 0.1);
    --shadow-lg: 0 8px 24px rgba(61, 43, 31, 0.12);
    --radius: 8px;
    --radius-lg: 12px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--dark-brown);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--goblin-green);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--goblin-green-dark);
}

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: var(--font-ui);
    cursor: pointer;
    border: none;
    outline: none;
}

/* ===== Layout ===== */

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

.section {
    padding: 80px 0;
}

/* ===== Header ===== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--dark-brown);
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--parchment);
}

.header-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.header-wordmark {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--parchment);
    letter-spacing: 0.5px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.header-nav a {
    color: var(--parchment);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.header-nav a:hover {
    opacity: 1;
    color: var(--gold);
}

.cart-icon-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--parchment);
    padding: 8px;
    cursor: pointer;
}

.cart-icon-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.cart-badge {
    position: absolute;
    top: 0;
    right: -2px;
    background: var(--goblin-green);
    color: white;
    font-family: var(--font-ui);
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    display: none;
}

.cart-badge.visible {
    display: flex;
}

/* Mobile menu toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--parchment);
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Content offset for fixed header */
.main-content {
    margin-top: var(--header-height);
}

/* ===== Hero ===== */

.hero {
    background: var(--dark-brown);
    color: var(--parchment);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(74, 124, 89, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.hero-logo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin-bottom: 24px;
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.2);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 16px;
    color: var(--parchment);
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--light-brown);
    max-width: 600px;
    margin: 0 auto 40px;
    font-style: italic;
}

.hero-cta {
    display: inline-block;
    background: var(--goblin-green);
    color: white;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 40px;
    border-radius: var(--radius);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
    background: var(--goblin-green-dark);
    color: white;
    transform: translateY(-2px);
}

/* ===== Our Story ===== */

.story-section {
    background: var(--white);
}

.story-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.story-photo img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.story-content h2 {
    margin-bottom: 24px;
}

.story-content p {
    color: var(--medium-brown);
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.story-content strong {
    color: var(--dark-brown);
}

.story-highlight {
    background: var(--parchment);
    border-left: 4px solid var(--goblin-green);
    padding: 24px 28px;
    margin: 32px 0 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.story-highlight p {
    color: var(--dark-brown);
    font-style: italic;
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* ===== How It Works ===== */

.how-it-works {
    background: var(--parchment);
    text-align: center;
}

.how-it-works h2 {
    margin-bottom: 48px;
    color: var(--dark-brown);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    padding: 32px 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--goblin-green);
    color: white;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step p {
    color: var(--medium-brown);
    font-size: 0.95rem;
}

/* ===== Featured Banner ===== */

.featured-banner {
    background: var(--goblin-green);
    color: white;
    text-align: center;
    padding: 48px 0;
}

.featured-banner h2 {
    color: white;
    margin-bottom: 12px;
}

.featured-banner p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.featured-banner .hero-cta {
    background: white;
    color: var(--goblin-green);
}

.featured-banner .hero-cta:hover {
    background: var(--parchment);
}

/* ===== Newsletter Signup ===== */

.newsletter-section {
    background: var(--dark-brown);
    color: var(--parchment);
    text-align: center;
}

.newsletter-section h2 {
    color: var(--parchment);
    margin-bottom: 12px;
}

.newsletter-section p {
    color: var(--light-brown);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(245, 239, 230, 0.2);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--parchment);
    font-family: var(--font-ui);
    font-size: 0.95rem;
}

.newsletter-form input::placeholder {
    color: var(--light-brown);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--goblin-green);
}

.newsletter-form button {
    background: var(--goblin-green);
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.newsletter-form button:hover {
    background: var(--goblin-green-dark);
}

.newsletter-success {
    display: none;
    color: var(--goblin-green-light);
    font-weight: 600;
    margin-top: 12px;
}

/* ===== Footer ===== */

.site-footer {
    background: var(--dark-brown);
    color: var(--light-brown);
    padding: 40px 0;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--parchment);
    margin-bottom: 8px;
}

.footer-tagline {
    font-style: italic;
    font-family: var(--font-body);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

.footer-links a {
    color: var(--light-brown);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-credit {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* ===== About Page ===== */

.about-hero {
    background: var(--dark-brown);
    color: var(--parchment);
    padding: 80px 0 60px;
    text-align: center;
}

.about-hero h1 {
    color: var(--parchment);
    margin-bottom: 16px;
}

.about-hero .subtitle {
    color: var(--light-brown);
    font-style: italic;
    font-size: 1.15rem;
}

.about-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 60px 24px;
}

.about-content h2 {
    margin: 48px 0 16px;
    color: var(--dark-brown);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--medium-brown);
    font-size: 1.05rem;
}

.about-content strong {
    color: var(--dark-brown);
}

.about-highlight {
    background: var(--parchment);
    border-left: 4px solid var(--goblin-green);
    padding: 24px 28px;
    margin: 32px 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}

.about-highlight p {
    color: var(--dark-brown);
    font-style: italic;
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* ===== WhatsApp Share FAB ===== */

.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 900;
    transition: transform 0.2s, box-shadow 0.2s;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    color: white;
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-logo { width: 120px; height: 120px; }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .header-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--dark-brown);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
    }

    .header-nav.open {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .story-layout {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .story-photo img {
        max-width: 320px;
        margin: 0 auto;
    }

    .story-highlight {
        text-align: left;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .section {
        padding: 48px 0;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    .container { padding: 0 16px; }
}
