/* ---------------------------------------------------------------
   Ember & Oak Coffee — stylesheet
   Warm, low-contrast palette; system fonts; mobile-first.
   --------------------------------------------------------------- */

:root {
    --espresso: #2b1d16;
    --coffee:   #4a3428;
    --caramel:  #b07a4a;
    --crema:    #e9dcc9;
    --foam:     #f6efe4;
    --paper:    #fbf7f0;
    --ink:      #24160f;
    --muted:    #7a6a5c;
    --line:     #e2d5c2;
    --accent:   #a5542a;
    --radius:   14px;
    --shadow:   0 10px 30px rgba(43, 29, 22, 0.10);
    --wrap:     1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
    color: var(--espresso);
    margin: 0 0 0.5em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform .12s ease, background .2s ease, color .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--espresso); color: var(--foam); }
.btn-primary:hover { background: var(--coffee); color: #fff; }
.btn-ghost { border-color: var(--espresso); color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--foam); }

/* ---- Header / nav ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 247, 240, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; color: var(--espresso); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.6rem; }
.brand-name { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 700; }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
}
.site-nav a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--coffee);
    font-weight: 600;
}
.site-nav a:hover { background: var(--crema); text-decoration: none; }
.site-nav a.is-active { background: var(--espresso); color: var(--foam); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.5rem;
    color: var(--espresso);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

/* ---- Hero ---- */
.hero {
    background:
        radial-gradient(1200px 400px at 80% -10%, rgba(176, 122, 74, 0.25), transparent 60%),
        linear-gradient(160deg, var(--foam), var(--crema));
    border-bottom: 1px solid var(--line);
}
.hero-inner { padding: 5rem 1.25rem 5.5rem; max-width: 720px; }
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--caramel);
    margin: 0 0 0.75rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero-actions { margin-top: 1.75rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 4rem 0; }
.section-alt { background: var(--foam); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.section-cta { margin-top: 2rem; font-weight: 600; }

/* ---- Cards ---- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.card-desc { color: var(--muted); margin: 0 0 1rem; }
.card-price { font-weight: 700; color: var(--accent); margin: 0; }

/* ---- Split layout ---- */
.split {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: start;
}
.split-hours {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}
.today-hours { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin: 0 0 1rem; }
.hours-list, .footer-hours { list-style: none; margin: 0; padding: 0; }
.hours-list li, .footer-hours li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--coffee);
}
.hours-list li:last-child, .footer-hours li:last-child { border-bottom: 0; }
.hours-list li.is-today { font-weight: 700; color: var(--espresso); }
.mt { margin-top: 1.75rem; }

/* ---- Page head ---- */
.page-head {
    background: linear-gradient(160deg, var(--foam), var(--crema));
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 0 2.75rem;
}
.page-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 56ch; margin: 0; }

/* ---- Menu ---- */
.menu-group { margin-bottom: 3rem; }
.menu-category {
    font-size: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--caramel);
    display: inline-block;
    margin-bottom: 1.25rem;
}
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-item { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item-head { display: flex; align-items: baseline; gap: 0.5rem; }
.menu-item-name { font-weight: 700; color: var(--espresso); font-size: 1.08rem; }
.menu-dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.menu-item-price { font-weight: 700; color: var(--accent); }
.menu-item-desc { margin: 0.25rem 0 0; color: var(--muted); }

/* ---- Prose / about ---- */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.25rem; font-size: 1.08rem; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.value-list { padding-left: 1.2rem; margin: 0 0 1.5rem; }
.value-list li { margin-bottom: 0.6rem; }

/* ---- Forms ---- */
.contact-form { max-width: 520px; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--coffee); }
.field input, .field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--caramel);
    box-shadow: 0 0 0 3px rgba(176, 122, 74, 0.2);
}
.field.has-error input, .field.has-error textarea { border-color: #c0492b; }
.field-error { display: block; margin-top: 0.35rem; color: #c0492b; font-size: 0.9rem; }
.alert { padding: 1rem 1.25rem; border-radius: 10px; margin-bottom: 1.5rem; }
.alert-success { background: #e7f2e4; border: 1px solid #b7d7ad; color: #2f5127; }

/* ---- Footer ---- */
.site-footer { background: #234a30; color: var(--crema); margin-top: 2rem; }
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    padding: 3rem 1.25rem 2rem;
}
.site-footer h3 { color: var(--foam); font-size: 1.3rem; }
.site-footer h4 { color: var(--caramel); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; font-family: inherit; }
.site-footer p { margin: 0.25rem 0; color: var(--crema); }
.site-footer a { color: var(--foam); }
.footer-hours li { border-color: rgba(233, 220, 201, 0.2); color: var(--crema); }
.footer-bottom {
    border-top: 1px solid rgba(233, 220, 201, 0.2);
    padding: 1.25rem 1.25rem 2rem;
    font-size: 0.9rem;
    color: rgba(233, 220, 201, 0.75);
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .site-nav ul {
        display: none;
        position: absolute;
        top: 100%;
        right: 1.25rem;
        left: 1.25rem;
        flex-direction: column;
        background: var(--paper);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 0.5rem;
        box-shadow: var(--shadow);
    }
    .site-nav ul.is-open { display: flex; }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .hero-inner { padding: 3.5rem 1.25rem 4rem; }
}
