/* ==========================================================================
   Röstwerk Wien — coffee roastery demo page
   Palette: espresso, cream, terracotta, gold — warm & tactile, like the shop
   Type: Fraunces (display) · Work Sans (body) · Caveat (handwritten accent)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,900&family=Work+Sans:wght@400;500;600;700&family=Caveat:wght@600;700&display=swap');

:root {
    --espresso: #1c130c;
    --cream: #f7efe3;
    --parchment: #eee0ca;
    --rust: #b64f2e;
    --rust-dark: #8f3a20;
    --gold: #c69a52;
    --ink: #2a1d13;
    --muted: #7a6a58;
    --line: rgba(42, 29, 19, 0.14);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Work Sans', sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: 'Fraunces', serif; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.eyebrow {
    font-family: 'Caveat', cursive;
    font-size: 1.5rem;
    color: var(--rust);
    margin-bottom: .25rem;
    display: block;
}
.section__title { font-size: clamp(1.9rem, 3.5vw, 2.75rem); font-weight: 700; margin-bottom: 1rem; }
.section__lead { max-width: 56ch; color: var(--muted); font-size: 1.05rem; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(247, 239, 227, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__brand { display: flex; align-items: center; gap: .6rem; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.15rem; }
.nav__brand svg { width: 30px; height: 30px; }
.nav__links { display: flex; gap: 2rem; }
.nav__links a { font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; padding: 4px 0; }
.nav__links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
    background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
    padding: .65rem 1.3rem; border-radius: 999px; background: var(--espresso); color: var(--cream);
    font-size: .88rem; font-weight: 600; transition: background .3s var(--ease), transform .3s var(--ease);
}
.nav__cta:hover { background: var(--rust); transform: translateY(-2px); }
@media (max-width: 720px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 8vw, 5rem) 0 clamp(2rem, 6vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; margin: .4rem 0 1.2rem; }
.hero__title em { font-style: italic; color: var(--rust); }
.hero__text p.section__lead { margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .9rem 1.7rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
    transition: transform .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
}
.btn--solid { background: var(--espresso); color: var(--cream); }
.btn--solid:hover { background: var(--rust); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(182,79,46,.55); }
.btn--outline { border: 1.5px solid var(--espresso); color: var(--espresso); }
.btn--outline:hover { background: var(--espresso); color: var(--cream); transform: translateY(-2px); }

.hero__cup { position: relative; display: flex; justify-content: center; }
.steam span {
    position: absolute;
    bottom: 62%;
    width: 10px; height: 46px;
    background: linear-gradient(0deg, rgba(28,19,12,0) 0%, rgba(28,19,12,.35) 55%, rgba(28,19,12,0) 100%);
    border-radius: 50%;
    filter: blur(3px);
    animation: rise 3.2s ease-in-out infinite;
    opacity: 0;
}
.steam span:nth-child(1) { left: 44%; animation-delay: 0s; }
.steam span:nth-child(2) { left: 52%; animation-delay: 1s; }
.steam span:nth-child(3) { left: 48%; animation-delay: 2s; }
@keyframes rise {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    25% { opacity: .8; }
    100% { transform: translateY(-90px) scaleX(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .steam span { animation: none; opacity: 0; } }

/* ---------- Story ---------- */
.story__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.story__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.story__stat { border-top: 2px solid var(--rust); padding-top: .6rem; }
.story__stat strong { display: block; font-family: 'Fraunces', serif; font-size: 1.9rem; font-weight: 700; }
.story__stat span { font-size: .85rem; color: var(--muted); }

/* ---------- Menu ---------- */
.menu { background: var(--espresso); color: var(--cream); }
.menu .eyebrow { color: var(--gold); }
.menu .section__title, .menu .section__lead { color: var(--cream); }
.menu .section__lead { color: rgba(247,239,227,.65); }
.menu__groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 3.5rem); margin-top: 3rem; }
.menu__group h3 {
    font-family: 'Caveat', cursive; font-size: 1.7rem; color: var(--gold); margin-bottom: 1.2rem; font-weight: 700;
}
.menu__item { display: flex; align-items: baseline; gap: .5rem; padding: .7rem 0; border-bottom: 1px dashed rgba(247,239,227,.18); }
.menu__item .name { font-weight: 600; }
.menu__item .desc { display: block; font-size: .82rem; color: rgba(247,239,227,.55); margin-top: .15rem; }
.menu__item .dots { flex: 1; border-bottom: 1px dotted rgba(247,239,227,.3); transform: translateY(-4px); }
.menu__item .price { font-family: 'Fraunces', serif; font-weight: 600; color: var(--gold); }

/* ---------- Visit / hours ---------- */
.visit__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.hours { border-top: 1px solid var(--line); margin-top: 1.5rem; }
.hours__row { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.hours__row span:first-child { font-weight: 600; }
.hours__row.today { color: var(--rust); }
.visit__card {
    background: var(--parchment);
    border-radius: 20px;
    padding: clamp(1.75rem, 4vw, 2.5rem);
}
.visit__card p { margin-bottom: .5rem; }
.visit__card .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 1.2rem; }
.visit__card .value { font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: rgba(247,239,227,.55); padding: 2.5rem 0; text-align: center; font-size: .85rem; }
.footer strong { color: var(--cream); }

@media (max-width: 860px) {
    .hero__grid, .story__grid, .visit__grid, .menu__groups { grid-template-columns: 1fr; }
    .hero__cup { order: -1; }
}
