/* Smanio Farran Advocacia — folha de estilo única do site.
   Especificação: "Construção do Site 202610" (Drive), desktop v5 e mobile aprovados em 20/10/2026.
   Grid: container de 1240 px, 12 colunas, gutter de 32 px. Layout desktop acima de 900 px; mobile até 900 px;
   menu compacto até 1100 px. */

:root {
  --navy: #0B162A;
  --orange: #C83803;
  --orange-dark: #A92F02;
  --bg: #F9FAFB;
  --bg-alt: #EBEFF3;
  --white: #FFFFFF;
  --text: #596473;
  --blue-soft: #8EA3B8;
  --line: #DEE4E9;
  --line-alt: #D5DCE3;
  --on-navy: #F7F8FA;
  --on-navy-muted: #B8C2CF;
  --line-on-navy: rgba(184, 194, 207, 0.3);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 104px;
  --gutter: 32px;
  --side: 40px;
  --sec-top: 96px;
  --sec-bottom: 104px;

  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); text-wrap: balance; }
a { color: var(--navy); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--orange); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 2px; }
section[id] { scroll-margin-top: 0; }
html.menu-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 4px; font-weight: 500;
}
.skip:focus { top: 16px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Grid ---------- */
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-left: max(var(--side), env(safe-area-inset-left, 0px));
  padding-right: max(var(--side), env(safe-area-inset-right, 0px));
  box-sizing: content-box;
}
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.c1-5 { grid-column: 1 / span 5; }
.c1-6 { grid-column: 1 / span 6; }
.c1-10 { grid-column: 1 / span 10; }
.c7-12 { grid-column: 7 / span 6; }
.g12 > *, .g3 > * { min-width: 0; }

.sec { padding-top: var(--sec-top); padding-bottom: var(--sec-bottom); }
.bg-alt { background: var(--bg-alt); }
.bg-navy { background: var(--navy); }

/* ---------- Tipografia ---------- */
.h2 { font-weight: 400; font-size: 42px; line-height: 1.1; letter-spacing: -0.01em; }
.lead { font-size: 18px; line-height: 1.65; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em;
  line-height: 1; color: var(--orange); text-transform: uppercase;
}

/* ---------- Ícones, botões e links ---------- */
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 28px; border: 0; border-radius: 5px;
  background: var(--orange); color: var(--on-navy);
  font-family: var(--sans); font-size: 15px; font-weight: 600; letter-spacing: .01em; line-height: 1;
  cursor: pointer; transition: background-color .18s ease;
}
.btn:hover { background: var(--orange-dark); color: var(--on-navy); }
.btn .ico { transition: transform .18s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-sm { height: 44px; padding: 0 22px; }

.tlink {
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--navy);
  color: var(--navy); font-size: 15px; font-weight: 500; line-height: 1.3;
  transition: color .18s ease, border-color .18s ease;
}
.tlink:hover { color: var(--orange); border-color: var(--orange); }
.tlink .ico { transition: transform .18s ease; }
.tlink:hover .ico { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: relative; z-index: 20; }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex-direction: column; gap: 9px; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 29px; letter-spacing: 0.07em; color: var(--on-navy); }
.brand-sub { font-family: var(--serif); font-weight: 500; font-size: 13px; letter-spacing: 0.42em; color: var(--orange); }
.brand:hover .brand-name { color: var(--white); }

.nav { display: flex; align-items: center; gap: 52px; }
.nav ul { display: flex; align-items: center; gap: 44px; }
.nav ul a {
  position: relative; display: inline-block; padding: 12px 0;
  font-size: 16px; font-weight: 500; letter-spacing: 0.01em; color: var(--on-navy-muted);
}
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--white); }
.nav ul a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; bottom: 2px; width: 18px; height: 2px; background: var(--orange);
}

.menu-btn {
  display: none; align-items: center; gap: 10px; height: 44px; padding: 0 0 0 12px;
  background: none; border: 0; color: var(--on-navy); cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500;
}

