/*
 * site.css: the only stylesheet for kikichinese.co.uk (Kiki Chinese, Doncaster).
 * Same App4 2021 one-page template as indiancuisine4u.co.uk; values from the live
 * Elementor CSS (post-14.css) and computed styles, 2026-10-28.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (custom properties)
 *   2. Fonts         @font-face for the self-hosted fonts
 *   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; hero, about and menu sections stack)
 *   desktop  ≥ 1025px
 *   1025–1140px  hero columns 60/40 (text/image) instead of 40/60
 *   ≥ 1200px  about text card pulled up 150px over the photo
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (Elementor kit globals used by the page) */
  --color-brown: #4b3a32;          /* text, headings, primary buttons, burger */
  --color-peach: #de9f76;          /* accent words, about buttons, card links, social icons */
  --color-peach-soft: rgb(222 159 118 / 0.4); /* social icon circles */
  --color-white: #ffffff;
  --color-black: #000000;          /* notice bar */
  --shadow-card: 0 0 4px 0 rgb(0 0 0 / 0.15);
  --shadow-dropdown: 0 0 10px 0 rgb(0 0 0 / 0.5);

  /* Typography */
  --font-body: "Space Grotesk", Arial, sans-serif;
  --font-notice: "Roboto", Arial, sans-serif;
  --text-display: 74px;      /* hero heading 74px/100px (36px/60px 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 300–700.
 * The original asks for weight 200 in places; Space Grotesk's lightest is 300, so both render 300. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-latin-variable.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
/* Roboto (Google Fonts, Apache 2.0), latin subset, variable; used only by the notice bar (400) */
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-variable.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-behavior: smooth; }
/* Faint vertical guide lines behind the whole page (theme decoration) */
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: normal; color: var(--color-brown); background: var(--color-white) url("/wp-content/uploads/2021/09/Lines-2.png") center / cover no-repeat; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-body); color: var(--color-brown); }
a { color: var(--color-brown); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-peach); outline-offset: 2px; }
.accent { color: var(--color-peach); }

/* ============ 4. Layout ============ */
/* Elementor-style boxed container: content width; columns carry their own 10px gutter */
.container { width: 100%; max-width: 1140px; margin-inline: auto; }

/* ============ 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: masthead (logo, main nav, header buttons) ===
 * Static header (not sticky). Logo | nav | buttons spread with space-between;
 * on mobile the buttons wrap to their own row under the logo. */
.masthead { position: relative; z-index: 10; }
.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 (max-width: 767px) {
  .masthead .button-group { margin-top: 20px; }
}

/* === Component: site-nav (horizontal ≥1025px; burger + full-width dropdown ≤1024px) === */
.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: 400; line-height: 20px; color: var(--color-brown); text-decoration: none; }
.nav-toggle { display: none; align-items: center; justify-content: center; margin-left: auto; padding: 0.25em; border: 0; border-radius: 3px; background: var(--color-brown); color: var(--color-white); 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: flex; }
  /* The dropdown is stretched to the full page width and overlays the content below the
   * toggle (Elementor "full width: stretch"): absolutely positioned against .masthead,
   * vertically at its static position under the toggle. Slides open with a grid row. */
  .site-nav__panel { position: absolute; left: 0; right: 0; z-index: 20; display: grid; grid-template-rows: 0fr; align-items: stretch; margin-top: 10px; background: var(--color-white); box-shadow: var(--shadow-dropdown); 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; 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; } /* 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-brown); }
}
@media (max-width: 767px) {
  .nav-toggle { font-size: 28px; }
}

/* === Component: button / button-group (Elementor Extras button groups, rebuilt) ===
 * No hover change on the original (colours stay the same). */
