/*
 * site.css: the only stylesheet for callandsfryer.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         none self-hosted (see note)
 *   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 (Elementor's defaults on the original; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The burger menu, stacked hero/app buttons and the full-width footer map apply ≤ 1024px.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--red) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit globals + computed styles on the original) */
  --color-red: #d21b1a;          /* kit primary: header, buttons, app section */
  --color-navy: #03034a;         /* kit secondary/accent: overlays, footer */
  --color-text: #000000;         /* kit text */
  --color-white: #ffffff;
  --color-header-social: #e44342;
  --color-footer-social: #303077;
  --color-nav-active: #3f444b;   /* Elementor dropdown active/hover item */
  --color-divider: #00000094;
  --color-review-card: #f4f4f4;
  --color-review-name: #154fc1;
  --color-review-time: #555555;
  --color-review-text: #222222;
  --color-star: #fb8e28;
  --color-star-empty: #fb8e28;

  /* Typography: Inter (Google Font, self-hosted variable woff2, weights 400/600/700 used).
     The original's kit uses Inter everywhere; LiteSpeed served it to mobile visitors but dropped
     it from desktop's combined CSS (desktop fell back to the system sans). See decision 8. */
  --font-body: "Inter", sans-serif;
  --font-reviews: Times, "Times New Roman", serif; /* the reviews widget inherits the browser default serif */
  --text-base: 16px;
  --text-nav: 1.4rem;      /* 22.4px */
  --text-button: 2rem;     /* 32px */
  --text-footer: 1.2rem;   /* 19.2px */

  /* Layout */
  --container: 1140px;
  --container-wide: 1400px;
  --header-h: 101px;
  --radius-button: 8px;
  --radius-image: 2rem;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 1024px) {
  :root { --header-h: 97px; }
}

/* ============ 2. Fonts ============ */
/* Inter v20 latin subset from Google Fonts (OFL), one variable file for every weight. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-latin-var.woff2") format("woff2"); font-weight: 100 900; 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-h); }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: normal; 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-body); font-weight: 600; line-height: 1; margin: 0; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--color-navy); outline-offset: 2px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

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

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

/* === Component: site-header (red sticky bar, centred nav, Facebook icon right) === */
.site-header { position: sticky; top: 0; z-index: 99; background: var(--color-red); }
.site-header__inner { position: relative; display: flex; justify-content: center; align-items: flex-start; min-height: var(--header-h); padding: 55px 10px 0; }
.site-nav__list { display: flex; justify-content: center; list-style: none; margin: 0 0 -10px; padding: 0; }
.site-nav__list a { display: block; padding: 13px 12px; font-size: var(--text-nav); font-weight: 600; line-height: 20px; text-transform: uppercase; color: var(--color-white); text-decoration: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 0; padding: 7px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: var(--color-white); font-size: 28px; 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; }
.social-icon--header { position: absolute; right: 20px; top: 54px; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; position: relative; }
  .nav-toggle::after { content: ""; position: absolute; inset: -2px; } /* 44px tap target */
  .site-nav { position: absolute; left: 0; right: 0; top: calc(100% - 2px); display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-red); transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav.is-instant { transition: none; }
  .site-nav__inner { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; margin: 0; }
  .site-nav__list a { padding: 20px 15px; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a[aria-current="page"], .site-nav__list a.is-active { background: var(--color-nav-active); }
}
@media (max-width: 767px) {
  .site-header .social-icon--header { display: none; }
}

/* === Component: social-icon (round Facebook buttons) === */
.social-icon { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--color-white); text-decoration: none; transition: opacity var(--duration) var(--ease); }
.social-icon:hover { opacity: 0.9; }
.social-icon--header { width: 40px; height: 40px; font-size: 25px; background: var(--color-header-social); }
.social-icon--footer { width: 38px; height: 38px; font-size: var(--text-footer); background: var(--color-footer-social); }

/* === Component: button (white with red text; .button--red is the inverse) === */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius-button); background: var(--color-white); color: var(--color-red); font-family: var(--font-body); font-size: var(--text-button); font-weight: 600; line-height: 1; text-transform: uppercase; text-align: center; text-decoration: none; transition: all var(--duration) var(--ease); }
.button--red { background: var(--color-red); color: var(--color-white); }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px; padding: 18px 8px; }
@media (max-width: 1024px) {
  .button-row { flex-direction: column; }
}

/* === Component: overlay-section (background image with a navy overlay) === */
.overlay-section { position: relative; background-color: var(--color-navy); background-repeat: no-repeat; background-size: cover; isolation: isolate; }
.overlay-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-navy); opacity: var(--overlay-opacity, 0.63); }

/* === Component: hero === */
.hero { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100vh - 4.5rem); min-height: calc(100dvh - 4.5rem); padding: 220px 10px; background-position: 0 0; }
.hero__logo { width: 251px; height: auto; }
.hero .button-row { margin-top: 20px; }
@media (max-width: 1024px) {
  .hero { padding-block: 120px; }
}

