/*
 * site.css: the only stylesheet for bricklanebagel.co.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        sections and inner wrappers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original Elementor ones; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *
 * Notes on matching the original:
 * - "Franchise Bold" ships as a single normal-weight face. The original asks for weight 600
 *   on headings, so browsers draw a synthetic bold there; we keep the same weights so the
 *   headings look identical.
 * - Root font size is the browser default (16px); sizes in rem follow the original values.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-black: #000000;
  --color-ink: #111111;              /* button borders, mobile menu background */
  --color-white: #ffffff;
  --color-grey-bg: #f2f2f2;          /* "Our Bagels" section */
  --color-menu-active: #222222;      /* mobile menu item hover/active */
  --color-footer-rule: #9b9b9b;      /* dotted line in the footer */
  --color-nav-hover: rgb(255 255 255 / 0.53);     /* header menu hover / current */
  --color-footer-hover: rgb(255 255 255 / 0.49);  /* footer menu hover / current */
  --color-phone: #343639;            /* phone mockup body */
  --color-phone-detail: #5d5e61;     /* phone mockup camera, speaker, home button */

  /* Typography */
  --font-display: "Franchise Bold", sans-serif;   /* headings, menus, buttons */
  --font-body: "Crimson Pro", sans-serif;         /* long copy */
  --font-menu: "Crimson Text", sans-serif;        /* bagel descriptions */
  --font-store: "EB Garamond", sans-serif;        /* store details */
  --text-eyebrow: 2rem;          /* 32px small headings between lines */
  --text-display: 4.4rem;        /* 70.4px big headings */
  --text-display-sm: 4rem;       /* 64px */
  --text-copy: 1.5rem;           /* 24px body copy */
  --leading-copy: 1.7em;

  /* Spacing */
  --space-gutter: 10px;          /* Elementor column padding */
  --space-50: 50px;
  --space-100: 100px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Franchise Bold: the site's own uploaded font file (kept at its original uploads path). */
