/*
 * site.css: the only stylesheet for indiancuisine4u.co.uk (Indian Cuisine, Doncaster).
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for the self-hosted font
 *   3. Base          reset and element defaults
 *   4. Layout        shared containers
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules (none: one-page site)
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (from the original Elementor page; media queries can't use custom properties):
 *   mobile   ≤ 767px
 *   tablet   768px–1024px   (burger menu ≤ 1024px)
 *   desktop  ≥ 1025px
 *   ≥ 1200px  header overlays the hero; intro text card pulled up 150px (restored Elementor Pro custom CSS)
 *   ≤ 1366px  hero columns switch to 60/40 (text/image) on tablet and small desktop
 *   ≥ 1440px  header container 1320px, 16px gaps between buttons ("widescreen")
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles / Elementor kit) */
  --color-primary: #ad1c1c;        /* red: top bar, buttons, accents */
  --color-text: #232323;           /* headings and body copy */
  --color-text-muted: #7a7a7a;     /* app section paragraph */
  --color-white: #ffffff;
  --color-nav-dropdown: #494c4f;   /* mobile dropdown links */
  --color-nav-dropdown-active-bg: #55595c;
  --color-toggle-bg: rgb(0 0 0 / 0.05);
  --shadow-card: 0 0 4px 0 rgb(0 0 0 / 0.15);
  --shadow-button-hover: 0 0 10px 0 rgb(173 28 28 / 0.53);

  /* Typography */
  --font-body: "Space Grotesk", Arial, sans-serif;
  --text-display: 3.75rem;   /* hero heading 60px (36px mobile) */
  --text-h2: 2.875rem;       /* section headings 46px (26px mobile) */
  --text-card-title: 24px;
  --text-footer-title: 22px; /* 18px mobile */

  /* Shape and motion */
  --radius-button: 6px;
  --duration-button: 0.2s;
  --duration-menu: 0.3s;
}

/* ============ 2. Fonts ============ */
/* Space Grotesk (Google Fonts, SIL OFL), latin subset, variable 400–600 */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-variable.woff2") format("woff2");
  font-weight: 400 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: normal; color: var(--color-text); background: var(--color-white); }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-body); }
a { color: var(--color-primary); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.accent { color: var(--color-primary); }

/* ============ 4. Layout ============ */
/* Elementor-style boxed containers: content width + 10px inner gutter per column */
.container { width: 100%; max-width: 1140px; margin-inline: auto; }
.container--wide { max-width: 1200px; }

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

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

/* === Component: top-bar (red card-payment notice above the header) === */
.top-bar { padding: 25px; background: var(--color-primary); color: var(--color-white); text-align: center; font-size: 1.2rem; }
.top-bar p { margin: 0; }

/* === Component: masthead (logo, main nav, header buttons) ===
 * ≥1200px it is absolutely positioned over the hero, as on the original. */
.masthead { position: relative; z-index: 1; }
.masthead__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: 1140px; margin-inline: auto; padding: 10px; }
.masthead__logo { display: block; flex: none; }
.masthead__logo img { width: 70px; }
@media (min-width: 1200px) {
  .masthead { position: absolute; left: 0; width: 100%; }
}
@media (min-width: 1440px) {
  .masthead { padding-block: 20px; }
  .masthead__inner { max-width: 1320px; }
}
@media (max-width: 767px) {
  .masthead .button-group { margin-top: 20px; }
}

/* === Component: site-nav (horizontal ≥1025px; burger + dropdown ≤1024px) === */
.site-nav { display: flex; flex-direction: column; align-items: flex-end; }
.site-nav__list { display: flex; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 13px 20px; font-size: 18px; font-weight: 600; line-height: 20px; color: var(--color-text); text-decoration: none; }
.site-nav__list a:hover, .site-nav__list a:focus-visible, .site-nav__list a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle { display: none; align-items: center; justify-content: center; padding: 0.25em; border: 0; border-radius: 3px; background: var(--color-toggle-bg); color: var(--color-nav-dropdown); font-size: 22px; cursor: pointer; }
.nav-toggle svg { width: 1em; height: 1em; 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 (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* The dropdown sits in the header flow under the toggle (as Elementor's did), sliding open */
  .site-nav__panel { display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; transition: grid-template-rows var(--duration-menu) ease, visibility 0s linear var(--duration-menu); }
  .site-nav__panel.is-open { grid-template-rows: 1fr; visibility: visible; margin-top: 10px; transition: grid-template-rows var(--duration-menu) ease, visibility 0s; }
  .site-nav__list { display: block; min-height: 0; overflow: hidden; }
  .site-nav__list a { padding: 12px 20px; color: var(--color-nav-dropdown); background: var(--color-white); } /* 44px rows (tap-target rule; original 40px) */
  .site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-white); background: var(--color-nav-dropdown-active-bg); }
  .site-nav__list a[aria-current="page"] { color: var(--color-white); background: var(--color-nav-dropdown-active-bg); }
}
@media (max-width: 767px) {
  .nav-toggle { font-size: 28px; }
}

