/*
 * site.css: the only stylesheet for baltivillageltd.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for the self-hosted Inter and Playfair Display files
 *   3. Base          reset and element defaults
 *   4. Layout        container
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original Elementor kit; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    laptop 1025px-1366px    desktop >= 1367px
 *   The header switches to the burger menu at <= 1024px.
 *
 * Same App4 template family as spicelounge-friargate.co.uk (header pill, off-canvas menu,
 * scroll-scale image); colours and type here are this site's own Elementor kit (post 101).
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--navy) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit "post-101" global colours) */
  --color-primary: #b30006;      /* red: buttons, highlights, mobile menu, circle */
  --color-secondary: #002b56;    /* navy: View Menu / app Order Now buttons */
  --color-text: #141414;         /* headings, dark footer background */
  --color-accent: #454545;       /* body copy, nav links */
  --color-white: #ffffff;
  --color-cream: #fff9f3;        /* Our Menu section background */
  --color-border: #dddddd;
  --color-glass: rgb(255 255 255 / 0.85);  /* app card */
  --color-highlight-bg: rgb(0 0 0 / 0.05);

  /* Typography */
  --font-body: "Inter", Arial, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;
  --tracking: -0.01em;
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 1rem;        /* 16px */
  --text-nav: 1.15rem;    /* 18.4px: nav, buttons */
  --text-md: 1.25rem;     /* 20px: body copy */
  --text-lg: 1.5rem;      /* 24px: lead copy, footer */
  --text-circle: 2rem;    /* 32px: red circle heading */
  --h-accent: 2rem;       /* 32px */
  --h-text: 3rem;         /* 48px */
  --h-section: 4.5rem;    /* 72px */
  --leading-body: 1.7;
  --leading-heading: 1.4;

  /* Spacing and shape */
  --gutter: 32px;
  --container: 1080px;
  --radius: 24px;
  --radius-pill: 50px;
  --shadow-card: 0 0 8px 0 rgb(0 0 0 / 0.1);

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 1024px) {
  :root { --h-section: 3.5rem; --h-accent: 1.5rem; --text-lg: 20px; }
}
@media (max-width: 767px) {
  :root { --h-section: 2.75rem; --h-text: 2.25rem; --h-accent: 2rem; --text-circle: 1.3rem; }
}

