/*
 * site.css: the only stylesheet for mbsdessertshilton.co.uk (MB's Desserts, Hilton).
 * Same Elementor template as mbsdessert.co.uk; this design system was built separately (see SITE.md).
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted Poppins and Gorditas
 *   3. Base          reset and element defaults
 *   4. Layout        sections, columns
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor's, from the original; media queries can't use custom properties):
 *   mobile  <= 767px     tablet 768px-1024px     desktop >= 1025px
 *   The header menu becomes the burger at <= 1024px; header is sticky from 768px up;
 *   columns stack at <= 767px.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit + computed styles of the original) */
  --color-pink: #ed107b;            /* primary/accent: headings, buttons, links, menu dropdown */
  --color-pink-soft: #ee9fc5;       /* secondary: form fields, dropdown text, active slider dot */
  --color-pink-light: #ffc2e0;      /* header, hero, footer, drip dividers */
  --color-grey: #aba6a6;            /* page background between the drips */
  --color-black: #000000;
  --color-white: #ffffff;
  --color-toggle-bg: rgba(0, 0, 0, 0.05);

  /* Typography. "Groovy" on the original = Abstract Groovy (paid); Gorditas 700 is the closest Google Font. */
  --font-display: "Gorditas", "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;
  --text-base: 16px;
  --text-small: 14px;               /* footer address on tablet/mobile */
  --text-button: 18px;              /* Groovy buttons and labels */
  --text-h2: 72px;                  /* section headings; 40px <= 1024px */
  --text-footer-title: 32px;        /* 24px <= 1024px */

  /* Spacing and shape */
  --container: 1440px;              /* Elementor boxed width */
  --container-footer: 1280px;
  --side: 30px;                     /* section side padding */
  --gutter: 10px;                   /* Elementor default column padding (footer) */
  --section-gap: 240px;             /* space between gallery, about and contact */
  --drip-top: 230px;                /* drip divider heights */
  --drip-bottom: 226px;
  --radius-pill: 25px;
  --radius-small: 3px;

  /* Motion (original timings) */
  --duration: 300ms;
  --ease-pointer: cubic-bezier(0.58, 0.3, 0.005, 1);
}

/* ============ 2. Fonts ============ */
/* Poppins (Google Fonts, SIL OFL), latin subset, self-hosted. Weights used: 400, 600, 900 (bold inside 600 text). */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-900-latin.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
/* Gorditas 700 (Google Fonts, SIL OFL): stands in for the original's "Groovy" display font. Always uppercase, like Groovy. */
@font-face { font-family: "Gorditas"; src: url("/assets/fonts/gorditas-700-latin.woff2") format("woff2"); font-weight: 700; 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: var(--text-base); font-weight: 400; line-height: 1.5; color: var(--color-black); background: var(--color-grey); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-black); outline-offset: 2px; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 100; padding: 8px 16px; background: var(--color-pink); color: var(--color-white); }
.skip-link:focus { top: 8px; }

/* ============ 4. Layout ============ */
/* .section: a full-width band with 30px side padding; .section__inner: the 1440px boxed container. */
.section { position: relative; padding-inline: var(--side); }
.section__inner { max-width: var(--container); margin-inline: auto; }

/* .columns: two Elementor columns side by side, vertically centred; stacked on mobile. */
.columns { display: flex; align-items: center; }
.columns > * { flex: 1 1 50%; min-width: 0; }
@media (max-width: 767px) {
  .columns { flex-direction: column; align-items: stretch; }
  .columns > * { flex-basis: auto; }
}

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

/* === Component: site-header ===
 * Pink bar: logo (left), centred menu, ORDER pill (right). Sticky from 768px up (Elementor sticky on
 * desktop + tablet), in the normal flow on mobile, where it stacks: logo, burger, ORDER.
 * Burger menu at <= 1024px: a pink panel that slides open below the toggle inside the header
 * (grid 0fr -> 1fr; the column stretches so items are clipped while it animates).
 */
.site-header { position: relative; z-index: 10; padding: 25px var(--side); background: var(--color-pink-light); }
.site-header__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__brand { flex: 0 0 24.86%; }
.site-header__menu { flex: 0 0 50.36%; display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.site-header__action { flex: 0 0 24.444%; text-align: end; }
.site-header__logo { display: inline-block; vertical-align: top; }
.site-header__logo img { width: 109px; height: 64px; }
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
}

/* === Component: site-nav (main menu) === */
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { position: relative; display: block; padding: 13px 20px; font-size: var(--text-base); font-weight: 600; line-height: 20px; text-transform: uppercase; text-decoration: none; color: var(--color-pink); }
/* Underline pointer that fades in on hover and on the section in view (scroll-spy adds .is-active). */
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-pink); opacity: 0; transition: opacity var(--duration) var(--ease-pointer); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after, .site-nav__list a.is-active::after { opacity: 1; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; margin: 0 auto; padding: 0; border: 0; border-radius: var(--radius-small); background: var(--color-toggle-bg); color: var(--color-pink-soft); cursor: pointer; position: relative; }
.nav-toggle:hover, .nav-toggle:focus, .nav-toggle[aria-expanded="true"] { color: var(--color-pink); }
.nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 45px tap target */
.nav-toggle .icon { width: 22px; height: 22px; fill: currentColor; }
.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; }

