/* ---------- HERO ---------- */
.hero{
  position: relative;
  background: var(--olive-deep);
  color: var(--cream);
  padding: 90px 24px 130px;
  overflow: hidden;
  isolation: isolate;
}

.hero-inner{
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.hero .spiral{ margin: 0 auto 22px; width: 62px; height: 62px; }
.eyebrow{
  font-family: 'Kalam', cursive;
  color: var(--olive);
  font-size: 1.15rem;
  display: inline-block;
  margin-bottom: 6px;
}
.hero h1{
  font-family:var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin: 0 0 18px;
  letter-spacing: .5px;
}
.hero p{
  font-size: 1.05rem;
  line-height: 1.6;
  color: #EFE3C8;
  margin: 0;
}
 
/* ---------- CONSELHO ---------- */
.council-section{
  position: relative;
  background: var(--olive-deep);
  padding: 90px 24px 130px;
  overflow: hidden;
}
.council-section::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 2px, transparent 2px 26px);
  pointer-events:none;
}
.section-head{
  position: relative;
  z-index:2;
  text-align:center;
  max-width: 620px;
  margin: 0 auto 52px;
}
.section-head h2{
  font-family:'Baloo 2', sans-serif;
  font-weight: 800;
  color: var(--cream);
  font-size: clamp(1.7rem, 3.6vw, 2.3rem);
  margin: 0;
}
.council-section .eyebrow{ color: var(--mustard); }
 
.council-grid{
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
}
.council-card{
  flex: 0 1 320px;
  height: 130px;
  background: var(--cream);
  border-radius: var(--r-card);
  padding: 26px 26px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 24px rgba(36,16,8,0.18);
}
.council-card .council-icon{ width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; background: var(--cream2); border: 2px solid var(--olive); }
.council-name{
  font-family:'Baloo 2', sans-serif;
  font-weight: 700;
  color: var(--espresso);
  font-size: 1.12rem;
  margin: 0 0 2px;
}
.council-role{
  font-family:'Kalam', cursive;
  color: var(--rust);
  font-size: .95rem;
  margin: 0;
}
 
/* ---------- DOCUMENTAÇÃO ---------- */
.docs-section{
  position: relative;
  background: var(--cream2);
  padding: 90px 24px 120px;
  overflow: hidden;
}
.docs-section .section-head h2{ color: var(--espresso); }
.docs-section .eyebrow{ color: var(--rust); }
 
.docs-grid{
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px 24px;
}
 
.doc-card{
  --rot: 0deg;
  background: var(--cream);
  border-radius: var(--r-card);
  padding: 34px 24px 24px;
  position: relative;
  border: 2px solid rgba(51,24,15,0.08);
  display:flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  cursor: pointer;
  transform: rotate(var(--rot)) translateY(0);
  transition: transform .45s cubic-bezier(.22,1,.36,1),
              box-shadow .45s cubic-bezier(.22,1,.36,1),
              border-color .3s ease;
  box-shadow: 0 6px 14px rgba(51,24,15,0.08);
}
.doc-card:hover,
.doc-card:focus-within{
  transform: rotate(0deg) translateY(-10px);
  box-shadow: 0 24px 40px rgba(51,24,15,0.22);
  border-color: var(--accent);
}
 
/* colored folder tab peeking from the top */
.doc-tab{
  position: absolute;
  top: 0; left: 26px;
  width: 44px; height: 9px;
  background: var(--accent);
  border-radius: 0 0 8px 8px;
  transition: height .35s ease;
}
.doc-card:hover .doc-tab{ height: 18px; }
 
/* big faint watermark spiral in the corner */
.doc-spiral-bg{
  position: absolute;
  right: -18px; bottom: -18px;
  width: 96px; height: 96px;
  opacity: .07;
  transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .35s ease;
  pointer-events: none;
}
.doc-card:hover .doc-spiral-bg{ transform: rotate(70deg) scale(1.12); opacity: .14; }
 
.doc-top{
  display:flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.doc-icon-wrap{
  width: 50px; height: 50px;
  flex: none;
}
.doc-icon-wrap svg{
  width: 100%; height: 100%;
  transition: transform .45s cubic-bezier(.22,1,.36,1);
  transform-origin: 50% 85%;
}
.doc-card:hover .doc-icon-wrap svg{ transform: rotate(-10deg) scale(1.08); }
 
.doc-badge{
  font-family: 'Kalam', cursive;
  background: var(--accent);
  color: var(--cream);
  font-size: .72rem;
  line-height: 1;
  padding: 5px 11px 4px;
  border-radius: 20px;
  transform: rotate(4deg);
  white-space: nowrap;
  margin-top: 2px;
}
 
.doc-title{
  font-family:'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--espresso);
  margin: 4px 0 0;
  position: relative;
  display: inline-block;
}
.doc-title::after{
  content:"";
  display:block;
  height: 6px;
  width: 0%;
  margin-top: 3px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 8'><path d='M1 5 Q7 1 13 5 T25 5 T37 5 T49 5 T60 5' fill='none' stroke='%23BBC238' stroke-width='2.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-size: 60px 8px;
  transition: width .45s cubic-bezier(.22,1,.36,1);
}
.doc-card:hover .doc-title::after{ width: 100%; max-width: 140px; }
 
.doc-desc{
  font-size: .93rem;
  color: var(--plum-brown);
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}
 
.doc-link{
  position: relative;
  align-self: flex-start;
  overflow: hidden;
  font-family:'Baloo 2', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  color: var(--espresso);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  z-index: 1;
  transition: color .35s ease;
}
.doc-link::before{
  content:"";
  position: absolute;
  inset: 0;
  background: var(--accent);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.22,1,.36,1);
  z-index: -1;
}
.doc-link:hover::before,
.doc-link:focus::before{ transform: scaleX(1); }
.doc-link:hover,
.doc-link:focus{ color: var(--cream); }
.doc-link svg{ width: 14px; height: 14px; transition: transform .35s ease; }
.doc-link:hover svg{ transform: translateX(4px); }
 
/* footer-ish closing strip (no real footer, just brand sign-off) */
.closing-strip{
  position: relative;
  background: var(--espresso2);
  padding: 46px 24px;
  text-align: center;
}
.closing-strip .spiral{ margin: 0 auto 10px; width: 40px; height: 40px; }
.closing-strip p{
  font-family: 'Kalam', cursive;
  color: var(--olive);
  font-size: 1rem;
  margin: 0;
}