/* ===========================
   TREEB COFFEE SHOP STYLES
   Design System: Dark Editorial × Coffee Culture
   =========================== */

/* ===========================
   CSS VARIABLES & THEME
   =========================== */

:root {
    /* Core Coffee Palette */
    --espresso: #1a120b;
    --dark-roast: #2b1f17;
    --medium-roast: #3e2723;
    --amber-glow: #d4a574;
    --cream: #f5f1e8;
    --burnt-orange: #c86e3c;

    /* Accent & UI */
    --accent-gold: #c9a961;
    --text-primary: #f5f1e8;
    --text-secondary: #b39d7a;
    --text-muted: #8b7a63;

    /* Backgrounds & Depth */
    --bg-dark: #0d0907;
    --bg-layer-1: #1a120b;
    --bg-layer-2: #2b1f17;

    /* Typography Scale */
    --font-display: 'Playfair Display', serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --spacing-unit: 8px;
    --container-width: 1400px;
}

/* ===========================
   RESET & BASE
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
    overflow-x: hidden;
}

/* ===========================
   NAVIGATION
   =========================== */

.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 9, 7, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    animation: navSlideDown 0.6s ease-out;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-symbol {
    font-size: 24px;
    color: var(--amber-glow);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--amber-glow);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--amber-glow);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link-cta {
    color: var(--espresso);
    background: var(--amber-glow);
    padding: 10px 24px;
    border-radius: 2px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.nav-link-cta:hover {
    background: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 165, 116, 0.3);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 48px 80px;
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(200, 110, 60, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(212, 165, 116, 0.06) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-layer-1) 100%);
    z-index: 0;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(212, 165, 116, 0.02) 2px, rgba(212, 165, 116, 0.02) 4px);
    opacity: 0.3;
    animation: grainMove 8s steps(10) infinite;
}

@keyframes grainMove {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 2%); }
    50% { transform: translate(2%, -2%); }
    75% { transform: translate(-2%, -2%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    text-align: center;
    animation: heroFadeIn 1s ease-out 0.3s both;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-label {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: heroFadeIn 1s ease-out 0.5s both;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-line {
    display: block;
    animation: heroLineSlide 0.8s ease-out both;
}

.hero-line:nth-child(1) {
    animation-delay: 0.6s;
    color: var(--cream);
}

.hero-line:nth-child(2) {
    animation-delay: 0.75s;
}

.hero-line:nth-child(3) {
    animation-delay: 0.9s;
    color: var(--cream);
}

.hero-line-accent {
    color: var(--amber-glow);
    font-style: italic;
}

@keyframes heroLineSlide {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-description {
    max-width: 700px;
    margin: 0 auto 48px;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    animation: heroFadeIn 1s ease-out 1.1s both;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroFadeIn 1s ease-out 1.3s both;
}

.btn-primary,
.btn-secondary {
    padding: 16px 40px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
    font-family: var(--font-mono);
}

.btn-primary {
    background: var(--amber-glow);
    color: var(--espresso);
    border: 2px solid var(--amber-glow);
}

.btn-primary:hover {
    background: transparent;
    color: var(--amber-glow);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(212, 165, 116, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--amber-glow);
    color: var(--amber-glow);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: heroFadeIn 1s ease-out 1.5s both;
}

.scroll-text {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scroll-arrow {
    font-size: 20px;
    color: var(--amber-glow);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

/* ===========================
   SECTION SHARED STYLES
   =========================== */

.section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream);
    margin-bottom: 24px;
}

.section-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}

/* ===========================
   STORY SECTION
   =========================== */

.story-section {
    padding: 160px 48px;
    background: var(--bg-layer-1);
    position: relative;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber-glow) 50%, transparent);
    opacity: 0.3;
}

.story-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 48px;
}

.story-text p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    color: var(--amber-glow);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.story-image-stack {
    position: relative;
    height: 600px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.story-image {
    position: absolute;
    border-radius: 4px;
    background: var(--medium-roast);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}

.story-image-1 {
    width: 70%;
    height: 70%;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, var(--dark-roast), var(--medium-roast)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><text y="50" font-size="40" fill="%23d4a574" opacity="0.1">☕</text></svg>');
    background-size: cover;
}

.story-image-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, var(--medium-roast), var(--burnt-orange)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="30" fill="%23c86e3c" opacity="0.2"/></svg>');
    background-size: cover;
}

.story-image:hover {
    transform: scale(1.05) rotate(2deg);
}

/* ===========================
   BEANS SECTION
   =========================== */

.beans-section {
    padding: 160px 48px;
    background: var(--bg-dark);
}

.beans-header {
    max-width: var(--container-width);
    margin: 0 auto 80px;
    text-align: center;
}

.beans-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.bean-card {
    background: var(--bg-layer-1);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease-out;
}

.bean-card:nth-child(1) {
    animation-delay: 0.1s;
}

.bean-card:nth-child(2) {
    animation-delay: 0.2s;
}

.bean-card:nth-child(3) {
    animation-delay: 0.3s;
}

.bean-card:hover {
    transform: translateY(-8px);
    border-color: var(--amber-glow);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.bean-image {
    height: 280px;
    background: var(--medium-roast);
    position: relative;
    overflow: hidden;
}

.bean-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(13, 9, 7, 0.8) 100%);
}

