/*
 * site.css: the only stylesheet for codnor-fishbar.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container
 *   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 Elementor ones; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The burger menu is used at ≤ 1024px (tablet and mobile), as on the original.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.hero-slider--x) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-bg: #495250;            /* page, header and footer background (dark grey-green) */
  --color-text: #ffffff;          /* all text is white on the dark background */
  --color-accent: #f10000;        /* red: buttons, nav hover, footer credit link */
  --color-rule: #efefef;          /* 1px lines under the header and above the contact band */
  --color-divider: #ffffff;       /* 5px white line above the hero slider */
  --color-menu-active: #3f444b;   /* active / hover row in the burger dropdown */
  --color-toggle-bg: rgb(0 0 0 / 0.05);
  --color-slide-fallback: #833ca3; /* shown behind slide images until they load */
  --color-slide-overlay: rgb(0 0 0 / 0.5);
  --color-arrow: rgb(237 237 237 / 0.9);
  --color-bullet: #000000;

  /* Typography (Elementor kit: Roboto / Roboto Slab; nav Open Sans; footer Ubuntu) */
  --font-body: "Roboto", Arial, sans-serif;
  --font-slab: "Roboto Slab", Georgia, serif;
  --font-nav: "Open Sans", Arial, sans-serif;
  --font-footer: "Ubuntu", Arial, sans-serif;

  /* Spacing and shape */
  --container: 1140px;
  --column-gap: 10px;             /* Elementor "default" column padding */
  --widget-gap: 20px;             /* space between stacked widgets */
  --radius-button: 20px;

  /* Motion (match the original's timings) */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset). Roboto, Roboto Slab and Open Sans are variable fonts. */
@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: "Roboto Slab"; src: url("/assets/fonts/roboto-slab-latin-variable.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-variable.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Ubuntu"; src: url("/assets/fonts/ubuntu-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: 16px; line-height: normal; color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

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

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 16px; background: #ffffff; color: #000000; }
.skip-link:focus { left: 16px; }

/* === Component: site-header ===
 * Three equal columns: Facebook icon (left), logo (centre), nav (right).
 * Mobile: the three stack, each centred; the burger sits right in the third row.
 */
.site-header { background: var(--color-bg); border-bottom: 1px solid var(--color-rule); }
.site-header__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 70px; }
.site-header__col { padding: var(--column-gap); min-width: 0; }
.site-header__social { display: flex; justify-content: flex-start; }
.site-header__logo { display: block; width: 300px; max-width: 100%; margin-inline: auto; }
.site-header__logo img { width: 35%; margin-inline: auto; }
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .site-header__social { justify-content: center; }
}

/* === Component: social-icon (circle outline, as the original Elementor social icon) === */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid #ffffff; border-radius: 50%; color: #ffffff; font-size: 20px; transition: opacity var(--duration) var(--ease); }
.social-icon:hover { opacity: 0.9; }
.social-icon .icon { width: auto; height: 1em; }

/* === Component: site-nav ===
 * Desktop (≥1025px): horizontal list, right aligned, wraps like the original (ORDER NOW drops to
 * a second line at 1440px). Hover/focus fades a red block behind the item, except the current page.
 * Tablet + mobile (≤1024px): burger toggle; the list slides down in the page flow (grid 0fr → 1fr).
 */
.site-nav-wrap { padding: 5px; }
.nav-toggle { display: none; margin-left: auto; align-items: center; justify-content: center; width: 45px; height: 45px; padding: 7.5px; border: 0; border-radius: 3px; background: var(--color-toggle-bg); color: #ffffff; font-size: 30px; 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; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.site-nav__link { position: relative; display: flex; align-items: center; padding: 13px 28px; font-family: var(--font-nav); font-size: 20px; font-weight: 400; line-height: 0.1em; letter-spacing: 1px; text-transform: uppercase; color: #ffffff; transition: background-color var(--duration) var(--ease); }
.site-nav__list > li:not(:first-child) > .site-nav__link { margin-inline-start: 11px; }
.site-nav__list > li:not(:last-child) > .site-nav__link { margin-inline-end: 11px; }
.site-nav__link:not([aria-current="page"]):hover,
.site-nav__link:not([aria-current="page"]):focus-visible { background-color: var(--color-accent); }

@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .site-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 10px; transition: grid-template-rows var(--duration) var(--ease); }
  .site-nav.is-open { grid-template-rows: 1fr; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s linear var(--duration); }
  .site-nav.is-open .site-nav__list { visibility: visible; transition-delay: 0s; }
  .site-nav__link { display: block; padding: 10px 20px; margin: 0 !important; transition: none; }
  .site-nav__link[aria-current="page"],
  .site-nav__link:hover,
  .site-nav__link:focus-visible { background-color: var(--color-menu-active) !important; }
}
@media (max-width: 767px) {
  .site-nav__link { font-size: 18px; }
}

/* === Component: hero-slider (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) ===
 * Every slide is one link to the ordering site. 400px tall at every width.
 * Slide 1 has no overlay; the others have a 50% black overlay (.hero-slide--overlay).
 */
