/*
 * site.css: the only stylesheet for thesecretsandwich.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections, grids
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (from the original Elementor CSS; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values are the live site's computed styles (design-system/orig-measure.json), measured
 * 2026-10-29 at 375/768/1024/1440.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--light) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-dark: #121314;        /* hero background behind the photo */
  --color-heading: #2c2c2c;     /* section headings, dark buttons, mobile menu text */
  --color-text: #585858;        /* body copy, icon-box titles, footer */
  --color-bg: #ffffff;
  --color-white: #ffffff;
  --color-primary: #2c2c2c;
  --color-primary-contrast: #ffffff;

  /* Typography: Urbanist (headings, buttons) + Space Grotesk (copy, nav) */
  --font-body: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Urbanist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-base: 16px;
  --text-copy: 22px;            /* section paragraphs (line-height 1.6) */
  --text-card: 18px;            /* card paragraphs, footer */
  --text-h2: 40px;              /* line-height 1, uppercase */
  --text-h3: 22px;              /* icon-box titles, uppercase */
  --text-button: 20px;
  --leading: 1.6;

  /* Spacing and shape */
  --widget-gap: 20px;           /* Elementor's space between widgets */
  --container: 1200px;          /* outer boxed sections */
  --container-narrow: 1140px;   /* hero and the feature card */
  --radius-card: 30px;
  --radius-image: 20px;
  --shadow-strong: 0 0 10px 0 rgb(0 0 0 / 0.5);   /* feature card under the hero */
  --shadow-soft: 0 0 10px 0 rgb(0 0 0 / 0.15);    /* menu cards */

  /* Header geometry: the header overlays the top of the hero (see site-header). */
  --logo-w: min(835px, 100vw - 120px);
  --logo-h: calc(var(--logo-w) * 200 / 835);
  --nav-h: 46px;
  --header-h: calc(var(--logo-h) + 120px + var(--widget-gap) + var(--nav-h));

  /* Motion (original buttons/sections: 0.3s) */
  --duration: 300ms;
  --duration-reveal: 800ms;
  --ease: ease;
}
@media (max-width: 767px) {
  :root { --nav-h: 44px; }
}

/* ============ 2. Fonts ============ */
/* Google Fonts (OFL), self-hosted, latin subset. Space Grotesk is a variable font (400 and 700 used). */
@font-face { font-family: "Space Grotesk"; src: url("/assets/fonts/space-grotesk-latin-wght.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Urbanist"; src: url("/assets/fonts/urbanist-400-latin.woff2") format("woff2"); font-weight: 400; 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); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; margin: 0; }
h2 { font-size: var(--text-h2); line-height: 1; text-transform: uppercase; color: var(--color-heading); }
h3 { font-size: var(--text-h3); line-height: 1.23; text-transform: uppercase; color: var(--color-text); }
p { margin: 0 0 1em; }
a { color: inherit; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Boxed content: 1200px outer box; columns inside carry 10px padding (Elementor column gap). */
.container { width: min(100%, var(--container)); margin-inline: auto; }
.section { padding-block: 100px; }
.col { padding: 10px; min-width: 0; }
/* A stack of widgets with Elementor's 20px spacing. */
.stack > * + * { margin-top: var(--widget-gap); }
@media (max-width: 1024px) {
  .section { padding: 50px 0; }
}

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

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

/* === Component: site-header ===
 * White logo card with rounded bottom corners, then the main nav, both sitting on the
 * dark hero. The header itself is transparent; the page's first section (.hero) pulls up
 * underneath it by --header-h, so the hero photo runs behind the header like the original.
 * Logo height is computed in CSS (--logo-h) so --header-h is exact at every width.
 */
.site-header { position: relative; z-index: 20; }
.site-header__card { height: calc(var(--logo-h) + 120px); padding: 60px; margin-bottom: var(--widget-gap); background: var(--color-white); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.site-header__logo { display: block; width: var(--logo-w); height: var(--logo-h); margin-inline: auto; }
.site-header__logo img { width: 100%; height: 100%; object-fit: contain; }

/* === Component: site-nav ===
 * Restored from the Internet Archive (Elementor Pro nav menu, decision d1/d2).
 * >= 768px: one centred row of white links (Space Grotesk 16px, 13px 20px padding).
 * <= 767px: centred white burger; a full-width white dropdown slides open over the hero
 * (grid 0fr -> 1fr, 0.3s), links #2c2c2c, 10px 20px padding.
 */
.site-nav { position: relative; height: var(--nav-h); }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 13px 20px; font-family: var(--font-body); font-size: 16px; line-height: 20px; color: var(--color-white); text-decoration: none; text-underline-offset: 4px; }
.site-nav__list a:hover, .site-nav__list a:focus-visible { text-decoration: underline; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-inline: auto; padding: 0; border: 0; background: none; color: var(--color-white); cursor: pointer; }
.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: flex; }
  .site-nav__menu { position: absolute; top: 100%; left: 0; right: 0; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-white); transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); }
  .site-nav__menu.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav__inner { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav__list a { padding: 10px 20px; color: var(--color-heading); }
}

