/* lp.class-solutions.com.br — Etapa 11
   HTML semântico em fluxo normal (flex/grid), sem position:absolute para layout. */

/* === Tokens === */
:root {
  --color-brand: #009966;
  --color-brand-dark: #007a52;
  --color-brand-darker: #015c3d;
  --color-brand-light: #00b577;
  --color-text: #242424;
  --color-text-muted: #5a5a5a;
  --color-bg-alt: #f5f7f6;
  --font-heading: "Inter", sans-serif;
  --font-body: "Open Sans", sans-serif;
  --font-button: "Roboto", sans-serif;
  --radius: 14px;
  --radius-pill: 50px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
  --max-width: 1200px;
  --section-padding-y: clamp(3.5rem, 7vw, 6rem);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.65;
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.25; }

:focus-visible {
  outline: 3px solid var(--color-brand); /* WCAG 2.4.7 */
  outline-offset: 3px;
  border-radius: 2px;
}

/* === Layout helpers === */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}
section { padding-block: var(--section-padding-y); }
.section-heading {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 2.75rem;
}
.section-heading h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 700;
}
.section-heading p {
  margin-top: 0.85rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-button);
  background: var(--color-brand);
  color: #fff;
  padding: 0.95rem 2.25rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--color-brand-dark); transform: translateY(-2px); }
.btn-primary--invert { background: #fff; color: var(--color-brand); }
.btn-primary--invert:hover { background: #f0f0f0; }

.cta-row { text-align: center; margin-top: 2.5rem; }

/* === Header === */
header {
  background: #fff;
  padding-block: 1.1rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  z-index: 20;
}
header .container { display: flex; justify-content: center; }
header img { height: 38px; width: auto; }

/* === Hero === */
#hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(1, 30, 20, 0.7), rgba(1, 60, 40, 0.55)),
    url("../images/3342660_1_175913743619738645.webp") center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hero-badge { height: clamp(86px, 5vw + 180px, 256px); margin-bottom: -2.75rem; }
.hero-inner .eyebrow { color: #cdf3e2; }
#hero h1 {
  font-size: clamp(1.85rem, 1.3rem + 2.6vw, 2.85rem);
  font-weight: 700;
}
.hero-lead {
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.2rem);
  color: #e4f3ec;
  max-width: 600px;
}
.hero-decor {
  position: absolute;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}
.hero-decor--1 { top: 8%; right: 6%; width: 280px; animation: float-soft 5s ease-in-out infinite; }
.hero-decor--2 { bottom: 10%; left: 12%; width: 130px; animation: float-soft 6s ease-in-out infinite reverse; }
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@media (max-width: 600px) {
  .hero-decor { display: none; }
}

/* === Formulário === */
#formulario {
  background: linear-gradient(135deg, var(--color-brand-darker) 0%, var(--color-brand) 55%, var(--color-brand-light) 100%);
  color: #fff;
}
.form-caption {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.form-card {
  background: #fff;
  color: var(--color-text);
  max-width: 560px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 2vw + 1rem, 2.5rem);
}
.form-card fieldset { border: none; display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field input,
.field select,
.field textarea {
  border: 1px solid #0000002e;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: inherit;
}
.field textarea { border-radius: 12px; resize: vertical; min-height: 90px; }
.form-card button[type="submit"] {
  border: none;
  border-radius: var(--radius-pill);
  padding: 1rem;
  background: var(--color-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-button);
  transition: background 0.2s;
}
.form-card button[type="submit"]:hover { background: var(--color-brand-dark); }

/* === Dores === */
#dores { background: var(--color-bg-alt); text-align: center; }
.dores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 900px;
  margin-inline: auto;
}
@media (min-width: 900px) {
  .dores-grid { grid-template-columns: repeat(4, 1fr); max-width: 1100px; }
}
.dores-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.dores-card img { height: 44px; }
.dores-card h3 { font-size: 1.05rem; font-weight: 600; }
.dores-about {
  max-width: 760px;
  margin: 2.75rem auto 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Soluções === */
#solucoes {
  background:
    linear-gradient(180deg, rgba(1, 25, 17, 0.82), rgba(1, 40, 27, 0.82)),
    url("../images/3342660_1_175914162156914299.webp") center/cover no-repeat;
  color: #fff;
}
#solucoes .section-heading p { color: #d7ece3; }
.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}
.solucoes-card {
  background: #fff;
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.solucoes-card img { max-width: 45%; }
.solucoes-card h3 { font-size: 1.05rem; }
.solucoes-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* === Especialidades === */
#especialidades { text-align: center; }
.especialidades-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}
.especialidade-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 110px;
}
.especialidade-item img { height: 44px; }
.especialidade-item h3 { font-size: 0.9rem; font-weight: 600; }

