/* ------------------------------------------------------------------
   Bharat Taxi: hero banner carousel + Gallery & Events page.

   Why plain CSS instead of Tailwind utilities?
   public/app.css is a generated Tailwind bundle that is committed and
   currently stale: utilities these components need (aspect-*, ring-2,
   grid-cols-6, w-24, opacity modifiers, arbitrary heights) are not in
   it. Regenerating app.css would add them, but it would also switch ON
   every other dormant class across all 9 brands and change the live
   site's layout (e.g. max-w-2xl / h-[480px] on the BharatTaxi page
   centre text and crop images). So these components carry their own
   scoped bt-* styles here instead. Scoped names => zero blast radius.

   Loaded after app.css in BaseLayout.astro.
   ------------------------------------------------------------------ */

/* ---------- Hero banner carousel ---------- */
.bt-carousel {
  position: relative;
  width: 100%;
  height: 52vh;
  overflow: hidden;
  background-color: #f3f4f6;
}

@media (min-width: 640px) {
  .bt-carousel {
    height: 62vh;
  }
}

@media (min-width: 768px) {
  .bt-carousel {
    height: 76vh;
  }
}

.bt-slide {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.7s ease-in-out;
}

.bt-slide-active {
  opacity: 1;
  z-index: 10;
}

.bt-slide a,
.bt-slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.bt-slide img {
  object-fit: cover;
}

.bt-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.bt-arrow:hover {
  background-color: #fff;
}

@media (min-width: 768px) {
  .bt-arrow {
    display: flex;
  }
}

.bt-arrow-left {
  left: 1rem;
}

.bt-arrow-right {
  right: 1rem;
}

/* Bottom scrim: keeps the dots legible over bright photos. */
.bt-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  z-index: 20;
  padding: 2.5rem 0 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}

.bt-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  transition: all 0.3s;
}

.bt-dot:hover {
  background-color: #fff;
}

.bt-dot-active {
  width: 2rem;
  background-color: #f57d02;
}

/* ---------- Gallery & Events page ---------- */
/* These replace Tailwind utilities that are absent from the stale app.css
   (pb-24, md:mb-14, text-[#1F2937]) and were silently doing nothing. */
.bt-gallery-body {
  padding-top: 1.5rem;
  padding-bottom: 6rem; /* keeps the footer clear of the last card */
}

.bt-gallery-head {
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .bt-gallery-head {
    margin-bottom: 3.5rem;
  }
}

.bt-page-title {
  color: #1f2937;
}

.bt-accent {
  width: 6rem;
  height: 0.375rem;
  background-color: #f57d02;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.bt-intro {
  max-width: 42rem;
  color: #4b5563;
}

.bt-event-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .bt-event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .bt-event-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }
}

.bt-event-card {
  cursor: pointer;
}

/* Cards are keyboard-operable (role=button + tabindex), so give focus a ring. */
.bt-event-card:focus-visible {
  outline: 2px solid #f57d02;
  outline-offset: 4px;
  border-radius: 0.75rem;
}

.bt-cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s;
}

.bt-event-card:hover .bt-cover-wrap {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18);
}

.bt-cover {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s;
}

.bt-event-card:hover .bt-cover {
  transform: scale(1.05);
}

.bt-badge {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.bt-event-title {
  margin-top: 0.75rem;
  font-weight: 700;
  color: #1f2937;
  font-size: 1.125rem;
  transition: color 0.2s;
}

.bt-event-card:hover .bt-event-title {
  color: #f57d02;
}

.bt-event-date {
  font-size: 0.875rem;
  color: #6b7280;
}

/* ---------- Viewer / lightbox ---------- */
.bt-viewer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  background-color: rgba(0, 0, 0, 0.95);
  overflow-y: auto;
}

.bt-viewer-inner {
  margin: 0 auto;
  width: 100%;
  max-width: 64rem;
  padding: 3.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bt-viewer-close {
  position: fixed;
  top: 0.75rem;
  right: 1.25rem;
  z-index: 60;
  color: #fff;
  font-size: 2.25rem;
  line-height: 1;
}

.bt-viewer-close:hover {
  opacity: 0.7;
}

.bt-viewer-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  text-align: center;
}

.bt-viewer-date {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

/* Fixed height: photos vary in aspect ratio (3:2 down to ~1.1), so a
   fluid stage would resize per photo and shove the counter/thumbnails
   up and down while paging. Constant box + object-contain = no shift. */
.bt-viewer-stage {
  position: relative;
  width: 100%;
  height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-viewer-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 0.5rem;
}

.bt-viewer-count {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.bt-viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 9999px;
  padding: 0.625rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.15);
}

.bt-viewer-arrow:hover {
  background-color: #fff;
}

/* md:w-6 / md:h-6 are absent from app.css, so size the icon here. */
.bt-viewer-arrow svg {
  width: 1.25rem;
  height: 1.25rem;
}

