/*
 * site.css: the only stylesheet for rollosfishandchips.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, sections, columns
 *   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 build; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 * Values below were read from the original's Elementor CSS (post-11.css) and computed styles.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-blue: #004688;          /* buttons, headings, footer band */
  --color-red: #d12f2f;           /* nav hover / active */
  --color-text: #333333;          /* body copy, nav links */
  --color-white: #ffffff;
  --color-black: #000000;         /* mobile toggle and dropdown */
  --color-dropdown-active: #3f444b;
  --color-device: #343639;        /* phone mockup frame */
  --color-overlay: rgb(0 0 0 / 0.5);
  --color-bg: #ffffff;

  /* Typography */
  --font-heading: "Quicksand", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --font-tile: "Sniglet", "Quicksand", sans-serif;

  /* Layout */
  --container: 1140px;
  --col-pad: 10px;               /* Elementor column padding */
  --widget-gap: 20px;            /* Elementor space between widgets */

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

/* ============ 2. Fonts (self-hosted Google Fonts, latin subset) ============ */
@font-face { font-family: "Quicksand"; src: url("/assets/fonts/quicksand-latin-variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Sniglet"; src: url("/assets/fonts/sniglet-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-weight: 300; 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 { font-family: var(--font-heading); line-height: 1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-red); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: min(100%, var(--container)); margin-inline: auto; }
.col { padding: var(--col-pad); }
.page-title { display: none; } /* theme H1 "Home", hidden as on the original */

/* Text blocks (Elementor text editor): paragraphs keep the browser's 1em top/bottom margin */
.text-block { display: flow-root; }
.text-block p { margin: 1em 0; }

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

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

/* === Component: button (blue, inverts on hover) === */
.button { display: inline-block; padding: 15px 10px; border: 2px solid var(--color-blue); border-radius: 3px; background: var(--color-blue); color: var(--color-white); font-family: var(--font-heading); font-weight: 300; font-size: 1rem; line-height: 1; text-align: center; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.button:hover, .button:focus-visible { background: var(--color-white); color: var(--color-blue); }

/* === Component: shape-divider (Elementor "wave-brush", white, 25px) === */
.shape-divider { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; z-index: 1; pointer-events: none; }
.shape-divider--top { top: -1px; }
.shape-divider svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); height: 25px; transform: translateX(-50%); fill: var(--color-white); }
.svg-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Component: site-header === */
.site-header { position: relative; z-index: 50; background: var(--color-bg); }
.site-header__inner { display: flex; align-items: center; padding: 20px; }
.site-header__logo { width: 17.982%; padding: var(--col-pad); }
.site-header__logo img { width: 185px; max-width: 100%; }
.site-header__menu { width: 61.455%; padding: var(--col-pad); display: flex; align-items: center; justify-content: center; }
.site-header__buttons { width: 20.169%; padding: var(--col-pad); display: flex; flex-direction: column; align-items: flex-start; }
.site-header__buttons .button + .button { margin-left: 10px; }

.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list li { margin: 0 20px; }
.site-nav a { display: block; font-family: var(--font-body); font-weight: 300; font-size: 1rem; line-height: 20px; color: var(--color-text); transition: color var(--duration-nav) var(--ease), background-color var(--duration-nav) var(--ease); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--color-red); }

.nav-toggle { display: none; margin-left: auto; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: 3px; background: var(--color-black); color: var(--color-white); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.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: 1024px) {
  .site-header__logo { width: 30%; }
  .site-header__menu { width: 70%; justify-content: flex-end; }
  .site-header__buttons { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown: full-width black panel under the toggle; slides open (grid 0fr → 1fr, 0.3s) */
  .site-nav { position: absolute; left: 0; right: 0; top: 81px; z-index: 60; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-black); transition: grid-template-rows var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration) var(--ease), visibility 0s; }
  .site-nav__clip { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav__list li { margin: 0; }
  .site-nav a { padding: 10px 20px; color: var(--color-white); }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--color-white); background: var(--color-dropdown-active); }
}
@media (max-width: 767px) {
  .site-header__logo, .site-header__menu { width: 50%; }
  .site-nav { top: 100px; }
}

