/* ========================================================
   MUNDO DOS PEQUENOS — Institutional Site Styles
   A warm, playful, and professional design for a
   children's educational products brand.
   ======================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand Colors — warm, playful palette */
  --coral: #FF6B6B;
  --coral-deep: #E85D5D;
  --peach: #FFEAA7;
  --mint: #55EFC4;
  --sky: #74B9FF;
  --sun: #FDCB6E;
  --sun-deep: #F0B429;
  --rose: #FD79A8;
  --lavender: #DFE6E9;

  /* Neutrals */
  --white: #FFFFFF;
  --off-white: #FFF9F0;
  --cream: #FFF5E6;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #8B95A2;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;

  /* Semantic */
  --text-primary: #2D3436;
  --text-secondary: #636E72;
  --text-muted: #95A5A6;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #FF6B6B 0%, #FDCB6E 50%, #55EFC4 100%);
  --gradient-warm: linear-gradient(135deg, #FF6B6B 0%, #FD79A8 100%);
  --gradient-sun: linear-gradient(135deg, #FDCB6E 0%, #F0B429 100%);
  --gradient-sky: linear-gradient(135deg, #74B9FF 0%, #55EFC4 100%);
  --gradient-contact: linear-gradient(135deg, #FF6B6B 0%, #FD79A8 50%, #FDCB6E 100%);

  /* Spacing */
  --section-py: 100px;
  --container-max: 1140px;
  --container-px: 20px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.10);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.12);
  --shadow-glow: 0 4px 30px rgba(255, 107, 107, 0.25);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-base: 0.3s var(--ease-out);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Quicksand', 'Nunito', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  font-size: 28px;
}

.logo-text {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-800);
}

.logo-text strong {
  font-weight: 900;
  color: var(--coral);
}

.nav {
  display: flex;
  gap: 8px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 80px;
  background: var(--off-white);
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--coral);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--sun);
  bottom: -80px;
  left: -80px;
  animation-delay: -5s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--mint);
  top: 40%;
  left: 10%;
  animation-delay: -10s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: var(--sky);
  top: 20%;
  right: 15%;
  animation-delay: -15s;
}

.shape-5 {
  width: 100px;
  height: 100px;
  background: var(--rose);
  bottom: 20%;
  right: 25%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(20px, 10px) scale(1.02); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--gradient-sun);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  animation: fadeUp 0.8s var(--ease-out) 0.2s both;
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--gray-900);
  animation: fadeUp 0.8s var(--ease-out) 0.4s both;
}

.highlight {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
  animation: fadeUp 0.8s var(--ease-out) 0.6s both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s var(--ease-out) 0.8s both;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.btn-primary {
  background: var(--gradient-warm);
  color: var(--white);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(255, 107, 107, 0.35);
}

.btn-outline {
  background: var(--white);
  color: var(--text-primary);
  border-color: var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 18px;
  height: 18px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  animation: fadeUp 0.8s var(--ease-out) 1s both;
}

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

.stat-number {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--coral);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--section-py) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.section-header.revealed {
  opacity: 1;
  transform: translateY(0);
}

.section-tag {
  display: inline-block;
  background: rgba(255, 107, 107, 0.1);
  color: var(--coral);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag-light {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.section-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--gray-900);
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 12px auto 0;
}

/* ---------- About ---------- */
.section-about {
  background: var(--white);
}

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

.about-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.5s var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
}

.about-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

.about-card-main {
  grid-column: 1 / -1;
  background: var(--cream);
  border: 1px solid rgba(253, 203, 110, 0.3);
}

.about-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.about-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.about-card p + p {
  margin-top: 12px;
}

/* ---------- Products ---------- */
.section-products {
  background: var(--off-white);
}

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

.product-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.5s var(--ease-out);
  border: 1px solid var(--gray-100);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  transition: all var(--transition-base);
}

.product-card:hover .product-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
}

.product-icon {
  font-size: 32px;
}

.product-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.product-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-sun);
  color: var(--gray-900);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* ---------- Values ---------- */
.section-values {
  background: var(--white);
}

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

.value-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  transition: all 0.5s var(--ease-out);
  opacity: 0;
  transform: translateY(30px);
}

.value-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

.value-number {
  font-family: 'Nunito', sans-serif;
  font-size: 42px;
  font-weight: 900;
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--gray-900);
}

.value-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Contact ---------- */
.section-contact {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.contact-card {
  position: relative;
  background: var(--gradient-contact);
  border-radius: var(--radius-xl);
  padding: 64px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s var(--ease-out);
}

.contact-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

.contact-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.contact-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.highlight-light {
  color: var(--peach);
}

.contact-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
}

/* Contact Links */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  text-decoration: none;
  color: var(--white);
  transition: all var(--transition-base);
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(8px);
}

.contact-link-icon svg {
  width: 28px;
  height: 28px;
}

.contact-link-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.8;
  font-weight: 600;
}

.contact-link-handle {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
}

.contact-link-arrow {
  margin-left: auto;
  font-size: 20px;
  opacity: 0.6;
  transition: all var(--transition-base);
}

.contact-link:hover .contact-link-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.contact-extra {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.contact-extra strong {
  color: var(--white);
}

/* Contact Decorations */
.contact-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.deco-circle-1 {
  width: 300px;
  height: 300px;
  top: -80px;
  right: -60px;
}

.deco-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -40px;
  right: 40px;
}

.deco-circle-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 30%;
}

.deco-emoji {
  position: absolute;
  font-size: 40px;
  animation: floatSlow 6s ease-in-out infinite;
}

.deco-emoji-1 { top: 15%; right: 20%; animation-delay: 0s; }
.deco-emoji-2 { top: 55%; right: 10%; animation-delay: -1.5s; }
.deco-emoji-3 { bottom: 15%; right: 35%; animation-delay: -3s; }
.deco-emoji-4 { top: 30%; right: 45%; animation-delay: -4.5s; }

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 56px 0 32px;
  text-align: center;
}

.footer-inner {
  max-width: 640px;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand .logo-text {
  color: var(--gray-300);
}

.footer-brand .logo-text strong {
  color: var(--coral);
}

.footer-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--coral);
}

.footer-divider {
  width: 60px;
  height: 2px;
  background: var(--gray-700);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.footer-cnpj {
  font-size: 12px;
  color: var(--gray-500);
  opacity: 0.6;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  :root {
    --section-py: 72px;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-card {
    padding: 48px 36px;
  }

  .contact-decoration {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    z-index: 999;
  }

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

  .nav-link {
    font-size: 18px;
    padding: 12px 32px;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 36px 24px;
    border-radius: var(--radius-lg);
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 26px;
  }

  .about-card {
    padding: 28px 20px;
  }

  .product-card {
    padding: 28px 20px;
  }

  .value-card {
    padding: 24px 20px;
  }
}
