/*
 * site.css: the only stylesheet for this site (tandoorimahalwishaw.co.uk, Tandoori Mahal Wishaw).
 *
 * 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, Elementor-style columns
 *   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 used by the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   The nav becomes a burger + dropdown at <= 1024px; columns stack at <= 767px;
 *   hero photos are background-attachment: fixed at >= 1025px only. Boxed container 1140px.
 *
 * Source of the values: the Elementor CSS of the last working Internet Archive copy
 * (discovery/archive/post-14-archive.css, global-archive.css) and its computed styles.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.band--hero) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-red: #ad1b16;        /* header, text bands, contact, footer */
  --color-yellow: #e7cd44;     /* button borders, nav underline, active dropdown item */
  --color-dropdown: #aa433a;   /* mobile/tablet dropdown menu */
  --color-white: #ffffff;      /* headings, nav, buttons */
  --color-text: #fafafa;       /* body copy */
  --color-overlay: rgb(0 0 0 / 0.4); /* over hero photos */

  /* Typography */
  --font-body: "Roboto", Arial, sans-serif;
  --font-contact: Helvetica, Arial, sans-serif; /* contact details, as the original */
  --text-base: 16px;
  --text-heading: 24px;        /* Elementor default h2 in this kit */
  --text-hero: 68px;           /* hero headings, line-height 110px */
  --text-hero-mobile: 26px;    /* line-height 42px */
  --text-button: 20px;
  --text-button-mobile: 16px;
  --text-nav: 16px;
  --text-dropdown: 13px;

  /* Spacing and shape */
  --col-pad: 10px;             /* Elementor default column gap */
  --widget-gap: 20px;          /* Elementor space between widgets */
  --band-pad: 110px;           /* text bands, top and bottom */
  --container: 1140px;

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

/* ============ 2. Fonts ============ */
/* Roboto (Google Fonts, SIL OFL), self-hosted latin subset; one variable file covers weights 400-700. */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-variable.woff2") format("woff2"); font-weight: 400 700; 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: var(--text-base); line-height: normal; color: var(--color-text); background: var(--color-red); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-body); font-weight: 600; line-height: 1; margin: 0; color: var(--color-white); }
h2 { font-size: var(--text-heading); }
p { margin: 16px 0; }
a { color: inherit; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-yellow); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* Boxed container: 1140px max; below that it is full width (Elementor), columns add 10px padding. */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.cols { display: flex; flex-wrap: wrap; }
.col { flex: 1 1 0; min-width: 0; padding: var(--col-pad); }
@media (max-width: 767px) {
  .cols--stack { display: block; }
}

/* Widgets stacked in a column are 20px apart (Elementor), except the last. */
.stack > * + * { margin-top: var(--widget-gap); }
.text { display: flow-root; }

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

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

/* === Component: site-header (red bar: nav left, logo right; not sticky, as the original) === */
.site-header { position: relative; z-index: 10; background: var(--color-red); }
.site-header__inner { position: relative; display: flex; }
.site-header__nav-col { width: 83.86%; display: flex; align-items: center; padding: var(--col-pad); }
.site-header__logo-col { width: 16.14%; padding: var(--col-pad); }
.site-header__logo { width: 100%; max-width: 900px; margin-inline: auto; }
@media (max-width: 1024px) {
  .site-header__nav-col { width: 70%; }
  .site-header__logo-col { width: 30%; }
  .site-header__logo { width: 205px; }
}
@media (max-width: 767px) {
  .site-header__logo { width: 90px; }
}

/* === Component: nav (Elementor Pro nav menu, restored from the Internet Archive copy) === */
/* Desktop: horizontal, uppercase, yellow underline that fades in on hover and on the current page. */
.nav-toggle { display: none; margin-left: auto; min-width: 44px; min-height: 44px; padding: 0; align-items: center; justify-content: center; background: transparent; border: 0; color: var(--color-white); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
.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; }
.site-nav__list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav a { position: relative; display: block; padding: 13px 20px; font-size: var(--text-nav); font-weight: 600; line-height: 20px; letter-spacing: 0.3px; text-transform: uppercase; color: var(--color-white); text-decoration: none; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-yellow); 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; }