/* ============ 2. Fonts ============ */
/* Google Fonts (SIL Open Font Licence), latin subset, the same static files the original loaded, self-hosted. */
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-500-latin.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-600-latin.woff2") format("woff2"); font-weight: 600; 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: 1rem; line-height: 1.5; letter-spacing: var(--tracking); color: var(--color-text); background: var(--color-white); overflow-x: hidden; }
html.offcanvas-open, html.offcanvas-open body { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
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 { outline: 2px solid var(--color-primary); outline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

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

/* ============ 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-text); }
.skip-link:focus { left: 16px; }

/* === Component: icon-sprite (inline SVG symbols in the header partial) === */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Component: headings (the original kit's global typography) === */
.h-section, .h-text, .h-accent { font-family: var(--font-heading); line-height: var(--leading-heading); letter-spacing: var(--tracking); color: var(--color-text); }
.h-section { font-size: var(--h-section); font-weight: 600; }
.h-text { font-size: var(--h-text); font-weight: 500; }
.h-accent { font-size: var(--h-accent); font-weight: 400; }
.text-body { font-size: var(--text-md); line-height: var(--leading-body); color: var(--color-accent); }

/* === Component: highlight (words in red on a soft rounded background; original "Highlighting" snippet) === */
.highlight { color: var(--color-primary); position: relative; display: inline-block; }
.highlight::before { content: ""; display: block; position: absolute; top: 4px; left: -12px; right: -12px; bottom: 4px; background: var(--color-highlight-bg); border-radius: 16px; }
@media (max-width: 767px) {
  .highlight { display: inline; }
  .highlight::before { content: none; }
}

/* === Component: button (pill; Playfair 500; red by default) === */
.button { display: inline-flex; align-items: center; justify-content: center; text-align: center; padding: 12px 32px; border: 0; border-radius: var(--radius-pill); background: var(--color-primary); color: var(--color-white); font-family: var(--font-heading); font-size: var(--text-nav); font-weight: 500; line-height: 1.4; cursor: pointer; transition: background-color var(--duration) var(--ease), color var(--duration) var(--ease); }
.button:hover, .button:focus-visible { background: var(--color-primary); color: var(--color-white); }
.button--navy { background: var(--color-secondary); }
.button--navy:hover, .button--navy:focus-visible { background: var(--color-primary); }
.button--wide { padding-inline: 40px; }
.button-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* === Component: site-header (sticky white pill floating over the page; original header template 113) === */
.site-header { position: sticky; top: 0; z-index: 99; padding: 48px var(--gutter) 0; pointer-events: none; }
.site-header__bar { pointer-events: auto; display: flex; align-items: center; gap: 32px; max-width: var(--container); margin-inline: auto; padding: 16px 24px 16px 40px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 100px; }
.site-header__brand { flex: 0 1 19%; min-width: 0; display: flex; justify-content: center; }
.site-header__logo { display: block; width: 100%; }
.site-header__logo img { width: 100%; max-width: 300px; height: 70px; object-fit: contain; margin-inline: auto; }
.site-nav { flex: 0 1 62%; min-width: 0; }
.site-header__actions { flex: 0 1 19%; display: flex; align-items: center; justify-content: flex-end; gap: 24px; }
.site-header__order { white-space: nowrap; }
.nav-toggle { display: none; align-items: center; justify-content: flex-end; min-width: 44px; min-height: 44px; margin-top: 2px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 18px; }
@media (max-width: 1024px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header__brand { flex-basis: 40%; }
  .site-header__actions { flex-basis: 60%; }
}
@media (max-width: 767px) {
  .site-header__bar { padding: 16px 24px 12px; }
  .site-header__brand { flex-basis: 75%; }
  .site-header__actions { flex-basis: 25%; }
  .site-header__order { display: none; }
}

/* === Component: site-nav (desktop menu) === */
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 28px; }
.site-nav__list a { display: inline-block; color: var(--color-accent); font-size: var(--text-nav); line-height: 1.4; }

/* === Component: offcanvas (mobile menu: red panel from the right, original popup 110) === */
.offcanvas { position: fixed; inset: 0; z-index: 150; }
.offcanvas[hidden] { display: none; }
.offcanvas__backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / 0.25); }
.offcanvas__panel { position: absolute; top: 0; right: 0; width: 340px; max-width: 100%; height: 100vh; height: 100dvh; overflow-x: hidden; overflow-y: auto; background: var(--color-primary); box-shadow: 2px 8px 23px 3px rgb(0 0 0 / 0.2); transform: translateX(100%); transition: transform 0.5s ease; }
.offcanvas.is-open .offcanvas__panel { transform: none; }
.offcanvas__top { display: flex; justify-content: flex-end; }
.offcanvas__close { margin: 16px 16px 12px; padding: 8px; min-width: 48px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--color-white); cursor: pointer; }
.offcanvas__close svg { width: 22px; height: 32px; fill: currentColor; }
.offcanvas-nav { margin-left: -13px; }
.offcanvas-nav__list a { position: relative; display: block; padding: 25px 20px; color: var(--color-white); font-size: var(--text-nav); line-height: 1.4; }
.offcanvas-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-white); opacity: 0; transition: opacity 0.3s; }
.offcanvas-nav__list a:hover::after, .offcanvas-nav__list a:focus-visible::after, .offcanvas-nav__list a[aria-current="page"]::after { opacity: 1; }
.offcanvas-nav__list a:focus-visible { outline-color: var(--color-white); outline-offset: -4px; }

/* === Component: hero-logo (big logo over the Hero.jpg background; slides up under the header) === */
.hero-logo { display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 710px; margin-top: -150px; background: url("/wp-content/uploads/2024/05/Hero.jpg") 0 0 / cover; }
.hero-logo img { margin-top: 80px; width: 251px; }
@media (max-width: 767px) {
  .hero-logo { min-height: 700px; }
}

/* === Component: intro (headline, scroll-scaled image, "Learn More" two columns) === */
.intro { display: flex; flex-direction: column; align-items: center; gap: 128px; padding: 112px 0; }
.intro__heading { width: min(100% - 2 * var(--gutter), 800px); text-align: center; }
.intro__image { width: 100%; display: flex; justify-content: center; overflow-x: hidden; overflow-x: clip; }   /* the scroll-scaled image (1.1x) is cut at the viewport edges instead of making the page scroll sideways (original overflowed ~50px mid-scroll at 768-1024) */
.intro__image img { width: 100vw; max-width: 1080px; border-radius: var(--radius); }
.intro__about { display: flex; justify-content: space-between; gap: 128px; }
.intro__about-title { flex: 0 1 41%; }
.intro__about-text { flex: 0 1 44%; margin-top: 12px; }
@media (max-width: 1024px) {
  .intro__heading { width: min(100% - 2 * var(--gutter), 640px); }
  .intro__about { gap: 64px; }
  .intro__about-title, .intro__about-text { flex-basis: 50%; }
}
@media (max-width: 767px) {
  .intro { gap: 80px; padding: 80px 0; }
  .intro__image img { width: 100%; height: 300px; object-fit: cover; border-radius: 0; }
  .intro__about { flex-direction: column; gap: 0; }
  .intro__about-text { margin-top: 0; }
}

