/*
 * site.css: the only stylesheet for mahabharatonline.co.uk (Maha Bharat, Kingsbridge).
 *
 * 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
 *   The main menu collapses to the burger at ≤ 1024px (tablet and mobile), as on the original.
 *
 * Editing: change tokens to restyle the site; add new components as new blocks;
 * add modifier classes (.info-col--wide) instead of changing a component for one page.
 */

/* ============ 1. Tokens ============ */
:root {
  /* Colours (from the original's computed styles) */
  --color-text: #000000;
  --color-text-soft: rgba(12, 12, 12, 0.86);   /* address, footer */
  --color-bg: #ffffff;
  --color-brown: #5e432d;                      /* About section, banner overlay */
  --color-brown-dark: #2f2217;                 /* app band */
  --color-grey: #e0e0e0;                       /* gallery section */
  --color-nav: #000000;                        /* nav bar and dropdown */
  --color-nav-active: #3f444b;                 /* dropdown active row */
  --color-accent: #f5821f;                     /* orange: buttons, icons, underline, rules, footer link */
  --color-accent-contrast: #ffffff;
  --color-white: #ffffff;

  /* Typography */
  --font-serif: "Times New Roman", Times, serif;   /* headings and About text (system font, as on the original) */
  --font-nav: "Roboto", Arial, sans-serif;
  --font-condensed: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  --font-footer: "Open Sans", Arial, sans-serif;
  --font-body: var(--font-serif);

  /* Spacing and shape */
  --container: 1140px;
  --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 subset, variable files cover the weights in use). */
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-latin-var.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Roboto Condensed"; src: url("/assets/fonts/roboto-condensed-latin-italic-var.woff2") format("woff2"); font-weight: 400 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/open-sans-latin-700.woff2") format("woff2"); font-weight: 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: 1.5; 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 { margin: 0; font-weight: 400; line-height: 1; }
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-accent); outline-offset: 2px; }
.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

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

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

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

/* === Component: banner (header image, logo) ===
 * The four social icons (invisible on the original) were removed 2026-10-23 (user decision, d19);
 * padding is now symmetric so the logo sits centred where the icon row used to be. */
.banner { position: relative; background: url("/wp-content/uploads/2018/10/top-banner.jpg") center / cover no-repeat; padding: 75px 0; }
.banner::before { content: ""; position: absolute; inset: 0; background: var(--color-brown); opacity: 0.2; }
.banner__inner { position: relative; padding: var(--gutter); }
.banner__logo { display: block; width: 20%; margin-inline: auto; }
.banner__logo img { width: 100%; }
@media (max-width: 1024px) {
  .banner { padding: 50px 0; }
  .banner__logo { width: 45%; }
}
@media (max-width: 767px) {
  .banner { padding: 50px 0; }
  .banner__logo { width: 100%; }
}

/* === Component: navbar + site-nav (main menu) === */
.navbar { background: var(--color-nav); padding: var(--gutter); }
.navbar__inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; display: flex; flex-direction: column; align-items: stretch; }
.site-nav__list { display: flex; justify-content: center; list-style: none; margin: 0; padding: 0; }
.site-nav__list li { margin-right: 20px; }
.site-nav__list li:last-child { margin-right: 0; }
.site-nav a { position: relative; display: flex; padding: 13px 28px; font-family: var(--font-nav); font-size: 16px; font-weight: 600; line-height: 20px; color: var(--color-white); }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--color-accent); opacity: 0; transition: opacity var(--duration) var(--ease); }
.site-nav a:hover::after, .site-nav a:focus-visible::after, .site-nav a[aria-current="page"]::after { opacity: 1; }
.nav-toggle { display: none; align-self: center; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 3px; background: rgba(0, 0, 0, 0.05); color: var(--color-white); font-size: 22px; 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; }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  /* Slide-down dropdown in the page flow (pushes content down, as on the original), 0.3s */
  .site-nav { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--duration) var(--ease), visibility var(--duration); visibility: hidden; }
  .site-nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .site-nav__list { overflow: hidden; min-height: 0; flex-direction: column; justify-content: flex-start; }
  .site-nav__list li { margin: 0; }
  .site-nav a { padding: 10px 20px; font-size: 13px; font-weight: 500; line-height: 20px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--color-nav-active); }
}

