/*
 * site.css: the only stylesheet for priyakitchenayr.co.uk (one-page site).
 *
 * 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, sections
 *   5. Components    one block per component: "=== Component: <name> ==="
 *   6. Pages         page-specific rules: "=== Page: / ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (the original's Elementor breakpoints; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   The burger menu is used at ≤ 1024px (Elementor "dropdown: tablet").
 *
 * Values come from the original's computed styles (design-system/orig-measure.txt) and
 * its Elementor CSS (design-system/orig-css/post-14.css, post-4.css).
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-dark: #323232;        /* page background, dark sections, mobile menu panel */
  --color-red: #8b0000;         /* footer background */
  --color-grey: #989898;        /* intro text, "Find Us" heading, mobile menu links */
  --color-white: #ffffff;
  --color-menu-hover: #3f444b;  /* Elementor default dropdown hover */

  /* Background pattern (red paisley, 2160x1163) */
  --pattern: url("/wp-content/uploads/2023/08/header_bg.png");
  --pattern-alt: url("/wp-content/uploads/2023/08/header_bg-1.png");

  /* Typography */
  --font-body: "Poppins", Arial, sans-serif;
  --font-heading: "Germania One", "Baldur", Georgia, serif;   /* replaces the unlicensed Baldur (decision d3) */
  --font-nav: "Concert One", Arial, sans-serif;
  --text-base: 16px;
  --text-intro: 20px;           /* "Who Are We?" text, desktop */
  --text-h2: 57px;              /* section headings */
  --text-h2-sm: 40px;
  --text-tile: 48px;            /* menu tile headings */
  --text-find: 140px;           /* "Find Us" */
  --text-find-sm: 82px;
  --text-footer-heading: 24px;
  --text-nav: 23px;

  /* Spacing and shape */
  --container: 1280px;
  --gutter: 10px;               /* Elementor column padding */
  --section-pad-tablet: 30px;
  --header-height: 66px;

  /* Motion */
  --duration: 300ms;
  --ease: ease;
}
@media (max-width: 1024px) {
  :root { --header-height: 64px; }
}

/* ============ 2. Fonts ============ */
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-300-latin.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Concert One"; src: url("/assets/fonts/concert-one-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Germania One"; src: url("/assets/fonts/germania-one-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-size: var(--text-base); line-height: normal; color: var(--color-white); background: var(--color-dark); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
[id] { scroll-margin-top: var(--header-height); }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.pattern-bg { background-color: var(--color-dark); background-image: var(--pattern); }
.pattern-bg--alt { background-image: var(--pattern-alt); }

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

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

/* === Component: site-header (sticky pattern bar, centred anchor nav) === */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--color-dark) var(--pattern-alt); }
.site-header__inner { position: relative; display: flex; justify-content: center; align-items: stretch; flex-direction: column; padding: 10px var(--gutter); min-height: var(--header-height); }
.nav-toggle { display: none; }
.site-nav__list { display: flex; justify-content: center; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { position: relative; display: block; padding: 13px 20px; font-family: var(--font-nav); font-size: var(--text-nav); line-height: 20px; text-transform: uppercase; color: var(--color-white); }
.site-nav__list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px; background: var(--color-white); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav__list a:hover::after, .site-nav__list a:focus-visible::after, .site-nav__list a.is-active::after { opacity: 1; }
@media (max-width: 1024px) {
  .site-header__inner { padding: 10px var(--gutter); }
  .nav-toggle { display: inline-flex; align-self: center; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; background: transparent; color: var(--color-white); cursor: pointer; }
  .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; }
  /* Slide-down panel: grid row 0fr -> 1fr; align-items: stretch keeps the list clipped while it animates */
  .site-nav { position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); margin-top: -10px; display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-dark); 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), visibility 0s; }
  .site-nav__list { min-height: 0; overflow: hidden; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; }
  .site-nav__list a { padding: 10px 20px; text-align: center; color: var(--color-grey); }
  .site-nav__list a::after { display: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { background: var(--color-menu-hover); color: var(--color-white); }
}

/* === Component: section-heading (display font, white) === */
.section-heading { font-family: var(--font-heading); font-size: var(--text-h2); line-height: 1; color: var(--color-white); }
@media (max-width: 1024px) { .section-heading--shrink-tablet { font-size: var(--text-h2-sm); } }
@media (max-width: 767px) { .section-heading--shrink-mobile { font-size: var(--text-h2-sm); } }

/* === Component: image-link (star-burst "Order Now" / "View Menu" buttons, app badges) === */
.image-link { display: inline-block; }
.image-link img { width: 100%; }

