/*
 * site.css: the only stylesheet for mamaspitalondon.co.uk (Mama's Pita).
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         Nunito Sans (self-hosted, variable weight)
 *   3. Base          reset and element defaults
 *   4. Layout        containers and sections
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor's defaults on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The burger menu appears at ≤ 767px (Elementor "dropdown: mobile").
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.split--reverse) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor CSS / computed styles) */
  --color-navy: #043c70;        /* headings, buttons, footer, social circles */
  --color-yellow: #f7d845;      /* burger square, header social glyphs */
  --color-sand: #ede5dc;        /* story / app panels, app button text */
  --color-text: #232323;        /* body copy, nav links */
  --color-muted: #7a7a7a;       /* contact card intro line */
  --color-field: #555555;       /* contact card text, ingredient card text */
  --color-border: #cccccc;
  --color-white: #ffffff;
  --color-dropdown: #33373d;    /* mobile dropdown links (Elementor default) */
  --color-dropdown-hover: #3f444b;
  --color-overlay-hero: rgb(0 0 0 / 0.3);
  --color-overlay-band: rgb(0 0 0 / 0.4);
  --color-social-footer: rgb(255 255 255 / 0.14);

  /* Typography: Nunito Sans, the closest free match to the original's Avenir (q1, see section 2) */
  --font-body: "Nunito Sans", sans-serif;
  --font-heading: var(--font-body);
  --text-nav: 15px;
  --text-lead: 24px;            /* intro / story / menu paragraphs */
  --text-footer: 1.25rem;       /* 20px */
  --text-display: 64px;         /* OUR STORY / OUR MENU / OUR APP */
  --leading-lead: 1.8;
  --tracking-lead: 0.05em;

  /* Spacing and shape */
  --container: 1280px;          /* Elementor boxed width */
  --container-narrow: 1024px;   /* ingredient grid */
  --header-height: 80px;
  --gutter: 24px;
  --shadow-card: 0 0 10px 0 rgb(0 0 0 / 0.12);

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

/* ============ 2. Fonts ============ */
/*
 * Nunito Sans (Google Fonts, SIL Open Font License 1.1), self-hosted from @fontsource-variable/nunito-sans 5.3.0.
 * It replaces the original's Avenir (a paid font; user decision q1, 2026-10-23). One variable file covers every
 * weight the site uses (400, 500, 600, 700, 900); latin subset only, no italics (none used).
 */
@font-face {
  font-family: "Nunito Sans";
  src: url("/assets/fonts/nunito-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  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; scroll-padding-top: var(--header-height); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1; margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

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

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

/* === Component: site-header (sticky white bar: nav + social circles; burger at ≤767px) === */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-white); padding: var(--gutter); }
.site-header__inner { position: static; display: flex; align-items: center; justify-content: flex-end; max-width: 1920px; min-height: 32px; margin-inline: auto; }
.site-nav { margin-right: var(--gutter); }
.site-nav__list { display: flex; gap: var(--gutter); list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; font-size: var(--text-nav); line-height: 20px; font-weight: 400; text-transform: uppercase; color: var(--color-text); }
.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-navy); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; margin-right: var(--gutter); padding: 0; border: 0; border-radius: 3px; background: var(--color-yellow); color: var(--color-navy); cursor: pointer; }
.nav-toggle svg { 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: 767px) {
  .nav-toggle { display: inline-flex; position: relative; }
  .nav-toggle::after { content: ""; position: absolute; inset: -6px; } /* 44px tap target */
  /* Dropdown: full width under the burger, appears instantly like the original */
  .site-nav { display: none; position: absolute; top: 67px; left: 0; right: 0; margin: 0; background: var(--color-white); }
  .site-nav.is-open { display: block; }
  .site-nav__list { display: block; }
  .site-nav__list a { padding: 10px 20px; color: var(--color-dropdown); }
  .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-dropdown-hover); }
}

/* === Component: social (round icon links; header = navy circle + yellow glyph, footer = translucent + white) === */
.social { display: flex; gap: 16px; list-style: none; margin: 0; padding: 0; }
.social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-navy); color: var(--color-yellow); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.social a:hover { opacity: 0.9; }
.social--footer a { background: var(--color-social-footer); color: var(--color-white); }
@media (max-width: 767px) {
  .social--header { gap: 32px; }
}