/* === Component: site-footer === */
.site-footer { background: var(--color-bg); padding: 30px var(--gutter) 10px; }
.site-footer__inner { max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: auto; }
.site-footer__copyright { margin: 0 0 22.5px; text-align: center; font-family: var(--font-footer); font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: 0.8px; text-transform: uppercase; color: var(--color-text-soft); }
.site-footer__copyright a { color: var(--color-accent); text-decoration: underline; }
@media (max-width: 767px) {
  .site-footer__copyright { line-height: 1.66; }
}

/* === Component: button === */
.button { display: inline-block; padding: 15px 30px; border: 0; background: var(--color-accent); color: var(--color-accent-contrast); font-family: var(--font-serif); font-size: 19px; line-height: 9.5px; cursor: pointer; transition: filter var(--duration) var(--ease); }
.button:hover { filter: brightness(0.92); }

/* === Component: about (brown intro block; the original's single-slide Slides widget) === */
.about { background: var(--color-brown); padding: 50px 0; }
.about__inner { display: flex; align-items: center; justify-content: center; height: 400px; padding: 50px; color: var(--color-white); text-align: center; }
.about__content { max-width: 40%; }
.about__heading { margin-bottom: 21px; font-family: var(--font-serif); font-size: 53px; line-height: 1; text-transform: uppercase; }
.about__text { margin-bottom: 30px; font-family: var(--font-serif); font-size: 20px; line-height: 1.4; }
@media (max-width: 1024px) {
  .about__inner { height: 368px; }
  .about__content { max-width: 67%; }
  .about__heading { font-size: 40px; }
  .about__text { font-size: 17px; }
}
@media (max-width: 767px) {
  .about__inner { height: 530px; padding: 30px; }
  .about__content { max-width: 80%; }
}

/* === Component: section-heading (big serif heading, e.g. GALLERY) === */
.section-heading { margin-bottom: 45px; text-align: center; font-family: var(--font-serif); font-size: 50px; font-weight: 600; line-height: 1; color: var(--color-text); }

/* === Component: gallery-carousel (Swiper + GLightbox) ===
 * Swiper options are in the page's data-swiper attribute; arrows sit outside the slider. */
.gallery { background: var(--color-grey); padding: 50px; }
.gallery__inner { max-width: var(--container); margin-inline: auto; padding: var(--gutter); }
.gallery-carousel { position: relative; }
.gallery-carousel .swiper { margin: 0 30px; }
.gallery-carousel .swiper-slide { display: flex; justify-content: center; align-items: flex-start; }
.gallery-carousel .swiper-slide a { display: block; }
.gallery-carousel .swiper-slide img { display: inline; width: auto; height: auto; max-width: 100%; } /* inline, as on the original: keeps its baseline gap under each image */
.gallery-carousel__arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 25px; height: 44px; margin-top: -22px; padding: 0; border: 0; background: none; color: var(--color-text); font-size: 25px; cursor: pointer; }
.gallery-carousel__arrow--prev { left: 0; }
.gallery-carousel__arrow--next { right: 0; }
.gallery-carousel__arrow.swiper-button-disabled { opacity: 0.35; cursor: auto; }
.gallery-carousel__arrow .swiper-navigation-icon { display: none; }
/* Without JS (or before Swiper starts) show the first slides in a row */
.gallery-carousel .swiper:not(.swiper-initialized) .swiper-slide { width: 33.333%; }
@media (max-width: 767px) {
  .gallery-carousel .swiper:not(.swiper-initialized) .swiper-slide { width: 100%; }
}
/* GLightbox: dark overlay and title styling like the original Elementor lightbox */
.glightbox-clean .gslide-description { background: transparent; }
.glightbox-clean .gslide-title { font-family: var(--font-nav); font-size: 16px; font-weight: 500; color: var(--color-white); margin-bottom: 0; }
.glightbox-clean .gdesc-inner { padding: 12px 0; }
.goverlay { background: rgba(0, 0, 0, 0.92); }

