/* ===========================
   VOE Reabilitação Infantil
   CSS Principal
=========================== */

:root {
  --teal: #2a9d8f;
  --teal-dark: #1f7a6e;
  --teal-light: #4cc9be;
  --yellow: #f4a261;
  --yellow-light: #fce8d5;
  --blue: #457b9d;
  --bg: #f8fdfc;
  --white: #ffffff;
  --text: #1b3a35;
  --text-light: #5a7a75;
  --radius: 20px;
  --shadow: 0 8px 32px rgba(42,157,143,0.13);
  --shadow-lg: 0 20px 60px rgba(42,157,143,0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

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

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

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

.section { padding: 80px 0; }

/* ===========================
   HEADER
=========================== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  /* No transition on load to avoid flash */
  transition: none;
}

/* Enable transition after page loads (set via JS) */
.header.transitions-ready {
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(42,157,143,0.12);
}

/* Nav links white on transparent header, dark on scrolled */
.header:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.92);
}

.header:not(.scrolled) .nav-link:hover,
.header:not(.scrolled) .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

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

.logo-img {
  height: 52px;
  width: auto;
  /* Logo has black background — show only on scrolled (white header) */
  border-radius: 8px;
}

/* On transparent header, invert logo so it looks good on dark hero */
.header:not(.scrolled) .logo-img {
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--teal);
  background: rgba(42,157,143,0.08);
}

.nav-btn {
  background: #25D366;
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 40px;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: var(--transition);
}

.nav-btn:hover {
  transform: translateY(-1px);
}

.btn-portal {
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
  backdrop-filter: blur(6px);
}

.btn-portal:hover {
  background: rgba(255,255,255,0.28) !important;
  border-color: #fff !important;
  box-shadow: 0 6px 20px rgba(255,255,255,0.15) !important;
}

.header.scrolled .btn-portal {
  background: rgba(42,157,143,0.08) !important;
  color: var(--teal) !important;
  border-color: var(--teal) !important;
}

.header.scrolled .btn-portal:hover {
  background: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(42,157,143,0.3) !important;
}

.header.scrolled .btn-whatsapp.nav-btn:hover {
  background: #1ebe5d !important;
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  transition: var(--transition);
}

/* White hamburger lines when header is transparent (dark hero behind) */
.header:not(.scrolled) .hamburger span {
  background: #fff;
}

/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
  background: #0a1a18;
}

.hero-banner {
  position: absolute;
  inset: 0;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10,26,24,0.75) 0%, rgba(42,157,143,0.25) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
}

.hero-text {
  max-width: 600px;
  animation: fadeUp 0.8s ease both;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 8px 20px;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-title .highlight {
  color: var(--teal-light);
  font-style: italic;
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  line-height: 0;
}

.hero-wave svg { display: block; }

/* ===========================
   BUTTONS
=========================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(42,157,143,0.35);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(42,157,143,0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  transition: var(--transition);
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.28);
  border-color: rgba(255,255,255,0.8);
}

/* When btn-secondary is on white background */
.sobre-preview .btn-secondary,
.section .btn-secondary:not(.hero .btn-secondary) {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}

.sobre-preview .btn-secondary:hover {
  background: var(--teal);
  color: #fff;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.btn-whatsapp-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
  padding: 18px 36px;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  white-space: nowrap;
}

.btn-whatsapp-big:hover {
  background: #1ebe5d;
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(37,211,102,0.5);
}

.btn-whatsapp-big i { font-size: 1.4rem; }

/* ===========================
   SECTION HEADERS
=========================== */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}

.section-tag {
  display: inline-block;
  background: rgba(42,157,143,0.1);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 40px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.2;
}

.section-title em {
  color: var(--teal);
  font-style: italic;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeUp 0.6s ease both;
}

.card[data-delay="100"] { animation-delay: 0.1s; }
.card[data-delay="200"] { animation-delay: 0.2s; }
.card[data-delay="300"] { animation-delay: 0.3s; }

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