/* === Component: button === */
/* Outline (story "Order Now"): transparent, 1px border in the text colour */
.button { display: inline-block; padding: 12px 24px; border: 1px solid currentColor; border-radius: 0; background: transparent; color: var(--color-text); font-family: var(--font-body); font-size: 22px; font-weight: 400; line-height: 1; letter-spacing: 0.05em; text-align: center; cursor: pointer; }
/* Large solid (app "Download App") */
.button--app { background: var(--color-navy); color: var(--color-sand); font-size: 55px; }
/* Nunito Sans is ~1px wider than Avenir here: 2px less side padding keeps "Download" inside 375px screens */
@media (max-width: 767px) { .button--app { padding-inline: 22px; } }
/* Small uppercase outline (the form's SUBMIT MESSAGE style; unused since 2026-10-23, kept for the future form) */
.button--small { padding: 6px 14px; border-width: 2px; border-color: var(--color-navy); background: var(--color-white); color: var(--color-navy); font-size: 15px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
.button--small:hover, .button--small:focus-visible { background: var(--color-navy); color: var(--color-white); }

/* === Component: display-heading (64px black uppercase: OUR STORY / OUR MENU / OUR APP) === */
.display-heading { font-size: var(--text-display); font-weight: 900; line-height: 64px; text-transform: uppercase; color: var(--color-navy); text-align: center; }
.display-heading--light { color: var(--color-white); }

/* === Component: lead-text (24px airy paragraphs) === */
.lead-text { font-size: var(--text-lead); line-height: var(--leading-lead); letter-spacing: var(--tracking-lead); color: var(--color-text); text-align: center; }
.lead-text--light { color: var(--color-white); }

/* === Component: home-hero (photo + 30% dark overlay, big heading, logo roundel) === */
.home-hero { position: relative; padding: 32px var(--gutter); background: center / cover no-repeat; }
.home-hero::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay-hero); }
.home-hero__inner { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-height: 800px; }
.home-hero__title { max-width: 700px; font-size: 59px; font-weight: 900; line-height: 1.4; text-transform: uppercase; color: var(--color-white); }
.home-hero__logo { margin-top: 32px; width: 441px; max-width: 100%; }
@media (max-width: 767px) {
  .home-hero__title { font-size: 48px; }
}

/* === Component: page-hero (photo, centred logo roundel + white title) === */
.page-hero { padding: 96px var(--gutter); background: center / cover no-repeat; text-align: center; }
.page-hero__logo { width: 240px; max-width: 100%; margin-inline: auto; }
.page-hero__title { margin-top: 32px; font-size: 80px; font-weight: 600; color: var(--color-white); }
@media (max-width: 767px) {
  .page-hero__title { font-size: 48px; }
}

/* === Component: dots-band (yellow dot pattern behind centred lead text) === */
.dots-band { padding: 120px var(--gutter); background: url("/wp-content/uploads/2023/05/yellow-dots.png"); }
.dots-band .lead-text { max-width: 660px; margin-inline: auto; }

/* === Component: split (photo half + sand panel half; stacks at ≤767px) === */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 720px; }
.split__media { min-height: 50px; background: center / cover no-repeat; }
.split__panel { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 64px var(--gutter); background: var(--color-sand); text-align: center; }
.split__panel .display-heading { width: 100%; }
.split__panel .lead-text { max-width: 800px; margin-top: 40px; }
.split__panel .lead-text + .button { margin-top: 40px; }
.split__media--story { background-position: 0 0; }
@media (min-width: 1025px) {
  .split__media--story { background-position: -82px 0; }
}
@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__media { min-height: 400px; }
}

/* === Component: photo-band (photo + 40% overlay, fixed background on desktop) === */
.photo-band { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 540px; padding: 0 var(--gutter); background: center / cover no-repeat; text-align: center; }
.photo-band::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay-band); }
.photo-band > * { position: relative; }
.photo-band .lead-text { max-width: 540px; margin-top: 40px; }
@media (min-width: 1025px) {
  .photo-band--fixed { background-attachment: fixed; }
}
@media (max-width: 767px) {
  .photo-band { padding: 64px var(--gutter); }
}

