/*
 * site.css: the only stylesheet for missboulangerie.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted Google Fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections
 *   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's Elementor breakpoints; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The menu collapses to the burger dropdown at <= 1024px, as on the original.
 *
 * Values are taken from the original's computed styles (design-system/extract-out.json).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-text: #000000;
  --color-bg: #ffffff;
  --color-pink: #f3bdbd;         /* header, tagline band, app section, mobile menu */
  --color-pink-light: #ffe4e4;   /* page-title band, contact column, photo bands */
  --color-pink-hover: #ffa2a2;   /* mobile menu item hover */
  --color-grey-light: #f7f7f7;   /* branches, contact details */
  --color-brown: #8f7c79;        /* buttons, inner headings, dividers */
  --color-nav-active: #8b7969;   /* nav hover / current item */
  --color-carousel: #ffb6b6;     /* carousel arrows and active dot */
  --color-carousel-dot: #ffeded;
  --color-overlay: rgb(100 100 100 / 0.62);

  /* Typography */
  --font-body: "Poppins", sans-serif;
  --font-button: "Playfair Display", serif;
  --font-alt: "Roboto", sans-serif;

  /* Layout */
  --container: 1140px;
  --container-wide: 1280px;

  /* Motion (original timings) */
  --duration: 300ms;
  --duration-nav: 400ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset, only the weights used). */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ 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: 16px; line-height: normal; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 400; line-height: 1; margin: 0; }
p { margin: 1em 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-brown); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container--wide { max-width: var(--container-wide); }

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; padding: 8px 16px; background: var(--color-bg); }
.skip-link:focus { left: 16px; }

/* === Component: button ===
 * Brown pill with white uppercase Playfair Display text (header and hero ORDER buttons).
 * Original has no visible hover change. */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 0; border-radius: 17px; background: var(--color-brown); color: #ffffff; font-family: var(--font-button); font-size: 20px; font-weight: 500; line-height: 1; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: all var(--duration) var(--ease); }
.button--large { padding: 20px 38px; font-size: 30px; }
.button--small { min-height: 40px; padding: 0 24px; border-radius: 3px; font-size: 15px; }
@media (max-width: 1024px) { .button--large { font-size: 35px; } }
@media (max-width: 767px) { .button--large { font-size: 23px; } }

/* === Component: site-header ===
 * Pink bar, not sticky. Three columns: logo | nav (burger at <= 1024px) | order button(s).
 * The big "MB" script graphic (image1-1.png) is a background on the right.
 * Home shows one ORDER NOW button, inner pages two (ORDER WEST LONDON / ORDER WEMBLEY):
 * both sets are in the shared partial and body.page-home picks which shows. */
