/*
 * site.css: the only stylesheet for mantraindianrestaurant.co.uk.
 *
 * Sections, in order:
 *   1. Tokens        colours, fonts, spacing (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 CSS; media queries can't use custom properties):
 *   mobile  <= 767px    tablet 768px-1024px    desktop >= 1025px
 *   Reviews slider (as the original Trustindex widget): 1 card, 2 from 620px, 3 + arrows from 920px; scroll line below 620px.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.button--light) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-text: #333333;          /* headings and body copy */
  --color-black: #000000;         /* dine-in note, About hours, "View Our Takeaway Menu" */
  --color-muted: #7a7a7a;         /* menu dish descriptions */
  --color-price: #999999;         /* menu prices */
  --color-cream: #f3f1eb;         /* About section background */
  --color-dark: #333333;          /* footer bar, buttons, menu toggle */
  --color-white: #ffffff;
  --color-dropdown: #fff9f9;      /* mobile menu background */
  --color-separator: #dddddd;     /* mobile menu separators */
  --color-review-date: #6b6b6b;
  --color-facebook: #3b5998;
  --color-instagram: #262626;
  --color-whatsapp: #25d366;
  --overlay-hero: rgb(0 0 0 / 0.3);
  --overlay-section: rgb(0 0 0 / 0.5);

  /* Typography */
  --font-display: "Handlee", cursive, sans-serif;   /* headings, nav, buttons, menu items, footer */
  --font-text: "Heebo", sans-serif;                  /* body copy (weight 300) */
  --font-review: "Poppins", sans-serif;              /* review cards (as the original Trustindex widget) */

  /* Layout */
  --container: 1140px;            /* Elementor boxed width (includes the 10px column padding) */
  --container-header: 1560px;
  --gutter: 10px;                 /* Elementor column padding */
  --widget-gap: 20px;             /* Elementor space between widgets */

  /* Motion (match the original's timings) */
  --duration: 300ms;
  --ease: ease;
}

/* ============ 2. Fonts ============ */
/* Self-hosted Google Fonts (latin subsets): Handlee 400, Heebo variable (300-700), Poppins 400/600 */
@font-face { font-family: "Handlee"; src: url("/assets/fonts/handlee-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Heebo"; src: url("/assets/fonts/heebo-latin-var.woff2") format("woff2"); font-weight: 100 900; 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-600.woff2") format("woff2"); font-weight: 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-text); font-weight: 300; font-size: 16px; line-height: 1.5; color: var(--color-text); background: var(--color-white); overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1; margin: 0; color: var(--color-text); }
p { margin: 1em 0; }
b, strong { font-weight: bolder; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease), background-color var(--duration) var(--ease); }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ 4. Layout ============ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { position: relative; }
.flow-root { display: flow-root; }

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

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

/* === Component: icon (SVG sprite in shared/footer.html) === */
.icon { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* === Component: site-header ===
 * Not sticky: it sits over the top of the page (position absolute), as the original.
 * Desktop: logo | centred nav | two buttons. <= 1024px: burger + full-width dropdown.
 * <= 767px: the two header buttons are hidden (as the original). */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.site-header__inner { display: flex; align-items: center; max-width: var(--container-header); margin-inline: auto; }
.site-header__brand { width: 15%; padding: var(--gutter); }
.site-header__menu { width: 56.832%; padding: var(--gutter); display: flex; justify-content: center; }
.site-header__actions { width: 27.834%; padding: var(--gutter); display: flex; justify-content: flex-end; gap: 10px; }
.site-header__logo { display: block; width: fit-content; }
.site-header__logo img { width: 204px; max-width: 100%; }

.site-nav__list { display: flex; flex-wrap: wrap; justify-content: center; }
.site-nav a { display: flex; padding: 13px 20px; font-family: var(--font-display); font-size: 0.9rem; line-height: 20px; letter-spacing: 2px; color: var(--color-white); }
.site-nav a:hover, .site-nav a:focus-visible { color: rgb(255 255 255 / 0.6); }

.nav-toggle { display: none; position: relative; margin-left: auto; padding: 5.5px; border: 1px solid var(--color-white); border-radius: 0; background: var(--color-dark); color: var(--color-white); font-size: 22px; line-height: 1; cursor: pointer; }
.nav-toggle::after { content: ""; position: absolute; inset: -5px; } /* 45px tap target around the 35px button */
.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) {
  .site-header__brand { width: 40%; }
  .site-header__menu { width: 10%; justify-content: flex-end; }
  .site-header__actions { width: 50%; }
  .nav-toggle { display: inline-flex; }
  /* Dropdown: full width, 145px from the top of the header, slides down (0fr -> 1fr) */
  .site-nav { position: absolute; top: 145px; left: 0; right: 0; display: grid; grid-template-rows: 0fr; align-items: stretch; visibility: hidden; transition: grid-template-rows 0.3s var(--ease), visibility 0s linear 0.3s; }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows 0.3s var(--ease), visibility 0s; }
  .site-nav__inner { overflow: hidden; min-height: 0; background: var(--color-dropdown); }
  .site-nav__list { flex-direction: column; flex-wrap: nowrap; }
  .site-nav__list li:not(:last-child) { border-bottom: 1px solid var(--color-separator); }
  .site-nav a { padding: 20px 30px; letter-spacing: 1.5px; color: var(--color-text); }
  .site-nav a:hover, .site-nav a:focus-visible { background: var(--color-dark); color: var(--color-white); }
}
@media (max-width: 767px) {
  .site-header__brand { width: 60%; }
  .site-header__menu { width: 40%; }
  .site-header__actions { display: none; }
}

