/* ============================================
   MAIN STYLES - Mile High Magicians Society
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  /* Burgundy Color Palette - Primary Accent */
  --color-primary: #8B2635;
  --color-primary-dark: #5C1A1F;
  --color-primary-hover: #A63446;
  --color-primary-light: rgba(139, 38, 53, 0.1);
  
  /* Maintain gold references for backwards compatibility */
  --color-gold-primary: var(--color-primary);
  --color-gold-dark: var(--color-primary-dark);
  --color-gold-hover: var(--color-primary-hover);
  --color-gold-active: var(--color-primary);
  
  /* Background Colors */
  --color-bg-light: #fafaf9;
  --color-bg-cream: #f5f3ef;
  
  /* Text Colors */
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #525252;
  --color-text-muted: #737373;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-border: #e7e5e4;
  
  /* Dark Colors (for hero section) */
  --color-dark-1: #1a1a2e;
  --color-dark-2: #16213e;
  --color-dark-3: #0f3460;

  /* Typography */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-family: var(--font-body);

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius - 8px for professional but approachable feel */
  --radius-sm: 0.5rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.5rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ============================================
   RESETS & BASE STYLES
   ============================================ */

* {
  margin: unset;
  box-sizing: border-box;
}

:root {
  font-family: var(--font-family);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
#main-content .container:before{
    display:none;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-size: 2.75rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.01em;
  font-size: 2.125rem;
}

h3 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.5;
  font-size: 1.5rem;
}

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.5;
  font-size: 1.125rem;
}

a {
  color: var(--color-gold-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition-normal);
}

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

a:focus-visible {
  outline: 2px solid var(--color-gold-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Text Utilities */
.txt {
  font-weight: 400;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.xl-txt {
  font-size: clamp(1rem, 0.875rem + 0.5vw, 1.125rem);
  line-height: 1.75;
}

.lrg-txt {
  font-weight: 400;
  line-height: 1.65;
  font-size: 1.125rem;
}

.sm-txt {
  font-weight: 400;
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.sm-txt.emphasis {
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
  max-width: 1440px;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
  width:unset;
}

.section {
  margin-top: var(--spacing-3xl);
  margin-bottom: var(--spacing-3xl);
}

.section h2 {
  margin-bottom: var(--spacing-md);
}

.section > p {
  color: var(--color-text-secondary);
  line-height: 1.65;
  font-size: 1.125rem;
  margin-bottom: var(--spacing-lg);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-xl);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-xl);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  padding: unset;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

/* Only interactive cards get transitions and hover effects */
.card.event,
.card.meetup {
  transition: transform 0.3s ease, 
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.card.event:hover,
.card.meetup:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04),
              0 0 0 1px var(--color-primary-light);
  border-color: var(--color-primary);
}

/* Event card specific styles */
.card.event {
  position: relative;
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
}

/* Burgundy accent bar on left edge */
.card.event::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-primary-hover));
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

/* Event card title with gold underline */
.card.event h3 {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-primary);
  position: relative;
  padding-bottom: var(--spacing-md);
}

.card.event h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: #D4A574;
  border-radius: 2px;
}

.card.event .chip {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-block;
}

.card.event .event-meta {
  text-align: right;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.card.event .event-meta span {
  display: block;
}

.card.event .event-meta span:first-child {
  font-weight: 600;
  color: var(--color-text-primary);
}

.card.secondary {
  padding: var(--spacing-lg);
}

.card .top-bar {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  height: 3.5rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.card .top-bar.sml-bar {
  height: 0.25rem;
}

.card .card-body {
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.shadow {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.card.static:hover{
    transform:unset;
    hover:unset;
}

/* ============================================
   BUTTONS
   ============================================ */

.button-container {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.button-container.centered {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal),
    transform var(--transition-fast), border-color var(--transition-normal);
  user-select: none;
  white-space: nowrap;
}

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

/* Primary button */
.btn.primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white) !important;
  box-shadow: 0 4px 14px rgba(139, 38, 53, 0.3);
  position: relative;
  overflow: hidden;
}

/* Subtle shimmer effect */
.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn.primary:hover::before {
  left: 100%;
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary-dark));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 38, 53, 0.4);
}

.btn.primary:active {
  transform: translateY(0);
}

/* Secondary button (hero style: white outline) */
.btn.secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn.secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn.secondary:active {
  transform: translateY(0);
}

/* Small button */
.btn.sml {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  background-color: var(--color-white);
  color: var(--color-text-primary);
  padding: var(--spacing-xs) var(--spacing-md);
}

