/* ============================================================
   Willyam Nessy Advogados — tokens de marca
   Ver identidade/design-guide.md antes de alterar qualquer valor aqui.
   ============================================================ */

@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin.woff2") format("woff2-variations"),
       url("assets/fonts/inter-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  src: url("assets/fonts/inter-latin-ext.woff2") format("woff2-variations"),
       url("assets/fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces Variable";
  src: url("assets/fonts/fraunces-latin.woff2") format("woff2-variations"),
       url("assets/fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces Variable";
  src: url("assets/fonts/fraunces-latin-ext.woff2") format("woff2-variations"),
       url("assets/fonts/fraunces-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-950: #001426;
  --navy-900: #002040;
  --navy-800: #0a3357;
  --navy-700: #143a5c;
  --gold-500: #d4af37;
  --gold-400: #ddbe57;
  --gold-300: #e6cd7a;
  --cream-50: #fffdf8;
  --cream-100: #faf6ec;
  --white: #ffffff;
  --ink-muted: #4a5a6a;

  --font-serif: "Fraunces Variable", Georgia, "Times New Roman", serif;
  --font-sans: "Inter Variable", system-ui, -apple-system, sans-serif;

  --radius-sm: 14px;
  --radius-md: 24px;
  --radius-lg: 32px;

  --container: 1180px;
  --gutter: 20px;

  --shadow-soft: 0 20px 45px -25px rgb(0 20 38 / 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream-50);
  color: var(--navy-900);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  :root { --gutter: 32px; }
}

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

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

@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;
  }
}

/* ============================================================
   Botão — forma de canto cortado (assinatura visual da marca),
   nada de pill genérico. Seta desliza no hover; cores invertem.
   ============================================================ */

.btn {
  --btn-notch: 20px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 16px 30px 16px 28px;
  border: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  background: var(--gold-500);
  color: var(--navy-950);
  clip-path: polygon(
    0 0,
    calc(100% - var(--btn-notch)) 0,
    100% var(--btn-notch),
    100% 100%,
    0 100%
  );
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(
    0 0,
    calc(100% - var(--btn-notch)) 0,
    100% var(--btn-notch),
    100% 100%,
    0 100%
  );
  border: 1px solid color-mix(in srgb, var(--navy-950) 18%, transparent);
  pointer-events: none;
}

.btn-arrow {
  display: inline-flex;
  transition: transform 0.25s ease;
}
.btn-arrow svg {
  width: 18px;
  height: 18px;
}

.btn:hover {
  background: var(--navy-900);
  color: var(--cream-50);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.btn:hover .btn-arrow {
  transform: translateX(5px);
}
.btn:hover::after {
  border-color: color-mix(in srgb, var(--gold-500) 55%, transparent);
}
.btn:active {
  transform: translateY(0);
}

.btn-on-dark {
  background: var(--gold-500);
  color: var(--navy-950);
}
.btn-on-dark:hover {
  background: var(--cream-50);
  color: var(--navy-950);
}
.btn-on-dark:hover .btn-arrow {
  transform: translateX(5px);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-sm {
  min-height: 48px;
  padding: 12px 24px 12px 22px;
  font-size: 0.9rem;
  --btn-notch: 16px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  padding-block: 26px;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, border-color 0.3s ease;
}
.site-header[data-scrolled="true"],
.site-header[data-menu-open="true"] {
  background: rgb(255 253 248 / 0.95);
  backdrop-filter: blur(10px);
  border-bottom-color: rgb(212 175 55 / 0.35);
  padding-block: 16px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.logo img {
  height: 60px;
  width: auto;
  /* PNG da marca é preto sobre transparente; invertido pra branco sobre o hero escuro */
  filter: brightness(0) invert(1);
  transition: filter 0.3s ease;
}
.site-header[data-scrolled="true"] .logo img,
.site-header[data-menu-open="true"] .logo img {
  filter: none;
}
.logo-on-dark img {
  filter: brightness(0) invert(1);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 36px;
}
.main-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  color: rgb(255 255 255 / 0.9);
  transition: color 0.3s ease;
}
.site-header[data-scrolled="true"] .main-nav a {
  color: var(--navy-800);
}
.main-nav a:hover {
  color: var(--gold-400);
}

.header-cta {
  display: none;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: none;
  border: 0;
  color: var(--white);
  cursor: pointer;
}
.site-header[data-scrolled="true"] .menu-toggle,
.site-header[data-menu-open="true"] .menu-toggle {
  color: var(--navy-900);
}
.menu-toggle svg {
  width: 26px;
  height: 26px;
}
.menu-toggle .icon-close { display: none; }
.site-header[data-menu-open="true"] .menu-toggle .icon-open { display: none; }
.site-header[data-menu-open="true"] .menu-toggle .icon-close { display: block; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px var(--gutter) 24px;
  background: var(--cream-50);
  border-top: 1px solid rgb(0 20 38 / 0.08);
}
.site-header[data-menu-open="true"] .mobile-nav {
  display: flex;
}
.mobile-nav a {
  min-height: 48px;
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 500;
  font-size: 1.05rem;
}
.mobile-nav .btn {
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-cta { display: block; }
  .menu-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-900);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgb(0 10 20 / 0.55),
    rgb(0 10 20 / 0.35) 45%,
    rgb(0 10 20 / 0.7)
  );
}

.hero-inner {
  padding-block: 140px 96px;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: var(--gold-400);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw + 1rem, 4rem);
  letter-spacing: -0.01em;
  color: var(--white);
}