.button-group { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 25px; border: 1px solid var(--color-brown); border-radius: var(--radius-button); background: var(--color-white); color: var(--color-brown); font-size: 1.25rem; font-weight: 500; line-height: 20px; text-decoration: none; transition: all var(--duration-button) ease-in-out; }
.button--solid { background: var(--color-brown); color: var(--color-white); }
.button-group--header .button--solid { border-color: var(--color-white); }
.button--peach { border-color: var(--color-peach); color: var(--color-peach); }
.button--peach-solid { border-color: var(--color-peach); background: var(--color-peach); color: var(--color-white); }
@media (max-width: 767px) {
  .button { font-size: 16px; line-height: 16px; }
}

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

/* === Component: notice-bar (black full-width announcement under the header) === */
.notice-bar { background: var(--color-black); }
.notice-bar__inner { max-width: 1140px; margin-inline: auto; padding: 10px; }
.notice-bar p { margin: 16px 0; font-family: var(--font-notice); font-size: 16px; font-weight: 400; text-align: center; color: var(--color-white); text-shadow: 0 0 10px rgb(0 0 0 / 0.3); }

/* === Component: hero (text left, dish image right on a dark quarter circle) === */
.hero { overflow: hidden; background: url("/wp-content/uploads/2021/09/Background-Circle-1.png") right center / auto no-repeat; }
.hero__inner { display: flex; max-width: 1440px; margin-inline: auto; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; flex: 0 0 40%; margin-top: 100px; padding-left: 100px; } /* flex column: child margins add up, as in Elementor */
.hero__title { margin-bottom: 20px; font-size: var(--text-display); font-weight: 500; line-height: 100px; }
.hero__note { margin-top: 30px; font-size: 1.2rem; font-weight: 200; line-height: 1.4; }
.hero__media { flex: 0 0 60%; padding: 10px; }
.hero__media img { margin: 100px auto 0; }
@media (max-width: 1140px) {
  .hero__text { flex-basis: 60%; }
  .hero__media { flex-basis: 40%; }
}
@media (max-width: 1024px) {
  .hero { background-image: url("/wp-content/uploads/2021/09/Lines.png"); }
  .hero__inner { display: block; }
  .hero__text { margin-top: 0; padding: 20px; }
  .hero__media { padding: 0; }
  .hero__media img { max-width: 500px; margin-top: 0; }
}
@media (max-width: 767px) {
  .hero { padding: 50px 10px 0; }
  .hero__text { padding: 0; }
  .hero__title { font-size: 36px; line-height: 60px; }
  .hero__text .button-group { margin-top: 20px; }
  .hero__note { font-size: 26px; }
  .hero__media { margin-top: 20px; }
  /* the plate keeps its 500px size and is clipped at the right edge (no sideways scroll) */
  .hero__media img { width: 500px; max-width: none; margin-left: 0; }
}

/* === Component: about (heading, wide photo, white text card, buttons) === */
.about__inner { max-width: 1200px; margin-inline: auto; padding: 10px; }
.about__image { width: 100%; margin-bottom: 20px; }
.about__body { position: relative; display: flex; max-width: 1100px; margin-inline: auto; } /* positioned so the card paints above the photo it overlaps */
.about__card-col { flex: 0 0 46.228%; }
.about__card { padding: 50px 40px; background: var(--color-white); box-shadow: var(--shadow-card); font-size: 18px; font-weight: 200; line-height: 1.6; }
.about__actions { display: flex; flex: 0 0 53.772%; align-items: center; justify-content: flex-end; margin-top: 70px; padding: 10px; }
@media (min-width: 1200px) {
  .about__body { position: relative; top: -150px; }
}
@media (max-width: 1024px) {
  .about__body { display: block; margin-top: -100px; }
  .about__card-col { padding: 20px; }
  .about__actions { margin-top: 0; padding: 0; }
}
@media (max-width: 767px) {
  .about { padding-top: 50px; }
  .about__card { padding: 5px 20px; }
  .about__actions { margin-top: 20px; }
}