@font-face { font-family: "Franchise Bold"; src: url("/wp-content/uploads/2021/04/Franchise-Bold.ttf") format("truetype"); font-weight: normal; font-style: normal; font-display: swap; }
/* Google Fonts, self-hosted (latin subset). */
@font-face { font-family: "Crimson Pro"; src: url("/assets/fonts/crimson-pro-latin-var.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Crimson Text"; src: url("/assets/fonts/crimson-text-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/assets/fonts/eb-garamond-latin-var.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: var(--color-black); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* ============ 4. Layout ============ */
/* A section with the original's side/top padding; .wrap is the boxed content column. */
.section { position: relative; padding: 150px 50px; }
.wrap { max-width: var(--wrap, 1024px); margin-inline: auto; padding: var(--space-gutter); }
.wrap--700 { --wrap: 700px; }
.wrap--800 { --wrap: 800px; }
@media (max-width: 1024px) {
  .section { padding: 50px; }
}
@media (max-width: 767px) {
  .section { padding: 30px; }
}

/* ============ 5. Components ============ */

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 0.5rem 1rem; background: var(--color-white); color: var(--color-black); }
.skip-link:focus { left: 1rem; }

/* === Component: site-header (overlays the first section of every page, not sticky) === */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 40px 20px 20px; }
.site-header__inner { display: flex; align-items: center; max-width: 1140px; margin-inline: auto; }
.site-header__logo { flex: 0 0 12.455%; padding: var(--space-gutter); }
.site-header__logo img { width: 100%; max-width: 300px; }
.site-header__nav { flex: 1 1 auto; display: flex; align-items: center; padding: var(--space-gutter); }
.nav-toggle { display: none; }
.site-nav { flex: 1 1 auto; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 50px; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: flex; align-items: center; font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 20px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--color-white); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active, .site-nav__list a[aria-current="page"] { color: var(--color-nav-hover); }
@media (max-width: 1024px) {
  .site-nav__list { gap: 0 30px; }
}
@media (max-width: 767px) {
  .site-header { padding: 20px; }
  .site-header__logo { flex-basis: 50%; }
  .site-header__logo img { width: 109px; }
  .site-header__nav { flex-basis: 50%; justify-content: flex-end; }
  /* 44px tap area; the visible white square is 33px as on the original. */
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin: 0 -5.5px 0 auto; padding: 0; border: 0; border-radius: 0; background: none; color: var(--color-black); cursor: pointer; width: 44px; height: 44px; }
  .nav-toggle svg { box-sizing: content-box; padding: 5.5px; background: var(--color-white); }
  .nav-toggle__close { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
  /* Full-width drop-down below the header that slides open (max-height + scaleY, 0.3s, as the original). */
  .site-nav { position: absolute; left: 0; right: 0; top: 101px; background: #111111; overflow: hidden; max-height: 0; transform: scaleY(0); transform-origin: top; visibility: hidden; transition: max-height var(--duration), transform var(--duration), visibility 0s var(--duration); }
  .site-nav.is-open { max-height: 30rem; transform: scaleY(1); visibility: visible; transition: max-height var(--duration), transform var(--duration); }
  .site-nav.is-instant { transition: none; }
  .site-nav__list { display: block; }
  .site-nav__list a { margin: 0; padding: 21px 20px; min-height: 44px; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active, .site-nav__list a[aria-current="page"] { color: var(--color-white); background: var(--color-menu-active); }
}

/* === Component: site-footer === */
.site-footer { background: var(--color-black); color: var(--color-white); padding: 100px 0; }
.site-footer__inner { max-width: 1024px; margin-inline: auto; padding: var(--space-gutter); }
.site-footer__top { display: flex; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px dotted var(--color-footer-rule); }
.footer-nav { flex: 0 0 70.12%; padding: var(--space-gutter); }
.footer-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 31px; list-style: none; margin: 0; padding: 0; }
.footer-nav__list a { display: flex; align-items: center; padding: 13px 0; font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 20px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-white); }
.footer-nav__list a:hover, .footer-nav__list a:focus-visible, .footer-nav__list a.is-active { color: var(--color-footer-hover); }
/* Current page in the footer menu (sync-shared only marks the header), keyed on the body class. */
.page-franchise .footer-nav a[href="/franchise/"], .page-our-locations .footer-nav a[href="/our-locations/"] { color: var(--color-footer-hover); }
.site-footer__bar { display: flex; align-items: center; }
.site-footer__bar p { flex: 1 1 50%; padding: var(--space-gutter); font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 1px; text-transform: uppercase; }
.site-footer__copyright { font-weight: 300; line-height: 1; }
.site-footer__credit { text-align: right; font-weight: 400; line-height: normal; }
.site-footer__credit a { color: var(--color-white); }
@media (max-width: 1024px) {
  .site-footer { padding: 30px 20px; }
  .footer-nav { flex-basis: 100%; }
  .footer-nav__list { gap: 0 44px; }
}
@media (max-width: 767px) {
  .site-footer { padding: 25px 20px; }
  .site-footer__inner { padding: 0; }
  .site-footer__top { min-height: 21px; padding-bottom: 0; }
  .footer-nav { display: none; }
  .site-footer__bar { display: block; }
  .site-footer__bar p { text-align: center; }
  .site-footer__copyright { line-height: 19px; }
}

/* === Component: hero (full-width photo band with dark overlay) === */
.hero { position: relative; display: flex; align-items: center; min-height: var(--hero-height, 500px); background: var(--hero-image) center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay, #181818); opacity: var(--hero-opacity, 0.7); }

/* === Component: photo-band (fixed-background image strip between sections; fixed on desktop only, as the original) === */
.photo-band { position: relative; min-height: 400px; background: var(--band-image) center / cover no-repeat; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: var(--color-ink); opacity: 0.5; }
@media (min-width: 1025px) {
  .photo-band { background-attachment: fixed; }
}

/* === Component: eyebrow (small heading between two lines) === */
.eyebrow { display: flex; align-items: center; }
.eyebrow::before, .eyebrow::after { content: ""; flex: 1 1 0; border-top: 2px solid currentColor; }
.eyebrow__title { margin: 0 50px; font-size: var(--text-eyebrow); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; text-align: center; }
@media (max-width: 767px) {
  .eyebrow__title { margin: 0 20px; }
}

/* === Component: display-title (big centred heading) === */
.display-title { font-size: var(--text-display); font-weight: 600; text-transform: uppercase; text-align: center; }
.display-title--sm { font-size: var(--text-display-sm); }
@media (max-width: 1024px) {
  .display-title--shrink { font-size: var(--text-display-sm); }
}

/* === Component: rule (full-width 2px line) === */
.rule { height: 0; border: 0; border-top: 2px solid currentColor; margin: 0; color: inherit; }
.rule--dashed { border-top-style: dashed; }

/* === Component: copy (Crimson Pro body text; blank line between paragraphs) === */
.copy { font-family: var(--font-body); font-size: var(--text-copy); font-weight: 300; line-height: var(--leading-copy); }
.copy p + p { margin-top: var(--leading-copy); }
.copy--center { text-align: center; }

/* === Component: button (outline; inverts on hover) === */
.button { display: inline-block; padding: 20px 40px; border: 2px solid var(--button-border, var(--color-ink)); background: var(--color-white); color: var(--color-black); font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; line-height: 1; text-transform: uppercase; text-align: center; transition: all var(--duration); }
.button:hover, .button:focus-visible { background: var(--color-black); border-color: var(--color-black); color: var(--color-white); }
.button--black { --button-border: var(--color-black); }

/* === Component: button-row (centred button between two lines) === */
.button-row { display: flex; align-items: center; }
.button-row::before, .button-row::after { content: ""; flex: 1 1 0; border-top: 2px solid var(--color-black); }
.button-row .button { margin: 0 50px; }
@media (max-width: 767px) {
  .button-row .button { margin: 0 20px; }
}

/* === Component: menu-list (two columns of dishes with dashed separators) === */
.menu-list { display: grid; grid-template-columns: 1fr 1fr; }
.menu-list__col { list-style: none; margin: 0; padding: 0; }
.menu-list__col:first-child { margin-right: 40px; }
.menu-list__col:last-child { margin-left: 40px; }
.menu-list__item + .menu-list__item { border-top: 2px dashed var(--color-black); margin-top: 30px; padding-top: 30px; }
.menu-list__name { margin-bottom: 15px; font-size: 2rem; font-weight: 600; text-transform: lowercase; }
.menu-list__desc { font-family: var(--font-menu); font-size: 1.3rem; font-weight: 400; line-height: normal; }
@media (max-width: 767px) {
  .menu-list { grid-template-columns: 1fr; }
  .menu-list__col:first-child { margin: 0 0 30px; }
  .menu-list__col:last-child { margin: 0; }
}

/* === Component: phone-mockup (app screenshot in a drawn phone frame) === */
.phone-mockup { position: relative; display: inline-block; width: 277px; max-width: 100%; aspect-ratio: 277 / 574; }
.phone-mockup__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-mockup__screen { position: absolute; left: 5.776%; top: 11.847%; width: 88.81%; }
.phone-mockup__screen img { width: 100%; }

/* === Component: store (location: name, address, hours table, phone, map) === */
.store-row { display: grid; grid-template-columns: 1fr 1fr; }
.store { margin: 15px; padding: var(--space-gutter); min-width: 0; }
.store__name { margin-bottom: 40px; font-size: 2rem; font-weight: 400; text-transform: uppercase; color: var(--color-white); }
.store__text { font-family: var(--font-store); font-size: 1.2rem; font-weight: 400; line-height: 1.7em; color: var(--color-white); }
.store__text + .store__text { margin-top: 20px; }
.store__hours { border-collapse: separate; border-spacing: 2px; }
.store__hours td { padding: 0; }
.store__text a { color: var(--color-white); }
.store__map { margin-top: 40px; }
.store__map--flush { margin-top: 0; }
.store__map--no-phone { margin-top: 60px; }
.store__map--flush.store__map--no-phone { margin-top: 20px; }        /* stores without a phone line keep the 20px gap the phone line would have had */
.store__text + .store__text--loose { margin-top: 0; line-height: normal; }
.store__text--loose p { margin: 1em 0; }
.store__map iframe { display: block; width: 100%; height: 450px; border: 0; margin-bottom: 4px; }
.store-divider { padding: 70px 0; }
.store-divider .rule { border-top-color: var(--color-white); }
@media (max-width: 767px) {
  .store-row { grid-template-columns: 1fr; padding: 0 20px; }
  .store { margin: 0; padding: 0; }
  .store--mobile-gap { padding-top: 50px; }
}

/* ============ 6. Pages ============ */

/* === Page: / (home) === */
.home-about { padding-top: 50px; padding-bottom: 150px; }
.home-about .wrap > * + * { margin-top: var(--space-50); }
.home-bagels { background: var(--color-grey-bg); }
.home-bagels .menu-list { margin-top: var(--space-100); }
.home-bagels .button-row { margin-top: var(--space-100); }
.home-deli__cols { display: flex; align-items: center; margin-top: var(--space-100); }
.home-deli__text { flex: 0 0 60.857%; padding-right: 40px; }
.home-deli__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 15px; margin-top: var(--space-50); }
.home-deli__phone { flex: 1 1 auto; text-align: right; font-size: 0; }
.home-section-head > * + * { margin-top: var(--space-50); }
@media (max-width: 1024px) {
  .home-about { padding-bottom: 50px; }
  .home-deli__text { flex-basis: 100%; padding-right: 0; }
  .home-deli__phone { display: none; }
}
@media (max-width: 767px) {
  .home-about { padding-top: 30px; padding-bottom: 30px; }
  .home-about .copy { text-align: left; }
  .home-bagels .menu-list { margin-top: var(--space-50); }
  .home-deli__cols { margin-top: 30px; }
  .home-deli__buttons { display: grid; justify-items: center; gap: 10px; margin-top: 40px; }
}

/* === Page: /franchise/ === */
.franchise-intro .wrap > * + * { margin-top: var(--space-50); }
.franchise-intro__lead { font-family: var(--font-display); font-size: 3.2rem; font-weight: 600; line-height: normal; text-transform: uppercase; text-align: center; }
.copy .franchise-intro__ask { margin-top: 80px; }
.franchise-intro .wrap > .button-row, .franchise-intro .wrap > .franchise-intro__after { margin-top: 0; }
.franchise-intro__after { height: var(--space-50); }
@media (max-width: 1024px) {
  .franchise-intro__lead { font-size: 4rem; }
}
@media (max-width: 767px) {
  .franchise-intro .copy { font-size: 1.1rem; text-align: left; }
  .franchise-intro .copy .copy__large { font-size: var(--text-copy); }
}

/* === Page: /our-locations/ === */
.locations { background: var(--color-black); color: var(--color-white); padding: 160px 10px; }
.locations__head { padding: var(--space-gutter); }
.locations__head .display-title { margin-top: var(--space-50); }
.locations__head-rule { margin: var(--space-50) calc(-1 * var(--space-gutter)) 0; border-top-color: rgb(255 255 255 / 0.93); }
.locations__list { margin-top: var(--space-100); }
@media (max-width: 767px) {
  .locations { padding: 60px 10px; }
}

/* === Page: /404.html === */
.not-found > * + * { margin-top: var(--space-50); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
