/* KRISHNAKRIPA AUDITORIUM — site styles (dark / gradient accents) */

:root {
  --bg-deep: #05070a;
  --bg-elevated: #0b0c10;
  --bg-card: rgba(18, 22, 32, 0.72);
  --text: #f4f6fb;
  --text-muted: #9aa3b5;
  --accent-start: #7b61ff;
  --accent-end: #4cc9f0;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 50px rgba(0, 0, 0, 0.45);
  --header-top-pad: clamp(22px, 4.5vw, 34px);
  --header-bottom-pad: clamp(14px, 2.5vw, 22px);
  --logo-h: 90px;
  --header-h: calc(var(--header-top-pad) + var(--logo-h) + var(--header-bottom-pad));
  --container: min(1120px, calc(100% - 40px));
  --section-pad: clamp(72px, 12vw, 120px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding-top: var(--header-top-pad);
  padding-bottom: var(--header-bottom-pad);
  height: auto;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.94), rgba(5, 7, 10, 0.65), transparent);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo--brand {
  display: flex;
  align-items: center;
  line-height: 0;
  border-radius: 14px;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.logo--brand:hover {
  transform: translateY(-1px);
}

.logo--brand:focus-visible {
  outline: 2px solid rgba(76, 201, 240, 0.85);
  outline-offset: 4px;
}

.logo-img {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: min(420px, 88vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
  transition: filter 0.3s ease, transform 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

.logo--brand:hover .logo-img {
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(123, 97, 255, 0.35));
  transform: scale(1.02);
}

.footer-brand .logo--footer .logo-img {
  height: calc(var(--logo-h) * 0.82);
  max-width: min(380px, 90vw);
}

.footer-brand .logo--footer:hover .logo-img {
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 14px rgba(76, 201, 240, 0.22));
}

@media (prefers-reduced-motion: reduce) {
  .logo--brand,
  .logo-img {
    transition: none;
  }

  .logo--brand:hover {
    transform: none;
  }

  .logo--brand:hover .logo-img {
    transform: none;
  }
}

@media (min-width: 768px) {
  :root {
    --logo-h: 114px;
  }
}

@media (min-width: 1024px) {
  :root {
    --logo-h: 132px;
  }
}

@media (min-width: 1280px) {
  :root {
    --logo-h: 148px;
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.nav a:hover {
  color: var(--text);
}

.btn-nav {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  position: relative;
}

.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.nav-toggle::before {
  top: 14px;
}

.nav-toggle::after {
  bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 0px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  color: #fff;
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

/* Hero + carousel */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 100px;
  display: flex;
  align-items: center;
}

.hero-slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.15s ease-in-out;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide--1 {
  background-image: url("Images/25.png");
}

.hero-slide--2 {
  background-image: url("Images/26.png");
}

.hero-slide--3 {
  background-image: url("Images/27.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(5, 7, 10, 0.72) 0%,
    rgba(5, 7, 10, 0.55) 42%,
    rgba(5, 7, 10, 0.35) 100%
  );
  pointer-events: none;
}

.hero-carousel-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 3;
  pointer-events: none;
}

.hero-carousel-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  pointer-events: auto;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 7, 10, 0.55);
  backdrop-filter: blur(10px);
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.carousel-btn:hover {
  border-color: rgba(123, 97, 255, 0.55);
  background: rgba(18, 22, 32, 0.75);
  transform: scale(1.05);
}

.carousel-btn--prev::after,
.carousel-btn--next::after {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.carousel-btn--prev::after {
  transform: rotate(45deg);
  margin-left: 3px;
}

.carousel-btn--next::after {
  transform: rotate(-135deg);
  margin-right: 3px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 10, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.carousel-dot.is-active {
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 0 14px rgba(123, 97, 255, 0.55);
  transform: scale(1.2);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr minmax(240px, 300px);
  gap: 3rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 1.75rem;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.hero-card {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-stat {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.hero-stat strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-stat-icon {
  font-size: 1.1rem;
  opacity: 0.85;
  line-height: 1.2;
}

/* Sections */
.section {
  padding-block: var(--section-pad);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split--reverse .feature-media {
  order: 1;
}

.split--reverse .feature-body {
  order: 0;
}

.feature-media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.feature-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.feature-media--about {
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  align-self: center;
}

/* Overlapping “editorial” collage (distinct from a flat grid) */
.about-collage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  min-height: min(380px, 56vw);
  max-width: 480px;
  margin-inline: auto;
}

@media (min-width: 961px) {
  .about-collage {
    max-width: none;
    min-height: clamp(360px, 36vw, 460px);
  }
}

.about-collage__frame {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition:
    transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.35s ease;
}

.about-collage__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
}

/* Large anchor — left */
.about-collage__frame--a {
  width: 64%;
  height: 82%;
  left: 0;
  top: 50%;
  transform: translateY(-50%) rotate(-2.8deg);
  z-index: 1;
}

/* Top-right card */
.about-collage__frame--b {
  width: 56%;
  height: 50%;
  right: -2%;
  top: 2%;
  transform: rotate(3.2deg);
  z-index: 3;
}

/* Bottom-front overlap */
.about-collage__frame--c {
  width: 54%;
  height: 54%;
  right: 4%;
  bottom: 0;
  transform: rotate(-2deg);
  z-index: 2;
}

@media (hover: hover) and (pointer: fine) {
  .about-collage__frame--a:hover {
    z-index: 8;
    transform: translateY(-50%) rotate(0deg) scale(1.02);
    box-shadow: 0 28px 60px rgba(123, 97, 255, 0.22), 0 18px 50px rgba(0, 0, 0, 0.55);
  }

  .about-collage__frame--b:hover {
    z-index: 8;
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 28px 60px rgba(123, 97, 255, 0.22), 0 18px 50px rgba(0, 0, 0, 0.55);
  }

  .about-collage__frame--c:hover {
    z-index: 8;
    transform: rotate(0deg) scale(1.03);
    box-shadow: 0 28px 60px rgba(123, 97, 255, 0.22), 0 18px 50px rgba(0, 0, 0, 0.55);
  }

  .about-collage__frame:hover img {
    transform: scale(1.06) translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-collage__frame,
  .about-collage__frame img {
    transition: none;
  }

  .about-collage__frame--a {
    transform: translateY(-50%) rotate(0deg);
  }

  .about-collage__frame--b {
    transform: rotate(0deg);
  }

  .about-collage__frame--c {
    transform: rotate(0deg);
  }

  .about-collage__frame:hover img {
    transform: none;
  }
}

.feature-body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.feature-body > p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  max-width: 32rem;
}

.feature-body-note {
  margin: 0 0 1.75rem !important;
  font-size: 0.95rem;
}

.section-head {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto 2.75rem;
}

.section-head .section-intro {
  margin-bottom: 0;
}

.section-head--left {
  text-align: left;
  margin-left: 0;
  max-width: none;
}

.section-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading {
  margin: 0;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-intro--after-title {
  margin-top: 1rem;
  margin-bottom: 0;
}

.split--tight-top {
  margin-top: 0;
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mini-card {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.mini-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.mini-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.mini-icon {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.4;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.checklist li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.check-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.35), rgba(76, 201, 240, 0.25));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.checklist strong {
  display: block;
  margin-bottom: 0.2rem;
}

.checklist span:not(.check-icon) {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Gallery */
.gallery-section {
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(123, 97, 255, 0.12), transparent 55%),
    var(--bg-deep);
}

.section-intro {
  margin: 0 auto 2.75rem;
  max-width: 36rem;
  text-align: center;
  color: var(--text-muted);
}

.gallery-by-category {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 3.85rem);
}

.gallery-category {
  margin: 0;
}

.gallery-category-head {
  position: relative;
  margin-bottom: 1.35rem;
  padding: 0 0 1rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.gallery-category-head::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.5rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent-start), var(--accent-end));
}

.gallery-category-title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.gallery-category-desc {
  margin: 0;
  max-width: 42rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.gallery-grid,
.gallery-grid--all {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(123, 97, 255, 0.25);
}

.gallery-card:focus {
  outline: none;
}

.gallery-card:focus-visible {
  border-color: rgba(76, 201, 240, 0.55);
  box-shadow: var(--shadow-soft), 0 0 0 3px rgba(123, 97, 255, 0.35);
}

/* Gallery lightbox */
.lightbox[hidden] {
  display: none !important;
}

.lightbox:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  animation: lightbox-in 0.22s ease-out;
}

@keyframes lightbox-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1280px);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.lightbox-close,
.lightbox-stage,
.lightbox-caption,
.lightbox-counter {
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.45rem, 2vw, 1.15rem);
}

.lightbox-frame {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-nav {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(5, 7, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.lightbox-nav:hover {
  border-color: rgba(123, 97, 255, 0.55);
  background: rgba(18, 22, 32, 0.85);
  transform: scale(1.05);
}

.lightbox-nav::after {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.lightbox-prev::after {
  transform: rotate(45deg);
  margin-left: 4px;
}

.lightbox-next::after {
  transform: rotate(-135deg);
  margin-right: 4px;
}

.lightbox-nav[hidden] {
  display: none !important;
}

.lightbox-img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(85vh, 880px);
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(18, 22, 32, 0.92);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(20%, -20%);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.lightbox-close:hover {
  border-color: rgba(123, 97, 255, 0.5);
  background: rgba(30, 34, 48, 0.98);
}

.lightbox-caption {
  margin: 1rem 0 0;
  padding: 0 0.5rem;
  max-width: 42rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.lightbox-caption[hidden] {
  display: none !important;
}

.lightbox-counter {
  margin: 0.45rem 0 0;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

.lightbox-counter[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .lightbox-close {
    transform: translate(0, -8px);
    top: -48px;
    right: 0;
  }

  .lightbox-stage {
    gap: 0;
  }

  .lightbox-prev {
    position: absolute;
    left: 4px;
    top: 50%;
    margin-top: -24px;
    z-index: 2;
  }

  .lightbox-next {
    position: absolute;
    right: 4px;
    top: 50%;
    margin-top: -24px;
    z-index: 2;
  }

  .lightbox-nav:hover {
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lightbox:not([hidden]) {
    animation: none;
  }
}

/* Floating chat (WhatsApp / Call) */
.fab {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right, 0px));
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.fab-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}

.fab.is-open .fab-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.fab-trigger:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.fab-trigger:focus-visible {
  outline: 2px solid rgba(76, 201, 240, 0.9);
  outline-offset: 3px;
}

.fab-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  box-shadow: 0 8px 24px rgba(123, 97, 255, 0.3);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.fab-link:hover {
  transform: translateY(-2px) scale(1.04);
  filter: brightness(1.07);
}

.fab-link:focus-visible {
  outline: 2px solid rgba(76, 201, 240, 0.9);
  outline-offset: 3px;
}

.fab-svg {
  display: block;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .fab-panel,
  .fab-trigger,
  .fab-link {
    transition: none;
  }

  .fab-trigger:hover,
  .fab-link:hover {
    transform: none;
  }
}

.gallery-card-top {
  position: relative;
}

.gallery-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-pill);
  background: rgba(5, 7, 10, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-card-top img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-card-body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.gallery-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.gallery-card-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Facilities */
.facilities-section {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #070910 45%, var(--bg-deep) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.facility-card {
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: var(--radius-lg);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.facility-card:hover {
  transform: translateY(-3px);
  border-color: rgba(123, 97, 255, 0.22);
}

.facility-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.85rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.35), rgba(76, 201, 240, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.facility-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.facility-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Facilities — hall spec rows (unique palette per hall, brand-adjacent) */
.facilities-showcase {
  margin-top: clamp(2.75rem, 6vw, 4.5rem);
  width: 100%;
  border-top: 1px solid rgba(123, 97, 255, 0.14);
}

.facility-showcase {
  --fs-text: #c4cad6;
  --fs-muted: #8b95a8;
  --fs-title: #d4c4ff;
  --fs-label: #7ee8ff;
  --fs-desc: #9aa3b5;
  --fs-media-glow: rgba(123, 97, 255, 0.28);
  --fs-btn-bg: linear-gradient(135deg, #7b61ff 0%, #4cc9f0 100%);
  --fs-btn-shadow: rgba(76, 201, 240, 0.35);
  --fs-focus: #4cc9f0;
  --fs-row-border: rgba(123, 97, 255, 0.12);
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
  color: var(--fs-text);
  background: linear-gradient(165deg, #080a10 0%, #0e1220 42%, #0a0d16 100%);
  border-bottom: 1px solid var(--fs-row-border);
}

.facility-showcase:nth-child(2) {
  --fs-text: #ddd4dc;
  --fs-muted: #a898a8;
  --fs-title: #fcd29f;
  --fs-label: #f9a8d4;
  --fs-desc: #c9bcc4;
  --fs-media-glow: rgba(236, 72, 153, 0.22);
  --fs-btn-bg: linear-gradient(135deg, #c084fc 0%, #f472b6 48%, #fb923c 100%);
  --fs-btn-shadow: rgba(244, 114, 182, 0.32);
  --fs-focus: #f9a8d4;
  --fs-row-border: rgba(244, 114, 182, 0.14);
  background: linear-gradient(165deg, #0c080e 0%, #16101c 45%, #100a12 100%);
}

.facility-showcase:last-child {
  border-bottom: none;
}

.facility-showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.75rem);
  align-items: center;
}

.facility-showcase--media-right .facility-showcase__media {
  order: 2;
}

.facility-showcase--media-right .facility-showcase__body {
  order: 1;
}

.facility-showcase__media {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 48px rgba(0, 0, 0, 0.45),
    0 0 60px var(--fs-media-glow);
}

.facility-showcase__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.facility-showcase__title {
  margin: 0 0 1.1rem;
  font-family: "Merriweather", Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--fs-title);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.facility-showcase__facts {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fs-muted);
}

.facility-showcase__facts li {
  margin-bottom: 0.4rem;
}

.facility-showcase__facts li:last-child {
  margin-bottom: 0;
}

.facility-showcase__fact-label {
  display: inline-block;
  min-width: 5.5rem;
  font-weight: 600;
  color: var(--fs-label);
}

.facility-showcase__desc {
  margin: 0 0 1.5rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--fs-desc);
  max-width: 36rem;
}

.facility-showcase__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #0a0a0c;
  background: var(--fs-btn-bg);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 22px var(--fs-btn-shadow);
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.facility-showcase__btn:hover {
  filter: brightness(1.08) saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px var(--fs-btn-shadow);
}

.facility-showcase__btn:focus-visible {
  outline: 2px solid var(--fs-focus);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .facility-showcase-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .facility-showcase--media-right .facility-showcase__media,
  .facility-showcase--media-left .facility-showcase__media {
    order: -1;
  }

  .facility-showcase--media-right .facility-showcase__body,
  .facility-showcase--media-left .facility-showcase__body {
    order: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .facility-showcase__btn {
    transition: none;
  }

  .facility-showcase__btn:hover {
    transform: none;
  }
}

/* Services */
.services-section {
  background: radial-gradient(ellipse 70% 45% at 80% 10%, rgba(76, 201, 240, 0.08), transparent 50%),
    var(--bg-deep);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.service-card {
  min-height: 100%;
}

.service-card-inner {
  height: 100%;
  padding: 1.45rem 1.35rem 1.5rem;
  border-radius: var(--radius-lg);
}

.service-card-inner h3 {
  margin: 0 0 0.55rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.service-card-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Contact */
.contact-section {
  padding-bottom: calc(var(--section-pad) + 24px);
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(123, 97, 255, 0.1), transparent 55%),
    linear-gradient(180deg, #080a12, var(--bg-deep));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.35rem;
  align-items: stretch;
}

.contact-info,
.contact-map {
  padding: 1.5rem 1.45rem 1.6rem;
  border-radius: var(--radius-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding-bottom: 0.65rem;
}

.contact-block-title {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.contact-list {
  margin: 0;
  flex-shrink: 0;
}

.contact-list > div {
  margin-bottom: 1rem;
}

.contact-list > div:last-child {
  margin-bottom: 0;
}

.contact-list dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-list dd {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
}

.contact-list a:hover {
  color: var(--accent-end);
}

.contact-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.75rem 2.5rem;
  margin-top: auto;
  margin-left: -1.45rem;
  margin-right: -1.45rem;
  padding: 1rem 1.45rem 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  border-radius: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-social-link:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.contact-social-link:focus-visible {
  outline: 2px solid var(--accent-end);
  outline-offset: 4px;
}

.contact-social-icon {
  display: block;
  width: 2.1rem;
  height: 2.1rem;
}

@media (min-width: 900px) {
  .contact-social-icon {
    width: 2.4rem;
    height: 2.4rem;
  }
}

.contact-map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 380px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 10, 0.55);
}

.contact-map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-map-link {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
}

.contact-map-link a {
  font-weight: 600;
  color: var(--accent-end);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 201, 240, 0.35);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-map-link a:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.35);
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #030406;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 22rem;
  line-height: 1.55;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.footer-cols h4 {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-cols a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.footer-cols a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.65rem;
  max-width: min(52rem, 100%);
}

.footer-sparta-credit {
  display: inline;
  font-size: inherit;
  line-height: inherit;
}

.footer-sparta-intro {
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.footer-sparta-link {
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  background: linear-gradient(120deg, var(--accent-start), var(--accent-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.footer-sparta-link:hover {
  filter: brightness(1.15);
}

.footer-sparta-link:focus-visible {
  outline: 2px solid var(--accent-end);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 360px;
  }

  .split,
  .split--reverse {
    grid-template-columns: 1fr;
  }

  .split--reverse .feature-media,
  .split--reverse .feature-body {
    order: unset;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .about-collage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    aspect-ratio: auto;
    min-height: 0;
    max-width: none;
    padding-bottom: 1rem;
  }

  .about-collage__frame {
    position: relative;
    width: 100% !important;
    height: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0;
  }

  .about-collage__frame--a {
    width: 94% !important;
    z-index: 1;
  }

  .about-collage__frame--b {
    width: 78% !important;
    align-self: flex-end;
    margin: -2.25rem 0 0;
    z-index: 2;
  }

  .about-collage__frame--c {
    width: 82% !important;
    align-self: flex-start;
    margin-top: -2rem;
    z-index: 3;
  }

  .about-collage__frame img {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .gallery-grid,
  .gallery-grid--all {
    grid-template-columns: repeat(2, 1fr);
  }

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .btn-nav {
    display: none;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(5, 7, 10, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .nav a {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 640px) {
  .gallery-grid,
  .gallery-grid--all {
    grid-template-columns: 1fr;
  }

  .facilities-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .footer-cols {
    grid-template-columns: 1fr;
  }
}
