/*
 * site.css: the only stylesheet for scoffsfishbar.co.uk (Scoff's Fish Bar).
 *
 * 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        helpers shared by 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 defaults on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values come from the original's Elementor CSS (post-14.css, kit post-4.css) and computed
 * styles of the live page (design-system/live-styles.json).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-red: #ff3a44;            /* Our Story / Our App bands */
  --color-red-dark: #c32e34;       /* footer background, "Contact Us" title */
  --color-gold: #d0bf6a;           /* contact card button */
  --color-black: #000000;          /* nav text, header rule, menu toggle */
  --color-white: #ffffff;
  --color-nav-active: #505050;     /* nav hover / current section */
  --color-muted: #7a7a7a;          /* card intro line */
  --color-dropdown-text: #33373d;  /* mobile dropdown links (Elementor default) */
  --color-dropdown-hover: #55595c; /* mobile dropdown hover background (Elementor default) */
  --color-button-fill: rgb(255 255 255 / 0.68); /* ORDER NOW (#FFFFFFAD) */

  /* Typography */
  --font-display: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; /* nav, buttons, section headings */
  --font-hero: "Roboto", Arial, sans-serif;                              /* hero headings */
  --font-body: "Poppins", Arial, sans-serif;                             /* copy, footer */
  --text-band-title: 80px;         /* OUR STORY / OUR APP */

  /* Spacing and shape */
  --container: 1280px;
  --header-h: 129px;               /* 123px + 6px rule; anchors scroll below the sticky header */
  --shadow-card: 0 0 10px 0 rgb(0 0 0 / 0.12);

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

/* ============ 2. Fonts ============ */
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-variable-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500.woff2") format("woff2"); font-weight: 500; 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; }
/* The tiled "Fish / Chips" doodle pattern shows behind the header and between sections, as on the original. */
body { margin: 0; font-family: var(--font-hero); font-size: 16px; line-height: normal; color: var(--color-black); background: var(--color-white) url("/wp-content/uploads/2023/06/background.png") 0 0 repeat; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; }
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-black); outline-offset: 2px; }
@media (min-width: 768px) { [id] { scroll-margin-top: var(--header-h); } }

/* ============ 4. Layout ============ */
.container { max-width: var(--container); margin-inline: auto; padding: 10px; }

/* ============ 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-black); }
.skip-link:focus { left: 16px; }

/* === Component: button (Roboto Condensed; variants per original widget) === */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 3px; font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1; text-align: center; color: var(--color-black); }
/* ORDER NOW in the header: white 68% fill, thin black border */
.button--outline { border: 1px solid var(--color-black); background: var(--color-button-fill); }
/* DOWNLOAD in the app band: no fill, white 31px caps */
.button--plain { background: transparent; color: var(--color-white); font-size: 31px; font-weight: 600; text-transform: uppercase; }
/* SUBMIT MESSAGE in the contact card: gold, black text turning white on hover */
.button--submit { padding: 8px 12px; border-radius: 6px; background: var(--color-gold); font-size: 24px; font-weight: 600; text-transform: uppercase; }
.button--submit:hover, .button--submit:focus-visible { color: var(--color-white); }

/* === Component: site-header (nav left, logo centre, ORDER NOW right; 6px black rule; sticky from 768px) === */
/* Transparent at the top (the page pattern shows through); white once the page scrolls (decision 5). */
.site-header { position: relative; z-index: 50; padding: 0; border-bottom: 6px solid var(--color-black); background: transparent; transition: background-color var(--duration) var(--ease); }
.site-header.is-scrolled { background: var(--color-white); }
.site-header__inner { display: grid; grid-template-columns: 43.879% 13.522% 42.239%; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-header__inner > * { padding: 10px; }
.site-header__logo { text-align: center; }
.site-header__logo img { display: inline-block; width: 100%; max-width: 103px; vertical-align: middle; }
.site-header__actions { display: flex; justify-content: flex-end; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto; padding: 0; border: 0; border-radius: 3px; background: var(--color-black); 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; }
.site-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 20px; color: var(--color-black); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a.is-active { color: var(--color-nav-active); }
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  /* Dropdown (Elementor "dropdown: tablet"): white list under the toggle, in the flow of the header column
     like the original; slides open with a grid 0fr -> 1fr row (align-items: stretch clips it while animating). */
  .site-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 0; visibility: hidden; background: var(--color-white); transition: grid-template-rows var(--duration) var(--ease), margin-top var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; margin-top: 10px; visibility: visible; transition: grid-template-rows var(--duration) var(--ease), margin-top var(--duration) var(--ease), visibility 0s; }
  .site-nav.is-instant { transition: none; }
  .site-nav__inner { min-height: 0; overflow: hidden; }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav a { min-height: 44px; padding: 12px 20px; color: var(--color-dropdown-text); }
  .site-nav a.is-active { color: var(--color-dropdown-text); }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-dropdown-hover); color: var(--color-white); }
}
@media (max-width: 767px) {
  .site-header__inner { display: block; }
  .site-header__actions { justify-content: center; }
}

/* === Component: hero (photo with 30% black overlay; "WELCOME TO / SCOFF'S FISH BAR") === */
.hero { position: relative; display: flex; align-items: center; min-height: 700px; padding: 0 30px; background: url("/wp-content/uploads/2023/06/IMG-20230608-WA0006.jpg") 50% 50% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-black); opacity: 0.3; }
.hero__content { position: relative; width: 100%; max-width: var(--container); margin-inline: auto; padding: 10px; text-align: center; color: var(--color-white); font-family: var(--font-hero); font-weight: 600; line-height: 1; }
.hero__kicker { font-size: 29px; font-weight: 600; }
.hero__title { font-size: 75px; font-weight: 600; }