/* Menu em tela cheia (telas até 1100 px) */
.menu {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column;
  background: var(--navy); color: var(--on-navy-muted); overflow-y: auto;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.menu[hidden] { display: none; }
.menu-top {
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid rgba(184, 194, 207, 0.14);
}
.menu-nav { padding: 24px max(24px, env(safe-area-inset-right, 0px)) 0 max(24px, env(safe-area-inset-left, 0px)); }
.menu-nav ul a {
  display: block; padding: 20px 0; border-bottom: 1px solid rgba(184, 194, 207, 0.16);
  font-family: var(--serif); font-size: 30px; line-height: 1.1; color: var(--on-navy);
}
.menu-nav ul a:hover { color: var(--white); }
.menu-nav .btn { display: flex; width: 100%; margin-top: 36px; font-size: 16px; }
.menu-channels {
  margin-top: auto; padding: 32px max(24px, env(safe-area-inset-right, 0px)) 36px max(24px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 2px; font-size: 15px;
}
.menu-channels a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--on-navy-muted); }
.menu-channels a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--bg); height: clamp(600px, calc(100svh - var(--header-h)), 780px); }
.hero .g12 { height: 100%; align-items: center; }
.hero-txt { padding-right: 40px; }
.hero h1 { font-weight: 500; font-size: clamp(46px, 4.3vw, 62px); line-height: 1.07; letter-spacing: -0.015em; }
.hero-sub { margin-top: 28px; max-width: 500px; font-size: 18px; line-height: 1.65; }
.hero-ctas { margin-top: 40px; display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; left: calc(50% + 16px); }
.hero-photo img, .sobre-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo img { object-position: 50% 0%; }

/* ---------- O Escritório ---------- */
.stmt { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.32; letter-spacing: -0.005em; color: var(--navy); }
.escritorio .stmt-row { margin-top: 40px; }
.escritorio .body-row { margin-top: 48px; font-size: 17px; }

/* ---------- Atuação ---------- */
.atuacao-intro { padding-top: 6px; }
.area-title { margin: 72px 0 24px; font-weight: 500; font-size: 28px; line-height: 1.2; }
.rows { border-bottom: 1px solid var(--line); }
.row { padding: 32px 0 36px; border-top: 1px solid var(--line); align-items: start; }
.row h4 { padding-right: 24px; font-weight: 500; font-size: 26px; line-height: 1.25; }
.row p + p { margin-top: 12px; }
.empresas { margin-top: 96px; align-items: start; }
.empresas h3 { font-weight: 500; font-size: 24px; line-height: 1.2; }
.empresas p { padding-top: 3px; font-size: 15.5px; }
.rows-sm { margin-top: 28px; }
.rows-sm .row { padding: 20px 0 22px; }
.rows-sm .row h4 { font-size: 19px; line-height: 1.3; }
.rows-sm .row p { font-size: 15px; }

/* ---------- Como Trabalho ---------- */
.como { padding-top: 104px; padding-bottom: 112px; }
.como .h2 { color: var(--on-navy); }
.principios { margin-top: 56px; }
.principio { padding-top: 28px; padding-right: 24px; border-top: 1px solid var(--line-on-navy); }
.principio h3 { font-weight: 400; font-size: 34px; line-height: 1.12; letter-spacing: -0.01em; color: var(--on-navy); }
.principio p { margin-top: 22px; color: var(--on-navy-muted); }

/* ---------- Sobre o Fundador ---------- */
.sobre { position: relative; background: var(--bg); }
.sobre-photo { position: absolute; top: 0; bottom: 0; left: 0; width: calc(50% - 122px); }
.sobre-photo img { object-position: 50% 25%; }
.sobre .g12 { min-height: 600px; align-items: center; padding-block: 96px; }
.sobre .h2 { margin-top: 20px; }
.sobre-oab { margin-top: 12px; font-size: 15px; letter-spacing: 0.01em; }
.sobre-lead { margin-top: 32px; font-size: 18px; line-height: 1.6; color: var(--navy); }
.sobre-txt p.body { margin-top: 18px; }
.sobre-link { margin-top: 36px; }

