/* ================================================================ */
/* 1. DESIGN SYSTEM (Variáveis)                                     */
/* ================================================================ */
:root {
  /* Cores principais */
  --yellow: #fcce37;
  --cream: #fef3cd;
  --turquoise: #6bb6bc;
  --blue: #239bd7;
  --pink: #dd5398;
  --white: #ffffff;
  --dark: #2d2d2d;

  /* Utilitários */
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ================================================================ */
/* 2. RESET & BASE                                                  */
/* ================================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;  /* Pode variar de 300 a 700 */
  letter-spacing: 0.5px;
  }

h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

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

/* ================================================================ */
/* 3. BOTÕES                                                       */
/* ================================================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  background: var(--yellow);
  color: var(--dark);
}

.btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(252, 206, 55, 0.35);
}

.btn-secondary {
  background: var(--turquoise);
  color: var(--white);
}

.btn-secondary:hover {
  box-shadow: 0 12px 28px rgba(107, 182, 188, 0.4);
}

.btn-pink {
  background: var(--pink);
  color: var(--white);
}

.btn-pink:hover {
  box-shadow: 0 12px 28px rgba(221, 83, 152, 0.35);
}

/* ================================================================ */
/* 4. HEADER / NAVEGAÇÃO                                           */
/* ================================================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #fcce37eb;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding: 12px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 64px;
  width: auto;
  animation: floatLogo 4s ease-in-out infinite;
}

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

.logo span {
  font-family: 'Fredoka', cursive;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue);
}

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

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 3px;
  background: var(--pink);
  border-radius: 10px;
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
}

/* ================================================================ */
/* 5. HERO                                                         */
/* ================================================================ */
.hero {
  padding: 120px 0 60px;
  background: linear-gradient(145deg, #fff8e7 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content h1 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  letter-spacing: -1px;
  line-height: 1.0;
  color: var(--blue);
  margin-bottom: 16px;
  text-transform: none;
}

.hero-content h1 span {
  color: var(--pink);
}

.hero-content .tagline {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--turquoise);
  margin-bottom: 24px;
}

.hero-content p {
  font-size: 1.1rem;
  max-width: 480px;
  margin-bottom: 32px;
  color: #444;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  width: 600px;
  animation: floatHero 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.08));
}

@keyframes floatHero {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-16px) rotate(2deg);
  }
}

/* Elementos decorativos flutuantes */
.floating-decor {
  position: absolute;
  font-size: 2.8rem;
  opacity: 0.2;
  pointer-events: none;
  animation: floatDecor 12s linear infinite;
}

.floating-decor:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-duration: 14s;
}
.floating-decor:nth-child(2) {
  top: 70%;
  left: 90%;
  animation-duration: 18s;
}
.floating-decor:nth-child(3) {
  top: 30%;
  right: 8%;
  animation-duration: 16s;
}
.floating-decor:nth-child(4) {
  bottom: 15%;
  left: 20%;
  animation-duration: 20s;
}

@keyframes floatDecor {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(12deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* ================================================================ */
/* 6. SEÇÕES GERAIS                                                */
/* ================================================================ */
section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--blue);
}

.section-title i {
  margin-right: 12px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto 48px;
  color: #555;
}

.section-alt {
  background: var(--cream);
}

/* ================================================================ */
/* 7. SOBRE (CARDS)                                                */
/* ================================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-8px);
  border-color: var(--yellow);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.card i {
  font-size: 3.2rem;
  color: var(--pink);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 8px;
}

/* ================================================================ */
/* 8. MÚSICAS (PLAYER)                                             */
/* ================================================================ */
.music-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.music-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: 60px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.music-item:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.music-cover {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--blue);
  flex-shrink: 0;
}

.music-info {
  flex: 1;
}

.music-info h4 {
  font-size: 1.1rem;
  color: var(--dark);
}

.music-info small {
  color: #777;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.music-controls button {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blue);
  cursor: pointer;
  transition: var(--transition);
}

.music-controls button:hover {
  color: var(--pink);
  transform: scale(1.1);
}

.progress-bar {
  width: 100px;
  height: 6px;
  background: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--pink);
  border-radius: 10px;
  transition: width 0.1s linear;
}

.music-platforms {
  text-align: center;
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.music-platforms .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ================================================================ */
/* 9. HISTÓRIAS                                                    */
/* ================================================================ */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  padding: 10px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  border-color: var(--yellow);
}

.story-cover {
  height: 220px;
  background: var(--turquoise);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.story-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-cover img {
  transform: scale(1.05);
}

.story-cover .story-emoji {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--pink);
}

.story-body {
  padding: 24px 28px 32px;
}

.story-body h3 {
  font-size: 1.4rem;
  color: var(--blue);
  margin-bottom: 8px;
  font-family: 'Fredoka', cursive;
  letter-spacing: -1px;
}

.story-body p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}

.story-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 2px solid var(--cream);
}

.story-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--turquoise);
}

.story-meta span i {
  color: var(--pink);
  font-size: 0.9rem;
}

