/* ============================================================================
   ANEKANT SEVA SANSTHAN — DESIGN SYSTEM
   Design tokens (colors, type, spacing) live at the top as CSS variables.
   Sections below are organized: reset -> base -> layout -> components -> utilities
   ============================================================================ */

:root {
  /* Brand palette */
  --color-navy: #1b2a4a;
  --color-navy-dark: #131f38;
  --color-cream: #f5e7be;
  --color-gold: #8a6d1e;
  --color-bg: #fdfbf3;
  --color-bg-alt: #f4efde;
  --color-muted-gold: #d8cfa6;

  --color-text: #22252c;
  --color-text-muted: #565a63;
  --color-border: #e5decb;
  --color-white: #ffffff;
  --color-focus: #2f6fed;

  /* Typography */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-devanagari: "Noto Serif Devanagari", "Lora", serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container-max: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(27, 42, 74, 0.07);
  --shadow-card: 0 6px 24px rgba(27, 42, 74, 0.09), 0 1px 2px rgba(27, 42, 74, 0.05);
  --shadow-card-hover: 0 18px 40px rgba(27, 42, 74, 0.16), 0 2px 6px rgba(27, 42, 74, 0.08);
  --shadow-float: 0 20px 50px rgba(19, 31, 56, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gradient-navy: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  --header-height: 80px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* When renderImage() emits a <picture> (WebP + fallback), let the <img>
   inside size itself exactly as if the wrapper weren't there. */
.carousel__slide picture,
.gallery-item picture,
.lightbox__content picture {
  display: contents;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  line-height: 1.25;
  margin: 0 0 var(--space-4);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 var(--space-4); }

.lang-hi {
  font-family: var(--font-devanagari);
}

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

/* Skip link for keyboard/screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-navy);
  color: var(--color-cream);
  padding: var(--space-3) var(--space-4);
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: var(--space-16);
}

@media (min-width: 640px) {
  .section {
    padding-block: var(--space-20);
  }
}

@media (min-width: 900px) {
  .section {
    padding-block: var(--space-24);
  }
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.section-heading__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  align-content: start;
  gap: var(--space-8);
}

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

@media (min-width: 860px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.75rem;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: var(--gradient-navy);
  color: var(--color-cream);
  box-shadow: 0 10px 24px -8px rgba(27, 42, 74, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px -6px rgba(27, 42, 74, 0.5);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: scale(0.96);
  box-shadow: 0 6px 16px -6px rgba(27, 42, 74, 0.45);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: var(--color-cream);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  color: var(--color-cream);
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 12px 28px -18px rgba(19, 31, 56, 0.6);
  padding-top: env(safe-area-inset-top, 0px);
}

@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .brand__logo-wrap {
    padding: 3px;
  }

  .brand__logo {
    height: 42px;
    width: 42px;
  }

  .brand__name {
    font-size: 0.92rem;
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-cream);
  border-radius: 50%;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand__logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand__location {
  font-size: 0.75rem;
  color: var(--color-muted-gold);
}

.main-nav {
  display: none;
}

.main-nav__list {
  display: flex;
  gap: var(--space-8);
}

.main-nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-cream);
  padding-block: var(--space-2);
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.main-nav__link:hover,
.main-nav__link[aria-current="page"] {
  border-color: var(--color-gold);
  color: var(--color-cream);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.header-phone {
  display: none;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-cream);
  white-space: nowrap;
}

.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--color-cream);
}

@media (min-width: 900px) {
  .main-nav { display: block; }
  .header-phone { display: inline-flex; }
  .hamburger { display: none; }
}

/* Mobile nav drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
}

.mobile-nav[data-open="true"] {
  visibility: visible;
}

.mobile-nav__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 31, 56, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.mobile-nav__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--color-navy);
  color: var(--color-cream);
  padding: var(--space-6);
  padding-top: calc(var(--space-6) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--space-6) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-float);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.mobile-nav[data-open="true"] .mobile-nav__backdrop {
  opacity: 1;
}

.mobile-nav[data-open="true"] .mobile-nav__panel {
  transform: translateX(0);
}

.mobile-nav__header {
  display: flex;
  justify-content: flex-end;
}

.mobile-nav__close {
  background: transparent;
  border: none;
  color: var(--color-cream);
  width: 40px;
  height: 40px;
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mobile-nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(245, 231, 190, 0.12);
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  color: var(--color-gold);
  padding-left: var(--space-2);
}

.mobile-nav__list li:last-child .mobile-nav__link {
  border-bottom: none;
}

.mobile-nav__contact {
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid rgba(245, 231, 190, 0.2);
  font-size: 0.9rem;
  color: var(--color-muted-gold);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

@media (min-width: 900px) {
  .mobile-nav { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-cream);
  padding-block: var(--space-16) var(--space-12);
  text-align: center;
  isolation: isolate;
}

@media (min-width: 640px) {
  .hero {
    padding-block: var(--space-24) var(--space-16);
  }
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

.hero::before {
  width: 480px;
  height: 480px;
  top: -220px;
  right: -140px;
  background: radial-gradient(circle, rgba(138, 109, 30, 0.35), transparent 70%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(245, 231, 190, 0.1), transparent 70%);
}

.hero__eyebrow {
  font-family: var(--font-devanagari);
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--color-cream);
  margin-bottom: var(--space-2);
}

.hero__translation {
  color: var(--color-muted-gold);
  font-size: 0.95rem;
  margin-bottom: var(--space-6);
}

.hero__title {
  color: var(--color-white);
  max-width: 760px;
  margin-inline: auto;
}

.hero__intro {
  max-width: 620px;
  margin: 0 auto var(--space-8);
  color: var(--color-cream);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  justify-content: center;
  align-items: stretch;
}

.hero__actions .btn {
  width: 100%;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-4);
    align-items: center;
  }

  .hero__actions .btn {
    width: auto;
  }
}

.hero .btn-outline {
  border-color: var(--color-cream);
  color: var(--color-cream);
}

.hero .btn-outline:hover {
  background: var(--color-cream);
  color: var(--color-navy);
}

.hero .btn-primary {
  background: var(--color-cream);
  color: var(--color-navy);
}

.hero .btn-primary:hover {
  background: var(--color-white);
}

/* ---------- Carousel ---------- */
.carousel {
  position: relative;
  max-width: var(--container-max);
  margin: var(--space-12) auto var(--space-16);
  padding-inline: var(--space-6);
}

.carousel__viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
  aspect-ratio: 16 / 7;
  background: var(--color-navy);
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.carousel__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-6);
  background: linear-gradient(0deg, rgba(19, 31, 56, 0.85), transparent);
  color: var(--color-white);
  font-weight: 600;
}

