/* =========================================================
   Associação Amigos Carroceiros - AAC
   Arquivo CSS único para todas as páginas
   ========================================================= */

:root {
  --verde-escuro: #1b4d2e;
  --verde-medio: #2f6b43;
  --marrom-terra: #5a3717;
  --marrom-claro: #8b6238;
  --azul-profundo: #1a365d;
  --dourado: #c8963e;
  --creme: #f7f1e6;
  --branco: #ffffff;
  --cinza-texto: #283128;
  --cinza-suave: #e9e1d5;
  --sombra: 0 14px 35px rgba(28, 34, 28, 0.12);
  --raio: 18px;
  --largura: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--cinza-texto);
  background: var(--creme);
  line-height: 1.6;
}

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

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

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

li + li {
  margin-top: 0.55rem;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 12px;
  background: var(--azul-profundo);
  color: var(--branco);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  z-index: 999;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 32px, var(--largura));
  margin: 0 auto;
}

/* Header e navegação */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 241, 230, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(90, 55, 23, 0.15);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: var(--verde-escuro);
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-text small {
  color: var(--marrom-terra);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 77, 46, 0.25);
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--verde-escuro);
  border-radius: 999px;
  position: relative;
}

.nav-toggle-label span::before {
  position: absolute;
  top: -7px;
}

.nav-toggle-label span::after {
  position: absolute;
  top: 7px;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--verde-escuro);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus,
.nav-menu a.active {
  background: var(--verde-escuro);
  color: var(--branco);
  transform: translateY(-1px);
}

/* Componentes gerais */
.hero {
  padding: 5rem 0 4rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(200, 150, 62, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(27, 77, 46, 0.12), rgba(90, 55, 23, 0.08));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 0.38rem 0.75rem;
  color: var(--marrom-terra);
  background: rgba(200, 150, 62, 0.18);
  border: 1px solid rgba(200, 150, 62, 0.35);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.15;
  color: var(--verde-escuro);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}

.subtitle {
  margin-top: 1rem;
  color: var(--azul-profundo);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
}

.lead {
  margin-top: 1.15rem;
  font-size: 1.08rem;
  max-width: 72ch;
}

.hero-card {
  background: var(--branco);
  border: 1px solid rgba(90, 55, 23, 0.12);
  border-radius: 30px;
  box-shadow: var(--sombra);
  padding: 1.6rem;
}

.hero-card img {
  width: min(320px, 100%);
  margin: 0 auto;
}

.hero-card figcaption {
  text-align: center;
  color: var(--marrom-terra);
  font-weight: 800;
  margin-top: 0.6rem;
}

.section {
  padding: 4.2rem 0;
}

.section.alt {
  background: var(--branco);
}

.section-header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  align-items: start;
}

.card {
  height: 100%;
  padding: 1.35rem;
  background: var(--branco);
  border: 1px solid rgba(90, 55, 23, 0.14);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.card.highlight {
  border-top: 6px solid var(--dourado);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  border-radius: 16px;
  background: rgba(27, 77, 46, 0.1);
  color: var(--verde-escuro);
  font-size: 1.45rem;
}

.callout {
  padding: 1.4rem;
  border-radius: var(--raio);
  background: linear-gradient(135deg, rgba(27, 77, 46, 0.1), rgba(200, 150, 62, 0.18));
  border: 1px solid rgba(27, 77, 46, 0.16);
}

.alert {
  border-left: 6px solid var(--dourado);
  background: #fff9ec;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: var(--verde-escuro);
  color: var(--branco);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(27, 77, 46, 0.22);
  background: var(--verde-medio);
}

.btn.secondary {
  background: var(--azul-profundo);
}

/* Tabelas responsivas */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  background: var(--branco);
  border: 1px solid rgba(90, 55, 23, 0.12);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  background: var(--branco);
}

.table caption {
  text-align: left;
  padding: 1rem;
  color: var(--marrom-terra);
  font-weight: 800;
}

.table th,
.table td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--cinza-suave);
  vertical-align: top;
}

