/*
 * site.css: the only stylesheet for eurasiacheltenham.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for self-hosted Poppins
 *   3. Base          reset and element defaults
 *   4. Layout        containers and the dark page
 *   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 site's; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor global colours) */
  --color-dark: #231e1f;          /* page background, dark text */
  --color-mint: #cfe9d6;          /* light green panels */
  --color-green: #61ce70;         /* header nav, menu toggle */
  --color-green-dark: #269a47;    /* text links ("Order now from Eurasia", "View all ...") */
  --color-white: #ffffff;
  --color-dropdown-hover: #3f444b;
  --color-toggle-bg: rgb(0 0 0 / 0.05);

  /* Typography */
  --font-body: "Poppins", Arial, sans-serif;

  /* Layout */
  --container: 1140px;
  --container-wide: 1200px;
  --gap: 20px;                    /* Elementor's widget spacing */
  --radius: 4px;

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

/* ============ 2. Fonts ============ */
/* Poppins (Google Fonts, SIL OFL), self-hosted, latin subset, weights in use only */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-200.woff2") format("woff2"); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-600.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: 16px; line-height: 1.5; color: var(--color-white); background: var(--color-dark); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 1em 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
ul { list-style: none; margin: 0; padding: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-green); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* .container: Elementor "boxed" section (1140px; its columns add 10px padding inside) */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.container--wide { max-width: var(--container-wide); }
.container--app { max-width: 1000px; }
.container--narrow { max-width: 600px; }

/* ============ 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 ===
 * Desktop: logo left, 8-item nav right. Tablet/mobile (<= 1024px): logo, three quick links
 * (Order Now / Book Now / Rewards and Discounts) and a burger that drops down the full menu. */
.site-header { position: relative; z-index: 50; padding: 40px 10px 10px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; min-height: 104px; }
.site-header__logo { flex: none; padding: 10px; }
.site-header__logo img { width: 76px; height: 64px; }
.quick-nav { display: none; }
.quick-nav__list { display: flex; flex-wrap: wrap; }
.quick-nav a { display: block; padding: 13px 20px; font-size: 16px; line-height: 20px; font-weight: 500; color: var(--color-green); }
.nav-toggle { display: none; flex: none; align-items: center; justify-content: center; margin-left: auto; padding: 9.5px; border: 0; border-radius: 3px; background: var(--color-toggle-bg); color: var(--color-green); cursor: pointer; }
.nav-toggle svg { width: 38px; height: 38px; display: block; }
.nav-toggle__close { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none !important; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block !important; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { position: relative; display: block; padding: 13px 20px; font-size: 16px; line-height: 20px; font-weight: 500; color: var(--color-green); }
/* underline pointer (Elementor "underline, fade"): shows on hover and on the current page */
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-green); opacity: 0; transition: opacity var(--duration) cubic-bezier(0.58, 0.3, 0.005, 1); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { opacity: 1; }

@media (max-width: 1024px) {
  .site-header__logo { width: 15%; display: flex; justify-content: center; }
  .quick-nav { display: block; flex: 1 1 auto; }
  .quick-nav__list { justify-content: flex-end; margin-right: 10px; }
  .nav-toggle { display: inline-flex; }
  /* dropdown: full width under the header, slides open (grid row 0fr -> 1fr) */
  .site-nav { position: absolute; left: 0; right: 0; top: calc(100% - 10px); display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-dark); visibility: hidden; transition: grid-template-rows var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows var(--duration) var(--ease), visibility 0s; }
  .site-nav__clip { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav a { padding: 10px 20px; font-size: 13px; line-height: 20px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-dropdown-hover); }
}
@media (max-width: 767px) {
  .site-header__inner { flex-wrap: wrap; justify-content: flex-start; }
  .site-header__logo { width: 100%; }
  .quick-nav { flex: 0 0 82%; }
  .quick-nav__list { justify-content: flex-start; margin-right: 0; }
  .quick-nav a { padding: 13px 11px; }
  .nav-toggle { margin-left: 0; padding: 8.5px; }
  .nav-toggle svg { width: 34px; height: 34px; }
}

