/* ==========================================================
   CatholicDisney.com Components Stylesheet - Unified & Mobile Optimized
   ========================================================== */

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  width: 100%;
  box-sizing: border-box;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-crest {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--sun-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  box-shadow: var(--shadow-gold);
  font-weight: 900;
  flex-shrink: 0;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--blue-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Navigation Controls & Hamburger Menu */
.header-nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Desktop Quick Links (Hidden on narrow mobile screens) */
.desktop-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 14px;
  min-height: 40px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav-link:hover {
  color: var(--blue-primary);
  background: var(--bg-surface-soft);
}

.desktop-nav-link.active {
  color: var(--blue-primary);
  font-weight: 800;
  background: var(--blue-light);
}

/* Animated Hamburger Button */
.hamburger-btn {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.hamburger-btn:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
}

.hamburger-line {
  width: 22px;
  height: 2.5px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Slide-out Navigation Drawer */
.nav-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 380px;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  box-sizing: border-box;
}

.nav-drawer-backdrop.open .nav-drawer {
  transform: translateX(0);
}

.nav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: #ffffff;
}

.nav-drawer-body {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  transition: var(--transition-fast);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.drawer-nav-item:hover {
  background: var(--bg-surface-soft);
  color: var(--blue-primary);
}

.drawer-nav-item.active {
  background: var(--blue-light);
  color: var(--blue-dark);
  border-color: #bfdbfe;
}

.drawer-nav-icon {
  font-size: 1.35rem;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  box-shadow: var(--shadow-xs);
  flex-shrink: 0;
}

.drawer-nav-text {
  display: flex;
  flex-direction: column;
}

.drawer-nav-title {
  font-size: 1rem;
  font-weight: 700;
  color: inherit;
}

.drawer-nav-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.nav-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border-subtle);
  background: #f8fafc;
}

/* Hero Showcase Section */
.hero-showcase-section {
  position: relative;
  padding: 24px 0 50px;
  width: 100%;
  box-sizing: border-box;
}

.hero-art-frame {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 16px 45px -10px rgba(15, 23, 42, 0.18), 0 8px 15px -5px rgba(15, 23, 42, 0.08);
  border: 2px solid #ffffff;
  background: #0f172a;
  max-height: 620px;
  box-sizing: border-box;
}

.hero-art-img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.hero-art-badge-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 800;
  color: #b45309;
  border: 1px solid var(--sun-gold);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

/* Hero Content Banner */
.hero-content-banner {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  text-align: center;
  max-width: 980px;
  width: 100%;
  margin: -36px auto 0;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
}

.hero-title {
  margin-bottom: 12px;
  color: #0f172a;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.55;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 44px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-normal);
  border: 1px solid transparent;
  text-decoration: none;
  touch-action: manipulation;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sun {
  background: var(--sun-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-sun:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.4);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: var(--bg-surface-soft);
  border-color: var(--blue-primary);
  color: var(--blue-primary);
  transform: translateY(-2px);
}

/* Stats Ribbon */
.hero-stats-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
  padding: 18px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--blue-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Sections & Tabs */
.tab-content {
  display: none;
  padding: 36px 0 70px;
  width: 100%;
  box-sizing: border-box;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.35s ease-out;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
  width: 100%;
  box-sizing: border-box;
}

.section-tag {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
}

/* Flagship Spotlight (Basilica) */
.flagship-spotlight-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  width: 100%;
  box-sizing: border-box;
}

.spotlight-image-side {
  position: relative;
  min-height: 360px;
  background: url('../assets/images/basilica.jpg') center/cover no-repeat;
}

.spotlight-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
}

.spotlight-badge {
  background: #ffffff;
  color: #b45309;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--sun-gold);
}

