/*
 * site.css: the only stylesheet for this site (Adriano's, Dunbar).
 *
 * 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        containers, 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
 *   Desktop: split nav either side of the logo. Tablet: logo + inline nav below it.
 *   Mobile: logo + burger with a white drop-down list.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--left) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-primary: #1f519d;            /* brand blue: headings, buttons, footer */
  --color-primary-contrast: #ffffff;
  --color-header-bg: rgb(31 81 157 / 0.66); /* translucent blue header over the hero */
  --color-text: #333333;               /* menu items, contact text */
  --color-text-strong: #232323;        /* "To see a list of our prices" line */
  --color-text-muted: #666666;         /* About / Order copy (Roboto Mono) */
  --color-text-soft: #7a7a7a;          /* menu item descriptions */
  --color-bg: #ffffff;
  --color-bg-alt: #f8f8f8;             /* Get in Touch section */
  --color-nav-hover: rgb(255 255 255 / 0.48);
  --color-dropdown-text: #33373d;
  --color-dropdown-hover-bg: #3f444b;

  /* Typography */
  --font-display: "Special Elite", sans-serif;   /* headings, nav, buttons, footer */
  --font-mono: "Roboto Mono", sans-serif;        /* About / Order copy */
  --font-slab: "Roboto Slab", sans-serif;        /* contact + app copy, menu descriptions */
  --font-body: "Roboto", sans-serif;             /* body default */
  --text-base: 1rem;
  --text-h-section: 3rem;     /* 48px section titles */
  --text-h-category: 2rem;    /* 32px menu category titles */
  --text-item: 1.2rem;        /* 19.2px menu items, desktop nav */
  --text-button: 1.1rem;      /* 17.6px buttons */
  --leading-mono: 1.7;

  /* Spacing and shape */
  --space-widget: 20px;       /* Elementor default gap between stacked blocks */
  --section-pad: 150px;       /* desktop vertical section padding */
  --container: 1140px;
  --container-narrow: 960px;
  --container-tight: 700px;
  --gutter: 10px;             /* Elementor column padding */

  /* Motion (Elementor defaults) */
  --duration: 300ms;
  --duration-reveal: 1250ms;
  --ease: ease;
}
@media (max-width: 1024px) { :root { --section-pad: 50px; } }
@media (max-width: 767px)  { :root { --section-pad: 30px; } }

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset). Roboto Mono / Roboto Slab are variable files. */
@font-face { font-family: "Special Elite"; src: url("/assets/fonts/specialelite-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Mono"; src: url("/assets/fonts/robotomono-var-latin.woff2") format("woff2"); font-weight: 100 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Slab"; src: url("/assets/fonts/robotoslab-var-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-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: var(--text-base); line-height: 1.5; color: var(--color-text); background: var(--color-bg); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1; font-weight: 500; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--color-primary); transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container--narrow { max-width: var(--container-narrow); }
.container--tight { max-width: var(--container-tight); }
.section { padding-block: var(--section-pad); }
.section > .container { padding: var(--gutter); }
.section > .container.split { padding-inline: 0; } /* split columns carry their own padding */
@media (max-width: 1024px) { .section { padding-inline: 50px; } }
@media (max-width: 767px)  { .section { padding-inline: 30px; } }
.section--alt { background: var(--color-bg-alt); }
.stack > * + * { margin-top: var(--space-widget); }

/* Two-column split used by Download and Contact (vertically centred) */
.split { display: flex; align-items: center; }
.split > * { min-width: 0; }
@media (max-width: 767px) { .split { flex-direction: column; align-items: stretch; } }

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; padding: 0.5rem 1rem; background: var(--color-bg); }
.skip-link:focus { left: 1rem; }

/* === Component: site-header ===
 * Absolute over the hero (not sticky). Desktop: nav | logo | nav.
 * Tablet: logo then inline nav. Mobile: logo then burger + white drop-down. */
.site-header { position: absolute; top: 0; left: 0; z-index: 100; width: 100%; padding: 25px; background: var(--color-header-bg); }
.site-header__inner { display: flex; align-items: center; max-width: 1200px; margin-inline: auto; }
.site-header__side { flex: 0 0 40%; padding: var(--gutter); }
.site-header__centre { flex: 0 0 19.664%; padding: var(--gutter); min-width: 0; }
.site-header__logo { display: block; }
.site-header__logo img { width: 100%; height: 80px; object-fit: contain; }
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav--left .site-nav__list { justify-content: flex-end; }
.site-nav--right .site-nav__list { justify-content: flex-start; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-display); font-size: var(--text-item); font-weight: 500; line-height: 20px; color: #fff; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--color-nav-hover); }
.mobile-nav { display: none; }
.nav-toggle { display: none; }