/* === Component: ingredient-grid / ingredient-card (300×360 photo + overlapping bordered caption) === */
.ingredients { padding: 64px var(--gutter); }
.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 24px; list-style: none; margin: 0 auto; padding: 0; }
.ingredient-card { padding: 10px; text-align: center; }
.ingredient-card__image { width: 100%; max-width: 300px; height: 360px; margin-inline: auto; object-fit: cover; object-position: center; }
.ingredient-card__image--contain { object-fit: contain; }
.ingredient-card__caption { position: relative; max-width: 260px; margin: -32px auto 0; padding: 16px 24px 12px; border: 1px solid var(--color-navy); background: var(--color-white); }
.ingredient-card__title { font-size: 26px; font-weight: 700; color: var(--color-navy); }
.ingredient-card__text { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--color-field); }
@media (max-width: 767px) {
  .ingredient-grid { grid-template-columns: 1fr; row-gap: 0; }
  .ingredient-card { margin-bottom: 24px; }
}

/* === Component: map (keyless Google Maps iframe, 480px) === */
.map { display: block; width: 100%; height: 480px; border: 0; }

/* === Component: site-footer (map, navy band, overlapping contact card, 3 columns, bottom bar) === */
.site-footer { color: var(--color-white); }
.site-footer__band { padding: 80px 32px 64px; background: var(--color-navy); }
.site-footer__inner { display: flex; align-items: stretch; max-width: var(--container); margin-inline: auto; }
.site-footer__card { flex: 0 0 36.014%; align-self: flex-start; margin-top: -240px; padding: 48px; background: var(--color-white); box-shadow: var(--shadow-card); position: relative; }
.site-footer__main { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: space-between; padding-left: 64px; }
.footer-cols { display: grid; grid-template-columns: 35.502% 46.194% 17.968%; }
.footer-cols__title { font-size: 1.4em; font-weight: 700; color: var(--color-white); }
.footer-cols__text { margin-top: 32px; font-size: var(--text-footer); line-height: 1.8; letter-spacing: -0.02em; }
.footer-list { list-style: none; margin: 32px 0 0; padding: 0; font-size: var(--text-footer); font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.footer-list li + li { margin-top: 20px; }
.footer-list a { color: var(--color-white); }
.footer-list a:hover { opacity: 0.85; }
.site-footer__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.site-footer__copyright { flex: 0 1 66%; font-size: var(--text-footer); line-height: 1.8; letter-spacing: -0.02em; }
.site-footer__copyright a { color: inherit; }
@media (max-width: 1024px) {
  .site-footer__inner { flex-direction: column; }
  .site-footer__card { flex: none; width: 100%; margin-top: -200px; padding: 32px; }
  .site-footer__main { margin-top: 64px; padding-left: 0; }
  .footer-cols { grid-template-columns: 32% 43% 25%; }
  .site-footer__bar { margin-top: 64px; }
}
@media (max-width: 767px) {
  .footer-cols { grid-template-columns: 1fr; row-gap: 40px; }
  .site-footer__bar { flex-direction: column-reverse; align-items: flex-start; gap: 24px; margin-top: 40px; }
}

/* === Component: contact-email (replaces the footer contact form; phone only until the planned form endpoint exists) === */
.contact-email__title { font-size: 3rem; font-weight: 900; color: var(--color-navy); }
.contact-email__intro { margin-top: 12px; font-size: 1.375rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; color: var(--color-muted); }
.contact-email__body { display: grid; gap: 16px; justify-items: start; margin-top: 40px; font-size: 1.15rem; font-weight: 500; letter-spacing: -0.02em; color: var(--color-field); }
.contact-email__phone a { color: var(--color-navy); word-break: break-word; }
.contact-email__phone a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .contact-email__title { font-size: 2.5rem; }
  .contact-email__intro { line-height: 1.5; }
  .contact-email__body { margin-top: 32px; }
}

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

/* === Page: /404.html (link buttons under the message) === */
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 40px 0 0; padding: 0; }

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