/* ==========================================================================
   Tulip Kids Inc - Primrose Schools Inspired Styles & Transitions
   ========================================================================== */

:root {
  --color-primary: #001736;
  --color-primary-container: #0d2c54;
  --color-secondary: #fea520;
  --color-secondary-hover: #e69115;
  --color-tertiary: #52796f;
  --color-sage-subtle: #e8f0ec;
  --color-coral: #e76f51;
  --color-cream: #fcf9f2;
  --color-gold-light: #fef3c7;
  --color-card: #ffffff;
  --color-navy-muted: #1e3d6b;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
}

body {
  background-color: var(--color-cream);
  color: #181a2e;
  overflow-x: hidden;
}

.font-serif-brand {
  font-family: var(--font-serif);
}

/* Tulip Kids Brand Logo */
.brand-logo-link {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo-link:hover {
  transform: scale(1.03);
}

.header-scrolled .brand-logo-link img {
  transform: scale(0.92);
}

/* Header transition on scroll */
#mainHeader {
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#mainHeader.header-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 23, 54, 0.06);
}

/* Mega menu dropdowns */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  box-shadow: 0 20px 40px -8px rgba(0, 23, 54, 0.18), 0 0 0 1px rgba(0, 23, 54, 0.06);
  max-height: none !important;
  overflow: hidden !important;
  white-space: normal !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  z-index: 60;
}

/* Invisible bridge so moving cursor down never loses hover contact */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -24px;
  left: -20px;
  right: -20px;
  height: 28px;
  background: transparent;
  pointer-events: auto;
}

/* Suppress all scrollbars in menu dropdowns */
.nav-dropdown-menu,
.nav-dropdown-menu * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.nav-dropdown-menu::-webkit-scrollbar,
.nav-dropdown-menu *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.nav-item-dropdown:hover .material-symbols-outlined,
.nav-item-dropdown.is-open .material-symbols-outlined {
  transform: rotate(180deg);
  transition: transform 0.2s ease;
}

/* Primrose-style Nav Link hover underline animation */
.nav-link-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 4px;
  color: #181a2e;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link-animated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2.5px;
  background-color: var(--color-secondary);
  border-radius: 9999px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link-animated:hover::after,
.nav-link-animated.active::after {
  width: 100%;
}

/* Hero Section Slider crossfade */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide > img,
.hero-slide > div:not(.hero-copy) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide img {
  z-index: 0;
  object-fit: cover;
  transition: transform 6s cubic-bezier(0.25, 1, 0.5, 1);
  transform: scale(1.04);
}

.hero-slide > div:not(.hero-copy) {
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide.active img {
  transform: scale(1);
}

.hero-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  max-width: 44rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem 1.5rem 4.5rem;
}

@media (min-width: 640px) {
  .hero-copy {
    gap: 1rem;
    padding: 2.5rem 2.5rem 4.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-copy {
    padding: 4rem 4rem 5rem;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(251, 191, 36, 0.55);
  color: #fcd34d;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-size: 1.875rem;
}

.hero-copy-wide {
  max-width: min(100%, 68rem);
}

.hero-title.hero-title-single {
  white-space: nowrap;
  font-size: clamp(1rem, 5.2vw, 3.15rem);
}

.hero-subtitle {
  color: #fcd34d;
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
  font-size: 1.5rem;
}

.hero-description {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.hero-cta,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.925rem;
  line-height: 1;
  cursor: pointer;
}

.hero-cta {
  padding: 0.9rem 1.4rem;
  background: #fbbf24;
  color: #0f172a;
}

.hero-cta:hover {
  background: #f59e0b;
}

.hero-cta-secondary {
  padding: 0.9rem 1.35rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 2.25rem;
  }

  .hero-description {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 2.75rem;
  }
}

/* Featured Tabs Pill Switcher */
.tab-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  border-radius: 9999px;
  background-color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 23, 54, 0.25);
  transition: left 0.35s cubic-bezier(0.2, 0, 0, 1), width 0.35s cubic-bezier(0.2, 0, 0, 1);
  z-index: 0;
}

.tab-btn {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.tab-btn.active {
  color: #ffffff !important;
}

/* Tab Content panel crossfade */
.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: tabFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Testimonial cards share one height so a video review can sit in the same row. */
#testimonialCarousel {
  --review-card-height: 500px;
}

/* Testimonial Carousel Track */
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 100%;
  min-width: 0;
  height: var(--review-card-height);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  align-self: stretch;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.testimonial-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 1.5rem;
  gap: 0.75rem;
}

.testimonial-quote {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-wrap: break-word;
  overscroll-behavior: contain;
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.625;
  padding-right: 0.4rem;
  scrollbar-width: thin;
  scrollbar-color: #94a3b8 transparent;
  touch-action: pan-y;
}

.testimonial-quote::-webkit-scrollbar {
  width: 6px;
}

.testimonial-quote::-webkit-scrollbar-track {
  background: transparent;
}

.testimonial-quote::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 999px;
}

.testimonial-card-foot {
  flex: 0 0 auto;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (min-width: 1024px) {
  .testimonial-card {
    flex: 0 0 calc(33.333% - 16px);
  }
}

/* Frequently Asked Questions */
#faq {
  scroll-margin-top: 6rem;
}

