/* Art direction: Combat veteran-owned BJJ academy → dark, aggressive, authoritative
   Palette: Dark/warm, accent: gold (#c9a227) — martial arts heritage, belt gold, authority
   Typography: Clash Display (commanding, geometric display) + Satoshi (clean modernist body)
   Density: balanced — spacious hero, tight schedule, generous section spacing */

/* ========== DESIGN TOKENS ========== */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Font families */
  --font-display: 'Clash Display', 'Impact', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* ========== DARK MODE (DEFAULT) ========== */
:root, [data-theme="dark"] {
  --color-bg:             #0a0a0a;
  --color-surface:        #111111;
  --color-surface-2:      #181818;
  --color-surface-offset: #141414;
  --color-surface-offset-2: #1c1c1c;
  --color-surface-dynamic: #222222;
  --color-divider:        #2a2a2a;
  --color-border:         #333333;

  --color-text:           #e8e4dc;
  --color-text-muted:     #9a9590;
  --color-text-faint:     #5e5a55;
  --color-text-inverse:   #0a0a0a;

  --color-primary:        #c9a227;
  --color-primary-hover:  #d4b23f;
  --color-primary-active: #b8921f;
  --color-primary-highlight: #2a2519;

  --color-error:          #c44040;
  --color-error-hover:    #a83030;
  --color-error-active:   #8a2020;
  --color-error-highlight: #2a1818;

  --color-success:        #4a9a3a;
  --color-success-hover:  #3a8a2a;
  --color-success-active: #2a7a1a;
  --color-success-highlight: #1a2a18;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.5);
}

/* ========== LIGHT MODE ========== */
[data-theme="light"] {
  --color-bg:             #f5f3ef;
  --color-surface:        #faf8f5;
  --color-surface-2:      #ffffff;
  --color-surface-offset: #edeae4;
  --color-surface-offset-2: #e5e2dc;
  --color-surface-dynamic: #ddd9d3;
  --color-divider:        #d0ccc6;
  --color-border:         #c4c0b8;

  --color-text:           #1a1814;
  --color-text-muted:     #6b6760;
  --color-text-faint:     #a09c96;
  --color-text-inverse:   #f5f3ef;

  --color-primary:        #a08420;
  --color-primary-hover:  #8a7018;
  --color-primary-active: #705c12;
  --color-primary-highlight: #f0e8d0;

  --color-error:          #a83030;
  --color-error-hover:    #8a2020;
  --color-error-active:   #701818;
  --color-error-highlight: #f5e0e0;

  --color-success:        #3a7a2a;
  --color-success-hover:  #2a6a1a;
  --color-success-active: #1a5a0a;
  --color-success-highlight: #e0f0d8;

  --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.10);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.14);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --color-bg:             #f5f3ef;
    --color-surface:        #faf8f5;
    --color-surface-2:      #ffffff;
    --color-surface-offset: #edeae4;
    --color-surface-offset-2: #e5e2dc;
    --color-surface-dynamic: #ddd9d3;
    --color-divider:        #d0ccc6;
    --color-border:         #c4c0b8;
    --color-text:           #1a1814;
    --color-text-muted:     #6b6760;
    --color-text-faint:     #a09c96;
    --color-text-inverse:   #f5f3ef;
    --color-primary:        #a08420;
    --color-primary-hover:  #8a7018;
    --color-primary-active: #705c12;
    --color-primary-highlight: #f0e8d0;
    --color-error:          #a83030;
    --color-error-hover:    #8a2020;
    --color-error-active:   #701818;
    --color-error-highlight: #f5e0e0;
    --color-success:        #3a7a2a;
    --color-success-hover:  #2a6a1a;
    --color-success-active: #1a5a0a;
    --color-success-highlight: #e0f0d8;
    --shadow-sm: 0 1px 2px oklch(0.2 0.01 80 / 0.08);
    --shadow-md: 0 4px 12px oklch(0.2 0.01 80 / 0.10);
    --shadow-lg: 0 12px 32px oklch(0.2 0.01 80 / 0.14);
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.fade-in { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to { opacity: 1; }
}

