@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Jost:wght@300;400;500&display=swap');

:root {
    --cream: #f5ede0;
    --cream-dark: #ede0cc;
    --espresso: #1c0f07;
    --roast: #3b1f0e;
    --caramel: #c07a2f;
    --caramel-lt: #e09a4f;
    --foam: #fdf6ed;
    --text-main: #1c0f07;
    --text-muted: #6b4c33;
    --border: rgba(60, 30, 10, 0.12);
    --shadow: rgba(60, 20, 5, 0.15);
    --radius: 16px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Jost', sans-serif;
    background: var(--cream);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.7;
}

/* ── HEADER ─────────────────────────────── */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6%;
    background: transparent;
    transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}

header.scrolled {
    background: rgba(28, 15, 7, 0.96);
    backdrop-filter: blur(12px);
    padding: 14px 6%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--cream);
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 8px 16px;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s;
}

.nav-a:hover {
    background: rgba(255, 255, 255, 0.15);
}

.order-btn {
    background: var(--caramel);
    color: white;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: background 0.3s, transform 0.3s;
}

.order-btn:hover {
    background: var(--caramel-lt);
    transform: translateY(-2px);
}

.menu-icon {
    display: none;
    cursor: pointer;
}

.menu-icon i {
    color: var(--cream);
    font-size: 1.4rem;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -250px;
    width: 220px;
    min-height: 100vh;
    background: var(--espresso);
    z-index: 1001;
    padding-top: 70px;
    transition: right 0.3s ease;
}

.sidebar a {
    display: block;
    padding: 14px 28px;
    color: var(--cream);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s, padding-left 0.3s;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 36px;
}

/* ── HERO ─────────────────────────────── */
.hero {
    min-height: 100vh;
    background: var(--espresso);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 6% 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(192, 122, 47, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(192, 122, 47, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--caramel-lt);
    background: rgba(192, 122, 47, 0.15);
    border: 1px solid rgba(192, 122, 47, 0.3);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--cream);
    margin-bottom: 24px;
    animation: fadeUp 0.9s ease both;
}

.hero-title em {
    font-style: italic;
    color: var(--caramel-lt);
}

.hero-sub {
    font-size: 1rem;
    color: rgba(245, 237, 224, 0.65);
    max-width: 440px;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeUp 0.9s 0.15s ease both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeUp 0.9s 0.3s ease both;
}

.btn-primary {
    background: var(--caramel);
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(192, 122, 47, 0.35);
}

.btn-primary:hover {
    background: var(--caramel-lt);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(192, 122, 47, 0.45);
}

.btn-ghost {
    color: var(--cream);
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(245, 237, 224, 0.3);
    transition: background 0.3s, border-color 0.3s;
}

.btn-ghost:hover {
    background: rgba(245, 237, 224, 0.08);
    border-color: rgba(245, 237, 224, 0.6);
}

/* Coffee visual */
.hero-visual {
    position: relative;
    width: 380px;
    height: 380px;
    flex-shrink: 0;
    animation: fadeUp 1s 0.2s ease both;
}

.coffee-circle {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #4a2710, #1c0f07);
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), inset 0 0 60px rgba(192, 122, 47, 0.1);
}

.coffee-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(192, 122, 47, 0.2);
    animation: pulse-ring 3s ease-in-out infinite;
}

.r1 {
    width: 340px;
    height: 340px;
    top: -10px;
    left: -10px;
    animation-delay: 0s;
}

.r2 {
    width: 370px;
    height: 370px;
    top: -25px;
    left: -25px;
    animation-delay: 0.5s;
}

.r3 {
    width: 400px;
    height: 400px;
    top: -40px;
    left: -40px;
    animation-delay: 1s;
}

.coffee-icon-big {
    font-size: 6rem;
    filter: drop-shadow(0 4px 20px rgba(192, 122, 47, 0.4));
}

.steam {
    position: absolute;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(to bottom, rgba(245, 237, 224, 0.5), transparent);
    animation: steam-rise 2.5s ease-in-out infinite;
    top: 120px;
}

.s1 {
    height: 40px;
    left: 175px;
    animation-delay: 0s;
}

.s2 {
    height: 55px;
    left: 185px;
    animation-delay: 0.4s;
}

