/*
 * site.css: the only stylesheet for easterntandoori.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        sidebar offset, split rows, panels
 *   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 CSS; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   Desktop: the header is a fixed 360px sidebar on the left and the page sits beside it.
 *   Tablet/mobile: the header is static at the top with a hamburger dropdown.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.box--offers) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's Elementor CSS) */
  --color-text: #1d1d1b;          /* body copy */
  --color-text-header: #1d1d1d;   /* sidebar phone/address */
  --color-navy: #344953;          /* box borders, dark panels, subheadings */
  --color-blue: #335e75;          /* nav links, "TO" dividers */
  --color-blue-faded: rgb(51 94 117 / 0.37); /* nav hover / active (#335E755E) */
  --color-sand: #e8e0d4;          /* sidebar + backdrop panels */
  --color-white: #ffffff;
  --color-dropdown-text: #33373d; /* mobile dropdown links */
  --color-dropdown-hover: #55595c;

  /* Typography */
  --font-body: "League Spartan", sans-serif;
  --font-accent: "Amaranth", sans-serif;
  --weight-light: 300;
  --weight-heading: 700;          /* original asked for 600, which resolved to the Bold file */
  --text-body: 20px;
  --leading: 1.6;

  /* Layout */
  --sidebar-width: 360px;
  --box-border: 5px solid var(--color-navy);
  --radius: 3px;

  /* Motion (Elementor default transitions) */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (OFL), latin subset. League Spartan is the variable font (300-700). */
@font-face { font-family: "League Spartan"; src: url("/assets/fonts/league-spartan-latin-variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Amaranth"; src: url("/assets/fonts/amaranth-400-latin.woff2") format("woff2"); font-weight: 400; 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-weight: var(--weight-light); font-size: 16px; line-height: var(--leading); color: var(--color-text); background: var(--color-white); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
p { margin: 0; }
a { color: inherit; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 2px; }

/* ============ 4. Layout ============ */
/* The page sits to the right of the fixed sidebar header on desktop. */
@media (min-width: 1025px) {
  body { margin-left: var(--sidebar-width); }
}

/* Split row: two columns on desktop, stacked below 1025px. Column widths via modifiers. */
.split { display: flex; flex-wrap: wrap; }
.split > * { width: 100%; }
@media (min-width: 1025px) {
  .split--two-thirds > :first-child { width: 66.94%; }
  .split--two-thirds > :last-child { width: 33.06%; }
  .split--third-first > :first-child { width: 33.06%; }
  .split--third-first > :last-child { width: 66.94%; }
  .split--halves > * { width: 50%; }
}

/* Backdrop panel: sand colour + backdrop texture with an 86% sand wash (Elementor overlay). */
.backdrop { position: relative; isolation: isolate; background-color: var(--color-sand); background-image: url("/wp-content/uploads/2021/10/backdrop.jpg"); }
.backdrop--cover { background-size: cover; }
.backdrop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--color-sand); opacity: 0.86; }

/* Photo panel: background image, cover, with a 40% black overlay. */
.photo-panel { position: relative; isolation: isolate; background-position: center; background-repeat: no-repeat; background-size: cover; }
.photo-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #000; opacity: 0.4; }

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

/* === Component: skip-link === */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; padding: 0.5rem 1rem; background: var(--color-white); color: var(--color-text); }
.skip-link:focus { left: 1rem; }

/* === Component: site-header ===
 * Desktop (>= 1025px): fixed 360px sidebar, full viewport height; logo, vertical nav and
 * phone/address spread with space-between inside 80px/30px padding.
 * Tablet/mobile: static block at the top; logo full width, hamburger below it (left on
 * tablet, centred on mobile); the menu drops down over the page, full width, white.
 */
.site-header { position: relative; z-index: 1000; background: var(--color-sand); }
.site-header__inner { display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 80px 30px; }
.site-header__logo { display: block; width: 100%; }
.site-header__logo img { width: 100%; }
.site-header__info { width: 100%; text-align: center; font-size: 16px; font-weight: var(--weight-light); line-height: 24px; color: var(--color-text-header); }
.site-header__info p { margin: 0; }

.site-nav__list { list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; font-family: var(--font-accent); font-size: 20px; font-weight: 400; line-height: 20px; text-transform: uppercase; text-decoration: none; }

