/* ============================
   LBC HISTORY PAGE
   Timeline layout, mobile-first
   ============================ */

/* Page-scoped CSS Variables (so header/footer don’t get overridden) */
body.page-our-history {
  --color-navy: #0b1021;
  --color-navy-soft: #1e293b;
  --color-sand: #e6dac4;
  --color-cream: #fdf8ee;
  --color-accent: #d0a75f;
  --color-accent-hover: #b48e4d;
  --color-text: #1f2933;
  --color-text-soft: #4b5563;
  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  overflow-x: hidden;
}

/* Prevent horizontal overflow (scoped to MAIN so header/footer don’t get touched) */
body.page-our-history main.lbc-main *,
body.page-our-history main.lbc-main *::before,
body.page-our-history main.lbc-main *::after {
  box-sizing: border-box;
}

/* MAIN wrapper */
body.page-our-history main.lbc-main {
  background: var(--lbc-cream);
  width: 100%;
}

/* =====================
   CONTAINER (SCOPED)
   ===================== */
body.page-our-history main.lbc-main .container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .container {
    padding-inline: 1.5rem;
  }
}

/* Compatibility: some templates used .lbc-container (SCOPED) */
body.page-our-history main.lbc-main .lbc-container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 641px) {
  body.page-our-history main.lbc-main .lbc-container { padding-inline: 1.5rem; }
}

/* =====================
   1. HERO SECTION
   ===================== */
body.page-our-history main.lbc-main .history-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0b1021 0%, #1e293b 50%, #0b1021 100%);
  /* padding and min-height controlled by Customizer → Hero Spacing */
}

body.page-our-history main.lbc-main .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 33, 0.85);
  z-index: 1;
}

body.page-our-history main.lbc-main .hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  width: 100%;
}

body.page-our-history main.lbc-main .hero-kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 1rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(208, 167, 95, 0.4);
  border-radius: 999px;
}

body.page-our-history main.lbc-main .hero-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 1rem;
  line-height: 1.15;
  color: #fff;
}

body.page-our-history main.lbc-main .hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin: 0 0 1.5rem;
}

body.page-our-history main.lbc-main .hero-verse {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--lbc-gold);
  padding: 1.25rem;
  margin: 0 auto 2rem;
  max-width: 500px;
  text-align: left;
  border-radius: 0 0.5rem 0.5rem 0;
  backdrop-filter: blur(8px);
}

body.page-our-history main.lbc-main .hero-verse p {
  font-size: 1.1rem;
  font-style: italic;
  color: #facc6b;
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

body.page-our-history main.lbc-main .hero-verse cite {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: normal;
  font-weight: 600;
}

body.page-our-history main.lbc-main .hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

body.page-our-history main.lbc-main .hero-actions .btn {
  width: 100%;
  max-width: 280px;
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .hero-title { font-size: 2.75rem; }

  body.page-our-history main.lbc-main .hero-actions {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  body.page-our-history main.lbc-main .hero-actions .btn {
    width: auto;
    max-width: none;
  }
}

@media (min-width: 900px) {
  /* HERO PADDING MOVED TO lbc-overrides.css */
  body.page-our-history main.lbc-main .hero-title { font-size: 3rem; }
}

/* =====================
   BUTTONS (SCOPED)
   ===================== */
body.page-our-history main.lbc-main .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

body.page-our-history main.lbc-main .btn-primary {
  background: linear-gradient(135deg, var(--lbc-gold), #facc6b);
  color: var(--lbc-navy);
  box-shadow: 0 4px 15px rgba(208, 167, 95, 0.3);
}

body.page-our-history main.lbc-main .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(208, 167, 95, 0.4);
}

body.page-our-history main.lbc-main .btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

body.page-our-history main.lbc-main .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* =====================
   SECTION HEADERS (SCOPED)
   Center-aligned like Plan Your Visit page
   ===================== */
body.page-our-history main.lbc-main .section-header {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

body.page-our-history main.lbc-main .section-kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lbc-gold);
  margin-bottom: 0.5rem;
  text-align: center;
}

body.page-our-history main.lbc-main .section-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 1rem;
  text-align: center;
}

body.page-our-history main.lbc-main .section-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lbc-text-soft);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .section-title { font-size: 2.25rem; }
}

/* =====================
   2. TIMELINE SECTION (SCOPED)
   ===================== */
body.page-our-history main.lbc-main .timeline-section {
  padding: 3.75rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.page-our-history main.lbc-main .timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Mobile timeline item spacing */
body.page-our-history main.lbc-main .timeline-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 2rem; /* Tighter vertical rhythm */
}

body.page-our-history main.lbc-main .timeline-item:last-child { margin-bottom: 0; }

