/* ==========================================================================
   AudiSíndicos — Formação de Síndico Profissional
   Design system: "protocolo" — vocabulário visual de documento, selo e ficha,
   inspirado no mundo da administração condominial e da auditoria.
   ========================================================================== */

:root{
  --ink:        #1B1B1B;
  --ink-soft:   #4A4642;
  --gray:       #6E6E6E;
  --paper:      #FBF9F6;
  --sand:       #F1EBE1;
  --sand-deep:  #E8DFCF;
  --line:       #E1D8C8;
  --red:        #BA1A1F;
  --red-dark:   #7E1013;
  --red-tint:   #F7E7E6;
  --white:      #FFFFFF;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius: 2px;
  --shadow-card: 0 18px 40px -22px rgba(27,27,27,0.35);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }

.container{
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 900px){
  .container{ padding: 0 40px; }
}

/* -------------------------------------------------------------------- */
/* Typography                                                            */
/* -------------------------------------------------------------------- */

h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
}

h1{ font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 500; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 500; }
h3{ font-size: 1.3rem; font-weight: 600; }
h4{ font-size: 1.05rem; font-weight: 600; }

p{ margin: 0 0 1em; color: var(--ink-soft); }
strong{ color: var(--ink); font-weight: 700; }

.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 54ch;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:.6em;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.1em;
}
.eyebrow::before{
  content:"";
  width: 22px;
  height: 1px;
  background: var(--red);
  display:inline-block;
}
.eyebrow.on-dark{ color: #E8B7B4; }
.eyebrow.on-dark::before{ background:#E8B7B4; }

.section-head{
  max-width: 640px;
  margin-bottom: 3rem;
}
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head.center .eyebrow{ justify-content:center; }
.section-head.center .eyebrow::before{ display:none; }

/* -------------------------------------------------------------------- */
/* Ledger rule — repeating hairline device used as a divider             */
/* -------------------------------------------------------------------- */

.ledger-rule{
  height: 1px;
  background-image: repeating-linear-gradient(to right, var(--line) 0, var(--line) 10px, transparent 10px, transparent 18px);
  margin: 0;
}

/* -------------------------------------------------------------------- */
/* Buttons                                                               */
/* -------------------------------------------------------------------- */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  padding: .9em 1.7em;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover{ background: var(--red-dark); }

.btn-outline{
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover{ border-color: var(--red); color: var(--red); }

.btn-outline.on-dark{ border-color: rgba(255,255,255,.5); color:#fff; }
.btn-outline.on-dark:hover{ border-color:#fff; }

.btn-ghost{
  background: transparent;
  color: var(--red);
  padding-left: 0;
  padding-right: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
}
.btn-ghost:hover{ color: var(--red-dark); }

.btn-block{ width:100%; }

.btn-row{
  display:flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items:center;
}

/* -------------------------------------------------------------------- */
/* Header / Nav                                                          */
/* -------------------------------------------------------------------- */

.site-header{
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251,249,246,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height: 78px;
}

.brand{ display:flex; align-items:center; }
.brand img{ height: 34px; width:auto; }

.nav-primary{
  display:none;
  align-items:center;
  gap: 2.1rem;
}
.nav-primary a{
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
}
.nav-primary a:hover, .nav-primary a[aria-current="page"]{ color: var(--red); }

.header-actions{ display:flex; align-items:center; gap: .8rem; }
.header-actions .btn{ padding: .7em 1.3em; font-size: .82rem; }

.nav-toggle{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 40px; height:40px;
  background:none; border:1px solid var(--line); border-radius: var(--radius);
}
.nav-toggle span{ position:relative; width:18px; height:1px; background:var(--ink); display:block; }
.nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; width:18px; height:1px; background:var(--ink);
}
.nav-toggle span::before{ top:-6px; }
.nav-toggle span::after{ top:6px; }

.mobile-nav{
  display:none;
  flex-direction:column;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 1rem 24px 1.6rem;
}
.mobile-nav.is-open{ display:flex; }
.mobile-nav a{
  padding: .9rem 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--ink-soft);
}
.mobile-nav a:last-child{ border-bottom:none; }
.mobile-nav .btn{ margin-top: 1rem; }

@media (min-width: 980px){
  .nav-primary{ display:flex; }
  .nav-toggle{ display:none; }
  .mobile-nav{ display:none !important; }
}

/* -------------------------------------------------------------------- */
/* Stamp badge — "carimbo" signature device                              */
/* -------------------------------------------------------------------- */

.stamp{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width: 122px;
  height: 122px;
  border: 1.5px solid var(--red);
  border-radius: 50%;
  transform: rotate(-8deg);
  text-align:center;
  color: var(--red);
  padding: 8px;
  position:relative;
}
.stamp::before{
  content:"";
  position:absolute;
  inset: 6px;
  border: 1px dashed var(--red);
  border-radius: 50%;
  opacity: .55;
}
.stamp .stamp-top{
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.stamp .stamp-mid{
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin: 2px 0;
}
.stamp .stamp-bottom{
  font-size: .5rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity:.85;
}

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

.hero{
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.hero .container{
  display:grid;
  gap: 3rem;
  align-items:center;
}

@media (min-width: 980px){
  .hero .container{ grid-template-columns: 1.05fr .95fr; gap: 4rem; }
}

.hero-copy .stamp{ margin-bottom: 1.6rem; }

.hero h1{ margin-bottom: .55em; }
.hero h1 em{ font-style: italic; color: var(--red); }

.hero .lede{ margin-bottom: 1.8rem; }

.hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap: 1.6rem;
  margin-top: 2.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero-meta div{ min-width: 120px; }
.hero-meta .k{ display:block; font-size:.68rem; letter-spacing:.1em; text-transform:uppercase; color:var(--gray); margin-bottom:.3em; }
.hero-meta .v{ font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }

/* Document / ficha mock card used in hero */
.doc-card{
  position:relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 2rem 2rem;
  box-shadow: var(--shadow-card);
}
.doc-card::before{
  content:"";
  position:absolute;
  top:14px; left:14px; right:-14px; bottom:-14px;
  border: 1px solid var(--sand-deep);
  z-index:-1;
}
.doc-card .doc-head{
  display:flex; align-items:center; justify-content:space-between;
  padding-bottom: 1rem; margin-bottom: 1.2rem;
  border-bottom: 1px dashed var(--line);
}
.doc-card .doc-head .seal{
  width: 46px; height:46px; border-radius:50%;
  border: 1.5px solid var(--red);
  display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); color: var(--red); font-weight:700; font-size: .95rem;
}
.doc-card .doc-head .doc-id{ font-size:.7rem; letter-spacing:.08em; color:var(--gray); text-transform:uppercase; text-align:right; }
.doc-field{ display:flex; justify-content:space-between; gap:1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size:.9rem; }
.doc-field:last-of-type{ border-bottom:none; }
.doc-field .label{ color:var(--gray); }
.doc-field .value{ color:var(--ink); font-weight:600; text-align:right; }
.doc-card .doc-foot{ margin-top:1.4rem; padding-top:1.2rem; border-top:1px dashed var(--line); font-size:.78rem; color:var(--gray); display:flex; align-items:center; gap:.6rem; }
.doc-card .doc-foot .dot{ width:7px; height:7px; border-radius:50%; background:var(--red); display:inline-block; }

/* -------------------------------------------------------------------- */
/* Sections generic                                                      */
/* -------------------------------------------------------------------- */

.section{ padding: 5rem 0; }
.section.sand{ background: var(--sand); }
.section.ink{ background: var(--ink); color: var(--white); }
.section.ink p{ color: rgba(255,255,255,.72); }
.section.ink h2, .section.ink h3{ color: var(--white); }
.section-top-line{ border-top:1px solid var(--line); }

.two-col{ display:grid; gap: 3rem; }
@media (min-width: 980px){
  .two-col{ grid-template-columns: .9fr 1.1fr; gap: 4.5rem; align-items:start; }
  .two-col.reverse{ grid-template-columns: 1.1fr .9fr; }
}

/* Grids of cards */
.grid{ display:grid; gap: 1.6rem; }
.grid-3{ grid-template-columns: 1fr; }
.grid-2{ grid-template-columns: 1fr; }
@media (min-width: 720px){ .grid-2{ grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px){ .grid-3{ grid-template-columns: repeat(3,1fr); } }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.9rem 1.7rem;
  border-radius: var(--radius);
}
.card .num{
  font-family: var(--font-display);
  font-size: .85rem;
  color: var(--red);
  letter-spacing: .06em;
  margin-bottom: .8rem;
  display:block;
}
.card h3{ margin-bottom:.5rem; }
.card p{ margin-bottom:0; font-size: .94rem; }

/* Portrait / avatar frame — used for Luciana, no stock photography */
.portrait-frame{
  position:relative;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--sand) 0%, var(--sand-deep) 100%);
  border: 1px solid var(--line);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.portrait-frame .monogram{
  font-family: var(--font-display);
  font-size: 5.2rem;
  color: rgba(186,26,31,.16);
  letter-spacing: .02em;
}
.portrait-frame .swoosh{
  position:absolute; inset:0;
}
.portrait-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait-frame figcaption{
  position:absolute; left:0; right:0; bottom:0;
  background: rgba(255,255,255,.9);
  border-top: 1px solid var(--line);
  padding: .9rem 1.2rem;
  font-size: .78rem;
  color: var(--gray);
}

.timeline{ border-left: 1px solid var(--line); padding-left: 1.8rem; display:flex; flex-direction:column; gap: 1.8rem; }
.timeline li{ position:relative; }
.timeline li::before{
  content:""; position:absolute; left:-1.8rem; top:.4rem; width:9px; height:9px; border-radius:50%;
  background: var(--red); transform: translateX(-4.5px);
}
.timeline .t-year{ font-family: var(--font-display); font-size:.85rem; color:var(--red); display:block; margin-bottom:.2rem; }

/* -------------------------------------------------------------------- */
/* Course summary chips / list                                           */
/* -------------------------------------------------------------------- */

.check-list{ display:flex; flex-direction:column; gap: .9rem; }
.check-list li{ display:flex; gap: .8rem; align-items:flex-start; font-size:.96rem; color: var(--ink-soft); }
.check-list li::before{
  content:"";
  flex: 0 0 auto;
  width: 16px; height:16px;
  margin-top: .2rem;
  border: 1px solid var(--red);
  display:inline-block;
}

.tag-row{ display:flex; flex-wrap:wrap; gap:.6rem; }
.tag{
  font-size:.74rem; letter-spacing:.04em; text-transform:uppercase; font-weight:700;
  color: var(--red); border:1px solid var(--red); padding: .4em .9em; border-radius: 999px;
}

/* -------------------------------------------------------------------- */
/* Video block                                                           */
/* -------------------------------------------------------------------- */

.video-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0f0f0f;
  border: 1px solid var(--line);
  overflow:hidden;
}
.video-frame iframe{ width:100%; height:100%; border:0; }

/* -------------------------------------------------------------------- */
/* Ebook block                                                           */
/* -------------------------------------------------------------------- */

.ebook-panel{
  display:grid;
  gap: 2.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.4rem;
}
@media (min-width: 860px){ .ebook-panel{ grid-template-columns: .8fr 1.2fr; align-items:center; } }

.ebook-cover{
  aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--ink) 0%, #34302c 100%);
  color: var(--white);
  display:flex; flex-direction:column; justify-content:space-between;
  padding: 1.6rem;
  max-width: 240px;
  border: 1px solid var(--ink);
}
.ebook-cover .e-eyebrow{ font-size:.62rem; letter-spacing:.14em; text-transform:uppercase; color:#E8B7B4; }
.ebook-cover .e-title{ font-family: var(--font-display); font-size: 1.3rem; line-height:1.25; }
.ebook-cover .e-foot{ font-size:.68rem; color: rgba(255,255,255,.6); letter-spacing:.06em; text-transform:uppercase; }

/* -------------------------------------------------------------------- */
/* CTA banner                                                            */
/* -------------------------------------------------------------------- */

.cta-banner{
  background: var(--ink);
  color: var(--white);
  padding: 3.6rem 0;
}
.cta-banner .container{
  display:flex; flex-wrap:wrap; gap: 1.8rem; align-items:center; justify-content:space-between;
}
.cta-banner h2{ color:var(--white); margin-bottom:.35em; font-size: clamp(1.5rem,2.6vw,2rem); }
.cta-banner p{ color: rgba(255,255,255,.68); margin:0; max-width: 46ch; }

/* -------------------------------------------------------------------- */
/* Form (Inscreva-se)                                                    */
/* -------------------------------------------------------------------- */

.form-panel{
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.4rem;
}
.field{ margin-bottom: 1.3rem; }
.field label{ display:block; font-size:.76rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--gray); margin-bottom:.5rem; }
.field input, .field textarea{
  width:100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: .85em 1em;
  font-family: var(--font-body);
  font-size: .96rem;
  color: var(--ink);
  border-radius: var(--radius);
}
.field input:focus, .field textarea:focus{
  outline: 2px solid var(--red);
  outline-offset: 1px;
  background: var(--white);
}
.field textarea{ resize: vertical; min-height: 108px; }
.form-note{ font-size:.8rem; color: var(--gray); margin-top: 1rem; }
.form-success{
  display:none;
  border: 1px solid var(--red);
  background: var(--red-tint);
  padding: 1.2rem 1.4rem;
  font-size: .92rem;
  color: var(--red-dark);
  margin-top: 1.3rem;
}
.form-success.is-visible{ display:block; }

/* -------------------------------------------------------------------- */
/* Blog                                                                   */
/* -------------------------------------------------------------------- */

.post-card{ border: 1px solid var(--line); background: var(--white); display:flex; flex-direction:column; }
.post-card .post-top{ padding: 1.8rem 1.7rem 0; }
.post-card .post-meta{ font-size:.7rem; letter-spacing:.08em; text-transform:uppercase; color:var(--red); margin-bottom:.8rem; }
.post-card h3{ margin-bottom:.7rem; }
.post-card p{ font-size:.92rem; }
.post-card .post-bottom{ margin-top:auto; padding: 1.4rem 1.7rem 1.8rem; }
.post-card .read-more{ font-size:.82rem; font-weight:700; color:var(--red); }

article.post-body{ max-width: 720px; margin: 0 auto; }
article.post-body h2{ margin-top: 1.9em; }
article.post-body h3{ margin-top: 1.5em; }
article.post-body p{ font-size: 1.02rem; }
article.post-body ul, article.post-body ol{ margin: 0 0 1.2em; padding-left: 1.3em; color: var(--ink-soft); }
article.post-body li{ margin-bottom:.5em; }
article.post-body blockquote{
  border-left: 3px solid var(--red);
  margin: 1.8em 0;
  padding: .2em 0 .2em 1.4em;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
}
.post-header{ max-width: 760px; margin: 0 auto 2.4rem; }
.post-header .post-meta{ font-size:.75rem; letter-spacing:.08em; text-transform:uppercase; color:var(--red); margin-bottom:1rem; }
.post-cta{
  max-width: 720px; margin: 3rem auto 0;
  border: 1px solid var(--line); background: var(--sand);
  padding: 2rem; display:flex; flex-wrap:wrap; gap:1.4rem; align-items:center; justify-content:space-between;
}
.post-cta p{ margin:0; max-width: 40ch; }

/* -------------------------------------------------------------------- */
/* Breadcrumb                                                            */
/* -------------------------------------------------------------------- */

.breadcrumb{ font-size:.78rem; color: var(--gray); padding: 1.4rem 0; }
.breadcrumb a{ color: var(--gray); }
.breadcrumb a:hover{ color: var(--red); }
.breadcrumb span{ margin: 0 .5em; }

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

.site-footer{
  background: var(--ink);
  color: rgba(255,255,255,.75);
  padding: 4rem 0 2rem;
}
.footer-grid{
  display:grid; gap: 2.6rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
@media (min-width: 860px){ .footer-grid{ grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-grid img{ height: 30px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-grid p{ color: rgba(255,255,255,.55); font-size:.88rem; max-width: 32ch; }
.footer-col h4{ color:#fff; font-size:.78rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom: 1.1rem; }
.footer-col ul{ display:flex; flex-direction:column; gap:.7rem; }
.footer-col a{ font-size:.9rem; color: rgba(255,255,255,.65); }
.footer-col a:hover{ color:#fff; }
.footer-bottom{
  padding-top: 1.8rem; display:flex; flex-wrap:wrap; gap: .8rem; justify-content:space-between; align-items:center;
  font-size:.78rem; color: rgba(255,255,255,.45);
}

/* -------------------------------------------------------------------- */
/* Utility                                                                */
/* -------------------------------------------------------------------- */

.mt-0{ margin-top:0; }
.center{ text-align:center; }
.visually-hidden{
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
}
.skip-link{
  position:absolute; left:-999px; top:auto;
  background:var(--ink); color:#fff; padding: .8em 1.2em; z-index:200;
}
.skip-link:focus{ left: 16px; top: 16px; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ transition-duration: .001ms !important; animation-duration: .001ms !important; }
}
