/* =====================================================================
   Market Your Daycare — Shared Stylesheet
   Tailwind v4 utility classes are provided by the Tailwind Browser CDN
   (see <script> + <style type="text/tailwindcss"> in the <head> of every
   page). This file contains everything that is NOT a Tailwind utility:
   base styles, custom animations, and small reusable components.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

html {
  font-family: 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #F5F5F7;
  color: #111111;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------------
   Scrollbar helpers
--------------------------------------------------------------------- */
.no-scrollbar::-webkit-scrollbar,
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.no-scrollbar,
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ---------------------------------------------------------------------
   Scroll reveal animation
--------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 100ms;
}

.stagger-2 {
  transition-delay: 200ms;
}

.stagger-3 {
  transition-delay: 300ms;
}

.stagger-4 {
  transition-delay: 400ms;
}

/* ---------------------------------------------------------------------
   Keyframes
--------------------------------------------------------------------- */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes twinkle {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

@keyframes growBar {
  0% {
    height: 30%;
  }

  100% {
    height: 80%;
  }
}

@keyframes runLine {
  0% {
    stroke-dashoffset: 500;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

@keyframes blob {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------------
   Animation utility classes
--------------------------------------------------------------------- */
.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-pulse-slow {
  animation: pulse 3s infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-twinkle {
  animation: twinkle 2s ease-in-out infinite;
}

.animate-grow-bar {
  animation: growBar 2s ease-in-out infinite alternate;
}

.animate-spin-slow {
  animation: spin 8s linear infinite;
}

.animate-run-line {
  animation: runLine 2s linear infinite;
}

.animate-blob {
  animation: blob 7s infinite;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.animation-delay-2000 {
  animation-delay: 2s;
}

.animation-delay-4000 {
  animation-delay: 4s;
}

/* ---------------------------------------------------------------------
   Brand shadows (glow shadows, not plain Tailwind shadow-color)
--------------------------------------------------------------------- */
.shadow-brand-red {
  --tw-shadow-color: #e31b23;
  box-shadow: 0 4px 10px -2px var(--tw-shadow-color);
}

.shadow-brand-yellow {
  --tw-shadow-color: #ffe800;
  box-shadow: 0 4px 10px -2px var(--tw-shadow-color);
}

/* ---------------------------------------------------------------------
   Offset image card (About-style layered image)
--------------------------------------------------------------------- */
.offset-card {
  position: relative;
  display: inline-block;
}

.offset-card__image {
  position: relative;
  z-index: 3;
  object-fit: cover;
  height: 362px;
  max-width: 330px;
  border-radius: 6px;
}

.offset-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(227, 27, 35, 0.2) 0%, rgba(255, 0, 0, 0.637) 100%);
  transform: translate(-18px, 18px);
  z-index: 1;
  border-radius: 6px;
}

.offset-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(255, 0, 0, 0.616) 0%, rgba(255, 0, 0, 0.3) 100%);
  transform: translate(18px, -18px);
  z-index: 2;
  border-radius: 6px;
}

/* ---------------------------------------------------------------------
   Misc helper components
--------------------------------------------------------------------- */
.gradient-text {
  background: linear-gradient(135deg, #e42329 0%, #c40b11 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(228, 35, 41, 0.2);
}

.result-card {
  transition: transform 0.4s ease;
}

.result-card:hover {
  transform: translateY(-12px);
}

.result-card:hover .result-image {
  transform: scale(1.2) translateY(-10px);
}

.result-image-wrapper {
  overflow: hidden;
  border-radius: 20px;
}

.result-image {
  transition: transform 1s ease;
  transform: scale(1.1);
}

.pattern-dots {
  background-image: radial-gradient(circle, rgba(228, 35, 41, 0.1) 1px, transparent 1px);
  background-size: 30px 30px;
}

.icon-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.icon-float:hover .icon-pulse {
  animation: pulse 0.6s ease-in-out infinite;
}

.icon-float:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

button {
  cursor: pointer;
}


/* ---------------------------------------------------------------------
   Header active link state
--------------------------------------------------------------------- */
.nav-link.active,
.nav-link-mobile.active {
  color: #e31b23 !important;
}

/* ---------------------------------------------------------------------
   Mobile menu open state
--------------------------------------------------------------------- */
#mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ---------------------------------------------------------------------
   Header scrolled state
--------------------------------------------------------------------- */
#site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-color: #e5e7eb;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

#site-header:not(.scrolled) {
  background-color: transparent;
  border-color: transparent;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ---------------------------------------------------------------------
   FAQ accordion
--------------------------------------------------------------------- */
.faq-item {
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #ffffffdc;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
}

.faq-item.open {
  border-color: #fca5a5;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  font-weight: 600;
  color: #1f2937;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #dc2626;
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  padding: 0 1.25rem;
}

.faq-item.open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 0 1.25rem 1.25rem;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.7;
  white-space: pre-line;
}

/* ---------------------------------------------------------------------
   No Empty Seat Method — sticky step cards
--------------------------------------------------------------------- */
.method-step {
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.5s ease;
  opacity: 0;
  transform: translateY(16px);
}

.method-step.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------
   Form inputs
--------------------------------------------------------------------- */
.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  outline: none;
  transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  background: #fff;
  color: #111111;
}

.input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.input.input-error {
  border-color: #ef4444 !important;
}

.input.input-error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.phone-group {
  display: flex;
  gap: 0;
  width: 100%;
}

.phone-flag {
  flex: 0 0 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: #fff;
}

.phone-flag img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.phone-group select.phone-country {
  flex: 0 0 82px;
  border: 1px solid #e2e8f0;
  border-right: none;
  border-radius: 0;
  padding: 14px 6px;
  font-size: 14px;
  background: #fff;
  color: #111111;
  outline: none;
  transition: all 0.2s;
}

.phone-group input.phone-number {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0 12px 12px 0;
  padding: 14px 16px;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
  background: #fff;
  color: #111111;
  min-width: 0;
}

.phone-group select.phone-country:focus,
.phone-group input.phone-number:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
  z-index: 1;
  position: relative;
}

