/* ==========================================================================
   FLAVIA MONTEIRO ADVOCACIA — Redesign
   Paleta: Bordô & Champagne | Estilo: Editorial com storytelling
   ========================================================================== */

:root {
  --bordeaux: #5C1A2B;
  --bordeaux-deep: #3D0F1C;
  --bordeaux-light: #7A2A3B;
  --bordeaux-glow: rgba(92, 26, 43, 0.08);
  --champagne: #C9A961;
  --champagne-light: #DDB87A;
  --champagne-dark: #A88A42;
  --cream: #F7F2E8;
  --cream-deep: #EDE5D4;
  --sand: #E8DFD0;
  --ink: #2A2020;
  --ink-soft: #5A4F4F;
  --ink-muted: #8A7F7F;
  --white: #ffffff;
  --line: rgba(92, 26, 43, 0.12);
  --line-light: rgba(201, 169, 97, 0.3);
  --shadow-sm: 0 6px 24px rgba(92, 26, 43, 0.08);
  --shadow-md: 0 16px 50px rgba(92, 26, 43, 0.14);
  --shadow-lg: 0 30px 80px rgba(92, 26, 43, 0.2);
  --radius: 16px;
  --radius-sm: 10px;
  --header-height: 84px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, p { margin: 0; }

h1, h2, h3 {
  color: var(--bordeaux);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.4rem, 5.8vw, 4.5rem);
  font-weight: 800;
}

h1 em {
  color: var(--champagne);
  font-style: italic;
  font-weight: 600;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

p { color: var(--ink-soft); }

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* Main abaixo do header (stacking context) */
main {
  position: relative;
  z-index: 1;
}

/* Skip link */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--champagne);
  color: var(--bordeaux);
  border-radius: 8px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s;
}

.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  min-height: var(--header-height);
  background: var(--bordeaux-deep);
  isolation: isolate;
  transition: background 0.4s ease, box-shadow 0.4s ease, min-height 0.3s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(61, 15, 28, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 40px rgba(61, 15, 28, 0.3);
}

/* Desktop: header transparente sobre o hero (só > 1024px) */
@media (min-width: 1025px) {
  .site-header:not(.is-scrolled) {
    background: transparent;
  }
}