/* Logo block has Elementor's 20px widget gap below it at every width */
.site-header__logo { margin-bottom: var(--space-widget); }

@media (max-width: 1024px) {
  .site-header__side { display: none; }
  .site-header__centre { flex: 1 1 100%; }
  .mobile-nav { display: block; }
  .mobile-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
  .mobile-nav__list a { display: block; margin-inline: 20px; font-family: var(--font-display); font-size: 1rem; font-weight: 500; line-height: 20px; color: #fff; text-decoration: none; }
  .mobile-nav__list a:hover, .mobile-nav__list a:focus-visible { color: rgb(255 255 255 / 0.6); }
}
@media (max-width: 767px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; margin: 0 auto; width: 33px; height: 33px; padding: 5.5px; border: 0; border-radius: 3px; background: rgb(0 0 0 / 0.05); color: #fff; cursor: pointer; position: relative; }
  /* enlarge the tap target to 44px without changing the look */
  .nav-toggle::after { content: ""; position: absolute; inset: -6px; }
  .nav-toggle svg { width: 22px; height: 22px; }
  .nav-toggle .icon-close { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
  .nav-toggle[aria-expanded="true"] .icon-close { display: block; }
  /* slide-down: grid rows 0fr -> 1fr; align-items stretch keeps the list clipped while animating */
  .mobile-nav { display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 12px; background: #fff; transition: grid-template-rows 0.3s ease; }
  .mobile-nav > .mobile-nav__list { overflow: hidden; min-height: 0; }
  .mobile-nav.is-open { grid-template-rows: 1fr; }
  .mobile-nav:not(.is-open) .mobile-nav__list { visibility: hidden; transition: visibility 0s 0.3s; }
  .mobile-nav__list { display: block; }
  .mobile-nav__list a { margin: 0; padding: 12px 20px; font-size: 13px; color: var(--color-dropdown-text); }
  .mobile-nav__list a:hover, .mobile-nav__list a:focus-visible { color: #fff; background: var(--color-dropdown-hover-bg); }
}

/* === Component: site-footer === */
.site-footer { background: var(--color-primary); color: #fff; padding: 20px 0; font-family: var(--font-display); font-size: 1rem; line-height: 1; }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--container); margin-inline: auto; }
.site-footer__inner > p { flex: 1 1 50%; margin: 0; }
.site-footer__credit { text-align: right; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 1024px) { .site-footer { padding: 15px 20px; } }
@media (max-width: 767px) {
  .site-footer { font-size: 14px; }
  .site-footer__inner { flex-direction: column; gap: 28px; padding-block: 0; text-align: center; }
  .site-footer__inner > p { flex: none; width: 100%; }
  .site-footer__credit { text-align: center; }
}

/* === Component: section-title === */
.section-title { font-family: var(--font-display); font-size: var(--text-h-section); font-weight: 500; line-height: 1; color: var(--color-primary); }
.section-title--bold { font-weight: 600; } /* original asked for 600; Special Elite has one weight, so the browser emboldens it */
.section-title--center { text-align: center; }

/* === Component: copy (Roboto Mono body text, About / Order) === */
.copy { font-family: var(--font-mono); font-weight: 300; line-height: var(--leading-mono); color: var(--color-text-muted); text-align: center; }
.copy strong { font-weight: 400; }
.copy__brand { color: var(--color-primary); font-weight: 700; }
/* Slab variant (Download Our App) */
.copy--slab { font-family: var(--font-slab); line-height: 1.5; color: var(--color-text); text-align: left; }

/* === Component: button (outline, blue) === */
.button { display: inline-block; padding: 18px 30px 15px; border: 3px solid var(--color-primary); border-radius: 0; background: #fff; color: var(--color-primary); font-family: var(--font-display); font-size: var(--text-button); font-weight: 500; line-height: 1; text-transform: capitalize; text-decoration: none; transition: all var(--duration) var(--ease); }
.button:hover, .button:focus-visible { background: var(--color-primary); color: #fff; }
.button-row { text-align: center; }
.button-row--left { text-align: left; }

/* === Component: hero (full-width image with arrow divider) === */
.hero { position: relative; min-height: 700px; background: #1a10c8 url("/wp-content/uploads/2021/01/splash-scaled.jpg") center / cover no-repeat; }
.hero__divider { position: absolute; left: 0; bottom: -1px; width: 100%; height: 20px; display: block; line-height: 0; }
.hero__divider svg { width: 100%; height: 20px; display: block; }
.hero__divider path { fill: #fff; }

/* === Component: photo-pair (two photos side by side, stacked on mobile) === */
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; }
.photo-pair > * { padding: var(--gutter); }
.photo-pair img { width: 100%; }
@media (max-width: 767px) { .photo-pair { grid-template-columns: 1fr; } }

/* === Component: image-band (full-width single image or pair of cover images) === */
.image-band { min-height: 460px; display: flex; justify-content: center; }
.image-band__img { width: 600px; max-width: 100%; align-self: flex-start; }
.image-band--pair { display: grid; grid-template-columns: 1fr 1fr; }
.image-band__cover { min-height: 460px; background-position: center; background-repeat: no-repeat; background-size: cover; }
@media (min-width: 1025px) { .image-band__cover--fixed { background-attachment: fixed; } }
/* Band images (home page) */
.image-band__cover--chips { background-image: url("/wp-content/uploads/2021/01/kingfishbar-hero.jpg"); }
.image-band__cover--fish { background-image: url("/wp-content/uploads/2021/01/kingfishbar-fishandchips-1-scaled-1.jpg"); }
.image-band__cover--box { background-image: url("/wp-content/uploads/2021/02/splash.jpg"); }
.image-band__cover--cone { background-image: url("/wp-content/uploads/2021/02/christoffer-engstrom-I80zPiKGnp0-unsplash-1-scaled.jpg"); }
@media (max-width: 767px) {
  .image-band--pair { grid-template-columns: 1fr; }
  .image-band__cover { min-height: 230px; }
}

/* === Component: menu-list (category heading with icon, two columns of items) === */
.menu-category { margin-top: 30px; }
.menu-category__head { display: flex; align-items: center; }
.menu-category__icon { flex: none; }
.menu-category__title { margin: 10px 0 0 20px; font-family: var(--font-display); font-size: var(--text-h-category); font-weight: 500; line-height: 1; color: var(--color-primary); }
.menu-category__cols { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding-left: 56px; }
.menu-category__cols > ul { list-style: none; margin: 0 60px 0 0; padding: 0; }
.menu-item + .menu-item { margin-top: 40px; }
.menu-item__name { font-family: var(--font-display); font-size: var(--text-item); font-weight: 400; line-height: 1; color: var(--color-text); }
.menu-item__desc { margin: 16px 0 0; font-family: var(--font-slab); font-size: 0.8rem; font-weight: 300; line-height: 1.5; color: var(--color-text-soft); }
.menu-item__desc--plain { font-family: var(--font-body); font-size: 1rem; font-weight: 400; line-height: normal; } /* "served with tartare sauce" used the default font on the original */
.menu-note { margin-top: 24px; font-family: var(--font-mono); font-size: 1rem; font-weight: 300; line-height: var(--leading-mono); color: var(--color-text-strong); text-align: center; }
@media (max-width: 767px) {
  .menu-category__cols { grid-template-columns: 1fr; padding-left: 0; }
  .menu-category__cols > ul { margin: 0; }
  .menu-category__cols > ul + ul { margin-top: 40px; }
}

/* === Component: device-phone (CSS/SVG phone frame around a screenshot) === */
.device-phone { position: relative; width: 100%; max-width: 190px; margin-left: auto; }
.device-phone__frame { display: block; width: 100%; height: auto; }
.device-phone__screen { position: absolute; left: 5.8%; top: 11.7%; width: 89%; }
.device-phone__screen img { width: 100%; }

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

/* === Component: contact-details === */
.contact-details { font-family: var(--font-slab); font-size: 1.3rem; font-weight: 300; line-height: 1.8; color: var(--color-text); }
.contact-details a { color: inherit; text-decoration: none; }

/* === Component: reveal (GSAP animates these; hidden only once GSAP has loaded) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: / (About) === */
.about__title { margin-bottom: 36px; }
.about__photo { width: 400px; max-width: 100%; margin-inline: auto; margin-bottom: 32px; }
.about .photo-pair { margin-bottom: 12px; }
.about__signature { margin-inline: auto; }

/* === Page: / (Download Our App) === */
.download__device { flex: 0 0 45%; margin-right: 70px; padding: var(--gutter); }
.download__text { flex: 0 0 55%; padding: 0 140px 0 0; }
@media (min-width: 768px) { .download__device { flex-basis: calc(45% - 70px); } }
@media (max-width: 1024px) { .download__text { padding: 0; } }
@media (max-width: 767px) { .download__device { display: none; } .download__text { padding: 0; } }

/* === Page: / (Get in Touch) === */
.contact__text { flex: 0 0 calc(42.018% - 50px); margin-right: 50px; padding: var(--gutter); }
.contact__map { flex: 0 0 57.982%; padding: var(--gutter); }
@media (max-width: 767px) {
  .contact__text, .contact__map { flex: none; margin: 0; }
}

/* === Page: /404.html === */
.hero--short { min-height: 300px; }
@media (max-width: 767px) { .hero--short { min-height: 320px; } }

/* ============ 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; }
  [data-reveal] { visibility: visible !important; }
}
