/*
 * site.css: the only stylesheet for hawthornfishbar.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
 *   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 site; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values were measured from the live site's computed styles (design-system/styles.json).
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--large) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-red: #fb141c;          /* brand red: headings, buttons, dividers */
  --color-dark: #353535;         /* header bar, review cards */
  --color-page: #2d2d2d;         /* body background (footer area) */
  --color-black: #000000;        /* app band, body text on white */
  --color-white: #ffffff;
  --color-card-title: #fffcfc;
  --color-submenu-text: #33373d;
  --color-arrow: rgb(237 237 237 / 0.9);
  --color-popup-overlay: rgb(35 35 35 / 0.9);

  /* Typography */
  --font-heading: "Rokkitt", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
  --font-ui: "Roboto", Arial, sans-serif;

  /* Layout */
  --container: 1280px;
  --gutter: 30px;

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

/* ============ 2. Fonts (self-hosted Google Fonts, latin subset) ============ */
@font-face { font-family: "Rokkitt"; src: url("/assets/fonts/rokkitt-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-300-600.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-500-latin.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; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: normal; color: var(--color-black); background: var(--color-page); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1; 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, summary:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }
[id] { scroll-margin-top: 0; }

/* ============ 4. Layout ============ */
.container { width: min(100%, var(--container)); margin-inline: auto; }
.section { position: relative; padding-inline: var(--gutter); }

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

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

/* === Component: site-header ===
 * Desktop (>=1025): divider | nav | Facebook | ORDER NOW | divider, sticky.
 * Tablet (768-1024): menu button | Facebook | ORDER NOW, sticky.
 * Mobile (<=767): stacked and centred, not sticky.
 * Background #353535; on the home page it is transparent over the hero until scrolled
 * (.page-home + .is-scrolled from site.js "sticky"; replaces Elementor's opacity motion effect). */
.site-header { position: relative; z-index: 50; padding: 25px var(--gutter); background-color: var(--color-dark); transition: background-color 600ms ease; }
.page-home .site-header:not(.is-scrolled) { background-color: rgb(53 53 53 / 0); }
.site-header__inner { display: flex; flex-direction: column; align-items: center; gap: 15px; }
.site-header__rule { display: none; height: 3px; background: var(--color-red); }
.site-header__nav { display: none; }
.site-header__menu-button, .site-header__social, .site-header__order { display: flex; justify-content: center; }
.site-header__menu-button { min-height: 68px; align-items: center; }
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
  .site-header__inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 0; min-height: 68px; }
  .site-header__order { justify-content: flex-end; }
}
@media (min-width: 1025px) {
  .site-header__inner { grid-template-columns: 10% 50% 15% 17.03% 7.97%; min-height: 50px; }
  .site-header__rule { display: block; width: 90%; }
  .site-header__rule--end { margin-left: auto; }
  .site-header__nav { display: flex; justify-content: center; }
  .site-header__menu-button { display: none; }
}

/* === Component: main-nav (desktop horizontal menu with hover dropdown) === */
.main-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.main-nav__item { position: relative; }
.main-nav__link { position: relative; display: flex; align-items: center; gap: 8px; padding: 13px 20px; font-family: var(--font-heading); font-size: 20px; line-height: 20px; color: var(--color-white); white-space: nowrap; }
.main-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-white); opacity: 0; transition: opacity 300ms cubic-bezier(0.58, 0.3, 0.005, 1); }
.main-nav__link:hover::after, .main-nav__link:focus-visible::after, .main-nav__link.is-active::after, .main-nav__item:hover > .main-nav__link::after { opacity: 1; }
.main-nav__caret { width: 10px; height: 16px; fill: currentColor; flex: none; }