.hero-slider { border-top: 5px solid var(--color-divider); }
.hero-slider .swiper {
  height: 400px;
  --swiper-navigation-size: 25px;
  --swiper-navigation-color: var(--color-arrow);
  --swiper-navigation-sides-offset: 10px;
  --swiper-pagination-bullet-size: 12px;
  --swiper-pagination-bullet-horizontal-gap: 6px;
  --swiper-pagination-color: var(--color-bullet);
  --swiper-pagination-bullet-inactive-color: var(--color-bullet);
  --swiper-pagination-bullet-inactive-opacity: 0.2;
  --swiper-pagination-bottom: 5px;
}
.hero-slide { position: relative; height: 400px; overflow: hidden; background-color: var(--color-slide-fallback); }
.hero-slide__bg { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; object-position: center; }
.hero-slide--overlay::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-slide-overlay); }
.hero-slide__link { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 50px; color: #ffffff; text-align: center; }
.hero-slide__contents { max-width: 50%; }
.hero-slide__heading { margin-bottom: 30px; font-family: var(--font-body); font-size: 35px; font-weight: 300; line-height: 1; text-transform: uppercase; }
.hero-slide__text { margin-bottom: 30px; font-family: var(--font-slab); font-size: 36px; font-weight: 400; line-height: 1.4; }
.hero-slide__button { display: inline-block; padding: 25px 50px; border: 3px solid #ffffff; border-radius: var(--radius-button); background: var(--color-accent); font-family: var(--font-body); font-size: 20px; font-weight: 500; line-height: 1; text-transform: uppercase; }
/* Arrows and dots only once Swiper is running; without JS the first slide shows on its own. */
.hero-slider .swiper:not(.swiper-initialized) .swiper-button-prev,
.hero-slider .swiper:not(.swiper-initialized) .swiper-button-next,
.hero-slider .swiper:not(.swiper-initialized) .swiper-pagination { display: none; }
.hero-slider .swiper-button-prev, .hero-slider .swiper-button-next { width: 25px; padding: 0; border: 0; background: none; }
.hero-slider .swiper-button-prev svg, .hero-slider .swiper-button-next svg { width: 25px; height: 25px; fill: currentColor; transform: none; }
.hero-slider .swiper-pagination-bullet { cursor: pointer; }
@media (max-width: 767px) {
  .hero-slide__link { padding: 30px; }
  .hero-slide__contents { max-width: 90%; }
  .hero-slide__heading { font-size: 23px; }
}

/* === Component: site-footer ===
 * Contact band (CONTACT / ADDRESS / map) and the copyright line, on the page background.
 * Desktop: 3 columns. Tablet: 2 columns + full-width map. Mobile: stacked; the band keeps the
 * original's 728px minimum height, shared out between the rows.
 */
.site-footer { background: var(--color-bg); }
.contact-band { border-top: 1px solid var(--color-rule); padding-block: 50px; }
.contact-band__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-band__col { padding: var(--column-gap); min-width: 0; }
.contact-band__title { margin-bottom: var(--widget-gap); font-family: var(--font-body); font-size: 24px; font-weight: 300; line-height: 1; text-align: center; text-transform: uppercase; color: #ffffff; }
.contact-band__map .map { height: 210px; }
@media (max-width: 1024px) {
  .contact-band { padding: 30px 0 0; }
  .contact-band__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-band__map { grid-column: 1 / -1; }
  .contact-band__map .map { height: 250px; }
}
@media (max-width: 767px) {
  .contact-band__inner { grid-template-columns: minmax(0, 1fr); min-height: 728px; }
  .contact-band__map .map { height: 215px; }
}

/* === Component: icon-box (icon above a short text, centred) === */
.icon-box { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; }
.icon-box__icon { display: block; height: 26px; font-size: 26px; line-height: 1; color: #ffffff; }
.icon-box__icon .icon { width: auto; height: 1em; }
.icon-box__text { font-family: var(--font-body); font-size: 16px; font-weight: 400; color: #ffffff; }
.icon-box__text--upper { text-transform: uppercase; }

/* === Component: map === */
.map { display: block; width: 100%; height: 400px; border: 0; }

/* === Component: copyright === */
.copyright { padding: var(--column-gap); font-family: var(--font-footer); font-size: 17px; font-weight: 400; text-align: center; color: #ffffff; }
.copyright a { color: var(--color-accent); text-decoration: underline; }
@media (max-width: 767px) {
  .copyright { font-size: 16px; }
}

/* === Component: page-content (simple text page, e.g. 404) === */
.page-content { padding: 50px var(--column-gap); text-align: center; }
.page-content h1 { margin-bottom: var(--widget-gap); font-family: var(--font-body); font-size: 35px; font-weight: 300; line-height: 1; text-transform: uppercase; }
.page-content p { margin-bottom: var(--widget-gap); font-size: 16px; line-height: 1.5; }
.page-content a:not(.button) { text-decoration: underline; }

/* === Component: button (same look as the slider's ORDER NOW) === */
.button { display: inline-block; padding: 25px 50px; border: 3px solid #ffffff; border-radius: var(--radius-button); background: var(--color-accent); color: #ffffff; font-family: var(--font-body); font-size: 20px; font-weight: 500; line-height: 1; text-transform: uppercase; text-decoration: none; }

/* === Component: contact-email (replaces WordPress forms; unused on this site, kept for future edits) === */
.contact-email { display: grid; gap: var(--widget-gap); justify-items: center; text-align: center; }
.contact-email__address { font-weight: 500; word-break: break-word; }
.contact-email__phone a { color: inherit; }

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

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