.hero-sub {
  margin-top: 24px;
  max-width: 540px;
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgb(255 255 255 / 0.85);
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    align-items: center;
  }
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(255 255 255 / 0.92);
  font-size: 0.94rem;
  font-weight: 500;
}
.stars {
  display: inline-flex;
  gap: 2px;
}
.stars svg {
  width: 17px;
  height: 17px;
  fill: var(--gold-500);
}
.stars svg.is-empty {
  fill: none;
  stroke: rgb(255 255 255 / 0.35);
}

/* ============================================================
   Seções gerais
   ============================================================ */

section {
  padding-block: 96px;
}
@media (min-width: 768px) {
  section { padding-block: 112px; }
}

.section-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin: 0 0 20px;
}
.section-label::before {
  content: "";
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: var(--gold-500);
  flex-shrink: 0;
}

.section-heading {
  font-size: clamp(1.9rem, 2.2vw + 1.15rem, 2.75rem);
  line-height: 1.18;
  color: var(--navy-900);
  max-width: 640px;
}

/* Áreas de atuação */

.practice-areas { background: var(--cream-50); }

.practice-grid {
  margin-top: 56px;
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) {
  .practice-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

.practice-card {
  padding: 44px 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgb(0 20 38 / 0.08);
}
.practice-card.is-dark {
  background: var(--navy-900);
  color: var(--white);
  border-color: transparent;
  border-radius: 0;
  /* corte de canto — mesma assinatura visual dos botões */
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}
.practice-card.is-light {
  background: var(--white);
  color: var(--navy-900);
}

.practice-card h3 {
  font-size: 1.5rem;
}
.practice-card p {
  margin-top: 12px;
  line-height: 1.6;
}
.practice-card.is-dark p { color: rgb(255 255 255 / 0.8); }
.practice-card.is-light p { color: color-mix(in srgb, var(--navy-800) 75%, transparent); }

.practice-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.practice-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.practice-list svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  color: var(--gold-500);
}
.practice-card.is-light .practice-list svg { color: var(--gold-500); }

/* Sobre + Unidade (foto + texto) */

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .split.reverse .split-media { order: 2; }
  .split.reverse .split-copy { order: 1; }
}

.about { background: var(--white); }
.location { background: var(--white); }

.split-copy p {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--navy-800) 85%, transparent);
}

.split-media {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  aspect-ratio: 4 / 3;
  /* mesmo corte de canto do botão e do card de destaque — assinatura visual repetida com parcimônia */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 64px 100%, 0 calc(100% - 64px));
}
.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.split-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgb(212 175 55 / 0.35);
  pointer-events: none;
}