/* === Component: submenu (dropdown under "About Us") === */
.submenu { list-style: none; margin: 0; padding: 0; background: var(--color-white); }
.submenu a { display: flex; align-items: center; padding: 13px 20px; font-family: var(--font-ui); font-size: 13px; font-weight: 500; line-height: 20px; color: var(--color-submenu-text); white-space: nowrap; }
.submenu a:hover, .submenu a:focus-visible { background: #55595c; color: var(--color-white); }
.main-nav .submenu { position: absolute; top: 100%; left: 0; z-index: 60; min-width: 12em; visibility: hidden; opacity: 0; transition: opacity 200ms ease, visibility 200ms; }
.main-nav__item:hover > .submenu, .main-nav__item:focus-within > .submenu { visibility: visible; opacity: 1; }

/* === Component: menu-button (round hamburger that opens the mobile menu) === */
.menu-button { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; padding: 0; border: 3px solid var(--color-red); border-radius: 50%; background: var(--color-white); color: var(--color-red); cursor: pointer; }
.menu-button svg { width: 26px; height: 29px; fill: currentColor; }

/* === Component: social-icon (red circle with white glyph) === */
.social-icon { display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: var(--color-red); color: var(--color-white); transition: opacity var(--duration) var(--ease); }
.social-icon:hover { opacity: 0.9; }
.social-icon svg { width: 25px; height: 25px; fill: currentColor; }

/* === Component: button (red, Rokkitt, uppercase) === */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 0; border-radius: 12px; background: var(--color-red); color: var(--color-white); font-family: var(--font-heading); font-size: 20px; font-weight: 400; line-height: 20px; text-transform: uppercase; text-align: center; cursor: pointer; transition: all 0.3s; }
.button:hover, .button:focus-visible { color: var(--color-white); }
.button--square { border-radius: 3px; }          /* ORDER NOW / VIEW MENU group under the carousel */
.button--app { border-radius: 10px; text-transform: none; }
@media (min-width: 1025px) { .button--app { font-size: 35px; line-height: 35px; } }
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 767px) { .button-group { flex-direction: column; align-items: center; gap: 11px; } }

/* === Component: mobile-menu (full-screen red <dialog>, opened by the menu button) === */
.mobile-menu { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 30px 30px 30px 50px; border: 0; background: var(--color-red); color: var(--color-white); }
.mobile-menu::backdrop { background: var(--color-popup-overlay); }
.mobile-menu[open] { animation: mobile-menu-in 1.2s ease; }
@keyframes mobile-menu-in { from { opacity: 0; } to { opacity: 1; } }
.mobile-menu__close { display: block; margin-left: auto; width: 44px; height: 44px; padding: 6px; border: 0; background: none; color: var(--color-white); cursor: pointer; }
.mobile-menu__close svg { width: 32px; height: 32px; fill: currentColor; }
.mobile-menu__list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 15px; }
.mobile-menu__row { display: flex; align-items: center; }
.mobile-menu__link { display: block; padding: 5px 10px; font-family: var(--font-heading); font-size: 50px; line-height: 1; color: var(--color-white); }
.mobile-menu__toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--color-white); cursor: pointer; }
.mobile-menu__toggle svg { width: 24px; height: 24px; fill: currentColor; transition: transform var(--duration) var(--ease); }
.mobile-menu__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.mobile-menu__sub { list-style: none; margin: 10px 0 0 10px; padding: 0; background: var(--color-white); }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu__sub a { display: block; padding: 10px 20px; font-family: var(--font-heading); font-size: 30px; line-height: 1.2; color: var(--color-submenu-text); }
@media (min-width: 1025px) { .mobile-menu { display: none; } }

/* === Component: section-heading (big red Rokkitt heading + fish divider) === */
.section-heading { font-family: var(--font-heading); font-size: 50px; line-height: 50px; color: var(--color-red); text-align: center; }
@media (max-width: 767px) { .section-heading--fluid { font-size: 40px; line-height: 40px; } }
.fish-divider { display: flex; align-items: center; height: 59px; }
.fish-divider::before, .fish-divider::after { content: ""; flex: 1; border-top: 1px solid var(--color-red); }
.fish-divider svg { flex: none; width: 54px; height: 25px; margin-inline: 2px; }

