/* W Skaf Advocacia
   Títulos na mesma família de letra da placa da fachada (Schola, estilo Century Schoolbook).
   Texto em Atkinson Hyperlegible, desenhada para leitura fácil por pessoas com baixa visão. */

@font-face { font-family: "Schola"; src: url("/assets/fonts/schola-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schola"; src: url("/assets/fonts/schola-bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --green: #0A7D58;        /* verde da placa, um pouco mais fechado para leitura */
  --green-dark: #08654A;
  --green-deep: #0E3B2E;   /* fundo das faixas escuras */
  --green-pale: #E6F1EC;
  --stone: #F2F4F1;        /* fundo claro neutro, levemente esverdeado */
  --ink: #141C18;
  --muted: #5C6863;
  --line: #D5DDD8;
  --teal: #08A6C6;         /* azul da placa: anel de foco */
  --red: #C8283F;          /* vermelho do W: só no aviso de golpes */
  --whats: #1FA855;
  --serif: "Schola", "Century Schoolbook", "TeX Gyre Schola", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
  --max: 1180px;
  --r: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 19px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--green-deep); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.012em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.1; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.022em; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.section { padding: 96px 0; }
.section--tight { padding: 56px 0; }
.section--cream { background: var(--stone); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.note { font-size: .88rem; color: var(--muted); margin-top: 18px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green-deep); color: #fff; padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r); font-family: var(--sans); font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--lg { padding: 16px 26px; font-size: 1.05rem; }
.btn--xl { padding: 20px 30px; font-size: 1.15rem; }
.btn--xl svg { width: 26px; height: 26px; }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--whats { background: var(--green); color: #fff; }
.btn--whats:hover { background: var(--green-dark); color: #fff; }
.btn--outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn--outline:hover { background: var(--green-pale); color: var(--green-dark); }
.btn--light { background: #fff; color: var(--green-deep); }
.btn--light:hover { background: var(--green-pale); color: var(--green-deep); }

/* Faixa de topo e cabeçalho */
.topbar { background: var(--green-deep); color: #CFE3DA; font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; gap: 20px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 82px; }
.header__logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.header__logo img { width: 150px; }
.header__tagline { font-family: var(--serif); font-size: .82rem; line-height: 1.25; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav a:hover { color: var(--green); }
.nav .btn { color: #fff; padding: 11px 18px; font-size: .95rem; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--green-deep); }
.menu-toggle svg { width: 30px; height: 30px; }

/* Abertura */
.hero { background: var(--stone); border-bottom: 1px solid var(--line); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hero__h1 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--green); line-height: 1.4; margin-bottom: 14px; letter-spacing: 0; }
.hero__title { font-family: var(--serif); font-weight: 700; color: var(--green-deep); font-size: clamp(2.2rem, 4.4vw, 3.5rem); line-height: 1.04; letter-spacing: -.03em; max-width: 17ch; margin: 0 0 22px; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 26px; }
.hero__since { font-size: .95rem; color: var(--muted); margin: 0; padding-left: 14px; border-left: 3px solid var(--green); }
.hero__photo { margin: 0; position: relative; padding-bottom: 34px; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; border-radius: var(--r); }

/* A placa: mesmo desenho da placa verde da fachada */
.plaque {
  position: absolute; left: -28px; bottom: 0; background: var(--green); color: #fff; border-radius: var(--r);
  padding: 14px 22px;
}
.plaque strong { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.plaque span { font-size: .88rem; color: #D7EEE4; }


/* Animação: um único momento na abertura, só para quem não pediu menos movimento */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo img { animation: foto-entra .8s ease-out both; }
  .plaque { animation: placa-entra .55s .5s ease-out both; }
  @keyframes foto-entra { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: none; } }
  @keyframes placa-entra { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
}

/* Áreas de atuação */
.areas { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; }
.area-side { display: grid; gap: 48px; align-content: start; }
.area-col { gap: 64px; }
.area > h3 { font-size: 1.6rem; color: var(--green); margin-bottom: 6px; }
.area__intro { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.area__list li { padding: 16px 0; border-top: 1px solid var(--line); }
.area__list li:last-child { border-bottom: 1px solid var(--line); }
.area__list h4 { margin: 0 0 4px; color: var(--ink); }
.area__list p { margin: 0; color: var(--muted); font-size: .98rem; }
.area__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: .98rem; }
.area__cta svg { width: 20px; height: 20px; color: var(--green); }

/* Situações */
.situations-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.situations-wrap .section-head { margin-bottom: 0; position: sticky; top: 120px; }
.situations li { padding: 20px 0; border-top: 1px solid var(--line); }
.situations li:last-child { border-bottom: 1px solid var(--line); }
.situations strong { display: block; font-family: var(--serif); font-size: 1.18rem; color: var(--green-deep); margin-bottom: 4px; }
.situations span { color: var(--muted); font-size: 1rem; }

/* Nossa história */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 72px; align-items: center; }
.about__photo img { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about__text { max-width: 36em; }
.signature { font-family: var(--serif); font-size: 1.35rem; color: var(--green-deep); margin-top: 32px; }
.signature span { display: block; font-family: var(--sans); font-size: .9rem; color: var(--muted); margin-top: 2px; }

/* Valores com a Têmis */
.values { background: var(--green-pale); color: var(--ink); padding: 96px 0; border-top: 1px solid #CFE3DA; border-bottom: 1px solid #CFE3DA; }
.values__inner { display: grid; grid-template-columns: 320px 1fr; gap: 80px; align-items: center; }
.values__art { color: var(--green); display: flex; justify-content: center; }
.values__art svg { width: 100%; max-width: 280px; height: auto; }
.values h2 { color: var(--green-deep); max-width: 20ch; }
.values__lead { color: #CFE3DA; font-size: 1.08rem; max-width: 36em; }
.values__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.value { border-top: 2px solid var(--green); padding-top: 18px; }
.value h3 { color: var(--green-deep); }
.value p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Equipe: os dois no mesmo tamanho */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.member { display: grid; grid-template-columns: 220px 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.member__photo, .member__photo picture, .member__photo img { height: 100%; }
.member__photo img { width: 100%; min-height: 340px; object-fit: cover; object-position: center 20%; }
.member__body { padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.member__role { font-size: .95rem; color: var(--muted); margin-bottom: 4px; }
.member h3 { font-size: 1.4rem; margin-bottom: 10px; }
.member__oab { align-self: flex-start; font-weight: 700; font-size: .9rem; color: var(--green); background: var(--green-pale); padding: 3px 10px; border-radius: var(--r); margin-bottom: 16px; }
.member p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Atendimento (sequência real, por isso numerada) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { border-top: 2px solid var(--green); padding-top: 18px; }
.step__n { display: block; font-size: .95rem; font-weight: 700; color: var(--green); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 1rem; margin: 0; }

/* Visite */
.visit__inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.visit__photo img { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }

/* Aviso de golpes */
.alert { border: 2px solid var(--red); border-radius: var(--r); padding: 30px 34px; background: #FFF6F7; max-width: 900px; }
.alert h2 { color: var(--red); font-size: 1.5rem; margin-bottom: 8px; }
.alert p { margin: 0; }

/* Avaliações */
.reviews { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.reviews h2 { margin-bottom: 4px; }
.reviews p { color: var(--muted); margin: 0; }
.reviews__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Perguntas */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--green-deep); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-family: var(--sans); font-size: 1.6rem; color: var(--green); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding-bottom: 22px; margin: 0; }

/* Contato */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.contact__main > p { color: var(--muted); max-width: 34em; }
.contact__main .btn--xl { margin: 10px 0 18px; }
.contact__alt { font-size: 1rem; color: var(--muted); }
.contact__alt a { font-weight: 700; }
.contact__info { display: grid; gap: 22px; padding-top: 8px; }
.info-item { display: flex; gap: 14px; align-items: flex-start; }
.info-item svg { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 3px; }
.info-item strong { display: block; color: var(--green-deep); }
.info-item span { display: block; color: var(--muted); }
.info-item a { color: var(--green); font-weight: 700; text-decoration: none; }
.info-item a:hover { text-decoration: underline; }
a.info-item--link { color: inherit; text-decoration: none; }
.info-item .info-item__handle { color: var(--green); font-weight: 700; }
a.info-item--link:hover .info-item__handle { text-decoration: underline; }
.map { margin-top: 30px; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: #E3E8E5; }
.map { position: relative; }
.map iframe { position: relative; z-index: 1; width: 100%; height: 100%; border: 0; display: block; }
.map__fallback {
  position: absolute; inset: 0; z-index: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; text-align: center; padding: 20px; text-decoration: none; color: var(--green-deep);
  background: var(--green-pale);
}
.map__fallback svg { width: 34px; height: 34px; color: var(--green); }
.map__fallback span { color: var(--green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Encerramento com a foto dos dois */
.closing { background: var(--green); color: #fff; }
.closing__inner { display: grid; grid-template-columns: 420px 1fr; gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.closing__photo img { border-radius: var(--r); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 55%; width: 100%; }
.closing h2 { color: #fff; }
.closing p { color: #DDF0E8; font-size: 1.1rem; margin-bottom: 26px; }

/* Rodapé */
.footer { background: var(--green-deep); color: #CFE3DA; padding: 64px 0 28px; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.footer img { width: 160px; margin-bottom: 18px; }
.footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer a { color: #CFE3DA; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a:hover { color: #fff; }
.footer ul { display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .88rem; }

/* WhatsApp fixo */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--whats); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
.wa-float svg { width: 34px; height: 34px; }
.mobile-cta { display: none; }

/* Aviso de cookies */
.cookie { position: fixed; left: 20px; bottom: 20px; max-width: 420px; z-index: 70; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; font-size: .92rem; display: none; }
.cookie.is-visible { display: block; }
.cookie p { margin: 0 0 12px; color: var(--muted); }
.cookie .btn { padding: 9px 16px; font-size: .9rem; }

/* Páginas internas */
.page-hero { background: var(--stone); border-bottom: 1px solid var(--line); padding: 44px 0 48px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); margin: 0 0 16px; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: #9AA8A1; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.prose p, .prose li { color: #33403B; }
.center { text-align: center; }
.big-number { font-family: var(--serif); font-size: clamp(5rem, 14vw, 8.5rem); color: var(--green); line-height: 1; margin-bottom: 10px; }
.thanks-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--green-pale); color: var(--green); display: grid; place-items: center; margin: 0 auto 24px; }
.thanks-icon svg { width: 44px; height: 44px; }
.actions-center { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }


/* Livro: discreto, depois da equipe */
.book { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book__inner { display: grid; grid-template-columns: 200px 1fr; gap: 44px; align-items: center; padding-top: 52px; padding-bottom: 52px; max-width: 980px; }
.book__photo img { width: 100%; border-radius: var(--r); }
.book__by { font-size: .92rem; color: var(--muted); margin-bottom: 4px; }
.book h2 { font-size: 1.45rem; margin-bottom: 4px; }
.book__meta { font-size: .92rem; color: var(--muted); }
.book__text p:not(.book__by):not(.book__meta) { font-size: 1rem; color: var(--muted); max-width: 40em; }
.book__link { font-weight: 700; font-size: .98rem; }
.contact__reviews { font-size: .98rem; color: var(--muted); margin-top: 6px; }
.contact__info .alert { padding: 18px 20px; max-width: none; margin-top: 6px; }
.contact__info .alert h3 { color: var(--red); font-size: 1.1rem; margin-bottom: 4px; }
.contact__info .alert p { font-size: .95rem; }
@media (max-width: 560px) { .book__inner { grid-template-columns: 120px 1fr; gap: 20px; padding-top: 40px; padding-bottom: 40px; } .book h2 { font-size: 1.2rem; } }

/* Responsivo */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .header__tagline { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 68px 0; }
  .topbar span:first-child { display: none; }
  .topbar span { font-size: .8rem; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 82px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 22px 24px; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 16px; border-bottom: 0; padding: 14px; }
  .hero__inner { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 56px; }
  .hero__title { max-width: none; }
  .hero__photo { max-width: 460px; }
  .plaque { left: 14px; }
  .areas, .situations-wrap, .about, .faq-wrap, .contact, .visit__inner, .closing__inner { grid-template-columns: 1fr; gap: 40px; }
  .area-col { display: contents; }
  .area--trab { order: 9; }
  .situations-wrap .section-head { position: static; }
  .values__inner { grid-template-columns: 1fr; gap: 36px; }
  .values__art svg { max-width: 190px; }
  .values__list { grid-template-columns: 1fr; gap: 24px; }
  .visit__inner, .closing__inner { padding-top: 64px; padding-bottom: 64px; }
  .closing__photo { order: 2; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .wa-float { display: none; }
  .mobile-cta {
    display: grid; grid-template-columns: 1.6fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); padding: 10px 12px; gap: 10px;
  }
  .mobile-cta .btn { padding: 14px 10px; font-size: 1rem; }
  .mobile-cta .btn--wa { background: var(--green); color: #fff; }
  body { padding-bottom: 80px; }
  .cookie { left: 12px; right: 12px; bottom: 92px; max-width: none; }
}
@media (max-width: 560px) {
  .member { grid-template-columns: 120px 1fr; }
  .member__photo img { min-height: 220px; }
  .member__body { padding: 18px; }
  .member h3 { font-size: 1.2rem; }
  .topbar span { display: none; }
  .topbar__inner { justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .alert { padding: 24px 22px; }
  .btn--xl { width: 100%; padding: 18px 16px; font-size: 1.05rem; }
  .hero__ctas .btn { width: 100%; }
  .header__logo img { width: 132px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