/* Tablet and mobile: burger; the dropdown drops over the page from the top of the toggle
   (+30px tablet, +10px mobile), as the archive copy rendered it. */
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: absolute; top: 63px; left: var(--col-pad); z-index: 20; background: var(--color-dropdown); transform: scaleY(0); transform-origin: top; visibility: hidden; transition: transform var(--duration) var(--ease), visibility 0s linear var(--duration); }
  .site-nav.is-open { transform: scaleY(1); visibility: visible; transition: transform var(--duration) var(--ease); }
  .site-nav__list { display: block; }
  .site-nav a { padding: 26px 20px; font-size: var(--text-dropdown); font-weight: 500; letter-spacing: normal; text-transform: none; transition: background-color var(--duration) var(--ease); }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { background: var(--color-yellow); }
}
@media (max-width: 767px) {
  .nav-toggle { margin-block: -2.5px; } /* 44px tap target without making the bar taller than the original 39px toggle */
  .site-nav { top: 20px; }
}

/* === Component: button (transparent, yellow 3px border, shrinks on hover) === */
.button { display: inline-block; padding: 12px 24px; border: 3px solid var(--color-yellow); border-radius: 0; background: transparent; color: var(--color-white); font-size: var(--text-button); font-weight: 500; line-height: 1; text-transform: uppercase; text-decoration: none; transition: transform var(--duration); }
.button:hover, .button:focus-visible { transform: scale(0.9); }
@media (max-width: 767px) {
  .button { font-size: var(--text-button-mobile); }
}

/* === Component: hero band (600px photo band, dark overlay, big uppercase heading + button) === */
.hero-band { position: relative; display: flex; align-items: center; min-height: 600px; background-color: var(--color-red); background-position: center center; background-size: cover; text-align: center; }
.hero-band::before { content: ""; position: absolute; inset: 0; background: var(--color-overlay); }
.hero-band > .container { position: relative; }
.hero-band__heading { font-size: var(--text-hero); line-height: 110px; text-transform: uppercase; }
.hero-band--food { background-image: url("/wp-content/uploads/2019/06/shutterstock_754732342.jpg"); }
.hero-band--curry { background-image: url("/wp-content/uploads/2019/06/tandoori-mahal-replacement.jpg"); }
.hero-band--balti { background-image: url("/wp-content/uploads/2019/06/iStock_14451815_XLARGE.jpg"); }
@media (min-width: 1025px) {
  .hero-band { background-attachment: fixed; }
}
@media (max-width: 767px) {
  .hero-band__heading { font-size: var(--text-hero-mobile); line-height: 42px; }
}

/* === Component: text band (red band, 110px padding, centred heading + copy) === */
.text-band { padding: var(--band-pad) 16px; background: var(--color-red); text-align: center; }
.text-band--narrow > .container { max-width: 500px; }
.text-band__copy { font-size: var(--text-base); line-height: 26px; letter-spacing: 0.2px; }

/* === Component: cards (two image cards: photo, heading, copy, button) === */
.card__image { width: 100%; max-width: 627px; margin-inline: auto; }
@media (max-width: 767px) {
  .cards > .col + .col { margin-top: 42px; }
}

/* === Component: contact (map left, details right; anchor #contact) === */
.contact { background: var(--color-red); }
.contact > .cols > .col { flex: 0 0 50%; }
.contact__map-col { padding: 0; }
.contact__details-col { display: flex; flex-direction: column; justify-content: center; padding: 0; }
.contact__details { margin: 42px; padding: var(--col-pad); }
.contact__text { font-family: var(--font-contact); line-height: 16px; letter-spacing: 0.2px; }

/* === Component: map (keyless Google Maps iframe, 600px tall like the original) === */
.map { display: block; width: 100%; height: 600px; border: 0; }

/* === Component: contact-email (replaces WordPress forms: a mailto button + visible address) ===
   Not used on this site: the original form had no recipient and the site shows no email
   (see SITE.md). Kept for a future form replacement, styled to sit in the contact column. */
.contact-email { display: grid; gap: var(--widget-gap); justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Component: site-footer (red credit band) === */
.site-footer { padding: 16px; background: var(--color-red); text-align: center; }
.site-footer > .container { padding: var(--col-pad); }
.site-footer__credit { font-size: var(--text-base); font-weight: 400; line-height: 26px; }
.site-footer__credit a { color: var(--color-white); text-decoration: none; }
.site-footer__credit a:hover { text-decoration: underline; }

/* === Component: error page (404) === */
.error-page { padding: var(--band-pad) 16px; text-align: center; }
.error-page h1 { font-size: var(--text-hero-mobile); line-height: 42px; text-transform: uppercase; }

/* ============ 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; }
  .button:hover, .button:focus-visible { transform: none; }
}