/* Large button */
.btn.lrg {
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.75;
  padding: var(--spacing-md) var(--spacing-xl);
}

/* Large + primary override */
.btn.lrg.primary {
  background-color: var(--color-white);
  color: var(--color-text-primary);
}

/* Large + secondary override (kept explicit for clarity) */
.btn.lrg.secondary {
  color: var(--color-white);
  border: 2px solid var(--color-white);
  background: transparent;
}

/* ============================================
   CALL TO ACTION
   ============================================ */
.cta-section{
    margin:auto;
}
.cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: var(--spacing-lg);
  margin: var(--spacing-md) 0;
  color: var(--color-white) !important;
  border-radius: var(--radius-md);
}
.cta h1,h2,h3,h4,h5,h6{
    color: var(--color-white);
}

.cta p {
  margin-top: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.cta.footer {
    margin-top:4rem;
  margin-bottom: 0;
  padding: var(--spacing-3xl) var(--spacing-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.cta.footer p {
  margin-bottom: var(--spacing-xl);
  margin-top: var(--spacing-md);
  max-width: 50%;
}

/* ============================================
   MEETUP/LOCATION CARDS
   ============================================ */

.meetup-grid {
  margin-top: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.meetup {
  background: linear-gradient(to right bottom, var(--color-bg-light), var(--color-white));
  border: 2px solid rgba(139, 38, 53, 0.3);
  padding: var(--spacing-xl);
}

.meetup h3 {
  margin-bottom: var(--spacing-xs);
  color: var(--color-text-primary);
}

.meetup > span {
  display: block;
  margin-bottom: var(--spacing-md);
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.meetup > p {
  margin-bottom: var(--spacing-lg);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.meetup .location-box {
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  background: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

.meetup .location-box span {
  font-weight: 600;
  color: var(--color-text-primary);
  display: block;
  margin-bottom: var(--spacing-xs);
}

.meetup .location-box p {
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

.meetup > a {
  font-weight: 600;
  color: var(--color-primary);
}

/* ============================================
   SIDEBAR PATTERNS (REUSABLE)
   ============================================ */

/* Sidebar widgets with left border instead of cards */
.sidebar-widgets {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  border-left: 2px solid rgba(139, 38, 53, 0.15);
  padding-left: var(--spacing-lg);
}

.sidebar-block {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.sidebar-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

/* ============================================
   TABLE/GRID CELL PATTERNS
   ============================================ */

/* Table-like grid with 1px borders */
.table-grid {
  display: grid;
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.table-cell {
  background: var(--color-white);
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  transition: background 0.3s ease;
}

.table-cell:hover {
  background: var(--color-bg-cream);
}

.table-cell-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
}

.table-cell h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
}

.table-cell p {
  color: var(--color-text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

/* ============================================
   ANIMATIONS (SITE-WIDE)
   ============================================ */

/* Fade-up animation for page load elements */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 1s forwards;
}

/* Staggered animation delays */
.fade-up-delay-1 { animation-delay: 0.12s; }
.fade-up-delay-2 { animation-delay: 0.24s; }
.fade-up-delay-3 { animation-delay: 0.36s; }
.fade-up-delay-4 { animation-delay: 0.48s; }
.fade-up-delay-5 { animation-delay: 0.60s; }
.fade-up-delay-6 { animation-delay: 0.72s; }

/* ============================================
   SECTION PATTERNS (SITE-WIDE)
   ============================================ */

/* Section label (small uppercase text above headings) */
.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  display: block;
}

/* Left-aligned section headers */
.section-header {
  display: flex;
  flex-direction:column;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-3xl);
}

.section-header-content {
  flex: 1;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* View all link (used in section headers) */
.view-all-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  margin-top: 2rem;
  transition: gap 0.3s ease;
}

.view-all-link:hover {
  gap: 0.75rem;
}

/* Alternating section backgrounds */
.section-bg-cream {
  background: var(--color-bg-cream);
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section-bg-white {
  background: var(--color-white);
  padding: var(--spacing-3xl) 0;
  position: relative;
}

/* ============================================
   HERO - SMALL PAGE HEADER (REUSABLE)
   ============================================ */

.hero-small {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg,
    var(--color-dark-1) 0%,
    var(--color-dark-2) 50%,
    var(--color-dark-3) 100%);
  margin-bottom: var(--spacing-3xl);
}

.hero-small::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.5) 100%);
}

.hero-small .container {
  position: relative;
  z-index: 2;
}

.hero-small-content {
  max-width: 700px;
  color: var(--color-white);
}

.hero-small-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #D4A574;
  margin-bottom: 0.75rem;
  display: block;
}

.hero-small h1 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--color-white);
}

.hero-small p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}

