/* ==========================================================================
   Swathanthra Kalari Sangham — stylesheet
   Palette: maroon/brown, brass gold, cream, black
   ========================================================================== */

:root {
  --color-bg: #0e0604;
  --color-bg-panel: #1a0d07;
  --color-wood: #3d1e10;
  --color-wood-light: #5a2d18;
  --color-gold: #c9a961;
  --color-gold-bright: #e6c987;
  --color-cream: #f5e6d3;
  --color-text: #e8dcc8;
  --color-text-muted: #a89680;
  --color-accent: #8b2f14;

  --font-display: 'Cinzel', 'Trajan Pro', Georgia, serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --radius: 4px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Background texture — subtle radial warmth */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at top, rgba(139, 47, 20, 0.15), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(201, 169, 97, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-gold-bright); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--color-cream);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin-bottom: 1rem; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 6, 4, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 169, 97, 0.2);
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-cream);
  margin-right: auto;
}

.brand-emblem {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--color-gold);
  letter-spacing: 0.08em;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--color-text);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--color-gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-gold);
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

.header-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-gold);
  border: 1px solid rgba(201, 169, 97, 0.3);
  transition: all var(--transition);
}

.header-social a:hover {
  background: var(--color-gold);
  color: var(--color-wood);
  border-color: var(--color-gold);
  transform: translateY(-1px);
}

.header-social svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 820px) {
  .header-social a { width: 32px; height: 32px; }
  .header-social svg { width: 14px; height: 14px; }
}

/* Narrow phones — declutter the header so brand + social + toggle fit */
@media (max-width: 560px) {
  .nav-wrap { gap: 0.65rem; padding: 0.85rem 1rem; }
  .brand { gap: 0.55rem; }
  .brand-emblem { width: 38px; height: 38px; }
  .brand-name { font-size: 0.92rem; }
  .brand-tag { display: none; }
  .header-social { gap: 0.4rem; }
  .header-social a { width: 30px; height: 30px; }
  .header-social svg { width: 13px; height: 13px; }
  .nav-toggle { font-size: 1.4rem; padding: 0.15rem 0.25rem; }
}

@media (max-width: 380px) {
  .brand-name { font-size: 0.82rem; letter-spacing: 0.04em; }
  .brand-emblem { width: 34px; height: 34px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg-panel);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { width: 100%; padding: 0.6rem 0; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(139, 47, 20, 0.25), transparent 55%),
    linear-gradient(180deg, transparent, rgba(14, 6, 4, 0.9));
  z-index: 0;
}

.hero-content {
  text-align: center;
  z-index: 2;
  max-width: 800px;
}

.hero-emblem {
  width: clamp(200px, 40vw, 340px);
  margin: 0 auto 2rem;
  filter: drop-shadow(0 0 40px rgba(201, 169, 97, 0.25));
  animation: emblemGlow 4s ease-in-out infinite alternate;
}

@keyframes emblemGlow {
  from { filter: drop-shadow(0 0 30px rgba(201, 169, 97, 0.2)); }
  to   { filter: drop-shadow(0 0 50px rgba(201, 169, 97, 0.4)); }
}