/* === Component: hero (full-bleed background image + centred logo) === */
.hero { display: flex; align-items: center; justify-content: center; min-height: 900px; padding: 10px var(--gutter); background: url("/wp-content/uploads/2023/10/Hawthorn.png") center / cover no-repeat; }
.hero__logo { width: 531px; padding: 10px; }
@media (min-width: 768px) { .hero { padding-inline: 0; } }

/* === Component: carousel (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.carousel { position: relative; }
.carousel .swiper { padding-bottom: 34px; }
.carousel .swiper-slide { display: flex; justify-content: center; }
.carousel .swiper-slide img { width: 250px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 40px; object-fit: cover; }
.carousel .swiper-button-prev, .carousel .swiper-button-next { padding: 0; border: 0; background: none; --swiper-navigation-size: 25px; --swiper-navigation-color: var(--color-arrow); top: 122px; width: 25px; height: 25px; margin-top: 0; }
.carousel .swiper-button-prev { left: 10px; }
.carousel .swiper-button-next { right: 10px; }
.carousel .swiper-pagination { bottom: 0; line-height: 0; --swiper-pagination-bullet-size: 6px; --swiper-pagination-bullet-horizontal-gap: 6px; --swiper-pagination-color: var(--color-red); --swiper-pagination-bullet-inactive-color: var(--color-white); --swiper-pagination-bullet-inactive-opacity: 1; }
.carousel .swiper-pagination.swiper-pagination-horizontal { bottom: 9px; }
html:not(.js) .carousel .swiper-wrapper { overflow-x: auto; }
@media (max-width: 767px) { .carousel .swiper-button-prev, .carousel .swiper-button-next { top: 127px; } }

/* === Component: review-card (dark rounded card, Rokkitt title, 5 red stars) === */
.reviews { display: grid; gap: 0; }
@media (min-width: 1025px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review-card { margin: 10px; padding: 30px; border-radius: 30px; background: var(--color-dark); color: var(--color-white); text-align: center; }
.review-card__title { font-family: var(--font-heading); font-size: 30px; line-height: 30px; color: var(--color-card-title); }
.review-card__text { max-width: 68%; margin: 10px auto 0; font-size: 20px; }
.stars { display: flex; justify-content: center; margin-top: 10px; color: var(--color-red); }
.stars svg { display: block; width: 33px; height: 33px; fill: currentColor; }

/* === Component: app-promo (app download band over the shopfront photo) === */
.app-promo { padding-block: 300px; background: var(--color-white) url("/wp-content/uploads/2023/10/Shopfront.png"); }
.app-promo__band { display: grid; grid-template-columns: 40% 19.3% 40.7%; align-items: center; background: var(--color-black); text-align: center; }
.app-promo__lead { padding: 10px 10px 10px 40px; }
.app-promo__kicker { font-family: var(--font-body); font-size: 40px; font-weight: 500; line-height: 40px; color: var(--color-red); }
.app-promo__title { margin-top: 10px; font-family: var(--font-heading); font-size: 75px; line-height: 75px; color: var(--color-red); }
.app-promo__phone { margin-block: -200px; }
.app-promo__phone img { width: 100%; }
.app-promo__actions { display: flex; flex-direction: column; align-items: center; gap: 25px; padding: 10px; }
.app-promo__badges { width: 306px; }
@media (max-width: 1024px) {
  .app-promo__kicker { font-size: 30px; line-height: 30px; }
  .app-promo__title { font-size: 60px; line-height: 60px; }
  .app-promo__phone { margin-block: -50px; }
}
@media (max-width: 767px) {
  .app-promo__band { grid-template-columns: 1fr; padding: 6px 0 20px; }
  .app-promo__lead { padding: 10px 0 0; }
  .app-promo__phone { margin: 10px auto 0; width: 184px; }
  .app-promo__actions { padding-top: 30px; }
}

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

/* === Component: cta-box (vacancy box: photo background, title, text, outline button) === */
.cta-box { position: relative; display: flex; align-items: center; justify-content: center; min-height: 280px; overflow: hidden; text-align: center; }
.cta-box__bg { position: absolute; inset: 0; background-position: center; background-size: cover; transition: transform 1.5s; }
.cta-box__bg::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0); transition: background-color 1.5s; }
.cta-box__content { position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 35px; }
.cta-box__content > * { transition: transform 1s; }
.cta-box__title { margin-bottom: 15px; font-family: var(--font-heading); font-size: 50px; line-height: normal; color: var(--color-white); }
.cta-box__text { margin-bottom: 15px; font-size: 20px; color: var(--color-red); }
.cta-box__button { display: inline-block; padding: 12px 24px; border: 2px solid var(--color-red); border-radius: 3px; background: var(--color-white); font-family: var(--font-ui); font-size: 15px; font-weight: 500; line-height: 15px; color: var(--color-red); transition: all 0.3s; }
.cta-box:hover .cta-box__bg { transform: scale(1.2); }
.cta-box:hover .cta-box__bg::after { background-color: rgb(0 0 0 / 0.3); }
.cta-box:hover .cta-box__content > * { transform: scale(1.1); }
@media (max-width: 767px) { .cta-box { min-height: 362px; } }

