/* === Service Cards === */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lift);
}

.service-card__icon {
  font-size: 48px;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-card__icon {
  transform: rotate(3deg);
}

.service-card__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--color-deep);
}

.service-card__desc {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.service-card__link {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.service-card__link:hover {
  color: var(--color-deep);
}

/* === Timeline === */

.timeline-section {
  padding: 80px 0;
  overflow: hidden;
}

.timeline-scroll-wrapper {
  overflow-x: auto;
  padding: 40px 24px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.timeline-scroll-wrapper:active {
  cursor: grabbing;
}

.timeline-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-track {
  background: var(--color-blush);
  border-radius: 3px;
}

.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-secondary);
  border-radius: 3px;
}

.timeline-track {
  display: flex;
  align-items: flex-start;
  width: max-content;
  gap: 0;
}

.timeline-stop {
  width: 200px;
  text-align: center;
  position: relative;
  padding: 0 16px;
}

.timeline-stop__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 16px;
  position: relative;
  z-index: 2;
}

.timeline-stop::after {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(50% + 32px);
  width: calc(100% - 64px);
  height: 3px;
  background: var(--color-secondary);
  z-index: 1;
}

.timeline-stop:last-child::after {
  display: none;
}

.timeline-stop__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--color-deep);
}

.timeline-stop__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* === Meet Brooklynn Teaser === */

.meet-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.meet-photo {
  position: relative;
}

.meet-photo img {
  border-radius: 16px;
  width: 100%;
  outline: 4px solid var(--color-secondary);
  outline-offset: 8px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-soft);
}

.meet-text h2 {
  margin-bottom: 16px;
}

.meet-text p {
  margin-bottom: 20px;
}

.meet-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

/* === Testimonial Carousel === */

.carousel {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  outline: none;
}

.carousel__track {
  overflow: hidden;
}

.carousel__slide {
  display: none;
  text-align: center;
  padding: 40px 24px;
}

.carousel__slide.active {
  display: block;
}

.carousel__stars {
  color: var(--color-secondary);
  font-size: 1.5rem;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.carousel__quote {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-deep);
  line-height: 1.6;
  margin-bottom: 20px;
}

.carousel__name {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--color-text-muted);
}

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.4;
  border: none;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 0;
}

.carousel__dot.active {
  opacity: 1;
  transform: scale(1.2);
}

/* === Photo Gallery === */

.gallery-grid {
  columns: 3;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6,214,160,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-size: 2rem;
}

.gallery-item:hover .gallery-item__overlay {
  opacity: 1;
}

/* === Flip Cards === */

.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flip-card {
  perspective: 1000px;
  height: 200px;
  cursor: pointer;
  outline: none;
}

.flip-card:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-card);
}

.flip-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.flip-card.flipped .flip-card__inner {
  transform: rotateY(180deg);
}

.flip-card__front,
.flip-card__back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.flip-card__front {
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.flip-card__emoji {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.flip-card__front p {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.flip-card__back {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotateY(180deg);
}

.flip-card__back p {
  color: var(--color-white);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === FAQ Accordion === */

.faq-list {
  max-width: 750px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(7,59,76,0.1);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-deep);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 0 20px;
}

.faq-answer p {
  color: var(--color-text-muted);
}

/* === Enrollment Steps === */

.enroll-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  position: relative;
}

.enroll-step {
  text-align: center;
  flex: 1;
  max-width: 200px;
  position: relative;
  padding: 0 12px;
}

.enroll-step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  position: relative;
  z-index: 2;
}

.enroll-step__icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.enroll-step__title {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-deep);
  margin-bottom: 4px;
}

.enroll-step__desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.enroll-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 3px;
  background: var(--color-secondary);
  z-index: 1;
}

.enroll-step:last-child::after {
  display: none;
}

/* === Age Selector === */

.age-selector {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.age-bubble {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-deep);
}

.age-bubble__emoji {
  font-size: 1.8rem;
  margin-bottom: 2px;
}

.age-bubble.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.age-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  transition: opacity 0.3s ease;
}

.age-content.hidden {
  display: none;
}

/* === Service Detail Sections === */

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.service-detail.reverse {
  direction: rtl;
}

.service-detail.reverse > * {
  direction: ltr;
}

.service-detail__visual {
  font-size: 6rem;
  text-align: center;
}

.service-detail__text h3 {
  margin-bottom: 12px;
  color: var(--color-deep);
}

.service-detail__text p {
  margin-bottom: 16px;
}

.service-detail__text ul {
  margin-bottom: 20px;
}

.service-detail__text ul li {
  padding: 4px 0 4px 24px;
  position: relative;
  color: var(--color-text-muted);
}

.service-detail__text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* === Rates Teaser === */

.rates-card {
  background: var(--color-secondary);
  border-radius: var(--radius-card);
  padding: 48px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.rates-card h3 {
  color: var(--color-deep);
  margin-bottom: 12px;
}

.rates-card p {
  color: var(--color-deep);
  opacity: 0.8;
  margin-bottom: 24px;
}

/* === Contact Form === */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-deep);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(7,59,76,0.15);
  border-radius: 12px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--color-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.15);
}

.form-group textarea {
  resize: vertical;
}

.form-success {
  text-align: center;
  padding: 32px;
}

.form-success.hidden {
  display: none;
}

.form-success span {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.form-success h3 {
  color: var(--color-accent);
  margin-bottom: 8px;
}

/* === Info Cards === */

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.info-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.info-card__icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.info-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-deep);
}

.info-card p {
  font-size: 0.95rem;
}

.info-card a {
  color: var(--color-primary);
  font-weight: 700;
}

/* === Social Link Cards === */

.social-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--color-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.social-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  background: var(--color-primary);
  color: var(--color-white);
}

.social-card svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* === Hours Card === */

.hours-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow-soft);
}

.hours-card h3 {
  margin-bottom: 16px;
  color: var(--color-deep);
}

.hours-card__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(7,59,76,0.08);
  font-size: 0.95rem;
}

.hours-card__row:last-child {
  border-bottom: none;
}

.hours-card__status {
  color: var(--color-accent);
  font-weight: 700;
}

/* === Lightbox === */

.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
}

.lightbox__img {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox__img.loaded {
  opacity: 1;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 16px;
  transition: opacity 0.2s ease;
  opacity: 0.7;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  opacity: 1;
}

.lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 2.5rem;
}

.lightbox__prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox__next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

/* === Philosophy/Safety Cards === */

.philosophy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.philosophy-card {
  border-radius: var(--radius-card);
  padding: 40px;
}

.philosophy-card--warm {
  background: var(--color-secondary);
}

.philosophy-card--green {
  background: var(--color-accent);
}

.philosophy-card h3 {
  color: var(--color-deep);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.philosophy-card p {
  color: var(--color-deep);
  opacity: 0.85;
}

/* === 404 Page === */

.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,209,102,0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(255,107,53,0.2) 0%, transparent 50%),
    var(--color-blush);
  padding: 40px 24px;
}

.page-404__emoji {
  font-size: 5rem;
  animation: bounce-gentle 2s ease-in-out infinite;
  margin-bottom: 24px;
}

.page-404 h1 {
  margin-bottom: 12px;
}

.page-404 p {
  font-size: 1.2rem;
  margin-bottom: 32px;
}

/* === CTA Section === */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #e85a2a 100%);
  padding: 60px 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
}
