/* ============================================================
   Fernando T. Ishikawa – Advogados Associados
   Paleta fiel ao logotipo: carmim #b72b45 / bordô #850013
   ============================================================ */
:root {
  --carmin: #b72b45;
  --bordo: #850013;
  --carmin-soft: #c84d63;
  --ink: #1f2024;
  --ink-soft: #4a4d55;
  --line: #e7e3df;
  --paper: #ffffff;
  --cream: #f7f4f0;
  --cream-2: #f1ece6;
  --dark: #221b1d;
  --dark-2: #2c2326;

  --serif: "Cormorant Garamond", Georgia, serif;
  --display: "Cinzel", "Cormorant Garamond", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(31, 32, 36, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { width: min(100% - 2.6rem, var(--maxw)); margin-inline: auto; }

a { color: var(--carmin); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--bordo); }

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.12; font-weight: 500; letter-spacing: .01em; }

p { color: var(--ink-soft); }
p + p { margin-top: 1rem; }
strong { color: var(--ink); font-weight: 600; }

/* ===== Botões ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.7rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 500; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: all .3s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn-primary { background: var(--carmin); color: #fff; }
.btn-primary:hover { background: var(--bordo); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(133, 0, 19, .7); }
.btn-ghost { border-color: currentColor; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  border-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 78px; }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand-seal { width: 40px; height: 40px; border-radius: 3px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.04rem; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.brand-sub { font-size: .58rem; letter-spacing: .34em; text-transform: uppercase; color: var(--carmin); margin-top: 4px; }

.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  color: var(--ink); font-size: .8rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; position: relative;
}
.main-nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--carmin); transition: width .3s var(--ease);
}
.main-nav a:not(.nav-cta):hover::after,
.main-nav a.active::after { width: 100%; }
.main-nav a:hover { color: var(--carmin); }
.nav-cta { background: var(--carmin); color: #fff !important; padding: .6rem 1.2rem; border-radius: var(--radius); }
.nav-cta:hover { background: var(--bordo); }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 26px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(34, 27, 29, .93) 0%, rgba(133, 0, 19, .88) 55%, rgba(183, 43, 69, .82) 100%),
    url("../img/painel.jpg") center / cover no-repeat fixed;
}
/* Pincelada real do logo, como marca d'água no fundo */
.hero-bg::after {
  content: ""; position: absolute; right: -8%; top: 50%; transform: translateY(-50%);
  width: 70vmin; height: 70vmin; opacity: .08;
  background: url("../img/brush.png") center / contain no-repeat;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 7rem 0 5rem; max-width: 880px; }