/* Mobile timeline line - extends between items */
body.page-our-history main.lbc-main .timeline-line {
  position: absolute;
  left: 7px;
  top: 0;
  bottom: -2rem; /* Extend to next item */
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--lbc-gold) 0%,
    rgba(208, 167, 95, 0.3) 100%
  );
}

body.page-our-history main.lbc-main .timeline-item:last-child .timeline-line { display: none; }

/* Timeline dots - more prominent */
body.page-our-history main.lbc-main .timeline-dot {
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 16px;
  height: 16px;
  background: var(--lbc-gold);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 3px var(--lbc-gold),
    0 2px 8px rgba(208, 167, 95, 0.35);
  z-index: 2;
}

/* Timeline header - year badge alongside title */
body.page-our-history main.lbc-main .timeline-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  width: 100%;
}

/* Year badges - inline with title */
body.page-our-history main.lbc-main .timeline-year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--lbc-navy);
  color: var(--lbc-gold);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(11, 16, 33, 0.15);
}

/* Timeline cards with improved contrast */
body.page-our-history main.lbc-main .timeline-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfcfa 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid rgba(208, 167, 95, 0.12);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(208, 167, 95, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.5s ease;
  /* Flexbox for consistent content flow - year badge always at top */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* Scroll reveal animation - starts hidden */
  opacity: 0;
  transform: translateY(20px);
}

/* Revealed state via JS IntersectionObserver */
body.page-our-history main.lbc-main .timeline-item.is-revealed .timeline-card {
  opacity: 1;
  transform: translateY(0);
}

body.page-our-history main.lbc-main .timeline-item.is-revealed .timeline-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 35px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(208, 167, 95, 0.12);
  border-color: rgba(208, 167, 95, 0.25);
}

/* Staggered animation delays for timeline items */
body.page-our-history main.lbc-main .timeline-item:nth-child(1) .timeline-card { transition-delay: 0s; }
body.page-our-history main.lbc-main .timeline-item:nth-child(2) .timeline-card { transition-delay: 0.1s; }
body.page-our-history main.lbc-main .timeline-item:nth-child(3) .timeline-card { transition-delay: 0.15s; }
body.page-our-history main.lbc-main .timeline-item:nth-child(4) .timeline-card { transition-delay: 0.2s; }
body.page-our-history main.lbc-main .timeline-item:nth-child(5) .timeline-card { transition-delay: 0.25s; }
body.page-our-history main.lbc-main .timeline-item:nth-child(6) .timeline-card { transition-delay: 0.3s; }
body.page-our-history main.lbc-main .timeline-item:nth-child(7) .timeline-card { transition-delay: 0.35s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  body.page-our-history main.lbc-main .timeline-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
  }
}

body.page-our-history main.lbc-main .timeline-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0;
  flex: 1;
  min-width: 0;
}

body.page-our-history main.lbc-main .timeline-text {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--lbc-text-soft);
  margin: 0;
  width: 100%;
}

body.page-our-history main.lbc-main .timeline-image {
  margin-top: 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  width: 100%;
}

body.page-our-history main.lbc-main .timeline-image img {
  width: 100%;
  height: auto;
  min-height: 180px;
  max-height: 350px;
  object-fit: cover;
  display: block;
}

body.page-our-history main.lbc-main .timeline-placeholder {
  width: 100%;
  min-height: 180px;
  max-height: 280px;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px dashed #d1d5db;
}

/* Tablet adjustments */
@media (min-width: 641px) {
  body.page-our-history main.lbc-main .timeline-item {
    padding-left: 3rem;
    margin-bottom: 2.5rem;
  }
  body.page-our-history main.lbc-main .timeline-card { padding: 2rem; }
  body.page-our-history main.lbc-main .timeline-image img {
    min-height: 220px;
    max-height: 400px;
  }
  body.page-our-history main.lbc-main .timeline-placeholder {
    min-height: 200px;
    max-height: 320px;
  }
}