.site-header { position: relative; z-index: 50; padding: 25px 30px; border-bottom: 1px solid #ffffff; background: var(--color-pink) url("/wp-content/uploads/2023/08/image1-1.png") no-repeat 100% 50% / 33% auto; }
.site-header__inner { position: relative; display: grid; grid-template-columns: 23.409% 53.781% 22.81%; align-items: center; max-width: var(--container-wide); margin-inline: auto; }
.site-header__logo, .site-header__nav, .site-header__cta { padding: 10px; }
.site-header__logo img { width: 100%; height: auto; }
.site-header__cta { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.site-header__cta--home { display: none; }
.page-home .site-header__cta--home { display: flex; }
.page-home .site-header__cta--inner { display: none; }

.nav-toggle { position: relative; display: none; align-items: center; justify-content: center; width: 33px; height: 33px; margin: 0 auto; padding: 5.5px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: #000000; cursor: pointer; }
.nav-toggle::before { content: ""; position: absolute; inset: -6px; } /* 45px tap target, same look */
.nav-toggle svg { width: 22px; height: 22px; }
.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; }

.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: flex; padding: 13px 20px; color: #000000; font-size: 18px; font-weight: 400; line-height: 20px; text-decoration: none; transition: color var(--duration-nav) var(--ease); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a[aria-current="page"],
.page-home .site-nav__list a[href="/#home"] { color: var(--color-nav-active); }

@media (max-width: 1024px) {
  .site-header { background-position: 497px -113px; background-size: 333px auto; }
  .site-header__inner { grid-template-columns: repeat(3, 1fr); }
  .nav-toggle { display: inline-flex; }
  .site-header__nav { display: flex; }
  /* Dropdown: full width under the header row, overlays the page (slides down, 0.3s). */
  .site-nav { position: absolute; z-index: 9997; top: 100%; left: -30px; right: -30px; display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 26px; background: var(--color-pink); transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__inner { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s var(--duration); }
  .site-nav.is-open .site-nav__inner { visibility: visible; transition: visibility 0s; }
  .site-nav__list { flex-direction: column; }
  .site-nav__list a { padding: 10px 20px; font-weight: 300; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { color: #ffffff; background: var(--color-pink-hover); }
  .site-nav__list a[aria-current="page"], .page-home .site-nav__list a[href="/#home"] { color: #000000; }
}
@media (max-width: 767px) {
  .site-header { background-position: 174px -298px; background-size: 266px auto; }
  .site-header__inner { grid-template-columns: 1fr; }
  /* The dropdown sits right under the burger row and covers the order button(s), as on the original. */
  .site-header__nav { position: relative; }
  .site-nav { margin-top: 0; }
}

/* === Component: hero (home) ===
 * Full-width photo (fixed background on desktop) with a grey overlay, centred heading and ORDER NOW. */
.hero { position: relative; padding: 0 30px; background: center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; max-width: 946px; margin-inline: auto; padding: 140px 10px 80px; text-align: center; }
.hero__title { width: 100%; padding: 0 130px; color: #ffffff; font-size: 64px; font-weight: 500; line-height: 78px; }
.hero__inner .button { margin-top: 80px; }
@media (min-width: 1025px) { .hero { background-attachment: fixed; } }
@media (max-width: 1024px) {
  .hero__inner { padding: 130px 0 70px; }
  .hero__title { font-size: 51px; }
}
@media (max-width: 767px) {
  .hero { padding: 30px 15px 0; }
  .hero__inner { justify-content: center; min-height: 100vh; padding: 0; }
  .hero__title { font-size: 29px; line-height: 1.5em; }
  .hero__title { margin-top: 130px; }
  .hero__inner .button { margin-top: 129px; margin-bottom: 121px; }
}

/* === Component: tagline (pink band with a large light heading) === */
.tagline { margin-top: 40px; padding: 40px 10px; background: var(--color-pink); text-align: center; }
.tagline__text { font-size: 43px; font-weight: 200; line-height: 1; }
@media (max-width: 1024px) { .tagline__text { font-size: 27px; } }

/* === Component: carousel (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) ===
 * Square images, arrows and dots outside the slides (as Elementor's image carousel). */
.carousel-section { padding: 50px 10px 40px; }
.carousel { --swiper-pagination-bullet-horizontal-gap: 6px; position: relative; max-width: 1120px; margin-inline: auto; padding: 0 30px 34px; }
.carousel .swiper-slide img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.carousel__arrow { position: absolute; top: calc(50% - 17px); z-index: 1; display: flex; align-items: center; justify-content: center; width: 25px; height: 44px; padding: 0; border: 0; background: none; color: var(--color-carousel); cursor: pointer; transform: translateY(-50%); }
.carousel__arrow svg { width: 25px; height: 25px; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 9px; display: flex; flex-wrap: wrap; justify-content: center; line-height: 0; }
.carousel__dots .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 6px; border-radius: 50%; background: var(--color-carousel-dot); opacity: 1; cursor: pointer; }
.carousel__dots .swiper-pagination-bullet-active { background: var(--color-carousel); }
/* Without JS (or before Swiper starts) show one row of slides */
.carousel .swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; }
.carousel .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }
@media (min-width: 768px) { .carousel .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 50%; } }
@media (min-width: 1025px) { .carousel .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 33.333%; } }

/* === Component: app-promo (Order via Our App: text | phone mock-up | badges) === */
.app-promo { padding: 60px 30px 0; background: var(--color-pink); }
.app-promo__inner { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--container-wide); margin-inline: auto; }
.app-promo__text { padding: 30px; }
.app-promo__title { font-size: 41px; line-height: 1; }
.app-promo__text p { margin: calc(20px + 1em) 0 1em; font-size: 20px; }
.app-promo__image { display: flex; align-items: flex-end; justify-content: center; }
.app-promo__image img { width: 100%; }
.app-promo__stores { display: flex; flex-direction: column; justify-content: center; padding: 30px; }
.app-promo__stores-title { font-size: 43px; line-height: 1; }
.app-promo__badges { display: inline-block; margin-top: 20px; }
.app-promo__badges img { width: 310px; }
@media (max-width: 1024px) {
  .app-promo { padding: 60px 60px 0; }
  .app-promo__inner { grid-template-columns: 1fr; }
  .app-promo__text { padding: 0; }
  .app-promo__title { font-size: 27px; text-align: center; }
  .app-promo__text p { font-size: 16px; }
  .app-promo__image img { width: 56%; }
  .app-promo__stores { align-items: center; padding: 60px; text-align: center; }
  .app-promo__stores-title { font-size: 27px; line-height: 33px; }
}
@media (max-width: 767px) {
  .app-promo__image img { width: 100%; }
  /* The original hid the badges on phones by accident (max-width 1%); shown here (manifest decision 4).
     For like-for-like, change the next rule's max-width to 1%. */
  .app-promo__badges img { max-width: 100%; }
}

/* === Component: branches (three kitchens: name, opening hours, address) === */
.branches { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--color-grey-light); }
.branch { display: flex; flex-direction: column; justify-content: center; min-height: 740px; padding: 60px 0; text-align: center; }
.branch__name { font-size: 42px; line-height: 1; margin-bottom: 30px; }
.branch__label { font-size: 20px; font-weight: 600; line-height: 1; }
.branch__label--hours { margin-bottom: 30px; }
.hours-list { margin: 0 0 30px; padding: 0; list-style: none; font-size: 20px; line-height: 18px; }
.hours-list li { padding-bottom: 5px; }
.hours-list li + li { margin-top: 5px; }
.hours-list li:last-child { padding-bottom: 0; }
.hours-list b { font-weight: 700; }
.branch__address { margin: 18px 0; font-family: var(--font-alt); font-size: 18px; line-height: normal; }
@media (max-width: 1024px) {
  .branches { grid-template-columns: 1fr; }
  .branch { min-height: 0; padding: 60px; }
  .branch__name, .branch__label { font-size: 27px; }
}
@media (max-width: 767px) {
  .branch { padding: 30px; }
  .hours-list { line-height: 1.7em; }
}