@media (min-width: 768px) {
  .bt-viewer-arrow svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

.bt-viewer-arrow-left {
  left: 0;
}

.bt-viewer-arrow-right {
  right: 0;
}

@media (min-width: 768px) {
  .bt-viewer-arrow {
    padding: 0.75rem;
  }

  .bt-viewer-arrow-left {
    left: -0.5rem;
  }

  .bt-viewer-arrow-right {
    right: -0.5rem;
  }
}

.bt-thumbs {
  width: 100%;
  margin-top: 2rem;
}

.bt-thumbs-label {
  color: #9ca3af;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.bt-thumb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .bt-thumb-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .bt-thumb-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.bt-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.bt-thumb:hover {
  opacity: 0.9;
}

.bt-thumb-active {
  opacity: 1;
  outline: 2px solid #f57d02;
}

/* ---------- Site font (Bharat Taxi + Sahakar only, via HomeLayout wrapper) ---------- */
.bt-font {
  font-family: "Plus Jakarta Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---------- Stats band (under the carousel) ---------- */
.bt-stats {
  background: #fff;
  border-bottom: 1px solid #eceef1;
  padding: 30px 24px;
}

.bt-stats-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.bt-stat {
  text-align: center;
  min-width: 200px;
}

.bt-stat-value {
  font-weight: 800;
  font-size: 40px;
  line-height: 1;
  color: #f57d02;
}

.bt-stat-label {
  font-weight: 600;
  font-size: 15px;
  color: #5b6472;
  margin-top: 8px;
}

@media (min-width: 768px) {
  .bt-stats-inner {
    gap: 80px;
  }
  .bt-stat-value {
    font-size: 52px;
  }
}

/* ---------- Merged home fold ---------- */
.bt-home {
  background: #fff;
}

.bt-home-hero {
  max-width: 1320px;
  margin: 0 auto;
  padding: 56px 48px 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: center;
}

.bt-home-kicker {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b6472;
}

.bt-home-title {
  font-weight: 800;
  font-size: 60px;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-top: 14px;
  color: #1f2937;
}

.bt-home-title-b {
  color: #0580e5;
}

.bt-home-lead {
  font-size: 18px;
  line-height: 1.55;
  color: #5b6472;
  margin-top: 20px;
  max-width: 60ch;
}

.bt-home-lead strong {
  color: #1f2937;
}

.bt-home-pillars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.bt-home-pillars span {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: #f57d02;
  background: #fff4e8;
  border: 1px solid #ffe1c2;
  border-radius: 999px;
  padding: 6px 12px;
}

.bt-home-cta {
  display: inline-block;
  margin-top: 26px;
  background: #f57d02;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  font-family: inherit;
  border: 0;
  padding: 15px 30px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(245, 125, 2, 0.28);
  cursor: pointer;
}

.bt-home-cta:hover {
  box-shadow: 0 8px 22px rgba(245, 125, 2, 0.36);
}

.bt-home-map {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Positioning context for the chakra: sized to the map image (not the wider
   flex column), so the absolutely-positioned wheel centers on the map. */
.bt-home-map-inner {
  position: relative;
  width: 100%;
  max-width: 440px;
  line-height: 0;
}

.bt-home-map-india {
  display: block;
  width: 100%;
}

.bt-home-map-chakra {
  position: absolute;
  width: 30%;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- Claims band ---------- */
.bt-home-claims {
  background: #f8fafc;
  border-top: 1px solid #eceef1;
  padding: 64px 0 72px;
}

.bt-home-claims-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 48px;
}

.bt-home-h2 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #1f2937;
}

.bt-home-sub {
  font-size: 17px;
  line-height: 1.6;
  color: #5b6472;
  max-width: 70ch;
  margin-top: 4px;
}

.bt-claim-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.bt-claim {
  background: #fff;
  border: 1px solid #eceef1;
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}

.bt-claim:hover {
  box-shadow: 0 12px 24px rgba(16, 24, 40, 0.1);
  transform: translateY(-2px);
}

.bt-claim-ic {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  background: #fff4e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bt-claim-ic img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.bt-claim-title {
  font-weight: 700;
  font-size: 19px;
  margin-top: 16px;
  color: #1f2937;
}

.bt-claim-desc {
  font-size: 15px;
  line-height: 1.5;
  color: #5b6472;
  margin-top: 6px;
}

.bt-home-backers {
  margin-top: 48px;
  font-size: 20px;
  line-height: 1.5;
  color: #1f2937;
}

.bt-home-backers-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b6472;
  margin-bottom: 8px;
}

.bt-home-backers strong {
  font-weight: 800;
  color: #1f2937;
}

@media (max-width: 900px) {
  .bt-home-hero {
    grid-template-columns: 1fr;
    padding: 36px 24px;
  }
  .bt-home-title {
    font-size: 44px;
  }
  .bt-home-claims-inner {
    padding: 0 24px;
  }
  .bt-claim-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .bt-claim-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- About intro prose spacing (space-y-* is absent from app.css) ---------- */
.bt-prose > p + p {
  margin-top: 1.25rem;
}

/* About Us hero image */
.bt-about-img {
  width: 480px;
  max-width: 100%;
  height: auto;
}

/* Vertical spacing between the "Our Mission" blocks (space-y-* is dead in app.css) */
.bt-mission-blocks > div + div {
  margin-top: 2rem;
}

/* Vision/Mission headings: text-[#1F2937] is absent from app.css (dead). */
.bt-mv-title {
  color: #1f2937;
}

/* Vision/Mission target image: all of h-64/h-80/md:h-[480px]/lg:h-[520px] and
   w-96 are absent from app.css, so the image had no deliberate size. Native is
   540x443 -> cap at 480px wide (no upscaling, no crop). */
.bt-mv-img {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}
