
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');

/* =====================================
   ALÉM DOS PORTÕES
   IDENTIDADE VISUAL
===================================== */

:root {
  --ink: #181818;
  --muted: #666666;
  --bg: #fbfaf7;
  --white: #ffffff;
  --line: #e5e2dc;
  --sand: #f0ece4;
  --dark: #201c1a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font: 16px/1.55 'DM Sans', Arial, sans-serif;
}

a {
  color: inherit;
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -.045em;
}

h1 {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  max-width: 900px;
  margin: 0 0 20px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin: 0 0 15px;
}

h3 {
  font-size: 1.35rem;
  margin: 0 0 10px;
}

p {
  margin: 0 0 15px;
}

/* =====================================
   CABEÇALHO E LOGOMARCA
===================================== */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px max(5vw, 20px);
  background: var(--white);
  gap: 20px;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1;
}

.brand span {
  font-weight: 600;
}

.brand i {
  font-size: .7rem;
  letter-spacing: -.3em;
  margin-left: 10px;
  font-style: normal;
}

.brand-logo {
  display: block;
  width: 210px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.top nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
  font-weight: 600;
}

.top nav a {
  text-decoration: none;
  transition: opacity .2s ease;
}

.top nav a:hover {
  opacity: .55;
}

/* =====================================
   CONTAINERS
===================================== */

.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 75px 25px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* =====================================
   HERO - PORTÕES ABERTOS
===================================== */

.hero {
  min-height: 610px;
  background:
    #e8d1ac
    url('/assets/imagens/hero.png')
    center center / cover no-repeat;

  color: #191919;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 250, 240, .60) 0%,
    rgba(255, 250, 240, .28) 42%,
    rgba(255, 250, 240, .03) 75%,
    rgba(0, 0, 0, .10) 100%
  );
  pointer-events: none;
}

/* Desativa os portões artificiais */

.hero .gate {
  display: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
  padding-top: 95px;
  padding-bottom: 130px;
}

.hero h1 {
  max-width: 1000px;
  margin: 0 auto 20px;
  font-weight: 800;
  letter-spacing: -.055em;
}

.hero .lead {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.25rem;
  font-weight: 500;
}

.hero .eyebrow {
  color: #332b25;
}

.hero .actions {
  justify-content: center;
  margin-top: 30px;
}

.hero .btn.outline {
  background: rgba(255,255,255,.78);
  color: #191919;
  border-color: #191919;
}

.hero .btn.light {
  background: #ffffff;
  color: #191919;
  border-color: #ffffff;
}

/* =====================================
   TEXTOS E ELEMENTOS
===================================== */

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 800;
  font-size: .75rem;
  margin-bottom: 24px;
}

.kicker {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
  color: #777;
}

.lead {
  font-size: 1.15rem;
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.mini {
  font-size: .9rem;
}

.spaced {
  margin-top: 25px;
}

.stat {
  display: inline-block;
  background: var(--sand);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: .8rem;
  font-weight: 700;
}

/* =====================================
   BOTÕES
===================================== */

.btn {
  display: inline-block;
  background: var(--dark);
  color: #ffffff;
  border: 1px solid var(--dark);
  border-radius: 100px;
  padding: 12px 24px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    background .2s ease,
    color .2s ease,
    transform .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.light {
  background: #ffffff;
  color: #161616;
  border-color: #ffffff;
}

.btn.outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =====================================
   PAINÉIS E CARDS
===================================== */

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
}

.strip {
  background: var(--sand);
}

.cards .panel {
  min-height: 180px;
}

/* =====================================
   CARDS DE DOAÇÕES COM IMAGENS
===================================== */

#ajudar .cards {
  align-items: stretch;
}

#ajudar .cards .panel {
  min-height: 300px;
  padding: 195px 25px 28px;
  background-color: #ffffff;
  background-position: top center;
  background-size: 100% 175px;
  background-repeat: no-repeat;
  overflow: hidden;
  border-radius: 20px;
  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