.phone-group.phone-error .phone-flag,
.phone-group.phone-error select.phone-country,
.phone-group.phone-error input.phone-number {
  border-color: #ef4444;
}

.logo-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #e31b23;
  border-radius: 8px;
  padding: 5px 10px;
  line-height: 1;
}

.logo-chip .top {
  font-size: 8px;
  font-weight: 700;
  color: #ffe800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1px;
}

.logo-chip .bottom {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}


/* ---------------------------------------------------------------------
   Toast notifications
--------------------------------------------------------------------- */
.toast {
  position: fixed;
  top: 1.5rem;
  right: 0.25rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.toast-success {
  background: #dcfce7;
  border: 1px solid #22c55e;
  color: #16a34a;
}

.toast-error {
  background: #fee2e2;
  border: 1px solid #ef4444;
  color: #ef4444;
}

/* ---------- Category filter pills ---------- */
.cat-btn {
  flex-shrink: 0;
  padding: 11px 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: #fff;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  transition: all .2s ease;
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: #e31b23;
  color: #e31b23;
}

.cat-btn.active {
  background: #111111;
  color: #fff;
  border-color: #111111;
}

.cat-btn.active:hover {
  color: #fff;
  border-color: #111111;
}

/* ---------- Tag pill on thumbnails ---------- */
.tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #1f2937;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.featured-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e31b23;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(227, 27, 35, 0.35);
}

/* ---------- Card hover ---------- */
.post-card {
  transition: transform .3s ease, box-shadow .3s ease;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

.read-link {
  transition: gap .2s ease;
}

.read-link:hover {
  gap: 10px;
}

.dot-pattern {
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.35) 1px, transparent 1px);
  background-size: 14px 14px;
}

/* ---------- Article prose ---------- */
.prose-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose-article h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-top: 1.75rem;
  margin-bottom: .75rem;
}

.prose-article p {
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.prose-article p:first-of-type {
  font-size: 1.0625rem;
}

.prose-article ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.prose-article ul li {
  position: relative;
  padding-left: 1.6rem;
  color: #4b5563;
  line-height: 1.7;
}

.prose-article ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e31b23;
}

.prose-article strong {
  color: #111827;
  font-weight: 700;
}

.kw {
  color: #e31b23;
  font-weight: 600;
}

.faq-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-section-body {
  display: none;
  padding-bottom: 16px;
}

.faq-section-body.open {
  display: block;
}

.section-chevron.open {
  transform: rotate(180deg);
}

/* Connector fill transition */
#connFill {
  transition: height 0.7s cubic-bezier(.4, 0, .2, 1);
}

/* Node transition */
.pillar-node {
  transition: background 0.45s cubic-bezier(.4, 0, .2, 1), border-color 0.45s cubic-bezier(.4, 0, .2, 1), color 0.45s cubic-bezier(.4, 0, .2, 1), box-shadow 0.45s cubic-bezier(.4, 0, .2, 1);
}

/* Card transition */
.pillar-card {
  transition: border-color 0.5s cubic-bezier(.4, 0, .2, 1), box-shadow 0.5s cubic-bezier(.4, 0, .2, 1);
}

.pillar-card .card-top-bg {
  transition: background 0.5s cubic-bezier(.4, 0, .2, 1);
}

.pillar-card .accent-band {
  transition: background 0.5s cubic-bezier(.4, 0, .2, 1);
}

/* Bar fill */
.bar-fill {
  transition: width 0.9s cubic-bezier(.4, 0, .2, 1);
}

/* Timer bar */
.timer-wrap {
  display: none;
  padding: 0 1.375rem 0.875rem;
}

.timer-wrap.visible {
  display: block;
}

/* Dot nav */
.step-dot {
  transition: background 0.4s cubic-bezier(.4, 0, .2, 1), transform 0.4s cubic-bezier(.4, 0, .2, 1);
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 25px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease-in-out;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFF;
}

@media (min-width: 768px) {
  .method-step {
    position: static;
  }
}


@media (min-width: 640px) {
  .toast {
    right: 50%;
    transform: translateX(50%);
  }

}

@media (max-width: 500px) {
  .offset-card__image {
    width: 326px;
    height: 326px;
  }

  .input {
    font-size: 14px;
    padding: 10px 14px;
  }

  .input::placeholder {
    font-size: 12px;
  }

  .phone-flag {
    flex: 0 0 36px;
  }

  .phone-group select.phone-country {
    flex: 0 0 74px;
    padding: 10px 4px;
    font-size: 12px;
  }

  .phone-group input.phone-number {
    padding: 10px 14px;
    font-size: 14px;
  }

  .post-card {
    transition: transform .3s ease, box-shadow .3s ease;
  }

  .post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
  }
}


/* Optional: smaller on mobile */
@media screen and (max-width: 600px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 15px;
    right: 15px;
    font-size: 24px;
  }
}