/* === Component: button ===
 * Square outline buttons in Handlee, letter-spaced. Colour variants:
 *   .button--dark-outline   black text/border; hover white fill
 *   .button--outline        #333 text/border; hover #333 fill
 *   .button--light-outline  white text/border (header); hover white fill
 *   .button--light          white fill (header); hover transparent */
.button { display: inline-block; padding: 12.5px 24px; border: 2px solid currentColor; border-radius: 0; background: transparent; font-family: var(--font-display); font-size: 15px; line-height: 15px; letter-spacing: 2px; text-align: center; cursor: pointer; transition: all var(--duration); }
.button--dark-outline { color: var(--color-black); border-color: var(--color-black); }
.button--dark-outline:hover, .button--dark-outline:focus-visible { background: var(--color-white); color: var(--color-text); }
.button--outline { color: var(--color-dark); border-color: var(--color-dark); }
.button--outline:hover, .button--outline:focus-visible { background: var(--color-dark); color: var(--color-white); }
.button--light-outline { color: var(--color-white); border-color: var(--color-white); }
.button--light-outline:hover, .button--light-outline:focus-visible { background: var(--color-white); color: var(--color-text); }
.button--light { color: var(--color-text); background: var(--color-white); border-color: var(--color-white); }
.button--light:hover, .button--light:focus-visible { background: transparent; color: var(--color-white); }
.button-row { text-align: center; }
/* The original's content buttons carried an icon-font arrow that never loaded: it left 10px of extra space after the text. */
.button--trailing-space { padding-right: 34px; }

/* === Component: section-title === */
.section-title { text-align: center; font-size: 2.6rem; }
.section-title--xl { font-size: 4rem; letter-spacing: 1.5px; color: var(--color-white); }
.section-title--menu { font-size: 3rem; }
.section-title--sm { text-align: left; font-size: 2rem; letter-spacing: 1.5px; }

/* === Component: hero (background slideshow, Swiper fade + CSS Ken Burns) ===
 * Images use object-fit: contain as the original (letterboxed on narrow screens; the white
 * page shows through the 30% black overlay as grey bands). */
