/*
 * site.css: the only stylesheet for Bengal Spice Burgess Hill.
 *
 * 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 (from the original Elementor build; media queries can't use custom properties):
 *   mobile  ≤ 767px    tablet 768px–1024px    desktop ≥ 1025px
 *   plus ≤ 1080px, where the hero's gold circle moves further up and right (original custom CSS).
 *   The mobile menu (burger) is used at ≤ 1024px, as on the original.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--white) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-bg: #545454;                 /* page background (dark grey) */
  --color-gold: #be9f51;               /* accent: headings, buttons, burger icon */
  --color-gold-social: #c89f58;        /* footer social icon circles */
  --color-white: #ffffff;
  --color-text: #ffffff;               /* body text on the dark background */
  --color-text-card: #262626;          /* text inside white cards */
  --color-text-strong: #000000;        /* contact card details */
  --color-nav-dropdown: #33373d;       /* mobile menu links */
  --color-nav-dropdown-hover-bg: #55595c;
  --color-nav-hover: rgb(255 255 255 / 0.41);
  --color-border: #c4c4c4;             /* footer top rule */

  /* Typography (Montserrat everywhere) */
  --font-body: "Montserrat", Arial, Helvetica, sans-serif;
  --font-heading: var(--font-body);
  --text-base: 16px;
  --leading: 24px;
  --text-h1: 64px;          /* 50px at ≤1024px */
  --leading-h1: 94px;       /* 80px at ≤1024px */
  --text-h2: 48px;
  --text-h2-sm: 39px;
  --leading-h2: 72px;
  --text-h3: 24px;

  /* Spacing and shape */
  --container: 1160px;
  --gutter: 30px;           /* section side padding at ≤1024px */
  --section-gap: 100px;     /* space above most sections */
  --widget-gap: 20px;       /* space between stacked elements (Elementor default) */
  --radius: 4px;            /* buttons */
  --radius-card: 6px;       /* cards and the story image */
  --shadow-button: 0 0 4px 0 rgb(0 0 0 / 0.25);
  --shadow-card: 0 0 10px 0 rgb(0 0 0 / 0.25);
  --shadow-card-soft: 0 0 10px 0 rgb(0 0 0 / 0.12);

  /* Motion (match the original's timings) */
  --duration-nav: 0.4s;     /* nav link colour fade */
  --duration-menu: 0.3s;    /* mobile menu slide */
  --duration-button: 0.2s;
  --ease: ease-in-out;
}

/* ============ 2. Fonts ============ */
/* Montserrat (Google Fonts, SIL OFL), latin subset, one variable file covering 400/500/600. */
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-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; }
body { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading); color: var(--color-text); background: var(--color-bg); }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0; }
p { margin: 0 0 24px; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }
.section { margin-top: var(--section-gap); }
@media (max-width: 1024px) {
  .section { margin-top: 0; padding: var(--gutter); }
  .section--gap-always { margin-top: var(--section-gap); }
}

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

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

/* === Component: site-header ===
 * Logo left, anchor menu in the middle (desktop). Not sticky, transparent over the page
 * background. ≤1024px: burger toggle right, full-width white dropdown under the header
 * that overlays the content and slides down (grid 0fr → 1fr). */
.site-header { position: relative; z-index: 20; padding: 40px 0; margin-bottom: var(--section-gap); }
.site-header__inner { display: grid; grid-template-columns: 14.97% 55.582% 1fr; align-items: center; }
.site-header__logo { display: block; }
.site-header__logo img { width: 100%; }
@media (max-width: 1024px) {
  .site-header { padding: 30px 30px 0; position: relative; }
  .site-header__inner { grid-template-columns: 30% 1fr; }
  .site-header { --toggle-offset: 41.5px; } /* dropdown top = middle of logo + half toggle + 10px */
}
@media (max-width: 767px) {
  .site-header__inner { grid-template-columns: 50% 1fr; }
}

/* === Component: site-nav === */
.site-nav__list { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list a { display: block; padding: 13px 20px; font-size: 16px; font-weight: 500; line-height: 20px; color: var(--color-white); text-decoration: none; transition: color var(--duration-nav); }
.site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-nav-hover); }
@media (max-width: 1024px) {
  .site-nav { position: absolute; left: 0; right: 0; top: calc(50% + var(--toggle-offset)); display: grid; grid-template-rows: 0fr; align-items: stretch; background: var(--color-white); visibility: hidden; transition: grid-template-rows var(--duration-menu) ease, visibility 0s linear var(--duration-menu); }
  .site-nav.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; color: var(--color-nav-dropdown); transition: none; }
  .site-nav__list a:hover, .site-nav__list a:focus-visible { color: var(--color-white); background: var(--color-nav-dropdown-hover-bg); }
}

/* === Component: nav-toggle (burger; ≤1024px only) ===
 * 44px tap target; the visible part is the original 33px white square. */