/* Desktop layout */
@media (min-width: 900px) {
  body.page-our-history main.lbc-main .timeline-section { padding: 5rem 0; }

  /* Center spine with soft glow */
  body.page-our-history main.lbc-main .timeline {
    max-width: 1040px;
    position: relative;
    padding: 0 1rem;
  }

  body.page-our-history main.lbc-main .timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--lbc-gold) 3%,
      var(--lbc-gold) 97%,
      transparent 100%
    );
    box-shadow: 0 0 15px rgba(208, 167, 95, 0.25);
    border-radius: 999px;
    z-index: 0;
  }

  /* Desktop grid layout */
  body.page-our-history main.lbc-main .timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 2rem;
    padding-left: 0;
    margin-bottom: 3.5rem;
    align-items: start;
  }

  /* Hide per-item line (spine replaces it) */
  body.page-our-history main.lbc-main .timeline-line { display: none; }

  /* Desktop timeline dots - centered on spine */
  body.page-our-history main.lbc-main .timeline-dot {
    position: static;
    grid-column: 2;
    justify-self: center;
    width: 18px;
    height: 18px;
    border-width: 4px;
    box-shadow:
      0 0 0 3px var(--lbc-gold),
      0 0 20px rgba(208, 167, 95, 0.3);
  }

  /* Year badge - slightly larger on desktop */
  body.page-our-history main.lbc-main .timeline-year {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }

  /* Title - larger on desktop */
  body.page-our-history main.lbc-main .timeline-title {
    font-size: 1.35rem;
  }

  /* Card placement - right side by default (odd items) */
  body.page-our-history main.lbc-main .timeline-card {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  /* Alternate cards to left side (even items) */
  body.page-our-history main.lbc-main .timeline-item:nth-child(even) .timeline-card {
    grid-column: 1;
    align-items: flex-start;
    text-align: left;
  }

  /* Desktop image sizes - more generous */
  body.page-our-history main.lbc-main .timeline-image img {
    min-height: 240px;
    max-height: 450px;
  }
  body.page-our-history main.lbc-main .timeline-placeholder {
    min-height: 220px;
    max-height: 350px;
  }
}

/* =====================
   3. STATS SECTION (SCOPED)
   ===================== */
body.page-our-history main.lbc-main .history-stats,
body.page-our-history main.lbc-main .stats-section {
  padding: 2.75rem 0;
  background: var(--lbc-cream);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

body.page-our-history main.lbc-main .history-stats .stats-grid,
body.page-our-history main.lbc-main .stats-section .stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

body.page-our-history main.lbc-main .history-stats .stat,
body.page-our-history main.lbc-main .stats-section .stat,
body.page-our-history main.lbc-main .stats-section .stat-card {
  text-align: center;
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

body.page-our-history main.lbc-main .history-stats .stat:hover,
body.page-our-history main.lbc-main .stats-section .stat:hover,
body.page-our-history main.lbc-main .stats-section .stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  border-color: rgba(208, 167, 95, 0.3);
}

body.page-our-history main.lbc-main .history-stats .stat-number,
body.page-our-history main.lbc-main .stats-section .stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--lbc-navy);
  line-height: 1;
  margin-bottom: 0.35rem;
}

body.page-our-history main.lbc-main .history-stats .stat-label,
body.page-our-history main.lbc-main .stats-section .stat-label {
  font-size: 0.8rem;
  color: var(--lbc-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body.page-our-history main.lbc-main .history-stats .stat-number::after,
body.page-our-history main.lbc-main .stats-section .stat-number::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  border-radius: 999px;
  margin: 0.6rem auto 0;
  background: linear-gradient(90deg, var(--lbc-gold), rgba(208, 167, 95, 0.35));
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .history-stats .stats-grid,
  body.page-our-history main.lbc-main .stats-section .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
  body.page-our-history main.lbc-main .history-stats .stat-number,
  body.page-our-history main.lbc-main .stats-section .stat-number {
    font-size: 2.75rem;
  }
}

/* =====================
   3.5 OUR STORY SECTION (SCOPED)
   ===================== */
body.page-our-history main.lbc-main .our-story-section {
  padding: 3.75rem 0;
  background: #fff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

body.page-our-history main.lbc-main .our-story-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

body.page-our-history main.lbc-main .story-image-wrapper,
body.page-our-history main.lbc-main .founders-image-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

body.page-our-history main.lbc-main .story-image,
body.page-our-history main.lbc-main .founders-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 400px;
}

body.page-our-history main.lbc-main .story-content {
  text-align: center;
}

body.page-our-history main.lbc-main .story-content .section-kicker {
  text-align: center;
}

body.page-our-history main.lbc-main .story-content .section-title {
  text-align: center;
}

body.page-our-history main.lbc-main .story-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--lbc-text-soft);
  margin: 0 0 1rem;
  text-align: left;
}

body.page-our-history main.lbc-main .story-content p:last-child {
  margin-bottom: 0;
}

body.page-our-history main.lbc-main .founders-image-wrapper {
  text-align: center;
}