/* === Component: site-footer === */
.site-footer { padding-bottom: 50px; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; max-width: var(--container); margin-inline: auto; }
.site-footer__inner > * { padding: 10px; }
.site-footer__logo { width: 15.173%; display: flex; justify-content: center; }
.site-footer__logo img { width: 101px; }
.footer-nav { width: 60.017%; }
.footer-nav__list { display: flex; flex-wrap: wrap; }
.footer-nav a { display: block; padding: 13px 20px; font-size: 16px; line-height: 20px; font-weight: 300; color: var(--color-white); }
.site-footer__credit { width: 24.474%; margin: 0; text-align: right; font-size: 18px; line-height: 30px; font-weight: 600; }
.site-footer__credit a { color: inherit; }
@media (max-width: 1024px) {
  .site-footer__logo { width: 10%; }
  .footer-nav { width: 90%; }
  .site-footer__credit { width: 100%; text-align: center; }
}
@media (max-width: 767px) {
  .site-footer__logo, .footer-nav { width: 100%; }
}

/* === Component: section-heading (white Poppins headings on the dark page) === */
.heading-xl { font-size: 55px; line-height: 84px; font-weight: 400; }
.heading-app { font-size: 46px; line-height: 72px; font-weight: 300; }
.heading-sm { font-size: 24px; line-height: 24px; font-weight: 400; }
@media (max-width: 767px) {
  .heading-xl { font-size: 31px; line-height: 41px; }
}

/* === Component: body-text (light Poppins 200 copy) === */
.body-text { font-size: 18px; line-height: 34px; font-weight: 200; }
.body-text p { margin: 0; }
.body-text p + p { margin-top: 34px; }      /* the original's <br><br> paragraph gaps */
@media (max-width: 767px) {
  .body-text { font-size: 14px; line-height: 23px; }
  .body-text p + p { margin-top: 23px; }
}

/* === Component: text-link (green "Order now from Eurasia" / "View all ..." links) === */
.text-link { font-size: 20px; font-weight: 300; line-height: normal; color: var(--color-green-dark); }
@media (max-width: 767px) {
  .text-link--small-mobile { font-size: 16px; }
}

/* === Component: info-list (opening times / contact number / address) === */
.info-list__group { display: flex; flex-direction: column; gap: var(--gap); }
.info-list__group--inset { padding: 10px; }
.info-list__group + .info-list__group { margin-top: 50px; }
.info-list__group--inset + .info-list__group { margin-top: 30px; }
.info-list__text { font-size: 16px; line-height: 30px; font-weight: 200; }
.info-list__text p { margin: 1em 0; }
.info-list__text a { color: inherit; }

/* === Component: contact-email (reserved: replaces a WordPress form with a mailto block; not used yet,
 * the home #contact form had no email anywhere. Kept so a future address or form drops in.) === */
.contact-email { display: grid; gap: var(--gap); justify-items: start; }
.contact-email__address { font-weight: 300; word-break: break-word; }
.contact-email .button { display: block; width: 100%; padding: 15px 30px; border-radius: var(--radius); background: var(--color-green-dark); color: var(--color-white); font-size: 20px; line-height: 32px; font-weight: 300; text-align: center; }

/* === Component: icon-list (links page: icon + label rows with 2px dividers) === */
.icon-list { width: max-content; max-width: 100%; margin-inline: auto; padding: 30px 12px; --icon-size: 48px; }
.icon-list li { position: relative; }
.icon-list li:not(:last-child) { padding-bottom: 17.5px; }
.icon-list li:not(:last-child)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 2px solid var(--color-dark); }
.icon-list li + li { margin-top: 17.5px; }
.icon-list a { display: flex; align-items: center; color: var(--color-dark); font-size: 22.4px; line-height: 1.5; }
.icon-list__icon { flex: none; display: flex; justify-content: center; align-items: center; width: calc(var(--icon-size) * 1.25); height: var(--icon-size); margin-right: 12px; }
.icon-list__icon svg { height: var(--icon-size); width: auto; max-width: 100%; fill: currentColor; color: var(--color-dark); }
.icon-list__text { padding-left: 5px; }
@media (max-width: 767px) {
  .icon-list { --icon-size: 28.8px; }
  .icon-list a { font-size: 16px; }
}

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

