/*
 * site.css: the only stylesheet for garthowenfishbar.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
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (from the original Elementor CSS; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The mobile menu (burger) shows at <= 1024px. The header is sticky at >= 768px only.
 *
 * Values come from the original's Elementor CSS (post-13.css) and computed styles
 * (design-system/probe-original.json).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-dark: #3a3a3a;        /* header, app, contact backgrounds */
  --color-darker: #2a2a2a;      /* bottom bar */
  --color-orange: #e0621a;      /* buttons, social icons, burger */
  --color-orange-light: #ffa673;/* nav hover / active */
  --color-navy: #323568;        /* mobile dropdown, burger lines */
  --color-ghost: #f8f8ff;       /* dropdown hover text, burger when open */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg: #ffffff;

  /* Typography */
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Poppins", Arial, sans-serif;
  --text-base: 20px;
  --text-heading: 40px;

  /* Layout */
  --container: 1280px;
  --gutter: 30px;          /* section side padding */
  --col-pad: 10px;         /* Elementor column padding */
  --radius-button: 22px;
  --radius-image: 10px;

  /* Height of the sticky header (anchor jumps land below it); 0 on mobile where it isn't sticky */
  --header-h: 0px;

  /* Motion */
  --duration: 300ms;
  --duration-nav: 400ms;
  --ease: ease;
}
@media (min-width: 768px) and (max-width: 1024px) {
  /* 40 + 25 padding + 20 column padding + logo height (logo column 35% of the row, 282x164 max) */
  :root { --header-h: calc(85px + min(164px, ((100vw - 60px) * 0.35 - 20px) * 0.5816)); }
}
@media (min-width: 1025px) {
  :root { --header-h: 135px; }
}

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset). Playfair Display is the variable file (600 and 700 used). */
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ============ 3. Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: normal; color: var(--color-black); background: var(--color-bg); overflow-x: clip; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 600; line-height: 1; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-orange-light); outline-offset: 2px; }
[id] { scroll-margin-top: var(--header-h); }

/* ============ 4. Layout ============ */
/* .container: Elementor boxed section content (max 1280px). Columns carry their own 10px padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.cols { display: flex; }
.cols > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 767px) {
  .cols { flex-direction: column; }
}

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

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

/* === Component: icon (inline SVG; size follows font-size; symbols live in the header sprite) === */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: block; width: 1em; height: 1em; fill: currentColor; }

/* === Component: button ===
 * Orange pill, Poppins 700 20px (hero: 32px / 28px mobile). No hover change on the original.
 */
.button { display: inline-block; padding: 12px 24px; border-radius: var(--radius-button); background: var(--color-orange); color: var(--color-white); font-family: var(--font-body); font-size: 20px; font-weight: 700; line-height: 1; text-decoration: none; transition: all var(--duration); }
.button--large { font-size: 32px; }
@media (max-width: 767px) { .button--large { font-size: 28px; } }

/* === Component: social-icon (orange circle, white Facebook mark; size = 2 x --icon-size) === */
.social-icon { --icon-size: 25px; display: inline-flex; align-items: center; justify-content: center; width: calc(var(--icon-size) * 2); height: calc(var(--icon-size) * 2); border-radius: 50%; background: var(--color-orange); color: var(--color-white); font-size: var(--icon-size); text-decoration: none; transition: opacity var(--duration); }
.social-icon:hover { opacity: 0.9; }

/* === Component: site-header ===
 * Dark bar: nav (left) | logo hanging 93px below the bar | Facebook | Order Now.
 * >= 1025px: inline nav. <= 1024px: orange burger; navy dropdown full width under it.
 * <= 767px: columns stacked and centred; header scrolls away (not sticky).
 */
