/* ---------------------------------------------------------
   Bruno Silva Pinto — Advocacia
   Tokens: ink black base, gilded gold accent, serif display
--------------------------------------------------------- */

:root {
  --ink:          #0C0A07;
  --ink-soft:     #17130C;
  --ink-raised:   #1F1A10;
  --hairline:     #3A3222;
  --hairline-soft:#2A2416;

  --cream:        #F4EEDF;
  --cream-dim:    #C9C0A8;
  --cream-faint:  #8E8368;

  --gold:         #C9A227;
  --gold-bright:  #E8CA6E;
  --gold-deep:    #8B6914;
  --gold-text:    #D9B84B;

  --font-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --shell-width: 1140px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#areas, #atendimento, #sobre, #contato {
  scroll-margin-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0;
  color: var(--cream);
}

p { margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

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

.shell {
  width: 100%;
  max-width: var(--shell-width);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 100;
  font-family: var(--font-sans);
  font-weight: 600;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 7, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--hairline-soft);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: auto;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text small {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold-text);
  font-weight: 600;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 18px !important;
  border-radius: var(--radius);
  color: var(--gold-bright) !important;
}
.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--gold);
  color: var(--ink) !important;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold-text);
  margin: 0 auto;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 60%, var(--gold-deep));
  color: var(--ink);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #f0d989, var(--gold-bright) 60%, var(--gold));
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--hairline);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-large {
  padding: 16px 36px;
  font-size: 1rem;
}

.hero-actions,
.cta-inner .btn {
  margin-top: 8px;
}

/* ---------------- Hero ---------------- */

.hero {
  padding: 92px 0 96px;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,162,39,0.12), transparent 55%),
    linear-gradient(180deg, rgba(12,10,7,0.72) 0%, rgba(12,10,7,0.88) 55%, var(--ink) 92%),
    url("assets/hero-bg.jpg");
  background-size: cover;
  background-position: center 38%;
  border-bottom: 1px solid var(--hairline-soft);
}

.hero-mark {
  width: 96px;
  margin: 0 auto 18px;
}

.hero-wordmark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--cream);
}
.hero-wordmark span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  color: var(--gold-text);
  font-weight: 600;
  margin-top: 6px;
}

.hero-rule {
  width: 64px;
  height: 1px;
  background: var(--gold);
  margin: 26px auto 34px;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.18;
  max-width: 18ch;
  margin: 0 auto;
  font-weight: 500;
}

.hero-lede {
  max-width: 54ch;
  margin: 26px auto 0;
  color: var(--cream-dim);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 38px;
}

/* ---------------- Section heads ---------------- */

.section-head {
  max-width: 44ch;
  margin-bottom: 52px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
}
.section-head p {
  margin-top: 12px;
  color: var(--cream-faint);
  font-size: 1.02rem;
}
.section-head--light p { color: var(--cream-dim); }

/* ---------------- Areas ---------------- */

.areas {
  padding: 104px 0;
  background: var(--ink-soft);
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.area-row {
  display: grid;
  grid-template-columns: 136px minmax(190px, 280px) 1fr;
  align-items: center;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
  border-left: 2px solid transparent;
  padding-left: 18px;
  transition: border-color 0.2s ease;
}

.area-row:hover {
  border-left-color: var(--gold);
}

.area-image {
  width: 136px;
  height: 102px;
  object-fit: cover;
  border: 1px solid var(--hairline);
  filter: saturate(0.92) contrast(1.04);
}

.area-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.area-icon {
  width: 26px;
  height: 26px;
  color: var(--gold);
  flex-shrink: 0;
}

.area-row h3 {
  font-size: 1.4rem;
  color: var(--gold-text);
}

.area-row p {
  color: var(--cream-dim);
  max-width: 58ch;
  align-self: center;
}

/* ---------------- Process ---------------- */

.processo {
  padding: 104px 0;
  background: var(--ink);
  border-top: 1px solid var(--hairline-soft);
  border-bottom: 1px solid var(--hairline-soft);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: var(--hairline);
}

.step {
  position: relative;
  padding-top: 32px;
}

.step-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--gold);
  box-shadow: 0 0 0 4px var(--ink);
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.step p {
  color: var(--cream-dim);
  font-size: 0.98rem;
}

/* ---------------- Sobre ---------------- */

.sobre {
  padding: 104px 0;
  background: var(--ink-soft);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.pull-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  line-height: 1.4;
  color: var(--gold-text);
  border-left: 1px solid var(--gold);
  padding-left: 24px;
}

.sobre-corpo h2 {
  margin-bottom: 22px;
}

.sobre-corpo p {
  color: var(--cream-dim);
  margin-bottom: 18px;
  max-width: 62ch;
}

.credencial {
  margin-top: 26px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--cream-faint);
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  display: inline-block;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  padding: 100px 0 110px;
  background: var(--ink);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 48px;
  align-items: start;
}

.cta-photo {
  width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  filter: saturate(0.95) contrast(1.03);
}

.cta-inner {
  border: 1px solid var(--hairline);
  padding: 48px 40px;
  border-radius: var(--radius);
  position: relative;
}

.cta-inner::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid var(--hairline-soft);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}

.cta-inner > p {
  color: var(--cream-dim);
  margin-top: 14px;
}

.contact-details {
  margin: 44px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.contact-details dt {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--gold-text);
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-details dd {
  margin: 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--gold-bright);
}

.map-embed {
  margin-top: 28px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 260px;
  border: 0;
  filter: grayscale(0.25) invert(92%) contrast(88%) hue-rotate(180deg) brightness(0.95);
}

/* ---------------- WhatsApp floating button ---------------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.45);
  z-index: 60;
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.whatsapp-float.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.whatsapp-float.is-visible:hover,
.whatsapp-float.is-visible:focus-visible {
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: opacity 0.01ms; }
}

/* ---------------- Footer ---------------- */

.site-footer {
  padding: 48px 0;
  background: var(--ink);
  border-top: 1px solid var(--hairline-soft);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-mark {
  width: 36px;
  opacity: 0.9;
}

.footer-row p {
  color: var(--cream-faint);
  font-size: 0.85rem;
}

.footer-fine {
  max-width: 46ch;
  font-size: 0.78rem !important;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 860px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .pull-quote {
    border-left: none;
    border-top: 1px solid var(--gold);
    padding-left: 0;
    padding-top: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .steps::before { display: none; }
  .contact-details {
    grid-template-columns: 1fr;
  }
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cta-photo {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--hairline-soft);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--hairline-soft);
  }
  .nav-cta {
    margin-top: 14px;
    text-align: center;
    justify-content: center;
    display: flex !important;
  }

  .area-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .area-image {
    width: 100%;
    height: 160px;
  }

  .hero { padding: 64px 0 72px; }
  .areas, .processo, .sobre { padding: 72px 0; }
  .cta-band { padding: 72px 0 80px; }
  .cta-inner { padding: 40px 22px; }
}