/* === Page: / (home) === */
.page-home .site-header { margin-top: 30px; }

/* hero: mint panel (45%) + mint image column (55%); image overhangs the panel by 70px */
.hero { display: grid; grid-template-columns: 45% 55%; margin-top: 30px; overflow-x: clip; }
.hero__panel { display: flex; flex-direction: column; align-items: flex-start; padding: 100px 0 100px 100px; border-radius: var(--radius) 0 0 var(--radius); background: var(--color-mint); }
.hero__title { position: relative; z-index: 1; width: calc(100% + 100px); min-height: 250px; margin-bottom: var(--gap); font-size: 75px; line-height: 100px; font-weight: 500; color: var(--color-dark); }
.hero__order { display: flex; align-items: center; padding: 10px; }
.hero__order p { margin: 1em 0; }
.hero__order img { margin-left: 10px; }
.hero__tagline { display: flex; align-items: center; align-self: stretch; min-height: 210px; padding: 10px; background: url("/wp-content/uploads/2021/11/Rectangle-9.png") no-repeat 0 0; }
.hero__tagline p { margin: 1em 0 1em 50px; font-size: 28px; line-height: 46px; color: var(--color-dark); }
.hero__media { position: relative; padding-top: 20px; border-radius: 0 var(--radius) var(--radius) 0; background: var(--color-mint); }
.hero__media img { max-width: none; position: absolute; left: 0; bottom: -70px; width: calc(100% + 70px); height: 570px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 1024px) {
  /* The original's 1024px layout let the hero photo cover the panel and header; this uses its 768px layout instead (decision 8). */
  .hero { grid-template-columns: 100%; }
  .hero__panel { padding: 50px; border-radius: var(--radius) var(--radius) 0 0; }
  .hero__title { width: auto; min-height: 0; font-size: 40px; line-height: 40px; }
  .hero__media { padding-top: 20px; border-radius: 0 0 var(--radius) var(--radius); }
  .hero__media img { position: static; width: 100%; }
}
@media (max-width: 767px) {
  .hero__title { font-size: 31px; line-height: 41px; }
  .hero__tagline p { font-size: 18px; line-height: 30px; }
  .hero__media img { height: 300px; }
}

/* about */
.about { margin-top: 95px; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; }
.about__col { padding: 10px; }
.about__title { margin-left: 200px; }
.about__col .body-text { margin-top: 115px; }
.about__col--right .body-text { margin-top: 170px; }
@media (max-width: 1024px) {
  .about__title { margin-left: 0; }
}
@media (max-width: 767px) {
  .about__grid { grid-template-columns: 100%; }
  .about__col .body-text { margin-top: 50px; }
  .about__col--right .body-text { margin-top: 30px; }
}

/* menu: photo + "Locally sourced" heading with three menu links and a food strip */
.menu-intro { display: grid; grid-template-columns: 44.198% 55.802%; margin-top: 95px; overflow-x: clip; }
.menu-intro__photo { padding: 10px; }
.menu-intro__photo img { width: 100%; }
.menu-intro__body { display: flex; flex-direction: column; justify-content: center; padding: 10px; }
.menu-intro__title { margin: 0 200px; text-align: right; }
.menu-link { display: grid; grid-template-columns: 22.44% 77.56%; padding-top: 40px; }
.menu-intro__title + .menu-link { margin-top: var(--gap); }
.menu-link__icon { padding-left: 75px; }
.menu-link__icon img { width: 101px; }
.menu-link__title { margin: 0; font-size: 28px; line-height: 46px; }
.menu-link__more { margin: var(--gap) 0 0; }
.menu-intro__strip { margin-right: -102px; padding-top: 40px; }
.menu-intro__strip img { margin-inline: auto; }
@media (max-width: 1024px) {
  .menu-intro__title { margin: 0 50px 0 0; }
  .menu-link__icon { padding-left: 0; }
}
@media (max-width: 767px) {
  .menu-intro { grid-template-columns: 100%; }
  .menu-link { grid-template-columns: 100%; text-align: center; }
  .menu-link__icon img { margin-inline: auto; }
  .menu-intro__strip { display: none; }
}