.carousel__control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(253, 251, 243, 0.9);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__control:hover {
  background: var(--color-white);
  transform: translateY(-50%) scale(1.08);
}

.carousel__control:active {
  transform: translateY(-50%) scale(0.94);
}

.carousel__control--prev { left: var(--space-4); }
.carousel__control--next { right: var(--space-4); }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
}

.carousel__dot[aria-current="true"] {
  background: var(--color-gold);
  width: 24px;
  border-radius: 999px;
  transition: width 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .carousel__track { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease), border-color 0.25s var(--ease);
}

@media (min-width: 640px) {
  .card {
    padding: var(--space-8);
  }
}

.card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--color-muted-gold);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  transition: transform 0.25s var(--ease);
}

.card:hover .card__icon {
  transform: scale(1.08) rotate(-4deg);
}

.card__title {
  margin-bottom: var(--space-2);
}

/* Mission/Vision: full-width stacked blocks (not equal-height side-by-side
   cards) so a longer Mission and shorter Vision don't leave mismatched
   whitespace, plus a bold lead sentence to break up the long paragraph. */
.mission-vision-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.mission-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

@media (min-width: 640px) {
  .mission-card {
    padding: var(--space-8);
  }
}

.mission-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* On wide screens, split into a left "identity" column (icon + title) and a
   right text column, instead of letting the card stretch full-width with a
   narrow text block leaving a large empty void beside it. */
@media (min-width: 760px) {
  .mission-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-8);
  }

  .mission-card__head {
    position: sticky;
    top: calc(var(--header-height) + var(--space-6));
    align-self: start;
  }
}

.mission-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-navy);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  box-shadow: 0 8px 20px -6px rgba(27, 42, 74, 0.4);
}