.card-icon {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ===========================
   SOBRE PREVIEW
=========================== */
.sobre-preview { background: #fff; }

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}

.sobre-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.sobre-icon-wrap {
  font-size: 5rem;
  color: rgba(255,255,255,0.85);
}

.sobre-badge {
  position: absolute;
  bottom: -14px;
  background: var(--yellow);
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 8px 18px;
  border-radius: 40px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(244,162,97,0.35);
}

.sobre-text .section-tag { display: inline-block; margin-bottom: 12px; }
.sobre-text .section-title { margin-bottom: 18px; }

.sobre-text p {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 1rem;
}

.sobre-list {
  list-style: none;
  margin-bottom: 30px;
}

.sobre-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 6px 0;
}

.sobre-list li i {
  color: var(--teal);
  font-size: 1.1rem;
}

/* ===========================
   CTA SECTION
=========================== */
.cta-section {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  padding: 72px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
}

.cta-text p {
  color: rgba(255,255,255,0.88);
  font-size: 1.05rem;
  max-width: 500px;
}

/* ===========================
   LOCALIZAÇÃO PREVIEW
=========================== */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light);
  font-size: 0.97rem;
}

.info-item i { color: var(--teal); font-size: 1.1rem; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  height: 48px;
  margin-bottom: 16px;
  /* mix-blend-mode screen makes black transparent on dark footer bg */
  mix-blend-mode: screen;
  filter: brightness(1.15) contrast(1.1);
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  opacity: 0.75;
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #25D366;
  font-weight: 800;
  font-size: 1.05rem;
  transition: var(--transition);
}

.footer-wa:hover { opacity: 0.8; }

.footer-links h4,
.footer-contact h4 {
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  padding: 4px 0;
  transition: var(--transition);
}

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

.footer-contact p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.footer-contact i { color: var(--teal-light); margin-top: 2px; }

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: #fff;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--transition);
  animation: pulse 2.5s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
  animation: none;
}

/* ===========================
   PAGE HERO (inner pages)
=========================== */
.page-hero {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  padding: 120px 0 70px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ===========================
   SERVICES PAGE
=========================== */
.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.servico-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--teal);
  transition: var(--transition);
}

.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.servico-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.servico-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.servico-card p {
  color: var(--text-light);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ===========================
   SOBRE PAGE
=========================== */
.sobre-full {
  background: #fff;
}

.sobre-full-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 60px;
  align-items: start;
}

.sobre-photo-placeholder {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  max-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: rgba(255,255,255,0.9);
}

.sobre-photo-placeholder i { font-size: 5rem; }
.sobre-photo-placeholder span { font-size: 1.1rem; font-weight: 700; text-align: center; padding: 0 20px; }

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.badge {
  background: rgba(42,157,143,0.1);
  color: var(--teal);
  border: 2px solid rgba(42,157,143,0.2);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* ===========================
   CONTATO PAGE
=========================== */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contato-info h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
}

.contato-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(42,157,143,0.08);
}

.contato-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(42,157,143,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contato-item h4 {
  font-weight: 800;
  color: var(--text);
  font-size: 0.97rem;
  margin-bottom: 4px;
}

.contato-item p, .contato-item a {
  color: var(--text-light);
  font-size: 0.95rem;
  transition: var(--transition);
}

.contato-item a:hover { color: var(--teal); }

.map-full {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 6px 24px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 6px 40px rgba(37,211,102,0.7); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .sobre-inner, .sobre-full-inner { grid-template-columns: 1fr; }
  .sobre-img-wrap { display: flex; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    transform: translateY(-120%);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link { padding: 12px 16px; border-radius: 12px; }
  .nav-btn { justify-content: center; padding: 14px !important; }

  .hamburger { display: flex; }

  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary, .btn-whatsapp { width: 100%; justify-content: center; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .info-row { flex-direction: column; align-items: flex-start; }
}