.affiliation {
  font-size: 0.875rem;
  color: #D4A574;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* ============================================
   SUB-NAVIGATION (REUSABLE)
   ============================================ */

.sub-nav {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-3xl);
}

.sub-nav-container {
  display: flex;
  gap: var(--spacing-xs);
  justify-content: center;
  flex-wrap: wrap;
}

.sub-nav-link {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.sub-nav-link:hover {
  color: var(--color-primary);
  background: var(--color-bg-light);
}

.sub-nav-link.active {
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-color: var(--color-primary);
}

/* ============================================
   FULL-WIDTH CTA SECTIONS (REUSABLE)
   ============================================ */

/* Light CTA (cream background with checkmarks/list) */
.full-width-cta-light {
  background: var(--color-bg-cream);
  padding: 4rem 0;
  margin: var(--spacing-3xl) 0;
}

.full-width-cta-light h2,
.full-width-cta-light h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--color-text-primary);
}

.full-width-cta-light .checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.full-width-cta-light .checklist li {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.full-width-cta-light .checklist li::before {
  content: '✓';
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1rem;
}

/* Dark CTA (burgundy gradient with form/signup) */
.full-width-cta-dark {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: var(--color-white);
  padding: 4rem 0;
  margin: var(--spacing-3xl) 0;
}

.full-width-cta-dark .cta-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.full-width-cta-dark h2,
.full-width-cta-dark h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.full-width-cta-dark p {
  font-size: 1.125rem;
  color: var(--color-white);
  opacity: 0.95;
  margin-bottom: 2rem;
}

.full-width-cta-dark .inline-form {
  display: flex;
  gap: 0.75rem;
  max-width: 500px;
  margin: 0 auto;
}

.full-width-cta-dark .inline-form input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
}

.full-width-cta-dark .inline-form button {
  padding: 0.875rem 2rem;
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.full-width-cta-dark .inline-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* CTA layout variants */

/* Split layout: text left, action right (e.g. suggestions CTA) */
.cta-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-3xl);
}

.cta-split-text {
  max-width: 680px;
}

.cta-split-text h2,
.cta-split-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.cta-split-text p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   BENTO GRID SYSTEM (REUSABLE)
   ============================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-bottom: var(--spacing-3xl);
}

.bento-item {
  position: relative;
  grid-column: span 6;
}

/* Base tile */
.bento-card {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.bento-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bento-scrim {
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(to top, rgba(0,0,0,0.45), transparent);
}

/* Bento-Lite rhythm (Desktop) */
@media (min-width: 1025px) {

  .bento-item { grid-column: span 4; }

  .bento-item:nth-child(9n + 1) { grid-column: span 8; }
  .bento-item:nth-child(9n + 6) { grid-column: span 5; }
  .bento-item:nth-child(9n + 8) { grid-column: span 7; }

  .bento-item:nth-child(9n + 1) .bento-card { aspect-ratio: 16 / 9; }
  .bento-item:nth-child(9n + 6) .bento-card { aspect-ratio: 1 / 1; }

}
@media (hover:hover){
  .bento-card{ transition: transform .15s ease; }
  .bento-card:hover{ transform: translateY(-2px); }
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  z-index:9999;
}

.lightbox-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.72);
}

.lightbox-panel{
  position:relative;
  max-width:min(1000px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  margin: 16px auto;
  top: 0;
  border-radius: 14px;
  overflow:hidden;
  background:#000;
}

.lightbox-img{
  display:block;
  width:100%;
  height:auto;
  max-height: calc(100vh - 32px);
  object-fit: contain;
}

.lightbox-close{
  position:absolute;
  top:10px;
  right:10px;
  width:40px;
  height:40px;
  border-radius:999px;
  border:0;
  background: rgba(255,255,255,.14);
  color:#fff;
  font-size:26px;
  line-height:40px;
  cursor:pointer;
}
/* Lightbox animation */
.lightbox{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, visibility 0s linear .18s;
}

.lightbox.is-open{
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .18s ease;
}

.lightbox-panel{
  transform: translateY(6px) scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}

.lightbox.is-open .lightbox-panel{
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .lightbox,
  .lightbox-panel{
    transition: none;
  }
}


/* Overlapping section headers */
.section-header-overlap {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  padding: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  margin-bottom: -6rem;
  border-radius: var(--radius-lg); /* Only top corners rounded */
  color: var(--color-white);
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(139, 38, 53, 0.2);
}

.section-header-overlap h2 {
  font-family: var(--font-display);
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.section-header-overlap h3 {
  font-family: var(--font-display);
  color: var(--color-white);
  margin-bottom: 0.5rem;
  font-size: 1.875rem;
}

.section-header-overlap p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 1.125rem;
}

/* Content container that sits below the header */
.section-content-overlap {
  background: var(--color-white);
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-lg) var(--spacing-xl);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 1;
}