.mission-card__lede {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-navy);
  max-width: 68ch;
}

.mission-card__body {
  max-width: 68ch;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.mission-card__body:last-child {
  margin-bottom: 0;
}

.card__meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-2);
}

/* ---------- Highlights strip ---------- */
.highlight {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.highlight:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.highlight__icon {
  width: 56px;
  height: 56px;
  margin-inline: auto var(--space-4);
  margin-bottom: var(--space-4);
  border-radius: 50%;
  background: var(--gradient-navy);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(27, 42, 74, 0.4);
}

.highlight__value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.highlight__label {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Timeline (About) ---------- */
.timeline {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.timeline__item {
  position: relative;
  padding-left: 56px;
  margin-bottom: var(--space-12);
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__marker {
  position: absolute;
  left: 6px;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-navy);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 4px solid var(--color-bg);
  box-shadow: 0 4px 12px -2px rgba(27, 42, 74, 0.4);
}

.timeline__year {
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

/* ---------- Filter row (Programs) ---------- */
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-12);
}

.filter-btn {
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--color-navy);
}

.filter-btn:active {
  transform: scale(0.95);
}

.filter-btn[aria-pressed="true"] {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: var(--color-cream);
}

.program-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-gold);
  background: var(--color-bg-alt);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: var(--space-3);
}

.program-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.program-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-muted-gold);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.program-card__tag svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-6);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: none;
  padding: 0;
  background: var(--color-navy);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

.gallery-item:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-3px);
}

.gallery-item:active {
  transform: scale(0.98);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s var(--ease);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-4);
  background: linear-gradient(0deg, rgba(19, 31, 56, 0.85), transparent);
  color: var(--color-white);
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
  /* Visible by default — touch devices have no hover, so a caption that only
     reveals on :hover would otherwise never be seen on mobile. */
  opacity: 1;
}

/* Only hide-until-hover on devices that actually have a mouse/trackpad. */
@media (hover: hover) and (pointer: fine) {
  .gallery-item__caption {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .gallery-item:hover .gallery-item__caption,
  .gallery-item:focus-visible .gallery-item__caption {
    opacity: 1;
  }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}

.lightbox[data-open="true"] {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 31, 56, 0.92);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 900px);
  max-height: 85vh;
  text-align: center;
}

.lightbox__content img {
  max-height: 75vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--radius-sm);
}

.lightbox__caption {
  color: var(--color-cream);
  margin-top: var(--space-4);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(253, 251, 243, 0.9);
  color: var(--color-navy);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close {
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
}

.lightbox__nav--prev { left: -60px; }
.lightbox__nav--next { right: -60px; }

@media (max-width: 700px) {
  .lightbox__nav--prev { left: var(--space-2); }
  .lightbox__nav--next { right: var(--space-2); }
  .lightbox__close { top: var(--space-2); right: var(--space-2); }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: var(--space-12);
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info__item {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-info__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-navy);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px -6px rgba(27, 42, 74, 0.4);
}

.contact-info__label {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-1);
}

.contact-info__item a,
.contact-info__item > div > div {
  display: block;
}

.contact-info__item a {
  transition: color 0.15s ease;
}

.contact-info__item a:hover {
  color: var(--color-gold);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy);
  color: var(--color-muted-gold);
  padding-block: var(--space-16) var(--space-8);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
  }
}

.footer-brand {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-brand__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--color-cream);
  border-radius: 50%;
  padding: 4px;
  height: fit-content;
}

.footer-brand img {
  height: 58px;
  width: 58px;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.footer-tagline-en {
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-brand__name {
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
}

.footer-heading {
  color: var(--color-cream);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.footer-links li {
  margin-bottom: var(--space-1);
}

.footer-links a {
  display: inline-block;
  padding-block: var(--space-1);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--color-cream);
}

.footer-bottom {
  border-top: 1px solid rgba(216, 207, 166, 0.2);
  padding-top: var(--space-6);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

@media (min-width: 700px) {
  .footer-bottom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    justify-content: space-between;
  }
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom a:hover {
  color: var(--color-cream);
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Scroll reveal ----------
   Added only via JS (reveal.js) as progressive enhancement — if JS never
   runs, content simply never gets the .reveal class and stays fully visible. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
