/*
  styles.css – Versão refinada

  Layout institucional para a Crucial Contabilidade:
  - Tipografia séria (Inter)
  - Cores sóbrias
  - Espaçamentos confortáveis
  - Acessibilidade (focus states)
*/

/* ===========================
   Variáveis de cores
=========================== */
:root {
  --color-primary: #0b2b61;   /* azul institucional */
  --color-primary-dark: #062046;
  --color-accent: #f59e0b;    /* detalhe dourado */
  --color-light: #f5f7fb;     /* fundo geral */
  --color-dark: #111827;      /* texto principal */
  --color-muted: #6b7280;     /* texto secundário */
  --radius: 8px;
  --max-width: 1200px;
}

/* ===========================
   Reset básico
=========================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background-color: var(--color-light);
  color: var(--color-dark);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Acessibilidade: estado de foco visível */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ===========================
   Layout base / container
=========================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===========================
   Cabeçalho
=========================== */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  z-index: 20;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

/* Navegação */
.nav {
  display: none;
  gap: 1.75rem;
  align-items: center;
}

.nav a {
  color: var(--color-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover {
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
}

/* Menu mobile aberto */
.nav.nav-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 72px;
  right: 1rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.14);
  gap: 0.75rem;
  z-index: 30;
}

/* ===========================
   Hero
=========================== */
.hero {
  background: radial-gradient(circle at top left, #1d4ed8 0, #0b2b61 50%, #020617 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 3vw + 1rem, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
}

.hero p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #e5e7eb;
}

/* Botões */
.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.1s ease;
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #111827;
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background-color: #d97706;
  box-shadow: 0 14px 40px rgba(245, 158, 11, 0.4);
  transform: translateY(-1px);
}

/* ===========================
   Seções genéricas
=========================== */
.section {
  padding: 4rem 0;
}

.section h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0.5rem auto 2.5rem;
  font-size: 0.98rem;
  color: var(--color-muted);
}

/* ===========================
   Cartões de serviços
=========================== */
.cards {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
  border-color: var(--color-accent);
}

.icon-wrapper {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  font-size: 1.6rem;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--color-primary-dark);
}

.card p {
  font-size: 0.96rem;
  color: var(--color-muted);
}

/* ===========================
   Seção Sobre
=========================== */
.sobre p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.02rem;
  color: var(--color-muted);
  line-height: 1.8;
}

/* ===========================
   Seção Depoimentos
=========================== */
.depoimentos {
  background-color: #f9fafb;
}

.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
}

.depoimento-card {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 1.8rem 1.9rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.depoimento-stars {
  color: #f59e0b;
  font-size: 1.1rem;
}

.depoimento-text {
  font-size: 0.98rem;
  color: var(--color-dark);
  font-style: italic;
}

.depoimento-author {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
}

.depoimento-author strong {
  color: var(--color-primary-dark);
  margin-bottom: 0.1rem;
}

/* ===========================
   FAQ
=========================== */
.faq {
  background-color: #ffffff;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: #f9fafb;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(209, 213, 219, 0.8);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--color-dark);
  cursor: pointer;
}

.faq-icon {
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}

.faq-answer {
  display: none;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  color: var(--color-muted);
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* Em telas menores, deixamos o card mais "caixa" */
@media (max-width: 640px) {
  .faq-item {
    border-radius: var(--radius);
  }
}

/* ===========================
   Seção contato
=========================== */
.contato {
  background-color: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.contato__inner {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contato__info {
  flex: 1;
}

.contato__info h2 {
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.contato__info p {
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.contato__details {
  list-style: none;
  padding: 0;
  color: var(--color-muted);
}

.contato__details li {
  margin-bottom: 0.6rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
}

.contato__details svg {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contato__form {
  flex: 1;
  background-color: #f9f9fe;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.form-group {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-group label {
  font-weight: 500;
  color: var(--color-primary-dark);
  font-size: 0.93rem;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 0.97rem;
  font-family: inherit;
  background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.success-message {
  display: none;
  margin-top: 1rem;
  color: #15803d;
  font-weight: 500;
}

/* ===========================
   Rodapé institucional
=========================== */
.footer {
  background-color: #042a64;
  color: #ffffff;
  padding: 3rem 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-desc {
  opacity: 0.85;
  margin-bottom: 1.3rem;
  font-size: 0.95rem;
}

.footer-sub {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-col p {
  font-size: 0.93rem;
  margin-bottom: 0.45rem;
  opacity: 0.9;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  text-decoration: none;
  color: #d7e3ff;
  font-size: 0.93rem;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.footer-links a:hover {
  opacity: 0.78;
  transform: translateX(1px);
}

.footer-bottom {
  margin-top: 2.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.4rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

/* ===========================
   Responsividade geral
=========================== */
@media (min-width: 768px) {
  .nav {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .contato__inner {
    flex-direction: row;
  }
}