.nav-toggle { display: none; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; border: 0; border-radius: var(--radius); background: rgb(0 0 0 / 0.05); color: var(--color-dropdown-text); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.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 (min-width: 1025px) {
  .site-header { position: fixed; top: 0; left: 0; width: var(--sidebar-width); height: 100vh; overflow-y: auto; }
  .site-header__inner { min-height: 100vh; }
  .site-header__logo { margin-bottom: 20px; }
  .site-nav { width: 100%; margin-bottom: 20px; }
  .site-nav__list { text-align: center; }
  .site-nav__list li:not(:last-child) { margin-bottom: 50px; }
  .site-nav__list a { color: var(--color-blue); }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-blue-faded); }
}

@media (max-width: 1024px) {
  .site-header__inner { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: flex-start; padding: 30px; }
  .site-header__info { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown: absolute under the toggle (10px gap), full width, grid 0fr -> 1fr slide.
     align-items: stretch keeps the list clipped while it animates. */
  .site-nav { position: absolute; top: calc(100% - 20px); left: 0; right: 0; z-index: 9997; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-white); visibility: hidden; transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav.is-instant { transition: none; }
  .site-nav__list { min-height: 0; overflow: hidden; }
  .site-nav__list a { padding: 10px 20px; color: var(--color-dropdown-text); }
  .site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a.is-active { color: var(--color-white); background: var(--color-dropdown-hover); }
}
@media (max-width: 767px) {
  .site-header__inner { justify-content: center; }
  .site-header__logo { margin-bottom: 20px; }
}

/* === Component: box (white card with navy 5px border, used for every content block) === */
.box { background: var(--color-white); border: var(--box-border); border-radius: var(--radius); padding: 60px; text-align: center; }
.box--roomy { padding: 100px; }
.box__body { padding: 10px; } /* Elementor column gap inside each box */
@media (max-width: 1024px) { .box--roomy { padding: 60px; } }
@media (max-width: 767px) { .box, .box--roomy { padding: 30px; } }

/* === Component: section-title (League Spartan 30px bold caps) === */
.section-title { font-family: var(--font-body); font-size: 30px; font-weight: var(--weight-heading); line-height: 1; letter-spacing: 2px; text-transform: uppercase; color: var(--color-text); }
.section-title--light { color: var(--color-white); line-height: 40px; }

/* === Component: kicker (Amaranth 15px caps subheading, h5 in the original) === */
.kicker { font-family: var(--font-accent); font-size: 15px; font-weight: 400; line-height: 1; letter-spacing: 1px; text-transform: uppercase; color: var(--color-navy); }
.kicker--blue { color: var(--color-blue); }

/* Title followed by a kicker: 10px spacer, as in the original. */
.section-title + .kicker { margin-top: 10px; }

/* === Component: copy (League Spartan Light 20px / 1.6, max 58ch) === */
.copy { display: flow-root; max-width: 58ch; margin-inline: auto; font-size: var(--text-body); font-weight: var(--weight-light); line-height: var(--leading); }
.copy p { margin: 20px 0; }
.copy--flush p { margin: 0; }
.copy--light { color: var(--color-white); margin-inline: 0; }

/* === Component: welcome-to ("WELCOME" / ——— TO ——— lockup) === */
.welcome-to__row { display: flex; align-items: center; justify-content: center; margin-top: 10px; }
.welcome-to__line { width: 40px; border-top: 1px solid var(--color-blue); }
.welcome-to__row .kicker { margin: 0 20px; }

/* === Component: text-link-button ("View Menu": transparent, Amaranth 20px caps) === */
.text-button { display: block; width: fit-content; margin-inline: auto; font-family: var(--font-accent); font-size: 20px; font-weight: 400; line-height: 20px; text-transform: uppercase; color: var(--color-navy); text-decoration: none; border-radius: var(--radius); }
.text-button:hover { color: var(--color-navy); }

/* === Component: stacked-images (column of full-width photos) === */
.stacked-images img { width: 100%; }
@media (max-width: 1024px) { .stacked-images__extra { display: none; } }

/* === Component: map (keyless Google Maps iframe, greyscale like the original) === */
.map { display: block; width: 100%; max-width: 450px; height: 190px; margin-inline: auto; border: 0; filter: grayscale(1); }

/* === Component: rg-badge (Restaurant Guru provider embed, fixed bottom-right) === */
.rg-badge { position: fixed; right: 32px; bottom: 32px; z-index: 20; }

/* === Component: site-footer (allergy panel + "Powered by OrderYOYO" credit) === */
.site-footer__allergies { background: var(--color-navy); padding: 60px 100px; display: flex; flex-direction: column; justify-content: center; }
.site-footer__allergies .section-title { margin-bottom: 20px; }
.site-footer__allergies .copy { max-width: none; }
.site-footer__credit { position: relative; z-index: 20; background: var(--color-white); padding: 30px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.site-footer__credit-label { margin: 0 0 20px; font-size: 16px; font-weight: var(--weight-light); line-height: var(--leading); color: var(--color-text); }
.site-footer__credit-brand { font-family: var(--font-body); font-size: 30px; font-weight: 500; line-height: 50px; letter-spacing: 0.5px; color: var(--color-text); text-decoration: none; }
.site-footer__credit-brand:hover { color: var(--color-navy); }
@media (max-width: 1024px) { .site-footer__allergies { padding: 60px; } }
@media (max-width: 767px) { .site-footer__allergies { padding: 30px; } }

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

/* === Page: / (home) === */
.hero { min-height: 100vh; background-image: url("/wp-content/uploads/2021/10/hero-image.jpg"); }
@media (max-width: 1024px) { .hero { min-height: 600px; } }
@media (max-width: 767px) { .hero { min-height: 400px; } }

.about__panel { display: flex; align-items: center; justify-content: center; padding: 100px; }
.about__panel .box { width: 100%; }
.about__logo { width: 200px; margin: 20px auto 40px; }
.about__copy { margin-top: 0; }
@media (max-width: 1024px) { .about__panel { padding: 60px; } }
@media (max-width: 767px) { .about__panel { padding: 30px; } }

.spice { min-height: 680px; background-image: url("/wp-content/uploads/2021/10/spice-image.jpg"); }
@media (max-width: 767px) { .spice { min-height: 300px; } }

.menu-cta { padding: 100px 0; }
.menu-cta__inner { max-width: 600px; margin-inline: auto; padding: 10px; }
.menu-cta__icon { margin: 10px auto 20px; }
@media (max-width: 1024px) { .menu-cta { padding: 60px; } .menu-cta__inner { padding: 0; } }
@media (max-width: 767px) { .menu-cta { padding: 30px; } }

.app { display: flex; align-items: center; min-height: 620px; background: var(--color-navy) url("/wp-content/uploads/2021/10/devices.png") no-repeat right center / 48% auto; }
.app__text { width: 50.375%; padding: 100px; }
.app__text > * + * { margin-top: 20px; }
.app__text .copy { max-width: 58ch; }
.app__badges { width: 230px; }
@media (max-width: 1024px) { .app { min-height: 0; background-size: 45% auto; } .app__text { width: 65%; padding: 60px; } }
@media (max-width: 767px) { .app { background-size: 0 auto; } .app__text { width: 100%; padding: 30px; } }

.deals { padding: 100px 0; }
.deals__inner { max-width: 1200px; margin-inline: auto; display: flex; flex-wrap: wrap; align-items: flex-start; }
.deals__col { width: 50%; padding: 30px; }
.box--offers { min-height: 852px; }
@media (max-width: 1024px) { .deals { padding: 60px; } .deals__col { width: 100%; } .box--offers { min-height: 0; } }
@media (max-width: 767px) { .deals { padding: 0; } }

.banner img { width: 100%; }

.contact__panel { display: flex; align-items: center; justify-content: center; padding: 100px; }
.contact__panel .box { width: 100%; }
.contact .section-title { margin-top: 20px; }
@media (max-width: 1024px) {
  .contact { flex-direction: column-reverse; }
  .contact__panel { padding: 60px; }
}
@media (max-width: 767px) { .contact__panel { padding: 30px; } }

/* === Page: /404.html === */
.not-found { min-height: 70vh; display: flex; align-items: center; justify-content: center; }
.not-found .menu-cta__inner { width: 100%; }
.not-found__links { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; }
.not-found__links a { font-family: var(--font-accent); font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--color-blue); text-decoration: none; }
.not-found__links a:hover { color: var(--color-blue-faded); }
.not-found .copy p { margin: 20px 0; }

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

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