body.page-our-history main.lbc-main .image-caption {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--lbc-text-soft);
  margin-top: 0.75rem;
  text-align: center;
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .our-story-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  body.page-our-history main.lbc-main .story-content {
    text-align: left;
  }

  body.page-our-history main.lbc-main .story-content .section-kicker,
  body.page-our-history main.lbc-main .story-content .section-title {
    text-align: left;
  }

  body.page-our-history main.lbc-main .founders-image-wrapper {
    grid-column: span 2;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (min-width: 900px) {
  body.page-our-history main.lbc-main .our-story-section {
    padding: 5rem 0;
  }

  body.page-our-history main.lbc-main .our-story-grid {
    gap: 3rem;
  }

  body.page-our-history main.lbc-main .story-content p {
    font-size: 1.05rem;
  }
}

/* =====================
   4. VISION SECTION (SCOPED)
   ===================== */
body.page-our-history main.lbc-main .vision-section {
  padding: 3.75rem 0;
  background: var(--lbc-sand);
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

body.page-our-history main.lbc-main .vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

body.page-our-history main.lbc-main .vision-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, opacity 0.5s ease;
  /* Scroll reveal animation */
  opacity: 0;
  transform: translateY(20px);
}

/* Revealed state */
body.page-our-history main.lbc-main .vision-card.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

body.page-our-history main.lbc-main .vision-card.is-revealed:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(208, 167, 95, 0.3);
}

/* Staggered delays for vision cards */
body.page-our-history main.lbc-main .vision-card:nth-child(1) { transition-delay: 0s; }
body.page-our-history main.lbc-main .vision-card:nth-child(2) { transition-delay: 0.15s; }
body.page-our-history main.lbc-main .vision-card:nth-child(3) { transition-delay: 0.3s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  body.page-our-history main.lbc-main .vision-card {
    opacity: 1;
    transform: none;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
  }
}

body.page-our-history main.lbc-main .vision-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, rgba(208, 167, 95, 0.15), rgba(208, 167, 95, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lbc-gold);
}

body.page-our-history main.lbc-main .vision-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--lbc-navy);
  margin: 0 0 0.5rem;
}

body.page-our-history main.lbc-main .vision-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--lbc-text-soft);
  margin: 0;
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .vision-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  body.page-our-history main.lbc-main .vision-section { padding: 5rem 0; }
}

/* =====================
   5. CTA SECTION (SCOPED)
   Simple layout - no card, text on cream background
   ===================== */
body.page-our-history main.lbc-main .cta-section {
  padding: 3.5rem 0 4rem;
  background: var(--lbc-cream);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

/* Remove card styling - text sits directly on cream background */
body.page-our-history main.lbc-main .cta-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

body.page-our-history main.lbc-main .cta-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 1rem;
  color: var(--lbc-navy);
}

body.page-our-history main.lbc-main .cta-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--lbc-text-soft);
  margin: 0 0 1.5rem;
}

body.page-our-history main.lbc-main .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

body.page-our-history main.lbc-main .cta-buttons .btn {
  width: 100%;
  max-width: 250px;
}

body.page-our-history main.lbc-main .cta-section .btn-outline {
  border-color: var(--lbc-navy);
  color: var(--lbc-navy);
}

body.page-our-history main.lbc-main .cta-section .btn-outline:hover {
  background: var(--lbc-navy);
  color: #fff;
}

@media (min-width: 641px) {
  body.page-our-history main.lbc-main .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }
  body.page-our-history main.lbc-main .cta-buttons .btn {
    width: auto;
    max-width: none;
  }
}

@media (min-width: 900px) {
  body.page-our-history main.lbc-main .cta-section {
    padding: 4rem 0 5rem;
  }
}

/* =====================
   ACCESSIBILITY - Focus States
   ===================== */

/* Focus visible for keyboard navigation on cards */
body.page-our-history main.lbc-main .timeline-card:focus-within {
  outline: 2px solid var(--lbc-gold);
  outline-offset: 4px;
}

body.page-our-history main.lbc-main .vision-card:focus-within {
  outline: 2px solid var(--lbc-gold);
  outline-offset: 4px;
}

body.page-our-history main.lbc-main .stat:focus-within {
  outline: 2px solid var(--lbc-gold);
  outline-offset: 4px;
}

/* Interactive links focus state */
body.page-our-history main.lbc-main .timeline-card a:focus-visible,
body.page-our-history main.lbc-main .vision-card a:focus-visible,
body.page-our-history main.lbc-main .cta-buttons a:focus-visible {
  outline: 2px solid var(--lbc-gold);
  outline-offset: 2px;
}

/* Respect reduced motion for hover transforms */
@media (prefers-reduced-motion: reduce) {
  body.page-our-history main.lbc-main .timeline-item.is-revealed .timeline-card:hover,
  body.page-our-history main.lbc-main .vision-card.is-revealed:hover,
  body.page-our-history main.lbc-main .history-stats .stat:hover,
  body.page-our-history main.lbc-main .btn-primary:hover {
    transform: none;
  }
}
