/* Agência T&T — design system */

:root {
  --bg: #0f0e14;
  --bg-alt: #14121f;
  --card: #1a1826;
  --text: #f0f2f8;
  --text-muted: #a8afc4;
  --primary: #8b9cf7;
  --primary-dim: #6b7ed4;
  --cta: #e8944a;
  --cta-hover: #f0a55e;
  --whatsapp: #25d366;
  --whatsapp-hover: #2ee676;
  --border: #2a2840;
  --error: #f87171;
  --radius: 0.5rem;
  --container: 72rem;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--cta);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cta);
  color: #111;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(15, 14, 20, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.logo__accent {
  color: var(--primary);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

.site-nav {
  display: none;
}

.site-nav.is-open {
  display: block;
  position: fixed;
  inset: 4rem 0 0 0;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__list a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
}

.site-nav__list a:hover {
  color: var(--text);
  background: var(--card);
}

.site-nav__whatsapp {
  color: var(--whatsapp) !important;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: none;
    overflow: visible;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
  }
}

/* Typography */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero__inner {
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.hero__lead strong {
  color: var(--text);
}

.hero__hint {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section__header {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section__header--center {
  max-width: 42rem;
  margin-inline: auto;
  text-align: center;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* CTA buttons */
.cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.cta-group--stack {
  margin-top: 1.5rem;
}

@media (min-width: 540px) {
  .cta-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero .cta-group {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary {
  background: var(--cta);
  color: #111;
  border-color: var(--cta);
}

.btn--primary:hover {
  background: var(--cta-hover);
  filter: brightness(1.05);
  color: #111;
}

.btn--whatsapp {
  background: transparent;
  color: var(--whatsapp);
  border-color: var(--whatsapp);
}

.btn--whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  color: var(--whatsapp-hover);
}

.btn--block {
  width: 100%;
}

/* Pain cards */
.pain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pain-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pain-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .pain-list li:last-child {
    grid-column: span 1;
  }

  .pain-list li:nth-child(4) {
    grid-column: 1 / 2;
  }

  .pain-list li:nth-child(5) {
    grid-column: 2 / 4;
  }
}

.pain-card {
  padding: 1.25rem 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pain-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
}

.pain-card p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Pillars */
.pillar-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .pillar-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  height: 100%;
}

.pillar-card h3 {
  color: var(--primary);
}

.pillar-card p {
  margin: 0;
  color: var(--text-muted);
}

.seo-text {
  margin: 0;
  text-align: justify;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Form layout */
.form-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
  }
}

.form-intro {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-intro__title {
  margin-top: 0;
  font-size: 1.25rem;
}

.form-intro__list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.form-intro__list li + li {
  margin-top: 0.5rem;
}

.diagnostico-form {
  padding: 1.5rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--primary-dim);
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label,
.form-fieldset legend {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.optional {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-color: var(--primary);
}

.form-fieldset {
  margin: 0 0 1.25rem;
  padding: 0;
  border: none;
}

.checkbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
  color: var(--text-muted);
}

.checkbox-label input {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--cta);
}

.field-error {
  display: block;
  min-height: 1.25rem;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: var(--error);
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.form-success {
  margin: 1rem 0 0;
  padding: 1rem;
  font-weight: 600;
  text-align: center;
  color: var(--whatsapp);
  background: rgba(37, 211, 102, 0.1);
  border-radius: var(--radius);
  border: 1px solid var(--whatsapp);
}

.diagnostico-form.is-success .form-row,
.diagnostico-form.is-success .form-fieldset,
.diagnostico-form.is-success button[type="submit"],
.diagnostico-form.is-success .form-note {
  display: none;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-cta {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.footer-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.site-footer__copy {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.site-footer__copy a {
  color: var(--text);
}
