/* ====== VARIABLES ====== */
:root {
    --bg: #faf6f1;
    /* Warm paper white */
    --surface: #ffffff;
    --card-bg: #f5efe8;
    --text: #2c1810;
    /* Deep espresso */
    --text-muted: #8b6f5e;
    --coffee-primary: #5c3317;
    /* Deep coffee brown */
    --coffee-light: #c4956a;
    /* Latte */
    --coffee-warm: #f0e0d0;
    /* Milk foam */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'DM Sans', sans-serif;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* ====== TYPOGRAPHY ====== */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
}

h2 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

h2 em {
    font-style: italic;
    color: var(--coffee-primary);
}

p {
    color: var(--text-muted);
    line-height: 1.7;
}

.section-header p {
    max-width: 500px;
    margin: 0.5rem auto 0;
}

/* ====== BUTTONS ====== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-round {
    border-radius: 50px;
}

.btn-large-coffee {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-coffee-primary {
    background: var(--coffee-primary);
    color: #fff;
}

.btn-coffee-primary:hover {
    background: #3d2210;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(92, 51, 23, 0.3);
}

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

.btn-coffee-outline:hover {
    background: var(--coffee-primary);
    color: #fff;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(250, 246, 241, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(92, 51, 23, 0.1);
}

.navbar.scrolled {
    box-shadow: 0 4px 15px rgba(44, 24, 16, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: var(--coffee-primary);
}

.logo span {
    color: var(--coffee-light);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links li a:hover {
    color: var(--coffee-primary);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--coffee-primary);
}

/* ====== HERO COFFEE ====== */
.hero-coffee {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-coffee-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.coffee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(250, 246, 241, 0.97) 45%, rgba(250, 246, 241, 0.5) 80%, rgba(250, 246, 241, 0) 100%);
}

.hero-coffee-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-left {
    max-width: 550px;
}

.badge-warm {
    display: inline-block;
    background: var(--coffee-warm);
    color: var(--coffee-primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(92, 51, 23, 0.15);
}

.coffee-title {
    font-size: 3.8rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.coffee-title em {
    color: var(--coffee-primary);
}

.coffee-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: var(--text-muted);
    max-width: 450px;
}

.hero-coffee-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.open-hours {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.open-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* ====== MENU SECTION ====== */
.menu-section {
    padding: 6rem 0;
    background: #fff;
}

.menu-section .section-header {
    margin-bottom: 2rem;
}

.menu-tabs {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 1.5px solid rgba(92, 51, 23, 0.2);
    color: var(--text-muted);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--coffee-primary);
    color: var(--coffee-primary);
}

.tab-btn.active {
    background: var(--coffee-primary);
    border-color: var(--coffee-primary);
    color: #fff;
}

.menu-list {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.2rem 0;
    border-bottom: 1px dashed rgba(92, 51, 23, 0.1);
}

.menu-item-row:last-of-type {
    border-bottom: none;
}

.item-info {
    flex: 1;
    padding-right: 2rem;
}

.item-info h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.item-info p {
    font-size: 0.9rem;
}

.item-price {
    font-weight: 700;
    color: var(--coffee-primary);
    font-size: 1.1rem;
    white-space: nowrap;
    padding-top: 0.2rem;
}

.popular-tag {
    background: var(--coffee-warm);
    color: var(--coffee-primary);
    font-size: 0.75rem;
    padding: 0.1rem 0.6rem;
    border-radius: 50px;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* ====== AMBIANCE ====== */
.ambiance-section {
    padding: 6rem 0;
    background: var(--bg);
}

.ambiance-section .section-header {
    margin-bottom: 3rem;
}

.ambiance-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr;
    grid-template-rows: 300px;
    gap: 1rem;
}

.a-item {
    border-radius: 8px;
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.a-tall {
    grid-row: span 1;
}

.a-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.a-column .a-item {
    flex: 1;
}

/* CSS placeholders for cafe ambiance images */
.cafe-ph-1 {
    background: linear-gradient(135deg, #5c3317, #8b6f5e);
}

.cafe-ph-2 {
    background: linear-gradient(135deg, #c4956a, #f0e0d0);
}

.cafe-ph-3 {
    background: linear-gradient(135deg, #3d2210, #c4956a);
}

.cafe-ph-4 {
    background: linear-gradient(135deg, #f0e0d0, #c4956a);
}

/* ====== STORY COFFEE ====== */
.story-coffee {
    padding: 6rem 0;
    background: var(--coffee-primary);
}

.story-coffee-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.story-img img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 8px;
}

.story-text-coffee h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.story-text-coffee h2 em {
    color: var(--coffee-light);
}

.story-text-coffee p {
    color: rgba(255, 255, 255, 0.7);
}

.coffee-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.cstat {
    border-top: 2px solid var(--coffee-light);
    padding-top: 1rem;
}

.cstat h3 {
    font-size: 2rem;
    color: var(--coffee-light);
    margin: 0;
    font-family: var(--font-heading);
}

.cstat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ====== CTA COFFEE ====== */
.cta-coffee {
    padding: 7rem 0;
    background: var(--card-bg);
}

.cta-coffee-box h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cta-coffee-box h2 em {
    color: var(--coffee-primary);
}

.cta-coffee-box p {
    max-width: 550px;
    margin: 0 auto;
}

.cta-coffee-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.location-info {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.location-info i {
    color: var(--coffee-primary);
}

/* ====== FOOTER COFFEE ====== */
.footer-coffee {
    background: var(--coffee-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0 2rem;
}

.footer-logo-coffee {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    color: #fff;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-logo-coffee span {
    color: var(--coffee-light);
}

.footer-coffee p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.social-coffee a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin: 0 0.3rem;
}

.social-coffee a:hover {
    background: var(--coffee-light);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 1rem;
}

/* ====== ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .coffee-title {
        font-size: 3rem;
    }

    .story-coffee-wrapper {
        grid-template-columns: 1fr;
    }

    .ambiance-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
        grid-template-rows: 200px 200px;
    }

    .a-tall {
        grid-row: auto;
    }

    .a-column {
        display: contents;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .navbar .btn {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .coffee-title {
        font-size: 2.5rem;
    }

    .hero-coffee-actions {
        flex-direction: column;
    }

    .ambiance-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
    }

    .coffee-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .cta-coffee-actions {
        flex-direction: column;
        align-items: center;
    }
}