/* === Component: menu-section (chef image left; heading + category cards right) === */
.menu-section__inner { display: flex; max-width: 1200px; margin-inline: auto; }
.menu-section__image { display: flex; flex: 0 0 50%; align-items: center; justify-content: center; padding: 10px; }
.menu-section__body { display: flex; flex-direction: column; flex: 0 0 50%; padding-left: 50px; } /* flex column: child margins add up (no collapsing), as in Elementor */
@media (max-width: 1024px) {
  .menu-section__inner { display: block; }
}
@media (max-width: 767px) {
  .menu-section { padding: 0 20px; }
  .menu-section__body { padding-left: 0; }
}

/* === Component: category-grid + category-card (menu categories linking to online ordering) === */
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 10px; margin-top: 40px; padding-right: 10px; }
.category-card { padding: 25px; box-shadow: var(--shadow-card); }
.category-card__title { font-size: var(--text-card-title); font-weight: 500; line-height: 30px; }
.category-card__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 15px; font-size: 16px; font-weight: 600; line-height: 1; color: var(--color-peach); text-decoration: none; }
.category-card__link svg { width: 14px; height: 16px; fill: currentColor; }
@media (max-width: 767px) {
  .category-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 0; padding: 0 0 10px; }
}

/* === Component: app-promo (download the app: text + badges, phones image) === */
.app-promo { padding-top: 150px; }
.app-promo__inner { display: flex; max-width: 1140px; margin-inline: auto; }
.app-promo__text { display: flex; flex-direction: column; justify-content: center; flex: 0 0 50%; padding: 10px; }
.app-promo__lead { margin: 0 0 20px; font-size: 18px; font-weight: 200; line-height: 32px; }
.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__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, copyright + social 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: 25% 25% 27.456% 22.522%; max-width: 1140px; margin-inline: auto; }
.site-footer__col { display: flex; flex-direction: column; padding: 10px; } /* flex column: child margins add up (no collapsing), as in Elementor */
.site-footer__title { margin-bottom: 20px; font-size: var(--text-footer-title); font-weight: 500; line-height: 22px; }
.site-footer__links { list-style: none; margin: 20px 0 0; padding: 0; }
.site-footer__links li { padding-bottom: 10px; }
.site-footer__links li + li { margin-top: 10px; }
.site-footer__links li:last-child { padding-bottom: 0; }
.site-footer__links a { display: block; font-size: 18px; color: var(--color-brown); text-decoration: none; }
.site-footer__text { margin-top: 20px; font-size: 18px; line-height: 37px; }
.site-footer__text p { margin: 0 0 18px; }
.site-footer__badges { display: block; align-self: flex-start; padding-top: 20px; }
.site-footer__bar { display: grid; grid-template-columns: 1fr 1fr; align-items: start; max-width: 1140px; margin: 70px auto 0; padding-bottom: 70px; }
.site-footer__copyright { margin: 0; padding: 26px 10px; font-size: 16px; font-weight: 500; line-height: 37px; }
.site-footer__copyright a { color: inherit; text-decoration: none; }
.social-icons { display: flex; justify-content: flex-end; gap: 10px; list-style: none; margin: 0; padding: 10px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-peach-soft); color: var(--color-peach); }
.social-icons svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 1024px) {
  .site-footer__main { padding: 100px 50px 50px; }
  .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; }
  /* Elementor line-height 0 quirk on the original: links sit 20px apart */
  .site-footer__links a { font-size: 16px; line-height: 0; }
  .site-footer__text { margin-top: 0; font-size: 16px; line-height: 1.4; }
  .site-footer__text p { margin: 16px 0; }
  .site-footer__bar { grid-template-columns: 1fr; }
  .site-footer__copyright { line-height: 1.4; }
  .social-icons { gap: 20px; }
}

/* === 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 p { margin: 0 0 24px; font-size: 18px; line-height: 1.6; }
.not-found .button-group { justify-content: center; }
.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: 500; color: var(--color-brown); text-decoration: none; }
.not-found__links a:hover { color: var(--color-peach); }

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