.bean-image-ethiopia {
    background:
        linear-gradient(135deg, rgba(139, 69, 19, 0.8), rgba(200, 110, 60, 0.6)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><circle cx="100" cy="100" r="60" fill="%23d4a574" opacity="0.15"/></svg>');
    background-size: cover;
}

.bean-image-colombia {
    background:
        linear-gradient(135deg, rgba(62, 39, 35, 0.8), rgba(139, 69, 19, 0.6)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><rect width="200" height="200" fill="%23c9a961" opacity="0.1"/></svg>');
    background-size: cover;
}

.bean-image-guatemala {
    background:
        linear-gradient(135deg, rgba(43, 31, 23, 0.8), rgba(62, 39, 35, 0.6)),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><polygon points="100,20 180,180 20,180" fill="%23c86e3c" opacity="0.12"/></svg>');
    background-size: cover;
}

.bean-content {
    padding: 32px;
}

.bean-origin {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.bean-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 12px;
}

.bean-notes {
    font-size: 14px;
    color: var(--amber-glow);
    font-style: italic;
    margin-bottom: 24px;
}

.bean-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px 0;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    margin-bottom: 24px;
}

.bean-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.detail-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.bean-link {
    color: var(--amber-glow);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-block;
}

.bean-link:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

/* ===========================
   CRAFT SECTION
   =========================== */

.craft-section {
    padding: 160px 48px;
    background:
        radial-gradient(circle at 70% 50%, rgba(200, 110, 60, 0.05) 0%, transparent 50%),
        var(--bg-layer-2);
}

.craft-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.craft-text-block {
    max-width: 800px;
    margin-bottom: 80px;
    animation: fadeInUp 0.8s ease-out;
}

.craft-description {
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.craft-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 48px;
}

.craft-step {
    animation: fadeInUp 0.8s ease-out;
}

.craft-step:nth-child(1) {
    animation-delay: 0.1s;
}

.craft-step:nth-child(2) {
    animation-delay: 0.2s;
}

.craft-step:nth-child(3) {
    animation-delay: 0.3s;
}

.craft-step:nth-child(4) {
    animation-delay: 0.4s;
}

.step-number {
    font-family: var(--font-display);
    font-size: 72px;
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px var(--amber-glow);
    line-height: 1;
    margin-bottom: 24px;
    opacity: 0.4;
}

.step-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
}

.step-description {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===========================
   SPACE SECTION
   =========================== */

.space-section {
    padding: 160px 48px;
    background: var(--bg-dark);
}

.space-grid {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.space-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 600px;
    animation: fadeInUp 0.8s ease-out;
}

.space-image {
    background: var(--medium-roast);
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease;
}

.space-image:hover {
    transform: scale(1.05);
}

.space-image-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    background: linear-gradient(135deg, var(--dark-roast), var(--medium-roast));
}

.space-image-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    background: linear-gradient(135deg, var(--medium-roast), var(--burnt-orange));
}

.space-image-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: linear-gradient(135deg, var(--burnt-orange), var(--amber-glow));
}

.space-content {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.space-text {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.space-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.feature-item {
    font-size: 15px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-item::before {
    content: '✓';
    color: var(--amber-glow);
    font-weight: 700;
    font-size: 18px;
}

/* ===========================
   VISIT SECTION
   =========================== */

.visit-section {
    padding: 160px 48px;
    background: var(--bg-layer-1);
}

.visit-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.visit-info {
    animation: fadeInUp 0.8s ease-out;
}

.info-blocks {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 48px;
}

.info-block {
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
}

.info-block:last-child {
    border-bottom: none;
}

.info-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 16px;
}

.info-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-secondary);
}

.visit-note {
    margin-top: 48px;
    padding: 32px;
    background: var(--bg-layer-2);
    border-left: 3px solid var(--amber-glow);
    border-radius: 4px;
}

.visit-note p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
}

.visit-map {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.map-placeholder {
    height: 100%;
    min-height: 500px;
    background: var(--bg-layer-2);
    border-radius: 4px;
    border: 1px solid rgba(212, 165, 116, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.map-pin {
    font-size: 48px;
}

.map-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* ===========================
   FOOTER
   =========================== */

.footer-section {
    background: var(--espresso);
    border-top: 1px solid rgba(212, 165, 116, 0.2);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 80px 48px 48px;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
}

.footer-brand {
    animation: fadeInUp 0.8s ease-out;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.8s ease-out;
}

.footer-heading {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--amber-glow);
}

.footer-bottom {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 32px 48px;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 32px;
}

.footer-bottom-link {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-link:hover {
    color: var(--amber-glow);
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 1024px) {
    .nav-content {
        padding: 20px 32px;
    }

    .nav-links {
        gap: 24px;
    }

    .story-grid,
    .space-grid,
    .visit-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .hero-section {
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 48px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .story-section,
    .beans-section,
    .craft-section,
    .space-section,
    .visit-section {
        padding: 80px 24px;
    }

    .beans-grid {
        grid-template-columns: 1fr;
    }

    .craft-steps {
        grid-template-columns: 1fr;
    }

    .space-images {
        height: 400px;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
