/* =========================================================
   RW-ReduWorks — Manutenção de Redutores e Motoredutores
   Método RW — Landing Page
   ========================================================= */

:root {
  /* Paleta institucional RW-ReduWorks (extraída do site oficial reduworks.com.br):
     fundo navy quase preto + azul-ciano como cor de destaque/ação. */
  --navy-950: #00080f;
  --navy-900: #000c18;
  --navy-800: #071c2b;
  --navy-700: #0e2c3f;
  --navy-600: #16405a;
  --steel-600: #7c92a5;
  --steel-300: #b9c6d3;
  --white: #ffffff;
  --text-primary: #f3f6f8;
  --text-secondary: #b9c6d3;
  --accent-500: #07a0c3; /* ciano institucional — botões e destaques */
  --accent-600: #058aab;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.08);

  /* Mesma dupla de fontes do site institucional (reduworks.com.br):
     Radio Canada nos títulos, Roboto no corpo de texto. */
  --font-heading: "Radio Canada", -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --radius: 10px;
  --shadow-sm: 0 2px 14px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);

  --space-section: clamp(3.5rem, 6vw, 6.5rem);
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* Garante que o atributo "hidden" sempre vença regras de display
   mais específicas (ex.: .cta-box a.btn { display: flex }) — sem
   isso, um elemento marcado hidden ainda aparecia na tela. */
[hidden] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-secondary);
  background: var(--navy-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
button, .btn { font-family: var(--font-body); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 2px solid transparent;
  border-radius: 6px;
  padding: 0.85rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--accent-500);
  color: var(--navy-900);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-primary);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--accent-500);
  border-color: var(--accent-500);
  color: var(--navy-900);
}
.btn-lg { padding: 1.05rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.82rem; min-height: 40px; }

/* -------------------- Eyebrow / labels -------------------- */
.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-500);
  margin-bottom: 0.9rem;
}

/* -------------------- Hero -------------------- */
.hero {
  background:
    radial-gradient(640px 480px at 86% 10%, rgba(7, 160, 195, 0.4), rgba(7, 160, 195, 0) 70%),
    linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

/* -------------------- Section divider --------------------
   Thin band between sections to break up the dark blue expanse,
   with a centered accent tick — a small technical/engineering touch. */
.section-divider {
  position: relative;
  height: clamp(20px, 3vw, 28px);
  background: var(--navy-700);
}
.section-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
}
.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent-500);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: var(--text-primary);
}
.metodo-rw {
  color: var(--accent-500);
  position: relative;
  white-space: nowrap;
}
.subheadline {
  margin-top: 1.25rem;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 46ch;
}
.hero-actions { margin-top: 2rem; }
.hero-actions .btn { width: 100%; max-width: 460px; }
.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 1 / 1;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------- Section shell -------------------- */
.section { padding-block: var(--space-section); }
.section-head { max-width: 90ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--text-primary); }
.section-lead { margin-top: 0.85rem; color: var(--text-secondary); font-size: 1.05rem; }

/* -------------------- Aprendizado (Seção 2) -------------------- */
/* Padrão sutil de trilhas de circuito no fundo, ecoando o visual
   tech da foto do motorredutor na Hero — quebra o azul sólido sem
   competir com o conteúdo (cards têm fundo opaco por cima). */