.nav-toggle { display: none; justify-self: end; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -5.5px; padding: 0; border: 0; background: none; color: var(--color-gold); cursor: pointer; }
.nav-toggle__box { display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 3px; background: var(--color-white); }
.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 (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
}

/* === Component: site-footer ===
 * Thin grey rule, copyright (centred in the left half), round gold social icons right. */
.site-footer { border-top: 1px solid var(--color-border); padding: 30px; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.site-footer__copyright { margin: 0; text-align: center; color: var(--color-white); }
.site-footer__copyright a { color: inherit; text-decoration: none; }
.site-footer__copyright a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__copyright { line-height: 1.66; }
}

/* === Component: social-links === */
.social-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; list-style: none; margin: 0; padding: 0; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-gold-social); color: var(--color-white); }
.social-links svg { height: 22px; width: auto; fill: currentColor; }

/* === Component: section-title ===
 * Montserrat 600 white, 48px/72px; <span class="accent"> words are gold.
 * --sm 39px; --center centred; --center-tablet centred at ≤1024px; --shrink 40px at ≤1024px. */
.section-title { font-size: var(--text-h2); line-height: var(--leading-h2); color: var(--color-white); }
.section-title--sm { font-size: var(--text-h2-sm); }
.section-title--center { text-align: center; }
.accent { color: var(--color-gold); }
@media (max-width: 1024px) {
  .section-title--center-tablet { text-align: center; }
  .section-title--shrink { font-size: 40px; }
}

/* === Component: button / button-group ===
 * Gold or white fill, 4px radius, soft shadow; no hover change (as original). */
.button-group { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 15px 25px; border-radius: var(--radius); box-shadow: var(--shadow-button); font-family: var(--font-body); font-size: 17px; font-weight: 400; line-height: 17px; text-align: center; text-decoration: none; transition: all var(--duration-button) var(--ease); }
.button--lg { font-size: 20px; line-height: 20px; }
.button--gold { background: var(--color-gold); color: var(--color-white); }
.button--white { background: var(--color-white); color: var(--color-gold); }

/* === Component: hero (home) ===
 * Heading + buttons left, plate artwork right. The big gold circle is drawn by
 * .hero::before from the very top of the page (behind the header) and clipped at the
 * hero's bottom edge by clip-path. Artwork and circle are hidden on mobile. */
.hero { clip-path: inset(-100000px 0 0 0); }
.hero::before { content: ""; position: absolute; z-index: -1; top: 0; left: 0; right: 0; height: 1300px; background: url("/wp-content/uploads/2021/10/circle.png") no-repeat right -720px top -300px; pointer-events: none; }
.hero__inner { display: flex; align-items: center; }
.hero__text { flex: 0 0 39.91%; }
.hero__title { font-size: var(--text-h1); line-height: var(--leading-h1); color: var(--color-white); margin-bottom: 50px; }
.hero__art { flex: 0 0 60.09%; }
.hero__art img { width: 100%; }
@media (max-width: 1080px) {
  .hero::before { background-position: right -900px top -800px; }
}
@media (max-width: 1024px) {
  .hero { padding: 0 30px 30px; }
  .hero__text, .hero__art { flex-basis: 50%; }
  .hero__title { font-size: 50px; line-height: 80px; }
  .hero__art { margin-top: 20px; }
}
@media (max-width: 767px) {
  .hero::before { content: none; }
  .hero__art { display: none; }
  .hero__text { flex-basis: 100%; }
}

/* === Component: story (home "Our story") ===
 * Heading, wide rounded image, then a white text card pulled up over the image with the
 * buttons beside it. Image and buttons hidden on mobile. */
.story .section-title { margin-bottom: var(--widget-gap); }
.story__image { width: 100%; border-radius: var(--radius-card); }
.story-card { display: flex; align-items: flex-start; }
.story-card__card { flex: 0 0 65.948%; margin-top: -270px; padding-left: 50px; }
.story-card__card-inner { padding: 40px; border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card-soft); color: var(--color-text-card); }
.story-card__card-inner p { margin: 0; }
.story-card__actions { flex: 1 1 auto; padding: 30px; }
@media (max-width: 1024px) {
  .story-card { flex-direction: column; align-items: stretch; padding: 0 30px 30px; }
  .story-card__card { margin: -120px 30px 0; padding-left: 0; }
  .story-card__card-inner { padding: 30px; }
}
@media (max-width: 767px) {
  .story__image, .story-card__actions { display: none; }
  .story-card__card { margin: 0; }
}

