/* sections.css */

/* Hero Section */
.hero-section {
  background-color: var(--color-beige-light);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  width: 100%;
  max-width: 100%;
  align-items: stretch;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: clamp(120px, 13vw, 200px);
  padding-right: 4vw;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.hero-headline {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.hero-headline .cursive-highlight {
  font-family: var(--font-cursive);
  color: var(--color-gold);
  font-size: 4.8rem;
  font-weight: 400;
  display: inline-block;
  line-height: 0.8;
  vertical-align: middle;
}

.hero-support {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  max-width: 450px;
  margin-bottom: 2rem;
  font-weight: 300;
}

.hero-right {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
}

.hero-img-flush {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  display: block;
}

/* Values Block */
.values-section {
  background-color: transparent;
  padding: 4rem 0;
  position: relative;
}

.values-container {
  background-color: var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 3rem 2rem;
  box-shadow: var(--box-shadow-soft);
  margin-top: -2rem; /* Pull slightly over Hero section */
  position: relative;
  z-index: 10;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
}

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

.value-item h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 0.75rem;
}

.value-item p {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  font-weight: 400;
}

.value-heart {
  width: 12px;
  height: 12px;
  fill: var(--color-gold);
  margin-top: auto; /* Push heart to bottom */
}

/* Sobre Nós Section */
.about-section {
  background-color: transparent;
  padding: 8rem 0;
  position: relative;
  overflow: hidden;
}

/* The soft olive wavy background shape on the left */
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-color: var(--color-about-bg);
  border-radius: 0 80% 80% 0 / 0 30% 30% 0;
  z-index: 0;
  pointer-events: none;
}

.about-section .container {
  position: relative;
  z-index: 2;
}

.about-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 2rem;
  align-items: flex-start;
}

.about-left .organic-image-container {
  max-width: 600px;
  width: 100%;
}

.about-meta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.about-headline {
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.about-text {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Bottom Cards Highlights */
.cards-section {
  background-color: transparent;
  position: relative;
  margin-top: 4rem;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  overflow: visible;
}

.card-item {
  position: relative;
  padding: 6rem 4rem 4rem 4rem; /* Top padding is large to accommodate wave */
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 350px;
}

.card-wave {
  position: absolute;
  top: -49px; /* Bridge the gap to the section above */
  left: 0;
  width: 100%;
  height: 50px;
  pointer-events: none;
}

.card-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-item-1 {
  background-color: var(--color-red);
}

.card-item-2 {
  background-color: var(--color-navy);
}

.card-item-3 {
  background-color: var(--color-gold);
}

.card-icon {
  margin-bottom: 1.5rem;
}

.card-icon svg {
  width: 48px;
  height: 48px;
  fill: none;
  stroke: var(--color-white);
  stroke-width: 1.5;
}

.card-item h3 {
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.card-item p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 280px;
}

.card-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-top: auto; /* Push to bottom */
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.card-link:hover {
  gap: 0.8rem;
  opacity: 0.9;
}

/* Responsiveness adjustments for sections */

@media (max-width: 1199px) {
  .hero-headline {
    font-size: 3rem;
  }
  .hero-headline .cursive-highlight {
    font-size: 4rem;
  }
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding: 2.2rem 0 0 0;
  }
  .hero-container {
    grid-template-columns: 1fr;
  }
  .hero-left {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    padding-top: 5rem; /* Pushed down to leave space for the bird on mobile */
    padding-bottom: 2rem;
    text-align: center;
    align-items: center;
  }
  .hero-headline {
    font-size: 2.8rem;
    text-align: center;
  }
  .hero-headline .cursive-highlight {
    font-size: 3.8rem;
  }
  .hero-support {
    text-align: center;
    margin-right: auto;
    margin-left: auto;
  }
  .hero-left .btn {
    align-self: center;
  }
  .hero-right {
    margin-top: 2rem;
    justify-content: center;
    padding: 0 1.5rem;
  }
  .hero-img-flush {
    max-height: 50vh;
    object-fit: contain;
    border-radius: 20px;
  }
  
  .about-section {
    padding: 5rem 0;
  }
  .about-section::before {
    width: 100%;
    height: 45%;
    border-radius: 0 0 100% 100% / 0 0 15% 15%;
  }
  .about-right {
    padding-left: 0;
    text-align: center;
    align-items: center;
    margin-top: 2rem;
  }
  .about-headline {
    font-size: 2.4rem;
  }
  .about-text {
    max-width: 600px;
  }
  
  .cards-container {
    grid-template-columns: 1fr;
  }
  .card-item {
    min-height: auto;
    padding: 4rem 2rem;
  }
  .card-wave {
    display: none; /* Hide the connected waves on stack layout */
  }
  .card-item-1 {
    border-radius: 40px 40px 0 0;
  }
  .card-item-3 {
    border-radius: 0 0 40px 40px;
  }
}

/* Exclusivo para Tablet (768px a 1024px): Fundo unificado com a imagem sobre.png para eliminar diferença de cor */
@media (min-width: 768px) and (max-width: 1024px) {
  .about-section {
    background-color: var(--color-about-bg) !important;
  }
  .about-section::before {
    display: none !important;
  }
}

@media (max-width: 575px) {
  .hero-headline {
    font-size: 2.2rem;
  }
  .hero-headline .cursive-highlight {
    font-size: 3rem;
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-headline {
    font-size: 2rem;
  }
}

/* Activities Section */
.activities-section {
  padding: 6rem 0;
  background-color: transparent;
  position: relative;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.activity-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  border: 1px solid rgba(201, 160, 90, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.activity-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
  border-color: rgba(201, 160, 90, 0.25);
}

.activity-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.activity-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.activity-card:hover .activity-image-wrapper img {
  transform: scale(1.05);
}

.activity-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.activity-content h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-rose);
  margin-bottom: 0.75rem;
}

.activity-card:nth-child(2n) .activity-content h3 {
  color: var(--color-olive);
}
.activity-card:nth-child(3n) .activity-content h3 {
  color: var(--color-text-primary);
}

.activity-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.activity-dotted-line {
  border-top: 2px dashed rgba(201, 160, 90, 0.25);
  margin: auto 0 1.25rem 0; /* push to bottom of content area */
}

.activity-meta-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.meta-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.meta-col strong {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-olive);
}