.hero-title {
  color: var(--color-gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-cta {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: transparent;
  color: var(--color-gold);
}

.btn:hover {
  background: var(--color-gold);
  color: var(--color-wood);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-wood);
}

.btn-primary:hover {
  background: var(--color-gold-bright);
  color: var(--color-wood);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 5rem 0;
  position: relative;
  z-index: 1;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(26, 13, 7, 0.5), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: '◆';
  margin: 0 0.8rem;
  opacity: 0.6;
}

.section-title {
  color: var(--color-cream);
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--color-text-muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ==========================================================================
   Cards & Grids
   ========================================================================== */

.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: linear-gradient(145deg, rgba(61, 30, 16, 0.4), rgba(26, 13, 7, 0.6));
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: var(--shadow);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  display: block;
}

.card-title {
  color: var(--color-cream);
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   About / content blocks
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col-image {
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 97, 0.25);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.two-col-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

/* Preserve the full photo (no crop) — used for action/full-body shots */
.two-col-image.is-contain {
  background:
    radial-gradient(ellipse at center, rgba(61, 30, 16, 0.5), var(--color-bg-panel));
}
.two-col-image.is-contain img {
  object-fit: contain;
  aspect-ratio: 4 / 5;
  padding: 1rem;
}

.two-col-text h2 { margin-bottom: 1.5rem; }

.lineage {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  border-left: 1px solid var(--color-gold);
}

.lineage li {
  padding: 1rem 0 1rem 1.5rem;
  position: relative;
}

.lineage li::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 1.3rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 12px var(--color-gold);
}

.lineage-year {
  display: block;
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.lineage-name {
  display: block;
  color: var(--color-cream);
  font-size: 1.1rem;
  margin-top: 0.25rem;
}

.lineage-role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

/* ==========================================================================
   Page header (secondary pages)
   ========================================================================== */

.page-header {
  padding: 6rem 1.5rem 3rem;
  text-align: center;
  background: linear-gradient(180deg, rgba(61, 30, 16, 0.4), transparent);
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.page-header h1 {
  color: var(--color-gold);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-wood);
  border: 1px solid rgba(201, 169, 97, 0.2);
  position: relative;
  cursor: pointer;
  margin: 0;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14, 6, 4, 0.85));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

/* Wide tile — for landscape group photos */
.gallery-item--wide {
  aspect-ratio: 16 / 9;
  grid-column: span 2;
}

@media (max-width: 560px) {
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 16 / 10; }
}

.gallery-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.2rem;
  color: var(--color-cream);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 1;
}

.gallery-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 0.2rem;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 3, 1, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lightbox-content img {
  max-width: 92vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 169, 97, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  background: var(--color-bg-panel);
}

.lightbox-caption {
  color: var(--color-cream);
  text-align: center;
  padding: 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 700px;
}

.lightbox-caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.12em;
  color: var(--color-gold);
  margin-bottom: 0.3rem;
}

.lightbox-btn {
  position: absolute;
  background: rgba(26, 13, 7, 0.7);
  border: 1px solid rgba(201, 169, 97, 0.3);
  color: var(--color-gold);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-family: var(--font-display);
  padding: 0;
}

.lightbox-btn:hover {
  background: var(--color-gold);
  color: var(--color-wood);
  border-color: var(--color-gold);
}

.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev  { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 560px) {
  .lightbox { padding: 1rem; }
  .lightbox-btn { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
  .lightbox-prev  { left: 0.5rem; }
  .lightbox-next  { right: 0.5rem; }
}

.gallery-item img { cursor: zoom-in; }

/* ==========================================================================
   Feature roundel (decorative centerpiece image)
   ========================================================================== */

.feature-roundel {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0;
}

.feature-roundel img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.7));
  border-radius: 50%;
}