/* === Component: feature (home "Our menu": image left, icon/heading/text/buttons right) === */
.feature { display: flex; align-items: flex-start; }
.feature__image { flex: 0 0 50.948%; }
.feature__image img { width: 100%; }
.feature__body { flex: 1 1 auto; margin-left: 30px; }
.feature__icon { margin-bottom: var(--widget-gap); }
.feature__body .section-title { margin-bottom: var(--widget-gap); }
.feature__body p { margin-bottom: 44px; }
@media (max-width: 1024px) {
  .feature__image { display: none; }
  .feature__body { margin-left: 0; text-align: center; }
  .feature__icon { margin-inline: auto; }
}

/* === Component: app-promo (home: download the app) ===
 * Text left (vertically centred), phones image right-aligned. Tablet: image first,
 * centred; mobile: text first, image below. */
.app-promo { display: flex; align-items: center; }
.app-promo__text { flex: 0 0 47.931%; }
.app-promo__text .section-title { margin-bottom: var(--widget-gap); }
.app-promo__lead { font-size: 18px; line-height: 32px; margin-bottom: 47px; }
.app-promo__badges { display: inline-block; vertical-align: top; }
.app-promo__image { flex: 1 1 auto; display: flex; justify-content: flex-end; }
@media (max-width: 1024px) {
  .app-promo { flex-direction: column-reverse; align-items: stretch; }
  .app-promo__text { margin-top: 40px; text-align: center; }
  .app-promo__image { justify-content: center; }
}
@media (max-width: 767px) {
  .app-promo { flex-direction: column; }
  .app-promo__text { margin-bottom: 20px; }
  .app-promo__badges { display: block; }
}

/* === Component: testimonial (white card: avatar, quote, stars, name) === */
.testimonial { margin: 40px 0 0; padding: 50px 150px; border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card); color: var(--color-text-card); text-align: center; }
.testimonial__avatar, .testimonial__stars { margin-inline: auto; }
.testimonial__quote { margin: 20px 0 0; }
.testimonial__quote p { margin: 0; }
.testimonial__stars { margin-top: 46px; }
.testimonial__name { margin: 22px 0 0; font-size: 14px; line-height: 21px; }
@media (max-width: 767px) {
  .testimonial { padding: 30px; }
}

/* === Component: gallery (masonry-style grid; GLightbox opens a.glightbox links) ===
 * 3 columns desktop (the 5th tile spans 2×2), 2 columns tablet (the 3rd tile spans 2
 * columns), 1 column mobile. Tiles are cropped with object-fit like the original. */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 28px; margin-top: 40px; }
.gallery__item { display: block; position: relative; aspect-ratio: 368 / 269; overflow: hidden; }
.gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1025px) {
  .gallery__item:nth-child(5) { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(3) { grid-column: span 2; aspect-ratio: 708 / 524; }
}
@media (max-width: 767px) {
  .gallery { grid-template-columns: 1fr; }
}
/* GLightbox: dark overlay, no captions (as the original lightbox) */
.glightbox-clean .goverlay { background: rgb(0 0 0 / 0.9); }
/* Every lightbox on this site shows one image (as the original), so no prev/next arrows */
.glightbox-container .gprev, .glightbox-container .gnext { display: none; }

/* === Component: info-cards (contact: three white cards with an icon, title and text) === */
.info-cards-heading { margin-top: var(--section-gap); padding: 10px; }
.info-cards-heading .section-title { margin-bottom: var(--widget-gap); }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: var(--container); margin: 0 auto var(--section-gap); padding: 15px; }
.info-card { min-height: 310px; padding: 30px; border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card); color: var(--color-text-strong); text-align: center; }
.info-card__icon { margin: 0 auto var(--widget-gap); }
.info-card__title { margin-bottom: var(--widget-gap); font-size: var(--text-h3); font-weight: 400; line-height: 24px; color: var(--color-text-card); }
.info-card p { margin: 0; }
.info-card p + p { margin-top: 24px; }
.info-card--tight p + p { margin-top: 0; }
@media (max-width: 1024px) {
  .info-cards-heading { margin-top: 0; padding: 40px; }
}
@media (max-width: 767px) {
  .info-cards { grid-template-columns: 1fr; }
}

/* === Component: contact-email (replaces WordPress forms: a mailto button + visible address) ===
 * Not used on this site (it has no forms); kept so a future form replacement matches the
 * cards' look. */
.contact-email { display: grid; gap: 16px; justify-items: center; padding: 30px; border-radius: var(--radius-card); background: var(--color-white); box-shadow: var(--shadow-card); color: var(--color-text-card); text-align: center; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Component: not-found (404 page body) === */
.not-found { margin-top: 0; padding-bottom: var(--section-gap); text-align: center; }
.not-found__text { margin: 20px 0 40px; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; list-style: none; margin: 30px 0 0; padding: 0; }
.not-found__links a { font-weight: 500; text-decoration: none; transition: color var(--duration-nav); }
.not-found__links a:hover { color: var(--color-nav-hover); }
.not-found .button-group { justify-content: center; }

/* ============ 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; }
  [data-reveal] { visibility: visible !important; }
}
