/* ==========================================================
   Highway Tadka & Cafe
   Palette lifted straight from the logo:
   crimson #8D0227 on cream #FDF1DC
   ========================================================== */

:root {
    --crimson: #8d0227;
    --crimson-deep: #5c0118;
    --crimson-bright: #b5163d;
    --cream: #fdf1dc;
    --cream-deep: #f7e4c4;
    --cream-sink: #f2dcb8;
    --ink: #24150f;
    --ink-soft: #6a5145;
    --turmeric: #dd9b2d;
    --leaf: #2f6f47;
    --paper: #fffaf1;

    --shadow-sm: 0 2px 10px rgba(92, 1, 24, .07);
    --shadow-md: 0 14px 34px -18px rgba(92, 1, 24, .35);
    --shadow-lg: 0 30px 70px -32px rgba(92, 1, 24, .48);

    --radius: 14px;
    --radius-lg: 26px;
    --arch: 220px 220px 20px 20px / 180px 180px 20px 20px;

    --strip-height: 0px;
    --nav-height: 74px;
    --gutter: clamp(1.15rem, 4vw, 3.5rem);
    --max: 1200px;

    --display: "Fraunces", "Iowan Old Style", Georgia, serif;
    --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--strip-height) + var(--nav-height) + 16px); }

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--cream);
    background-image:
        radial-gradient(circle at 12% 8%, rgba(221, 155, 45, .11), transparent 46%),
        radial-gradient(circle at 88% 4%, rgba(141, 2, 39, .07), transparent 40%);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

h1, h2, h3, h4 {
    font-family: var(--display);
    font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 110;
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.015em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - var(--gutter) * 2, 780px); margin-inline: auto; }

/* ---------- small type ---------- */
.eyebrow {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .19em;
    text-transform: uppercase;
    color: var(--crimson);
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: currentColor;
    opacity: .5;
}
.lede { font-size: clamp(1.02rem, 1.5vw, 1.16rem); color: var(--ink-soft); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .86rem 1.55rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 .93rem/1 var(--body);
    letter-spacing: .01em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--crimson); color: var(--cream); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--crimson-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(141, 2, 39, .3); color: var(--crimson); background: transparent; }
.btn-ghost:hover { background: rgba(141, 2, 39, .07); transform: translateY(-2px); }
.btn-cream { background: var(--cream); color: var(--crimson); }
.btn-cream:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: .62rem 1.1rem; font-size: .84rem; }

body.ordering-disabled [data-order-url] { pointer-events: none; opacity: .5; }

/* ==========================================================
   Navigation
   ========================================================== */
.nav {
    position: fixed;
    top: var(--strip-height);
    left: 0; right: 0;
    z-index: 900;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    background: rgba(253, 241, 220, .82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(141, 2, 39, .12);
    transition: box-shadow .25s ease, background-color .25s ease;
}
.nav.is-stuck { box-shadow: 0 10px 30px -22px rgba(92, 1, 24, .6); background: rgba(253, 241, 220, .96); }

.nav-inner { display: flex; align-items: center; gap: 1.2rem; width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--shadow-sm); }
.brand-name {
    font-family: var(--display);
    font-variation-settings: "SOFT" 70, "WONK" 1;
    font-weight: 800;
    font-size: 1.16rem;
    line-height: 1;
    color: var(--crimson);
}
.brand-sub { display: block; font-family: var(--body); font-size: .63rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-top: .25rem; }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
    position: relative;
    padding: .5rem .8rem;
    font-size: .92rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--ink);
    border-radius: 8px;
    transition: color .18s ease;
}
.nav-links a::after {
    content: "";
    position: absolute;
    left: .8rem; right: .8rem; bottom: .28rem;
    height: 2px;
    background: var(--crimson);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
}
.nav-links a:hover { color: var(--crimson); }
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-links a.is-current { color: var(--crimson); font-weight: 600; }
/* the in-menu order button only exists for the mobile drawer */
.nav-links .btn { display: none; }
.nav-links a.btn-primary { color: #fff; }
.nav-links a.btn-primary:hover { color: #fff; }

.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--crimson); white-space: nowrap; }
.nav-phone svg { width: 15px; height: 15px; }

.nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid rgba(141, 2, 39, .22);
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    content: ""; display: block; width: 17px; height: 1.8px; background: var(--crimson); border-radius: 2px; transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle span::before { transform: translateY(-5.5px); }
.nav-toggle span::after { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-1.8px) rotate(-45deg); }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
    position: relative;
    padding-top: calc(var(--strip-height) + var(--nav-height) + clamp(1.1rem, 2.4vw, 2.2rem));
    padding-bottom: clamp(2rem, 4.5vw, 3.6rem);
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(141, 2, 39, .3) 0 26px, transparent 26px 52px);
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}
.hero h1 { color: var(--crimson-deep); }
.hero h1 em { font-style: italic; font-variation-settings: "SOFT" 90, "WONK" 1; color: var(--crimson); }
.hero .lede { margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.8rem; }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem 2.4rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(141, 2, 39, .16);
}
.hero-facts div { min-width: 0; }
.hero-facts dt { font-size: .68rem; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: .3rem; }
.hero-facts dd { margin: 0; font-weight: 600; font-size: .98rem; color: var(--crimson-deep); }
.hero-facts dd a { text-decoration: none; }
.hero-facts dd a:hover { text-decoration: underline; }