.split-media--alt {
  /* corte no canto oposto (superior direito), mesma linguagem do card de
     destaque — dá variedade de ritmo em vez de repetir sempre o mesmo canto */
  clip-path: polygon(0 0, calc(100% - 48px) 0, 100% 48px, 100% 100%, 0 100%);
}

/* Unidade Porto Alegre: fachada e recepção lado a lado, no mesmo tamanho —
   a fachada nasceu em baixa resolução (141x118px), mas ganha presença real
   por ocupar o mesmo espaço que a outra foto, não um detalhe de canto. */
.location-intro {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.location-intro .section-label { justify-content: center; }
.location-intro .section-heading { max-width: none; }
.location-intro p { margin-top: 16px; font-size: 1.1rem; color: color-mix(in srgb, var(--navy-800) 85%, transparent); }

.location-gallery {
  margin-top: 56px;
  display: grid;
  gap: 28px;
}
@media (min-width: 700px) {
  .location-gallery {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.location-photo {
  margin: 0;
}
.location-photo figcaption {
  margin: 16px auto 0;
  max-width: 34ch;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-muted);
  text-align: center;
}

.location-address {
  margin-top: 24px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  color: var(--navy-900);
  font-size: 1.05rem;
  text-align: left;
}
.location-address svg {
  flex-shrink: 0;
  margin-top: 3px;
  width: 20px;
  height: 20px;
  color: var(--gold-500);
}

/* Depoimentos */

.testimonials { background: var(--cream-100); }

.testimonials-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .testimonials-head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.testimonials-rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy-800);
}

.testimonial-grid {
  margin-top: 48px;
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .testimonial-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 32px 28px 28px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 1px solid rgb(0 20 38 / 0.07);
}
.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: 6px;
  right: 20px;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold-500);
  opacity: 0.28;
  pointer-events: none;
}
.testimonial-card p {
  flex-grow: 1;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--navy-800);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgb(0 20 38 / 0.08);
}
.testimonial-meta .author {
  font-weight: 600;
  color: var(--navy-900);
}
.testimonial-meta .when {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* CTA final */

.cta-final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: var(--white);
  text-align: center;
}
.cta-final::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  left: 50%;
  width: 900px;
  height: 900px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(212 175 55 / 0.16), transparent 70%);
}
.cta-final .container {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.cta-final h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 2.2vw + 1.1rem, 2.6rem);
}
.cta-final p {
  font-size: 1.1rem;
  color: rgb(255 255 255 / 0.8);
}
.cta-final .phone-link {
  font-size: 0.92rem;
  color: rgb(255 255 255 / 0.6);
  text-decoration: none;
}
.cta-final .phone-link:hover { color: var(--white); }

/* Footer */

.site-footer {
  background: var(--navy-950);
  color: rgb(255 255 255 / 0.7);
  padding-block: 72px 40px;
}
.footer-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.footer-brand .logo { color: var(--white); }
.footer-brand .logo img { height: 84px; }
.footer-brand p {
  margin-top: 14px;
  max-width: 280px;
  font-size: 0.94rem;
  line-height: 1.55;
}
.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin: 0 0 18px;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.94rem;
}
.footer-list a {
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--white); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  width: 17px;
  height: 17px;
  color: var(--gold-400);
}

.social-row {
  margin-top: 24px;
  display: flex;
  gap: 14px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgb(255 255 255 / 0.15);
  border-radius: 50%;
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.social-link:hover {
  border-color: var(--gold-400);
  color: var(--gold-400);
}
.social-link svg { width: 19px; height: 19px; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgb(255 255 255 / 0.1);
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.5);
}

/* CTA fixo mobile */

.mobile-sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px var(--gutter);
  background: rgb(255 253 248 / 0.96);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgb(0 20 38 / 0.1);
}
@media (min-width: 1024px) {
  .mobile-sticky-cta { display: none; }
}

.footer-spacer {
  height: 76px;
  background: var(--navy-950);
}
@media (min-width: 1024px) {
  .footer-spacer { display: none; }
}
