/* =========================================================
   Mais Vidas Menos Telas — estilos
   Paleta: verde parque + amarelo sol + azul céu + terracota
   ========================================================= */

:root {
  --green: #2f8f57;
  --green-dark: #1f6b3f;
  --green-soft: #e6f4ea;
  --yellow: #f7c948;
  --orange: #f0842b;
  --sky: #3d9bd6;
  --sky-soft: #e5f2fb;
  --terracota: #d9694a;

  --ink: #223026;
  --ink-soft: #4c5a51;
  --cream: #fffaf0;
  --paper: #ffffff;
  --line: #e7e2d6;

  --shadow-sm: 0 2px 8px rgba(31, 45, 34, 0.08);
  --shadow-md: 0 10px 30px rgba(31, 45, 34, 0.12);

  --radius: 18px;
  --radius-lg: 28px;

  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;

  --maxw: 1100px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; }

p { margin: 0 0 1em; }

a { color: var(--green-dark); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ===== Botões ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: #e0741f; }

.btn-ghost { background: rgba(255,255,255,.85); color: var(--green-dark); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: #fff; }

/* ===== Cabeçalho ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 240, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }

.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { height: 46px; width: auto; display: block; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--green); border-bottom-color: var(--yellow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle-bar { width: 26px; height: 3px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 72px 0 96px;
  background:
    radial-gradient(1100px 420px at 80% -10%, rgba(247,201,72,.55), transparent 60%),
    linear-gradient(160deg, var(--sky-soft) 0%, var(--green-soft) 100%);
  overflow: hidden;
}
.hero-inner { position: relative; text-align: center; max-width: 820px; }
.hero-eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.hero-title { margin: 0 0 18px; line-height: 0; }
.hero-logo { width: min(420px, 82%); height: auto; margin: 0 auto; display: block; }

/* Logo animado (camadas do logo real) */
.logo-anim { position: relative; display: block; width: min(420px, 82%); aspect-ratio: 555 / 405; margin: 0 auto; }
.la { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.la-vida { opacity: 0; animation: la-slide .6s cubic-bezier(.2,.7,.3,1) .25s both; }
.la-telas { opacity: 0; animation: la-slide .6s cubic-bezier(.2,.7,.3,1) .6s both; }
.la-phone { animation: la-draw 1s ease-out 1s both; }
@keyframes la-slide { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes la-draw { from { opacity: 0; clip-path: inset(0 0 100% 0); } 30% { opacity: 1; } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Ícones na tela do celular (surgem e vão sumindo) */
.screen-icons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; animation: scr-in .5s ease-out 1.9s both; }
.scr-ico { animation: scr-out .7s ease-in forwards; animation-delay: calc(3s + var(--i) * .22s); }
@keyframes scr-in { from { opacity: 0; } to { opacity: .5; } }
@keyframes scr-out { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-12px); } }
.hero-lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink-soft); max-width: 640px; margin: 0 auto 28px; }

