/* =============================================
   PLANETAPÉIA — Modern Site CSS
   Fonte original: Poppins | Cor: #c12837
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --red: #1a52a8;
  --dark: #333333;
  --dark2: #4d4d4d;
  --gray: #666666;
  --light: #eeeeee;
  --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--gray);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--dark2);
  font-weight: 600;
  line-height: 1.2;
}

a { color: var(--red); text-decoration: none; transition: color 0.3s; }
a:hover { color: #133d80; }

img { max-width: 100%; height: auto; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 84px;
}

.logo img { height: 68px; }
.logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  margin-left: 10px;
  vertical-align: middle;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links > li { position: relative; }

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--dark);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); background: rgba(26,82,168,0.06); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 220px;
  padding: 8px 0;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  padding: 9px 20px;
  font-size: 0.85rem;
  color: var(--dark);
  border-radius: 0;
}
.dropdown-menu a:hover { color: var(--red); background: var(--light); }

/* Hamburger mobile */
.hamburger { display: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover { background: #133d80; border-color: #133d80; color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--dark); }

/* Hero nav dots */
.hero-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}
.hero-dots .dot.active { background: var(--white); }

/* ---- PAGE HEADER (subpages) ---- */
.page-header {
  padding: 160px 24px 80px;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.page-header .ph-content {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.page-header h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
.page-header p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }

/* ---- SECTIONS ---- */
.section { padding: 100px 24px; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); color: rgba(255,255,255,0.85); }
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5 { color: var(--white); }

.container { max-width: 1200px; margin: 0 auto; }

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 1rem;
}
.section-title strong { font-weight: 700; }

.section-subtitle {
  font-size: 1.05rem;
  margin-bottom: 3rem;
  color: var(--gray);
}

.sep {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 20px 0 40px;
}
.sep.center { margin-left: auto; margin-right: auto; }

/* ---- GRID ---- */
.grid { display: grid; gap: 30px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---- CARDS ---- */
.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.card img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; }
.card-body h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--dark2); }
.card-body p { font-size: 0.9rem; color: var(--gray); }

/* ---- BRINQUEDOS CARDS ---- */
.brinquedo-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: transform 0.3s;
  text-align: center;
}
.brinquedo-card:hover { transform: translateY(-6px); }
.brinquedo-card img { width: 100%; height: 200px; object-fit: cover; }
.brinquedo-card .bc-body { padding: 20px; }
.brinquedo-card h3 { font-size: 1.1rem; color: var(--dark2); margin-bottom: 6px; }
.brinquedo-card p { font-size: 0.85rem; color: var(--gray); margin-bottom: 12px; }
.brinquedo-card .year-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 0.75rem;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

/* ---- TWO-COL CONTENT ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
.two-col.reverse > :last-child { order: 1; }

.two-col img { border-radius: 8px; width: 100%; }

/* ---- SPONSORS ---- */
.sponsors-strip {
  background: var(--light);
  padding: 60px 24px;
  text-align: center;
}
.sponsors-strip h3 {
  font-size: 1.4rem;
  font-weight: 300;
  margin-bottom: 40px;
  color: var(--dark2);
}
.sponsors-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.sponsors-grid img {
  height: 50px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}
.sponsors-grid img:hover { filter: none; opacity: 1; }

/* ---- SOCIAL ---- */
.social-section {
  background: var(--light);
  padding: 80px 24px;
  text-align: center;
}
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}
.social-item { padding: 30px 20px; border-radius: 8px; transition: background 0.3s; cursor: pointer; }
.social-item:hover { background: var(--white); }
.social-item i { font-size: 3rem; color: var(--red); display: block; margin-bottom: 12px; }
.social-item h3 { font-size: 1rem; color: var(--dark2); font-weight: 600; }

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,82,168,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-size: 1rem; font-weight: 600; text-align: center; padding: 16px; }

/* ---- VIDEOS ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.video-item { border-radius: 8px; overflow: hidden; background: var(--dark); }
.video-item iframe {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: none;
}
.video-item .video-title { padding: 12px 16px; color: var(--white); font-size: 0.9rem; }

/* ---- TEAM ---- */
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.team-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 4px solid var(--light);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-card p { font-size: 0.85rem; color: var(--red); font-weight: 500; }

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: var(--white);
  border-radius: 10px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.testimonial blockquote { font-style: italic; margin-bottom: 20px; color: var(--gray); line-height: 1.8; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author strong { display: block; color: var(--dark2); font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--red); }

/* ---- HISTORY ---- */
.history-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--gray);
  max-width: 780px;
}

/* ---- CONTACT FORM ---- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; color: var(--dark2); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); outline: none; }
.form-group textarea { height: 140px; resize: vertical; }

/* ---- CTA BANNER ---- */
.cta-banner {
  background: var(--red);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); font-size: 2rem; margin-bottom: 1rem; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* ---- BRINQUEDO DETAIL ---- */
.brinquedo-hero {
  background: var(--light);
  padding: 130px 24px 60px;
  text-align: center;
}
.brinquedo-hero h1 { font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 300; }
.brinquedo-hero h1 strong { font-weight: 700; color: var(--red); }
.brinquedo-hero p { font-size: 1.2rem; color: var(--gray); margin-top: 8px; }

.brinquedo-slides {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}
.brinquedo-slides img { width: 100%; border-radius: 8px; height: 300px; object-fit: cover; }

.brinquedo-content {
  padding: 80px 24px;
}
.brinquedo-info {
  border-left: 4px solid var(--red);
  padding-left: 24px;
  margin-bottom: 30px;
}
.brinquedo-info .year { font-size: 1.4rem; font-weight: 700; color: var(--red); }
.brinquedo-info h2 { font-size: 2rem; margin-bottom: 16px; }
.brinquedo-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.brinquedo-photos img { width: 100%; border-radius: 6px; height: 200px; object-fit: cover; }

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 24px;
  text-align: center;
}
footer .footer-logo { margin-bottom: 16px; }
footer .footer-logo img { height: 40px; filter: brightness(0) invert(1); opacity: 0.8; }
footer p { font-size: 0.85rem; margin-bottom: 8px; }
footer .footer-social { display: flex; justify-content: center; gap: 16px; margin: 16px 0; }
footer .footer-social a { color: rgba(255,255,255,0.6); font-size: 1.2rem; transition: color 0.2s; }
footer .footer-social a:hover { color: var(--red); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .two-col.reverse > :first-child { order: 0; }
  .two-col.reverse > :last-child { order: 0; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .brinquedo-slides { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  .dropdown-menu { position: static; box-shadow: none; border: none; background: var(--light); border-radius: 4px; }
  .section { padding: 60px 24px; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

/* AOS-like fade-in */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-anim].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-anim="fade-left"] { transform: translateX(-30px); }
[data-anim="fade-left"].visible { transform: translateX(0); }
[data-anim="fade-right"] { transform: translateX(30px); }
[data-anim="fade-right"].visible { transform: translateX(0); }
