/*
 * site.css: the only stylesheet for memoriesofindiaonline.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing, breakpoints (custom properties)
 *   2. Fonts         @font-face for self-hosted fonts
 *   3. Base          reset and element defaults
 *   4. Layout        container, sections
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor defaults on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The header switches to the burger menu at <= 767px (Elementor Pro "dropdown: mobile").
 *
 * Values come from the live site's computed styles (main content) and from the Wayback
 * 2025-04-08 copies of Elementor's post-24.css (header), post-27.css (footer) and post-8.css (home).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-text: #000000;
  --color-text-footer: #111111;
  --color-text-bar: #0c0c0c;
  --color-bg: #ffffff;
  --color-bg-alt: #fafafa;           /* hero overlay, footer contact band */
  --color-red: #d83237;              /* headings, app band overlay */
  --color-green: #57a044;            /* active nav, dividers, mobile menu active */
  --color-green-hover: #30c947;      /* "Get the App" hover */
  --color-nav: #707070;
  --color-phone: #e4e6e7;            /* phone mock-up frame (silver skin) */
  --color-phone-detail: #b6b8b9;

  /* Typography */
  --font-body: Arial, Helvetica, sans-serif;
  --font-heading: "Acme", sans-serif;
  --font-menu: "Roboto", Arial, sans-serif;  /* mobile dropdown only (Elementor default) */

  /* Layout */
  --container: 1140px;
  --gutter: 10px;                   /* Elementor column padding */
  --header-h: 46px;                 /* desktop/tablet sticky bar height */
  --header-h-mobile: 43px;
  --shadow-header: 0 0 10px 0 rgb(0 0 0 / 0.5);

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

/* ============ 2. Fonts ============ */
/* Acme has only a 400 face; the original asked for 600, so browsers synthesise bold (kept on purpose). */
@font-face { font-family: "Acme"; src: url("/assets/fonts/acme-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-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; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: inherit; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease), border-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-green); outline-offset: 2px; }
@media (max-width: 767px) { html { scroll-padding-top: var(--header-h-mobile); } }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 52px; }  /* Elementor: 42px section padding + 10px column padding */
.anchor-target { display: block; height: 0; }

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

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

/* === Component: site-header (sticky white bar, centred menu; burger at <= 767px) === */
.site-header { position: sticky; top: 0; z-index: 999; background: var(--color-bg); box-shadow: var(--shadow-header); padding-inline: 16px; }
.site-header__inner { max-width: var(--container); margin-inline: auto; display: flex; justify-content: center; }
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 13px 16px; font-family: var(--font-heading); font-size: 16px; font-weight: 600; line-height: 20px; letter-spacing: 0.3px; text-transform: uppercase; text-decoration: none; color: var(--color-nav); }
.site-nav a[aria-current="page"], .site-nav a:hover, .site-nav a:focus-visible { color: var(--color-green); }
.nav-toggle { display: none; }
@media (max-width: 767px) {
  .site-header { padding-inline: 16px; }
  .site-header__inner { display: block; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; width: 100%; height: var(--header-h-mobile); padding: 0; border: 0; border-radius: 3px; background: var(--color-bg); color: var(--color-green); cursor: pointer; }
  .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; }
  /* Slide-down panel: grid 0fr -> 1fr; align-items: stretch so the list is clipped while it animates. */
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; grid-template-rows: 0fr; align-items: stretch; padding-inline: 16px; background: var(--color-bg); box-shadow: 0 6px 10px -2px rgb(0 0 0 / 0.5); clip-path: inset(0 -20px -20px -20px); 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.is-instant { transition: none; }
  .site-nav__clip { overflow: hidden; min-height: 0; }
  .site-nav__list { display: block; }
  .site-nav a { padding: 26px 20px; font-family: var(--font-menu); font-size: 13px; font-weight: 500; line-height: 20px; letter-spacing: normal; text-transform: none; text-align: center; color: var(--color-nav); }
  .site-nav a[aria-current="page"], .site-nav a:hover, .site-nav a:focus-visible { color: #ffffff; background: var(--color-green); }
}

/* === Component: section-heading (red Acme H2, centred) === */
.section-heading { font-family: var(--font-heading); font-size: 42px; font-weight: 600; line-height: 68px; letter-spacing: 1px; color: var(--color-red); text-align: center; margin-bottom: 36px; }

/* === Component: divider (green line, 39% wide) === */
.divider { padding-block: 15px; }
.divider::before { content: ""; display: block; width: 39%; margin-inline: auto; border-top: 2px solid var(--color-green); }

/* === Component: prose (Arial 18/36 body copy) === */
.prose { font-size: 18px; line-height: 36px; letter-spacing: 0.3px; color: var(--color-text); padding-block: 18px; margin-bottom: 20px; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* === Component: hero (logo on faded food photo; fixed background on desktop) === */
.hero { position: relative; display: flex; align-items: center; min-height: 600px; background-position: center; background-size: cover; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--color-bg-alt); opacity: 0.9; }
.hero > .container { position: relative; }
.hero__logo { width: 360px; margin-inline: auto; }
@media (min-width: 1025px) { .hero { background-attachment: fixed; } }