.hero { position: relative; min-height: calc(100vh + 15px); background: var(--color-white); overflow: hidden; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slides .swiper-slide { overflow: hidden; }
.hero__image { width: 100%; height: 100%; object-fit: contain; transform: scale(1); transition: transform 0s linear 0.5s; }
.hero .swiper-slide-active .hero__image, .hero__slides:not(.swiper-initialized) .swiper-slide:first-child .hero__image { transform: scale(1.3); transition: transform 20s linear; }
.hero__slides:not(.swiper-initialized) .swiper-slide:not(:first-child) { display: none; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: var(--overlay-hero); pointer-events: none; }

/* === Component: shape-divider (Elementor "opacity tilt", top of a section) === */
.shape-divider { position: absolute; top: -1px; left: 0; right: 0; z-index: 1; overflow: hidden; line-height: 0; pointer-events: none; }
.shape-divider svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); height: 100px; transform: translateX(-50%); fill: var(--shape-fill, var(--color-white)); }

/* === Component: photo-section (background photo + dark overlay, fixed on desktop) === */
.photo-section { position: relative; background-size: cover; background-position: center; background-repeat: no-repeat; }
.photo-section::before { content: ""; position: absolute; inset: 0; background: var(--overlay-section); }
.photo-section > .container { position: relative; z-index: 2; }
@media (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  .photo-section { background-attachment: fixed; }
}

/* === Component: about === */
.about { background: var(--color-cream); padding-block: 100px; }
.about__inner { max-width: 800px; margin-inline: auto; padding: 50px; }
.about__inner > * + * { margin-top: var(--widget-gap); }
.about__note { font-size: 20px; line-height: normal; color: var(--color-black); text-align: center; }
.about__lead { font-size: 17px; line-height: 1.5; text-align: center; }
.about__note p, .about__lead p { margin: 1em 0; }
.about__story { display: grid; grid-template-columns: 54.929% 45%; align-items: stretch; }
.about__story-text { padding: var(--gutter); }
.about__story-text .flow-root { margin: -21px 0; padding: 20px; font-size: 17px; line-height: 1.5; } /* the original pulls the text up 21px; the column ends 21px early too */
.about__story-media { padding: var(--gutter); }
.about__story-media img { position: sticky; top: 20px; width: 100%; }
.about__hours { padding: 30px; font-size: 17px; line-height: normal; color: var(--color-black); text-align: center; }
.about__hours p { margin: 1em 0; }
.about__inner > .button-row--app { margin-top: 40px; }
.about__lounge { display: grid; grid-template-columns: 1fr 1fr; margin-top: 30px; }
.about__lounge img { width: calc(100% - 2 * var(--gutter)); margin: var(--gutter); height: 300px; object-fit: cover; }
@media (max-width: 1024px) {
  .about { padding-block: 0; }
}
@media (max-width: 767px) {
  .about__inner { padding: 50px 40px 40px; }
  .about__lead, .about__story-text .flow-root { font-size: 14px; }
  .about__story { grid-template-columns: 1fr; }
  .about__hours { padding: 10px; }
  .about__lounge img { height: 100px; }
}

/* === Component: press-gallery (2 photos, GLightbox; hover darkens) === */
.press-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; }
.press-gallery a { position: relative; display: block; overflow: hidden; }
.press-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.press-gallery a::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); opacity: 0; transition: opacity 800ms; }
.press-gallery a:hover::after, .press-gallery a:focus-visible::after { opacity: 1; }
@media (max-width: 1023px) { .press-gallery { gap: 10px; } } /* the original gallery switched below 1024px */
@media (max-width: 767px) { .press-gallery { grid-template-columns: 1fr; } }

/* === Component: offers === */
.offers { padding-top: 100px; background-image: url("/wp-content/uploads/2020/12/offers.jpg"); --shape-fill: var(--color-cream); }
.offers > .container { min-height: 400px; padding-top: 10px; padding-bottom: 25px; }
.offers__poster { width: min(570px, 100% - 30px); margin: 36px auto 0; }

