/* --- LBC CANON SHELL CSS --- */
/* Header, Navigation, Mega Menus, Mobile Menu, Footer */
/* Global CSS Variables available to all pages */

/* ============================
   Skip Link (WCAG 2.4.1)
   ============================ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--lbc-navy);
  color: #fff;
  padding: 8px 16px;
  z-index: 100000;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--lbc-gold);
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  display: block;
  height: auto;
  width: auto;
  position: absolute;
  top: 5px;
  left: 5px;
  background-color: var(--lbc-navy);
  color: #fff;
  font-size: 1rem;
  padding: 15px 23px 14px;
  text-decoration: none;
  z-index: 100000;
}

/* Reset / Basic Layout */
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--lbc-cream);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ============================
   HEADER
   ============================ */
.lbc-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  padding: 1rem 0;
}

/* WP admin bar offset */
body.admin-bar .lbc-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .lbc-header {
    top: 46px;
  }
}

.lbc-header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
}

.lbc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.lbc-logo img {
  height: 50px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

/* ============================
   DESKTOP NAV
   ============================ */
.lbc-nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .lbc-nav { display: flex; }
}

.lbc-nav-link {
  padding: 0.75rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1f2933;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.lbc-nav-link:hover { color: var(--lbc-gold); }

/* ============================
   MEGA DROPDOWN PANELS
   ============================ */
.lbc-dropdown-group { position: relative; }

.lbc-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fff;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  display: flex;
}

.lbc-dropdown-group:hover .lbc-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* About Panel */
.panel-about { width: 550px; }

.panel-sidebar {
  width: 35%;
  background: var(--lbc-navy);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--lbc-cream);
}

/* "Welcome Home" was an <h3>; now a <p> so it isn't a heading before the page H1.
   Restates the global h3 look (lbc-global.css) and outranks `.panel-sidebar p`. */
.panel-sidebar .panel-sidebar__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  opacity: 1;
  margin: 0 0 0.5rem;
  color: var(--lbc-gold);
}

.panel-sidebar p { 
  font-size: 0.85rem; 
  opacity: 0.8; 
  margin: 0; 
  line-height: 1.4; 
}

.panel-links { 
  width: 65%; 
  padding: 1.5rem; 
  display: flex; 
  flex-direction: column; 
  gap: 1rem; 
}

