/* ===========================
   CAPSULE COFFEES — Main CSS
   Design: Dark luxury, gold accents, editorial typography
   =========================== */

:root {
    --primary: #c8a96e;
    --secondary: #1a1a1a;
    --accent: #e8d5b0;
    --dark: #0d0d0d;
    --mid: #2a2a2a;
    --light-bg: #f9f6f0;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-mid: #5a5a5a;
    --text-light: #9a9a9a;
    --border: #e0d5c5;
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.15);
    --radius: 2px;
    --radius-md: 6px;
    --trans: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: var(--trans); }

/* Typography */
.display-font { font-family: 'Cormorant Garamond', Georgia, serif; }

h1, h2, h3, .h1, .h2, .h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1, .h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2, .h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1rem; font-family: 'DM Sans'; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }

p { margin-bottom: 1em; }

.eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    display: block;
    margin-bottom: 0.75rem;
}

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1440px; margin: 0 auto; padding: 0 40px; }

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 120px 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: 'DM Sans';
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--trans);
    border-radius: var(--radius);
    text-decoration: none;
}

.btn-gold {
    background: var(--primary);
    color: var(--dark);
}
.btn-gold:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}
.btn-dark:hover {
    background: var(--mid);
    transform: translateY(-1px);
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}
.btn-white:hover {
    background: var(--accent);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 0;
    transition: var(--trans);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(13,13,13,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(200,169,110,0.15);
}

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

.site-logo {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 400;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.85);
    position: relative;
    padding-bottom: 2px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 100%;
    height: 1px;
    background: var(--primary);
    transition: right 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

.header-cta { padding: 10px 24px; font-size: 0.8rem; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--trans);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 80% at 60% 50%, rgba(200,169,110,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 24px;
}

.hero h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero-lead {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 45%;
    overflow: hidden;
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.hero-badge {
    position: absolute;
    bottom: 60px;
    right: 60px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: slowSpin 20s linear infinite;
    z-index: 3;
}

.hero-badge span {
    font-family: 'Cormorant Garamond';
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--dark);
    line-height: 1;
}

.hero-badge small {
    font-family: 'DM Mono';
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dark);
}

@keyframes slowSpin {
    to { transform: rotate(360deg); }
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-family: 'DM Mono';
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    z-index: 3;
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, var(--primary));
    animation: scrollLine 2s ease infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Stats row */
.stats-row {
    background: var(--dark);
    border-top: 1px solid rgba(200,169,110,0.2);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 24px;
    border-right: 1px solid rgba(200,169,110,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: 'Cormorant Garamond';
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    font-weight: 300;
}

/* Features */
.features { background: var(--light-bg); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 64px;
}

.feature-card {
    background: var(--white);
    padding: 40px 32px;
    border-bottom: 3px solid transparent;
    transition: var(--trans);
    position: relative;
}

.feature-card:hover {
    border-bottom-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-mid);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 0;
}

/* Products */
.product-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--trans);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-inner {
    padding: 40px 32px;
    height: 100%;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-family: 'DM Mono';
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 0.875rem;
    opacity: 0.75;
    line-height: 1.7;
    flex: 1;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.product-tag {
    font-size: 0.7rem;
    padding: 4px 12px;
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 24px;
    opacity: 0.8;
    transition: var(--trans);
}
.product-link:hover { opacity: 1; gap: 12px; }

/* How it works */
.process-steps { counter-reset: steps; }

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }

.step-number {
    font-family: 'Cormorant Garamond';
    font-size: 4rem;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    opacity: 0.5;
}

.step-content h3 { font-size: 1.6rem; margin-bottom: 12px; }
.step-content p { color: var(--text-mid); margin: 0; }

/* CTA Banner */
.cta-banner {
    background: var(--primary);
    padding: 80px 0;
    text-align: center;
}

.cta-banner h2 { color: var(--dark); font-size: clamp(2rem, 4vw, 3.5rem); margin-bottom: 16px; }
.cta-banner p { color: rgba(26,26,26,0.7); font-size: 1.1rem; margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* Page Hero */
.page-hero {
    background: var(--dark);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--primary); }
.page-hero p { color: rgba(255,255,255,0.6); max-width: 540px; margin-top: 16px; }

