/* Dell'Iris — Central de Documentos
   Recriação do site central.delliris.com.br */

:root{
  --maroon: #630B0B;
  --maroon-dark: #2B0000;
  --card-bg: rgba(43, 0, 0, .49);
  --card-border: rgba(255, 255, 255, .85);
  --card-border-soft: rgba(255, 255, 255, .55);
  --pill-border: rgba(255, 255, 255, .45);
  --white: #ffffff;
  --text-soft: rgba(255, 255, 255, .78);
  --text-softer: rgba(255, 255, 255, .55);
  --radius-lg: 16px;
  --radius-pill: 999px;
  --max-w: 1080px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  background: var(--maroon);
  color: var(--white);
  font-family: "Open Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
}

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

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

.wrap{
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2{
  font-family: Roboto, sans-serif;
  font-weight: 400;
  margin: 0;
}

h1{ font-size: 47px; line-height: 1.2; }
h1 em{ font-style: italic; font-weight: 300; }

h2{ font-size: 36px; }

/* ---------- Hero ---------- */

.hero{
  padding: 80px 0 40px;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy p{
  font-size: 17px;
  color: var(--text-soft);
  max-width: 480px;
  margin: 18px 0 0;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--maroon);
  font-weight: 700;
  font-size: 17px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.faq-cta{
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: rgba(43, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
}

.faq-cta h3{
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}

.faq-cta p{
  margin: 0;
  font-size: 14.5px;
  color: var(--text-soft);
  max-width: 480px;
}

/* ---------- Sticky nav ---------- */

.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon-dark);
}

.navbar .wrap{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
}

.nav-pill{
  border: 0.8px solid var(--pill-border);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
}

.nav-pill.solid{
  background: var(--white);
  color: var(--maroon);
  border-color: transparent;
}

/* ---------- Sections & cards ---------- */

section.doc-section{
  padding: 48px 0 8px;
}

.section-head{
  margin-bottom: 24px;
}

.section-head h2{ margin-bottom: 8px; }

.section-head p{
  margin: 0;
  font-size: 13.5px;
  color: var(--text-softer);
}

.card-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

.card{
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1.6px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
}

.c-badge{
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--white);
  color: var(--maroon);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

.c-top{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.c-ic{
  width: 46px;
  height: 46px;
  background: var(--white);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-ic .ic{ width: 24px; height: 24px; }

.c-tag{
  background: rgba(255, 255, 255, .14);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}

.card.has-badge .c-tag{ display: none; }

.card h3{
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 6px;
}

.card .c-sub{
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0;
  flex-grow: 1;
}

.card .c-go{
  align-self: flex-start;
  margin-top: 18px;
  background: var(--white);
  color: var(--maroon);
  font-weight: 700;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 42px;
}

/* ---------- Footer ---------- */

footer{
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 40px;
}

footer .wrap{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 10px;
}

.f-brand{
  display: flex;
  align-items: center;
  gap: 12px;
}

.f-brand img{
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.f-brand strong{ display: block; font-size: 16px; }
.f-brand span{ display: block; font-size: 11.5px; letter-spacing: .5px; color: var(--text-softer); text-transform: uppercase; }

.f-social{
  display: flex;
  gap: 10px;
}

.f-social a{
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.f-copy{
  text-align: center;
  font-size: 12.5px;
  color: var(--text-softer);
  padding: 18px 0 28px;
}

/* ---------- FAQ page ---------- */

.back-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--maroon);
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  margin: 40px 0 24px;
}

.faq-header p{
  font-size: 15.5px;
  color: var(--text-soft);
  max-width: 640px;
  margin: 10px 0 0;
}

.stats{
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 16px;
  max-width: 520px;
  margin: 28px 0 28px;
}

.stat{
  background: var(--card-bg);
  border: 1.6px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

.stat .num{ font-size: 20px; font-weight: 700; }
.stat .lbl{ font-size: 12px; color: var(--text-softer); }

.search-wrap{
  position: relative;
  margin-bottom: 20px;
}

.search-wrap i{
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-softer);
  font-size: 18px;
}

#search{
  width: 100%;
  background: var(--card-bg);
  border: 1.6px solid var(--card-border);
  border-radius: 42px;
  color: var(--white);
  padding: 14px 16px 14px 46px;
  font-size: 15px;
  font-family: inherit;
}

#search::placeholder{ color: var(--text-softer); }

.cat-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.cat-pill{
  border: 0.8px solid var(--pill-border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cat-pill .count{ opacity: .75; }

.cat-pill.active{
  background: var(--white);
  color: var(--maroon);
  border-color: transparent;
}

.cat-section{ margin-bottom: 36px; }

.cat-section .category-header{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cat-section .category-header h2{ font-size: 24px; }
.cat-section .category-header .qcount{ font-size: 13px; color: var(--text-softer); }

.qa-item{
  background: var(--card-bg);
  border: 1.6px solid var(--card-border-soft);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
}

.qa-q{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  cursor: pointer;
}

.qmark{
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  color: var(--maroon);
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qtext{ flex-grow: 1; font-size: 15.5px; font-weight: 600; }

.chev{ color: var(--text-softer); transition: transform .2s ease; }

.qa-item.open .chev{ transform: rotate(180deg); }

.qa-a{
  display: none;
  padding: 0 20px 20px 54px;
  font-size: 14.5px;
  color: var(--text-soft);
  white-space: pre-line;
}

.qa-item.open .qa-a{ display: block; }

.no-results{
  display: none;
  color: var(--text-softer);
  font-size: 15px;
  padding: 20px 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 760px){
  .hero{ padding-top: 40px; }
  .hero-grid{ grid-template-columns: 1fr; }
  h1{ font-size: 34px; }
  h2{ font-size: 26px; }
  .card-grid{ grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .stats{ grid-template-columns: repeat(3, 1fr); }
  footer .wrap{ justify-content: center; text-align: center; }
}