@media (max-width: 1024px) {
  .site-header__menu { padding-block: 50px; }
  .nav-toggle { display: flex; }
  .site-nav { display: grid; grid-template-rows: 0fr; margin-top: 10px; visibility: hidden; background: var(--color-pink); transition: grid-template-rows var(--duration), visibility var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav.is-instant { transition: none; }
  .site-nav__inner { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav__list a { padding: 10px 20px; text-align: center; color: var(--color-pink-soft); }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-pink); background: var(--color-pink-soft); }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__brand, .site-header__menu, .site-header__action { flex: none; width: 100%; text-align: center; }
  .site-header__menu { padding-block: 25px; }
}

/* === Component: button ===
 * Pink pill in the display font (ORDER, VIEW FULL MENU). Elementor default button: no hover change.
 */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius-pill); background: var(--color-pink); color: var(--color-white); font-family: var(--font-display); font-size: var(--text-button); font-weight: 700; line-height: 1; text-transform: uppercase; text-decoration: none; text-align: center; transition: all var(--duration); }
.button-row { text-align: center; }

/* === Component: section-heading ===
 * Big pink display-font heading ("OUR DESSERTS", "ABOUT US", "CONTACT US"). 72px, 40px <= 1024px.
 */
.section-heading { font-family: var(--font-display); font-size: var(--text-h2); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--color-pink); }
.section-heading--center { text-align: center; }
@media (max-width: 1024px) { :root { --text-h2: 40px; } }

/* === Component: drip (Elementor "drops" shape divider) ===
 * <div class="drip drip--top"> or "drip drip--bottom" (flipped) as the first child of a .section;
 * the inline SVG path is filled with --color-pink-light, so it looks like icing dripping onto the grey.
 */
.drip { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; z-index: 2; }
.drip svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); max-width: none; transform: translateX(-50%); }
.drip path { fill: var(--color-pink-light); }
.drip--top { top: -1px; }
.drip--top svg { height: var(--drip-top); }
.drip--bottom { bottom: -1px; transform: rotate(180deg); }
.drip--bottom svg { height: var(--drip-bottom); }

/* === Component: hero ===
 * Full-viewport pink band: the big "MB's Desserts" logo and a round down-arrow to the gallery.
 */
.hero { display: flex; align-items: center; min-height: 100vh; background: var(--color-pink-light); }
.hero .section__inner { width: 100%; text-align: center; }
.hero__logo { width: auto; max-width: 100%; margin-inline: auto; }
.hero__arrow { display: inline-block; margin-top: 100px; color: var(--color-pink); line-height: 0; }
.hero__arrow svg { width: 100px; height: 100px; fill: currentColor; }
@media (max-width: 1024px) { .hero__logo { width: 86%; } }
@media (max-width: 767px) { .hero__logo { width: 100%; } }

/* === Component: carousel (Swiper) ===
 * <div class="carousel" data-swiper-scope> <div class="swiper" data-swiper='…'>…</div> arrows </div>
 * Square photos, 3/2/1 per view, no gap; pink chevrons outside the track; dots below
 * (inactive pink, active soft pink, 6px). Each slide is a GLightbox link to the full photo.
 */
.carousel { position: relative; }
.carousel .swiper { margin-inline: 30px; padding-bottom: 30px; }
.carousel .swiper-slide img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.carousel .swiper-slide a { display: block; }
.carousel__arrow { position: absolute; top: calc(50% - 15px); z-index: 1; display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; margin-top: -16.5px; padding: 0; border: 0; background: none; color: var(--color-pink); cursor: pointer; }
.carousel__arrow svg { width: 33px; height: 33px; fill: currentColor; }
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel .swiper-pagination { bottom: 5px; line-height: 0; }
.carousel .swiper-pagination-bullet { width: 6px; height: 6px; margin: 0 6px; background: var(--color-pink); opacity: 1; }
.carousel .swiper-pagination-bullet-active { background: var(--color-pink-soft); }
/* Before Swiper starts (or without JS): show the photos in a row of three that scrolls sideways. */
.carousel .swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; }
.carousel .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 33.333%; }
@media (max-width: 1023px) { .carousel .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 50%; } }
@media (max-width: 766px) { .carousel .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 100%; } }

/* GLightbox: dark overlay like Elementor's lightbox; captions = the photo titles. */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { margin: 0; font-family: var(--font-body); font-size: var(--text-base); font-weight: 400; color: var(--color-white); text-align: center; }
.glightbox-clean .gdesc-inner { padding: 12px 0 0; }