/* === Component: carousel (photo gallery, Swiper fade) === */
.carousel-section { margin-top: 150px; }
.carousel { width: 100%; max-width: 960px; height: 600px; margin-inline: auto; }
.carousel .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel .swiper-button-prev, .carousel .swiper-button-next { width: 20px; height: 20px; margin-top: -10px; padding: 0; border: 0; background: none; color: var(--color-white); font-size: 20px; cursor: pointer; }
.carousel .swiper-button-prev { left: 10px; }
.carousel .swiper-button-next { right: 10px; }
.carousel .swiper-button-prev::after, .carousel .swiper-button-next::after { content: ""; position: absolute; inset: -12px; } /* 44px tap target */
@media (max-width: 1024px) {
  .carousel-section { margin-top: 0; }
  .carousel { height: 500px; }
}
@media (max-width: 767px) { .carousel { height: 250px; } }

/* === Component: menu-list (price list) === */
.menu { padding-block: 150px; }
.menu > .container { max-width: 960px; padding-block: var(--gutter) calc(2 * var(--gutter)); }
.menu__category { margin-top: var(--widget-gap); font-size: 2rem; }
.menu-list { display: grid; grid-template-columns: 1fr 1fr; margin: 30px 0; padding-left: 50px; }
.menu-list--last { margin-bottom: 0; }
.menu-list__col { margin-right: 30px; }
.menu-item { display: flex; align-items: flex-start; }
.menu-item + .menu-item { margin-top: 30px; }
.menu-item__name { flex: 0 0 160px; max-width: 160px; font-size: 1.2rem; }
.menu-list--wide .menu-item__name { flex-basis: 220px; max-width: 220px; }
.menu-item__price { margin: 0 0 0 20px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1; color: var(--color-price); }
.menu-list--described .menu-item { flex-wrap: wrap; }
.menu-list--described .menu-item + .menu-item { margin-top: 0; }
.menu-item__desc { flex: 0 0 100%; margin: 1em 0 30px; font-size: 0.8rem; line-height: 1.5; color: var(--color-muted); }
.menu .button-row { margin-top: 49px; } /* 40px + the original's nested column padding */
@media (max-width: 1024px) { .menu { padding: 50px; } }
@media (max-width: 767px) {
  .menu { padding: 30px; }
  .menu-list { grid-template-columns: 1fr; padding-left: 0; }
  .menu-list__col { margin-right: 0; }
  .menu-list__col + .menu-list__col { margin-top: 30px; }
  .menu-list--described .menu-list__col + .menu-list__col { margin-top: 0; }
}

/* === Component: reviews (static Google review cards in a Swiper slider) === */
.reviews { padding-block: 100px; background-image: url("/wp-content/uploads/2020/12/reviews.jpg"); --shape-fill: var(--color-white); }
.reviews > .container { display: flex; flex-direction: column; justify-content: center; min-height: 400px; padding-bottom: 15px; } /* content centred in a 400px box, as the original */
.reviews__slider { position: relative; margin-top: 20px; font-family: var(--font-review); }
.reviews .swiper { padding: 5px 0 1px; }
.reviews .swiper-slide { height: auto; display: flex; }
.review-card { flex: 1; padding: 20px; border: 2px solid var(--color-white); border-radius: 12px; background: var(--color-white); color: var(--color-black); font-size: 14px; line-height: 1.4; }
.review-card__header { display: flex; justify-content: space-between; align-items: flex-start; }
.review-card__date { font-size: 13px; color: var(--color-review-date); }
.review-card__stars { display: flex; gap: 1px; margin: 11px 0; }
.review-card__text { line-height: 1.45; overflow-wrap: anywhere; }
.js .review-card:not(.is-expanded) .review-card__text { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.review-card__more { display: block; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--color-review-date); cursor: pointer; }
.review-card__more[hidden] { display: none; }
.reviews__arrow { position: absolute; top: 50%; z-index: 5; display: none; width: 30px; height: 30px; margin-top: -15px; padding: 0; border: 0; border-radius: 50%; background: var(--color-white); color: var(--color-text); font-size: 12px; align-items: center; justify-content: center; box-shadow: 0 0 4px rgb(0 0 0 / 0.25); cursor: pointer; }
.reviews__arrow::after { content: ""; position: absolute; inset: -7px; } /* 44px tap target */
.reviews__arrow--prev { left: 1px; }
.reviews__arrow--next { right: 1px; }
.reviews__arrow.swiper-button-disabled { display: none !important; }
.reviews .swiper-scrollbar { position: relative; left: auto; bottom: auto; width: 150px; height: 3px; margin: 20px auto 0; background: rgb(255 255 255 / 0.2); }
.reviews .swiper-scrollbar-drag { background: rgb(255 255 255 / 0.4); }
.reviews__rating { margin: 15px 0 0; font-family: var(--font-review); font-size: 14px; line-height: 1.45; color: var(--color-white); text-align: center; }
.reviews__rating strong { font-weight: 600; }
.reviews__rating span { white-space: nowrap; }
@media (min-width: 920px) {
  .reviews .swiper { margin-inline: 16px; }
  .reviews__arrow { display: flex; }
}
@media (min-width: 620px) { .reviews .swiper-scrollbar { display: none; } }