.spotlight-content-side {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.spotlight-title {
  font-size: 1.7rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.spotlight-subtitle {
  font-size: 0.95rem;
  color: var(--blue-primary);
  font-weight: 700;
  margin-bottom: 14px;
}

.spotlight-features-list {
  list-style: none;
  margin: 14px 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.spotlight-features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.spotlight-features-list li::before {
  content: "☀️";
  font-size: 1rem;
}

/* Mass Schedules Box */
.mass-times-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 18px;
  box-sizing: border-box;
}

.mass-grid-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.92rem;
  gap: 12px;
}

.mass-grid-row:last-child {
  border-bottom: none;
}

.mass-day {
  font-weight: 700;
  color: var(--text-primary);
  flex-shrink: 0;
}

.mass-times {
  color: var(--blue-dark);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* Filter Controls */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  box-sizing: border-box;
  padding: 2px 0;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  background: var(--bg-surface-soft);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  min-height: 38px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip:hover {
  background: #ffffff;
  color: var(--blue-primary);
  border-color: var(--blue-primary);
}

.filter-chip.active {
  background: var(--blue-primary);
  color: #ffffff;
  border-color: var(--blue-primary);
}

.search-input-wrapper {
  position: relative;
  min-width: 220px;
  max-width: 100%;
  box-sizing: border-box;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 10px 18px 10px 38px;
  min-height: 42px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
}

.search-input:focus {
  border-color: var(--blue-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ==========================================================
   Horizontal Scroll Carousels (Isolated Left/Right Movement)
   ========================================================== */
.carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 10px 0 20px;
  box-sizing: border-box;
}

.horizontal-scroll-carousel {
  display: flex;
  align-items: stretch;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 20px 4px;
  width: 100%;
  box-sizing: border-box;
}

.horizontal-scroll-carousel::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll-carousel::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: var(--radius-full);
}

.horizontal-scroll-carousel::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}

.horizontal-scroll-carousel::-webkit-scrollbar-thumb:hover {
  background: var(--blue-primary);
}

.horizontal-scroll-carousel .parish-card,
.horizontal-scroll-carousel .secret-card,
.horizontal-scroll-carousel .nook-card {
  flex: 0 0 380px;
  max-width: 380px;
  min-width: 300px;
  scroll-snap-align: start;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 480px) {
  .horizontal-scroll-carousel .parish-card,
  .horizontal-scroll-carousel .secret-card,
  .horizontal-scroll-carousel .nook-card {
    flex: 0 0 calc(100vw - 56px);
    max-width: calc(100vw - 56px);
    min-width: 260px;
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  z-index: 10;
  transition: var(--transition-fast);
  line-height: 1;
}

.carousel-arrow:hover {
  background: var(--blue-primary);
  color: #ffffff;
  box-shadow: var(--shadow-blue);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
  left: -20px;
}

.carousel-arrow.next {
  right: -20px;
}

@media (max-width: 960px) {
  .carousel-arrow.prev {
    left: -10px;
  }
  .carousel-arrow.next {
    right: -10px;
  }
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
}

/* Grids (Vertical fallback) */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
  gap: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Parish Card */
.parish-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.parish-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-md);
}

.parish-header {
  margin-bottom: 12px;
}

.parish-distance {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--blue-primary);
  background: var(--blue-light);
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

.parish-name {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 6px 0 2px;
}

.parish-address {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.parish-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* Secret Card */
.secret-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  box-sizing: border-box;
  width: 100%;
}

.secret-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.secret-badge-group {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}

.park-pill {
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.secret-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.secret-catholic-box {
  background: #fffbeb;
  border-left: 3px solid var(--sun-gold);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 12px 0;
  font-size: 0.92rem;
  color: #78350f;
  box-sizing: border-box;
}

.secret-catholic-box strong {
  color: #92400e;
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Quiet Prayer Nook Card (Clean Top-Aligned) */
.nook-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  box-sizing: border-box;
  width: 100%;
}

.nook-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.nook-name {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-top: 8px;
  margin-bottom: 4px;
}

.nook-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.nook-ambiance {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.5;
}

.nook-best-for {
  background: #fffbeb;
  border-left: 3px solid var(--sun-gold);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: #78350f;
  line-height: 1.45;
}

.nook-amenities {
  font-size: 0.84rem;
  color: #475569;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

/* Virtue in the Vault */
.virtue-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  box-sizing: border-box;
  width: 100%;
}

.virtue-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.virtue-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

.virtue-primary-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.virtue-movie-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.virtue-movie-year {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.virtue-quote-box {
  font-style: italic;
  color: var(--text-secondary);
  border-left: 3px solid var(--blue-primary);
  padding-left: 10px;
  margin-bottom: 14px;
  font-size: 0.92rem;
  box-sizing: border-box;
}

.virtue-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 18px;
}

.virtue-tag {
  background: #f1f5f9;
  font-size: 0.78rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-weight: 500;
}

/* Wallpapers */
.wallpaper-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
}

