/* ============================================
   THE SHOP — Cinematic Christian Men's Ministry
   ============================================ */

:root {
  --bg-deep: #0a0b0c;
  --bg-dark: #111214;
  --bg-card: #1a1c1f;
  --bg-elevated: #22252a;
  --charcoal: #2d3036;
  --steel: #5a6268;
  --steel-light: #8b939a;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --bronze: #8b6914;
  --bronze-light: #a67c2a;
  --olive: #556b2f;
  --olive-light: #6b8e3d;
  --smoke: rgba(20, 22, 26, 0.85);
  --text: #e8eaed;
  --text-muted: #9aa0a8;
  --accent: var(--gold);
  --accent-glow: rgba(201, 162, 39, 0.35);
  --border: rgba(201, 162, 39, 0.2);
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --header-h: 72px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ---- Scripture Ticker ---- */
.scripture-ticker {
  background: linear-gradient(90deg, var(--olive) 0%, var(--charcoal) 50%, var(--olive) 100%);
  color: var(--gold-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  overflow: hidden;
  position: relative;
  z-index: 1001;
}

.ticker-track {
  display: flex;
  gap: 4rem;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}

.ticker-track span { flex-shrink: 0; }

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), top var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  top: 0;
  background: rgba(10, 11, 12, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { color: var(--text); }

.logo-mark {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold);
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.15em;
  line-height: 1;
}

.logo-tag {
  font-size: 0.65rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.nav-links a:hover { color: var(--gold); }

.nav-portal {
  color: var(--gold) !important;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
}

.nav-actions { display: flex; gap: 0.5rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--bronze) 100%);
  color: var(--bg-deep);
  border: 1px solid var(--gold-bright);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-bright);
}

.btn-ghost {
  color: var(--text-muted);
  border: 1px solid var(--charcoal);
}

.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; }
.btn-xl { padding: 1.25rem 2.5rem; font-size: 1.1rem; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 11, 12, 0.5) 0%, rgba(10, 11, 12, 0.3) 40%, rgba(10, 11, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 11, 12, 0.85) 0%, transparent 50%, rgba(10, 11, 12, 0.6) 100%),
    radial-gradient(ellipse at center bottom, rgba(85, 107, 47, 0.15) 0%, transparent 60%);
}

.hero-smoke {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cfilter id='f'%3E%3CfeGaussianBlur stdDeviation='40'/%3E%3C/filter%3E%3C/defs%3E%3Ccircle cx='100' cy='300' r='120' fill='%23fff' opacity='0.03' filter='url(%23f)'/%3E%3Ccircle cx='300' cy='200' r='100' fill='%23fff' opacity='0.04' filter='url(%23f)'/%3E%3C/svg%3E");
  animation: smokeDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes smokeDrift {
  0% { opacity: 0.6; transform: translateX(-2%); }
  100% { opacity: 1; transform: translateX(2%); }
}

.hero-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 400px;
  opacity: 0.03;
  background:
    linear-gradient(var(--gold) 0 0) 50% 0 / 4px 100% no-repeat,
    linear-gradient(90deg, var(--gold) 0 0) 0 35% / 100% 4px no-repeat;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 1rem 4rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 1rem;
  line-height: 1.7;
}

.hero-core {
  font-style: italic;
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel-light);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-indicator {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---- Sections ---- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-header.center { text-align: center; }
.section-desc {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.section-header.center .section-desc { margin-inline: auto; }

.texture-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--bronze), var(--olive), transparent);
  opacity: 0.5;
}

/* ---- Mission ---- */
.mission { background: var(--bg-dark); }

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.mission .lead {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.mission-list {
  margin: 1.5rem 0;
}

.mission-list li {
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  color: var(--text-muted);
}

.mission-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.scripture-callout {
  margin-top: 2rem;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--gold);
  background: rgba(201, 162, 39, 0.08);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.scripture-callout cite {
  display: block;
  font-size: 0.8rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.scripture-callout p {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text);
}

.mission-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.mission-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--border);
  z-index: 2;
  pointer-events: none;
}

.mission-image-wrap img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.85);
}

.mission-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(10, 11, 12, 0.95));
}

.verse-float {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Training Pillars ---- */
.training {
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(85, 107, 47, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(201, 162, 39, 0.05) 0%, transparent 50%);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  padding: 2rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--olive));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.pillar-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.pillar-card:hover::before { transform: scaleX(1); }

