/*
 * site.css: the only stylesheet for grill-mill.co.uk (Grill Mill @ Pinos).
 *
 * 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, section spacing
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: <path> ==="
 *   7. Utilities
 *
 * Breakpoints (from the original Elementor CSS; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Measurements come from the original's computed styles (Elementor: 1140px boxed sections,
 * 10px column padding, 20px widget spacing, 100px spacer sections = 120px gaps).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor global colours of the original) */
  --color-yellow: #fee600;      /* buttons, burger */
  --color-dark: #211f20;        /* text, outlines, divider */
  --color-white: #ffffff;
  --color-menu-text: #494c4f;   /* mobile dropdown items */
  --color-text: var(--color-dark);
  --color-bg: var(--color-white);
  --color-primary: var(--color-yellow);

  /* Typography */
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-heading: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text-hero: 72px;       /* hero H2, all widths */
  --text-title: 42px;      /* section titles (Rubik 700) */
  --text-eyebrow: 24px;    /* section labels (Poppins 500) */
  --text-body: 18px;
  --text-small: 14px;

  /* Spacing and shape */
  --gutter: 10px;          /* Elementor column padding */
  --widget-gap: 20px;      /* Elementor widget spacing */
  --section-gap: 120px;    /* 100px spacer section + 2 x 10px padding */
  --container: 1120px;     /* 1140px boxed section minus column padding */
  --radius: 2px;

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

/* ============ 2. Fonts ============ */
/* Google Fonts, self-hosted (latin subset). Rubik is a variable font (300-900); used at 500/600/700. */
@font-face { font-family: "Rubik"; src: url("/assets/fonts/rubik-latin-var.woff2") format("woff2"); font-weight: 300 900; 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-500.woff2") format("woff2"); font-weight: 500; 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: 16px; line-height: 1.5; color: var(--color-text); 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-weight: 700; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-dark); outline-offset: 2px; }

/* ============ 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: 100; padding: 8px 16px; background: var(--color-white); color: var(--color-dark); }
.skip-link:focus { left: 16px; }

/* === Component: site-header ===
 * Not sticky. Sits on top of the hero (the hero pulls up underneath it with a negative margin).
 * Columns: logo | nav | app badges (badges hidden <= 1024px). */
.site-header { position: relative; z-index: 2; padding: 40px 0 10px; }
.site-header__inner { display: grid; grid-template-columns: 10.964% 55.368% 1fr; align-items: center; width: min(100%, 1140px); margin-inline: auto; }
.site-header__inner > * { padding-inline: var(--gutter); }
.site-header__logo img { width: 105px; height: 94px; }
.site-header__badges { justify-self: end; }
.site-header__badges img { width: 243px; height: 34px; }

/* Main nav (desktop/tablet): white Poppins 18px, grows on hover (Elementor pointer "text", animation "grow") */
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 13px 30px; font-size: 18px; font-weight: 400; line-height: 20px; color: var(--color-white); text-decoration: none; transition: transform 0.4s var(--ease); }
.site-nav__list a:hover, .site-nav__list a:focus-visible { transform: scale(1.2); }

/* Burger: yellow 33px box with a 22px dark icon; the hit area is extended to 44px by ::before */
.nav-toggle { display: none; position: relative; width: 33px; height: 33px; padding: 5.5px; margin: 0 auto; border: 0; border-radius: 3px; background: var(--color-yellow); color: var(--color-dark); cursor: pointer; }
.nav-toggle::before { content: ""; position: absolute; inset: -6px; }
.nav-toggle svg { display: block; width: 22px; height: 22px; }
.nav-toggle .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__inner { grid-template-columns: 20% 80%; }
  .site-header__badges { display: none; }
}
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 50% 50%; }
  .nav-toggle { display: block; }
  /* Dropdown: full viewport width under the burger, slides down (grid 0fr -> 1fr) */
  .site-nav { position: absolute; left: 0; right: 0; top: 104px; display: grid; grid-template-rows: 0fr; align-items: stretch; padding: 0; background: var(--color-white); visibility: hidden; transition: grid-template-rows 0.3s var(--ease), visibility 0s linear 0.3s; }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s var(--ease), visibility 0s; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; }
  .site-nav__list a { padding: 10px 20px; min-height: 44px; display: flex; align-items: center; justify-content: center; color: var(--color-menu-text); text-align: center; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { transform: none; }
}

/* === Component: button ===
 * Elementor Extras button group: Rubik 18px/600, 2px border, 2px radius, no hover change.
 * Sizes: --lg (hero, 62px tall) and default (52px tall). */