/* === Component: menu-showcase (cream "Our Menu" section with menu card, arched image and red circle) === */
.menu-showcase { position: relative; padding-top: 128px; background: var(--color-cream); }
.menu-showcase__top { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 64px; }
.menu-showcase__cards { display: flex; justify-content: center; gap: 32px; }
.menu-card { flex: 0 0 34%; display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 64px 32px; background: var(--color-white); border-radius: var(--radius); box-shadow: var(--shadow-card); text-align: center; }
.menu-showcase__arch { min-height: 800px; margin-top: -120px; border-radius: 0 0 1000px 1000px; background: url("/wp-content/uploads/2024/05/Hero.jpg") 0 0 / cover; }
.menu-showcase__lower { margin-top: -150px; }
.menu-showcase__dome { display: flex; flex-direction: column; align-items: center; background: var(--color-white); border-radius: 1000px 1000px 0 0; }
.order-circle { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 500px; max-width: 100%; min-height: 500px; margin-top: -250px; border-radius: 50%; background: var(--color-primary); text-align: center; }
.order-circle__title { max-width: 265px; margin-bottom: 32px; font-family: var(--font-body); font-size: var(--text-circle); font-weight: 400; line-height: 1.4; letter-spacing: var(--tracking); color: var(--color-white); }
.order-circle__button { display: inline-flex; padding: 24px 34px; border-radius: 100px; background: var(--color-white); color: var(--color-primary); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.7; }
.order-circle__button:hover, .order-circle__button:focus-visible { background: var(--color-primary); color: var(--color-white); }
.menu-showcase__strap { width: min(100% - 2 * var(--gutter), 640px); padding: 112px 0; text-align: center; }
@media (max-width: 1024px) {
  .menu-showcase__lower { margin-top: -200px; }
  .order-circle { margin-top: -150px; }
}
@media (max-width: 767px) {
  .menu-showcase { padding-top: 80px; }
  .menu-showcase__cards { flex-direction: column; }
  .menu-card { flex-basis: auto; }
  .menu-showcase__arch { min-height: 650px; }
  .menu-showcase__dome { gap: 80px; }
  .order-circle { width: 300px; min-height: 300px; gap: 16px; padding: 48px 64px; }
  .order-circle__title { margin-bottom: 32px; }
  .order-circle__button { padding: 16px 24px; }
}

