/* ============================================
   HD INFORMÁTICA - ESTILOS COMPARTILHADOS
   ============================================ */

:root {
  --green: #07883f;
  --green-dark: #05632f;
  --red: #d71920;
  --dark: #10231a;
  --text: #1e2e25;
  --muted: #5a6b62;
  --light: #f4f9f6;
  --white: #ffffff;
  --shadow: 0 20px 40px rgba(7, 136, 63, 0.08);
  --radius: 28px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* TOPBAR */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 0;
  border-bottom: 2px solid var(--green);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar-left span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-left i { color: #6de39c; font-size: 0.85rem; width: 16px; }
.topbar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-social a {
  color: #aab9b0;
  transition: 0.3s;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.topbar-social a:hover {
  color: #fff;
  background: var(--green);
  transform: translateY(-2px);
}
.topbar-social a.instagram:hover { background: #E4405F; }
.topbar-social a.facebook:hover { background: #1877F2; }
.topbar-social a.youtube:hover { background: #FF0000; }

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e4ede8;
}
nav {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  color: var(--green);
  flex-shrink: 0;
}
.logo img { height: 55px; }
.logo span { 
  color: var(--red); 
  font-size: 0.75rem; 
  font-weight: 600;
  display: block;
  line-height: 1.2;
}
.logo .logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 0.85rem;
}
.nav-links a { 
  transition: color 0.2s;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, 
.nav-links a.active { 
  color: var(--green);
  border-bottom-color: var(--green);
}
.nav-links a.btn-ead {
  background: #ff6b00;
  color: #fff;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  border-bottom: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.nav-links a.btn-ead:hover {
  background: #e05f00;
  transform: translateY(-2px);
  border-bottom: none;
}
.nav-links a.btn-primary {
  background: var(--green);
  color: #fff;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  border-bottom: none;
  box-shadow: 0 4px 12px rgba(7, 136, 63, 0.2);
}
.nav-links a.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(7, 136, 63, 0.3);
  border-bottom: none;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--dark);
}

/* BOTÕES */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(7, 136, 63, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(7, 136, 63, 0.3); }
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(215, 25, 32, 0.2);
}
.btn-red:hover { transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-ead {
  background: #ff6b00;
  color: #fff;
}
.btn-ead:hover { background: #e05f00; transform: translateY(-3px); }

/* HERO */
.hero {
  padding: 60px 0 60px;
  background: linear-gradient(145deg, #f0faf4 0%, #ffffff 70%);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(7, 136, 63, 0.05) 0%, transparent 70%);
  right: -150px;
  top: -200px;
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--dark);
}
.hero h1 strong { color: var(--green); }
.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 18px 0 28px;
}
.hero-badge {
  display: inline-block;
  background: #e2f3e8;
  color: var(--green-dark);
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  margin-bottom: 14px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* CARROSSEL */
.carousel-wrapper {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  border: 1px solid #e4ede8;
}
.carousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #e8f0ec;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.carousel-slide .slide-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(4px);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.2s;
  z-index: 10;
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 40px;
  background: #cbd8d0;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}
.dot.active { background: var(--green); width: 24px; }

/* STATS */
.stats {
  background: var(--dark);
  color: #fff;
  padding: 30px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  text-align: center;
}
.stat b { font-size: 2rem; display: block; color: #6de39c; }
.stat span { color: #b9c9c0; font-size: 0.85rem; }

/* SEÇÕES */
.section { padding: 70px 0; }
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  letter-spacing: -1px;
  color: var(--dark);
}
.section-sub { color: var(--muted); margin-top: 8px; max-width: 600px; }
.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* CURSOS */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.course-card {
  background: #fff;
  border: 1px solid #e4ede8;
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.course-icon {
  width: 50px;
  height: 50px;
  background: #e7f6ed;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.course-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.course-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.course-link { font-weight: 700; color: var(--green); font-size: 0.9rem; }

/* IA */
.ia-section {
  background: var(--dark);
  color: #fff;
}
.ia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.ia-grid h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); letter-spacing: -1px; }
.ia-grid p { color: #b9c9c0; margin: 14px 0 20px; }
.ia-list { display: grid; gap: 10px; }
.ia-list div { display: flex; gap: 12px; align-items: center; font-size: 0.95rem; }
.ia-list i { color: #6de39c; font-size: 1.1rem; }
.ia-box {
  background: linear-gradient(145deg, #103f27, #092819);
  border-radius: var(--radius);
  padding: 30px;
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ia-box .tag {
  background: rgba(255,255,255,0.1);
  padding: 4px 14px;
  border-radius: 40px;
  width: fit-content;
  font-size: 0.75rem;
  font-weight: 600;
}
.ia-box h3 { font-size: 1.5rem; margin-top: 16px; }

/* BLOG - DESTAQUE NA HOME */
.blog-highlight { background: var(--light); }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid #e4ede8;
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card .blog-img {
  height: 160px;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  color: #fff;
}
.blog-card .content { padding: 16px 20px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 4px; }
.blog-card p { color: var(--muted); font-size: 0.85rem; }

/* QUIZ */
.quiz-box {
  background: var(--light);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  border: 1px solid #dce8df;
  max-width: 680px;
  margin: 0 auto;
}

/* GALERIA */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
  background: var(--dark);
}
.gallery-item:hover { transform: scale(1.02); box-shadow: var(--shadow); }

/* UNIDADES */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.unit-card {
  background: #fff;
  border: 1px solid #e4ede8;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.02);
  transition: var(--transition);
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.unit-card .city { color: var(--green); font-weight: 700; margin: 4px 0 14px; }
.unit-card .btn { width: 100%; justify-content: center; font-size: 0.85rem; padding: 10px; }

/* CREDIBILIDADE */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.trust-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid #e4ede8;
}
.trust-card .quote { font-size: 1.1rem; font-weight: 600; color: var(--dark); }
.trust-card .author { margin-top: 10px; color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.trust-card hr { margin: 14px 0; border-color: #e4ede8; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid #e4ede8;
  border-radius: 14px;
  padding: 14px 20px;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--dark);
  list-style: none;
  font-size: 0.95rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); margin-top: 10px; font-size: 0.9rem; }

/* FORMULÁRIO */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 3px; font-size: 0.9rem; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #dce8df;
  border-radius: 10px;
  font-size: 0.95rem;
  transition: 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(7,136,63,0.1);
}
.form-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid #e4ede8;
}
#formFeedback {
  display: none;
  margin-top: 14px;
  padding: 14px;
  background: #e7f6ed;
  border-radius: 10px;
  color: var(--green-dark);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--green), #075b30);
  border-radius: 28px;
  padding: 40px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-box h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -1px; }
.cta-box p { color: rgba(255,255,255,0.8); margin-top: 4px; }

/* FOOTER */
footer {
  background: #0b1912;
  color: #fff;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 30px;
}
footer h3 { margin-bottom: 10px; font-size: 1rem; }
footer p, footer li { color: #aab9b0; font-size: 0.85rem; }
footer ul { list-style: none; display: grid; gap: 5px; }
footer .footer-social {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
footer .footer-social a {
  color: #aab9b0;
  font-size: 1.2rem;
  transition: 0.3s;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
footer .footer-social a:hover {
  color: #fff;
  background: var(--green);
}
footer .footer-social a.instagram:hover { background: #E4405F; }
footer .footer-social a.facebook:hover { background: #1877F2; }
footer .footer-social a.youtube:hover { background: #FF0000; }
.copyright {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 28px;
  padding-top: 16px;
  color: #819188;
  font-size: 0.8rem;
  text-align: center;
}

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  transition: 0.3s;
  animation: pulse-whats 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse-whats {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* RESPONSIVIDADE */
@media (max-width: 960px) {
  .hero-grid, .ia-grid, .trust-grid { grid-template-columns: 1fr; }
  .course-grid, .unit-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .topbar .container { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid #e4ede8;
    gap: 12px;
    align-items: stretch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 0; border-bottom: 1px solid #f0f4f2; }
  .nav-links a.btn-ead, .nav-links a.btn-primary { 
    text-align: center; 
    justify-content: center;
    padding: 10px;
  }
  .menu-toggle { display: block; }
  .course-grid, .unit-grid, .gallery-grid, .blog-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0; }
  .carousel-slide .slide-label { font-size: 0.65rem; left: 12px; bottom: 12px; padding: 4px 12px; }
  .cta-box { padding: 24px 20px; }
  .form-card { padding: 20px; }
  .topbar-left { gap: 10px; font-size: 0.7rem; }
  .topbar-social a { width: 26px; height: 26px; font-size: 0.85rem; }
}

/* Celular */
@media (max-width: 700px) {
  .logo img {
    height: 30px;
  }
  .logo-text .logo-name {
    font-size: 1rem;
  }
  .logo-text .logo-sub {
    font-size: 0.45rem;
  }
}

/* Tablet */
@media (max-width: 960px) and (min-width: 701px) {
  .logo img {
    height: 35px;
  }
}

/* Logo no rodapé */
footer .footer-logo {
  height: 65px;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}

/* COLUNA 1 DO RODAPÉ (onde fica a logo) */
footer .footer-grid > div:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* RESPONSIVO - CELULAR */
@media (max-width: 700px) {
  footer .footer-logo {
    height: 38px;
    margin-bottom: 10px;
  }
  
  footer .footer-grid > div:first-child {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: 1.8rem;
    br { display: none; } /* remove quebras de linha */
  }
}

/* HERO - TÍTULO */
.hero h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -1.5px;
  color: var(--dark);
  max-width: 680px;
}

/* HERO - SUBTÍTULO */
.hero p {
  font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--muted);
  max-width: 520px;
  margin: 18px 0 28px;
  line-height: 1.7;
}

/* RESPONSIVO - TABLET */
@media (max-width: 960px) {
  .hero h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    letter-spacing: -1px;
  }
  .hero p {
    font-size: 1rem;
    max-width: 480px;
  }
}

/* RESPONSIVO - CELULAR */
@media (max-width: 700px) {
  .hero h1 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    line-height: 1.15;
  }
  .hero p {
    font-size: 0.95rem;
    margin: 14px 0 20px;
    max-width: 100%;
    line-height: 1.6;
  }
  .hero-badge {
    font-size: 0.7rem;
    padding: 4px 12px;
  }
}

}