.meta-col span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

@media (max-width: 991px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Floating Doodles / Decorators */
.doodle-decorator {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
}

/* Default positions (Desktop) */
.doodle-sol {
  width: 80px;
  top: 5%;
  right: 5%;
  animation: float-sol 8s ease-in-out infinite;
}

.doodle-passarinho {
  position: absolute;
  left: 0;
  top: 8%;
  width: clamp(140px, 15vw, 230px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  animation: float-passarinho 9s ease-in-out infinite;
}

.doodle-aviao {
  width: 90px;
  top: 5rem;
  left: 10%;
  animation: float-aviao 13s ease-in-out infinite;
}

.doodle-pipa {
  width: 70px;
  top: 10%;
  right: 4%;
  animation: float-pipa 9s ease-in-out infinite;
}

.doodle-foguete {
  width: 70px;
  bottom: 8%;
  right: 4%;
  animation: float-foguete 7s ease-in-out infinite;
}

/* Tablet Overrides */
@media (max-width: 1024px) {
  .doodle-decorator {
    display: block;
  }

  .doodle-sol {
    width: 55px;
    top: 3%;
    right: 3%;
  }

  .doodle-pipa {
    width: 50px;
    top: 5%;
    right: 3%;
  }
}

/* Mobile Overrides */
@media (max-width: 767px) {
  .hero-left {
    padding-top: 2.2rem;
  }

  .doodle-sol {
    width: 80px;
    top: -15px;
    right: -15px;
  }

  .doodle-pipa {
    width: 70px;
    top: 15px;
    right: -15px;
  }
}

@media (max-width: 991px) {
  .doodle-passarinho {
    display: block;
    width: 90px;
    top: 10px;
    left: 0;
    animation: float-passarinho-mobile 8s ease-in-out infinite;
  }
}

@keyframes float-passarinho-mobile {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(2px, -4px) rotate(1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Animations */
@keyframes float-sol {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

@keyframes float-passarinho {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(4px, -6px) rotate(1.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-aviao {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(25px, -12px) rotate(4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-pipa {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -22px) rotate(-10deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-foguete {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10px, -14px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

/* Testimonials Section */
.testimonials-section {
  padding: 6rem 0;
  background-color: var(--color-white);
  position: relative;
}

.testimonials-wave-top {
  position: absolute;
  top: -34px;
  left: 0;
  width: 100%;
  height: 35px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-wave-top svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: var(--color-white);
}

.testimonials-wave-bottom {
  position: absolute;
  bottom: -34px;
  left: 0;
  width: 100%;
  height: 35px;
  z-index: 2;
  pointer-events: none;
}

.testimonials-wave-bottom svg {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleY(-1);
  fill: var(--color-white);
}

.testimonials-header {
  margin-bottom: 4.5rem;
}

.testimonials-subtitle {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.testimonials-title {
  font-size: 2.8rem;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.testimonials-support {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Testimonial Card Speech Bubble */
.testimonial-card {
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: 0 15px 40px rgba(35, 59, 90, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(35, 59, 90, 0.15);
}

/* Card Speech Bubble dialog tail */
.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: -24px;
  left: 45px;
  border-width: 25px 25px 0 0;
  border-style: solid;
  display: block;
  width: 0;
}

/* Specific Card Colors */
.testimonial-card-gold {
  background-color: #f1a83b;
  color: var(--color-white);
}
.testimonial-card-gold::after {
  border-color: #f1a83b transparent transparent transparent;
}

.testimonial-card-coral {
  background-color: #e35d47;
  color: var(--color-white);
}
.testimonial-card-coral::after {
  border-color: #e35d47 transparent transparent transparent;
}

.testimonial-card-pink {
  background-color: #e56586;
  color: var(--color-white);
}
.testimonial-card-pink::after {
  border-color: #e56586 transparent transparent transparent;
}

/* Star Pill Badge overlay */
.testimonial-stars {
  position: absolute;
  top: -15px;
  right: 25px;
  background-color: #FDF7EA;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 3px;
  z-index: 5;
}

.testimonial-stars i {
  color: #F2AF29;
  font-size: 0.75rem;
}

/* Card Header Author */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-info h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.15rem 0;
}

.testimonial-info span {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* Testimonial Quote Mark icon */
.testimonial-quote-mark {
  position: absolute;
  bottom: 5px;
  right: 20px;
  font-size: 5rem;
  font-family: var(--font-serif);
  line-height: 1;
  color: rgba(0, 0, 0, 0.1);
  pointer-events: none;
  user-select: none;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-white);
  margin: 0;
  flex-grow: 1;
  font-style: italic;
  position: relative;
  z-index: 2;
}

/* Responsive adjustment */
@media (max-width: 991px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    padding: 0 1rem;
  }
}


/* Gallery Section */
.gallery-section {
  padding: 6rem 0 0 0;
  background-color: transparent;
  position: relative;
  overflow: hidden;
}

.gallery-header {
  position: relative;
  margin-bottom: 4rem;
  padding: 0 5rem;
}

.gallery-header-doodle {
  position: absolute;
  width: 55px;
  height: auto;
  pointer-events: none;
  animation: float-sol 8s ease-in-out infinite;
}

.gallery-header-doodle.doodle-left {
  left: 15%;
  top: -10px;
}

.gallery-header-doodle.doodle-right {
  right: 15%;
  top: 5px;
  animation-name: float-aviao;
  animation-duration: 9s;
}

.gallery-subtitle {
  color: var(--color-gold);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-title {
  font-size: 2.8rem;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.gallery-support {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text-secondary);
}

/* Contiguous Masonry Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 0;
  width: 100%;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Hover Overlay */
.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2rem 3rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  box-sizing: border-box;
}

.gallery-item:hover final-overlay,
.gallery-item:hover .gallery-overlay {
  opacity: 1;
  pointer-events: auto;
}

.gallery-overlay-content {
  color: var(--color-white);
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item:hover .gallery-overlay-content {
  transform: translateY(0);
}

.gallery-overlay-content h3 {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin: 0 0 0.35rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.gallery-overlay-content p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Specific Overlay Color Classes */
.bg-coral {
  background: rgba(227, 93, 71, 0.88);
}
.bg-navy {
  background: rgba(35, 59, 90, 0.88);
}
.bg-gold {
  background: rgba(201, 160, 90, 0.88);
}
.bg-pink {
  background: rgba(229, 101, 134, 0.88);
}

/* Grid Spanning */
.item-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.item-1x2 {
  grid-row: span 2;
}

/* Responsive adjust */
@media (max-width: 991px) {
  .gallery-header {
    padding: 0 2rem;
  }
  
  .gallery-header-doodle.doodle-left {
    left: 5%;
  }

  .gallery-header-doodle.doodle-right {
    right: 5%;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
  
  .item-2x2 {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (max-width: 767px) {
  .gallery-header-doodle {
    width: 55px;
  }
  
  .gallery-header-doodle.doodle-left {
    left: 2%;
    top: -20px;
  }

  .gallery-header-doodle.doodle-right {
    right: 2%;
    top: 5px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  
  .item-2x2, .item-1x2 {
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background-color: transparent;
  position: relative;
  z-index: 10;
}

.stats-capsule {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  background-color: #fdfbf7;
  border-radius: 80px;
  padding: 2.2rem 3rem;
  box-shadow: 0 15px 45px rgba(35, 59, 90, 0.04);
}

.stats-inner-border {
  border: 2.5px dashed rgba(35, 59, 90, 0.12);
  border-radius: 60px;
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 5;
}

.stat-number {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-number.color-pink {
  color: #e56586;
}

.stat-number.color-green {
  color: #8bc34a;
}

.stat-number.color-gold {
  color: #f1a83b;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Animals positioning */
.stats-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 10;
}

.doodle-turtle {
  left: 20px;
  bottom: -15px;
  width: 95px;
  height: auto;
  animation: sway-turtle 6s ease-in-out infinite;
}

.doodle-chameleon {
  right: 25px;
  top: -50px;
  width: 145px;
  height: auto;
  animation: sway-chameleon 7s ease-in-out infinite;
}

/* Soft micro-animations for animals */
@keyframes sway-turtle {
  0% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-2px); }
  100% { transform: rotate(0deg) translateY(0); }
}

@keyframes sway-chameleon {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(2deg) scale(1.02); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Responsive adjust */
@media (max-width: 991px) {
  .stats-capsule {
    max-width: 700px;
    padding: 1.8rem 2rem;
  }
  
  .stats-inner-border {
    padding: 1.5rem 1.5rem;
  }
  
  .doodle-chameleon {
    width: 120px;
    top: -42px;
    right: 15px;
  }
  
  .doodle-turtle {
    width: 80px;
    bottom: -12px;
    left: 15px;
  }
}

@media (max-width: 767px) {
  .stats-capsule {
    max-width: 100%;
    border-radius: 40px;
    padding: 1.5rem 1rem;
  }
  
  .stats-inner-border {
    flex-direction: column;
    gap: 2rem;
    border-radius: 30px;
    padding: 2rem 1rem;
  }
  
  .stats-doodle {
    display: block;
  }

  .doodle-turtle {
    width: 85px;
    bottom: -15px;
    left: 10px;
  }

  .doodle-chameleon {
    width: 120px;
    top: -45px;
    right: 10px;
  }
  
  .stat-number {
    font-size: 3rem;
  }
}

/* Blog Section Pencil Doodle */
.blog-header-doodle {
  position: absolute;
  left: -80px;
  top: -30px;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 10;
  animation: float-pencil 6s ease-in-out infinite;
}

@keyframes float-pencil {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-4px, -10px) rotate(-4deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@keyframes float-pencil-mobile {
  0% { transform: rotate(180deg) translate(0, 0); }
  50% { transform: rotate(176deg) translate(-4px, -10px); }
  100% { transform: rotate(180deg) translate(0, 0); }
}

@media (max-width: 991px) {
  .blog-header-doodle {
    display: block;
    width: 95px;
    left: 140px;
    top: -50px;
    animation: float-pencil-mobile 6s ease-in-out infinite;
  }
}

/* Testimonials Carousel Styles */
.testimonials-carousel-container {
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 10px 0 35px 0;
}

.testimonials-grid.carousel {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  gap: 2rem;
  padding: 30px 15px 45px 15px; /* Added padding to accommodate stars and speech bubble tails */
  margin-top: -20px;
  margin-bottom: -20px;
  grid-template-columns: none; /* Override grid layout */
}

.testimonials-grid.carousel::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}

.testimonials-grid.carousel .testimonial-card {
  flex: 0 0 calc((100% - 4rem) / 3); /* 3 cards visible on desktop */
  scroll-snap-align: start;
  box-sizing: border-box;
  height: auto;
}

@media (max-width: 991px) {
  .testimonials-grid.carousel .testimonial-card {
    flex: 0 0 calc((100% - 2rem) / 2); /* 2 cards visible */
  }
}

@media (max-width: 768px) {
  .testimonials-grid.carousel .testimonial-card {
    flex: 0 0 100%; /* 1 card visible */
  }
}

.testimonials-dots-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 2rem;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.testimonial-dot.active {
  background-color: var(--color-navy);
  transform: scale(1.2);
}