.reveal-up { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .reveal-up {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-clip {
  to { clip-path: inset(0 0 0 0); }
}

/* ========== SKIP LINK ========== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  z-index: 1000;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ========== HEADER / NAV ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) var(--space-6);
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid transparent;
}
.site-header--scrolled {
  border-bottom-color: var(--color-divider);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--content-wide);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.nav-logo-text span {
  color: var(--color-primary);
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-1);
  align-items: center;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}
.nav-links a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav-links a:active {
  background: var(--color-surface-dynamic);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-cta {
  display: none;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
@media (min-width: 768px) {
  .nav-cta { display: inline-flex; }
}
.nav-cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.nav-cta:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition: color var(--transition-interactive),
              background var(--transition-interactive);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  padding: var(--space-2);
  color: var(--color-text);
}
@media (min-width: 768px) {
  .mobile-menu-btn { display: none; }
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  padding: var(--space-20) var(--space-6) var(--space-8);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-nav.is-open {
  transform: translateX(0);
}
.mobile-nav-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-6);
  padding: var(--space-2);
  color: var(--color-text);
}
.mobile-nav a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
  transition: color var(--transition-interactive);
}
.mobile-nav a:hover,
.mobile-nav a:active {
  color: var(--color-primary);
}
.mobile-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-8);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius-md);
  text-align: center;
}
.mobile-nav-socials {
  margin-top: auto;
  display: flex;
  gap: var(--space-4);
  padding-top: var(--space-6);
}
.mobile-nav-socials a {
  border: none;
  padding: var(--space-2);
  font-size: 0;
  display: inline-flex;
}
.mobile-nav-socials a svg {
  width: 24px;
  height: 24px;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    oklch(0 0 0 / 0.7) 0%,
    oklch(0 0 0 / 0.55) 50%,
    oklch(0 0 0 / 0.85) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-20) var(--space-6) var(--space-12);
  max-width: var(--content-default);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: oklch(from var(--color-primary) l c h / 0.15);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.3);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-6);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 700;
  color: #e8e4dc;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  line-height: 0.95;
}
.hero h1 .gold {
  color: var(--color-primary);
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: #9a9590;
  margin-bottom: var(--space-8);
  max-width: 48ch;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              box-shadow var(--transition-interactive),
              transform var(--transition-interactive),
              border-color var(--transition-interactive);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}
.btn-primary:hover { background: var(--color-primary-hover); }

.btn-outline {
  background: transparent;
  color: #e8e4dc;
  border: 1px solid oklch(1 0 0 / 0.2);
}
.btn-outline:hover {
  background: oklch(1 0 0 / 0.08);
  border-color: oklch(1 0 0 / 0.35);
}

/* ========== SECTION SHARED ========== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}
.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-8), 4vw, var(--space-16));
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-4);
}
.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-primary);
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin: 0 auto;
}
.container {
  max-width: var(--content-wide);
  margin: 0 auto;
}

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}
.about-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}
.about-content p:last-child {
  margin-bottom: 0;
}
.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.stat {
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.about-images img {
  border-radius: var(--radius-lg);
  width: 100%;
  height: 200px;
  object-fit: cover;
}
@media (min-width: 768px) {
  .about-images img {
    height: 240px;
  }
}
.about-images img:first-child {
  grid-column: 1 / -1;
  height: 260px;
}
@media (min-width: 768px) {
  .about-images img:first-child {
    height: 300px;
  }
}

/* Highlights */
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}
.highlight-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.highlight-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-highlight);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.highlight-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.highlight-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ========== SCHEDULE SECTION ========== */
.schedule-section {
  background: var(--color-surface);
}

/* Day tabs */
.schedule-tabs {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-6);
}
.schedule-tabs::-webkit-scrollbar { display: none; }