.hero-art { position: relative; }
.hero-photo {
    position: relative;
    border-radius: var(--arch);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    background: var(--cream-sink);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(40, 8, 16, .42), transparent 46%);
}
.hero-seal {
    position: absolute;
    left: -26px; bottom: 34px;
    width: 138px; height: 138px;
    border-radius: 50%;
    background: var(--crimson);
    color: var(--cream);
    display: grid;
    place-content: center;
    text-align: center;
    padding: 1rem;
    transform: rotate(-9deg);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(253, 241, 220, .35);
    outline: 1px solid rgba(141, 2, 39, .5);
    outline-offset: 5px;
}
.hero-seal strong { display: block; font-family: var(--display); font-size: 1.5rem; font-variation-settings: "SOFT" 80, "WONK" 1; line-height: 1; }
.hero-seal span { display: block; font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; margin-top: .4rem; opacity: .85; }

.chilli { position: absolute; color: var(--crimson); opacity: .12; pointer-events: none; }
.chilli-1 { top: 8%; right: 42%; width: 54px; transform: rotate(18deg); }

/* ==========================================================
   Generic section furniture
   ========================================================== */
.section { padding: clamp(3.4rem, 7vw, 6.5rem) 0; }
.section-alt { background: var(--cream-deep); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.section-head h2 { color: var(--crimson-deep); margin-bottom: .3rem; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 46ch; }

/* ---------- story split ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 5 / 4; }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

.stat-row { display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem; margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(141, 2, 39, .16); }
.stat strong { display: block; font-family: var(--display); font-size: 2rem; font-variation-settings: "SOFT" 80, "WONK" 1; color: var(--crimson); line-height: 1; }
.stat span { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }

/* ---------- visit / cta band ---------- */
.band {
    background: var(--crimson);
    color: var(--cream);
    padding: clamp(3rem, 6vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}
.band::before {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 3px;
    background: repeating-linear-gradient(90deg, rgba(253, 241, 220, .5) 0 30px, transparent 30px 60px);
}
.band h2 { color: var(--cream); }
.band p { color: rgba(253, 241, 220, .8); }
.band-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2rem; align-items: start; }
.band-item h3 { font-size: .74rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(253, 241, 220, .65); font-family: var(--body); font-weight: 700; margin-bottom: .55rem; }
.band-item p, .band-item a { color: var(--cream); font-size: 1.02rem; margin: 0; font-weight: 500; }
.band-item a { text-decoration: none; border-bottom: 1px solid rgba(253, 241, 220, .35); }
.band-item a:hover { border-color: var(--cream); }

/* ==========================================================
   Contact page
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.6rem, 3.5vw, 3rem); align-items: start; }

.info-card {
    background: var(--paper);
    border: 1px solid rgba(141, 2, 39, .12);
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.1rem);
    box-shadow: var(--shadow-sm);
}
.info-card h2 { font-size: 1.5rem; color: var(--crimson-deep); }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .95rem; padding: .95rem 0; border-bottom: 1px solid rgba(141, 2, 39, .1); }
.info-list li:last-child { border-bottom: 0; }
.info-ico {
    flex: 0 0 38px; width: 38px; height: 38px;
    border-radius: 50%;
    display: grid; place-content: center;
    background: rgba(141, 2, 39, .08);
    color: var(--crimson);
}
.info-ico svg { width: 17px; height: 17px; }
.info-list dt, .info-label { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 700; margin-bottom: .18rem; }
.info-value { font-weight: 600; color: var(--crimson-deep); font-size: 1rem; line-height: 1.45; }
.info-value a { text-decoration: none; }
.info-value a:hover { text-decoration: underline; }

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    padding: .72rem 0;
    border-bottom: 1px solid rgba(141, 2, 39, .1);
    font-size: .95rem;
}
.hours-row:last-child { border-bottom: 0; }
.hours-row .day { font-weight: 600; display: flex; align-items: center; gap: .55rem; }
.hours-row .time { text-align: right; color: var(--ink-soft); }
.hours-row.is-today { color: var(--crimson); }
.hours-row.is-today .time { color: var(--crimson); font-weight: 600; }
.today-tag {
    font-size: .58rem; letter-spacing: .13em; text-transform: uppercase;
    background: var(--crimson); color: var(--cream);
    padding: .16rem .42rem; border-radius: 999px; font-weight: 700;
}
.is-shut { color: rgba(106, 81, 69, .6); }

.status-pill {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .35rem .8rem; border-radius: 999px;
    font-size: .76rem; font-weight: 700; letter-spacing: .05em;
    border: 1px solid transparent;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.is-open { color: var(--leaf); background: rgba(47, 111, 71, .12); border-color: rgba(47, 111, 71, .3); }
.status-pill.is-closed { color: var(--crimson); background: rgba(141, 2, 39, .1); border-color: rgba(141, 2, 39, .25); }

/* ==========================================================
   Footer
   ========================================================== */
.footer { background: var(--crimson-deep); color: rgba(253, 241, 220, .78); padding: clamp(3rem, 6vw, 4.5rem) 0 1.6rem; }
.footer a { color: inherit; }
.footer h4 { font-family: var(--body); font-size: .72rem; letter-spacing: .17em; text-transform: uppercase; color: rgba(253, 241, 220, .55); font-weight: 700; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; max-width: 34ch; }

.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { text-decoration: none; font-size: .94rem; transition: color .18s ease; }
.footer-links a:hover { color: var(--cream); }

.hours-list { list-style: none; margin: 0; padding: 0; font-size: .89rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .34rem 0; }
.hours-list .day { font-weight: 600; color: rgba(253, 241, 220, .9); }
.hours-list .time { text-align: right; }
.hours-list .is-today { color: var(--cream); }
.hours-list .is-today .day { position: relative; }
.hours-list .is-today .day::before {
    content: "";
    position: absolute;
    left: -.62rem; top: 50%;
    width: 4px; height: 4px;
    margin-top: -2px;
    border-radius: 50%;
    background: var(--turmeric);
}

.footer-contact { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .94rem; }
.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--cream); }

