/* ============================================================
   CFC PARANÁ AUTO ESCOLA — style.css
   Complementa o Tailwind (CDN) com componentes reutilizáveis
   e a identidade "50 anos de estrada": verde profundo + ouro.
   ============================================================ */

:root {
  --verde: #0e5c3f;
  --verde-dark: #083d29;
  --verde-deep: #062b1d;
  --ouro: #d9a441;
  --ouro-light: #f0c87a;
  --creme: #faf7f0;
  --grafite: #1c2321;
}

/* ---------- Tipografia de seção ---------- */
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ouro);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: "Zilla Slab", serif;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--verde-dark);
}

/* ---------- Navegação ---------- */
.nav-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.18s ease;
}
.nav-link:hover { color: var(--ouro-light); }

@media (min-width: 768px) {
  .nav-link { border-bottom: none; padding: 0.35rem 0; position: relative; }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0; right: 100%; bottom: 0;
    height: 2px;
    background: var(--ouro);
    transition: right 0.22s ease;
  }
  .nav-link:hover::after { right: 0; }
}

.nav-mobile.is-open { transform: translateX(0); }

#hamburger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#hamburger.is-open span:nth-child(2) { opacity: 0; }
#hamburger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.header-scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3); }

/* Dropdown Área do Aluno */
.aluno-link {
  display: block;
  padding: 0.55rem 1.25rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.15s ease, color 0.15s ease;
}
@media (min-width: 768px) {
  .aluno-link { color: var(--grafite); }
  .aluno-link:hover { background: var(--creme); color: var(--verde); }
  /* Abre no hover em telas grandes */
  .md\:group:hover #alunoMenu { display: block; }
}
#alunoMenu.is-open { display: block; }
@media (max-width: 767px) {
  #alunoMenu { padding-left: 1rem; }
  .aluno-link { border-bottom: 1px solid rgba(255,255,255,0.06); padding-left: 0.5rem; }
  .aluno-link:hover { color: var(--ouro-light); }
}

/* ---------- Textura sutil do hero (asfalto/linhas) ---------- */
.hero-texture {
  background-image:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(217, 164, 65, 0.12), transparent 55%),
    repeating-linear-gradient(115deg, transparent 0 90px, rgba(255, 255, 255, 0.025) 90px 92px);
  pointer-events: none;
}

/* ---------- Selo 1973 (assinatura visual) ---------- */
.seal {
  position: relative;
  width: clamp(230px, 24vw, 300px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.seal__ring {
  position: absolute;
  inset: 0;
  animation: spin 40s linear infinite;
}
.seal__text {
  font-family: "Inter", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  fill: rgba(255, 255, 255, 0.55);
}
.seal__core {
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid var(--ouro);
  outline: 1px solid rgba(217, 164, 65, 0.35);
  outline-offset: 7px;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: radial-gradient(circle at 30% 25%, rgba(217, 164, 65, 0.18), transparent 60%), var(--verde-dark);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards de serviço ---------- */
.service-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  padding: 1.8rem 1.5rem;
  border: 1px solid rgba(14, 92, 63, 0.1);
  border-top: 4px solid var(--ouro);
  box-shadow: 0 8px 30px rgba(6, 43, 29, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(6, 43, 29, 0.14);
}
.service-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--verde);
  color: var(--ouro-light);
  margin-bottom: 1.1rem;
}
.service-title {
  font-family: "Zilla Slab", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--verde-dark);
  margin-bottom: 0.4rem;
}
.service-text {
  font-size: 0.93rem;
  color: rgba(28, 35, 33, 0.65);
  margin-bottom: 1.2rem;
}
.service-link {
  margin-top: auto;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--verde);
  transition: color 0.18s ease, letter-spacing 0.18s ease;
}
.service-link:hover { color: var(--ouro); letter-spacing: 0.02em; }

/* ---------- Cards de diferenciais ---------- */
.diff-card {
  border-radius: 1rem;
  padding: 1.6rem 1.4rem;
  background: var(--creme);
  border-left: 4px solid var(--verde);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.diff-card:hover { border-left-color: var(--ouro); transform: translateY(-4px); }
.diff-card h3 {
  font-family: "Zilla Slab", serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--verde-dark);
  margin-bottom: 0.4rem;
}
.diff-card p { font-size: 0.9rem; color: rgba(28, 35, 33, 0.65); }

/* ---------- Linha do tempo ---------- */
.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--ouro) 0 8px, transparent 8px 15px);
  opacity: 0.7;
}
.timeline li {
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 1.4rem;
}
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--verde-deep);
  border: 3px solid var(--ouro);
}
.timeline strong {
  display: block;
  font-family: "Zilla Slab", serif;
  font-size: 1.15rem;
  color: var(--ouro);
}
.timeline span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Cards de unidades ---------- */
.unit-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(14, 92, 63, 0.1);
  box-shadow: 0 8px 30px rgba(6, 43, 29, 0.07);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 44px rgba(6, 43, 29, 0.14);
}
.unit-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.unit-body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.unit-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--verde);
  background: rgba(14, 92, 63, 0.09);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.unit-tag--gold { color: #8a6215; background: rgba(217, 164, 65, 0.18); }
.unit-body h3 {
  font-family: "Zilla Slab", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--verde-dark);
  margin-bottom: 0.4rem;
}
.unit-body p { font-size: 0.9rem; color: rgba(28, 35, 33, 0.65); line-height: 1.55; }
.unit-phone { margin-top: 0.5rem; font-weight: 700; color: var(--grafite) !important; }
.unit-maps {
  margin-top: auto;
  padding-top: 0.9rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--verde);
}
.unit-maps:hover { color: var(--ouro); }

/* ---------- Depoimentos (Swiper) ---------- */
.testimonials { padding-bottom: 3rem; }
.testimonial {
  height: auto;
  display: flex;
  flex-direction: column;
  background: var(--creme);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(14, 92, 63, 0.1);
}
.testimonial img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.testimonial figcaption { padding: 1.3rem 1.4rem 1.6rem; }
.stars {
  display: block;
  color: var(--ouro);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
}
.testimonial blockquote {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(28, 35, 33, 0.72);
  font-style: italic;
}
.swiper-pagination-bullet { background: var(--verde); opacity: 0.35; }
.swiper-pagination-bullet-active { background: var(--ouro); opacity: 1; }

/* ---------- Título do rodapé ---------- */
.footer-title {
  font-family: "Zilla Slab", serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 0.9rem;
}
.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.18s ease;
}
.footer-social:hover { color: var(--ouro-light); }

/* ---------- Botão flutuante WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 60;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.5);
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid #25d366;
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- Acessibilidade / movimento reduzido ---------- */
:focus-visible { outline: 3px solid var(--ouro); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  .seal__ring { animation: none; }
  .whatsapp-float::after { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; transition: none !important; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