.faq-filter {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.faq-filter.is-active {
  background: #001736;
  border-color: #001736;
  color: #fff;
}

.faq-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
}

.faq-item[open] {
  border-color: rgba(0, 23, 54, 0.28);
  box-shadow: 0 8px 20px -12px rgba(0, 23, 54, 0.35);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "kicker chevron"
    "question chevron";
  gap: 0.35rem 0.75rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-kicker {
  grid-area: kicker;
  display: inline-flex;
  width: fit-content;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(0, 23, 54, 0.08);
  color: #001736;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.faq-question {
  grid-area: question;
  color: #001736;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

.faq-chevron {
  grid-area: chevron;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background: #001736;
  color: #fff;
}

.faq-answer {
  padding: 0.25rem 1.25rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  color: #475569;
  font-size: 0.925rem;
  line-height: 1.65;
}

.faq-answer p {
  margin-top: 0.85rem;
}

.faq-answer ul {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.faq-answer li {
  position: relative;
  padding-left: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.faq-answer li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: #009990;
}

/* Wayfinding Cards Hover zoom */
.wayfinding-card {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.wayfinding-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 35px -8px rgba(0, 23, 54, 0.12), 0 0 0 1px rgba(0, 23, 54, 0.04);
}

.wayfinding-card:hover .wayfinding-img {
  transform: scale(1.05);
}

.wayfinding-img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wayfinding-card:hover .arrow-btn-circle {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateX(4px);
}

.arrow-btn-circle {
  transition: all 0.25s ease;
}

/* Custom button hover glows */
.btn-primary-amber {
  background-color: var(--color-secondary);
  color: #2b1700;
  box-shadow: 0 4px 14px rgba(254, 165, 32, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-amber:hover {
  background-color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(254, 165, 32, 0.5);
}

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

.btn-coral-bloom {
  background-color: var(--color-coral);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(231, 111, 81, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-coral-bloom:hover {
  background-color: #dc5f40;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(231, 111, 81, 0.45);
}

/* Modal styles */
.modal-overlay {
  background-color: rgba(0, 23, 54, 0.6);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
}

.modal-content {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.modal-hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-hidden .modal-content {
  transform: scale(0.95) translateY(20px);
}

/* Floating accreditation badge wobble */
@keyframes softFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.animate-soft-float {
  animation: softFloat 4s ease-in-out infinite;
}

/* Custom scrollbar hiding */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.program-rail {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(254, 165, 32, 0.4) transparent;
}

.program-rail::-webkit-scrollbar {
  height: 5px;
}

.program-rail::-webkit-scrollbar-track {
  background: transparent;
}

.program-rail::-webkit-scrollbar-thumb {
  background: rgba(254, 165, 32, 0.4);
  border-radius: 999px;
}

.program-rail a {
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* Program Page Specific Enhancements */
.program-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.glass-card-accent {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px -10px rgba(0, 23, 54, 0.12), 0 0 0 1px rgba(0, 23, 54, 0.04);
}

.timeline-step {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 23, 54, 0.1);
}

.program-card-hover {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 23, 54, 0.12);
  border-color: #fea520;
}

.testimonial-card-quote {
  position: relative;
}

.testimonial-card-quote::before {
  content: "“";
  position: absolute;
  top: -1.25rem;
  left: -0.5rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  line-height: 1;
  color: rgba(254, 165, 32, 0.22);
  pointer-events: none;
}

.mobile-sticky-action-bar {
  display: none;
}

@media (max-width: 768px) {
  .mobile-sticky-action-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 23, 54, 0.08);
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
}

/* Locations / Campuses Card Styles (matching tulipkidsinc.com/locations/usa) */
.campus-location-card {
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(0, 26, 110, 0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.campus-location-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(0, 26, 110, 0.12);
  border-color: #f59e0b;
}

.badge-program-teal {
  background-color: #009990;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 153, 144, 0.3);
}

.badge-program-navy {
  background-color: #001A6E;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(0, 26, 110, 0.3);
}

.badge-program-amber {
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.btn-enroll-primary {
  background-color: #074799;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(7, 71, 153, 0.25);
}

.btn-enroll-primary:hover {
  background-color: #053d88;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(7, 71, 153, 0.35);
  color: #ffffff;
}



/* Keep the shared navigation usable on narrow and short phone screens. */
@media (max-width: 380px) {
  #mainHeader > div { gap: 0.5rem; }
  #mainHeader .open-tour-modal-trigger { padding-inline: 0.75rem; }
  #mainHeader > div > .flex-shrink-0 { gap: 0.375rem; }
}
#mobileDrawer {
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#mobileDrawer > div:first-child {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
#mobileDrawer nav {
  min-height: 0;
  flex: 1;
  max-height: none;
}
#mobileDrawer > div:last-child { flex-shrink: 0; }

/* Reserve room for the city badge instead of letting campus labels overlap it. */
.campus-search-card .absolute.top-3\.5.left-3\.5 {
  max-width: calc(100% - 110px);
}
.campus-search-card .absolute.top-3\.5.left-3\.5 > span {
  align-items: flex-start;
}
.campus-search-card .absolute.top-3\.5.left-3\.5 .material-symbols-outlined {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

@media (max-width: 380px) {
  main .program-facts { grid-template-columns: minmax(0, 1fr); }
}
.program-facts > div > div { min-width: 0; overflow-wrap: anywhere; }
