/* brand.css — fonts, brand typography, legacy template class names still used in markup.
   Distilled replacement for the old template's 6,700-line style.css. */

/* ============================================================
   Fonts (self-hosted)
   ============================================================ */

@font-face {
    font-family: "Bloomsbury Sans";
    src: url("../fonts/BloomsburySans.otf") format("opentype");
    font-display: swap;
}

@font-face {
    font-family: "PP Neue Montreal";
    src: url("../fonts/ppneuemontreal-thin.otf") format("opentype");
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: "PP Neue Montreal";
    src: url("../fonts/ppneuemontreal-book.otf") format("opentype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "PP Neue Montreal";
    src: url("../fonts/ppneuemontreal-medium.otf") format("opentype");
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: "PP Neue Montreal";
    src: url("../fonts/ppneuemontreal-bold.otf") format("opentype");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "PP Neue Montreal";
    src: url("../fonts/ppneuemontreal-italic.otf") format("opentype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "PP Neue Montreal";
    src: url("../fonts/ppneuemontreal-semibolditalic.otf") format("opentype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* ============================================================
   Body baseline
   ============================================================ */

html, body {
    background: var(--ink);
    color: var(--cream);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--lh-body);
    color: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: var(--lh-snug);
    color: var(--cream);
}

p {
    margin: 0 0 var(--sp-4);
}

a {
    color: var(--ember);
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}

a:hover {
    color: var(--ember-hover);
}

ul, ol {
    padding-left: 1.25em;
    margin: 0 0 var(--sp-4);
}

address {
    font-style: normal;
}

/* ============================================================
   Brand typography helpers
   ============================================================ */

/* Legacy class aliases — both repointed to brand fonts (Bloomsbury Sans + PP Neue Montreal).
   The hand-drawn Populaire/Grobold faces are no longer loaded. */
.text-grobold {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

.text-populaire {
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.text-dough  { color: var(--stone); }
.text-ember  { color: var(--ember); }
.text-cream  { color: var(--cream); }
.text-white  { color: var(--cream); }

.black-bg { background: var(--ink); }

/* ============================================================
   Section rhythm (legacy: page-section-pt/ptb/pb)
   ============================================================ */

.page-section-pt  { padding-top: var(--sp-10); }
.page-section-pb  { padding-bottom: var(--sp-10); }
.page-section-ptb { padding-block: var(--sp-10); }

/* Bootstrap display-6 approximation — used for brand lede lines */
.display-6 {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: 400;
    line-height: var(--lh-snug);
}

/* ============================================================
   Legacy layout utilities still referenced in markup
   ============================================================ */

.object-top-bottom {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.object-top-bottom .object-left {
    position: absolute;
    left: 0;
    top: 0;
    width: min(200px, 18vw);
    opacity: 0.5;
}

.object-top-bottom .object-right {
    position: absolute;
    right: 0;
    top: 30%;
    width: min(220px, 20vw);
    opacity: 0.5;
}

/* Home hero bagel image positioning (Home/Index uses .object-top-bottom variants) */

.section-divider {
    width: 64px;
    height: 2px;
    background: var(--ember);
    margin: var(--sp-3) auto 0;
}

/* ============================================================
   Menu item names + prices (shared across partials)
   ============================================================ */

.menu-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    border-bottom: 1px dashed color-mix(in oklch, var(--stone) 50%, transparent);
    padding-block: var(--sp-3);
}

.menu-item-name {
    display: inline-block;
    color: var(--cream);
    font-size: 1.5rem;
    line-height: 1.15;
    font-family: "Bloomsbury Sans", var(--font-display);
    letter-spacing: 0.01em;
}

.menu-item-price {
    color: var(--stone);
    font-family: "Bloomsbury Sans", var(--font-display);
    font-size: 1.125rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.menu-description p {
    color: color-mix(in oklch, var(--cream) 72%, transparent);
    font-size: 0.95rem;
    line-height: var(--lh-body);
    margin: 0;
}

.menu-meaning {
    color: color-mix(in oklch, var(--stone) 70%, transparent);
    font-style: italic;
    font-size: 0.85rem;
    margin-top: var(--sp-1);
}

/* ============================================================
   Legacy .button / .btn (keep working — some legacy pages may use)
   ============================================================ */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-3) var(--sp-6);
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--cream);
    background: var(--ember);
    border: 1px solid var(--ember);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background-color var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out);
}

.button:hover,
.button:focus-visible {
    background: var(--ember-hover);
    color: var(--cream);
}

.button.large { padding: var(--sp-4) var(--sp-8); font-size: 1rem; }

/* Minimal .btn reset so legacy markup doesn't look weird */
.btn {
    display: inline-block;
    padding: var(--sp-2) var(--sp-4);
    font-family: var(--font-display);
    background: transparent;
    color: inherit;
    border: 1px solid currentColor;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--dur-base) var(--ease-out),
                color var(--dur-base) var(--ease-out);
}

.btn-outline-light {
    color: var(--cream);
    border-color: var(--cream);
}
.btn-outline-light:hover {
    background: var(--cream);
    color: var(--ink);
}

/* ============================================================
   Footer — 4-column: logo / Contact / Open Daily / Connect
   ============================================================ */

.footer {
    background: var(--ink);
    color: var(--cream);
    padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    padding-bottom: var(--sp-8);
}

@media (min-width: 720px) {
    .footer-grid {
        grid-template-columns: auto repeat(3, 1fr);
        gap: var(--sp-10);
        align-items: start;
    }
}

.footer-logo-sec { display: flex; align-items: flex-start; }
.footer-logo { width: 140px; height: auto; }

.footer h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ember);
    margin: 0 0 var(--sp-3);
    font-weight: 600;
}