.eyebrow { font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; color: #f0c5cd; margin-bottom: 1.4rem; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; letter-spacing: 0;
}
.hero-title em { color: #ffd9e0; font-style: italic; font-weight: 500; }
.hero-lead { color: rgba(255, 255, 255, .9); font-size: clamp(1.05rem, 1.6vw, 1.28rem); max-width: 640px; margin-top: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.4rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero .btn-ghost:hover { background: #fff; color: var(--bordo); border-color: #fff; }

.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; }
.hero-scroll span { display: block; width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 14px; position: relative; }
.hero-scroll span::after { content: ""; position: absolute; left: 50%; top: 7px; transform: translateX(-50%); width: 4px; height: 8px; background: #fff; border-radius: 3px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 20px; } 100% { opacity: 0; } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--dark); color: #fff; }

.section-eyebrow { font-size: .76rem; letter-spacing: .26em; text-transform: uppercase; color: var(--carmin); font-weight: 600; margin-bottom: 1rem; position: relative; padding-left: 2.6rem; }
.section-eyebrow::before { content: ""; position: absolute; left: 0; top: .55em; width: 2rem; height: 2px; background: var(--carmin); }
.section-eyebrow.light { color: var(--carmin-soft); }

.section-title { font-family: var(--serif); font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 500; color: inherit; margin-bottom: 1.4rem; }
.section-dark .section-title { color: #fff; }
.section-head { max-width: 740px; margin-bottom: 3.4rem; }
.section-intro { font-size: 1.12rem; }
.section-dark .section-intro { color: rgba(255, 255, 255, .8); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.about-text { max-width: 800px; }
.about-text p { font-size: 1.1rem; }

.figure-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.figure-frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.figure-frame::before { content: ""; position: absolute; inset: 0; z-index: 2; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; }
.figure-frame::after { content: ""; position: absolute; left: -14px; top: -14px; width: 70px; height: 70px; border-left: 3px solid var(--carmin); border-top: 3px solid var(--carmin); z-index: 1; }

/* ===== Stats ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 4.5rem; border-top: 1px solid var(--line); padding-top: 3rem; }
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 600; color: var(--carmin); line-height: 1; }
.stat-label { display: block; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: .6rem; }

/* ===== Cards (Áreas) ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2.4rem 2rem 2rem; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--carmin); transition: width .4s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { width: 100%; }
.card-mark { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--cream-2); line-height: 1; display: block; margin-bottom: 1rem; transition: color .35s var(--ease); }
.card:hover .card-mark { color: var(--carmin); }
.card h3 { font-family: var(--serif); font-size: 1.5rem; margin-bottom: .6rem; color: var(--ink); }
.card p { font-size: .98rem; }

/* ===== Equipe ===== */
.team { display: flex; flex-direction: column; gap: 2rem; }
.member-lead { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: start; background: var(--cream); border-radius: var(--radius); padding: 2.4rem; border-left: 4px solid var(--carmin); }
.member-avatar {
  width: 84px; height: 84px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--carmin), var(--bordo));
  color: #fff; font-family: var(--display); font-size: 1.5rem; letter-spacing: .04em;
}
.member-lead .member-avatar { width: 104px; height: 104px; font-size: 1.9rem; }
.member-info h3 { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); }
.member-role { color: var(--carmin); font-weight: 600; font-size: .92rem; letter-spacing: .02em; margin-top: .2rem; }
.member-oab { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); margin-top: .15rem; }
.member-bio { margin-top: .9rem; font-size: .98rem; max-width: 720px; }

.member-email {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.1rem;
  font-size: .9rem; font-weight: 500; letter-spacing: .01em; word-break: break-word;
}
.member-email::before { content: "✉"; font-size: 1rem; color: var(--carmin); }

/* Cards detalhados dos demais advogados */
.member-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.member-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 2rem 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.member-card-head { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.2rem; }
.member-card .member-avatar { width: 64px; height: 64px; font-size: 1.25rem; }
.member-card-id h3 { font-family: var(--serif); font-size: 1.4rem; color: var(--ink); line-height: 1.12; }
.member-card .member-bio { margin-top: 0; max-width: none; flex: 1 1 auto; }
.member-card .member-email { margin-top: 1.1rem; }

/* ===== Segmentos ===== */
.segments { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); overflow: hidden; }
.segments li {
  background: var(--dark-2); padding: 1.8rem 1.4rem; font-family: var(--serif); font-size: 1.22rem;
  color: #fff; display: flex; align-items: center; gap: .7rem; transition: background .3s var(--ease);
}
.segments li::before { content: ""; width: 8px; height: 8px; background: var(--carmin); border-radius: 50%; flex: none; }
.segments li:hover { background: var(--carmin); }

/* ===== Contato ===== */
.contact-list { list-style: none; margin: 2rem 0; }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.contact-label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--carmin); font-weight: 600; padding-top: .2rem; }
.contact-list span:not(.contact-label) { color: var(--ink); }
.map-frame { aspect-ratio: 4 / 3; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-frame::after { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .8); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 3.2rem 0; }
.footer-brand { display: flex; align-items: center; gap: .9rem; }
.footer-brand .brand-seal { width: 50px; height: 50px; border-radius: 3px; object-fit: cover; }
.footer-brand .brand-name { font-family: var(--display); color: #fff; font-size: 1.1rem; letter-spacing: .04em; text-transform: uppercase; display: block; }
.footer-brand .brand-sub { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--carmin-soft); display: block; margin-top: 3px; }
.footer-tag { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(255, 255, 255, .65); }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.footer-nav a { color: rgba(255, 255, 255, .8); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-nav a:hover { color: #fff; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.4rem 0; font-size: .8rem; color: rgba(255, 255, 255, .55); text-align: center; }

/* ===== Scroll top ===== */
.scroll-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%; background: var(--carmin); color: #fff !important;
  display: grid; place-items: center; font-size: 1.2rem; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all .35s var(--ease);
}
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--bordo); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .segments { grid-template-columns: repeat(2, 1fr); }
  .hero-bg { background-attachment: scroll; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: .5rem 1.3rem 1.3rem;
    transform: translateY(-130%); transition: transform .4s var(--ease); box-shadow: var(--shadow);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: .8rem; border-radius: var(--radius); }
  .menu-toggle { display: flex; }

  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .cards { grid-template-columns: 1fr; }
  .member-lead { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .member-lead .member-avatar { margin-inline: auto; }
  .member-cards { grid-template-columns: 1fr; }
  .member-card-head { text-align: left; }
  .segments { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: .2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .member-card-head { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