.learn {
  background-color: var(--navy-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg fill='none' stroke='%237c92a5' stroke-width='1.4' opacity='0.07'%3E%3Cpath d='M20 0 L20 40 L60 40 L60 90'/%3E%3Cpath d='M0 70 L50 70 L50 110 L100 110'/%3E%3Cpath d='M140 0 L140 50 L100 50 L100 130 L160 130'/%3E%3Cpath d='M0 140 L30 140 L30 160'/%3E%3C/g%3E%3Cg fill='%2307a0c3' opacity='0.18'%3E%3Ccircle cx='20' cy='40' r='2.4'/%3E%3Ccircle cx='60' cy='90' r='2.4'/%3E%3Ccircle cx='50' cy='110' r='2.4'/%3E%3Ccircle cx='100' cy='50' r='2.4'/%3E%3Ccircle cx='100' cy='130' r='2.4'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 160px 160px;
}
.learn-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.learn-highlight {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.learn-media {
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.learn-media-photo { aspect-ratio: 4 / 4.5; }
.learn-media-photo img { width: 100%; height: 100%; object-fit: cover; }
.learn-highlight-text h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.learn-highlight-text p { color: var(--text-secondary); font-size: 1rem; }
.spec-list {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.85rem;
}
.spec-list li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}
.spec-value {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-500);
  font-size: 1.02rem;
  min-width: 128px;
}
.spec-label { color: var(--text-secondary); font-size: 0.92rem; }
.learn-highlight-note {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-500);
  color: var(--text-primary);
  font-size: 1rem;
  font-style: italic;
}
.card {
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-500);
  border-radius: 8px;
  padding: 1.35rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  background: var(--navy-600);
}
.card h3 {
  font-size: 1.02rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.92rem; color: var(--text-secondary); }

/* -------------------- Público (Seção 3) -------------------- */
.audience { background: var(--navy-900); }
.audience-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.audience-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.audience-media img { aspect-ratio: 1 / 1; object-fit: cover; }
.audience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}
.audience-col h2 {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}
.check-list { margin-top: 1rem; display: grid; gap: 0.7rem; }
.check-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.94rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 10px;
  height: 10px;
  background: var(--accent-500);
  clip-path: polygon(0 45%, 40% 100%, 100% 0);
}

/* -------------------- FAQ -------------------- */
.faq-section { background: var(--navy-800); }
.faq-list { width: 100%; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0.25rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  color: var(--accent-500);
  display: inline-flex;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item p {
  padding: 0 2rem 1.25rem 0.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -------------------- CTA final (Seção 4) -------------------- */
.final-cta {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.cta-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--navy-950) 40%, rgba(0, 8, 15, 0.75) 100%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.instructor {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}
.instructor-photo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--navy-700);
  border: 2px solid var(--accent-500);
}
.instructor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructor-info h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.instructor-role { color: var(--text-secondary); font-size: 0.92rem; margin-top: 0.15rem; }
.info-list { margin-top: 1.25rem; display: grid; gap: 0.65rem; }
.info-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.info-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent-500);
}
.cta-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
.cta-box h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 0.75rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 1.5rem; }

.price-block {
  margin-bottom: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.price-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.price-anchor {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.price-strike { text-decoration: line-through; opacity: 0.7; }
.price-value {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 0.2rem;
  line-height: 1.1;
}
.price-value .price-highlight { color: var(--accent-500); }
.price-installment { margin-top: 0.5rem; font-size: 0.92rem; color: var(--text-secondary); }
.cta-box a.btn { display: flex; width: fit-content; }
.cta-box a.btn + a.btn:not([hidden]) { margin-top: 0.85rem; }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--navy-950); color: var(--text-secondary); }
.footer-inner {
  text-align: center;
  padding-block: 1.1rem;
  border-top: 1px solid var(--line-soft);
}
.footer-inner p { font-size: 0.78rem; margin: 0.25rem 0; }
.footer-credit { font-size: 0.68rem; opacity: 0.55; }

/* -------------------- Reveal animation --------------------
   Content is visible by default. The "js-reveal" class is only
   added by script.js right before observing, so pages without
   JavaScript (or crawlers/screenshots that skip scroll events)
   always see full content. */
.js-reveal[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal[data-reveal] { opacity: 1; transform: none; transition: none; }
  .card:hover, .btn-primary:hover { transform: none; }
}

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin-inline: auto; }
  .learn-cards { grid-template-columns: repeat(2, 1fr); }
  .learn-highlight { grid-template-columns: 1fr; }
  .learn-media { margin-inline: auto; }
  .audience-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .learn-cards { grid-template-columns: 1fr; }
  .learn-media { max-width: 100%; }
  .audience-content { grid-template-columns: 1fr; }
}
