/*
 * site.css: the only stylesheet for ahmedspiceindian.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        container, sections, two-column grid
 *   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 Elementor/twentyseventeen CSS; media queries can't use custom properties):
 *   mobile  <= 767px     columns stack; hero height follows its content
 *   tablet  768-1024px   burger menu (Elementor "dropdown: tablet"), columns side by side
 *   desktop >= 1025px    horizontal menu
 *   479px                body text 16px -> 15px below (twentyseventeen 30em rule)
 *
 * Restored from the Internet Archive (Wayback 2026-06-18, see SITE.md): the header navigation
 * (desktop menu, burger dropdown), the sticky header and the map blocks. Everything else
 * matches the live site.
 *
 * Editing: change tokens to restyle the site; add modifier classes instead of changing a
 * component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-brand: #5d050f;          /* header bar, all text, headings, footer */
  --color-text: #5d050f;
  --color-text-muted: #6f6f6f;     /* review dates */
  --color-bg: #ffffff;
  --color-on-brand: #ffffff;       /* menu text, underline, burger icon */
  --color-menu-active-bg: #55595c; /* active/hover item in the burger dropdown (Elementor Pro default) */
  --color-divider: #dddddd;        /* lines between reviews */

  /* Typography: Marcellus SC everywhere (single 400 face, see Fonts) */
  --font-body: "Marcellus SC", Georgia, serif;
  --font-heading: var(--font-body);
  --text-base: 16px;
  --leading: 1.5;

  /* Spacing and shape (Elementor: boxed 1140px, 10px column padding, 20px widget gap) */
  --container: 1140px;
  --container-narrow: 950px;      /* reviews */
  --gutter: 10px;
  --widget-gap: 20px;
  --header-h: 63px;               /* updated by site.js (sticky module) for anchor offsets */

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

/* ============ 2. Fonts ============ */
/* Marcellus SC has one weight (400). The original requested 100-900 from Google Fonts, which
   maps every weight to this face, so bold/semibold text is NOT faux-bolded. The weight range
   below reproduces that. */
@font-face {
  font-family: "Marcellus SC";
  src: url("/assets/fonts/marcellus-sc-400-latin.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-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading); 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 { font-family: var(--font-heading); font-weight: 400; line-height: 1; color: var(--color-brand); margin: 0 0 var(--widget-gap); }
p { margin: 0 0 1.5em; }
a { color: inherit; }
b, strong { font-weight: 700; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 479px) {
  body { font-size: 15px; line-height: 1.66; }
}

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { background: var(--color-bg); padding: 60px 0 30px; }        /* 50px section + 10px column padding (Elementor) */
.section--even { padding-bottom: 60px; }
/* Two columns (info + map) side by side from 768px, stacked below */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--widget-gap); align-items: start; }
@media (max-width: 767px) {
  .two-col { grid-template-columns: 1fr; }
}

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

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

/* === Component: site-header (restored from the archive: sticky on all devices) ===
   Desktop: logo column | menu column (50/50, 10px column padding, as Elementor).
   <=1024px: logo | burger, dropdown spans the full width underneath. <=767px: logo, burger, dropdown stacked. */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-brand); color: var(--color-on-brand); }
.site-header__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: start; min-height: 50px; }
.site-header__brand { padding: var(--gutter); }
.site-header__brand img { width: 300px; height: auto; }
.site-header__menu { display: none; }
.site-nav { padding: var(--gutter); min-width: 0; }

/* === Component: site-nav (Elementor Pro nav-menu look: white Marcellus SC, 2px underline on hover/active) === */
.site-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; list-style: none; margin: 0; padding: 0; }
.site-nav__list > li:not(:last-child) { margin-right: 10px; }
.site-nav a { position: relative; display: block; padding: 13px 20px; line-height: 20px; font-size: 16px; color: var(--color-on-brand); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-on-brand); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { opacity: 1; }