.footer address,
.footer p {
    color: color-mix(in oklch, var(--cream) 80%, transparent);
    margin: 0 0 var(--sp-2);
    font-size: 0.875rem;
    line-height: 1.5;
}

.footer-col strong {
    color: var(--cream);
    font-weight: 600;
}

.footer a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}

.footer a:hover { color: var(--ember); }

.footer-connect {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-connect a {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.875rem;
    color: color-mix(in oklch, var(--cream) 80%, transparent);
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid color-mix(in oklch, var(--stone) 18%, transparent);
    padding-block: var(--sp-5);
}

.footer-bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.footer-copy {
    margin: 0;
    font-size: 0.8125rem;
    color: color-mix(in oklch, var(--cream) 65%, transparent);
}

.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    align-items: center;
}

.footer-legal a,
.footer-legal button {
    font-family: var(--font-body);
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: color-mix(in oklch, var(--cream) 65%, transparent);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--dur-base) var(--ease-out);
}

.footer-legal a:hover,
.footer-legal button:hover {
    color: var(--ember);
}

@media (max-width: 720px) {
    /* Mobile: center every footer block + the bottom legal row */
    .footer-grid           { text-align: center; }
    .footer-logo-sec       { justify-content: center; }
    .footer-connect        { align-items: center; }
    .footer-bottom-row     { justify-content: center; text-align: center; }
    .footer-legal          { justify-content: center; }
}

/* ============================================================
   Back to top
   ============================================================ */

#back-to-top {
    position: fixed;
    bottom: var(--sp-5);
    right: var(--sp-5);
    z-index: var(--z-sticky);
}

#back-to-top a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ember);
    color: var(--cream);
    transition: background-color var(--dur-base) var(--ease-out);
}

#back-to-top a:hover {
    background: var(--ember-hover);
}

/* ============================================================
   Preloader
   ============================================================ */

#loading {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: var(--z-overlay);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================
   Testimonial block (Home testimonials content)
   — editorial card treatment lives in home.css; this is just baseline.
   ============================================================ */

.testimonial-block {
    color: var(--cream);
}

.testimonial-block strong {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.testimonial-info p {
    margin: 0;
}

.white-text, .white-text p { color: var(--cream); }

/* ============================================================
   Contact info (legacy class name used in Contact view + _Layout)
   ============================================================ */

.contact-info h4 {
    color: var(--ember);
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ============================================================
   Opening time (legacy footer block)
   ============================================================ */

.opening-time ul {
    list-style: none;
    padding-left: 0;
}

.opening-time li {
    color: color-mix(in oklch, var(--cream) 85%, transparent);
}

/* ============================================================
   Utility: nowrap
   ============================================================ */

.text-nowrap { white-space: nowrap; }