.mega-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.mega-link-item:hover { background: #f8fafc; }
.mega-icon { color: var(--lbc-gold); margin-top: 2px; }
.mega-title { 
  display: block; 
  font-weight: 700; 
  color: #1f2933; 
  font-size: 0.9rem; 
  font-family: var(--font-heading); 
}
.mega-desc { 
  display: block; 
  font-size: 0.75rem; 
  color: #64748b; 
  margin-top: 2px; 
}

/* Connect Panel (2 columns) */
.panel-connect {
  width: min(760px, calc(100vw - 2rem));
  left: 50%;
  transform: translateX(-50%) translateY(10px);
}

.lbc-dropdown-group:hover .panel-connect {
  transform: translateX(-50%) translateY(0);
}

.connect-grid {
  padding: 2rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.col-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--lbc-navy);
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

.simple-list { list-style: none; padding: 0; margin: 0; }
.simple-list li { margin-bottom: 0.75rem; }
.simple-link { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: #475569; 
  text-decoration: none; 
  font-size: 0.9rem; 
  font-weight: 500; 
}
.simple-link:hover { color: var(--lbc-gold); }
/* ============================================================================
   NESTED SUBMENU STYLES (Desktop Mega Menu)
   For sub-pages under main menu items (e.g., Youth Rally under Teens & Youth)
   ============================================================================ */

/* Parent item with submenu */
.simple-list .has-submenu {
  position: relative;
}

/* Parent link styling */
.simple-link-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Arrow icon */
.submenu-arrow {
  transition: transform 150ms ease;
  opacity: 0.6;
}

/* Nested submenu container */
.nested-submenu {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 1rem;
  border-left: 2px solid var(--lbc-gold, #d0a75f);
  padding-left: 0.75rem;
}

/* Show submenu on hover */
.has-submenu:hover .nested-submenu {
  display: block;
}

/* Rotate arrow on hover */
.has-submenu:hover .submenu-arrow {
  transform: rotate(90deg);
  opacity: 1;
}

/* Nested link styling */
.nested-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--lbc-text-soft, #4b5563);
  text-decoration: none;
  transition: color 150ms ease, padding-left 150ms ease;
}

.nested-link:hover {
  color: var(--lbc-gold, #d0a75f);
  padding-left: 0.25rem;
}

/* ============================================================================
   NESTED MOBILE MENU STYLES
   For accordion-within-accordion pattern
   ============================================================================ */

/* Nested accordion button */
.m-nested-btn {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  font-family: var(--font-body, 'Source Sans 3', sans-serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 150ms ease, color 150ms ease;
  min-height: 44px;
}

.m-nested-btn:hover {
  background: rgba(208, 167, 95, 0.1);
  color: var(--lbc-gold, #d0a75f);
}

/* Arrow rotation when expanded */
.m-nested-btn[aria-expanded="true"] span {
  transform: rotate(90deg);
  display: inline-block;
  transition: transform 150ms ease;
}

.m-nested-btn span {
  transition: transform 150ms ease;
  font-size: 0.875rem;
  color: var(--lbc-gold, #d0a75f); /* Gold arrow to match other accordions */
}

/* Nested content container */
.m-nested-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding-left: 1rem;
  border-left: 2px solid var(--lbc-gold, #d0a75f);
  margin-left: 1rem;
}

/* Show when expanded */
.m-nested-content.active {
  max-height: 300px;
  margin-bottom: 0.5rem;
}

/* Nested mobile links */
.m-sublink-nested {
  font-size: 0.875rem;
  padding: 0.6rem 1rem;
  color: #e2e8f0;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.m-sublink-nested:hover {
  color: var(--lbc-gold, #d0a75f);
  background: rgba(208, 167, 95, 0.08);
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ============================================================================ */

@media (min-width: 900px) {
  /* Desktop: Ensure submenu appears correctly */
  .nested-submenu {
    animation: slideDown 200ms ease;
  }
  
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Mobile: Hide desktop nested menu (default) */
.nested-submenu {
  display: none;
}

@media (min-width: 900px) {
  /* Desktop: Show nested menu on hover */
  .has-submenu:hover .nested-submenu {
    display: block;
  }
}
/* ============================
   HEADER CTAs
   ============================ */
.lbc-cta-group { display: flex; align-items: center; gap: 1rem; }

.btn-watch { 
  display: none; 
  align-items: center; 
  gap: 6px; 
  font-size: 0.75rem; 
  font-weight: 700; 
  text-transform: uppercase; 
  letter-spacing: 0.1em; 
  color: #1f2933; 
  text-decoration: none; 
}

.btn-visit {
  background: linear-gradient(135deg, #d0a75f, #facc6b);
  color: var(--lbc-navy);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s;
  display: none;
  font-family: var(--font-heading);
}

.btn-visit:hover { transform: translateY(-2px); }

@media (min-width: 1024px) {
  .btn-watch { display: inline-flex; }
  .btn-visit { display: inline-block; }
}

/* Mobile Toggle */
.mobile-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lbc-navy);
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

/* ============================
   MOBILE MENU OVERLAY
   ============================ */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 33, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  display: flex;
  justify-content: flex-end;
}

.mobile-overlay.active { 
  opacity: 1; 
  visibility: visible; 
}

/* Mobile Drawer */
.mobile-drawer {
  width: 85%;
  max-width: 320px;
  height: 100%;
  background: var(--lbc-navy);
  box-shadow: -5px 0 30px rgba(0,0,0,0.3);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.mobile-overlay.active .mobile-drawer { 
  transform: translateX(0); 
}

/* Mobile Header - Clean White Background */
.mobile-header {
  padding: 0.875rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Logo link - clickable to go home */
.mobile-logo-link {
  display: block;
  line-height: 0;
}

.mobile-logo-link img,
.mobile-header img {
  height: 36px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

.mobile-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lbc-navy);
  padding: 0.5rem;
  border-radius: 8px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close-btn:hover {
  background: rgba(0,0,0,0.05);
}

/* Mobile Links Section - Navy Background */
.mobile-links {
  padding: 1rem 1rem 1.5rem;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: #0f1729;
  box-sizing: border-box;
}

.mobile-links::-webkit-scrollbar { display: none; }

/* Top-Level Mobile Links */
.m-link {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.m-link:first-child {
  border-top: none;
}

.m-link:hover {
  color: var(--lbc-gold);
}

/* Accordion Buttons */
.m-accordion-btn {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.m-accordion-btn:hover {
  color: var(--lbc-gold);
}

.m-accordion-btn span {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
  color: var(--lbc-gold);
}

.m-accordion-btn[aria-expanded="true"] span {
  transform: rotate(180deg);
}

/* Accordion Content */
.m-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.15);
  margin: 0 -1rem;
  padding: 0 1rem;
}

.m-accordion-content.open {
  max-height: 1000px;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Sub-headings in accordion */
.m-subhead {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--lbc-gold);
  font-weight: 700;
  font-family: var(--font-heading);
}

.m-subhead:first-child {
  margin-top: 0;
}

/* Sub-links */
.m-sublink {
  display: flex;
  align-items: center;
  padding: 0.75rem 0 0.75rem 1rem;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 2px solid rgba(208, 167, 95, 0.3);
  margin-left: 0.25rem;
  transition: all 0.2s;
  min-height: 44px;
}

.m-sublink:hover {
  color: #fff;
  border-left-color: var(--lbc-gold);
  background: rgba(208, 167, 95, 0.08);
  margin-left: 0;
  padding-left: 1.25rem;
}

/* Mobile Bottom CTA Area */
.mobile-bottom-cta {
  padding: 1rem;
  background: #0a0e1a;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
}

.m-btn-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: linear-gradient(135deg, #d0a75f, #facc6b);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lbc-navy);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(208, 167, 95, 0.3);
  transition: all 0.2s;
  box-sizing: border-box;
}

.m-btn-visit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(208, 167, 95, 0.4);
}

.m-btn-visit:active { 
  transform: scale(0.98); 
}

.m-btn-visit svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Mobile Quick Icons */
.mobile-icons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

.mobile-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-icon-link:hover { 
  color: var(--lbc-gold);
  background: rgba(208, 167, 95, 0.12);
  border-color: rgba(208, 167, 95, 0.3);
}

/* ============================
   FOOTER
   ============================ */
.site-footer {
  background: var(--lbc-navy);
  color: var(--lbc-text-soft);
  padding: 2.5rem 0 0;
  border-top: 4px solid #1e293b;
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 901px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

.footer-logo {
  height: 65px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.footer-col p {
  line-height: 1.5;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer-col h4 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin: 0 0 1rem;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a, .footer-links li {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--lbc-gold); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--lbc-gold);
  margin-top: 2px;
}

.contact-info { display: flex; flex-direction: column; }
.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 2px;
  font-weight: 700;
}
.contact-link { color: #cbd5e1; text-decoration: none; font-weight: 500; }
.contact-link:hover { color: #fff; }
.site-footer .contact-info a {
  text-decoration: none;
}
.site-footer .contact-info a:hover { color: #fff; }

.social-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icon { 
  width: 40px; 
  height: 40px; 
  color: #94a3b8; 
  transition: all 0.2s; 
  background: rgba(255,255,255,0.05); 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  border-radius: 8px;
}
.social-icon:hover { 
  color: var(--lbc-gold); 
  background: rgba(255,255,255,0.1); 
  transform: translateY(-2px); 
}
.social-icon svg { width: 20px; height: 20px; }

/* Footer Bottom Bar */
.footer-bottom {
  background: rgba(0,0,0,0.3);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 1rem 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: center;
  align-items: center;
}

.footer-design a {
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-design a:hover { color: var(--lbc-gold); }

@media (min-width: 601px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    text-align: left;
  }
}

/* ============================
   MAIN CONTENT OFFSET
   ============================ */
.lbc-main { 
  flex: 1; 
  padding-top: 0;
}

/* ============================
   HERO SPACING - MOVED TO lbc-overrides.css

   All hero spacing rules have been consolidated into
   lbc-overrides.css which loads LAST to prevent conflicts.

   @see lbc-overrides.css
   ============================ */

/* ============================
   GLOBAL BUTTON STYLES
   ============================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

/* Primary Button - Gold Gradient */
.btn:not(.btn-outline) {
  background: linear-gradient(135deg, #d0a75f, #facc6b);
  color: var(--lbc-navy);
  box-shadow: 0 6px 18px rgba(208, 167, 95, 0.35);
}

.btn:not(.btn-outline):hover {
  box-shadow: 0 8px 24px rgba(208, 167, 95, 0.45);
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Outline Button */
.btn-outline {
  border-color: rgba(148,163,184,0.4);
  color: var(--lbc-navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--lbc-navy);
  border-color: var(--lbc-navy);
  color: #fff;
}

/* ============================
   GLOBAL CONTAINER
   ============================ */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
    padding-inline: 0;
  }
}