/* === Component: site-footer === (white bar: copyright left, credit right) */
.site-footer { padding: 30px 0; background: var(--color-white); font-size: var(--text-card); line-height: normal; color: var(--color-text); }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.site-footer__copyright { display: flow-root; margin: 1em 0; }
.site-footer__credit { margin: 0; text-align: right; }
.site-footer__credit a { color: var(--color-text); text-decoration: none; }
@media (max-width: 767px) {
  .site-footer { font-size: 14px; }
  .site-footer__inner { grid-template-columns: 55% 45%; }
}

/* === Component: button === (pill; Urbanist 20px uppercase; no hover change on the original) */
.button { display: inline-block; padding: 17px 30px; border-radius: 30px; background: var(--color-primary); color: var(--color-primary-contrast); font-family: var(--font-heading); font-size: var(--text-button); line-height: 1; text-transform: uppercase; text-decoration: none; text-align: center; transition: all var(--duration); }
.button--light { background: var(--color-white); color: var(--color-heading); }
.button-row { text-align: center; }

/* === Component: prose === (Elementor text widget: paragraphs keep 1em top and bottom margins) */
.prose { display: flow-root; font-size: var(--text-copy); line-height: var(--leading); color: var(--color-text); }
.prose p { margin: 1em 0; }
.prose--card { font-size: var(--text-card); }

/* === Component: hero ===
 * Full-viewport dark section with the photo at 70% 90% (top-left at <= 1024px), unscaled.
 * Pulls up under the transparent site-header. Content column: 60% of 1140px on desktop,
 * full width with 30px side padding below 1025px, vertically centred; 100px spacer below.
 */
.hero { display: flex; flex-direction: column; min-height: 100vh; margin-top: calc(-1 * var(--header-h)); padding: var(--header-h) 0 100px; background: var(--color-dark) no-repeat 70% 90%; color: var(--color-white); }
.hero__body { flex: 1; display: flex; align-items: center; }
.hero__inner { width: min(100%, var(--container-narrow)); margin-inline: auto; }
.hero__content { width: 60%; }
.hero h2 { color: var(--color-white); }
.hero .prose { color: var(--color-white); }
@media (max-width: 1024px) {
  .hero { background-position: 0 0; }
  .hero__inner { padding-inline: 30px; }
  .hero__content { width: 100%; }
}

/* === Component: feature-strip === (white card overlapping the hero bottom by 50px; 3 icon boxes) */
.feature-strip__card { position: relative; width: min(100%, var(--container)); margin: -50px auto 0; padding: 30px; background: var(--color-white); border-radius: var(--radius-card); box-shadow: var(--shadow-strong); }
.feature-strip__grid { display: grid; grid-template-columns: 354fr 357fr 421fr; max-width: var(--container-narrow); margin-inline: auto; }
@media (max-width: 1024px) {
  .feature-strip__grid { grid-template-columns: 1fr; }
}