.s3 {
    height: 35px;
    left: 195px;
    animation-delay: 0.8s;
}

/* ── SHARED SECTION STYLES ─────────────── */
.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--caramel);
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    color: var(--text-main);
    margin-bottom: 60px;
}

.section-title em {
    font-style: italic;
    color: var(--caramel);
}

/* ── FEATURES ─────────────────────────── */
.features {
    padding: 100px 6%;
    background: var(--foam);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s;
}

.feature-card.featured {
    background: var(--espresso);
    color: var(--cream);
    border-color: transparent;
    box-shadow: 0 20px 50px var(--shadow);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow);
}

.feature-card.featured:hover {
    transform: translateY(-6px);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 18px;
}

.feature-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.feature-card.featured h3 {
    color: var(--cream);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-card.featured p {
    color: rgba(245, 237, 224, 0.7);
}

/* ── MENU ─────────────────────────────── */
.menu {
    padding: 100px 6%;
    background: var(--cream-dark);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.menu-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 28px 28px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.menu-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px var(--shadow);
}

.menu-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
}

.menu-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--caramel);
    color: white;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
}

.menu-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 12px;
}

.menu-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.8;
    flex: 1;
    margin-bottom: 24px;
}

.menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.price {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--caramel);
}

.menu-btn {
    background: var(--espresso);
    color: var(--cream);
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
}

.menu-btn:hover {
    background: var(--caramel);
    transform: translateY(-2px);
}

/* ── CONTACT ──────────────────────────── */
.contact {
    padding: 100px 6%;
    background: var(--foam);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-card {
    background: white;
    border-radius: var(--radius);
    padding: 36px 24px;
    text-align: center;
    border: 1px solid var(--border);
    transition: transform 0.4s, box-shadow 0.4s;
    opacity: 0;
    transform: translateY(30px);
}

.contact-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.4s;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px var(--shadow);
}

.contact-icon {
    font-size: 1.8rem;
    color: var(--caramel);
    margin-bottom: 16px;
    display: block;
}

.contact-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-main);
}

.contact-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── FOOTER ───────────────────────────── */
.footer {
    background: var(--espresso);
    padding: 60px 6% 30px;
    text-align: center;
}

.footer-top {
    margin-bottom: 32px;
}

.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cream);
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.85rem;
    color: rgba(245, 237, 224, 0.5);
    letter-spacing: 1px;
}

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.footer-links-row a {
    color: rgba(245, 237, 224, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s;
}

.footer-links-row a:hover {
    color: var(--caramel-lt);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(245, 237, 224, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cream);
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s, border-color 0.3s;
}

.footer-social a:hover {
    background: var(--caramel);
    border-color: var(--caramel);
}

.footer-bottom {
    border-top: 1px solid rgba(245, 237, 224, 0.1);
    padding-top: 24px;
    font-size: 0.8rem;
    color: rgba(245, 237, 224, 0.35);
}

/* ── ANIMATIONS ───────────────────────── */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-ring {

    0%,
    100% {
        opacity: 0.15;
        transform: scale(1);
    }

    50% {
        opacity: 0.35;
        transform: scale(1.02);
    }
}

@keyframes steam-rise {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-25px) scaleX(1.4);
        opacity: 0.3;
    }

    100% {
        transform: translateY(-50px) scaleX(0.8);
        opacity: 0;
    }
}

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 130px 6% 60px;
        gap: 50px;
    }

    .hero-sub {
        max-width: 100%;
        margin: 0 auto 40px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        width: 280px;
        height: 280px;
    }

    .coffee-circle {
        width: 240px;
        height: 240px;
    }

    .r1 {
        width: 260px;
        height: 260px;
        top: -10px;
        left: -10px;
    }

    .r2 {
        width: 290px;
        height: 290px;
        top: -25px;
        left: -25px;
    }

    .r3 {
        width: 320px;
        height: 320px;
        top: -40px;
        left: -40px;
    }

    .coffee-icon-big {
        font-size: 4.5rem;
    }

    .s1 {
        left: 108px;
    }

    .s2 {
        left: 125px;
    }

    .s3 {
        left: 142px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .order-btn {
        display: none;
    }

    .menu-icon {
        display: block;
    }

    .features-grid,
    .menu-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features,
    .menu,
    .contact {
        padding: 70px 5%;
    }
}