/* === Component: split-band (red text panel beside a photo panel; Our Story / Our App) === */
.split-band { display: grid; grid-template-columns: 48.251% 51.749%; }
.split-band--text-first { grid-template-columns: 51.749% 48.251%; }
.split-band__photo { min-height: 50px; background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; }
.split-band__photo--story { background-image: url("/wp-content/uploads/2023/06/IMG-20230608-WA0002.jpg"); }
.split-band__photo--app { background-image: url("/wp-content/uploads/2023/06/IMG-20230608-WA0007.jpg"); background-position: 0 -150px; }
.split-band__panel { display: flex; flex-direction: column; justify-content: center; padding: 130px 80px; background: var(--color-red); color: var(--color-white); text-align: center; }
.split-band__title { font-family: var(--font-display); font-size: var(--text-band-title); font-weight: 600; line-height: 1; }
.split-band__text { display: flow-root; font-family: var(--font-body); font-size: 20px; font-weight: 400; line-height: 36px; }
.split-band__text p { margin: 1em 0; }
.split-band__text--loose { line-height: 56px; }
.split-band__panel .button { align-self: center; }
@media (max-width: 1024px) {
  .split-band__panel { padding: 80px 30px; }
  .split-band__text, .split-band__text--loose { font-size: 18px; line-height: 1.3; }
  .split-band__photo--app { background-position: 0 0; }
}
@media (max-width: 767px) {
  .split-band, .split-band--text-first { grid-template-columns: 1fr; }
  /* The original reverses Our Story on mobile: text first, photo below. */
  .split-band--reverse-mobile .split-band__panel { order: -1; }
  .split-band__photo--story { min-height: 324px; }
  .split-band__photo--app { min-height: 287px; }
}
/* Our Story sits 120px below the hero, showing the page pattern in between. */
.split-band--spaced { margin-top: 120px; }

/* === Component: photo-band (full-width 500px photo strip; hidden on mobile as on the original) === */
.photo-band { margin: 30px 0; }
.photo-band img { display: block; width: 100%; height: 500px; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 767px) { .photo-band { display: none; } }

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

/* === Component: site-footer (dark red; contact card overlapping the map; 3 columns; copyright bar) === */
.site-footer { padding: 80px 32px 64px; background: var(--color-red-dark); color: var(--color-white); }
.site-footer__inner { display: grid; grid-template-columns: 38.046% 61.954%; max-width: var(--container); margin-inline: auto; }
.site-footer__main { display: flex; flex-direction: column; justify-content: space-between; margin-left: 64px; }
.site-footer__cols { display: grid; grid-template-columns: 35.502% 41% 23.498%; }
.site-footer__heading { margin-bottom: 32px; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.site-footer__text { font-family: var(--font-body); font-size: 1.25rem; font-weight: 500; line-height: 1.8; letter-spacing: -0.02em; }
.site-footer__list { margin: 0; padding: 0; list-style: none; font-family: var(--font-body); font-size: 1.25rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.site-footer__list li + li { margin-top: 20px; }
.site-footer__bar { margin: 51.2px 0 19.2px; font-family: var(--font-body); font-size: 1.2rem; font-weight: 500; line-height: 1.8; letter-spacing: -0.02em; }
@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__main { margin: 64px 0 0; }
  .site-footer__cols { grid-template-columns: 32% 43% 25%; }
  .site-footer__bar { margin-top: 83.2px; }
}
@media (max-width: 767px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__col:not(:last-child) { margin-bottom: 40px; }
  .site-footer__bar { margin-top: 59.2px; }
}

/* === Component: contact-email (white card that held the Elementor Pro form; now an email link, q1 answer A) === */
.contact-email { position: relative; z-index: 1; display: flex; flex-direction: column; align-self: start; margin-top: -240px; padding: 48px; border-radius: 16px; background: var(--color-white); box-shadow: var(--shadow-card); color: var(--color-muted); }
.contact-email__title { font-family: var(--font-display); font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -0.03em; text-transform: uppercase; color: var(--color-red-dark); }
.contact-email__intro { margin: 12px 0 40px; font-family: var(--font-body); font-size: 1.3rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--color-muted); }
.contact-email__address, .contact-email__phone { margin-bottom: 16px; font-family: var(--font-body); font-size: 1.25rem; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.contact-email__address { color: var(--color-black); user-select: all; }
.contact-email__phone a { color: var(--color-red-dark); }
.contact-email .button { align-self: flex-end; margin-top: 16px; }
@media (max-width: 1024px) { .contact-email { margin-top: -200px; padding: 32px; } }
@media (max-width: 767px) {
  .contact-email__title { font-size: 2.5rem; }
  .contact-email__intro { margin-bottom: 32px; line-height: 1.5; }
  .contact-email__address, .contact-email__phone { font-size: 1.05rem; }
}

/* === Component: not-found (404 page body) === */
.not-found { padding: 120px 30px 300px; text-align: center; }
.not-found__title { margin-bottom: 24px; font-family: var(--font-display); font-size: 80px; font-weight: 600; line-height: 1; }
.not-found__text { margin: 0 auto 32px; max-width: 40em; font-family: var(--font-body); font-size: 18px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
@media (max-width: 767px) { .not-found__title { font-size: 48px; } }

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

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