/* === Component: icon-box === (50px icon + 15px gap + Urbanist 22px uppercase title; stacked and centred on mobile) */
.icon-box { display: flex; align-items: center; gap: 15px; }
.icon-box__icon { flex: none; width: 50px; height: 50px; }
.icon-box__title { margin: 22px 0; }
@media (max-width: 767px) {
  .icon-box { flex-direction: column; text-align: center; }
}

/* === Component: split === (two columns; .split--about 45/55, .split--app 64/36, .split--contact 50/50) */
.split { display: grid; }
.split--about { grid-template-columns: 45fr 55fr; }
.split--app { grid-template-columns: 64fr 36fr; }
.split--contact { grid-template-columns: 1fr 1fr; }
.split__media { display: flex; justify-content: center; align-items: flex-start; }
.split__aside { display: flex; flex-direction: column; justify-content: center; align-items: center; }
@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .split--about .split__media, .split--app .split__aside { display: none; }
  .split--about .col { padding: 30px; }
}

/* === Component: menu-cards === (2 x 2 rounded cards with a soft shadow; 50px between, 40px between rows) */
.menu-cards__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 50px; margin-bottom: 40px; }
.menu-cards { padding-bottom: 100px; }
.menu-cards__row--last { margin-bottom: 50px; }
.menu-card { padding: 40px; border-radius: var(--radius-card); box-shadow: var(--shadow-soft); }
.menu-card .icon-box { margin-bottom: 10px; }
@media (max-width: 767px) {
  .menu-cards__row { grid-template-columns: 1fr; }
  .menu-card { padding: 30px; margin-bottom: 20px; }
}

/* === Component: app-band === (phone-bg photo, cover; payment logos + "Now accepting" line; store badges) */
.app-band { background: no-repeat 0 0 / cover; }
.app-band .col { padding: 10px; }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; }
.pay-row img { flex: none; height: 40px; width: auto; }
.pay-row img:first-child { margin-right: 10px; }
.pay-row .prose { flex: 0 1 auto; max-width: 100%; }
.pay-row .prose p { margin: 1em 0 1em 10px; }
.store-badges a { display: block; width: 280px; max-width: 100%; margin-inline: auto; }
.store-badges a + a { margin-top: 40px; }
@media (max-width: 1024px) {
  .app-band { padding: 30px; }
}

/* === Component: contact-list === (icon + text rows; icon column 11%; stacked on mobile) */
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; }
.contact-list__item { display: grid; grid-template-columns: 11% 1fr; margin-bottom: 20px; }
.contact-list__item img { width: 40px; height: 40px; }
.contact-list__item .prose p { margin: 1em 0; }
.contact-image { border-radius: var(--radius-image); }
.contact-details { margin-left: 50px; }
@media (max-width: 1024px) {
  .contact-section { padding: 30px; }
}
@media (max-width: 767px) {
  .contact-details { margin-left: 0; }
  .contact-list__item { grid-template-columns: 1fr; }
  .contact-list__item .prose--mobile-small { font-size: 16px; }
}

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

/* === Component: contact-email === (starter component; this site has no forms) */
.contact-email { display: grid; gap: 1rem; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }

/* === Component: reveal (GSAP; not used on this site) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: /404.html === (short dark hero under the header) */
.hero--compact { min-height: 0; padding-bottom: 60px; }
.hero--compact .hero__body { padding-top: 60px; }
.hero--compact a:not(.button) { color: var(--color-white); }
.hero__title { font-size: var(--text-h2); line-height: 1; text-transform: uppercase; color: var(--color-white); }

/* ============ 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; }
  [data-reveal] { visibility: visible !important; }
}