/* === Component: info-columns (opening times / find us / contact us) === */
.info { background: var(--color-bg); padding: 100px 0; }
.info__inner { display: flex; justify-content: space-between; max-width: var(--container); margin-inline: auto; }
.info-col { flex: 0 0 26.316%; /* desktop: three 300px columns spread across 1140px, as on the original */ display: flex; flex-direction: column; justify-content: center; padding: var(--gutter); text-align: center; }
.info-col__heading { margin-bottom: var(--widget-gap); font-family: var(--font-serif); font-size: 32px; font-weight: 300; line-height: 1; letter-spacing: 1px; text-transform: uppercase; color: var(--color-text); }
.info-col__icon { display: flex; justify-content: center; margin-bottom: var(--widget-gap); font-size: 40px; line-height: 1; color: var(--color-accent); }
.info-col__icon .icon { width: 40px; height: 40px; }
.info-col__text { margin-bottom: 27px; font-family: var(--font-condensed); font-size: 18px; line-height: 1.5; letter-spacing: 0.8px; text-transform: uppercase; color: var(--color-text); }
.info-col__text--soft { color: var(--color-text-soft); }
.info-col__phone { margin-bottom: var(--widget-gap); padding: 10px; border-block: 2px solid var(--color-accent); }
.info-col__phone:last-child { margin-bottom: 0; }
.info-col__phone h2 { font-family: var(--font-condensed); font-size: 25px; line-height: 1; letter-spacing: 1px; color: var(--color-text); }
.info-col__phone a { color: var(--color-text); }
@media (max-width: 1024px) {
  .info { padding: 50px var(--gutter); }
  .info-col { flex: 1 1 0; }
  .info-col__heading { font-size: 30px; }
  .info-col__text--hours { font-size: 14px; }
  .info-col__phone { padding: 20px 0; }
  .info-col__phone h2 { font-size: 30px; }
}
@media (max-width: 767px) {
  .info__inner { flex-direction: column; }
  .info-col { flex: none; min-height: 326px; padding: 0 50px; }
  .info-col__heading { font-size: 35px; }
  .info-col__text { line-height: 1.66; }
}

/* === Component: map (keyless Google Maps iframe) === */
.map { display: block; width: 100%; height: 378px; border: 0; }
@media (max-width: 1024px) { .map { height: 250px; } }
@media (max-width: 767px) { .map { height: 350px; } }

/* === Component: app-band (dark "Search Maha Bharat in the App Stores" block) === */
.app-band { background: var(--color-brown-dark); padding: 80px; color: var(--color-white); }
.app-band__inner { max-width: var(--container); margin-inline: auto; padding: var(--gutter); text-align: center; }
.app-band h2 { margin-bottom: var(--widget-gap); font-family: var(--font-condensed); font-style: italic; font-weight: 600; font-size: 45px; line-height: 1; letter-spacing: 1px; color: var(--color-white); }
.app-band .app-band__title { font-size: 70px; }
.app-band .app-band__lead { font-size: 26px; font-weight: 400; }
.app-badges { display: flex; margin-top: var(--widget-gap); }
.app-badges__item { flex: 1 1 0; padding: var(--gutter); display: flex; }
.app-badges__item:first-child { justify-content: flex-end; }
.app-badges__item img { width: 112px; }
@media (max-width: 1024px) {
  .app-band { padding: 40px 80px; }
  .app-band h2, .app-band .app-band__title { font-size: 40px; }
  .app-band .app-band__lead { font-size: 25px; }
  .app-badges__item img { width: 196px; }
}
@media (max-width: 767px) {
  .app-band { padding: 50px 20px; }
  .app-band h2 { font-size: 26px; }
  .app-band .app-band__title { font-size: 40px; }
  .app-band .app-band__lead { font-size: 16px; }
  .app-badges { flex-direction: column; }
  .app-badges__item, .app-badges__item:first-child { justify-content: center; }
}

/* === Component: contact-email (replaces WordPress forms; none on this site, kept for future use) === */
.contact-email { display: grid; gap: 16px; justify-items: center; text-align: center; }
.contact-email__address { font-weight: 600; word-break: break-word; }
.contact-email__phone a { color: inherit; }

/* === Component: popup (not used on this site; starter component) === */
.popup { border: 0; padding: 32px; max-width: min(90vw, 600px); }
.popup::backdrop { background: rgb(0 0 0 / 0.6); }

/* === Component: reveal (GSAP; not used on this site) === */
.reveal-ready [data-reveal] { visibility: hidden; }

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

/* === Page: /404.html === */
.not-found { background: var(--color-brown); padding: 100px 20px; text-align: center; color: var(--color-white); }
.not-found h1 { margin-bottom: 21px; font-family: var(--font-serif); font-size: 53px; text-transform: uppercase; }
.not-found p { margin-bottom: 30px; font-size: 20px; line-height: 1.4; }
.not-found__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .not-found h1 { font-size: 40px; } .not-found p { font-size: 17px; } }

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