/*
 * site.css: the only stylesheet for imisspicekitchen.com (IMI's Spice Kitchen).
 *
 * 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         rare page-specific rules: "=== Page: <path> ==="
 *   7. Utilities     a handful of helpers
 *
 * Breakpoints (Elementor defaults on the original; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *
 * Values come from the original's Elementor CSS (post-28.css / post-181.css) and computed styles.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours */
  --color-gold: #d3b74f;           /* headings, buttons text, borders, header rule */
  --color-black: #000000;          /* page and section backgrounds */
  --color-button: #222222;         /* button background */
  --color-toggle: #252525;         /* mobile menu toggle background */
  --color-white: #ffffff;
  --color-cream: #fffcfc;          /* app section paragraph */
  --color-ink: #231f20;            /* "Contact Us" card title */
  --color-muted: #7a7a7a;          /* card intro line */
  --color-nav-hover: #bbbbbb;      /* nav hover / current page */
  --color-dropdown-text: #33373d;  /* mobile dropdown links (Elementor default) */
  --color-dropdown-hover: #55595c; /* mobile dropdown hover background (Elementor default) */
  --color-social: rgb(255 255 255 / 0.22);
  --color-arrow: hsl(0 0% 93% / 0.9);

  /* Typography */
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Roboto", Arial, sans-serif;
  --font-alt: "Poppins", Arial, sans-serif;
  --text-display: 58px;            /* section headings (36px on mobile) */
  --text-title: 72px;              /* card title (48px on mobile) */

  /* Spacing and shape */
  --container: 1140px;
  --container-wide: 1280px;
  --widget-gap: 20px;              /* Elementor's space between widgets */
  --header-h: 148px;
  --shadow-card: 0 0 10px 0 rgb(0 0 0 / 0.12);
  --glow-gold: 0 0 10px 1px var(--color-gold);

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

/* ============ 2. Fonts ============ */
@font-face { font-family: "Playfair Display"; src: url("/assets/fonts/playfair-display-latin-variable.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/assets/fonts/poppins-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@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: 16px; line-height: normal; color: var(--color-white); background: var(--color-black); }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
@media (min-width: 768px) { [id] { scroll-margin-top: var(--header-h); } }

/* ============ 4. Layout ============ */
.container { max-width: var(--container); margin-inline: auto; padding: 10px; }
.container--wide { max-width: var(--container-wide); }
.container--full { max-width: none; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ============ 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-black); }
.skip-link:focus { left: 16px; }

/* === Component: button (dark box, gold Playfair text; size modifiers per original widget) === */
.button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 3px; background: var(--color-button); color: var(--color-gold); font-family: var(--font-display); font-size: 20px; font-weight: 500; line-height: 1; text-align: center; }
.button--rounded { border-radius: 5px; }
.button--lg { font-size: 25px; }
.button--xl { font-size: 35px; }
@media (max-width: 767px) { .button--xl { font-size: 25px; } }

/* === Component: button-group (row of buttons; stacks on mobile) === */
.button-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 37px; }
.button-group--app { justify-content: flex-start; gap: 0 6px; }
@media (max-width: 767px) {
  .button-group--stack { flex-direction: column; align-items: center; gap: 17px; }
  .button-group--app { justify-content: center; }
}

/* === Component: section-heading (Playfair 58px, centred; 36px on mobile) === */
.section-heading { padding: 30px; font-family: var(--font-display); font-size: var(--text-display); font-weight: 600; line-height: 1; text-align: center; color: var(--color-gold); }
.section-heading--dark { color: var(--color-black); }
@media (max-width: 767px) { .section-heading--sm-mobile { font-size: 36px; } }

/* === Component: site-header (black, gold rule; nav left, logo centre, buttons right; sticky from 768px) === */
.site-header { position: relative; z-index: 50; padding: 25px 30px; border-bottom: 3px solid var(--color-gold); background: var(--color-black); }
.site-header__inner { display: grid; grid-template-columns: 44.816% 11.333% 43.491%; align-items: center; max-width: var(--container-wide); margin-inline: auto; }
.site-header__inner > * { padding: 10px; }
.site-header__logo { text-align: center; }
.site-header__logo img { display: inline-block; width: 35%; vertical-align: middle; }
.site-header__actions { justify-content: flex-end; gap: 32px; }
.site-header__actions .button { border-radius: 5px; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 auto; padding: 0; border: 0; border-radius: 3px; background: var(--color-toggle); color: var(--color-gold); 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; }
.site-nav__list { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.site-nav a { display: block; padding: 13px 20px; font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 20px; color: var(--color-gold); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--color-nav-hover); }
@media (min-width: 768px) {
  .site-header { position: sticky; top: 0; }
}
@media (max-width: 1024px) {
  .site-header__inner { grid-template-columns: 33% 14% 48%; }
  .site-header__actions .button { font-size: 14px; }
  .nav-toggle { display: flex; }
  /* Dropdown: full width under the toggle; slides open with a grid 0fr -> 1fr row (align-items: stretch clips it while animating). */
  .site-nav { position: absolute; top: 79px; left: 0; right: 0; z-index: 60; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; background: var(--color-white); 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__inner { min-height: 0; overflow: hidden; }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav a { padding: 12px 20px; color: var(--color-dropdown-text); min-height: 44px; }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-dropdown-hover); color: var(--color-white); }
  .site-nav a[aria-current="page"] { color: var(--color-dropdown-text); }
}
@media (max-width: 767px) {
  .site-header__inner { display: block; padding-bottom: 40px; }
  .site-header__logo, .site-header__actions { display: none; }
}