.table th {
  background: var(--verde-escuro);
  color: var(--branco);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tr:last-child td {
  border-bottom: 0;
}

/* Formulários */
.form-card {
  padding: 1.4rem;
  background: var(--branco);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  border: 1px solid rgba(90, 55, 23, 0.13);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

label,
legend {
  font-weight: 800;
  color: var(--verde-escuro);
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(90, 55, 23, 0.25);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--cinza-texto);
  background: #fffdf8;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(200, 150, 62, 0.35);
  border-color: var(--dourado);
}

fieldset {
  border: 1px solid rgba(90, 55, 23, 0.18);
  border-radius: 14px;
  padding: 0.9rem;
  margin: 0;
}

.radio-group,
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.radio-item,
.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.radio-item input,
.checkbox-row input {
  width: auto;
  min-height: auto;
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: #59635a;
}

.contact-list {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 0;
}

.contact-item {
  padding: 1rem;
  border-radius: 14px;
  background: rgba(27, 77, 46, 0.08);
  border: 1px solid rgba(27, 77, 46, 0.12);
}

.contact-item strong {
  display: block;
  color: var(--verde-escuro);
}

.bank-data {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.bank-data div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(90, 55, 23, 0.14);
}

.bank-data div:last-child {
  border-bottom: 0;
}

/* Rodapé */
.site-footer {
  padding: 2.4rem 0;
  background: var(--verde-escuro);
  color: var(--branco);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.footer-address {
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--dourado);
}

/* Responsividade */
@media (max-width: 900px) {
  .hero-grid,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 3.5rem 0 3rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .navbar {
    min-height: 74px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .brand-text small {
    font-size: 0.68rem;
  }

  .nav-toggle-label {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: grid;
    gap: 0.5rem;
    padding: 0.9rem;
    border-radius: 18px;
    background: var(--branco);
    border: 1px solid rgba(90, 55, 23, 0.14);
    box-shadow: var(--sombra);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-menu a {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }

  .nav-toggle:checked ~ .nav-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .section {
    padding: 3rem 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .table {
    min-width: 0;
  }

  .table thead {
    display: none;
  }

  .table,
  .table tbody,
  .table tr,
  .table td {
    display: block;
    width: 100%;
  }

  .table tr {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--cinza-suave);
  }

  .table td {
    border: 0;
    padding: 0.45rem 0;
  }

  .table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.12rem;
    color: var(--verde-escuro);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .bank-data div {
    display: grid;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 22px, var(--largura));
  }

  .brand-text small {
    display: none;
  }

  .hero-card,
  .card,
  .form-card {
    padding: 1rem;
  }

  .radio-group,
  .button-row {
    display: grid;
  }

  .btn {
    width: 100%;
  }
}

/* Notícias e carrossel */
.section-header.compact {
  margin-bottom: 0;
}

.news-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
}

.news-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(27, 77, 46, 0.18);
  border-radius: 50%;
  background: var(--branco);
  color: var(--verde-escuro);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.carousel-btn:hover,
.carousel-btn:focus {
  transform: translateY(-1px);
  background: var(--verde-escuro);
  color: var(--branco);
}

.carousel-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.news-carousel-wrap {
  position: relative;
}

.news-carousel {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0.1rem 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 77, 46, 0.45) rgba(27, 77, 46, 0.08);
}

.news-carousel::-webkit-scrollbar {
  height: 9px;
}

.news-carousel::-webkit-scrollbar-track {
  background: rgba(27, 77, 46, 0.08);
  border-radius: 999px;
}

.news-carousel::-webkit-scrollbar-thumb {
  background: rgba(27, 77, 46, 0.45);
  border-radius: 999px;
}

.news-card {
  flex: 0 0 calc((100% - 2.2rem) / 3);
  min-width: 285px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--raio);
  background: var(--branco);
  border: 1px solid rgba(90, 55, 23, 0.14);
  box-shadow: var(--sombra);
}

.news-image-link {
  display: block;
  background: linear-gradient(135deg, rgba(27, 77, 46, 0.12), rgba(200, 150, 62, 0.18));
}

.news-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  padding: 0.9rem;
}

.news-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem;
}

.news-content h3 {
  margin-bottom: 0.55rem;
}

.news-content p {
  color: #465046;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--marrom-terra);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-meta span {
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(200, 150, 62, 0.18);
  border: 1px solid rgba(200, 150, 62, 0.28);
}

.read-more {
  display: inline-flex;
  align-items: center;
  margin-top: auto;
  color: var(--verde-escuro);
  font-weight: 900;
}

.read-more::after {
  content: "→";
  margin-left: 0.35rem;
  transition: transform 0.2s ease;
}

.read-more:hover::after,
.read-more:focus::after {
  transform: translateX(3px);
}

.news-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.news-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 77, 46, 0.28);
  cursor: pointer;
}

.news-dots button.active,
.news-dots button:hover,
.news-dots button:focus {
  background: var(--verde-escuro);
}

.button-row.center {
  justify-content: center;
}

.empty-news {
  flex: 1 0 100%;
  padding: 1.6rem;
  border-radius: var(--raio);
  background: var(--branco);
  border: 1px dashed rgba(90, 55, 23, 0.32);
  text-align: center;
}

.page-empty {
  text-align: left;
}

.compact-hero {
  padding: 3.8rem 0 3.2rem;
}

.news-list {
  display: grid;
  gap: 1.3rem;
}

.news-full-card {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 1.3rem;
  padding: 1.1rem;
  border-radius: var(--raio);
  background: var(--branco);
  border: 1px solid rgba(90, 55, 23, 0.14);
  box-shadow: var(--sombra);
  scroll-margin-top: 105px;
}

.news-full-image {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: contain;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(27, 77, 46, 0.12), rgba(200, 150, 62, 0.18));
  padding: 1rem;
}

.news-full-content h2 {
  margin-bottom: 0.75rem;
}

.lead-news {
  color: var(--azul-profundo);
  font-weight: 800;
}

@media (max-width: 900px) {
  .news-toolbar {
    align-items: flex-start;
  }

  .news-card {
    flex-basis: calc((100% - 1.1rem) / 2);
  }

  .news-full-card {
    grid-template-columns: 1fr;
  }

  .news-full-image {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 760px) {
  .news-toolbar {
    display: grid;
  }

  .news-controls {
    justify-content: flex-start;
  }

  .news-card {
    flex-basis: 88%;
  }

  .news-meta {
    display: grid;
    justify-content: start;
  }
}

@media (max-width: 420px) {
  .news-card {
    min-width: 260px;
  }

  .carousel-btn {
    width: 42px;
    height: 42px;
  }
}

.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #e8f5ec;
  border: 1px solid #8bc79c;
  color: #1b4d2e;
  font-weight: 700;
  line-height: 1.5;
}

.form-feedback.show {
  display: block;
}

.form-feedback.erro {
  background: #fff3f0;
  border-color: #d98a7a;
  color: #8b1e12;
} 