/* === Component: contact (address, hours, social icons, map) === */
.contact { padding-block: 150px; }
.contact__grid { display: grid; grid-template-columns: 33.07% 35.263% 31.304%; padding-inline: 0; } /* columns carry the 10px gutter */
.contact__col { padding: var(--gutter); }
.contact__col > * + * { margin-top: var(--widget-gap); }
.contact__text { display: flow-root; font-size: 16px; line-height: 1.8; }
.contact__text p { margin: 1em 0; }
.contact__media > * + * { margin-top: 0; }
.contact__hygiene { margin-inline: auto; }
@media (max-width: 1024px) {
  .contact { padding: 40px; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__media { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .contact__grid { grid-template-columns: 1fr; } }

/* === Component: social-icons === */
.social-icons { display: flex; flex-wrap: wrap; gap: 5px; }
.social-icons a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10%; color: var(--color-white); font-size: 22px; transition: opacity var(--duration); }
.social-icons a:hover { opacity: 0.9; }
.social-icons__facebook { background: var(--color-facebook); }
.social-icons__instagram { background: var(--color-instagram); }
.social-icons__whatsapp { background: var(--color-whatsapp); }

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

/* === Component: site-footer === */
.site-footer { background: var(--color-dark); color: var(--color-white); font-family: var(--font-display); font-weight: 400; }
.site-footer__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding-inline: 0; } /* paragraphs carry the 10px gutter */
.site-footer__inner p { margin: 0; padding: calc(var(--gutter) + 16px) var(--gutter); font-size: 16px; line-height: normal; }
.site-footer__copyright { letter-spacing: 1.5px; }
.site-footer__credit { text-align: end; }
.site-footer a { color: var(--color-white); }
.site-footer a:hover { text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__inner { grid-template-columns: 55% 45%; }
  .site-footer__inner p { padding: calc(var(--gutter) + 14px) var(--gutter); font-size: 14px; }
}

/* === Component: slider (Swiper; library CSS in /assets/vendor/swiper-14.3.0/) === */
.swiper { --swiper-theme-color: var(--color-white); }

/* === Component: contact-email (replaces WordPress forms; not used: the original had no forms) === */
.contact-email { display: grid; gap: 1rem; justify-items: start; }
.contact-email__address { font-weight: 600; word-break: break-word; }

/* === Component: reveal (GSAP animates these; hidden only once GSAP has loaded) === */
.reveal-ready [data-reveal] { visibility: hidden; }

/* === Component: page-banner (simple pages such as 404: dark band behind the white header) === */
.page-banner { position: relative; padding: 220px 0 60px; background: var(--color-dark) url("/wp-content/uploads/2020/12/offers.jpg") center / cover no-repeat; }
.page-banner::before { content: ""; position: absolute; inset: 0; background: var(--overlay-section); }
.page-banner > .container { position: relative; }
.page-banner .section-title { font-size: clamp(2.6rem, 8vw, 4rem); }

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

/* === Page: /404.html === */
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ============ 7. Utilities ============ */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); 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; }
  .hero__image { transform: none !important; }
  [data-reveal] { visibility: visible !important; }
}