#ajudar .cards .panel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}

#ajudar .cards .panel:nth-child(1) {
  background-image:
    url('/assets/imagens/alimentos.png');
}

#ajudar .cards .panel:nth-child(2) {
  background-image:
    url('/assets/imagens/roupas.png');
}

#ajudar .cards .panel:nth-child(3) {
  background-image:
    url('/assets/imagens/brinquedos.png');
}

#ajudar .cards h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

#ajudar .cards p {
  color: var(--muted);
  font-size: .95rem;
}

/* =====================================
   FORMULÁRIOS
===================================== */

.form {
  max-width: 760px;
}

.form label {
  display: block;
  font-weight: 700;
  font-size: .9rem;
  margin: 14px 0 6px;
}

.form input,
.form select,
.form textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfcac2;
  border-radius: 10px;
  background: #ffffff;
  font: inherit;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 2px solid #a99a88;
  outline-offset: 1px;
}

.form textarea {
  min-height: 90px;
}

.form input[type=checkbox] {
  width: auto;
  display: inline-block;
  margin-right: 8px;
}

.form .check {
  display: flex;
  align-items: flex-start;
  font-weight: 400;
}

/* =====================================
   AVISOS E MENSAGENS
===================================== */

.notice {
  background: #f0f4ed;
  border: 1px solid #cdd9c4;
  padding: 12px 18px;
  border-radius: 12px;
  margin: 16px 0;
}

.error {
  background: #fff0ee;
  border-color: #f1c1b9;
}

.warning {
  color: #9d2f22;
}

/* =====================================
   PAINEL ADMINISTRATIVO
===================================== */

.adminbar {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  background: #222222;
  color: #ffffff;
  padding: 14px 25px;
}

.adminbar a {
  color: #ffffff;
  text-decoration: none;
}

.adminbar a:hover {
  text-decoration: underline;
}

.admin-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.tablewrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: .8rem;
  text-transform: uppercase;
}

small {
  color: var(--muted);
}

.inline {
  display: inline;
}

.inline button {
  font-size: .8rem;
  padding: 7px 12px;
}

/* =====================================
   RODAPÉ
===================================== */

footer {
  background: #181818;
  color: #ffffff;
  padding: 45px max(5vw, 20px);
}

footer a {
  color: #dddddd;
}

footer p {
  color: #bbbbbb;
}

/* =====================================
   TABLETS
===================================== */

@media (max-width: 1000px) {

  .grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 550px;
  }

  .hero h1 {
    font-size: clamp(3rem, 7vw, 5rem);
  }

}

/* =====================================
   CELULARES
===================================== */

@media (max-width: 760px) {

  .top {
    align-items: center;
    flex-direction: column;
    padding: 18px 20px;
    gap: 18px;
  }

  .brand-logo {
    width: 175px;
  }

  .top nav {
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: .85rem;
  }

  .wrap {
    padding: 50px 20px;
  }

  .grid,
  .two {
    grid-template-columns: 1fr;
  }

  .panel {
    padding: 22px;
  }

  .hero {
    min-height: 510px;
    background-position: center center;
  }

  .hero .wrap {
    padding-top: 65px;
    padding-bottom: 90px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .hero .actions {
    justify-content: center;
  }

  #ajudar .cards .panel {
    min-height: 290px;
    padding-top: 195px;
  }

  .adminbar {
    gap: 12px;
    font-size: .9rem;
  }

  h2 {
    font-size: clamp(2rem, 7vw, 3rem);
  }

}

/* =====================================
   TELAS MUITO PEQUENAS
===================================== */

@media (max-width: 420px) {

  .hero {
    min-height: 490px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .actions {
    gap: 10px;
  }

  .hero .btn {
    padding: 11px 17px;
    font-size: .85rem;
  }

  .top nav {
    gap: 12px;
  }

}