/* === Benefícios === */
#beneficios { background: var(--color-bg-alt); }
.beneficios-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 801px) {
  .beneficios-layout { grid-template-columns: 1fr 1fr; }
}
.beneficios-list { display: flex; flex-direction: column; gap: 1.1rem; }
.beneficio-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 1.1rem 1.4rem;
}
.beneficio-item .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
}
.beneficio-item .icon svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 3; }
.beneficio-item h3 { font-size: 1rem; font-weight: 600; }

/* === Autoridade === */
#autoridade { text-align: center; }
#autoridade .section-heading p { font-size: 1.05rem; }
.badges-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}
.badges-grid img {
  height: 52px;
  filter: grayscale(1) opacity(0.65);
  transition: filter 0.2s;
}
.badges-grid img:hover { filter: none; }

/* === FAQ === */
#faq .container { max-width: 760px; }
#faq details {
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  margin-bottom: 0.9rem;
  overflow: hidden;
}
#faq summary {
  cursor: pointer;
  padding: 1.4rem 3.5rem 1.4rem 1.75rem;
  position: relative;
  list-style: none;
  font-size: 1.05rem;
  font-weight: 600;
}
#faq summary::-webkit-details-marker, #faq summary::marker { display: none; }
#faq summary h3 { display: inline; font-size: inherit; font-weight: inherit; }
#faq summary::after {
  content: "";
  position: absolute;
  right: 1.75rem;
  top: 50%;
  translate: 0 -50%;
  width: 1.4rem;
  height: 1.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23009966' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transition: transform 0.25s ease;
}
#faq details[open] > summary::after { transform: rotate(180deg) translateY(50%); }
#faq details > p { padding: 0 1.75rem 1.4rem; color: var(--color-text-muted); font-size: 0.95rem; }

/* === CTA final === */
#cta-final {
  position: relative;
  background: linear-gradient(135deg, var(--color-brand-darker) 0%, var(--color-brand) 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta-final-inner { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; }
.cta-final-inner p { margin-top: 0.85rem; font-size: 1.1rem; color: #e4f3ec; }
.cta-final-decor {
  position: absolute;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}
.cta-final-decor--1 { top: 4%; right: 0%; left: 76%; width: 420px; }
.cta-final-decor--2 { bottom: -2%; left: 8%; width: 300px; }
@media (max-width: 600px) {
  .cta-final-decor { display: none; }
}

/* === Footer === */
footer {
  background: var(--color-bg-alt);
  text-align: center;
  padding-block: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
footer p { color: var(--color-text-muted); font-size: 0.85rem; }

/* === WhatsApp float === */
.float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: background 0.2s, transform 0.2s;
}
.float:hover { background: #1ebe5d; transform: scale(1.08); }
.float svg { width: 30px; height: 30px; fill: #fff; }

/* === Breakpoints adicionais === */
@media (max-width: 600px) {
  .container { padding-inline: 1.25rem; }
  section { padding-block: clamp(2.75rem, 10vw, 4rem); }
}
