@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap");

:root {
  --primary: #050241;
  --accent: #4F44E3;
  --bg-dark: linear-gradient(-90deg, #050241, #000000);
  --bg-light: linear-gradient(35deg, #F6F6F6, #FFFFFF);
  --success-bg: #FBFFEE;
  --success-border: #4E7C13;
  --warning-bg: #FFEBEB;
  --warning-border: #982020;
  --transition: all 0.3s ease;
}

* { box-sizing: border-box; font-family: "Lato", sans-serif; }
body { margin: 0; background-color: #fff; overflow-x: hidden; }

.sa-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- HEADER E FORMULÁRIO --- */
.seo-analyzer-header {
  background: var(--bg-dark);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.seo-analyzer-header h3 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 0 0 15px; color: white !important; }
.seo-analyzer-header p { font-size: 20px; margin-bottom: 40px; opacity: 0.9; }

/* Grid para os 4 campos do formulário */
.seo-analyzer-header form {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 15px;
  align-items: center;
}

.seo-analyzer-header input:not([type="submit"]) {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-weight: 600;
}

.seo-analyzer-header input[type="submit"] {
  background: var(--primary);
  color: #fff;
  border: 1px solid #fff;
  padding: 15px 30px;
  cursor: pointer;
  font-weight: 700;
  transition: var(--transition);
}

.seo-analyzer-header input[type="submit"]:hover {
  background: #fff;
  color: var(--primary);
}

/* --- RÉGUA DE ÍCONES (RULER) --- */
.seo-ruler { background: #090909; padding: 60px 0; color: #fff; }
.seo-ruler .sa-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.seo-ruler img { width: 40px; margin-bottom: 15px; }
.seo-ruler h4 { font-size: 21px; margin: 10px 0; }
.seo-ruler p { font-size: 14px; opacity: 0.8; }

/* --- CONTEÚDO E IMAGENS (COL-2) --- */
.seo-content { padding: 80px 0; }
.seo-content .sa-container { display: flex; align-items: center; gap: 50px; }
.seo-content .sa-container > div { flex: 1; }
.seo-content h4 { font-size: 32px; margin: 15px 0; }
.seo-content .seo-border-left { border-left: 5px solid var(--primary); padding-left: 20px; margin: 30px 0; }
.seo-content img { width: 100%; max-width: 500px; display: block; margin: 0 auto; }

/* --- BOX ROCKET (DESTAQUE) --- */
.seo-box-content { padding: 60px 0; }
.seo-box-content .sa-container {
  background: var(--bg-dark);
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 50px;
  position: relative;
  color: #fff;
}
.seo-box-content img {
  width: 200px;
  margin-right: 40px;
  animation: float 3s ease-in-out infinite;
}
.seo-box-content h3 { font-size: 32px; margin: 0;   color: white;}
.seo-box-content a {
  background: #fff;
  color: var(--primary);
  padding: 15px 30px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  display: inline-block;
  margin-top: 10px;
 
}

/* --- RESULTADO PRINCIPAL (SCORE) --- */
.seo-analyzer-result { background: #F8F8F8; padding: 80px 0; text-align: center; }
.seo-analyzer-result h2 { font-size: 72px; margin: 10px 0; color: var(--primary); }
.seo-analyzer-result h5 { font-size: 36px; margin: 0; }
.seo-analyzer-result .seo-result-status img { width: 80px; }
.sa-button-line {
  display: inline-block;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 15px 40px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 25px;
  transition: var(--transition);
}
.sa-button-line:hover { background: var(--primary); color: #fff; }

/* --- BOXES DE RESULTADO (GRID) --- */
.sa-result-all .sa-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 60px 0;
}

.sa-inner-box {
  background: var(--bg-light);
  border: 1px solid #dadada;
  padding: 25px;
  border-radius: 8px;
}
.sa-inner-box > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.sa-inner-box span { font-size: 32px; font-weight: 900; }
.sa-inner-box img { width: 45px; }
.sa-inner-box h5 { font-size: 18px; margin: 10px 0; min-height: 45px; }
.sa-divisor { width: 40px; height: 4px; background: var(--primary); display: block; margin: 15px 0; }
.sa-inner-box p { font-size: 13px; line-height: 1.5; color: #555; }
.sa-inner-box a { color: var(--primary); text-decoration: none; font-weight: 700; font-size: 14px; }

/* --- SEÇÃO DE RESPOSTAS (FOREACH) --- */
.sa-response-section { padding: 40px 0; }
.sa-response-section .sa-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sa-response-box {
  padding: 20px;
  border-radius: 6px;
  min-height: 200px;
}
.sa-response-box div { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.sa-response-box img { width: 18px; }
.sa-response-box p { font-size: 13px; margin: 0; }

.sa-success { background: var(--success-bg); border: 1px solid var(--success-border); }
.sa-warning { background: var(--warning-bg); border: 1px solid var(--warning-border); }

/* --- CTA FINAL --- */
.sa-final-cta { padding: 90px 0; text-align: center; }
.sa-final-cta h2 { font-size: 48px; line-height: 1.2; margin-bottom: 20px; }
.sa-final-cta a {
  background: var(--primary);
  color: #fff;
  padding: 18px 45px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  margin-top: 20px;
}

/* ANIMAÇÕES */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* RESPONSIVIDADE */
@media (max-width: 1024px) {
  .sa-result-all .sa-container, .sa-response-section .sa-container { grid-template-columns: repeat(2, 1fr); }
  .seo-analyzer-header form { grid-template-columns: 1fr; }
  .seo-content .sa-container { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .sa-result-all .sa-container, .sa-response-section .sa-container { grid-template-columns: 1fr; }
  .seo-box-content .sa-container { flex-direction: column; text-align: center; }
  .seo-box-content img { margin: 0 0 20px 0; }
  .seo-ruler .sa-container { grid-template-columns: 1fr; }
}