/* === Component: hero (background video with 50% black overlay; static image on mobile) === */
.hero { position: relative; display: flex; align-items: center; justify-content: center; min-height: 100vh; overflow: hidden; background: url("/wp-content/uploads/2023/08/herogb.png") 50% 50% / cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--color-black); opacity: 0.5; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__content { position: relative; z-index: 2; width: 100%; max-width: var(--container); padding: 10px; text-align: center; }
.hero__logo { display: block; width: auto; max-width: 100%; margin: 0 auto var(--widget-gap); border-radius: 39px; }
.hero--short { min-height: 25vh; }
.hero__title { padding: 30px; font-family: var(--font-display); font-size: var(--text-display); font-weight: 600; line-height: 1; color: var(--color-gold); }
@media (max-width: 767px) {
  .hero, .hero--short { min-height: 80vh; }
  .hero__video { display: none; }
  .hero__logo { width: 100%; }
  .hero__title { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }

/* === Component: story-band (gold gradient band behind the heading, photo, link button) === */
.story-band { padding: 0 30px; background: url("/wp-content/uploads/2023/08/gradient-1.png") top center / 100% auto no-repeat; }
.story-band__inner { max-width: var(--container-wide); margin-inline: auto; padding: 10px; text-align: center; }
.story-band .section-heading { margin-bottom: var(--widget-gap); }
.story-band__image { display: block; width: 100%; height: 500px; margin-bottom: var(--widget-gap); object-fit: contain; border-radius: 24px; }
@media (max-width: 1024px) { .story-band .section-heading { padding: 15px 30px 30px; } }
@media (max-width: 767px) {
  .story-band { background-size: 1000px auto; }
  .story-band .section-heading { padding: 0; }
}

/* === Component: gallery-carousel (Swiper: 3 per view from 1024px, 1 below; arrows; dots below) === */
.gallery { margin: 120px 0; padding: 0 30px; }
.gallery__inner { padding: 10px; }
.gallery .section-heading { margin-bottom: var(--widget-gap); }
.gallery-carousel { --swiper-navigation-size: 20px; --swiper-navigation-color: var(--color-arrow); --swiper-navigation-sides-offset: 10px; --swiper-navigation-top-offset: calc(50% - 17px); --swiper-pagination-color: #000; --swiper-pagination-bullet-size: 6px; --swiper-pagination-bottom: 8px; padding-bottom: 34px; }
.gallery-carousel .swiper-button-prev, .gallery-carousel .swiper-button-next { padding: 0; border: 0; background: none; }
.gallery-carousel .swiper-slide img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 28px; }
/* Without JavaScript: show the first slide(s) in a row, the rest stay in the HTML. */
.gallery-carousel:not(.swiper-initialized) .swiper-wrapper { display: flex; gap: 32px; overflow: hidden; }
.gallery-carousel:not(.swiper-initialized) .swiper-slide { flex: 0 0 100%; }
@media (min-width: 1024px) { .gallery-carousel:not(.swiper-initialized) .swiper-slide { flex-basis: calc((100% - 64px) / 3); } }

/* === Component: reviews (three gold-glow cards with a stars image) === */
.reviews .section-heading { margin-bottom: var(--widget-gap); }
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.review-card { display: flex; flex-direction: column; margin: 30px; padding: 20px; border: 3px solid var(--color-gold); border-radius: 15px; box-shadow: var(--glow-gold); text-align: center; color: var(--color-white); }
.review-card__text { display: flow-root; margin-bottom: var(--widget-gap); }
.review-card__text p { margin: 16px 0; }
.review-card__stars { display: block; width: 51%; margin: 0 auto; }
.reviews__spacer { height: 163px; }
.reviews__spacer--tall { height: 328px; }
@media (max-width: 767px) { .reviews__grid { grid-template-columns: 1fr; } }

/* === Component: app-promo (gold-bordered box: heading + badges / phone mock-up / text + buttons) === */
.app-promo { margin-bottom: 30px; padding: 100px 30px; border: 16px solid var(--color-gold); }
.app-promo__inner { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; max-width: 1399px; margin-inline: auto; }
.app-promo__col { padding: 15px; }
.app-promo__col--text { padding: 20px; }
.app-promo__title { margin-bottom: var(--widget-gap); font-family: var(--font-display); font-size: var(--text-display); font-weight: 600; line-height: 1; text-align: center; color: var(--color-gold); }
.app-promo__divider { margin-bottom: var(--widget-gap); padding: 2px 0; }
.app-promo__divider hr { margin: 0; border: 0; border-top: 1px solid var(--color-white); }
.app-promo__badges { display: block; text-align: center; }
.app-promo__badges img { display: inline-block; vertical-align: middle; }
.app-promo__phone { display: block; width: 100%; }
.app-promo__text { display: flow-root; margin-bottom: var(--widget-gap); font-family: var(--font-display); font-size: 20px; font-weight: 400; color: var(--color-cream); }
.app-promo__text p { margin: 1em 0; }
@media (max-width: 1024px) {
  .app-promo__inner { grid-template-columns: repeat(2, 1fr); }
  .app-promo__title { font-size: 34px; }
  .app-promo__text { font-size: 18px; }
}
@media (max-width: 767px) { .app-promo__inner { grid-template-columns: 1fr; } }

/* === Component: map (keyless Google Maps iframe, 619px high) === */
.map-section { padding: 0 30px; }
.map { display: block; width: 100%; height: 619px; border: 0; }

/* === Component: story-text (centred white Roboto copy with bold H2s; Our Story page) === */
.story-text { max-width: var(--container); margin-inline: auto; padding: 10px; text-align: center; }
.story-text__body { display: flow-root; margin: 70px 0; }
.story-text__body h2 { margin: 0.83em 0; font-size: 1.5em; font-weight: 700; }
.story-text__body p { margin: 1em 0; }

/* === Component: site-footer (black; contact card overlapping the section above; 3 columns; copyright bar) === */
.site-footer { padding: 80px 32px 64px; background: var(--color-black); color: var(--color-white); }
.site-footer__inner { display: grid; grid-template-columns: 38.046% 61.954%; max-width: var(--container-wide); margin-inline: auto; }
.site-footer__main { display: flex; flex-direction: column; justify-content: space-between; margin-left: 64px; }
.site-footer__cols { display: grid; grid-template-columns: 35.502% 40% 24.162%; }
.site-footer__heading { margin-bottom: 32px; font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; text-transform: uppercase; }
.site-footer__text { display: flow-root; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.8; letter-spacing: -0.02em; }
.site-footer__text p { margin: 20px 0; }
.site-footer__list { margin: 0; padding: 0; list-style: none; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.site-footer__list li + li { margin-top: 20px; }
.site-footer__bar { margin: 51.2px 0 19.2px; font-family: var(--font-alt); font-size: 1.2rem; font-weight: 500; line-height: 1.8; letter-spacing: -0.02em; }
@media (max-width: 1024px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__main { margin: 64px 0 0; }
  .site-footer__cols { grid-template-columns: 32% 43% 25%; }
  .site-footer__bar { margin-top: 83.2px; }
}
@media (max-width: 767px) {
  .site-footer__cols { grid-template-columns: 1fr; }
  .site-footer__col:not(:last-child) { margin-bottom: 40px; }
  .site-footer__bar { margin-top: 59.2px; }
}

/* === Component: social-links (36px translucent circles, white icons) === */
.social-links { display: flex; gap: 5px; margin: 32px 0 0; padding: 0; list-style: none; }
.social-links__link { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-social); color: var(--color-white); }
.social-links .icon { width: 18px; height: 18px; fill: currentColor; }

/* === Component: contact-email (white card that held the Elementor Pro form; heading + intro only, decision d2) === */
.contact-email { position: relative; z-index: 1; align-self: start; margin-top: -240px; padding: 48px; border-radius: 16px; background: var(--color-white); box-shadow: var(--shadow-card); }
.contact-email__title { font-family: var(--font-display); font-size: var(--text-title); font-weight: 600; line-height: 1; color: var(--color-ink); }
.contact-email__intro { margin-top: 12px; font-family: var(--font-alt); font-size: 1.3rem; font-weight: 400; line-height: 1; letter-spacing: -0.02em; color: var(--color-muted); }
@media (max-width: 1024px) { .contact-email { margin-top: -200px; padding: 32px; } }
@media (max-width: 767px) {
  .contact-email__title { font-size: 48px; }
  .contact-email__intro { font-size: 15px; line-height: 1.5; }
}

/* === Component: not-found (404 page body) === */
.not-found { padding: 120px 30px 300px; text-align: center; }
.not-found__text { margin: 0 auto 32px; max-width: 40em; font-size: 18px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

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