.site-header { position: relative; z-index: 50; background: var(--color-dark); padding: 40px var(--gutter) 25px; }
@media (min-width: 768px) { .site-header { position: sticky; top: 0; } }
.site-header__inner { position: relative; display: flex; align-items: center; max-width: var(--container); margin-inline: auto; min-height: 70px; }
.site-header__col { padding: var(--col-pad); min-width: 0; }
.site-header__col--nav { flex: 0 0 39.921%; }
.site-header__col--logo { flex: 0 0 20.313%; }
.site-header__col--social { flex: 0 0 24.12%; text-align: right; }
.site-header__col--order { flex: 0 0 15.611%; text-align: right; }
.site-header__col--social .social-icon { vertical-align: middle; }
.site-header__logo { margin: 0 auto -93px; width: 282px; max-width: 100%; position: relative; z-index: 1; }
@media (max-width: 1024px) {
  .site-header__col--nav { flex-basis: 25%; display: flex; justify-content: center; }
  .site-header__col--logo { flex-basis: 35%; }
  .site-header__col--social { flex-basis: 12%; }
  .site-header__col--order { flex-basis: 25%; }
  .site-header__col--social .social-icon { --icon-size: 34px; }
  .site-header__logo { margin-bottom: 0; }
}
@media (max-width: 767px) {
  .site-header__inner { flex-direction: column; align-items: stretch; }
  .site-header__col { flex-basis: auto; text-align: center; }
  .site-header__col--social .social-icon { --icon-size: 32px; }
}

/* === Component: site-nav (anchor menu with scroll-spy: a.is-active) === */
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 13px 20px; font-family: var(--font-heading); font-size: 20px; font-weight: 600; line-height: 20px; color: var(--color-white); text-decoration: none; transition: color var(--duration-nav), background-color var(--duration-nav); }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-orange-light); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 45px; height: 45px; padding: 7.5px; border: 0; border-radius: 3px; background: var(--color-orange); color: var(--color-navy); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] { color: var(--color-ghost); }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* Dropdown: full viewport width (the header's 30px gutter is pulled back), 10px under the toggle.
   * Toggle is vertically centred in the row at tablet; at the top of the stack on mobile. */
  .site-header__col--nav { position: static; }
  .site-nav { text-align: left; position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: calc(50% + 32.5px); z-index: 60;
    display: grid; grid-template-rows: 0fr; visibility: hidden; 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; background: var(--color-navy); }
  .site-nav__list a { padding: 10px 20px; color: var(--color-orange); }
  .site-nav__list a.is-active { color: var(--color-orange); }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-ghost); background: var(--color-orange); }
}
@media (max-width: 767px) {
  .site-header__col--nav { display: block; }
  .site-nav { top: calc(var(--col-pad) + 45px + 10px); }
}
@media (min-width: 1025px) {
  /* the nav is in flow on desktop */
  .site-nav { position: static; }
}

/* === Component: section-heading (Playfair 600 40px, line-height 1) === */
.section-heading { font-size: var(--text-heading); font-weight: 600; }
.section-heading--light { color: var(--color-white); }

/* === Component: rich-text (Poppins 20px; paragraphs 20px apart) === */
.rich-text { display: flow-root; font-size: var(--text-base); }
.rich-text p { margin: 20px 0; }

/* === Component: hero (full-viewport photo, centred titles + button) === */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; background: center / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-black); opacity: 0.15; }
.hero__inner { position: relative; width: 100%; max-width: var(--container); margin-inline: auto; padding: var(--col-pad); text-align: center; }
.hero__title, .hero__subtitle { font-weight: 700; color: var(--color-white); -webkit-text-stroke-color: rgb(0 0 0 / 0.79); }
.hero__title { font-size: 78px; }
.hero__subtitle { font-size: 56px; margin-top: 20px; }
.hero__inner .button { margin-top: 90px; } /* 20px gap + 50px spacer + 20px gap */
@media (max-width: 1024px) { .hero::before { opacity: 0; } }
@media (max-width: 767px) {
  .hero::before { opacity: 0.36; }
  .hero__title, .hero__subtitle { font-size: 41px; -webkit-text-stroke-width: 0.3px; }
}

/* === Component: about (text column | divider | menu teaser) === */
.about { margin-block: 120px; padding-inline: var(--gutter); }
.about__text { border-right: 1px solid var(--color-black); padding-bottom: 0; }
.about__text .section-heading { margin-bottom: 20px; }
.about__text .rich-text { padding-right: 60px; }
.about__menu { border-left: 1px solid var(--color-black); display: flex; flex-direction: column; justify-content: center; }
.about__menu .section-heading { text-align: center; margin-bottom: 20px; }
@media (max-width: 1024px) { .about__text .rich-text { padding-right: 15px; } }
@media (max-width: 767px) {
  .about__text, .about__menu { border: 0; }
  .about__text .section-heading { margin-bottom: 0; }
}