/* Burger toggle (Elementor menu toggle: 22px icon on the bar colour) */
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 3px; background: var(--color-brand); color: var(--color-on-brand); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.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 { align-items: center; }
  .site-header__menu { display: flex; justify-content: flex-end; padding: 0 var(--gutter); }
  /* Dropdown: full-width row under the bar, slides open (grid 0fr -> 1fr; align-items: stretch keeps it clipped) */
  .site-nav { grid-column: 1 / -1; padding: 0; display: grid; grid-template-rows: 0fr; align-items: stretch; 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); }
  .site-nav__inner { min-height: 0; overflow: hidden; }
  .site-nav__list { display: block; padding: 0 var(--gutter) var(--gutter); }
  .site-nav__list > li:not(:last-child) { margin-right: 0; }
  .site-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 20px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--color-menu-active-bg); }
}
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 1fr; }
  .site-header__menu { min-height: 63px; align-items: center; }
}

/* === Component: hero (full-height photo with the monogram logo and a down chevron) === */
.hero { position: relative; min-height: 100vh; padding: var(--gutter); background-position: center center; background-repeat: no-repeat; background-size: cover; text-align: center; }
.hero__logo { padding-top: 10%; margin-bottom: var(--widget-gap); line-height: 0; }
.hero__logo img { display: inline-block; width: 600px; }
.hero__down { padding-top: 10%; line-height: 0; }
.hero__down img, .hero__down a { display: inline-block; vertical-align: top; }
.hero__down a { min-width: 44px; min-height: 44px; }
.hero--home { background-image: url("/wp-content/uploads/2018/06/home-section.jpg"); }
.hero--standard { background-image: url("/wp-content/uploads/2018/06/standard-section.jpg"); }
.hero--gallery { background-image: url("/wp-content/uploads/2018/06/gallery-section.jpg"); }
.hero--contact { background-image: url("/wp-content/uploads/2018/06/contact-section.jpg"); }
@media (max-width: 767px) {
  .hero { min-height: 0; }
}

/* === Component: section-title (H2s; sizes per page as on the original) === */
.section-title--pad { padding-top: 20px; }                       /* Elementor widget padding-top */
.section-title--welcome { font-size: 35px; line-height: 1.25; }
.section-title--about { font-size: 26px; }
.section-title--chef { font-size: 36px; }
.section-title--gallery { font-size: 44px; }
.section-title--reviews { font-size: 42px; }
.section-title--contact { font-size: 40px; }
@media (max-width: 479px) {
  .section-title--about { font-size: 20px; }
}

/* === Component: intro-logo (colour logo above the home welcome text) === */
.intro-logo { margin-bottom: var(--widget-gap); }
.intro-logo img { width: 220px; }

/* === Component: image-band (full-width photo strip, 420px) === */
.image-band { height: 420px; background-position: center center; background-repeat: no-repeat; background-size: cover; }
.image-band--bg01 { background-image: url("/wp-content/uploads/2018/06/bg01.jpg"); }
.image-band--bg02 { background-image: url("/wp-content/uploads/2018/06/bg02.jpg"); box-shadow: inset 0 0 10px 0 rgb(0 0 0 / 0.5); }

/* === Component: map (keyless Google Maps iframe; restored from the archive) === */
.map { display: block; width: 100%; height: 400px; border: 0; }

/* === Component: gallery-grid (2x2, single column on mobile; no links, as the original) === */
/* Source order is column by column (01, 03 | 02, 04) as on the original, so mobile stacks 01, 03, 02, 04. */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; grid-auto-flow: column; gap: var(--widget-gap); padding: var(--gutter); }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 767px) {
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* === Component: review (name, date, quote; thin rules between) === */
.review { width: min(560px, 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: var(--gutter); text-align: center; }
.review__name { font-weight: 600; margin: 0 0 24px; }
.review__date { color: var(--color-text-muted); font-size: 0.9em; font-style: italic; font-weight: 300; }
.review__text { margin: 0; }
.review-divider { height: 0; margin: 15px 0 35px; border: 0; border-top: 1px solid var(--color-divider); }

/* === Component: site-footer (centred copyright line + Powered by OrderYOYO) === */
.site-footer { background: var(--color-bg); padding: 30px var(--gutter) 10px; text-align: center; color: var(--color-brand); }
.site-footer p { margin: 0 0 24px; }
.site-footer a { color: var(--color-brand); }

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

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