/* === Component: app-promo (app download card on the Hero.jpg background) === */
.app-promo { align-self: stretch; display: flex; justify-content: center; align-items: center; min-height: 800px; padding: 0 var(--gutter); background: url("/wp-content/uploads/2024/05/Hero.jpg") center / cover; }
.app-card { width: 820px; max-width: 100%; display: flex; flex-direction: column; align-items: center; padding: 80px 64px; border-radius: var(--radius); background: var(--color-glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.app-card__inner { width: 525px; max-width: none; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.app-card__title { max-width: 460px; text-align: center; }
.app-card__text { font-size: var(--text-lg); line-height: var(--leading-body); color: var(--color-accent); text-align: center; }
@media (max-width: 1024px) {
  .app-card { width: 600px; }
}
@media (max-width: 767px) {
  .app-card { padding: 32px; }
  .app-card__inner { width: 100%; }
}

/* === Component: prefooter sections + info-card (footer template: delivery, offers, contact) === */
.prefooter-section--delivery, .prefooter-section--offers { padding: 60px 0; }
.prefooter-section--touch { padding: 120px 0; }
.info-card { display: flex; flex-direction: column; padding: 56px 64px; border: 1px solid var(--color-border); border-radius: var(--radius); text-align: center; }
.info-card__title { font-family: var(--font-heading); font-size: var(--h-text); font-weight: 500; line-height: var(--leading-heading); letter-spacing: var(--tracking); color: var(--color-text); }
.info-card__text { margin-top: 16px; font-size: var(--text-md); line-height: var(--leading-body); color: var(--color-accent); }
.info-card__text--first { margin-top: 32px; }
.info-card__text:last-child { margin-bottom: 16px; }
.info-card__small { margin-top: 32px; font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-accent); }
.offers { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 32px; }
.offers__title { flex: 0 0 100%; text-align: center; }
.offers__card--first { flex: 0 1 48%; min-height: 436px; }
.offers__card--second { flex: 0 1 49%; }
.offers__card--full { flex: 0 1 100%; }
.offers__card .info-card__text:last-child { margin-bottom: 32px; }
@media (max-width: 1024px) {
  .prefooter-section--delivery, .prefooter-section--offers, .prefooter-section--touch { padding: 80px 0; }
  .info-card { padding: 24px 32px; }
}
@media (max-width: 767px) {
  .offers__card--first, .offers__card--second { flex-basis: 100%; }
}

/* === Component: touch (Get in Touch card + map image) === */
.touch { display: flex; align-items: stretch; gap: 32px; }
.touch__card { flex: 0 1 50%; text-align: start; }
.touch__title { margin-bottom: 32px; }
.touch__card .icon-box + .icon-box { margin-top: 16px; }
.touch__divider { width: 100%; margin: 64px 0 48px; border: 0; border-top: 1px solid var(--color-border); }
.icon-box { display: flex; align-items: flex-start; gap: 16px; }
.icon-box--pin { gap: 12px; }
.icon-box__icon { flex: 0 0 auto; width: 28px; height: 28px; }
.icon-box--pin .icon-box__icon { width: 32px; height: 36px; }
.icon-box__link { display: inline-flex; flex: 0 0 auto; }
.icon-box__text { font-size: var(--text-md); line-height: var(--leading-body); color: var(--color-accent); }
.map-card { flex: 0 1 50%; display: flex; flex-direction: column; align-items: center; }
.map-card__image { width: 100%; height: 590px; object-fit: cover; border-radius: var(--radius); }
.map-card__button { position: relative; margin-top: -70px; }
@media (min-width: 1025px) {
  .touch__card { min-height: 590px; }   /* original card matches the map image height on desktop */
}
@media (max-width: 1024px) {
  .map-card__image { height: 450px; }
}
@media (max-width: 767px) {
  .touch { flex-direction: column; }
  .touch__divider { margin: 40px 0 24px; }
}

/* === Component: site-footer (dark footer + white bottom bar) === */
.site-footer__main { padding: 100px 0 160px; background: var(--color-text); color: var(--color-white); }
.site-footer__inner { display: flex; flex-direction: column; gap: 64px; }
.site-footer__badge { display: flex; justify-content: center; }
.site-footer__badge-embed { width: 25%; }   /* original: badge column 25% wide; the embed's image has an inline min-width 291px and overflows it to the right */
.site-footer__badge-embed img { height: auto; }
.site-footer__row { display: flex; gap: 32px; }
.site-footer__row--name { align-items: flex-end; }
.site-footer__name { flex: 0 1 40%; display: flex; flex-direction: column; gap: 8px; }
.site-footer__title { font-family: var(--font-heading); font-size: var(--h-accent); font-weight: 400; line-height: var(--leading-heading); letter-spacing: var(--tracking); }
.site-footer__town, .site-footer__phone, .site-footer__address, .site-footer__nav a { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 400; line-height: var(--leading-body); }
.site-footer__hours { flex: 0 1 60%; text-align: end; font-family: sans-serif; font-size: var(--text-lg); line-height: var(--leading-body); }   /* original named "Haskoy", never loaded: fallback as visitors saw it */
.site-footer__row--contact { align-items: center; padding: 32px 0; border-top: 1px solid var(--color-white); border-bottom: 1px solid var(--color-white); }
.site-footer__phone { flex: 1 1 0; }
.site-footer__address { flex: 0 0 calc(50% + 4px); text-align: end; }   /* the width the original's 65%/66% columns shrank to */
.site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 40px; }
.site-footer__bottom { padding: 20px 0; background: var(--color-white); }
.site-footer__bottom-inner { display: flex; gap: 32px; }
.site-footer__copy, .site-footer__credit { font-size: var(--text-sm); line-height: var(--leading-body); color: var(--color-text); }
.site-footer__copy { flex: 0 1 70%; }
.site-footer__credit { flex: 0 1 30%; text-align: end; }
@media (max-width: 1024px) {
  .site-footer__hours { font-size: 20px; }
}
@media (max-width: 767px) {
  .site-footer__main { padding: 80px 0; }
  .site-footer__inner { gap: 48px; }
  .site-footer__row { flex-direction: column; }
  .site-footer__row--name { align-items: stretch; }
  .site-footer__hours, .site-footer__address, .site-footer__credit { text-align: start; }
  .site-footer__row > * { flex: none; }
  .site-footer__row--contact { align-items: stretch; gap: 8px; padding: 24px 0; }
  .site-footer__nav ul { display: none; }   /* the empty row keeps its gap, as on the original */
  .site-footer__badge-embed { width: 291px; max-width: 100%; }
  .site-footer__badge-embed img { width: 291px; max-width: 100%; min-width: 0 !important; }   /* d4: overrides the embed's inline min-width so nothing overflows at 375px */
  .site-footer__bottom { padding: 20px 0; }
  .site-footer__bottom .container { width: calc(100% - 40px); }
  .site-footer__bottom-inner { flex-direction: column; gap: 12px; }
}

/* === Component: not-found (404 page) === */
.not-found { padding: 120px 0; text-align: center; }
.not-found__text { margin-top: 24px; }
.not-found .button-row { margin-top: 32px; }

/* ============ 6. Pages ============ */
/* (none) */

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.reveal-ready [data-reveal] { visibility: hidden; }
