/*
 * site.css: the only stylesheet for zen-buddha.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        boxed page frame, 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 App4 "app4page" theme CSS; media queries can't use custom properties):
 *   mobile/tablet  ≤ 768px   (mobile menu, centred 200px logo, smaller type, 2-image strip)
 *   desktop        ≥ 769px
 * The whole site sits in a 980px boxed frame on a patterned background at every width.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-text: #000000;
  --color-text-muted: #7a7a7a;      /* Elementor text colour (Roboto body copy) */
  --color-bg: #ffffff;              /* page frame */
  --color-page-bg: #c9bcb4;         /* body background under the pattern */
  --color-accent: #c9bcb4;          /* nav bar, page title band, contact panel */
  --color-panel: #e1e1e1;           /* reviews box */
  --color-footer: #000000;
  --color-inverse: #ffffff;
  --color-button-text: #726a67;
  --color-hero-bg: #eeeeee;
  --color-notice-bg: rgb(0 0 0 / 0.2);

  /* Typography */
  --font-body: "Montserrat", "Open Sans", sans-serif;
  --font-heading: "Permanent Marker", "Montserrat", "Open Sans", sans-serif;
  --font-copy: "Roboto", sans-serif;          /* Elementor text-editor widgets */
  --text-base: 16px;                          /* 14px at ≤768px */
  --text-h1: 46px;                            /* 32px at ≤768px */
  --text-h2: 35px;                            /* 28px */
  --text-h3: 28px;                            /* 21px */
  --text-h4: 21px;                            /* 18px */
  --leading: 1.5;
  --leading-heading: 1.25;                    /* 1.3 at ≤768px (h4 1.2) */

  /* Spacing and shape */
  --frame: 980px;
  --frame-gutter: 20px;
  --section-pad: 30px;
  --shadow-frame: 0 0 50px 0 rgb(0 0 0 / 0.5);

  /* Motion (match the original's timings) */
  --duration: 200ms;        /* theme link/button transitions: all .2s linear */
  --ease: linear;
  --duration-menu: 200ms;   /* SlickNav default slide duration */
  --ease-menu: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subset, variable files cover the weights used). */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-italic-var.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("/assets/fonts/permanent-marker-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2"); font-weight: 100 900; 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;
  padding-inline: var(--frame-gutter);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--color-text);
  background: var(--color-page-bg) url("/wp-content/uploads/2018/02/bg.png") repeat;
  background-size: 150px auto;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 400; line-height: var(--leading-heading); color: var(--color-text); margin: 0; }
h1 { font-size: var(--text-h1); margin-bottom: 22px; }
h2 { font-size: var(--text-h2); margin-bottom: 19px; }
h3 { font-size: var(--text-h3); margin-bottom: 19px; }
h4 { font-size: var(--text-h4); margin-bottom: 13px; }
p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-text); outline-offset: 2px; }

@media (max-width: 768px) {
  :root {
    --text-base: 14px;
    --text-h1: 32px;
    --text-h2: 28px;
    --text-h3: 21px;
    --text-h4: 18px;
    --leading-heading: 1.3;
  }
  h4 { line-height: 1.2; }
}

/* ============ 4. Layout ============ */
/* The white boxed frame (original #page-div) that holds header, content and footer. */
.page { position: relative; max-width: var(--frame); margin-inline: auto; background: var(--color-bg); box-shadow: var(--shadow-frame); }
.section { padding: var(--section-pad); }
.section--flush-top { padding-top: 0; }

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

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

/* === Component: site-header (address/phone left, logo right; logo only and centred at ≤768px) === */
.site-header { position: relative; z-index: 1000; background: var(--color-bg); }
.site-header__inner { position: relative; display: flex; justify-content: flex-end; padding: 30px 0 0 30px; }
.site-header__logo { display: block; width: 250px; }
.site-header__logo img { width: 250px; height: auto; }
.site-header__text { position: absolute; top: 30px; left: 30px; margin: 0; font-weight: 500; }
@media (max-width: 768px) {
  .site-header__inner { justify-content: center; padding: 30px 30px 36px; } /* 36px: the original inline logo left a 6px line gap */
  .site-header__logo, .site-header__logo img { width: 200px; }
  .site-header__text { display: none; }
}