.nav {
  width: min(1200px, calc(100% - 48px));
  min-height: inherit;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border: 1.5px solid var(--champagne);
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.1);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.brand-letters {
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-text {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-text span {
  color: rgba(247, 242, 232, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Nav panel */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botão WhatsApp do topo:
   - Desktop: aparece dentro do nav-panel (à direita)
   - Tablet/mobile: aparece como botão standalone (mobile-whatsapp)
   O mobile-whatsapp é hidden por default e só aparece em <=1024px */
.mobile-whatsapp { display: none !important; }

.nav-panel > a:not(.btn) {
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(247, 242, 232, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-panel > a:not(.btn):hover,
.nav-panel > a:not(.btn):focus-visible {
  color: var(--champagne);
  background: rgba(201, 169, 97, 0.1);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid rgba(201, 169, 97, 0.35);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px; height: 2px;
  margin: 4px auto;
  background: var(--champagne);
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.btn-champagne {
  background: var(--champagne);
  color: var(--bordeaux);
  box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

.btn-champagne:hover, .btn-champagne:focus-visible {
  background: var(--champagne-light);
  box-shadow: 0 16px 40px rgba(201, 169, 97, 0.4);
}

.btn-outline-dark {
  border-color: var(--bordeaux);
  color: var(--bordeaux);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--bordeaux);
  color: var(--cream);
}

.btn-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn-large {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 1.02rem;
}

/* ==========================================================================
   EYEBROW (small label above headings)
   ========================================================================== */
.eyebrow {
  margin-bottom: 16px;
  color: var(--champagne-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow-light { color: var(--champagne); }

.areas-eyebrow {
  font-size: 2.25rem;
  text-align: left;
  margin-bottom: 0;
  line-height: 1.1;
}

@media (max-width: 767px) {
  .areas-eyebrow {
    font-size: clamp(2.8rem, 12vw, 4.5rem);
  }
}

.section-heading {
  max-width: 780px;
  margin-bottom: 48px;
}

.section {
  padding: 120px 0;
}

.section-cream { background: var(--cream-deep); }
.section-bordeaux {
  background: var(--bordeaux);
  color: var(--cream);
}
.section-bordeaux h1,
.section-bordeaux h2,
.section-bordeaux h3 { color: var(--cream); }
.section-bordeaux p { color: rgba(247, 242, 232, 0.75); }

.heading-light { color: var(--cream) !important; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bordeaux-deep);
  /* padding-top compensa o header fixo: o flex centering passa a
     centralizar o conteúdo no espaço VISÍVEL (abaixo do header), não no 100vh cheio. */
  padding-top: var(--header-height);
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(201, 169, 97, 0.15), transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(122, 42, 59, 0.4), transparent 60%),
    linear-gradient(135deg, var(--bordeaux-deep), var(--bordeaux));
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(247, 242, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 242, 232, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

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

.hero-copy h1 { color: var(--cream); }

.hero-subtitle {
  margin-top: 28px;
  color: rgba(247, 242, 232, 0.75);
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.6;
}

.hero-actions {
  margin-top: 36px;
}

.hero-actions-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: rgba(247, 242, 232, 0.78);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-actions-note svg {
  width: 16px;
  height: 16px;
  color: var(--champagne);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-portrait {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 3/4;
  border-radius: 200px 200px 16px 16px;
  overflow: hidden;
  border: 1.5px solid rgba(201, 169, 97, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.hero-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.hero-badge strong {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--bordeaux);
  line-height: 1;
}

.hero-badge span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(201, 169, 97, 0.4);
  border-radius: 12px;
  position: relative;
}

.hero-scroll span::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--champagne);
  animation: scroll-dot 2s infinite;
}

@keyframes scroll-dot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Coluna de princípios */
.about-principles {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.principles-title {
  margin-bottom: 28px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--bordeaux);
}

.principles-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}

.principles-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.principle-icon {
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(201, 169, 97, 0.1);
  color: var(--bordeaux);
}

.principle-icon svg {
  width: 24px;
  height: 24px;
}

.principles-list strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--bordeaux);
}

.principles-list span {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.about-copy .lead {
  margin-bottom: 22px;
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 400;
}

.about-copy p {
  margin-bottom: 0;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--bordeaux);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ==========================================================================
   ÁREAS
   ========================================================================== */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* No desktop, card de Advocacia Extrajudicial ocupa a largura total */
.practice-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 0 24px;
  align-items: start;
}

.practice-card-wide .practice-icon {
  grid-row: 1 / 3;
  margin-bottom: 0;
}

.practice-card-wide h3 {
  grid-column: 2;
  margin-bottom: 4px;
  align-self: end;
}

.practice-card-wide .practice-intro {
  grid-column: 2;
  margin-bottom: 14px;
}

.practice-card-wide .practice-tags {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 12px;
  margin-bottom: 18px;
}

.practice-card-wide .practice-link {
  grid-column: 2;
  justify-self: start;
}

.practice-card {
  padding: 36px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.practice-card:hover {
  transform: translateY(-8px);
  border-color: var(--champagne);
  box-shadow: var(--shadow-md);
}

.practice-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 24px;
  border: 1.5px solid var(--champagne);
  border-radius: 14px;
  color: var(--bordeaux);
  background: rgba(201, 169, 97, 0.08);
  transition: background 0.35s, color 0.35s;
}

.practice-card:hover .practice-icon {
  background: var(--bordeaux);
  color: var(--champagne);
}

.practice-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.practice-card h3 {
  margin-bottom: 10px;
  color: var(--bordeaux);
}

.practice-card p {
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Tags no card de Advocacia Extrajudicial */
.practice-intro {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.practice-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.practice-tag {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(92, 26, 43, 0.06);
  border: 1px solid rgba(92, 26, 43, 0.1);
  color: var(--bordeaux);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.3;
}

.practice-link {
  display: inline-block;
  margin-top: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--champagne-dark);
  font-size: 0.86rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s, color 0.2s;
}

.practice-card:hover .practice-link {
  opacity: 1;
  transform: translateX(0);
}

.practice-link:hover {
  color: var(--bordeaux);
}

/* ==========================================================================
   DIFERENCIAIS
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature {
  padding: 32px 24px;
  border: 1px solid rgba(201, 169, 97, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  transition: background 0.35s, border-color 0.35s, transform 0.35s;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(201, 169, 97, 0.5);
  transform: translateY(-4px);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.12);
  color: var(--champagne);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  color: var(--cream);
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.feature p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(247, 242, 232, 0.7) !important;
}

/* ==========================================================================
   CITAÇÃO
   ========================================================================== */
.quote-section {
  padding: 100px 0;
  background: var(--cream);
  position: relative;
}

.quote-section::before {
  content: "\201C";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 8rem;
  color: var(--champagne);
  opacity: 0.25;
  line-height: 1;
}

.quote-inner {
  max-width: 760px;
  text-align: center;
  position: relative;
}

blockquote {
  margin: 0;
}

blockquote p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--bordeaux);
}

blockquote cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--champagne-dark);
}

/* ==========================================================================
   LOCALIZAÇÃO
   ========================================================================== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.location-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.location-instagram .location-icon {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
}

.location-instagram .location-icon svg {
  stroke: #ffffff;
}

.location-instagram .btn-outline-dark:hover {
  border-color: #bc1888;
  color: #bc1888;
}

.location-icon {
  flex: 0 0 56px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(201, 169, 97, 0.1);
  color: var(--bordeaux);
}

.location-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.location-card strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--bordeaux);
}

.location-card p {
  margin-bottom: 18px;
  font-size: 0.96rem;
}

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  min-height: 360px;
  background: var(--sand);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bordeaux-deep);
  color: rgba(247, 242, 232, 0.8);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer .brand { margin-bottom: 18px; }

.footer p {
  color: rgba(247, 242, 232, 0.65);
  font-size: 0.92rem;
}

.footer strong {
  display: block;
  margin-bottom: 12px;
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.footer a {
  color: rgba(247, 242, 232, 0.65);
  transition: color 0.2s;
}

.footer a:hover { color: var(--champagne); }

.footer-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-wa-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  transition: transform 0.2s ease, background 0.2s ease;
}

.footer-wa-icon:hover {
  background: #1ebe57;
  transform: scale(1.1);
}

.footer-wa-icon svg {
  width: 15px;
  height: 15px;
}

.footer-phone-label {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(201, 169, 97, 0.15);
  color: var(--champagne);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(247, 242, 232, 0.5);
  text-align: center;
}

/* ==========================================================================
   ANIMAÇÕES (reveal)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

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

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */
@media (max-width: 1024px) {
  /* Mostra o botão WhatsApp standalone no tablet */
  .mobile-whatsapp { display: inline-flex !important; }
  /* Esconde o WhatsApp duplicado dentro do nav-panel no tablet */
  .nav-panel .btn { display: none; }

  /* Header já é bordô-deep sólido por default (definido no base) */

  /* Nav: brand à esquerda, WhatsApp + hamburger agrupados à direita */
  .nav {
    gap: 12px;
  }

  /* Agrupa WhatsApp e hamburger no canto direito */
  .mobile-whatsapp {
    order: 3;
    margin-left: auto;
  }

  .menu-toggle {
    order: 4;
    display: block;
  }

  /* Nav-panel vira menu dropdown no tablet/mobile.
     IMPORTANTE: visibility:hidden quando fechado para NÃO sobrepor o header.
     translateY(-120%) não é suficiente pois o painel começa em top:header-height. */
  .nav-panel {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 20px;
    background: rgba(61, 15, 28, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(201, 169, 97, 0.2);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: visibility 0s linear 0.3s, opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-panel.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: visibility 0s, opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-panel > a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid rgba(247, 242, 232, 0.08);
    font-size: 1rem;
  }

  /* iPad portrait mantém 2 colunas no hero ( texto + foto ) */
  .hero-content {
    gap: 40px;
  }

  .hero-portrait { width: 260px; }
  .hero-badge {
    bottom: -10px;
    left: -10px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-principles { padding: 32px; }

  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .practice-card-wide {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .practice-card-wide .practice-icon { grid-row: auto; margin-bottom: 24px; }
  .practice-card-wide h3,
  .practice-card-wide .practice-intro,
  .practice-card-wide .practice-tags,
  .practice-card-wide .practice-link {
    grid-column: auto;
    align-self: flex-start;
  }
  .practice-card-wide .practice-tags {
    display: flex;
    grid-template-columns: none;
  }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- Mobile (<=820px): hero reorganizado ---- */
@media (max-width: 820px) {
  :root { --header-height: 72px; }

  /* Hamburger e nav-panel já configurados em <=1024px */

  .section { padding: 80px 0; }

  /* Hero mobile/tablet: 2 colunas (texto + foto) proporcionais */
  .hero {
    min-height: auto;
    padding-bottom: 70px;
    align-items: flex-start;
  }

  .hero-content {
    grid-template-columns: 1.35fr 0.65fr;
    gap: 20px;
    text-align: left;
    align-items: center;
    padding-top: 24px;
  }

  .hero-copy .eyebrow {
    margin-bottom: 14px;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 5.2vw, 2.1rem);
  }

  .hero-subtitle {
    margin-top: 14px;
    font-size: 0.92rem;
  }

  .hero-actions { margin-top: 22px; }
  .hero-actions-note {
    margin-top: 10px;
    font-size: 0.78rem;
  }
  .hero-actions .btn {
    width: auto;
    max-width: 100%;
    padding: 13px 20px;
    font-size: 0.88rem;
  }

  /* Foto maior, à direita, harmônica com o texto */
  .hero-visual {
    order: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .hero-portrait {
    width: 100%;
    max-width: 200px;
    aspect-ratio: 3/4;
    margin-left: auto;
  }
  .hero-badge {
    position: static;
    display: inline-flex;
    padding: 10px 14px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badge strong { font-size: 1.4rem; }
  .hero-badge span { font-size: 0.66rem; }

  /* Esconde indicador de scroll no mobile */
  .hero-scroll { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: left;
  }

  .about-principles { padding: 28px; }
  .principles-list { gap: 20px; }

  .about-stats { gap: 12px; }
  .stat strong { font-size: 1.6rem; }
  .stat span { font-size: 0.76rem; }

  .practice-grid { grid-template-columns: 1fr; }
  .practice-card-wide {
    grid-column: auto;
    display: flex;
    flex-direction: column;
  }
  .practice-card-wide .practice-icon { grid-row: auto; margin-bottom: 24px; }
  .practice-card-wide h3,
  .practice-card-wide .practice-intro,
  .practice-card-wide .practice-tags,
  .practice-card-wide .practice-link {
    grid-column: auto;
    align-self: flex-start;
  }
  .practice-card-wide .practice-tags {
    display: flex;
    grid-template-columns: none;
  }
  .features-grid { grid-template-columns: 1fr; }

  .location-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 64px 0; }

  /* Hero pequeno: mantém 2 colunas, foto ajustada */
  .hero-content {
    grid-template-columns: 1.45fr 0.55fr;
    gap: 14px;
    padding-top: 20px;
  }

  .hero-portrait {
    width: 100%;
    max-width: 150px;
    margin-left: auto;
  }
  .hero-badge {
    position: static;
    display: inline-flex;
    padding: 8px 12px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-badge strong { font-size: 1.2rem; }
  .hero-badge span { font-size: 0.6rem; }

  .hero-copy h1 { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-actions .btn {
    padding: 12px 16px;
    font-size: 0.82rem;
    width: auto;
    max-width: 100%;
  }
  .hero-actions-note {
    margin-top: 8px;
    font-size: 0.72rem;
  }

  .about-stats { grid-template-columns: 1fr; }
  .practice-card { padding: 28px 22px; }
  .feature { padding: 24px 20px; }

  .quote-section { padding: 70px 0; }
  .quote-section::before { font-size: 5rem; }

  .location-card {
    flex-direction: column;
    padding: 24px;
  }
}