/* === Component: button / button-group (Elementor Extras button groups, rebuilt) === */
.button-group { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 30px; border: 1px solid var(--color-primary); border-radius: var(--radius-button); background: var(--color-white); color: var(--color-primary); font-size: 1.25rem; font-weight: 500; line-height: 1; text-decoration: none; box-shadow: var(--shadow-card); transition: box-shadow var(--duration-button) ease-in-out; }
.button:hover, .button:focus-visible { box-shadow: var(--shadow-button-hover); }
.button--solid { background: var(--color-primary); color: var(--color-white); }
.button-group--header .button { border-color: var(--color-white); }
.button-group--right { justify-content: flex-end; }
@media (min-width: 1440px) {
  .button-group { gap: 16px; }
}
@media (max-width: 767px) {
  .button-group { gap: 8px; }
  .button { font-size: 16px; }
  .button-group--header { gap: 7px; }
  .button-group--small .button { font-size: 14px; }
}

/* === Component: section-heading (h2 with a red accent span) === */
.section-heading { margin-bottom: 20px; font-size: var(--text-h2); font-weight: 500; line-height: 1.4; color: var(--color-text); }
@media (max-width: 767px) {
  .section-heading { font-size: 26px; }
}

/* === Component: hero (full-height, text left, plate image right) ===
 * Backgrounds: red half-circle (≥1025px) and herb sprig bottom left (≥768px). */
.hero { position: relative; overflow: hidden; background: url("/wp-content/uploads/2021/09/Background-Circle.png") right center / contain no-repeat, url("/wp-content/uploads/2021/09/image.png") left bottom / auto no-repeat; }
.hero__inner { display: flex; align-items: center; min-height: 100vh; max-width: 1440px; margin-inline: auto; }
.hero__text { flex: 0 0 40%; padding-left: 100px; }
.hero__title { margin-bottom: 20px; padding-bottom: 20px; font-size: var(--text-display); font-weight: 500; line-height: 1.4; }
.hero__media { flex: 0 0 60%; padding: 10px; }
.hero__media img { width: 100%; }
@media (max-width: 1366px) {
  .hero { background-size: auto, auto; }
  .hero__text { flex-basis: 60%; }
  .hero__media { flex-basis: 40%; }
}
@media (max-width: 1024px) {
  .hero { background: url("/wp-content/uploads/2021/09/image.png") left bottom / auto no-repeat; }
  .hero__media { padding: 0; }
  .hero__media img { width: auto; max-width: 500px; }
}
@media (max-width: 767px) {
  .hero { padding: 50px 10px 0; background: none; }
  .hero__inner { display: block; min-height: 0; }
  .hero__text { padding-left: 0; }
  .hero__title { padding-bottom: 0; font-size: 36px; }
}

/* === Component: intro (heading, wide image, white text card, buttons) === */
.intro { background: url("/wp-content/uploads/2021/09/image-1.png") right top / auto no-repeat; }
.intro__inner { max-width: 1200px; margin-inline: auto; padding: 10px; }
.intro__image { width: 100%; }
.intro__body { max-width: 900px; margin: 20px auto 0; padding: 10px; }
.intro__card { padding: 30px 40px; background: var(--color-white); box-shadow: var(--shadow-card); font-size: 18px; line-height: 1.6; }
.intro__card p { margin: 0 0 1.6em; }
.intro__card p:last-child { margin-bottom: 0; }
.intro__body .button-group { margin-top: 40px; }
@media (min-width: 1200px) {
  .intro__body { position: relative; top: -150px; }
}
@media (max-width: 767px) {
  .intro { padding-top: 50px; background: none; }
  .intro__card { padding: 5px 20px; }
}

/* === Component: meals (dish image left; heading + meal-deal cards right) === */
.meals { background: url("/wp-content/uploads/2021/09/Image1.png") right top / auto no-repeat, url("/wp-content/uploads/2021/09/Image2.png") left bottom / auto no-repeat; }
.meals__inner { display: flex; align-items: center; max-width: 1200px; margin-inline: auto; }
.meals__image { flex: 0 0 41.917%; padding: 10px; }
.meals__image img { width: 100%; }
.meals__body { display: flex; flex-direction: column; flex: 0 0 58.083%; padding-left: 50px; }
@media (max-width: 1024px) {
  .meals { background: none; }
  .meals__inner { display: block; }
}
@media (max-width: 767px) {
  .meals { padding: 0 20px; }
  .meals__body { padding-left: 0; }
}

/* === Component: card-grid + deal-card (meal deals and offers) === */
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.deal-card { display: flex; flex-direction: column; box-shadow: var(--shadow-card); background: var(--color-white); }
.deal-card__image { width: 100%; height: 200px; object-fit: cover; object-position: center; }
.deal-card__title { padding: 25px 25px 0; font-size: var(--text-card-title); font-weight: 600; line-height: 30px; }
.deal-card__text { display: flow-root; padding: 0 25px; }
.deal-card__text p { margin: 16px 0; }
.deal-card__link { display: inline-flex; align-self: flex-start; align-items: center; gap: 5px; margin: 0 25px 27px; font-size: 16px; font-weight: 600; line-height: 1; text-decoration: none; }
.deal-card__link svg { width: 14px; height: 16px; fill: currentColor; }
@media (max-width: 767px) {
  .card-grid { grid-template-columns: 1fr; margin-top: 0; }
}

