/* =====================================================================
   Simões Santos & Nascimento — Sociedade de Advocacia
   Identidade: dourado (marca), marrom-escuro e off-white.
   Tipografia: Cormorant Garamond (títulos, serifa) + Inter (texto).
   ===================================================================== */

:root {
  --brown-900: #3b2314;
  --brown-800: #4a2c1a;
  --brown-700: #5c3a21;
  --gold-600: #a97e22;
  --gold-500: #c09538;
  --gold-400: #d4af5f;
  --gold-100: #f3e9d2;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #2b2117;
  --ink-soft: #5f5347;
  --line: #e7dfd2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --maxw: 1140px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(59, 35, 20, .08);
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-600); text-decoration: none; transition: color var(--transition); }
a:hover, a:focus-visible { color: var(--brown-800); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brown-900); color: #fff; padding: .6rem 1rem;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; color: var(--brown-900); line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 .6em; }
h3 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600);
  margin: 0 0 .9rem;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem 1.25rem; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .75rem; color: var(--brown-900); }
.brand:hover { color: var(--brown-900); }
.brand svg { flex: 0 0 auto; }
.brand-name { line-height: 1.15; }
.brand-name .l1 {
  font-family: var(--serif); font-weight: 700; font-size: 1.18rem;
  letter-spacing: .02em; display: block; color: var(--brown-900);
}
.brand-name .l2 {
  font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-600); display: block;
}
.main-nav ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.main-nav a {
  color: var(--ink); font-size: .92rem; font-weight: 500;
  padding: .35rem 0; border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--brown-900); border-bottom-color: var(--gold-500);
}
.nav-ig { display: inline-flex; align-items: center; }
.nav-ig svg { width: 20px; height: 20px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: .5rem .6rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--brown-900);
  margin: 4px 0; transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none; box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; align-items: stretch; padding: .5rem 0; }
  .main-nav a { display: block; padding: .8rem 1.5rem; border-bottom: none; }
  .main-nav a[aria-current="page"] { background: var(--gold-100); }
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--brown-900) 0%, var(--brown-700) 70%, #6d4826 100%);
  color: #f5efe2; padding: 5rem 0 5.5rem; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -140px; top: -80px;
  width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212,175,95,.18), transparent 65%);
}
.hero h1 { color: #fff; max-width: 17em; }
.hero .kicker { color: var(--gold-400); }
.hero p { max-width: 40rem; color: #e8dfcd; font-size: 1.08rem; }
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: .8rem 1.7rem; border-radius: var(--radius);
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-gold { background: var(--gold-500); color: var(--brown-900); }
.btn-gold:hover { background: var(--gold-400); color: var(--brown-900); }
.btn-outline { border-color: var(--gold-400); color: var(--gold-400); background: transparent; }
.btn-outline:hover { background: rgba(212,175,95,.12); color: var(--gold-400); }
.btn-dark { background: var(--brown-800); color: #fff; }
.btn-dark:hover { background: var(--brown-900); color: #fff; }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.card .area-icon {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-100); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem; color: var(--gold-600);
}
.card p { color: var(--ink-soft); font-size: .95rem; margin-bottom: 0; }
.card .more { display: inline-block; margin-top: .9rem; font-weight: 600; font-size: .88rem; }

/* ---------- article cards ---------- */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 900px) { .art-grid { grid-template-columns: 1fr; } }
.art-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.art-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.art-card .cover { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--gold-100), var(--gold-400)); overflow: hidden; }
.art-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.art-card .body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.art-card .cat {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: .5rem;
}
.art-card h3 { font-size: 1.18rem; margin: 0 0 .5rem; }
.art-card h3 a { color: var(--brown-900); }
.art-card h3 a:hover { color: var(--gold-600); }
.art-card .excerpt { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.art-card .meta { margin-top: 1rem; font-size: .8rem; color: var(--ink-soft); }
.art-card .meta strong { color: var(--brown-800); font-weight: 600; }

/* ---------- filters (artigos.html) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-bottom: 2.2rem; }
.filters .search {
  flex: 1 1 260px; position: relative;
}
.filters input[type="search"] {
  width: 100%; padding: .7rem 1rem .7rem 2.5rem; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--sans); font-size: .95rem;
  background: var(--paper) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235f5347' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat .8rem center;
}
.chip {
  border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft);
  padding: .45rem 1rem; border-radius: 999px; font-size: .85rem; cursor: pointer;
  transition: all var(--transition); font-family: var(--sans);
}
.chip:hover { border-color: var(--gold-500); color: var(--brown-900); }
.chip.active { background: var(--brown-800); border-color: var(--brown-800); color: #fff; }

.load-more-wrap { text-align: center; margin-top: 2.5rem; }
.empty-msg { color: var(--ink-soft); padding: 3rem 0; text-align: center; }

/* ---------- article page ---------- */
.article-head { padding: 3.5rem 0 2rem; }
.article-head .cat { color: var(--gold-600); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.article-head h1 { max-width: 22em; }
.article-head .sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 44rem; font-family: var(--serif); font-style: italic; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; margin-top: 1.4rem;
  font-size: .88rem; color: var(--ink-soft); align-items: center;
}
.article-meta a { font-weight: 600; }
.article-cover { border-radius: var(--radius); overflow: hidden; margin: 1.5rem 0 0; box-shadow: var(--shadow); }
.article-cover img { width: 100%; max-height: 460px; object-fit: cover; }

.article-body {
  max-width: 720px; font-size: 1.06rem; line-height: 1.85;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 4vw, 3rem); margin-bottom: 3rem;
}
.article-body p { margin: 0 0 1.35em; }
.article-body h3 { font-size: 1.4rem; }
.article-body ul { padding-left: 1.3rem; }
.article-body li { margin-bottom: .5em; }
.article-body em { color: var(--ink-soft); }
.article-fonte { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 2rem; }