/* === Component: logo-divider (lines either side of a faded logo) === */
.logo-divider { display: grid; grid-template-columns: repeat(3, 1fr); max-width: var(--container); margin: 50px auto 0; }
.logo-divider__line { align-self: start; margin: 80px 20px 0; border-top: 1px solid var(--color-divider); }
.logo-divider__logo { justify-self: center; width: 9rem; margin: 10px; opacity: 0.6; }
@media (max-width: 1024px) {
  .logo-divider__line { visibility: hidden; }
}
@media (max-width: 767px) {
  .logo-divider { grid-template-columns: 1fr; padding-block: 20px; }
  .logo-divider__line { display: none; }
}

/* === Component: intro-text (centred paragraphs) === */
.intro-text { max-width: var(--container); margin-inline: auto; padding: 10px 10px 44px; text-align: center; }
.intro-text p { margin: 16px 0; }
@media (max-width: 767px) {
  .intro-text { padding: 30px 30px 64px; }
}

/* === Component: rule (centred 80% divider line) === */
.rule { max-width: var(--container); margin-inline: auto; padding: 25px 10px 95px; }
.rule hr { width: 80%; margin: 0 auto; border: 0; border-top: 1px solid var(--color-divider); }

/* === Component: gallery-carousel (Swiper image carousel) === */
.gallery-section { --overlay-opacity: 0.8; padding: 130px 10px 80px; background-position: center center; }
.gallery-section__inner { max-width: var(--container); margin-inline: auto; }
.gallery-carousel { overflow: hidden; padding-bottom: 4px; }
.gallery-carousel .swiper-wrapper { align-items: center; }
.gallery-carousel__img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--color-red); border-radius: var(--radius-image); }
.gallery-section .button-row { margin-top: 90px; }
/* Without JS, show the slides as a row that scrolls sideways. */
.gallery-carousel:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 75px; overflow-x: auto; }
.gallery-carousel:not(.swiper-initialized) .swiper-slide { flex: 0 0 calc((100% - 150px) / 3); }
@media (max-width: 1023px) {
  .gallery-carousel:not(.swiper-initialized) .swiper-slide { flex-basis: calc((100% - 75px) / 2); }
}
@media (max-width: 766px) {
  .gallery-carousel:not(.swiper-initialized) .swiper-slide { flex-basis: 100%; }
}