/* app */
.app { margin-top: 145px; }
.app__grid { display: grid; grid-template-columns: 60.111% 39.78%; }
.app__text { display: flex; flex-direction: column; justify-content: center; gap: var(--gap); padding: 10px; }
.app__lead { font-size: 22px; line-height: 34px; font-weight: 200; }
.app__body { font-size: 18px; line-height: 34px; font-weight: 200; }
.app__text p { margin: 1em 0; }
.app__badges { display: block; width: max-content; max-width: 100%; }
.app__phone { padding: 10px; }
.app__phone img { margin-inline: auto; }
@media (max-width: 767px) {
  .app__grid { grid-template-columns: 100%; }
  .app__text .heading-app { font-size: 29px; }
  .app__lead { font-size: 18px; }
  .app__body { font-size: 14px; line-height: 24px; }
}

/* contact: heading, then (empty former form column) + opening times / phone / address */
.contact { margin-top: 145px; }
.contact__head { padding: 10px 10px 60px; }
.contact__grid { display: grid; grid-template-columns: 66.667% 33.333%; }
.contact__form-slot, .contact__info { padding: 10px; }
@media (max-width: 767px) {
  .contact__head .heading-xl { line-height: 42px; }
  .contact__grid { grid-template-columns: 100%; }
  .contact__form-slot { display: none; }
}
.page-home .site-footer { margin-top: 145px; }
.page-links .site-footer, .page-rewards .site-footer { padding-inline: 10px; }

/* === Page: /links/ === */
.links-panel { margin: 50px auto 60px; padding: 0; }
.links-panel__inner { padding: 25px; background: var(--color-mint); color: var(--color-dark); }
.links-panel__title { font-size: 75px; line-height: 1; font-weight: 500; }
.links-panel__intro { margin-top: var(--gap); font-size: 22.4px; line-height: 1.5; }
.links-panel__intro p { margin: 0; }
.links-panel .icon-list { margin-top: var(--gap); }
@media (max-width: 767px) {
  .links-panel { margin: 60px 10px 76px; width: auto; }
  .links-panel__title { font-size: 32px; }
  .links-panel__intro { font-size: 16px; }
}

/* === Page: /rewards-and-discounts/ === */
.rewards-title { margin: 50px auto 60px; padding: 10px; }
.rewards-title h2 { font-size: 55px; line-height: 1; font-weight: 400; }
.reward-row { display: flex; align-items: center; justify-content: center; gap: var(--gap); max-width: 1009px; min-height: 409px; margin: 50px auto; padding: 10px; }
.reward-row > * { flex: 0 0 calc(50% - 10px); }
.reward-row + .reward-row { margin-top: 70px; }
.page-rewards main { padding-bottom: 20px; }
.reward-row__text { align-self: flex-end; font-size: 18px; line-height: 34px; font-weight: 200; }
.reward-row__text p { margin: 0; }
.reward-row__text p + p { margin-top: 34px; }
.reward-row__title--end { text-align: right; }
@media (max-width: 767px) {
  .rewards-title h2 { font-size: 35px; }
  .reward-row { flex-direction: column; align-items: stretch; min-height: 0; }
  .reward-row--reverse { flex-direction: column-reverse; }
  .reward-row > * { flex: none; }
  .reward-row .heading-xl { font-size: 35px; line-height: 50px; }
}

/* === Page: /404.html === */
.not-found { margin: 50px auto 145px; padding: 10px; }
.not-found .body-text { margin-top: var(--gap); }
.not-found .body-text a { color: var(--color-green); text-decoration: underline; }
.page-404 .site-footer { padding-inline: 10px; }

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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