.button-group { display: flex; flex-wrap: wrap; column-gap: 12px; row-gap: 0; list-style: none; margin: 0; padding: 0; }
.button-group--center { justify-content: center; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 30px; border: 2px solid var(--color-dark); border-radius: var(--radius); font-family: var(--font-heading); font-size: 18px; font-weight: 600; line-height: 18px; text-decoration: none; color: var(--color-dark); background: transparent; transition: all 0.2s ease-in-out; }
.button--lg { padding: 20px 40px; }
.button--fill { background: var(--color-yellow); border-color: var(--color-yellow); color: var(--color-dark); }
.button--light { border-color: var(--color-white); color: var(--color-white); }

/* === Component: section-intro (small label + big title) === */
.section-intro__label { font-family: var(--font-body); font-size: var(--text-eyebrow); font-weight: 500; line-height: 1; color: var(--color-dark); }
.section-intro__title { margin-top: var(--widget-gap); font-family: var(--font-heading); font-size: var(--text-title); font-weight: 700; line-height: 1; color: var(--color-dark); }
.section-intro--center { text-align: center; }
.section-intro--split .section-intro__title { margin-top: 20px; }

/* === Component: hero === */
.hero { position: relative; z-index: 1; display: flex; align-items: center; min-height: 770px; margin-top: -191px; padding-block: var(--gutter); background: #000 url("/wp-content/uploads/2021/10/Frame-13.png") center / cover no-repeat; }
.hero__title { font-family: var(--font-heading); font-size: var(--text-hero); font-weight: 700; line-height: 1; color: var(--color-white); }
.hero__text { margin: 38px 0; font-size: 18px; font-weight: 500; color: var(--color-white); }
@media (max-width: 1024px) { .hero { margin-top: -200px; } }
@media (max-width: 767px) {
  /* Original: margin-top -265px with the heading over the logo; fixed by starting the content below the header (decision d4); extra bottom padding keeps the buttons clear of the stripes */
  .hero { margin-top: -265px; align-items: flex-start; padding: 285px 0 190px; }
}

/* === Component: about (image + text on the stripe background) === */
.about { margin-top: var(--section-gap); padding-block: var(--gutter); background: url("/wp-content/uploads/2021/10/Group-19.png") center / cover no-repeat; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--widget-gap); align-items: center; }
.about__image { align-self: start; }
.about__image img { width: 100%; }
.about__text { margin-top: var(--widget-gap); font-size: var(--text-body); line-height: 30px; }
.about__text p + p { margin-top: 30px; }
.about .button-group { margin-top: var(--widget-gap); }
@media (max-width: 767px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* === Component: gallery-grid (menu photos; each links to the full image, no lightbox) === */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--widget-gap); list-style: none; margin: var(--widget-gap) 0 0; padding: 0; }
.gallery-grid a { display: block; }
.gallery-grid img { width: 100%; }
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: minmax(0, 270px); justify-content: center; }
}

/* === Component: reviews (three review images; middle one dropped 70px) === */
.reviews__row { display: grid; grid-template-columns: repeat(3, 1fr); width: min(100%, 1200px); margin: 10px auto 0; }
.reviews__row img { width: 100%; }
.reviews__item--offset { margin-top: 70px; }
@media (max-width: 767px) {
  .reviews__row { grid-template-columns: 1fr; }
}

/* === Component: map === */
.map-block { border-radius: 3px; overflow: hidden; }
.map { display: block; width: 100%; height: 500px; border: 0; }

/* === Component: site-footer === */
.site-footer { margin-top: 140px; color: var(--color-dark); }
.site-footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--widget-gap); }
.site-footer__heading { font-family: var(--font-body); font-size: 18px; font-weight: 400; line-height: 1; }
.site-footer__text { margin: 34px 0 14px; font-size: var(--text-small); line-height: 24px; }
.site-footer__menu { list-style: none; margin: var(--widget-gap) 0 0; padding: 0; }
.site-footer__menu a { display: block; padding: 13px 0; font-size: var(--text-small); line-height: 20px; color: var(--color-dark); text-decoration: none; }
.site-footer__badges { display: inline-block; margin-top: var(--widget-gap); }
.site-footer__badges img { width: 162px; height: 113px; }
.site-footer__divider { margin: 20px var(--gutter) 0; padding-block: 15px; }
.site-footer__divider hr { margin: 0; border: 0; border-top: 1px solid var(--color-dark); }
.site-footer__bar { padding: 34px 0 74px; text-align: center; font-family: var(--font-heading); font-size: var(--text-small); font-weight: 500; line-height: 24px; }
.site-footer__bar a { color: inherit; text-decoration: none; }
@media (max-width: 767px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

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

/* === Page: / === */
.home-menu { margin-top: 130px; }
.home-menu .button-group { margin-top: var(--widget-gap); }
.home-reviews { margin-top: 140px; }
.home-contact { margin-top: 130px; }

/* === Page: 404 === */
/* Reuses the hero (dark burger background) with the heading as the page H1. */

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