/* === Component: menu-tile (image + heading linking to a PDF) === */
.menu-tiles { display: flex; flex-wrap: wrap; min-height: 393px; }
.menu-tile { width: 20%; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: var(--gutter); text-align: center; }
.menu-tile--bottom { justify-content: flex-end; }
.menu-tile__image { display: inline-block; }
.menu-tile__title { font-family: var(--font-heading); font-size: var(--text-tile); line-height: 1; color: var(--color-white); }
@media (min-width: 768px) { .menu-tile:nth-child(2) { width: 19.921%; } .menu-tile:nth-child(3) { width: 20.079%; } }
@media (max-width: 1024px) {
  .menu-tile, .menu-tile--bottom { justify-content: flex-start; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .menu-tile, .menu-tile:nth-child(2), .menu-tile:nth-child(3) { width: 33%; }
  .menu-tile:nth-child(4), .menu-tile:nth-child(5) { width: 50%; }
}
@media (max-width: 767px) {
  .menu-tile, .menu-tile:nth-child(2), .menu-tile:nth-child(3) { width: 100%; }
  .menu-tile__title { font-size: var(--text-h2-sm); }
}

/* === Component: map === */
.map { display: block; width: 100%; height: 300px; border: 0; }

/* === Component: site-footer (red, 4 columns, copyright bar) === */
.site-footer { display: flow-root; background: var(--color-red); padding-top: 120px; }
.site-footer__inner { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.site-footer__col { padding: var(--gutter); }
.site-footer__heading { font-family: var(--font-body); font-size: var(--text-footer-heading); line-height: 1; color: var(--color-white); margin-bottom: 10px; }
.site-footer__col--company .site-footer__heading { margin-bottom: 20px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; font-weight: 300; line-height: 28px; }
.site-footer__list a { color: var(--color-white); }
.site-footer__badges { display: inline-block; }
.site-footer__badges img { width: 130px; }   /* 80% of the image's 162px, as the original */
.site-footer__bar { border-top: 1px solid var(--color-white); margin-top: 15px; padding-top: 25px; }
.site-footer__copyright { margin: 16px 0; color: var(--color-white); }
.site-footer__copyright a { color: inherit; }
.site-footer__copyright a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .site-footer__inner { padding-inline: var(--section-pad-tablet); }
  .site-footer__bar { text-align: center; padding: 25px var(--section-pad-tablet) 0; }
  .site-footer__copyright { margin: 46px 0 46px; }
}
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; text-align: center; }
  .site-footer__badges { margin-inline: auto; }
  .site-footer__badges img { margin-inline: auto; }
}

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

/* === Page: / (hero) === */
.hero { margin-top: -65px; position: relative; z-index: 10; }
.hero__inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; min-height: 100vh; }
.hero__col { padding: var(--gutter); }
.hero__col--order { padding-top: 170px; }
.hero__col--menu { padding-top: 170px; text-align: right; }
.hero__col--logo { padding-bottom: 255px; }
.hero__star { width: 250px; max-width: 100%; }
.hero__col--menu .hero__star { margin-left: auto; }
.hero__logo { width: 68%; margin-inline: auto; }
@media (max-width: 1024px) {
  .hero__inner { padding-inline: var(--section-pad-tablet); }
  .hero__logo { width: 100%; }
}
@media (max-width: 767px) {
  .hero__inner { display: flex; flex-direction: column; align-items: stretch; }
  .hero__col { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .hero__col--order { padding-top: 82px; }
  .hero__col--logo { padding-bottom: 20px; }
  .hero__col--menu { padding-top: 20px; }
  .hero__star { width: 111px; }
  .hero__col--menu .hero__star { margin-inline: auto; }
  .hero__logo { width: 65%; }
}

/* === Page: / (intro strip) === */
.intro { text-align: center; padding: 23px var(--gutter) 10px; }
.intro__logo { width: 15%; margin: 0 auto 29px; }
.intro__logo img { margin-inline: auto; }
.intro__text { margin: 0 0 16px; color: var(--color-grey); }
@media (max-width: 1024px) { .intro { padding-inline: calc(var(--section-pad-tablet) + var(--gutter)); } }
@media (max-width: 767px) { .intro__logo img { width: 100%; } }

/* === Page: / (who are we) === */
.about { display: grid; grid-template-columns: 1fr 1fr; }
.about__media { align-self: start; }
.about__media img { width: 100%; }
.about__body { align-self: center; padding: 10px 60px; }
.about__text { font-size: var(--text-intro); }
.about__text p { margin: 20px 0; }
.about__buttons { display: flex; }
.about__buttons .image-link:first-child { width: 13.551%; }
.about__buttons .image-link:last-child { width: 13.258%; }
@media (max-width: 1024px) {
  .about__media { align-self: center; }
  .about__text { font-size: var(--text-base); }
  .about__text p { margin: 16px 0; }
  .about__buttons .image-link:first-child, .about__buttons .image-link:last-child { width: 92px; }
}
@media (max-width: 767px) {
  .about { grid-template-columns: 1fr; }
  .about__body { text-align: center; }
  .about__buttons { justify-content: center; }
}

/* === Page: / (menu) === */
.menu-section { padding-block: 39px; }
.menu-section > .container { padding-inline: var(--gutter); }
.menu-section__heading { text-align: center; margin-bottom: 29px; }

/* === Page: / (app) === */
.app { display: grid; grid-template-columns: 1fr 1fr; }
.app__body { align-self: center; padding: 50px 30px 0; }
.app__body p { margin: 16px 0; }
.app__media { align-self: center; padding: 60px var(--gutter); text-align: center; }
.app__media .image-link { width: 74.727%; }
@media (max-width: 1024px) {
  .app__body { padding-top: 10px; text-align: center; }
}
@media (max-width: 767px) {
  .app { grid-template-columns: 1fr; }
  .app__body { padding-top: 44px; }
}

/* === Page: / (find us) === */
.find-us { padding: 20px var(--gutter); text-align: center; }
.find-us__heading { font-family: var(--font-heading); font-size: var(--text-find); line-height: 1; color: var(--color-grey); }
@media (max-width: 1024px) { .find-us__heading { font-size: var(--text-find-sm); } }

/* === Page: /404.html === */
.not-found { margin-top: -65px; padding: 160px 0 100px; text-align: center; }
.not-found__inner { padding-inline: 20px; }
.not-found .section-heading { margin-bottom: 24px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; list-style: none; margin: 24px 0 0; padding: 0; }
.not-found__links a { font-family: var(--font-nav); font-size: var(--text-nav); text-transform: uppercase; }
.not-found__links a:hover, .not-found__links a:focus-visible { text-decoration: underline; }

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