.schedule-tab {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
}
.schedule-tab:hover {
  color: var(--color-text);
  border-color: var(--color-text-faint);
}
.schedule-tab.is-active {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-primary);
}

/* Schedule day panel */
.schedule-panel {
  display: none;
}
.schedule-panel.is-active {
  display: block;
}

.schedule-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.schedule-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.schedule-time {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 90px;
}
.schedule-class {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
}
.schedule-badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-gi {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.badge-nogi {
  background: var(--color-surface-dynamic);
  color: var(--color-text);
}
.badge-kids {
  background: #1e2e18;
  color: #7ac74f;
}
[data-theme="light"] .badge-kids {
  background: #e0f0d8;
  color: #2a6a1a;
}
.badge-striking {
  background: #2a1818;
  color: #e05555;
}
[data-theme="light"] .badge-striking {
  background: #f5e0e0;
  color: #a83030;
}
.badge-judo {
  background: #182030;
  color: #5591c7;
}
[data-theme="light"] .badge-judo {
  background: #dce8f5;
  color: #2a5580;
}
.badge-mma {
  background: #2a2015;
  color: #d08040;
}
[data-theme="light"] .badge-mma {
  background: #f5e8d8;
  color: #8a5520;
}
.badge-sc {
  background: #202520;
  color: #80b060;
}
[data-theme="light"] .badge-sc {
  background: #e8f0e0;
  color: #3a6a2a;
}
.badge-open {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.badge-comp {
  background: #2a2020;
  color: #c09050;
}
[data-theme="light"] .badge-comp {
  background: #f0e8d8;
  color: #7a5520;
}
.badge-women {
  background: #251828;
  color: #c070c0;
}
[data-theme="light"] .badge-women {
  background: #f0e0f0;
  color: #8a3088;
}

/* Desktop table (hidden by default, shown on larger screens) */
.schedule-table-wrapper {
  display: none;
  overflow-x: auto;
}
@media (min-width: 900px) {
  .schedule-table-wrapper { display: block; }
  .schedule-mobile { display: none; }
}

.schedule-table {
  width: 100%;
  font-size: var(--text-sm);
  border-collapse: separate;
  border-spacing: 0;
}
.schedule-table th {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 2px solid var(--color-primary);
  white-space: nowrap;
}
.schedule-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  vertical-align: top;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.schedule-table tr:last-child td {
  border-bottom: none;
}
.schedule-table .time-col {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  min-width: 85px;
}
.schedule-table .schedule-badge {
  font-size: 0.7rem;
}

/* ========== GALLERY ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-item--wide {
  grid-column: span 2;
}
.gallery-item--tall {
  aspect-ratio: 3/4;
  grid-row: span 2;
}

/* ========== CONTACT / FOOTER ========== */
.footer-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
}

.footer-grid {
  display: grid;
  gap: var(--space-8);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
  }
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-4);
  line-height: 1.7;
  max-width: 38ch;
}

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

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-links a:hover {
  color: var(--color-primary);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}
.footer-contact-item a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-contact-item a:hover {
  color: var(--color-primary);
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-interactive),
              background var(--transition-interactive),
              border-color var(--transition-interactive);
}
.social-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: var(--color-primary-highlight);
}
.social-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer-bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer-bottom a:hover {
  color: var(--color-primary);
}

/* ========== LIGHTBOX ========== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: oklch(0 0 0 / 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
}
.lightbox-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-3);
  color: #e8e4dc;
  background: oklch(0 0 0 / 0.4);
  border-radius: var(--radius-full);
  transition: background var(--transition-interactive);
}
.lightbox-close:hover {
  background: oklch(0 0 0 / 0.7);
}

/* ========== UTILITY ========== */
.gold { color: var(--color-primary); }
.text-center { text-align: center; }

/* Grain overlay for dark mode depth */
.grain::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 999;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-theme="light"] .grain::after {
  opacity: 0.015;
}
