/* ============================================
   Mithaiwala Sweets & Snacks — Hoppers Crossing
   ============================================ */

:root {
    --paper: #fbf6ee;
    --paper-2: #f2e8d8;
    --card: #fffdf9;
    --ink: #26170f;
    --ink-2: #5a4636;
    --muted: #8a7563;
    --line: #e5d8c3;
    --maroon: #86182a;
    --maroon-2: #661221;
    --saffron: #d98a1c;

    --font-display: 'Rozha One', Georgia, serif;
    --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --max: 1180px;
    --gutter: clamp(1rem, 4vw, 2rem);
    --radius: 4px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.005em;
    margin: 0 0 1rem;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.1rem; line-height: 1.3; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

.eyebrow {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--maroon);
    margin: 0 0 .9rem;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; }

:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font: 600 .975rem/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--maroon); color: #fff; }
.btn--primary:hover { background: var(--maroon-2); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); color: var(--maroon-2); }
.btn--light:hover { background: #fff; }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.text-link {
    font-weight: 600;
    color: var(--maroon);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
}
.text-link:hover { color: var(--maroon-2); }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 246, 238, .96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: saturate(1.2) blur(6px);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 4.5rem;
}
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; line-height: 1; }
.brand__logo { height: 54px; width: auto; }
.brand__tag {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding-left: .9rem;
    border-left: 1px solid var(--line);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.brand__loc { font-weight: 500; letter-spacing: .12em; color: var(--muted); }
.nav__links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav__links a:not(.btn) {
    text-decoration: none;
    font-weight: 500;
    padding: .25rem 0;
    border-bottom: 2px solid transparent;
}
.nav__links a:not(.btn):hover { border-bottom-color: var(--line); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--maroon); }
.nav__toggle {
    display: none;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    position: absolute;
    left: 50%;
    width: 1.1rem;
    height: 2px;
    background: var(--ink);
    transform: translateX(-50%);
    content: '';
}
.nav__toggle span { top: 50%; margin-top: -1px; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }

@media (max-width: 820px) {
    .nav__toggle { display: block; }
    .nav__links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: .5rem var(--gutter) 1.25rem;
        display: none;
    }
    .nav__links.is-open { display: flex; }
    .nav__links a:not(.btn) { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
    .nav__links a[aria-current="page"] { color: var(--maroon); border-bottom-color: var(--line); }
    .nav__links .btn { margin-top: 1rem; width: 100%; }
}

/* ---- Hero (full-bleed photo) ---- */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(82vh, 760px);
    padding: clamp(4rem, 10vw, 7rem) 0;
    background: #2a160d;
    color: #fbf3e6;
    overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(30, 14, 7, .88) 0%, rgba(30, 14, 7, .72) 38%, rgba(30, 14, 7, .15) 72%, rgba(30, 14, 7, 0) 100%),
        linear-gradient(0deg, rgba(30, 14, 7, .45) 0%, rgba(30, 14, 7, 0) 35%);
}
.hero__inner { width: 100%; }
.hero .eyebrow { color: #f0b85a; }
.hero h1 { color: #fff; max-width: 13ch; }
.hero__lede { font-size: 1.15rem; color: rgba(251, 243, 230, .88); max-width: 34rem; margin-bottom: 2rem; }
.btn--ghost { border-color: rgba(251, 243, 230, .7); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }


/* ---- Sections ---- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--tint { background: var(--paper-2); }
.section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.25rem;
}
.section__head h2 { margin: 0; }
.section__head p { max-width: 34rem; color: var(--ink-2); margin: .75rem 0 0; }

/* ---- About ---- */
.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
}
.about__collage { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; padding-bottom: 1.75rem; }
.about__collage figure {
    position: relative;
    margin: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper-2);
}
.about__collage figure:nth-child(even) { transform: translateY(1.75rem); }
.about__collage img { width: 100%; height: 100%; object-fit: cover; }
.about__collage figcaption {
    position: absolute;
    left: .6rem;
    bottom: .6rem;
    background: var(--paper);
    color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
    padding: .25rem .55rem;
    border-radius: 2px;
}
.about__copy p { color: var(--ink-2); max-width: 36rem; }
.about__points {
    list-style: none;
    margin: 1.75rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--ink);
}
.about__points li { padding: .9rem 1rem .9rem 0; }
.about__points li + li { padding-left: 1rem; border-left: 1px solid var(--line); }
.about__points strong { display: block; font-size: .95rem; }
.about__points span { display: block; font-size: .88rem; color: var(--muted); margin-top: .15rem; }

/* ---- Contact ---- */
.visit__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: stretch;
}
.detail { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.detail:first-of-type { border-top: 1px solid var(--ink); }
.detail__label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}
.detail address { font-style: normal; font-weight: 600; }
.detail address span { display: block; }
.detail__note { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }
.detail a[data-phone] { font-weight: 600; text-decoration: none; }
.map {
    min-height: 420px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-2);
}
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---- Footer ---- */
.site-footer {
    background: var(--ink);
    color: rgba(251, 246, 238, .82);
    padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
    font-size: .95rem;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr;
    gap: 2.5rem;
}
.footer__brand .brand__logo { height: 74px; }
.footer__brand .brand__tag { color: rgba(251, 246, 238, .75); border-left-color: rgba(251, 246, 238, .2); }
.footer__brand .brand__loc { color: rgba(251, 246, 238, .5); }
.site-footer h3 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(251, 246, 238, .55);
    margin-bottom: .9rem;
}
.site-footer address { font-style: normal; margin-top: 1.25rem; }
.site-footer address span { display: block; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__credits { display: block; margin-top: .4rem; font-size: .75rem; }
.footer__credits a { text-decoration: underline; }
.footer__base {
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(251, 246, 238, .15);
    font-size: .82rem;
    color: rgba(251, 246, 238, .5);
}
.site-footer .skel { background: rgba(251, 246, 238, .12); animation: none; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
    .visit__grid, .about__grid { grid-template-columns: 1fr; }
    .about__collage { max-width: 34rem; }
    .hero { min-height: 0; }
    .hero::before { background: linear-gradient(90deg, rgba(30, 14, 7, .88) 0%, rgba(30, 14, 7, .7) 60%, rgba(30, 14, 7, .45) 100%); }
    .section__head { flex-direction: column; align-items: start; gap: 1rem; }
    .map, .map iframe { min-height: 320px; }
}
@media (max-width: 560px) {
    body { font-size: 1rem; }
    .footer__grid { grid-template-columns: 1fr; }
    .btn-row .btn { flex: 1 1 auto; }
    .about__points { grid-template-columns: 1fr; }
    .about__collage { gap: .6rem; padding-bottom: 1rem; }
    .about__collage figure:nth-child(even) { transform: translateY(1rem); }
    .about__points li, .about__points li + li { padding: .75rem 0; border-left: 0; }
    .about__points li + li { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
    .site-header .brand__tag { display: none; }
    .brand__logo { height: 46px; }
}

section[id] { scroll-margin-top: 4.5rem; }