.share { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin: 1.6rem 0 2.5rem; }
.share span { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 1px solid var(--line); background: var(--paper); color: var(--brown-800);
  padding: .5rem .95rem; border-radius: 999px; font-size: .85rem; cursor: pointer;
  font-family: var(--sans); transition: all var(--transition);
}
.share a:hover, .share button:hover { border-color: var(--gold-500); background: var(--gold-100); }
.share svg { width: 16px; height: 16px; }

.author-box {
  display: flex; gap: 1.1rem; background: var(--gold-100); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-bottom: 1rem; align-items: flex-start;
}
.author-box .avatar { flex: 0 0 56px; }
.author-box h4 { margin: 0 0 .2rem; font-family: var(--serif); font-size: 1.1rem; color: var(--brown-900); }
.author-box p { margin: 0; font-size: .85rem; color: var(--ink-soft); }

/* ---------- team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
@media (max-width: 800px) { .team-grid { grid-template-columns: 1fr; } }
.member {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; display: flex; gap: 1.5rem; align-items: flex-start;
  scroll-margin-top: 6rem;
}
.member .avatar { flex: 0 0 110px; }
.avatar {
  width: 110px; height: 110px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(145deg, var(--brown-700), var(--brown-900));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); font-family: var(--serif); font-size: 2rem; font-weight: 700;
  border: 3px solid var(--gold-400);
}
.avatar.small { width: 56px; height: 56px; font-size: 1.1rem; border-width: 2px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { margin: 0 0 .15rem; }
.member .role { color: var(--gold-600); font-weight: 600; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.member .oab { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 .8rem; }
.member .bio { font-size: .93rem; color: var(--ink-soft); }
.member .tags { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.member .tags span {
  background: var(--gold-100); color: var(--brown-800); font-size: .75rem;
  padding: .25rem .7rem; border-radius: 999px;
}
@media (max-width: 560px) { .member { flex-direction: column; } }

/* ---------- instagram section ---------- */
.ig-fallback {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 3rem 2rem; text-align: center;
}
.ig-fallback svg { margin: 0 auto 1rem; color: var(--gold-600); }
.ig-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
@media (max-width: 700px) { .ig-grid { grid-template-columns: repeat(2, 1fr); } }
.ig-grid a { aspect-ratio: 1; background: var(--gold-100); border-radius: var(--radius); overflow: hidden; }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
form.contact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; color: var(--brown-800); }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: .95rem; background: var(--cream); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.contact-info h3 { margin-top: 0; }
.contact-info ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.contact-info li { margin-bottom: .9rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; }
.contact-info li svg { flex: 0 0 18px; margin-top: .25rem; color: var(--gold-600); }
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- values / about ---------- */
.values li { margin-bottom: 1rem; }
.values strong { color: var(--brown-900); }
.timeline { border-left: 2px solid var(--gold-400); padding-left: 1.6rem; margin: 2rem 0; }
.timeline .t-item { margin-bottom: 1.8rem; position: relative; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -2.13rem; top: .4rem;
  width: 12px; height: 12px; border-radius: 50%; background: var(--gold-500);
  border: 2px solid var(--cream);
}
.timeline .t-year { font-family: var(--serif); font-weight: 700; color: var(--gold-600); font-size: 1.05rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--brown-900); color: #d8cbb8; padding: 3.5rem 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--gold-400); font-family: var(--sans); font-size: .8rem;
  letter-spacing: .2em; text-transform: uppercase; margin: 0 0 1.1rem;
}
.site-footer a { color: #d8cbb8; }
.site-footer a:hover { color: var(--gold-400); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55rem; font-size: .92rem; }
.footer-brand .l1 { font-family: var(--serif); font-size: 1.25rem; color: #fff; display: block; }
.footer-brand .l2 { font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-400); }
.footer-legal {
  border-top: 1px solid rgba(212,175,95,.25); padding: 1.2rem 0;
  font-size: .78rem; color: #a8977f; text-align: center;
}
.footer-social { display: flex; gap: .8rem; margin-top: 1.2rem; }
.footer-social a {
  width: 38px; height: 38px; border: 1px solid rgba(212,175,95,.4); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
}
.footer-social a:hover { background: rgba(212,175,95,.15); }
.footer-social svg { width: 18px; height: 18px; }

/* ---------- reveal animation (sutil) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* ---------- misc ---------- */
.notice {
  background: var(--gold-100); border: 1px solid var(--gold-400); border-radius: var(--radius);
  padding: 1rem 1.3rem; font-size: .88rem; color: var(--brown-800);
}
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--gold-600); }