.pillar-icon { font-size: 2rem; margin-bottom: 1rem; }

.pillar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  color: var(--gold-bright);
}

.pillar-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.pillar-verse {
  font-size: 0.75rem;
  color: var(--olive-light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---- Brotherhood ---- */
.brotherhood {
  position: relative;
  overflow: hidden;
}

.brotherhood-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(17, 18, 20, 0.97) 0%, rgba(17, 18, 20, 0.9) 100%),
    url("https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920&q=60") center/cover;
  opacity: 0.15;
}

.brotherhood .container { position: relative; z-index: 1; }

.brotherhood-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--charcoal);
}

.gallery-item.large { grid-column: span 2; grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: grayscale(20%) contrast(1.1);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(10, 11, 12, 0.95));
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

.brotherhood-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--charcoal);
}

.stat { text-align: center; }

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Operations ---- */
.operations { background: var(--bg-dark); }

.operations-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 3rem;
}

.calendar {
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.calendar-header h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cal-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 1.25rem;
  transition: var(--transition);
}

.cal-nav:hover { border-color: var(--gold); background: rgba(201, 162, 39, 0.1); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-name {
  font-size: 0.65rem;
  text-align: center;
  color: var(--steel);
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 2px;
  color: var(--text-muted);
}

.cal-day.other { opacity: 0.3; }
.cal-day.today {
  background: var(--gold);
  color: var(--bg-deep);
  font-weight: 700;
}
.cal-day.has-event {
  position: relative;
  color: var(--gold-bright);
  font-weight: 600;
}
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}

.events-list { display: flex; flex-direction: column; gap: 1rem; }

.event-card {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  transition: var(--transition);
}

.event-card:hover {
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.event-card time {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.event-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* ---- Resources ---- */
.resources { background: var(--bg-deep); }

.resources-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  color: var(--bg-deep);
  background: var(--gold);
  border-color: var(--gold);
}

.tab-panel { display: none; animation: fadeIn 0.5s ease; }
.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.resource-card {
  display: block;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.resource-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  color: inherit;
}

.resource-type {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--olive-light);
  display: block;
  margin-bottom: 0.5rem;
}

.resource-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.resource-card p { color: var(--text-muted); font-size: 0.9rem; }
.resource-meta { display: block; margin-top: 0.75rem; font-size: 0.8rem; color: var(--gold); }

.podcast-embed {
  grid-column: 1 / -1;
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  text-align: center;
}

.podcast-links { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

/* ---- Testimonials ---- */
.testimonials {
  background: var(--bg-dark);
  background-image: linear-gradient(180deg, transparent, rgba(201, 162, 39, 0.03));
}

.testimonials-slider {
  max-width: 800px;
  margin: 3rem auto 0;
  text-align: center;
  position: relative;
  min-height: 220px;
}

.testimonial {
  display: none;
  animation: fadeIn 0.6s ease;
}

.testimonial.active { display: block; }

.testimonial p {
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial cite {
  font-style: normal;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.testimonial footer span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.testimonial-nav {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 2rem;
}

.t-nav {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  padding: 0;
  transition: var(--transition);
}

.t-nav.active,
.t-nav:hover {
  background: var(--gold);
}

/* ---- CTA Banner ---- */
.cta-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cta-video-wrap {
  position: absolute;
  inset: 0;
  background:
    url("https://images.unsplash.com/photo-1517457373958-f7e70a702f5e?w=1920&q=80") center/cover,
    var(--bg-deep);
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 12, 0.7) 0%, rgba(10, 11, 12, 0.95) 100%);
}

.cta-smoke {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 1rem;
}

.cta-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.75rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cta-content h2 span { color: var(--gold); display: block; }

.cta-tagline {
  font-family: var(--font-heading);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--charcoal);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p { color: var(--text-muted); margin: 1rem 0; max-width: 280px; }

.footer-taglines {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links h4 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links ul li { margin-bottom: 0.5rem; }

.footer-links a,
.footer-links button {
  color: var(--text-muted);
  font-size: 0.95rem;
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover { color: var(--gold); }

.footer-verse blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 1.25rem;
}

.footer-verse p { font-style: italic; color: var(--text-muted); margin-bottom: 0.5rem; }
.footer-verse cite { font-size: 0.85rem; color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--charcoal);
  font-size: 0.85rem;
  color: var(--steel);
}

.footer-motto {
  color: var(--gold) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem !important;
}

/* ---- Modals ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  backdrop-filter: blur(4px);
}

.modal-overlay[hidden] { display: none; }

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  width: min(480px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.modal:not([open]) { display: none; }

.modal[open] { display: block; animation: modalIn 0.4s ease; }

@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  line-height: 1;
  padding: 0.25rem;
}

.modal-close:hover { color: var(--gold); }

.modal h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal > p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.modal-form label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-label input { width: auto; margin: 0; }

.modal-form .btn { width: 100%; margin-top: 0.5rem; }

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  border: 1px solid var(--gold);
  color: var(--text);
  padding: 1rem 2rem;
  border-radius: var(--radius);
  z-index: 3000;
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Subpages shared ---- */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  background: var(--bg-dark);
  text-align: center;
  border-bottom: 1px solid var(--charcoal);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-hero p { color: var(--text-muted); margin-top: 0.75rem; }

/* ---- Store ---- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
}

.product-image {
  aspect-ratio: 1;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--charcoal);
}

.product-info { padding: 1.25rem; }

.product-info h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.product-info .price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0.5rem 0 1rem;
}

/* ---- Portal ---- */
.portal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  padding: 3rem 0 4rem;
  min-height: 60vh;
}