/* === Component: site-nav (beige bar; SlickNav-style "MENU ☰" slide-down at ≤768px) === */
.site-nav { background: var(--color-accent); padding-inline: 20px; }
.site-nav__list { display: flex; flex-wrap: wrap; }
.site-nav__list a {
  display: block; height: 35px; padding: 10px;
  font-size: 15px; line-height: 15px; color: var(--color-inverse);
  transition: all var(--duration) var(--ease);
}
.site-nav__list a:hover, .site-nav__list a:focus-visible { box-shadow: inset 0 -35px 0 0 #000000; color: var(--color-inverse); }
.nav-toggle { display: none; }

@media (max-width: 768px) {
  .site-nav { padding: 0 30px; }
  .nav-toggle {
    display: flex; align-items: center; margin: -1px 0 -1px auto; min-height: 44px; padding: 0 7px; /* 44px tap target inside the original 42px bar */
    background: none; border: 0; cursor: pointer; color: var(--color-inverse);
    font: 14px/1.3 var(--font-body);
  }
  .nav-toggle__bars { display: flex; flex-direction: column; gap: 3px; width: 20px; margin: 3px 0 0 5px; align-self: center; transform: translateY(-1px); }
  .nav-toggle__bars span { display: block; height: 2px; border-radius: 1px; background: var(--color-inverse); }
  .site-nav__bar { display: flex; }
  /* Slide-down: grid row 0fr -> 1fr. align-items: stretch keeps the list clipped while it animates. */
  .site-nav__panel {
    display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden;
    transition: grid-template-rows var(--duration-menu) var(--ease-menu), visibility 0s linear var(--duration-menu);
  }
  .site-nav__panel.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration-menu) var(--ease-menu), visibility 0s; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; text-align: center; }
  .site-nav__list li { border-bottom: 1px solid var(--color-inverse); }
  .site-nav__list li:last-child { border-bottom: 0; }
  .site-nav__list a { height: auto; padding: 13px 10px; font-size: 12px; line-height: 18px; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { box-shadow: none; background: #000000; }
  html:not(.js) .site-nav__panel { grid-template-rows: 1fr; visibility: visible; }
  html:not(.js) .nav-toggle { display: none; }
}

/* === Component: hero (static image with dark notice strip; was a one-slide slick slider) === */
.hero { position: relative; height: 360px; background: var(--color-hero-bg); overflow: hidden; }
.hero__image { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__notice {
  position: absolute; top: 30px; left: 0; width: 100%; margin: 0;
  background: var(--color-notice-bg); color: var(--color-inverse); text-align: center;
  font-size: 14px; font-weight: 700; line-height: 21px;
}
@media (max-width: 768px) { .hero { height: 280px; } }

/* === Component: image-banner (inner-page header image) === */
.image-banner { height: 300px; overflow: hidden; }
.image-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* === Component: page-title (beige band with white marker heading) === */
.page-title { background: var(--color-accent); padding: 30px 20px; text-align: center; }
.page-title h1 { margin: 0; line-height: 1; color: var(--color-inverse); }

/* === Component: text-block (Elementor text-editor look: Roboto grey copy, marker headings) === */
.text-block { padding: 10px; font-family: var(--font-copy); color: var(--color-text-muted); }
.text-block--boxed { padding: 34px; }            /* Elementor section padding 24px + column 10px */
.text-block--center { text-align: center; }
.text-block h2, .text-block h3, .text-block h4 { color: var(--color-text); }
.text-block strong, .text-block b { font-weight: 700; }
.text-block__dark { color: var(--color-text); }  /* the original's inline black spans */
.text-block a { text-decoration: underline; }

/* === Component: offer (marker headline + small print) === */
.offer__title { text-align: center; }
.offer__note { text-align: center; color: var(--color-text); }

/* === Component: image-strip (three square-ish photos; two at ≤768px) === */
.image-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2%; }
.image-strip img { width: 100%; aspect-ratio: 32 / 30; object-fit: cover; object-position: center; }
@media (max-width: 768px) {
  .image-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4%; }
  .image-strip img { aspect-ratio: 48 / 46; }
  .image-strip img:nth-child(n+3) { display: none; }
}

/* === Component: reviews (grey box, Swiper fading-free slide carousel, black dots bottom-left) === */
.reviews { background: var(--color-panel); padding: 20px; color: var(--color-text); }
.reviews__slider { padding-bottom: 30px; }
.review__text { margin: 0 0 20px; }
.review__name { margin: 0; padding-right: 5px; font-size: 0.9em; font-style: italic; text-align: right; }
.reviews .swiper-slide { height: auto; }
.reviews .swiper-pagination.swiper-pagination-bullets {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto;
  height: 24px; line-height: 24px; text-align: left; font-size: 0;
}
.reviews .swiper-pagination-bullet {
  display: inline-block; vertical-align: middle; width: 10px; height: 10px; margin: 0 3px !important;
  background: #000000; opacity: 0.5; border-radius: 50%;
}
.reviews .swiper-pagination-bullet-active { opacity: 0.75; background: #000000; }
/* Without JS (or before Swiper starts) show only the first review. */
.reviews__slider:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }

/* === Component: slider (Swiper defaults; library CSS in /assets/vendor/swiper-14.3.0/) === */
.swiper { --swiper-theme-color: #000000; }

/* === Component: opening-hours (centred list with bold day names) === */
.opening-hours b { font-weight: 700; }

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

/* === Component: contact-email (replaces the CF7 form; beige panel, white marker heading, theme SEND button) === */
.contact-panel { background: var(--color-accent); padding: var(--section-pad); }
.contact-email { display: grid; gap: 10px; justify-items: start; color: var(--color-inverse); }
.contact-email h3 { color: var(--color-inverse); margin: 0 0 9px; }
.contact-email p { margin: 0; }
.contact-email__address a, .contact-email__phone a { color: var(--color-inverse); word-break: break-word; }
.contact-email__address a:hover, .contact-email__phone a:hover { text-decoration: underline; }

/* === Component: button (theme submit style: white, taupe uppercase text; black on hover) === */
.button {
  display: inline-block; height: 50px; margin: 10px 0 0; padding: 12px 26px;
  background: var(--color-bg); color: var(--color-button-text); border: 0; border-radius: 0;
  font: 400 1em/26px var(--font-body); text-transform: uppercase; text-align: center; cursor: pointer;
  transition: all var(--duration) var(--ease);
}
.button:hover, .button:focus-visible { background: #000000; color: var(--color-inverse); }

/* === Component: site-footer (black bar, small white copyright + credit) === */
.site-footer { background: var(--color-footer); color: var(--color-inverse); padding: 30px; }
.site-footer__copyright { margin: 0; font-size: 0.8em; line-height: 1.5; }
.site-footer__copyright a { color: var(--color-inverse); }

/* === Component: popup (unused on this site; kept from the starter) === */
.popup { border: 0; padding: 30px; max-width: min(90vw, 600px); }
.popup::backdrop { background: rgb(0 0 0 / 0.6); }

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