/* === Component: hero (background slideshow, dark overlay, wave divider) === */
.hero { position: relative; display: flex; align-items: center; min-height: 500px; overflow: hidden; background: #333; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slides .swiper-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--color-overlay); }
.hero__content { position: relative; z-index: 2; width: 100%; padding: var(--col-pad); text-align: center; }
.hero__title { margin-bottom: var(--widget-gap); font-family: var(--font-heading); font-weight: 600; font-size: 4rem; line-height: 1; color: var(--color-white); }
/* Tablet/mobile only: two half-width columns (first button right-aligned, second left-aligned); stacked on mobile */
.hero__buttons { display: none; grid-template-columns: 1fr 1fr; gap: 20px; padding-block: 10px; }
.hero__buttons .button:first-child { justify-self: end; }
.hero__buttons .button:last-child { justify-self: start; }
@media (max-width: 1024px) {
  .hero__buttons { display: grid; }
}
@media (max-width: 767px) {
  .hero__title { font-size: 2.4rem; }
  .hero__buttons { grid-template-columns: 1fr; }
  .hero__buttons .button:first-child, .hero__buttons .button:last-child { justify-self: center; }
}

/* === Component: section (boxed Elementor section with big vertical padding) === */
.section { position: relative; padding: 150px 0; }
@media (max-width: 1024px) {
  .section { padding: 50px; }
}

/* === Component: section-heading (blue Quicksand) === */
.section-heading { font-family: var(--font-heading); font-weight: 700; color: var(--color-blue); margin-bottom: var(--widget-gap); }
.section-heading--md { font-size: 2rem; }
.section-heading--lg { font-size: 3rem; }

/* === Component: about (text column + image grid) === */
.about { display: flex; }
.about__text { width: 50%; padding: var(--col-pad); }
.about__text .text-block { margin-right: 40px; font-family: var(--font-body); font-weight: 300; line-height: 1.6em; color: var(--color-text); }
.about__images { width: 50%; padding: var(--col-pad); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.about__images img { width: 100%; height: 240px; object-fit: cover; object-position: center; }
.about__images .about__wide { grid-column: 1 / -1; }
@media (max-width: 1024px) {
  .about { flex-direction: column; }
  .about__text, .about__images { width: 100%; }
}
@media (max-width: 767px) {
  .about__images { grid-template-columns: 1fr; }
}

/* === Component: menu-tiles (three image links with overlay that lightens on hover) === */
.menu-tiles { display: flex; }
/* Elementor columns: first tile has 5px margins all round, the others 5px top/right/bottom (so the first is 5px narrower) */
.menu-tile { position: relative; flex: none; display: flex; align-items: center; justify-content: center; width: calc(33.333% - 5px); min-height: 300px; margin: 5px 5px 5px 0; background-position: center; background-size: cover; background-repeat: no-repeat; }
.menu-tile:first-child { width: calc(33.333% - 10px); margin-left: 5px; }
.menu-tile::before { content: ""; position: absolute; inset: 0; background: #000; opacity: 0.5; transition: background-color var(--duration) var(--ease), opacity var(--duration) var(--ease); }
.menu-tile:hover::before { background: rgb(0 0 0 / 0.57); }
.menu-tile__title { position: relative; padding: var(--col-pad); font-family: var(--font-tile); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--color-white); text-align: center; }
.menu-tile__title a { color: inherit; } /* only the label is a link, as on the original */
@media (max-width: 767px) {
  .menu-tiles { flex-direction: column; }
  .menu-tile { width: calc(100% - 5px); }
  .menu-tile:first-child { width: calc(100% - 10px); }
}


/* === Component: app-promo (phone mockup + download text and badges) === */
.app-promo { display: flex; }
.app-promo__device { width: 42.456%; padding: var(--col-pad); display: flex; justify-content: center; align-items: flex-start; }
.app-promo__text { width: 57.5%; padding: var(--col-pad); margin-top: 50px; }
.app-promo__text .text-block { margin-bottom: var(--widget-gap); font-family: var(--font-body); font-weight: 300; line-height: 1.5em; color: var(--color-text); }
.app-promo__badges img { width: 320px; max-width: 100%; }
@media (max-width: 767px) {
  .app-promo { flex-direction: column; }
  .app-promo__device, .app-promo__text { width: 100%; }
}

/* === Component: device (phone frame drawn in SVG, app screenshot inside) === */
.device { position: relative; width: 240px; max-width: 100%; aspect-ratio: 277 / 574; }
.device__frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.device__frame .frame, .device__frame .side { fill: var(--color-device); }
.device__frame .overlay { fill: #ffffff; fill-opacity: 0.2; }
.device__screen { position: absolute; left: 5.5%; top: 11.67%; width: 88.9%; height: 76.26%; overflow: hidden; border-radius: 3px; }
.device__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* === Component: site-footer === */
.site-footer__contact { position: relative; padding: 125px 0 100px; background: var(--color-blue); color: var(--color-white); }
.site-footer__cols { display: flex; flex-wrap: wrap; }
.site-footer__col { width: 50%; padding: var(--col-pad); }
.site-footer__title { margin-bottom: var(--widget-gap); font-family: var(--font-heading); font-weight: 600; font-size: 1.8rem; line-height: 1; color: var(--color-white); }
.site-footer__col .text-block { font-family: var(--font-body); font-weight: 300; font-size: 1rem; line-height: 1.7em; }
.site-footer__bar { background: var(--color-blue); color: var(--color-white); font-family: var(--font-heading); }
.site-footer__bar-inner { display: flex; align-items: center; }
.site-footer__copyright { width: 50%; padding: var(--col-pad); font-weight: 300; }
.site-footer__credit { width: 50%; padding: var(--col-pad); text-align: right; font-weight: 400; }
.site-footer__credit a { color: var(--color-white); }
@media (max-width: 1024px) {
  .site-footer__contact { padding: 100px 50px; }
  .site-footer__col--contact { width: 100%; }
}
@media (max-width: 767px) {
  .site-footer__col { width: 100%; }
  .site-footer__copyright { width: 55%; font-size: 14px; }
  .site-footer__credit { width: 45%; font-size: 14px; }
}

/* === Component: not-found (404 page body) === */
.not-found { text-align: center; }
.not-found .text-block { font-family: var(--font-body); line-height: 1.6em; color: var(--color-text); }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }

/* === Component: slider (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.swiper-slide img { width: 100%; height: 100%; object-fit: cover; }

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