/* === Component: offers (heading + two offer cards) === */
.offers { background: url("/wp-content/uploads/2021/09/Image1.png") right top / auto no-repeat, url("/wp-content/uploads/2021/09/Image2.png") left bottom / auto no-repeat; }
.offers__inner { display: flex; flex-direction: column; max-width: 1200px; margin-inline: auto; padding-left: 50px; }
.offers .card-grid { max-width: 1140px; margin-inline: auto; }
@media (max-width: 1024px) {
  .offers { background: none; }
}
@media (max-width: 767px) {
  .offers { padding: 0 20px; }
  .offers__inner { padding-left: 0; }
  .offers .card-grid { margin-top: 0; }
}

/* === Component: app-promo (download the app: text + badges, phones image) === */
.app-promo { padding-top: 150px; background: url("/wp-content/uploads/2021/09/Image3.png") right center / auto no-repeat, url("/wp-content/uploads/2021/09/Image4.png") left bottom / auto no-repeat; }
.app-promo__inner { display: flex; max-width: 1140px; margin-inline: auto; }
.app-promo__text { flex: 0 0 50%; padding: 10px; }
.app-promo__lead { display: flow-root; margin: 0 0 20px; font-size: 18px; line-height: 1.6; color: var(--color-text-muted); }
.app-promo__lead p { margin: 18px 0; }
.app-promo__badges { display: block; width: fit-content; }
.app-promo__media { flex: 0 0 50%; padding: 10px; }
.app-promo__media img { margin-inline: auto; }
@media (max-width: 1024px) {
  .app-promo { background: none; }
  .app-promo__text { flex-basis: 60%; }
  .app-promo__media { flex-basis: 40%; }
  .app-promo__media img { max-width: 250px; }
}
@media (max-width: 767px) {
  .app-promo { padding: 50px 10px 0; }
  .app-promo__inner { display: block; }
}

/* === Component: site-footer (Company / Get in Touch / Opening Times / Install App + credit bar) === */
.site-footer__main { padding-top: 100px; background: url("/wp-content/uploads/2021/09/Image5.png") right bottom / auto no-repeat; }
.site-footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1140px; margin-inline: auto; }
.site-footer__col { padding: 10px; }
.site-footer__title { margin-bottom: 20px; font-size: var(--text-footer-title); font-weight: 600; line-height: 22px; }
.site-footer__links { list-style: none; margin: 40px 0 0; padding: 0; }
.site-footer__links li + li { margin-top: 20px; }
.site-footer__links a { display: block; font-size: 1.2rem; color: var(--color-text); text-decoration: none; }
.site-footer__text { display: flow-root; margin-top: 40px; font-size: 18px; line-height: 37px; }
.site-footer__text p { margin: 18px 0; }
.site-footer__text p:first-child { margin-top: 0; }
.site-footer__badges { display: block; width: fit-content; margin-top: 40px; }
.site-footer__bar { padding: 15px 10px; text-align: center; font-size: 14px; color: var(--color-text-muted); }
.site-footer__bar p { margin: 0; }
.site-footer__bar a { color: inherit; }
@media (max-width: 1024px) {
  .site-footer__main { padding: 100px 50px 50px; background: none; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .site-footer__main { padding: 50px 0 0; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__title { font-size: 18px; }
  .site-footer__col--links { padding-bottom: 0; }
  .site-footer__links { margin-top: 30px; }
  .site-footer__links li + li { margin-top: 0; }
  .site-footer__links a { font-size: 16px; line-height: 20px; }
  .site-footer__text { margin-top: 0; font-size: 16px; line-height: 1.4; }
  .site-footer__text p, .site-footer__text p:first-child { margin: 16px 0; }
}

/* === Component: contact-email (replaces WordPress forms: mailto button + visible address). Not used: the site had no forms === */
.contact-email { display: grid; gap: 16px; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Component: not-found (404 page) === */
.not-found { padding: 80px 10px 60px; text-align: center; }
.not-found .section-heading { margin-bottom: 20px; }
.not-found p { margin: 0 0 24px; font-size: 18px; line-height: 1.6; }
.not-found .button-group { justify-content: center; gap: 16px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; list-style: none; margin: 32px 0 0; padding: 0; }
.not-found__links a { font-size: 18px; font-weight: 600; color: var(--color-text); text-decoration: none; }
.not-found__links a:hover { color: var(--color-primary); }
/* the header overlays the page top from 1200px (see masthead), so clear it here */
@media (min-width: 1200px) { .not-found { padding-top: 173px; } }
@media (min-width: 1440px) { .not-found { padding-top: 213px; } }

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