/* ===========================================================
   Amado & Filhos — Mediação de Seguros · design system
   Papel de apólice + tinta permanente + carimbo
   Zilla Slab / Public Sans / IBM Plex Mono
   =========================================================== */

:root {
  --papel:    #FAFAF6;
  --papel-2:  #F1EFE7;
  --tinta:    #1C2B4A;
  --tinta-2:  #131F38;
  --muted:    #4C5872;
  --azul:     #2E4D8E;
  --azul-2:   #24407A;
  --carimbo:  #A93830;
  --linha:    #D8D9D2;
  --linha-2:  #C4C6BD;

  --maxw: 1140px;
  --r: 6px;
  --shadow-sm: 0 2px 8px rgba(28,43,74,.07);
  --shadow: 0 12px 32px rgba(28,43,74,.11);

  --font-head: 'Zilla Slab', 'Georgia', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  color: var(--tinta);
  background: var(--papel);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--tinta); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.28rem; }
p  { color: var(--muted); }
a  { color: var(--azul); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section    { padding: clamp(60px, 8.5vw, 110px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.bg-papel  { background: var(--papel); }
.bg-papel2 { background: var(--papel-2); }
.bg-tinta  { background: var(--tinta); }
.bg-tinta h2, .bg-tinta h3 { color: #fff; }
.bg-tinta p { color: #B9C3D8; }

/* mono eyebrow — form-field label vernacular */
.rotulo {
  display: inline-block; font-family: var(--font-mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--carimbo);
  padding-bottom: 6px; border-bottom: 1px solid var(--linha-2); margin-bottom: 14px;
}
.bg-tinta .rotulo { color: #E8A69F; border-color: rgba(255,255,255,.25); }

.section-head { max-width: 660px; margin: 0 auto clamp(34px,5vw,52px); text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { margin-top: 12px; font-size: 1.05rem; }

/* ledger double rule */
.regra { border: 0; border-top: 3px double var(--linha-2); margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px;
  border-radius: var(--r); font-weight: 600; font-size: .98rem; font-family: var(--font-body);
  border: 1.5px solid transparent; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn svg { width: 17px; height: 17px; }
.btn-tinta { background: var(--tinta); color: #fff; }
.btn-tinta:hover { background: var(--tinta-2); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-contorno { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn-contorno:hover { background: var(--tinta); color: #fff; }
.btn-branco { background: #fff; color: var(--tinta); }
.btn-branco:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ===========================================================
   NAV
   =========================================================== */
.nav-overlay { position: fixed; inset: 0; background: rgba(19,31,56,.5); opacity: 0; visibility: hidden; transition: .3s; z-index: 90; }
.nav-overlay.show { opacity: 1; visibility: visible; }

.navbar { position: sticky; top: 0; z-index: 100; background: var(--papel); border-bottom: 1px solid var(--linha); transition: box-shadow .3s, padding .3s; padding: 13px 0; }
.navbar.scrolled { box-shadow: var(--shadow-sm); padding: 8px 0; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.nav-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-head); font-size: 1.28rem; font-weight: 600; color: var(--tinta); line-height: 1.1; }
.nav-logo .sub { display: block; font-family: var(--font-mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.nav-mark { flex: none; }

.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: var(--r);
  color: var(--tinta); font-weight: 500; font-size: .94rem; background: none; border: none;
  font-family: var(--font-body); cursor: pointer; transition: background .18s, color .18s;
}
.nav-link:hover { color: var(--azul); background: #EDEDE4; }
.nav-link.active, .has-drop.active > .nav-link { color: var(--carimbo); }
.nav-cta {
  display: inline-flex; padding: 10px 18px; border-radius: var(--r); background: var(--tinta);
  color: #fff; font-weight: 600; font-size: .92rem; transition: background .18s;
}
.nav-cta:hover { background: var(--azul-2); }
.caret { transition: transform .25s; }

.has-drop { position: relative; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 8px; min-width: 210px; background: #fff;
  border: 1px solid var(--linha); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 8px; list-style: none; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .22s; z-index: 50;
}
.has-drop:hover .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-drop:hover .caret { transform: rotate(180deg); }
.drop-link { display: block; padding: 9px 13px; border-radius: 4px; color: var(--tinta); font-size: .92rem; font-weight: 500; transition: background .18s, color .18s; }
.drop-link:hover { background: var(--papel-2); color: var(--azul); }
.drop-link.active { color: var(--carimbo); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 110; }
.hamburger span { width: 25px; height: 2.5px; background: var(--tinta); border-radius: 2px; transition: .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 920px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: var(--papel);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 82px 20px 30px;
    transform: translateX(100%); transition: transform .32s; z-index: 100; overflow-y: auto;
    border-left: 1px solid var(--linha);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link, .nav-cta { width: 100%; justify-content: space-between; font-size: 1.02rem; padding: 12px 14px; }
  .nav-cta { margin-top: 10px; justify-content: center; }
  .has-drop { display: flex; flex-direction: column; }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; background: transparent; max-height: 0; overflow: hidden; transition: max-height .3s; padding: 0 0 0 14px;
  }
  .has-drop.open .dropdown { max-height: 420px; }
  .has-drop.open .caret { transform: rotate(180deg); }
}

/* ===========================================================
   HERO — cabeçalho de apólice
   =========================================================== */
.hero { position: relative; padding: clamp(50px,7vw,86px) 0 clamp(56px,8vw,96px); border-bottom: 3px double var(--linha-2); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px,5vw,60px); align-items: center; }

.timbre { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 1px solid var(--linha-2); }
.timbre strong { color: var(--carimbo); font-weight: 500; }

.hero h1 em { font-style: normal; color: var(--azul); }
.hero .lead { font-size: 1.14rem; max-width: 32em; margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }
.hero-nota { margin-top: 26px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 9px; }
.hero-nota svg { width: 18px; height: 18px; color: var(--azul); flex: none; }

/* o selo — assinatura da página */
.selo-wrap { display: grid; place-items: center; }
.selo { width: min(320px, 70vw); transform: rotate(-7deg); filter: drop-shadow(0 10px 24px rgba(28,43,74,.13)); }
@media (prefers-reduced-motion: no-preference) {
  .selo { animation: carimbar .7s cubic-bezier(.34,1.4,.5,1) both; animation-delay: .25s; }
  @keyframes carimbar { from { opacity: 0; transform: rotate(-7deg) scale(1.5); } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
}

/* ===========================================================
   BALCÃO STRIP — respostas rápidas
   =========================================================== */
.balcao { border-bottom: 1px solid var(--linha); background: var(--papel-2); }
.balcao .container { display: grid; grid-template-columns: repeat(3,1fr); }
.balcao-item { padding: 22px 26px; border-left: 1px solid var(--linha-2); display: block; color: var(--tinta); transition: background .18s; }
.balcao-item:first-child { border-left: none; }
.balcao-item:hover { background: #ECEAE0; }
.balcao-item .bi-q { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; display: block; }
.balcao-item .bi-a { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--azul); margin-top: 6px; display: inline-block; }

/* ===========================================================
   FICHAS DE RAMO
   =========================================================== */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }

.ficha { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 0; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s; }
.ficha:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--tinta); }
.ficha-top { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); padding: 13px 22px; border-bottom: 1px solid var(--linha); display: flex; justify-content: space-between; }
.ficha-top .num { color: var(--carimbo); }
.ficha-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.ficha-body h3 { margin-bottom: 12px; }
.ficha-linhas { list-style: none; flex: 1; }
.ficha-linhas li { font-size: .93rem; color: var(--muted); padding: 7px 0; border-bottom: 1px dotted var(--linha-2); display: flex; gap: 9px; align-items: baseline; }
.ficha-linhas li::before { content: '—'; color: var(--azul); flex: none; }
.ficha-link { margin-top: 16px; font-weight: 600; font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; }
.ficha-link svg { width: 14px; height: 14px; transition: transform .2s; }
.ficha:hover .ficha-link svg { transform: translateX(3px); }

/* ===========================================================
   PORQUÊ MEDIADOR / features
   =========================================================== */
.razao { padding: 26px 0; border-top: 1px solid var(--linha-2); }
.razao:first-child { border-top: 3px double var(--linha-2); }
.razao-grid { display: grid; grid-template-columns: 56px 1fr 1.4fr; gap: 20px 28px; align-items: baseline; }
.razao-num { font-family: var(--font-mono); font-size: .8rem; color: var(--carimbo); letter-spacing: .1em; }
.razao h3 { font-size: 1.3rem; }
.razao p { font-size: .98rem; }

/* ===========================================================
   TESTEMUNHOS — vozes do balcão
   =========================================================== */
.voz { background: #fff; border: 1px solid var(--linha); border-left: 3px solid var(--carimbo); border-radius: var(--r); padding: 26px 26px 22px; height: 100%; display: flex; flex-direction: column; }
.voz p { font-family: var(--font-head); font-size: 1.08rem; color: var(--tinta); flex: 1; font-style: italic; }
.voz .voz-quem { margin-top: 16px; font-size: .86rem; color: var(--muted); font-style: normal; font-family: var(--font-body); }
.voz .voz-quem strong { color: var(--tinta); display: block; font-size: .93rem; }

/* ===========================================================
   CTA BAND
   =========================================================== */
.cta-band { background: var(--tinta); border-radius: var(--r); padding: clamp(34px,5vw,52px); display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B9C3D8; margin-top: 8px; max-width: 36em; }
.cta-horario { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .06em; color: #8FA0C4; margin-top: 14px; }

/* ===========================================================
   PAGE HERO (páginas interiores)
   =========================================================== */
.page-hero { padding: clamp(42px,6vw,68px) 0 clamp(34px,5vw,52px); border-bottom: 3px double var(--linha-2); }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--azul); }
.crumb .sep { color: var(--linha-2); }
.page-hero p.lead { font-size: 1.1rem; max-width: 38em; margin-top: 14px; }

/* ===========================================================
   FAQ — perguntas de sempre
   =========================================================== */
.faq-lista { max-width: 780px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--linha-2); }
.faq-item:first-child { border-top: 3px double var(--linha-2); }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 4px; cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 600; font-size: 1.14rem; color: var(--tinta); }
.faq-q::-webkit-details-marker { display: none; }
.faq-q .mais { font-family: var(--font-mono); color: var(--carimbo); font-size: 1.1rem; flex: none; transition: transform .25s; }
details[open] .faq-q .mais { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; color: var(--muted); max-width: 62em; }
.faq-a p + p { margin-top: 10px; }
.faq-a strong { color: var(--tinta); }

/* ===========================================================
   PASSOS (sinistros)
   =========================================================== */
.passos { counter-reset: passo; max-width: 780px; margin: 0 auto; }
.passo { counter-increment: passo; display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--linha-2); }
.passo::before { content: counter(passo, decimal-leading-zero); font-family: var(--font-mono); font-size: 1.5rem; color: var(--carimbo); line-height: 1.2; }
.passo h3 { font-size: 1.2rem; margin-bottom: 6px; }
.passo p { font-size: .98rem; }
.aviso { max-width: 780px; margin: 30px auto 0; background: #fff; border: 1px solid var(--linha); border-left: 3px solid var(--azul); border-radius: var(--r); padding: 18px 22px; font-size: .95rem; color: var(--muted); display: flex; gap: 12px; align-items: flex-start; }
.aviso svg { width: 20px; height: 20px; color: var(--azul); flex: none; margin-top: 2px; }
.aviso strong { color: var(--tinta); }

/* lista de coberturas isolada (páginas de ramo) */
.linhas-solo { max-width: 720px; background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 8px 26px; }
.linhas-solo li:last-child { border-bottom: none; }
.linhas-solo li strong { color: var(--tinta); }

/* ===========================================================
   CHECKLIST (o que precisamos de si)
   =========================================================== */
.checklist { list-style: none; max-width: 640px; }
.checklist li { padding: 11px 0 11px 34px; border-bottom: 1px dotted var(--linha-2); position: relative; color: var(--muted); font-size: .98rem; }
.checklist li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 15px; height: 15px; border: 1.5px solid var(--azul); border-radius: 3px; }
.checklist li::after { content: ''; position: absolute; left: 8px; top: 18px; width: 7px; height: 4px; border-left: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: rotate(-45deg); }

/* ===========================================================
   FORM — contacto
   =========================================================== */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px,5vw,56px); align-items: start; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.campo input, .campo select, .campo textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--linha-2); border-radius: var(--r);
  font-family: var(--font-body); font-size: .98rem; color: var(--tinta); background: #fff; transition: border-color .18s, box-shadow .18s;
}
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(46,77,142,.12); }
.campo textarea { min-height: 130px; resize: vertical; }
.form-nota { font-size: .84rem; color: var(--muted); margin-top: 12px; }
.form-ok { display: none; background: #fff; border: 1px solid var(--linha); border-left: 3px solid var(--carimbo); border-radius: var(--r); padding: 18px 22px; margin-top: 16px; color: var(--muted); font-size: .95rem; }
.form-ok.show { display: block; }
.form-ok strong { color: var(--tinta); }

.info-bloco { background: #fff; border: 1px solid var(--linha); border-radius: var(--r); padding: 26px; }
.info-row { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; border-bottom: 1px dotted var(--linha-2); font-size: .96rem; color: var(--muted); }
.info-row:last-child { border-bottom: none; }
.info-row svg { width: 20px; height: 20px; color: var(--carimbo); flex: none; margin-top: 3px; }
.info-row strong { color: var(--tinta); display: block; font-size: .98rem; }
.info-row a { font-weight: 600; }

/* ===========================================================
   FOOTER
   =========================================================== */
.site-footer { background: var(--tinta); color: #B9C3D8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding: clamp(44px,6vw,64px) 0 36px; }
.footer-grid h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.footer-logo { font-family: var(--font-head); font-size: 1.3rem; color: #fff; font-weight: 600; }
.footer-logo .sub { display: block; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: #8FA0C4; margin-top: 4px; }
.footer-grid p { color: #8FA0C4; font-size: .9rem; margin-top: 12px; }
.footer-links { list-style: none; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #B9C3D8; font-size: .93rem; transition: color .18s; }
.footer-links a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255,255,255,.14); padding: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: #8FA0C4; }
.footer-base a { color: #B9C3D8; }

/* ===========================================================
   REVEAL
   =========================================================== */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.d1 { transition-delay: .1s; } .fade-in.d2 { transition-delay: .2s; } .fade-in.d3 { transition-delay: .3s; }
.fade-in.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } .selo { animation: none; } }

:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 3px; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .selo-wrap { order: -1; }
  .selo { width: min(230px, 52vw); margin-bottom: -8px; }
  .balcao .container { grid-template-columns: 1fr; padding: 0; }
  .balcao-item { border-left: none; border-top: 1px solid var(--linha-2); }
  .balcao-item:first-child { border-top: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .razao-grid { grid-template-columns: 1fr; gap: 6px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .passo { grid-template-columns: 44px 1fr; gap: 14px; }
  .cta-band { padding: 28px 22px; }
}