.story-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--pink);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(221, 83, 152, 0.3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.story-badge.blue {
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(35, 155, 215, 0.3);
}

.story-badge.yellow {
  background: var(--yellow);
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(252, 206, 55, 0.3);
}

.story-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 24px;
  background: var(--yellow);
  color: var(--dark);
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.story-btn:hover {
  background: var(--pink);
  color: var(--white);
  transform: translateX(4px);
}

.story-btn i {
  margin-left: 6px;
  transition: transform 0.3s ease;
}

.story-btn:hover i {
  transform: translateX(4px);
}

/* ================================================================ */
/* 10. MODAL DE HISTÓRIA                                           */
/* ================================================================ */
.story-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.story-modal.active {
  display: flex;
}

.story-modal-content {
  background: var(--white);
  border-radius: 28px;
  max-width: 700px;
  max-height: 90vh;
  width: 100%;
  padding: 40px;
  position: relative;
  overflow-y: auto;
  animation: zoomIn 0.3s ease;
}

.story-modal-close {
  position: sticky;
  top: 0;
  float: right;
  width: 44px;
  height: 44px;
  background: var(--pink);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.story-modal-close:hover {
  transform: scale(1.1);
  background: var(--blue);
}

.story-modal-body {
  margin-top: 20px;
}

.story-modal-body h2 {
  font-family: 'Fredoka', cursive;
  color: var(--blue);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.story-modal-body img {
  width: 100%;
  border-radius: 16px;
  margin: 16px 0;
  box-shadow: var(--shadow);
}

.story-modal-body .story-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #444;
}

.story-modal-body .story-text p {
  margin-bottom: 16px;
}

/* ================================================================ */
/* 11. LIVRO                                                       */
/* ================================================================ */
.book-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.book-mockup {
  width: 340px;
  height: 420px;
  background: transparent;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.book-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.5s ease;
}

.book-mockup:hover img {
  transform: scale(1.03) rotate(-2deg);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.2),
    0 15px 40px rgba(0, 0, 0, 0.1);
}

.book-info {
  max-width: 416px;
  padding: 16px;
}

.book-info h2 {
  font-size: 2.1rem;
  color: var(--blue);
  margin-bottom: 16px;
  font-family: 'Fredoka', cursive;
  letter-spacing: -1px;
  line-height: 1;
}

.book-info p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 24px;
}

.book-details {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0 10px;
}

.book-details span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  background: var(--cream);
  padding: 8px 16px;
  border-radius: 30px;
}

.book-details span i {
  color: var(--pink);
  font-size: 1.1rem;
}

.book-info .btn {
  background: var(--pink);
  color: var(--white);
  padding: 14px 40px;
  font-size: 1.05rem;
}

.book-info .btn:hover {
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(35, 155, 215, 0.4);
  transform: translateY(-3px);
}

.book-info .btn i {
  margin-right: 8px;
}

/* ================================================================ */
/* 12. GALERIA                                                     */
/* ================================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 10px;
}

.gallery-item {
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--cream);
  cursor: pointer;
  transition: all 0.4s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  display: block;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  z-index: 2;
}

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

.gallery-item::after {
  content: '\f002';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.gallery-item:hover::after {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ================================================================ */
/* 13. LIGHTBOX                                                    */
/* ================================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 44px;
  height: 44px;
  background: var(--pink);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lightbox-close:hover {
  transform: scale(1.1);
  background: var(--blue);
}

.lightbox-caption {
  text-align: center;
  margin-top: 12px;
  font-weight: 600;
  color: var(--dark);
  font-size: 1.1rem;
}

/* ================================================================ */
/* 14. CONTATO                                                     */
/* ================================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 20px;
  border-radius: 40px;
  border: 2px solid #e0e0e0;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(221, 83, 152, 0.15);
}

.contact-form textarea {
  border-radius: 24px;
  min-height: 140px;
  resize: vertical;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.contact-info p i {
  width: 28px;
}

.contact-location {
  margin-top: 24px;
  background: var(--cream);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  font-weight: 600;
  color: var(--dark);
}

.social-links {
  display: flex;
  gap: 24px;
  font-size: 2.2rem;
  margin-top: 20px;
}

.social-links a {
  color: var(--turquoise);
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--pink);
  transform: translateY(-4px);
}

/* ================================================================ */
/* 15. FOOTER                                                      */
/* ================================================================ */
footer {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 32px 0;
  font-weight: 600;
}

footer i {
  margin-right: 8px;
}

footer small {
  display: block;
  margin-top: 8px;
  opacity: 0.7;
  font-weight: 400;
}

/* ================================================================ */
/* 16. ANIMAÇÕES (Fade-up)                                         */
/* ================================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================================ */
/* 17. RESPONSIVO                                                  */
/* ================================================================ */

/* Tablet */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin: 0 auto 32px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image img {
    width: 280px;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    background: var(--white);
    padding: 24px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .book-showcase {
    flex-direction: column;
    text-align: center;
  }

  .book-mockup {
    width: 260px;
    height: 340px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    padding: 0;
  }

  .gallery-item::after {
    font-size: 2rem;
    padding: 14px;
  }

  .lightbox-content {
    padding: 16px;
    max-width: 95vw;
  }

  .lightbox-close {
    top: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .story-cover {
    height: 180px;
  }

  .stories-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 8px;
  }

  .book-mockup {
    width: 200px;
    height: 260px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}