/* === Component: button (outline, as "Get the App") === */
.button { display: inline-block; padding: 15px 30px; font-family: var(--font-body); font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: 0.3px; text-decoration: none; text-align: center; cursor: pointer; }
.button--outline { color: #ffffff; background: transparent; border: 3px solid #ffffff; }
.button--outline:hover, .button--outline:focus-visible { background: var(--color-green-hover); border-color: transparent; }

/* === Component: app-promo (footer band: red overlay on food photo, phone mock-up) === */
.app-promo { position: relative; padding-block: 110px; background: url("/wp-content/uploads/2019/06/memories-2.jpg") center / cover no-repeat; color: #ffffff; }
.app-promo::before { content: ""; position: absolute; inset: 0; background: var(--color-red); opacity: 0.85; }
.app-promo__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-inline: 0; }
.app-promo__text { align-self: center; padding: 10px; }
.app-promo__title { font-family: var(--font-heading); font-size: 42px; font-weight: 600; line-height: 68px; letter-spacing: 1px; margin-bottom: 36px; }
.app-promo__lead { font-size: 26px; line-height: 42px; letter-spacing: 0.3px; margin: 0 0 62px; padding-top: 26px; }
.app-promo__device { padding: 10px; }
@media (min-width: 1025px) { .app-promo { background-attachment: fixed; } }
@media (max-width: 767px) {
  .app-promo__inner { grid-template-columns: 1fr; }
  .app-promo__text { text-align: center; }
}

/* === Component: phone-frame (CSS/SVG phone around an app screenshot) === */
.phone-frame { position: relative; width: 100%; max-width: 200px; margin: 26px auto; }
.phone-frame__shape { display: block; width: 100%; height: auto; }
.phone-frame__body, .phone-frame__side { fill: var(--color-phone); }
.phone-frame__detail { fill: var(--color-phone-detail); }
.phone-frame__screen { position: absolute; left: 4.7%; top: 11.85%; width: 90.6%; height: 77.7%; object-fit: cover; object-position: top; }

/* === Component: footer-contact (logo, email/phone, name and address) === */
.footer-contact { background: var(--color-bg-alt); padding-block: 68px; color: var(--color-text-footer); }
.footer-contact__inner { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 0; }
.footer-contact__col { padding: 0 16px; }
.footer-contact__col--address { padding: 10px; text-align: right; }
.footer-contact__logo { width: 240px; margin-bottom: 46px; }
.footer-contact__name { font-family: var(--font-heading); font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: 1px; color: var(--color-red); margin-bottom: 16px; }
.footer-contact__address { font-size: 16px; letter-spacing: 0.3px; padding-block: 16px; }
.footer-contact__address p { margin: 0 0 16px; line-height: normal; }
.footer-contact__address p:last-child { margin-bottom: 0; }
@media (max-width: 767px) {
  .footer-contact__inner { grid-template-columns: 1fr; }
  .footer-contact__col, .footer-contact__col--address { padding: 0; text-align: center; }
  .footer-contact__logo { margin-inline: auto; }
  .icon-list { display: inline-block; text-align: left; }
}

/* === Component: icon-list (icon + text rows) === */
.icon-list { list-style: none; margin: 0 0 20px; padding: 0; font-size: 16px; letter-spacing: 0.3px; }
.icon-list__item { display: flex; align-items: center; }
.icon-list__item + .icon-list__item { margin-top: 26px; }
.icon-list__icon { flex: none; width: 26px; height: 26px; color: var(--color-text-footer); }
.icon-list__text { padding-left: 16px; word-break: break-word; }

/* === Component: site-footer bar (copyright + Powered by OrderYOYO) === */
.site-footer__bar { color: var(--color-text-bar); font-size: 16px; line-height: 1; }
.site-footer__bar-inner { display: grid; grid-template-columns: 1fr 1fr; padding-inline: 0; }
.site-footer__bar p { margin: 0; padding: 10px; }
.site-footer__credit { text-align: right; }
.site-footer__credit a { color: #000000; text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__bar-inner { grid-template-columns: 1fr; }
  .site-footer__bar p, .site-footer__credit { text-align: center; }
}

/* === Component: gallery (grid 4/2/1 + GLightbox; restored layout, see SITE.md) === */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery--spaced { margin-top: 20px; }
.gallery__item { display: block; overflow: hidden; aspect-ratio: 3 / 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration) var(--ease); }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.05); }
@media (max-width: 1024px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .gallery { grid-template-columns: 1fr; } }

/* GLightbox: match the site (library CSS in /assets/vendor/glightbox-3.3.1/) */
.glightbox-container .goverlay { background: rgb(0 0 0 / 0.9); }

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