/* === Component: menu-card (square photo 76% wide, radius 10px, button under it) === */
.menu-cards > * { padding: var(--col-pad); text-align: center; }
.menu-card__image { width: 76%; margin: 0 auto 20px; border-radius: var(--radius-image); }
@media (max-width: 1024px) { .menu-card__image { width: 100%; } }

/* === Component: app-promo (dark text half | photo half with phone mockup) === */
.app-promo { background: var(--color-dark); }
.app-promo > * { flex: 0 0 50%; }
.app-promo__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; padding: 120px 0 120px var(--gutter); color: var(--color-white); }
.app-promo__text > * { width: 640px; max-width: 100%; }
.app-promo__text .rich-text { padding-right: 60px; }
.app-promo__badges { display: block; }
.app-promo__badges img { width: 369px; max-width: 100%; }
.app-promo__photo { display: flex; align-items: center; justify-content: center; padding: 120px 0; background: center / cover no-repeat; }
.app-promo__mockup { width: 199px; }
@media (max-width: 1024px) {
  .app-promo__text .rich-text { padding-right: 30px; }
  .app-promo__badges { padding-right: 30px; }
}
@media (max-width: 767px) {
  .app-promo__text { padding: 120px var(--gutter); align-items: stretch; }
}

/* === Component: map (keyless Google Maps iframe, full width, 510px) === */
.map { display: block; width: 100%; height: 510px; border: 0; }

/* === Component: info-columns (Find Us / Contact Us / Opening Hours on dark) === */
.info { background: var(--color-dark); padding: 120px var(--gutter); color: var(--color-white); text-align: center; }
.info__col { padding: var(--col-pad); }
.info__col > * { max-width: 640px; margin-inline: auto; }
.info__address { margin-top: 20px; line-height: 32px; }
.info__address p { margin: 0 0 20px; }
.info__list { list-style: none; margin: 30px auto 0; padding: 0; }
.info__list li + li { margin-top: 17px; }
.info__list a { color: var(--color-white); text-decoration: none; transition: color var(--duration); }
.info__hours { margin-top: 20px; line-height: 15px; }
.info__hours p { margin: 0 0 20px; }
@media (max-width: 1024px) {
  .info__address, .info__list, .info__hours { padding-right: 30px; }
  .info__hours { line-height: 1.4em; }
}
@media (max-width: 767px) {
  .info__address, .info__list, .info__hours { padding-right: 0; }
}

/* === Component: site-footer (bottom bar: copyright + credit | Facebook) === */
.site-footer { background: var(--color-darker); padding: 25px var(--gutter); color: var(--color-white); }
.site-footer__inner { display: flex; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-footer__col { flex: 1 1 auto; padding: var(--col-pad); min-width: 0; }
.site-footer__col--social { flex: 0 0 auto; text-align: right; } /* original 50/50 columns; the credit gets the spare room so "OrderYOYO" doesn't wrap */
.site-footer__copyright { font-family: var(--font-body); font-size: 20px; font-weight: 300; line-height: 1; }
.site-footer__copyright a { color: inherit; text-decoration: none; }
.site-footer__copyright a:hover { text-decoration: underline; }
.social-icon--footer { --icon-size: 33px; vertical-align: middle; }
@media (max-width: 1024px) { .social-icon--footer { --icon-size: 19px; } }
@media (max-width: 767px) {
  .site-footer__inner { flex-direction: column; align-items: stretch; }
  .site-footer__col, .site-footer__col--social { flex: 0 0 auto; }
  .site-footer__col, .site-footer__col--social { text-align: center; }
  .site-footer__copyright { line-height: 1.4em; }
  .social-icon--footer { --icon-size: 32px; }
}

/* === Component: error-404 (not-found page) === */
.error-404 { padding: 120px var(--gutter); text-align: center; }
.error-404 .rich-text { max-width: 640px; margin-inline: auto; }
.error-404__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 20px; }

/* === Component: reveal (kept from the starter; unused on this site) === */
.reveal-ready [data-reveal] { visibility: hidden; }

/* ============ 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) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