.wallpaper-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.wallpaper-preview-wrapper {
  position: relative;
  overflow: hidden;
  background: #0f172a;
}

.wallpaper-phone-frame {
  height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wallpaper-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.wallpaper-landscape-frame {
  height: 240px;
}

.wallpaper-landscape-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.wallpaper-card:hover img {
  transform: scale(1.04);
}

.wallpaper-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.wallpaper-zoom-trigger {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 2;
}

.wallpaper-zoom-trigger:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.wallpaper-info-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  box-sizing: border-box;
}

.wallpaper-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.wallpaper-resolution {
  font-size: 0.82rem;
  color: var(--blue-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Planner */
.planner-builder-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
  margin-bottom: 36px;
  width: 100%;
  box-sizing: border-box;
}

.planner-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input,
.form-select,
.form-textarea {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  min-height: 46px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.98rem;
  outline: none;
  transition: var(--transition-fast);
  box-sizing: border-box;
  width: 100%;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--blue-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.itinerary-output-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-top: 28px;
  box-shadow: var(--shadow-lg);
  box-sizing: border-box;
  width: 100%;
}

.day-timeline-card {
  border-left: 3px solid var(--sun-gold);
  padding-left: 18px;
  margin-bottom: 24px;
  position: relative;
  box-sizing: border-box;
}

.day-timeline-card::before {
  content: "☀️";
  position: absolute;
  left: -11px;
  top: 0;
  font-size: 1.1rem;
  background: #ffffff;
}

.day-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.day-theme {
  font-size: 0.92rem;
  color: var(--blue-primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.timeline-event-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.timeline-event-item {
  display: flex;
  gap: 12px;
  font-size: 0.93rem;
}

.timeline-time {
  font-weight: 800;
  color: var(--sun-gold);
  min-width: 76px;
  flex-shrink: 0;
}

/* ==========================================================
   Community Tips & Ideas Form (Netlify Forms Powered)
   ========================================================== */
.community-form-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  margin-top: 50px;
  width: 100%;
  box-sizing: border-box;
}

.form-success-banner {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  color: #065f46;
  font-size: 0.95rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

.modal-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 30px;
  position: relative;
  box-sizing: border-box;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #f1f5f9;
  border: none;
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--coral-light);
  color: var(--coral-accent);
}

/* Lightbox Modal */
.lightbox-img-wrapper {
  text-align: center;
}

.lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 24px;
  margin-top: 50px;
  width: 100%;
  box-sizing: border-box;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
  width: 100%;
  box-sizing: border-box;
}

.footer-disclaimer-box {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 24px;
  box-sizing: border-box;
}

/* Responsive Custom Callout Grids */
.callout-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.community-cta-box {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================
   Mobile Responsive Rules
   ========================================================== */
@media (max-width: 960px) {
  .hero-content-banner {
    margin: 16px auto 0;
    padding: 24px 20px;
  }
  .flagship-spotlight-card {
    grid-template-columns: 1fr;
  }
  .spotlight-image-side {
    min-height: 240px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .community-cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    height: 70px;
    padding: 0 4px;
  }

  .desktop-nav-links {
    display: none;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
  }

  .filter-chips {
    width: 100%;
  }

  .search-input-wrapper {
    width: 100%;
    min-width: unset;
  }

  .cards-grid-3, .cards-grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-art-frame {
    border-radius: var(--radius-lg);
    max-height: 380px;
  }

  .hero-art-img {
    max-height: 380px;
  }

  .hero-stats-ribbon {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
  }

  .modal-container {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.98rem;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .parish-actions {
    flex-direction: column;
  }
  .parish-actions .btn {
    width: 100%;
  }
  .community-cta-box .btn {
    width: 100%;
  }
  .community-form-card {
    padding: 24px 16px;
  }
}
