/* Morais Advogados — morais.tax */
:root {
  --ink: #0c110e;
  --ink-2: #161616;
  --ink-3: #222;
  --paper: #ffffff;
  --paper-2: #f6f4f0;
  --line: #e6e2da;
  --text: #2a2a2a;
  --muted: #6b6b6b;
  --muted-dark: #a9a9a9;
  --accent: #f06b22;
  --accent-hover: #d85a17;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Eyebrow / buttons ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--accent); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius);
  font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 22px 0;
}
.site-header.is-solid { background: rgba(14, 14, 14, .97); box-shadow: 0 2px 20px rgba(0, 0, 0, .3); padding: 12px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 52px; width: auto; transition: height .3s; }
.site-header.is-solid .brand img { height: 42px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: #eee; text-decoration: none; font-size: .86rem; font-weight: 500; letter-spacing: .04em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 0; background: var(--accent); transition: width .25s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.nav .btn { padding: 11px 20px; font-size: .75rem; }
.nav .btn::after { display: none; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .3); color: #fff; width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer; }
.menu-toggle svg { margin: auto; width: 22px; height: 22px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(240, 107, 34, .16), transparent 60%),
    radial-gradient(700px 500px at 10% 100%, rgba(240, 107, 34, .07), transparent 60%),
    linear-gradient(180deg, #0b0b0b 0%, #151515 100%);
  padding: 190px 0 130px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: center; }
.hero h1 { color: #fff; font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-lead { font-size: 1.12rem; color: #cfcfcf; max-width: 600px; margin: 22px 0 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-emblem {
  justify-self: end; width: min(340px, 100%); aspect-ratio: 1;
  border: 1.5px solid var(--accent); position: relative;
  display: grid; place-items: center;
}
.hero-emblem::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(255, 255, 255, .12); }
.hero-emblem span { font-family: var(--serif); font-size: clamp(9rem, 16vw, 13rem); line-height: 1; color: #fff; font-weight: 400; }
.hero-emblem small { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-dark); }
.hero-strip { position: relative; margin-top: 90px; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid rgba(255, 255, 255, .12); }
.hero-strip a { padding: 22px 18px 0 0; color: #bdbdbd; text-decoration: none; font-size: .85rem; letter-spacing: .02em; transition: color .2s; }
.hero-strip a:hover { color: var(--accent); }
.hero-strip b { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 2px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; color: #fff; text-align: center;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(240, 107, 34, .18), transparent 70%),
    linear-gradient(180deg, #0b0b0b, #161616);
  padding: 170px 0 80px;
  border-bottom: 3px solid var(--accent);
}
.page-hero h1 { color: #fff; font-weight: 500; max-width: 900px; margin: 0 auto .3em; }
.page-hero p { color: #c8c8c8; max-width: 720px; margin: 0 auto; }
.crumbs { font-size: .8rem; letter-spacing: .06em; color: var(--muted-dark); margin-bottom: 18px; }
.crumbs a { color: var(--muted-dark); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 8px; color: var(--accent); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: #d6d6d6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.about-card {
  position: relative; background: var(--ink); color: #fff; padding: 56px 48px;
  border: 1px solid var(--accent);
}
.about-card::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid var(--line); z-index: -1; }
.about-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.75rem; line-height: 1.35; font-style: italic; }
.about-card cite { display: block; margin-top: 26px; font-style: normal; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.pillars b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
.pillars span { font-size: .9rem; color: var(--muted); line-height: 1.55; display: block; }

.about-photo { position: relative; margin: 0; }
.about-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px solid var(--accent); z-index: -1; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.about-photo figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 60px 28px 24px; background: linear-gradient(transparent, rgba(12, 17, 14, .92)); color: #cfcfcf; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.about-photo figcaption b { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #fff; margin-bottom: 2px; }
@media (max-width: 640px) { .about-photo::after { display: none; } }

/* Areas */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.area-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); padding: 40px 34px 34px;
  text-decoration: none; color: var(--text);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.area-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .35s; }
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.area-card:hover::before { width: 100%; }
.area-icon { width: 54px; height: 54px; border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent); margin-bottom: 26px; }
.area-icon svg { width: 26px; height: 26px; }
.area-card h3 { font-size: 1.6rem; }
.area-card p { font-size: .95rem; color: var(--muted); flex: 1; }
.more { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); text-decoration: none; }
.area-card.cta-card { background: var(--ink); border-color: var(--ink); color: #cfcfcf; justify-content: center; }
.area-card.cta-card h3 { color: #fff; }
.area-card.cta-card p { color: #bdbdbd; }

/* Blog cards */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .cover { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ink); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .cover img { transform: scale(1.04); }
.post-card .body { padding: 26px 26px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card .cat { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.post-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.post-card h3 a { text-decoration: none; }
.post-card h3 a:hover { color: var(--accent); }
.post-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.post-card .meta { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 8px; font-size: .8rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.filters button {
  font: inherit; font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--text); cursor: pointer;
}
.filters button[aria-pressed="true"], .filters button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.center-cta { text-align: center; margin-top: 56px; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 70px 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-weight: 500; max-width: 720px; }
.cta-band .btn { background: var(--ink); color: #fff; }
.cta-band .btn:hover { background: #fff; color: var(--ink); }

/* ---------- Article ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 70px; align-items: start; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 22px; font-size: .85rem; color: var(--muted-dark); }
.article-meta a { color: var(--accent); text-decoration: none; }
.prose { font-size: 1.08rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: 2rem; margin: 1.8em 0 .6em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.45rem; margin: 1.5em 0 .5em; scroll-margin-top: 100px; }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.8em 0; padding: 22px 28px; border-left: 3px solid var(--accent); background: var(--paper-2); font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; font-style: italic; color: var(--ink); }
.prose blockquote p:last-child { margin: 0; }
.prose strong { color: var(--ink); }
.prose .lead { font-size: 1.22rem; color: var(--ink); }
.summary-box { border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 26px 30px; margin: 0 0 2.2em; background: var(--paper-2); }
.summary-box h2 { font-family: var(--sans); font-size: .78rem !important; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px !important; }
.summary-box ul { margin: 0; }
.aside-box { border: 1px solid var(--line); padding: 28px; margin-bottom: 28px; }
.aside-box h2, .aside-box h3 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.aside-box ol { margin: 0; padding-left: 1.1em; font-size: .9rem; }
.aside-box li { margin-bottom: 8px; }
.aside-box a { text-decoration: none; color: var(--text); }
.aside-box a:hover { color: var(--accent); }
.aside-sticky { position: sticky; top: 100px; }
.aside-dark { background: var(--ink); color: #cfcfcf; border-color: var(--ink); }
.aside-dark p { font-size: .95rem; }
.aside-dark .btn { width: 100%; justify-content: center; }
.author-box { display: grid; grid-template-columns: 76px 1fr; gap: 22px; align-items: start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 0; margin: 50px 0 0; }
.author-avatar { width: 76px; height: 76px; border: 1.5px solid var(--accent); display: grid; place-items: center; font-family: var(--serif); font-size: 2.2rem; color: var(--ink); overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-box b { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); }
.author-box small { display: block; color: var(--accent); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin: 2px 0 8px; }
.author-box p { font-size: .93rem; color: var(--muted); margin: 0; }
.disclaimer { font-size: .82rem; color: var(--muted); margin-top: 26px; font-style: italic; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 26px; font-size: .8rem; color: var(--muted); }
.share a { border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; text-decoration: none; }
.share a:hover { border-color: var(--accent); color: var(--accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 14px 0 0; color: var(--muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-item { border: 1px solid var(--line); padding: 34px; }
.contact-item h3 { font-family: var(--sans); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.contact-item p { margin: 0 0 16px; font-size: 1.05rem; color: var(--ink); }
.contact-item a { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a9a9a9; padding: 90px 0 30px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 50px; }
.site-footer h2 { font-family: var(--sans); font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #a9a9a9; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer .brand { margin-bottom: 22px; }
.footer-bottom { border-top: 1px solid var(--ink-3); margin-top: 60px; padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8rem; color: #777; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 40px; height: 40px; border: 1px solid var(--ink-3); display: grid; place-items: center; }
.socials a:hover { border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 32px; height: 32px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .hero-grid, .about-grid, .article-layout { grid-template-columns: 1fr; }
  .hero-emblem { display: none; }
  .hero-strip { grid-template-columns: repeat(3, 1fr); row-gap: 10px; }
  .areas-grid, .posts-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .aside-sticky { position: static; }
}
@media (max-width: 860px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 85vw);
    background: var(--ink); flex-direction: column; align-items: flex-start;
    padding: 100px 32px 32px; gap: 18px;
    transform: translateX(100%); transition: transform .3s;
    box-shadow: -10px 0 40px rgba(0, 0, 0, .4);
  }
  .nav.is-open { transform: none; }
  .nav a { font-size: 1.05rem; }
  .site-header .menu-toggle { position: relative; z-index: 2; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 150px 0 90px; }
  .hero-strip { grid-template-columns: 1fr 1fr; margin-top: 60px; }
  .areas-grid, .posts-grid, .contact-grid, .footer-grid, .pillars { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 60px; }
  .brand img { height: 40px; }
  .about-card { padding: 40px 28px; }
  .about-card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