/* About */
.about-story { padding: 100px 0; }
.about-story .grid-2 { gap: 80px; }
.about-img { 
    aspect-ratio: 4/5;
    background: var(--light-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary);
    color: var(--dark);
    padding: 24px;
    font-family: 'Cormorant Garamond';
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.3;
}
.about-img-badge strong { display: block; font-size: 2.5rem; font-weight: 600; }

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--border); }
.value-card { background: var(--white); padding: 48px 32px; }
.value-card h3 { font-size: 1.4rem; margin: 16px 0 12px; }
.value-card p { color: var(--text-mid); font-size: 0.875rem; margin: 0; }
.value-number { font-family: 'Cormorant Garamond'; font-size: 3rem; color: var(--primary); opacity: 0.4; line-height: 1; }

/* Contact Form */
.contact-form-section { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 80px; }
.contact-info h2 { margin-bottom: 24px; }
.contact-info p { color: var(--text-mid); margin-bottom: 32px; }
.contact-detail { display: flex; flex-direction: column; gap: 20px; }
.contact-detail-item { display: flex; flex-direction: column; gap: 4px; }
.contact-detail-item .label { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); font-family: 'DM Mono'; }
.contact-detail-item a, .contact-detail-item span { font-size: 1rem; color: var(--text-dark); }

/* Form */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; color: var(--text-mid); font-family: 'DM Mono'; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    font-family: 'DM Sans';
    font-size: 0.9375rem;
    color: var(--text-dark);
    border-radius: var(--radius);
    transition: var(--trans);
    outline: none;
    appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200,169,110,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.form-success, .form-error {
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.form-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-error { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }

/* Order / Upload */
.order-section { background: var(--light-bg); padding: 80px 0; }
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: 48px;
    text-align: center;
    cursor: pointer;
    transition: var(--trans);
    position: relative;
}
.upload-area:hover, .upload-area.dragover {
    border-color: var(--primary);
    background: rgba(200,169,110,0.05);
}
.upload-area input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-area p { color: var(--text-mid); font-size: 0.875rem; margin: 4px 0; }
.upload-area strong { color: var(--primary); }

/* Products page */
.products-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.filter-btn {
    padding: 8px 20px;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid var(--border);
    background: transparent;
    cursor: pointer;
    transition: var(--trans);
    border-radius: 20px;
    font-family: 'DM Sans';
}
.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--dark);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Footer */
.site-footer { background: var(--dark); color: var(--white); }
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    padding: 80px 40px 60px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-logo { height: 36px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.875rem; line-height: 1.7; max-width: 260px; }
.footer-nav h4, .footer-products h4, .footer-contact h4 {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--primary);
    margin-bottom: 20px;
}
.footer-nav ul, .footer-products ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-nav a, .footer-products a { color: rgba(255,255,255,0.55); font-size: 0.875rem; transition: var(--trans); }
.footer-nav a:hover, .footer-products a:hover { color: var(--primary); }
.footer-contact p { color: rgba(255,255,255,0.55); font-size: 0.875rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.55); }
.footer-contact a:hover { color: var(--primary); }
.social-link { display: inline-block; margin-right: 16px; margin-top: 12px; color: rgba(255,255,255,0.4) !important; font-size: 0.8rem; letter-spacing: 0.05em; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 40px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-bottom p { color: rgba(255,255,255,0.3); font-size: 0.8rem; margin: 0; }

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 900;
    transition: var(--trans);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 32px rgba(37,211,102,0.5);
}

/* Divider */
.divider { width: 60px; height: 1px; background: var(--primary); margin: 24px 0; }
.divider-center { margin: 24px auto; }

/* Alerts */
.alert { padding: 14px 20px; border-radius: var(--radius); font-size: 0.875rem; margin-bottom: 20px; }
.alert-success { background: #e8f5e9; color: #2e7d32; }
.alert-error { background: #ffebee; color: #c62828; }

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--light-bg);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-gold { background: var(--primary); color: var(--dark); }

/* Responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .header-inner { padding: 16px 20px; }
    .main-nav { 
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(13,13,13,0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        z-index: 9999;
    }
    .main-nav.open { display: flex; }
    .main-nav .nav-link { font-size: 1.5rem; }
    .header-cta { display: none; }
    .hamburger { display: flex; z-index: 10000; position: relative; }

    .hero-visual { opacity: 0.2; }
    .hero-badge { display: none; }

    .grid-2, .grid-3, .products-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .values-grid { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; gap: 32px; padding: 60px 20px 40px; }
    .footer-bottom { padding: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .process-step { grid-template-columns: 50px 1fr; gap: 20px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .container-wide { padding: 0 20px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Fade-in animation */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