.feature-caption {
  margin-top: 1.75rem;
  font-family: var(--font-display);
  color: var(--color-gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.feature-caption::before,
.feature-caption::after {
  content: '◆';
  margin: 0 0.8rem;
  opacity: 0.5;
}

/* ==========================================================================
   Video cards (YouTube embeds)
   ========================================================================== */

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.video-card {
  margin: 0;
  background: var(--color-bg-panel);
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}

.video-card:hover {
  border-color: rgba(201, 169, 97, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed--short {
  aspect-ratio: 9 / 16;
  max-width: 320px;
  margin: 0 auto;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-caption {
  padding: 1.1rem 1.35rem 1.25rem;
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.video-caption strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.video-caption em {
  display: block;
  color: var(--color-text-muted);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Founding record — historical timeline
   ========================================================================== */

.history-timeline {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
  position: relative;
}

.history-timeline::before {
  content: '';
  position: absolute;
  left: 130px;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(201, 169, 97, 0.5) 5%, rgba(201, 169, 97, 0.5) 95%, transparent);
}

.history-timeline li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2.25rem;
  padding: 1.25rem 0;
  position: relative;
}

.history-year {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-align: right;
  padding-top: 0.2rem;
  position: relative;
}

.history-year::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  box-shadow: 0 0 14px var(--color-gold);
}

.history-event {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}

.history-body p {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
}

.history-signature {
  text-align: center;
  margin: 3rem auto 0;
  padding-top: 2rem;
  max-width: 700px;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  color: var(--color-gold);
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .history-timeline::before { left: 8px; }
  .history-timeline li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding-left: 2.25rem;
  }
  .history-year { text-align: left; padding-left: 0; }
  .history-year::after { right: auto; left: -26px; top: 0.45rem; }
}

/* ==========================================================================
   Trainer card (for Ladies & Girls section)
   ========================================================================== */

.trainer-card {
  background: linear-gradient(145deg, rgba(61, 30, 16, 0.5), rgba(26, 13, 7, 0.75));
  border: 1px solid rgba(201, 169, 97, 0.3);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  align-self: center;
  position: relative;
  overflow: hidden;
}

.trainer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
}

.trainer-name {
  color: var(--color-cream);
  margin: 1.25rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
}

.trainer-bio {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.trainer-footnote {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

/* ==========================================================================
   Branch cards (affiliated / legacy sanghams)
   ========================================================================== */

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.branch-card {
  background: linear-gradient(145deg, rgba(61, 30, 16, 0.45), rgba(26, 13, 7, 0.7));
  border: 1px solid rgba(201, 169, 97, 0.25);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  opacity: 0.6;
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 169, 97, 0.55);
  box-shadow: var(--shadow);
}

.branch-card-head {
  text-align: center;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.branch-dedication {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.branch-dedication::before,
.branch-dedication::after {
  content: '⟐';
  margin: 0 0.5rem;
  color: var(--color-gold);
  opacity: 0.6;
  font-style: normal;
}

.branch-name {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.branch-subtitle {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-style: italic;
  line-height: 1.45;
  margin: 0;
}

.branch-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1.5rem;
  margin: 0;
}

.branch-details > div {
  display: contents;
}

.branch-details dt {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 0.15rem;
  white-space: nowrap;
}

.branch-details dd {
  color: var(--color-cream);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.branch-details dd a {
  color: var(--color-cream);
  border-bottom: 1px dotted rgba(201, 169, 97, 0.4);
}

.branch-details dd a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.branch-details dd .muted {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.15rem;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(201, 169, 97, 0.03),
      rgba(201, 169, 97, 0.03) 10px,
      rgba(201, 169, 97, 0.06) 10px,
      rgba(201, 169, 97, 0.06) 20px
    );
}

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

.gallery-item:hover img { transform: scale(1.05); }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info { }

.contact-block {
  margin-bottom: 2rem;
}

.contact-label {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.contact-value {
  color: var(--color-cream);
  font-size: 1.15rem;
  line-height: 1.5;
}

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

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(201, 169, 97, 0.25);
  min-height: 400px;
  box-shadow: var(--shadow);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
  filter: grayscale(0.3) brightness(0.85);
}

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

/* ==========================================================================
   Training schedule
   ========================================================================== */

.schedule-note {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed rgba(201, 169, 97, 0.4);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  margin-top: 2rem;
  font-style: italic;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: linear-gradient(180deg, transparent, rgba(14, 6, 4, 0.9));
  border-top: 1px solid rgba(201, 169, 97, 0.2);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand {
  font-family: var(--font-display);
  color: var(--color-gold);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.footer-tag {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.footer-contact {
  color: var(--color-text);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-divider {
  width: 80px;
  height: 1px;
  background: var(--color-gold);
  margin: 1.5rem auto;
  opacity: 0.5;
}

.footer-social {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: 999px;
  color: var(--color-gold);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: var(--font-display);
  transition: all var(--transition);
}

.footer-social a svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-wood);
  border-color: var(--color-gold);
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.footer-credit {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  margin-top: 0.6rem;
  opacity: 0.6;
  font-style: italic;
}

.footer-credit a {
  color: inherit;
  border-bottom: 1px dotted rgba(201, 169, 97, 0.25);
}

.footer-credit a:hover {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

/* ==========================================================================
   Reveal-on-scroll animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

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