/* 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/Bloomsbury Sans.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;
}

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

@font-face {
    font-family: "PopulaireLight";
    src: url("../fonts/PopulaireLight.otf") format("opentype");
    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
   ============================================================ */

.text-grobold {
    font-family: var(--font-display);
    letter-spacing: 0.01em;
}

.text-populaire {
    font-family: "Populaire", "PopulaireLight", var(--font-display);
}

.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
   ============================================================ */

.footer {
    position: relative;
    color: var(--cream);
    padding-top: var(--sp-10);
    background-color: var(--ink);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.footer.bg-overlay-black-90::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: -1;
}

.footer h4 {
    font-family: var(--font-display);
    font-size: var(--fs-lg);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ember);
    margin-bottom: var(--sp-3);
}

.footer address, .footer p {
    color: color-mix(in oklch, var(--cream) 85%, transparent);
    margin-bottom: var(--sp-2);
}

.footer a {
    color: inherit;
}

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

.footer .logo-sec {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    max-width: 120px;
}

.footer-bottom {
    margin-top: var(--sp-8);
    padding-block: var(--sp-5);
    border-top: 2px solid var(--ember);
}

.footer-social ul {
    justify-content: center;
    margin-bottom: var(--sp-4);
    gap: var(--sp-4);
}

.footer-social a {
    color: var(--cream);
    transition: color var(--dur-base) var(--ease-out);
}

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

.copyright p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.fooer-links ul {
    gap: var(--sp-4);
    justify-content: flex-end;
}

.fooer-links a {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.875rem;
}

@media (max-width: 992px) {
    .fooer-links ul { 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; }