/* ---------- Contato ---------- */
.contato .g12 { align-items: start; }
.contato-intro { margin-top: 28px; max-width: 420px; font-size: 17px; }
.channels { margin-top: 40px; border-bottom: 1px solid var(--line-alt); }
.channel {
  display: flex; align-items: center; gap: 18px; min-height: 72px; padding: 14px 0;
  border-top: 1px solid var(--line-alt); color: var(--navy);
}
.channel-txt { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.channel-label { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--text); line-height: 1.3; }
.channel-value { font-size: 17px; font-weight: 500; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.channel .ico-arr { transition: transform .18s ease, color .18s ease; }
.channel:hover { color: var(--navy); }
.channel:hover .ico-arr { color: var(--orange); transform: translateX(3px); }
.aviso { margin-top: 28px; max-width: 440px; font-size: 14px; line-height: 1.6; }
.aviso strong { font-weight: 600; color: var(--navy); }

.form { display: flex; flex-direction: column; gap: 20px; padding-top: 6px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--navy); line-height: 1.3; }
.field label span { font-weight: 400; color: var(--text); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.fld {
  width: 100%; height: 50px; padding: 0 16px;
  background: var(--white); border: 1px solid var(--line-alt); border-radius: 5px;
  font-family: var(--sans); font-size: 16px; color: var(--navy);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.fld { height: auto; min-height: 150px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
.fld::placeholder { color: #7B8794; }
.fld:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 22, 42, .07); }
.fld:user-invalid { border-color: var(--orange); }
.form-foot { margin-top: 6px; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.form-foot p { flex: 1; min-width: 220px; font-size: 13.5px; line-height: 1.6; }
.form-foot p a { border-bottom: 1px solid var(--blue-soft); }
.form-status { font-size: 14.5px; line-height: 1.6; color: var(--navy); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--orange-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); }
.footer-in { padding-top: 56px; padding-bottom: 36px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.site-footer .brand { gap: 8px; }
.site-footer .brand-name { font-size: 23px; }
.site-footer .brand-sub { font-size: 10.5px; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; font-size: 15px; line-height: 1.5; padding-top: 2px; }
.site-footer a { color: var(--on-navy-muted); }
.site-footer a:hover { color: var(--white); }
.footer-legal {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(184, 194, 207, 0.18);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 13px; line-height: 1.6;
}
.footer-legal .ids span + span::before { content: " · "; }
.footer-legal .meta { display: flex; gap: 28px; flex-wrap: wrap; }

/* ---------- Páginas internas (Política de Privacidade, 404) ---------- */
.page { padding-top: 88px; padding-bottom: 112px; }
.page h1 { font-weight: 400; font-size: 46px; line-height: 1.1; letter-spacing: -0.01em; }
.page .updated { margin-top: 16px; font-size: 14px; }
.page .prose { margin-top: 32px; max-width: 720px; }
.page .prose li + li { margin-top: 8px; }
.page .prose strong { font-weight: 600; color: var(--navy); }
.page .prose h2 { margin-top: 40px; font-weight: 500; font-size: 24px; line-height: 1.25; }
.page .prose p { margin-top: 14px; }
.page .prose ul { margin-top: 14px; padding-left: 20px; list-style: disc; }
.page .back { margin-top: 48px; }

/* ---------- Menu compacto (até 1100 px) ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Mobile e tablet (até 900 px) ---------- */
@media (max-width: 900px) {
  :root { --header-h: 64px; --side: 24px; --sec-top: 64px; --sec-bottom: 72px; }

  .site-header { position: sticky; top: env(safe-area-inset-top, 0px); }
  body::before {
    content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
    z-index: 30; background: var(--navy);
  }
  section[id] { scroll-margin-top: 64px; }
  .brand { gap: 6px; }
  .brand-name { font-size: 21px; }
  .brand-sub { font-size: 10px; letter-spacing: 0.4em; }

  .g12, .g3 { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .c1-5, .c1-6, .c1-10, .c7-12 { grid-column: 1 / -1; }

  .h2 { font-size: 32px; }
  .lead { font-size: 17px; line-height: 1.6; }

  .hero { height: auto; }
  .hero .g12 { height: auto; }
  .hero-txt { padding: 40px 0 44px; }
  .hero h1 { font-size: clamp(34px, 9.7vw, 48px); line-height: 1.1; }
  .hero-sub { margin-top: 20px; font-size: 17px; line-height: 1.6; max-width: 560px; }
  .hero-ctas { margin-top: 32px; flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-ctas .btn { font-size: 16px; }
  .hero-ctas .tlink { align-self: center; font-size: 16px; padding-top: 10px; }
  .hero-photo { position: static; height: clamp(420px, 110vw, 640px); }

  .stmt { font-size: 24px; line-height: 1.35; }
  .escritorio .stmt-row { margin-top: 24px; }
  .escritorio .body-row { margin-top: 28px; font-size: 16px; row-gap: 16px; }

  .atuacao-intro { padding-top: 0; margin-top: 20px; }
  .area-title { margin: 48px 0 16px; font-size: 24px; }
  .row { padding: 24px 0 26px; row-gap: 10px; }
  .row h4 { padding-right: 0; font-size: 21px; }
  .row p + p { margin-top: 10px; }
  .empresas { margin-top: 56px; row-gap: 12px; }
  .empresas h3 { font-size: 21px; }
  .empresas p { padding-top: 0; }
  .rows-sm { margin-top: 20px; }
  .rows-sm .row { padding: 18px 0 20px; row-gap: 8px; }
  .rows-sm .row h4 { font-size: 18px; }

  .como { padding-top: 64px; padding-bottom: 72px; }
  .principios { margin-top: 36px; row-gap: 40px; }
  .principio { padding: 22px 0 0; }
  .principio h3 { font-size: 28px; }
  .principio p { margin-top: 14px; }

  .sobre-photo { position: static; width: 100%; height: clamp(440px, 118vw, 680px); }
  .sobre-photo img { object-position: 50% 22%; }
  .sobre .g12 { min-height: 0; padding-top: 40px; padding-bottom: 68px; }
  .sobre .eyebrow { font-size: 12px; }
  .sobre .h2 { margin-top: 16px; }
  .sobre-oab { margin-top: 8px; font-size: 14px; }
  .sobre-lead { margin-top: 24px; font-size: 17px; }
  .sobre-txt p.body { margin-top: 16px; }
  .sobre-link { margin-top: 24px; }
  .sobre-link .tlink { font-size: 16px; padding-top: 10px; }

  .contato-intro { margin-top: 16px; font-size: 16.5px; line-height: 1.6; max-width: none; }
  .channels { margin-top: 28px; }
  .channel { gap: 16px; }
  .aviso { margin-top: 20px; max-width: none; }
  .form { margin-top: 40px; padding-top: 0; gap: 18px; }
  .field label { font-size: 14px; }
  .two { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .fld { height: 52px; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 16px; }
  .form-foot .btn { width: 100%; font-size: 16px; }

  .footer-in { padding-top: 48px; padding-bottom: 32px; }
  .site-footer .brand-name { font-size: 20px; }
  .site-footer .brand-sub { font-size: 9.5px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-links { flex-direction: column; gap: 4px; }
  .footer-links > * { padding: 8px 0; }
  .footer-legal { margin-top: 28px; padding-top: 20px; flex-direction: column; gap: 14px; font-size: 12.5px; }
  .footer-legal .ids { display: flex; flex-direction: column; gap: 4px; }
  .footer-legal .ids span + span::before { content: none; }
  .footer-legal .meta { gap: 24px; }

  .page { padding-top: 48px; padding-bottom: 72px; }
  .page h1 { font-size: 34px; }
}