.portal-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
}

.portal-sidebar a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.portal-sidebar a:hover,
.portal-sidebar a.active {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold);
}

.portal-main {
  background: var(--bg-card);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  padding: 2rem;
}

/* Portal login */
.portal-login-wrap {
  padding: 2rem 0 4rem;
  display: flex;
  justify-content: center;
}

.portal-login-card {
  width: min(440px, 100%);
  margin: 0 auto;
}

.portal-login-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.portal-login-desc {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.portal-login-form .form-field {
  margin-bottom: 1.25rem;
}

.portal-login-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.portal-login-form input[type="email"],
.portal-login-form input[type="password"],
.portal-login-form input[type="text"] {
  display: block;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
}

.portal-login-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.portal-login-form .password-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.portal-login-form .password-field input {
  padding-right: 4.5rem;
}

.portal-login-form .password-toggle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  border: none;
  border-left: 1px solid var(--charcoal);
  border-radius: 0 var(--radius) var(--radius) 0;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.portal-login-form .password-toggle:hover {
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-bright);
}

.portal-login-form .btn {
  display: inline-flex;
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}

.portal-login-footer {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.portal-login-demo {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--steel);
  text-align: center;
}

.portal-dashboard { display: none; }
.portal-dashboard.active { display: block; }

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dash-card {
  padding: 1.25rem;
  background: var(--bg-deep);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
}

.dash-card h4 { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-card p { font-family: var(--font-display); font-size: 2rem; color: var(--gold); margin-top: 0.25rem; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .mission-grid,
  .operations-layout { grid-template-columns: 1fr; }
  .brotherhood-gallery { grid-template-columns: 1fr 1fr; }
  .gallery-item.large,
  .gallery-item.wide { grid-column: span 2; }
  .brotherhood-stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-sidebar { position: static; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .portal-sidebar a { margin: 0; }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 11, 12, 0.98);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle { display: flex; }
  .site-header .nav { flex-wrap: wrap; position: relative; }

  .nav-actions.open {
    display: flex;
    width: 100%;
    justify-content: center;
    padding-bottom: 1rem;
  }

  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .brotherhood-gallery { grid-template-columns: 1fr; }
  .gallery-item.large,
  .gallery-item.wide { grid-column: span 1; }
  .brotherhood-stats { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---- PWA Install / Update Banners ---- */
.pwa-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2500;
  background: var(--bg-card);
  border-top: 1px solid var(--gold);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s ease;
  padding: 1rem 0;
}

.pwa-banner.visible {
  transform: translateY(0);
}

.pwa-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pwa-banner-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pwa-banner-text strong {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.pwa-banner-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pwa-banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.pwa-banner-update {
  border-top-color: var(--olive-light);
}

/* Offline indicator */
body.is-offline::after {
  content: 'Offline — cached content available';
  position: fixed;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1002;
  background: var(--charcoal);
  border: 1px solid var(--bronze);
  color: var(--gold-bright);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: var(--radius);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