/* === Component: image-text (about) ===
 * Heading + paragraph on the left, square illustration on the right (63% of its column; 93%, right-aligned <= 1024px).
 */
.image-text__text p { margin: 16px 0; }
.image-text__heading + .image-text__text { padding-top: 32px; }  /* Elementor spacer: no margin collapse with the paragraph */
.image-text__media { text-align: center; }
.image-text__media img { display: inline-block; width: 63%; vertical-align: top; }
@media (max-width: 1024px) {
  .image-text__body { padding: 24px; }
  .image-text__media { text-align: end; }
  .image-text__media img { width: 93%; }
}

/* === Component: contact (arched photo + heading + contact-email block) === */
.contact__media { flex: 0 0 42.639%; text-align: center; }
.contact__media img { display: inline-block; vertical-align: top; }
.contact__body { flex: 0 0 57.361%; }
.contact__body .section-heading + * { margin-top: 50px; }
@media (max-width: 1024px) { .contact__body { padding: 24px; } }
@media (max-width: 767px) { .contact__media img { width: 100%; max-width: 315px; } .contact__body .contact-email { margin-top: 50px; } }

/* === Component: contact-email (replaces the Elementor Pro form; filled by site.js from CONFIG.contactEmail) ===
 * Hidden until CONFIG.contactEmail is set; then a pink "Submit" pill (mailto with the form's fields) and the address,
 * styled like the original form's submit button and labels.
 */
.contact-email[hidden] { display: none; }
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__button { display: inline-block; min-width: 50%; padding: 12px 24px; border-radius: var(--radius-pill); background: var(--color-pink); color: var(--color-white); font-size: var(--text-base); line-height: 16px; text-align: center; text-transform: uppercase; text-decoration: none; }
.contact-email__address { font-family: var(--font-display); font-size: var(--text-button); font-weight: 700; text-transform: uppercase; color: var(--color-pink); word-break: break-word; }
.contact-email__address a { color: inherit; }

/* === Component: site-footer ===
 * Light pink band, 4 columns (25% each; 20/30/30/20 on tablet; stacked on mobile), pink divider at 90%,
 * copyright + "Powered by OrderYOYO" in bold.
 */
.site-footer { padding: 140px var(--side); background: var(--color-pink-light); color: var(--color-pink); }
.site-footer__inner { max-width: var(--container-footer); margin-inline: auto; padding: var(--gutter); }
.site-footer__cols { display: flex; }
.site-footer__col { flex: 0 0 25%; min-width: 0; padding: var(--gutter); }
.site-footer__title { font-family: var(--font-display); font-size: var(--text-footer-title); font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--color-pink); }
.site-footer__links { list-style: none; margin: 20px 0 0; padding: 0; }
.site-footer__links li { display: flex; }
.site-footer__links li + li { margin-top: 20px; }
.site-footer__links a { display: inline-block; padding: 5px; border-radius: var(--radius-small); font-weight: 600; line-height: 1; text-transform: uppercase; text-decoration: none; color: var(--color-pink); }
.site-footer__text { margin-top: 10px; font-weight: 600; line-height: normal; text-transform: uppercase; }
.site-footer__text p { margin: 16px 0; }
.site-footer__badges { display: inline-block; margin-top: 50px; }
.site-footer__badges img { width: 162px; height: auto; }
.site-footer__divider { width: 90%; margin: 40px 0 15px; border: 0; border-top: 1px solid var(--color-pink); }
.site-footer__copyright { margin: 0; font-size: var(--text-base); font-weight: 600; line-height: 1; text-transform: uppercase; }
.site-footer__copyright strong { font-weight: 900; }
.site-footer__copyright a { color: inherit; text-decoration: none; }
@media (max-width: 1024px) {
  :root { --text-footer-title: 24px; }
  .site-footer__text--address { font-size: var(--text-small); }
  .site-footer__divider { margin-inline: auto; }
  .site-footer__copyright { text-align: center; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .site-footer__col:nth-child(1), .site-footer__col:nth-child(4) { flex-basis: 20%; }
  .site-footer__col:nth-child(2), .site-footer__col:nth-child(3) { flex-basis: 30%; }
}
@media (max-width: 767px) {
  .site-footer__cols { flex-direction: column; }
  .site-footer__col { flex-basis: auto; }
}

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

/* === Page: home === */
.section--gallery { padding-top: var(--section-gap); margin-bottom: var(--section-gap); }
.section--gallery .section-heading + .carousel { margin-top: 80px; }
.section--gallery .carousel + .button-row { margin-top: 50px; }
.section--about { margin-block: var(--section-gap); }
.section--contact { margin-top: 120px; padding-bottom: 260px; }

/* === Page: 404 === */
.not-found { padding: 160px var(--side); text-align: center; }
.not-found__text { margin: 32px 0; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 0 0 40px; padding: 0; list-style: none; }
.not-found__links a { font-weight: 600; text-transform: uppercase; text-decoration: none; color: var(--color-pink); }

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

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