/* === Component: contact (Contact Us email block | Contact Details) === */
.contact { display: grid; grid-template-columns: 1fr 1fr; }
.contact__main { padding: 60px; background: var(--color-pink-light); }
.contact__title { font-size: 43px; line-height: 1; }
.contact__intro { margin: 20px 0; font-size: 20px; line-height: 1; }
.contact__details { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; background: var(--color-grey-light); text-align: center; }
.contact__details-title { margin-bottom: 30px; font-size: 30px; line-height: 1; }
.contact-list { margin: 20px 0 0; padding: 0; list-style: none; font-size: 20px; line-height: 18px; }
.contact-list li + li { margin-top: 10px; }
.contact-list b { font-weight: 700; }
.contact-list a { color: inherit; text-decoration: none; }
@media (max-width: 1024px) {
  .contact__title, .contact__details-title { font-size: 27px; }
  .contact__details { padding: 0 0 0 30px; }
}
@media (max-width: 767px) {
  .contact { grid-template-columns: 1fr; }
  .contact__main { padding: 50px 30px; }
  .contact__details { padding: 50px 30px 30px; }
}

/* === Component: contact-email (replaces the WordPress contact form: mailto button + visible address + phone) === */
.contact-email { display: grid; gap: 16px; justify-items: start; font-size: 20px; }
.contact-email p { margin: 0; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Component: social-icons (circle outline icons) === */
.social-icons { display: flex; gap: 5px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border: 1px solid #000000; border-radius: 50%; color: #000000; transition: all var(--duration) var(--ease); }
.social-icons a:hover { opacity: 0.9; }
.social-icons svg { width: 25px; height: 25px; fill: currentColor; }
.social-icons .social-icons__tiktok { color: #69727d; }
@media (max-width: 767px) { .social-icons { gap: 10px; } }

/* === Component: page-title (inner pages: light pink band with the brown heading) === */
.page-title { padding: 70px 70px; background: var(--color-pink-light); text-align: center; }
.page-title__text { color: var(--color-brown); font-size: 43px; line-height: 1; }
@media (max-width: 1024px) { .page-title__text { font-size: 40px; } }

/* === Component: split (image + text side by side; stacks at <= 1024px) === */
.split { padding: 60px 0; }
.split--pink { background: var(--color-pink-light); }
.split__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: var(--container); margin-inline: auto; }
.split__media { display: flex; justify-content: center; padding: 60px; }
.split__media img { width: 100%; }
.split__text { padding: 10px; font-size: 20px; }
@media (max-width: 1024px) {
  .split { padding: 60px; }
  .split__inner { grid-template-columns: 1fr; }
  .split__media img { width: var(--split-img-tablet, 54%); }
}
@media (max-width: 767px) {
  .split { padding: 30px; }
  .split__media--flush { padding: 0; }
  .split__media img { width: 100%; }
  .split__text { font-size: 16px; }
}

/* === Component: faq (headings and answers in two columns; no accordion on the original) === */
.faq { padding: 60px 30px; }
.faq--compact { padding: 30px; }
.faq__inner { max-width: var(--container); margin-inline: auto; padding: 10px; }
.faq__title { margin-bottom: 20px; color: var(--color-brown); font-size: 50px; line-height: 1; text-align: center; }
.faq__group { padding: 20px 0; color: var(--color-brown); font-size: 43px; font-weight: 200; line-height: 1; text-align: center; }
.divider { margin: 20px 0; padding: 15px 0; }
.divider::before { content: ""; display: block; border-top: 1px solid var(--color-brown); }
.faq__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 0; margin-bottom: 20px; }
.faq__item { padding: 10px; }
.faq__q { color: var(--color-brown); font-size: 30px; font-weight: 300; line-height: 1; }
.faq__a { padding-top: 20px; font-size: 20px; }
.faq__a p { margin: 1em 0; }
.faq__a--bare { padding-top: 20px; }
.faq__outro { margin-top: 40px; font-size: 20px; }
@media (max-width: 1024px) {
  .faq__title { font-size: 40px; }
  .faq__group { font-size: 30px; }
  .faq__q { font-size: 25px; }
  .faq__a, .faq__outro { font-size: 16px; }
}
@media (max-width: 767px) {
  .faq__grid { grid-template-columns: 1fr; gap: 0; }
  .faq__item:nth-child(odd):not(:first-child) { margin-top: 20px; } /* pairs keep the 20px row gap */
}

/* === Component: photo-row (three rounded square photos on light pink) === */
.photo-row { padding: 60px 0; background: var(--color-pink-light); }
.photo-row__inner { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--container); margin-inline: auto; }
.photo-row__item { padding: 10px; }
.photo-row__item img { width: 100%; border-radius: 20px; }
@media (max-width: 767px) { .photo-row__inner { grid-template-columns: 1fr; } }

/* === Component: site-footer (copyright line) === */
.site-footer { padding: 70px 10px; text-align: center; }
.site-footer__copyright { margin: 0; font-family: var(--font-alt); font-size: 24px; line-height: 1; }
.site-footer__copyright a { color: inherit; text-decoration: none; }
@media (max-width: 767px) { .site-footer__copyright { font-size: 16px; } }

/* ============ 6. Pages ============ */
/* === Page: /about-us/ === second image is 59% wide on tablet (first is 54%) */
.split--second { --split-img-tablet: 59%; }

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

/* ============ 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; }
}