/* === Component: reviews (frozen Google reviews in a Swiper slider) === */
.reviews-section { position: relative; padding: 130px 10px 10px; isolation: isolate; }
.reviews-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/wp-content/uploads/2024/01/logo.png") right center / contain no-repeat; opacity: 0.15; }
.reviews-section__inner { max-width: var(--container); margin-inline: auto; }
.section-title { font-size: 4rem; font-weight: 600; line-height: 1; text-transform: uppercase; text-align: center; color: var(--color-red); }
.reviews { position: relative; margin-top: 90px; padding: 0 21px 20px; font-family: var(--font-reviews); }
.reviews .swiper { overflow: hidden; }
.reviews .swiper-slide { height: auto; }
.review { position: relative; display: flex; flex-direction: column; gap: 12px; height: 228px; margin: 4px; padding: 16px; border-radius: 8px; background: var(--color-review-card); }
.review__head { display: flex; align-items: center; gap: 12px; min-width: 0; padding-right: 12px; }
.review__img { width: 44px; height: 44px; flex: none; object-fit: cover; }
.review__who { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.review__name { overflow: hidden; font-size: 16px; font-weight: 700; color: var(--color-review-name); text-decoration: none; white-space: nowrap; text-overflow: ellipsis; }
.review__time { font-size: 13px; color: var(--color-review-time); white-space: nowrap; }
.review__stars { display: flex; gap: 2px; font-size: 20px; color: var(--color-star); }
.review__stars .icon--empty { fill: none; stroke: var(--color-star-empty); stroke-width: 1.5; }
.review__text { height: 100px; overflow-y: auto; font-size: 15px; line-height: 24px; color: var(--color-review-text); white-space: pre-wrap; word-break: break-word; }
.review__text::-webkit-scrollbar { width: 4px; }
.review__text::-webkit-scrollbar-thumb { border-radius: 10px; background: #ccc; }
.review__logo { position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; }
.reviews__arrow { position: absolute; top: 101px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 8px; border: 1px solid #ccc; border-radius: 50%; background: #f5f5f5; color: #777; font-size: 16px; box-shadow: 0 2px 6px rgb(0 0 0 / 0.15); cursor: pointer; }
.reviews__arrow--prev { left: 0; }
.reviews__arrow--next { right: 0; }
.reviews__arrow.swiper-button-disabled { opacity: 0.5; }
.reviews__dots { position: absolute; left: 0; right: 0; bottom: -4px; top: auto; display: none; text-align: center; }
.reviews__dots .swiper-pagination-bullet { width: 8px; height: 8px; margin: 0 4px; background: #ccc; opacity: 1; }
.reviews__dots .swiper-pagination-bullet-active { background: var(--color-star); }
.reviews-section__cta { display: flex; justify-content: center; padding: 34px 8px 18px; }
/* Without JS: cards in a row that scrolls sideways. */
.reviews .swiper:not(.swiper-initialized) .swiper-wrapper { display: flex; overflow-x: auto; }
.reviews .swiper:not(.swiper-initialized) .swiper-slide { flex: 0 0 25%; }
@media (max-width: 767px) {
  .section-title { font-size: 2rem; }
  .reviews { padding-inline: 20px; }
  .reviews__dots { display: block; }
  .reviews .swiper:not(.swiper-initialized) .swiper-slide { flex-basis: 100%; }
}

/* === Component: app-promo (download the app, phone mock-up) === */
.app-promo { padding: 140px 20px; background: var(--color-red); }
.app-promo__row { display: flex; gap: 20px; max-width: var(--container-wide); margin-inline: auto; padding: 10px 20px; }
.app-promo__text { flex: 1 1 50%; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 0 10px; text-align: center; color: var(--color-white); }
.app-promo__title { font-size: 3rem; text-transform: uppercase; }
.app-promo__title--big { font-size: 5rem; }
.app-promo__phone { flex: 1 1 50%; min-height: 670px; padding: 450px 20px 0; background: url("/wp-content/uploads/2024/01/phone.png") center center / contain no-repeat; text-align: center; color: var(--color-white); }
.app-promo__available { font-size: 24px; text-transform: uppercase; }
@media (max-width: 1024px) {
  .app-promo__row { flex-direction: column; }
  .app-promo__text { padding-block: 10px; }
}
@media (max-width: 767px) {
  .app-promo { padding-block: 50px; }
  .app-promo__title { font-size: 1.9rem; }
  .app-promo__title--big { font-size: 2.8rem; }
}

/* === Component: site-footer (image band, contact columns + map, bottom bar) === */
.site-footer { background: var(--color-navy); color: var(--color-white); }
.footer-band { position: relative; height: 200px; background: var(--color-navy) url("/wp-content/uploads/2024/01/Rectangle-16-1024x1536.png") center center / cover no-repeat; }
.footer-band::before { content: ""; position: absolute; inset: 0; background: var(--color-navy); opacity: 0.4; }
.footer-contact { padding: 50px; }
.footer-contact__inner { display: flex; max-width: 1440px; margin-inline: auto; }
.footer-contact__cols { flex: 0 0 60%; display: grid; grid-template-columns: 37.228fr 39.202fr 39.577fr; gap: 15px; align-self: flex-start; padding: 30px; }
.footer-col { display: flex; flex-direction: column; gap: 20px; padding: 10px; min-width: 0; }
.footer-col__title { font-size: 24px; text-transform: uppercase; color: var(--color-white); }
.footer-col--links .footer-col__title { text-align: center; }
.footer-links ul { list-style: none; margin: 0 0 0 -20px; padding: 0; }
.footer-links a { display: block; padding: 13px 20px; font-size: var(--text-nav); line-height: 20px; text-transform: uppercase; text-align: center; color: var(--color-white); text-decoration: none; }
.footer-col__text { font-size: var(--text-footer); text-transform: uppercase; color: var(--color-white); }
.footer-col__text p { margin: 1em 0; }
.footer-col__text--address { line-height: 1.2rem; text-shadow: 0 0 10px rgb(0 0 0 / 0.3); }
.footer-col__text--hours { width: 102.201%; max-width: 102.201%; line-height: 0.8rem; }
.footer-contact__map { position: relative; flex: 0 0 40%; margin-top: -160px; padding: 30px; }
.map { display: block; width: 100%; height: 680px; border: 0; border-radius: 1rem; }
.site-footer__bar { max-width: var(--container); margin-inline: auto; padding-bottom: 50px; }
.site-footer__bar-inner { display: flex; align-items: flex-start; }
.site-footer__copyright { flex: 0 0 78.86%; margin: 0; padding: 29px 22px; font-size: var(--text-footer); }
.site-footer__credit { color: inherit; text-decoration: none; }
.site-footer__social { flex: 0 0 21.1%; display: flex; justify-content: center; padding: 10px; }
@media (max-width: 1024px) {
  .footer-contact__inner { flex-direction: column; }
  .footer-contact__cols { align-self: stretch; }
  .footer-contact__map { margin-top: 0; }
  .footer-col__text--address { line-height: 1.6rem; }
  .footer-col__text--hours { line-height: 1.1rem; }
}
@media (max-width: 767px) {
  .footer-contact { padding: 20px; }
  .footer-contact__cols { grid-template-columns: 1fr; }
  .footer-col { text-align: center; }
  .footer-col__text--hours { width: 100%; max-width: 100%; }
  .footer-links ul { margin-left: 0; }
  .footer-contact__map { padding: 0 0 0; margin-top: 0; }
  .site-footer__bar { padding-bottom: 25px; }
  .site-footer__bar-inner { flex-direction: column; }
  .site-footer__copyright { padding: 29px 22px; text-align: center; }
  .site-footer__social { align-self: stretch; }
}

/* === Component: page-404 === */
.page-404 { padding: 120px 20px; text-align: center; }
.page-404 .section-title { margin-bottom: 30px; }
.page-404 p { margin: 16px 0; }
.page-404 .button-row { margin-top: 20px; }

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