/* Adjust section spacing when using overlap pattern */
.has-overlap {
  padding-top: var(--spacing-2xl) !important;
  padding-bottom: var(--spacing-3xl) !important;
}

/* Hide default section titles when using overlap */
.has-overlap > .container > h2,
.has-overlap > .container > h3,
.has-overlap > .container > p {
  display: none;
}

/* Visual flow connector */
.section-flow-connector {
  position: relative;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Single subtle horizontal line */
.section-flow-connector::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--color-primary),
    transparent
  );
  opacity: 0.5;
}

/* ============================================
   RESPONSIVE DESIGN - TABLETS
   ============================================ */

@media (max-width: 1024px) {
  .container {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.875rem;
  }

  h3 {
    font-size: 1.375rem;
  }

  /*.xl-txt {*/
  /*  font-size: 1.125rem;*/
  /*}*/

  .lrg-txt {
    font-size: 1rem;
  }

  .section {
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
  }
  
  /* Hero small responsive */
  .hero-small {
    min-height: 40vh;
    margin-bottom: var(--spacing-2xl);
  }

  .hero-small h1 {
    font-size: 2.75rem;
  }

  /* CTA split stacks on tablet */
  .cta-split {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-xl);
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .cta.footer p {
    max-width: 70%;
  }

  .section-header-overlap {
    padding: 1.5rem;
    margin-bottom: -1rem;
  }

  .section-content-overlap {
    padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg);
  }
  
  /* Table grid responsive */
  .table-grid-3 {
    grid-template-columns: 1fr;
  }
  
  /* Full-width CTA responsive */
  .full-width-cta-light .checklist {
    grid-template-columns: 1fr;
  }
  
  .full-width-cta-dark .inline-form {
    flex-direction: column;
  }
  
  .full-width-cta-dark .inline-form button {
    width: 100%;
  }
  
 /* Bento grid - simplified for tablet */
.bento-grid {
  grid-template-columns: repeat(6, 1fr);
}

.bento-item {
  grid-column: span 3;
}

.bento-item:nth-child(6n + 1) {
  grid-column: span 6;
}

.bento-item:nth-child(6n + 4) {
  grid-column: span 6;
}

.bento-card {
  aspect-ratio: 4 / 3;
}

/* ============================================
   RESPONSIVE DESIGN - MOBILE
   ============================================ */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .container {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
  }

  .section {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .cta {
    padding: var(--spacing-md);
  }

  .cta.footer {
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .cta.footer p {
    max-width: 100%;
  }

  .btn {
    width: 100%;
  }

  .btn.lrg {
    font-size: 1rem;
    padding: 0.875rem var(--spacing-lg);
  }

  /* Hero small mobile */
  .hero-small h1 {
    font-size: 2.25rem;
  }

  /* Full-width CTA mobile */
  .full-width-cta-light,
  .full-width-cta-dark {
    padding: var(--spacing-2xl) 0;
  }

  .full-width-cta-dark .inline-form {
    flex-direction: column;
  }

  .full-width-cta-dark .inline-form button {
    width: 100%;
  }

  .button-container {
    flex-direction: column;
  }

  .button-container .btn {
    width: 100%;
  }

  .card .card-body {
    padding: var(--spacing-md);
  }

  .meetup {
    padding: var(--spacing-md);
  }

  .meetup-grid {
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
  }

  .section-bg-cream,
  .section-bg-white {
    padding: var(--spacing-xl) 0;
  }

  .section-header-overlap {
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
    padding: 1.25rem;
  }

  .section-content-overlap {
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
    padding: var(--spacing-lg) var(--spacing-sm) var(--spacing-md);
  }

  .section-flow-connector {
    height: 2rem;
  }

  .section-flow-connector::before {
    width: 80px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  /*.xl-txt {*/
  /*  font-size: 1rem;*/
  /*}*/

  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
  }

  .section-header-overlap h2 {
    font-size: 1.625rem;
  }

  .section-flow-connector::before {
    width: 60px;
  }
  
  /* Bento grid - single column for mobile */
.bento-grid {
  grid-template-columns: 1fr;
}

.bento-item {
  grid-column: span 1;
}

.bento-card {
  aspect-ratio: 4 / 3;
}