.hero-facts {
  list-style: none; margin: 0 auto 22px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.hero-facts > li {
  background: rgba(255,255,255,.85);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-width: 160px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.fact-ico { font-size: 1.5rem; }
.fact-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.fact-value { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.fact-horario { min-width: 220px; }
.fact-schedule {
  list-style: none;
  margin: 8px 0 0;
  padding: 8px 0 0;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-schedule li { font-size: .82rem; color: var(--ink-soft); text-align: center; }
.fact-schedule strong { color: var(--green-dark); font-family: var(--font-head); }

.hero-badge {
  display: inline-block;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.badge-note { font-weight: 400; opacity: .8; font-size: .85em; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 46px;
  background: var(--cream);
  clip-path: polygon(0 60%, 6% 40%, 14% 55%, 24% 30%, 34% 55%, 46% 32%, 58% 56%, 70% 34%, 82% 56%, 92% 38%, 100% 58%, 100% 100%, 0 100%);
}

/* ===== Seções genéricas ===== */
.section { padding: 72px 0; }
.section-title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); color: var(--ink); }
.section-title.center { text-align: center; }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 8px; }
.section-sub.center { text-align: center; max-width: 620px; margin-left: auto; margin-right: auto; }
.section-note { font-size: .9rem; color: var(--ink-soft); font-style: italic; margin-top: 24px; }
.lead-text { font-size: 1.15rem; color: var(--ink-soft); }
.lead-text strong { color: var(--ink); }

/* ===== Sobre ===== */
.sobre { background: var(--cream); }
.pill-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li {
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: var(--font-head);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .95rem;
}

/* ===== Áreas ===== */
.areas { background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.area-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.area-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  opacity: 0; transform: translateY(18px);
}
.area-card.in { opacity: 1; transform: none; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.area-ico {
  font-size: 2.4rem;
  width: 66px; height: 66px;
  display: flex; align-items: center; justify-content: center;
  background: var(--yellow);
  border-radius: 20px;
  margin-bottom: 16px;
}
.area-card:nth-child(3n+2) .area-ico { background: var(--sky-soft); }
.area-card:nth-child(3n+3) .area-ico { background: var(--green-soft); }
.area-card h3 { font-size: 1.28rem; color: var(--green-dark); }
.area-card p { font-size: .98rem; color: var(--ink-soft); margin-bottom: .7em; }

/* ===== Programação ===== */
.programacao { background: var(--green-soft); }
.timeline { list-style: none; margin: 36px 0 0; padding: 0; }
.timeline-item {
  display: flex; gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed rgba(31,107,63,.25);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-time {
  flex: 0 0 130px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--green-dark);
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  height: fit-content;
  text-align: center;
  font-size: .9rem;
}
.timeline-body h3 { font-size: 1.2rem; color: var(--ink); }
.timeline-body p { margin: 0; color: var(--ink-soft); }

/* ===== Local ===== */
.local { background: var(--cream); }
.local-name { font-family: var(--font-head); font-weight: 600; font-size: 1.5rem; color: var(--ink); margin-bottom: 4px; }
.local-address { color: var(--ink-soft); font-size: 1.1rem; }
.local-hint { color: var(--green-dark); margin: 18px 0 26px; }

/* ===== Dicas ===== */
.dicas { background: var(--sky-soft); }
.dica-grid {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
}
.dica {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.dica span { font-size: 2.2rem; display: block; margin-bottom: 8px; }
.dica p { margin: 0; font-family: var(--font-head); font-weight: 500; color: var(--ink); }

/* ===== Rodapé ===== */
.site-footer { background: #FAF3EB; color: var(--ink-soft); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-logo-wrap { line-height: 0; }
.footer-logo {
  width: 120px;
  height: 120px;
  border-radius: 24px;
  object-fit: contain;
}
.footer-logo-fallback {
  display: none;              /* aparece só se o logo.png não existir */
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--terracota);
  font-family: var(--font-head);
  font-size: 3.6rem;
  align-items: center;
  justify-content: center;
}
.footer-name {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--green-dark);
  margin: 0;
}
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--terracota);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .15s ease, color .15s ease;
}
.footer-instagram:hover { background: #fff; color: var(--red, #c0392b); }
.footer-instagram:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }
.footer-instagram-ico { flex: none; }
.footer-copy {
  text-align: center;
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .9rem;
}

/* ===== Responsivo ===== */
@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }

  .hero { padding: 52px 0 76px; }
  .section { padding: 56px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .timeline-item { flex-direction: column; gap: 10px; }
  .timeline-time { flex: none; align-self: flex-start; }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .area-card { opacity: 1; transform: none; transition: none; }
  .btn:hover, .area-card:hover { transform: none; }
  .la, .la-vida, .la-telas, .la-phone { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; }
  .screen-icons { display: none !important; }
}