.footer-bottom {
    margin-top: clamp(2.4rem, 5vw, 3.5rem);
    padding-top: 1.4rem;
    border-top: 1px solid rgba(253, 241, 220, .16);
    display: flex; flex-wrap: wrap; gap: 1rem 2rem;
    align-items: center; justify-content: space-between;
    font-size: .8rem;
}
.credit { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.credit span { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; opacity: .7; }
.credit a { text-decoration: none; font-weight: 600; }
.credit a:hover { color: var(--cream); }

/* ---------- floating order button (mobile) ---------- */
.float-order {
    position: fixed;
    right: 1rem; bottom: 1rem;
    z-index: 800;
    display: none;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}
.float-order.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease var(--delay, 0ms), transform .6s cubic-bezier(.2, .7, .3, 1) var(--delay, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-art { order: -1; max-width: 460px; }
    .hero-photo { aspect-ratio: 4 / 3.4; border-radius: 180px 180px 18px 18px / 140px 140px 18px 18px; }
    .hero-seal { width: 108px; height: 108px; left: auto; right: -10px; bottom: -18px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    :root { --nav-height: 66px; }

    .nav-toggle { display: inline-flex; }
    .nav-phone { display: none; }
    .nav .btn { display: none; }
    .nav-links {
        position: fixed;
        top: calc(var(--strip-height) + var(--nav-height));
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--cream);
        border-bottom: 1px solid rgba(141, 2, 39, .15);
        box-shadow: var(--shadow-md);
        padding: .5rem var(--gutter) 1.2rem;
        transform: translateY(-14px);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease;
    }
    .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links a { padding: .85rem .2rem; border-bottom: 1px solid rgba(141, 2, 39, .1); border-radius: 0; }
    .nav-links a::after { display: none; }
    .nav-links .btn { display: inline-flex; margin-top: .9rem; }

    .float-order { display: inline-flex; }

    /* The whole hero — photo, headline, both buttons — inside the first
       screenful on a phone, with the facts row peeking underneath. */
    .hero {
        padding-top: calc(var(--strip-height) + var(--nav-height) + 1.1rem);
        padding-bottom: 2rem;
    }
    .hero-grid { gap: 1.25rem; }
    .hero-art { max-width: 100%; margin-bottom: .2rem; }
    .hero-photo {
        aspect-ratio: 16 / 11;
        max-height: 40vh;
        border-radius: 130px 130px 16px 16px / 92px 92px 16px 16px;
    }
    .hero-seal { width: 88px; height: 88px; right: 14px; bottom: -14px; padding: .5rem; }
    .hero-seal strong { font-size: 1.05rem; }
    .hero-seal span { font-size: .48rem; margin-top: .22rem; }

    .hero .eyebrow { font-size: .66rem; margin-bottom: .55rem; }
    .hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); margin-bottom: .5rem; }
    .hero .lede { font-size: .95rem; line-height: 1.5; margin-bottom: 1.1rem; }
    .hero-actions { gap: .6rem; margin-bottom: 1.2rem; }
    .hero-actions .btn { padding: .78rem 1.25rem; font-size: .88rem; }

    .hero-facts {
        gap: .9rem 1.6rem;
        padding-top: 1.05rem;
    }
    .hero-facts dt { font-size: .6rem; margin-bottom: .15rem; }
    .hero-facts dd { font-size: .9rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

@media (max-width: 760px) and (max-height: 720px) {
    .hero-photo { max-height: 30vh; aspect-ratio: 16 / 9; }
    .hero .lede { font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