/* === Component: site-footer (menu, Find Us, Opening Times, Facebook, copyright, credit, hygiene badge) === */
.site-footer { margin-block: 75px; padding-inline: var(--gutter); color: var(--color-white); }
.site-footer__inner { display: grid; grid-template-columns: 25% 25% 19.45% 30.55%; }
.site-footer__col { padding: 10px; }
.site-footer__heading { font-size: 20px; font-weight: 600; line-height: 20px; }
.site-footer__text { font-size: 20px; font-weight: 300; line-height: 30px; }
.site-footer__copyright { margin-top: 10px; font-size: 20px; font-weight: 300; line-height: 30px; }
.site-footer__credit { font-size: 20px; font-weight: 500; line-height: 30px; }
.site-footer__hygiene { display: block; width: 55%; margin-top: 10px; }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__col + .site-footer__col { padding-top: 10px; }
}

/* === Component: footer-nav (vertical menu with "About Us" sub-menu opening in place) === */
.footer-nav__list { list-style: none; margin: 0; padding: 0; }
.footer-nav__link { display: flex; align-items: center; gap: 8px; padding: 13px 20px; font-size: 20px; font-weight: 300; line-height: 20px; color: var(--color-white); }
.footer-nav__link:hover { color: var(--color-white); }
.footer-nav .submenu { display: none; }
.footer-nav__item:hover > .submenu, .footer-nav__item:focus-within > .submenu { display: block; }
@media (max-width: 767px) { .footer-nav__link { padding: 6px 0; } }

/* === Component: contact-email (not used on this site: no forms; kept for future use) === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }

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

/* === Page: / (home) === */
/* The header sits over the hero: the hero is pulled up under it (desktop fully, tablet 40px, as the original). */
@media (min-width: 768px) { .page-home .hero { margin-top: -40px; } }
@media (min-width: 1025px) { .page-home .hero { margin-top: -125px; } }
.about { padding: 120px 0; background: var(--color-white); }
.about__text { max-width: 1080px; margin-inline: auto; font-size: 20px; text-align: center; }
@media (max-width: 767px) { .about__text { padding-inline: 30px; } }
.our-menu { padding: 60px 0; background: var(--color-white) url("/wp-content/uploads/2023/10/bg.png"); }
.our-menu .carousel { margin-top: 10px; }
.our-menu .button-group { margin-top: 40px; }
.testimonials { padding-block: 100px; background: var(--color-white); }

/* === Page: /our-shop/ === */
.intro { display: flex; align-items: center; min-height: 810px; background: var(--color-white); }
.intro__inner { padding: 10px; text-align: center; }
.intro__text { margin-top: 26px; font-size: 20px; line-height: 28px; }
@media (max-width: 767px) { .intro { min-height: 720px; } .intro__text { font-size: 16px; } }

/* === Page: /job-vacancies/ === */
.vacancies { display: flex; align-items: center; min-height: 900px; background: var(--color-white); }
.vacancies__list { display: grid; gap: 50px; padding: 10px; }

/* === Page: /404.html === */
.not-found__links { margin-top: 40px; }

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