/* ---------- carrossel da equipe (Home) ---------- */
.carousel { position: relative; }
.car-track {
  display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: .5rem .2rem 1rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
  flex: 0 0 220px; scroll-snap-align: start; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem 1.2rem; transition: transform var(--transition), box-shadow var(--transition);
}
.car-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-item img {
  width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
  margin: 0 auto .9rem; border: 3px solid var(--gold-400);
}
.car-item .nm { font-family: var(--serif); font-weight: 700; color: var(--brown-900); font-size: 1.05rem; line-height: 1.25; }
.car-item .rl { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); margin-top: .3rem; }
.car-btn {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 5;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--brown-800); cursor: pointer;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
  transition: background var(--transition);
}
.car-btn:hover { background: var(--gold-100); }
.car-btn.prev { left: -14px; } .car-btn.next { right: -14px; }
@media (max-width: 700px) { .car-item { flex-basis: 180px; } .car-btn { display: none; } }



/* ---------- epígrafe institucional (O Escritório) ---------- */
.epigrafe {
  margin: 2.8rem 0 0; padding: 2.4rem 1rem;
  border-top: 1px solid var(--gold-400); border-bottom: 1px solid var(--gold-400);
  text-align: center;
}
.epigrafe img { margin: 0 auto 1.1rem; opacity: .92; }
.epigrafe blockquote { margin: 0; }
.epigrafe p {
  font-family: var(--serif); font-style: italic; font-size: 1.35rem; line-height: 1.5;
  color: var(--brown-800); max-width: 26rem; margin: 0 auto;
}

/* ---------- destaques em números (O Escritório) ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.4rem; }
.stat {
  background: var(--gold-100); border: 1px solid var(--gold-400); border-radius: var(--radius);
  padding: 1.3rem 1rem; text-align: center;
}
.stat .n { font-family: var(--serif); font-size: 2.1rem; font-weight: 700; color: var(--gold-600); display: block; line-height: 1.1; }
.stat .l { font-size: .8rem; color: var(--brown-800); line-height: 1.35; display: block; margin-top: .3rem; }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; } }
