/* 
  Styles for Dra. Márcia Souza - Advocacia & Consultoria Jurídica
  Design Reference Inspired by Firmly Dribbble UX/UI Case Study
  Reference palette: cream #EDE7D4, charcoal #191C1B, brown #3D2A1E,
  terracotta #955731, gold #D3AF59, beige #E4D8C0, warm white #F4F1E9
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Reference palette and surface roles */
  --bg-main: #F4F1E9;          /* Warm white canvas, as in the reference site */
  --bg-surface: #F4F1E9;       /* Warm white raised surface */
  --bg-subtle: #EDE7D4;        /* Cream section and card surface */
  --bg-dark: #191C1B;          /* Swatch 1: Deep Charcoal / Espresso Black */
  --bg-dark-card: #3D2A1E;     /* Swatch 2: Deep Espresso Brown */
  --bg-dark-subtle: #4C3526;   /* Dark Chocolate Brown */

  /* Accents */
  --terracotta: #955731;       /* Swatch 3: Warm Terracotta / Chestnut Accent */
  --gold-primary: #D3AF59;     /* Swatch 4: Warm Ochre Gold Accent */
  --gold-ink: #79551F;       /* Accessible gold text on light surfaces */
  --gold-hover: #DEC47F;
  --gold-light: #EDE7D4;
  --gold-subtle: rgba(211, 175, 89, 0.14);
  --gold-gradient: linear-gradient(135deg, #DEC47F 0%, #D3AF59 50%, #D3AF59 100%);
  --gold-glow: rgba(211, 175, 89, 0.28);
  --terracotta-subtle: rgba(149, 87, 49, 0.12);

  /* Text Colors */
  --text-primary: #191C1B;
  --text-secondary: #3D2A1E;
  --text-muted: #685644;
  --text-light: #EDE7D4;
  --text-light-muted: #E4D8C0;

  /* Status Colors */
  --success: #955731;
  --success-bg: #E4D8C0;
  --whatsapp: #955731;
  --whatsapp-hover: #7A4427;

  /* UI Tokens */
  --border-color: #C5B79A;
  --border-dark: #70543C;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(25, 28, 27, 0.04);
  --shadow-md: 0 10px 30px rgba(25, 28, 27, 0.08);
  --shadow-lg: 0 20px 50px rgba(25, 28, 27, 0.12);
  --shadow-gold: 0 12px 32px rgba(211, 175, 89, 0.25);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Fonts (Merged Poppins for Headings/Impact & Montserrat for Body/Nav/UI) */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-heading);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background-color: var(--terracotta-subtle);
  color: var(--terracotta);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 100px;
  border: 1px solid rgba(149, 87, 49, 0.28);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--terracotta);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.section-title.light {
  color: var(--bg-surface);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
}

.section-subtitle.light {
  color: var(--text-light-muted);
}

.text-center {
  text-align: center;
}
.text-center .section-subtitle {
  margin: 0 auto;
}

.gold-text {
  color: var(--gold-ink);
  display: inline-block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--bg-dark);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(211, 175, 89, 0.35);
  filter: brightness(1.06);
}

.btn-secondary {
  background-color: var(--bg-dark);
  color: var(--bg-surface);
}

.btn-secondary:hover {
  background-color: #3D2A1E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background-color: var(--gold-subtle);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: #F4F1E9;
  box-shadow: 0 10px 25px rgba(149, 87, 49, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(149, 87, 49, 0.35);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.05rem;
}

/* Announcement Top Bar */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-light-muted);
  font-size: 0.82rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #D3AF59;
  font-weight: 600;
  background: rgba(211, 175, 89, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(211, 175, 89, 0.2);
}

.status-pulse {
  width: 7px;
  height: 7px;
  background-color: #D3AF59;
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(211, 175, 89, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(211, 175, 89, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(211, 175, 89, 0); }
}

.top-info-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light-muted);
}
.top-info-link:hover {
  color: var(--gold-primary);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(237, 231, 212, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 216, 192, 0.8);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(244, 241, 233, 0.96);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-dark);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mobile-cta-item {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  padding: 65px 0 90px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, rgba(211, 175, 89, 0.08) 0%, rgba(237, 231, 212, 0) 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--gold-primary);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 4.8vw, 4.1rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 580px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 45px;
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Hero Media Column */
.hero-media-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--bg-surface);
  background-color: var(--bg-dark);
}

.hero-image-card img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
}

.hero-image-card:hover img {
  transform: scale(1.02);
}

/* Hero Floating Badges */
.floating-badge {
  position: absolute;
  background-color: rgba(244, 241, 233, 0.94);
  backdrop-filter: blur(12px);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(244, 241, 233, 0.8);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
  animation: float 4s ease-in-out infinite alternate;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

.floating-badge.badge-top-left {
  top: 30px;
  left: -25px;
}

.floating-badge.badge-bottom-right {
  bottom: 35px;
  right: -25px;
  animation-delay: -2s;
}

.badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-text-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.badge-text-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* SECTION: TRUST & RECOGNITION BAR */
.trust-bar {
  background-color: var(--bg-dark);
  color: var(--bg-surface);
  padding: 40px 0;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.trust-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.trust-title {
  font-size: 0.95rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  max-width: 200px;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-logo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-light-muted);
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.85;
  transition: var(--transition);
}

.trust-logo-item:hover {
  opacity: 1;
  color: var(--gold-primary);
}

.trust-logo-item i {
  font-size: 1.3rem;
  color: var(--gold-primary);
}

/* SECTION: PRACTICE AREAS (ÁREAS DE ATUAÇÃO) */
.practice-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.practice-header {
  margin-bottom: 60px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.practice-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gold-gradient);
  opacity: 0;
  transition: var(--transition);
}

.practice-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(211, 175, 89, 0.4);
}

.practice-card:hover::before {
  opacity: 1;
}

.card-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background-color: var(--bg-subtle);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  transition: var(--transition);
}

.practice-card:hover .card-icon-box {
  background: var(--gold-gradient);
  color: #F4F1E9;
  box-shadow: var(--shadow-gold);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.25;
}

.card-description {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.card-tag {
  font-size: 0.78rem;
  padding: 4px 12px;
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border-radius: 100px;
  font-weight: 500;
}

.card-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.card-footer-btn i {
  transition: transform 0.3s ease;
}

.card-footer-btn:hover i {
  transform: translateX(5px);
}

/* SECTION: ABOUT DRA. MÁRCIA SOUZA */
.about-section {
  padding: 110px 0;
  background-color: var(--bg-dark);
  color: var(--bg-surface);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-image-column {
  position: relative;
}

.about-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 3px solid var(--border-dark);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.about-image-wrapper img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.about-experience-card {
  position: absolute;
  bottom: -25px;
  right: -25px;
  background: var(--bg-dark-card);
  border: 1px solid var(--gold-primary);
  padding: 24px 30px;
  border-radius: var(--radius-md);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 16px;
}

.exp-years {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.exp-text {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-content-column .section-title {
  color: #F4F1E9;
}

.about-bio-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--bg-subtle);
  margin-bottom: 20px;
  font-weight: 400;
}

.about-bio-text {
  font-size: 0.98rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-credentials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 36px;
}

.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cred-icon {
  color: var(--gold-primary);
  font-size: 1.2rem;
  margin-top: 2px;
}

.cred-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F4F1E9;
}

.cred-desc {
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

/* SECTION: CASE CALCULATOR & CASE ESTIMATOR (DIFERENCIAL INTERATIVO) */
.simulator-section {
  padding: 100px 0;
  background-color: var(--bg-subtle);
}

.simulator-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 50px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto;
}

.sim-step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-bottom: 40px;
}

.sim-step-indicator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--border-color);
  z-index: 1;
  transform: translateY(-50%);
}

.sim-step-point {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.sim-step-point.active {
  border-color: var(--gold-primary);
  background-color: var(--gold-primary);
  color: #F4F1E9;
  box-shadow: var(--shadow-gold);
}

.sim-step-point.completed {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #F4F1E9;
}

.sim-step-content {
  display: none;
}

.sim-step-content.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-question {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 28px 0 35px;
}

.option-btn {
  padding: 20px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background-color: var(--bg-main);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-btn i {
  font-size: 1.5rem;
  color: var(--gold-primary);
}

.option-btn-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
}

.option-btn-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.option-btn:hover, .option-btn.selected {
  border-color: var(--gold-primary);
  background-color: var(--gold-subtle);
  transform: translateY(-3px);
}

.sim-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* SECTION: PROCESS & METHODOLOGY (4 STEPS) */
.process-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.process-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 35px 28px;
  border: 1px solid var(--border-color);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-primary);
}

.process-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-subtle);
  line-height: 1;
  position: absolute;
  top: 20px;
  right: 25px;
  -webkit-text-stroke: 1px var(--gold-primary);
}

.process-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-dark);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 22px;
}

.process-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.process-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* SECTION: TESTIMONIALS & REVIEWS */
.testimonials-section {
  padding: 100px 0;
  background-color: var(--bg-dark);
  color: var(--bg-surface);
}

.reviews-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(244, 241, 233, 0.08);
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid rgba(244, 241, 233, 0.15);
  font-size: 0.88rem;
  color: var(--gold-primary);
  margin-bottom: 20px;
}

.stars-rating {
  color: #D3AF59;
  display: inline-flex;
  gap: 3px;
  font-size: 1.1rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 55px;
}

.review-card {
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.review-text {
  font-size: 0.98rem;
  color: var(--text-light-muted);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--border-dark);
  padding-top: 18px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #F4F1E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-name {
  font-weight: 700;
  font-size: 0.98rem;
  color: #F4F1E9;
}

.author-case {
  font-size: 0.8rem;
  color: var(--gold-primary);
}

/* SECTION: FAQ ACCORDION WITH SEARCH */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.faq-search-box {
  max-width: 580px;
  margin: 30px auto 50px;
  position: relative;
}

.faq-search-box input {
  width: 100%;
  padding: 16px 24px 16px 54px;
  border-radius: 100px;
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  outline: none;
  font-size: 0.98rem;
  transition: var(--transition);
}

.faq-search-box input:focus {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-gold);
}

.faq-search-box i {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.2rem;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 22px 28px;
  background: none;
  border: none;
  text-align: left;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 15px;
}

.faq-question i {
  color: var(--gold-primary);
  transition: transform 0.3s ease;
  font-size: 1.1rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  padding: 0 28px;
  background-color: rgba(237, 231, 212, 0.5);
}

.faq-item.active .faq-answer {
  max-height: 400px;
  padding: 0 28px 24px;
}

.faq-answer p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* SECTION: CONTACT & BOOKING FORM */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-card {
  background-color: var(--bg-dark);
  color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 45px 38px;
  box-shadow: var(--shadow-md);

}

.contact-info-card .section-title {
  color: #F4F1E9;
  font-size: 2.2rem;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 35px 0 40px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-text-title {
  font-size: 0.85rem;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-text-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #F4F1E9;
}

.form-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 45px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-main);
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--gold-primary);
  background-color: #F4F1E9;
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success-message {
  display: none;
  background-color: var(--success-bg);
  color: #3D2A1E;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  margin-top: 15px;
  align-items: center;
  gap: 10px;
}

/* MODAL DIALOGS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 28, 27, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--bg-surface);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--bg-subtle);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--bg-dark);
  color: #F4F1E9;
}

/* FLOATING WHATSAPP & BACK TO TOP BUTTONS */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.float-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
}

.float-whatsapp {
  background-color: var(--whatsapp);
  color: #F4F1E9;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  background-color: var(--whatsapp-hover);
}

.float-whatsapp-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--whatsapp);
  opacity: 0.6;
  z-index: -1;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.float-top {
  background-color: var(--bg-dark);
  color: var(--gold-primary);
  opacity: 0;
  visibility: hidden;
}

.float-top.visible {
  opacity: 1;
  visibility: visible;
}

.float-top:hover {
  transform: translateY(-4px);
  background-color: var(--gold-primary);
  color: #F4F1E9;
}

/* FOOTER */
.footer {
  background-color: var(--bg-dark);
  color: var(--bg-surface);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-brand .logo-name {
  color: #F4F1E9;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  line-height: 1.65;
  margin: 18px 0 24px;
}

.footer-oab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-dark-card);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--gold-primary);
  font-weight: 600;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  color: #F4F1E9;
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.footer-links a:hover {
  color: var(--gold-primary);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.82rem;
  color: var(--text-light-muted);
}

/* ==========================================================================
   SPECIFIC RESPONSIVE BREAKPOINTS (1440px, 1200px, 1140px, 960px, 834px, 428px)
   ========================================================================== */

/* 1. DESKTOP 1440px (Ultra-wide & Large Screens) */
@media (min-width: 1440px) {
  .container {
    max-width: 1360px;
  }

  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
  }

  .hero-image-card img {
    height: 580px;
  }

  .hero-title {
    font-size: 4.3rem;
  }

  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
  }
}

/* 2. DESKTOP 1200px (Standard Large Laptops / Monitors) */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .nav-menu {
    gap: 16px;
  }

  .nav-link {
    font-size: 0.84rem;
  }

  .hero-grid {
    gap: 40px;
  }

  .hero-title {
    font-size: 3.4rem;
  }

  .hero-image-card img {
    height: 480px;
  }

  .practice-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .about-grid {
    gap: 45px;
  }
}

/* 3. DESKTOP 1140px (Compact Laptops & Small Desktops) */
@media (max-width: 1140px) {
  .container {
    max-width: 1060px;
  }

  .nav-menu {
    gap: 12px;
  }

  .nav-link {
    font-size: 0.82rem;
  }

  .hero-title {
    font-size: 3.1rem;
  }

  .hero-description {
    font-size: 1.05rem;
  }

  .about-image-wrapper img {
    height: 460px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
    gap: 30px;
  }
}

/* 4. DESKTOP 960px (Small Desktop & Landscape Tablets) */
@media (max-width: 960px) {
  .container {
    max-width: 900px;
  }

  .nav-actions .btn-sm, .nav-actions .btn {
    display: none; /* Hide header CTA button on mobile/tablet so logo and hamburger menu fit perfectly without overflow */
  }

  .mobile-cta-item {
    display: block;
    width: 100%;
  }

  /* Header transitions to drawer overlay to prevent crowding */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-surface);
    flex-direction: column;
    padding: 30px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background-color: var(--bg-subtle);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
  }

  .mobile-toggle:hover {
    background-color: var(--gold-primary);
    color: #F4F1E9;
    border-color: var(--gold-primary);
  }

  /* Layout conversions to single column */
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-media-wrapper {
    order: -1;
  }

  .hero-image-card {
    max-width: 420px;
    margin: 0 auto;
  }

  .hero-image-card img {
    height: 460px;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .about-experience-card {
    right: 0px;
    bottom: -15px;
    padding: 18px 22px;
  }
}

/* 5. TABLET 834px (iPad Pro 11", iPad Air & Medium Tablets) */
@media (max-width: 834px) {
  .container {
    width: 92%;
    padding: 0 16px;
  }

  .top-bar-content {
    justify-content: center;
    gap: 10px;
    font-size: 0.78rem;
  }

  .top-bar-right {
    display: none; /* Hide secondary top links on tablet to keep top bar clean */
  }

  .hero-title {
    font-size: 2.7rem;
  }

  .hero-trust-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .metric-number {
    font-size: 1.75rem;
  }

  .metric-label {
    font-size: 0.76rem;
  }

  .practice-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .practice-card {
    padding: 30px 24px;
  }

  .simulator-card {
    padding: 36px 26px;
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .floating-badge.badge-top-left {
    left: 0;
    top: 15px;
    padding: 10px 14px;
  }

  .floating-badge.badge-bottom-right {
    right: 0;
    bottom: 20px;
    padding: 10px 14px;
  }

  .modal-content {
    padding: 30px 24px;
    max-width: 94%;
  }
}

/* 6. MOBILE 428px (iPhone Pro Max, Modern Large Smartphones & Small Mobiles) */
@media (max-width: 428px) {
  .container {
    width: 94%;
    padding: 0 12px;
  }

  .top-bar {
    display: none; /* Completely hide top bar on mobile screens */
  }

  .navbar {
    height: 64px;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .logo-name {
    font-size: 1rem;
  }

  .logo-sub {
    font-size: 0.6rem;
    letter-spacing: 0.8px;
  }

  .hero {
    padding: 35px 0 60px;
  }

  .hero-badge {
    padding: 6px 14px;
    font-size: 0.78rem;
  }

  .hero-title {
    font-size: 2.15rem;
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.92rem;
  }

  .hero-image-card {
    max-width: 100%;
    border-radius: var(--radius-lg);
  }

  .hero-image-card img {
    height: 380px;
  }

  .floating-badge {
    display: none; /* Hide floating overlays on 428px mobile to maximize image visibility */
  }

  .hero-trust-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .metric-number {
    font-size: 1.5rem;
  }

  .trust-logos {
    gap: 20px;
    justify-content: center;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }

  .practice-section, .about-section, .simulator-section, .process-section, .testimonials-section, .faq-section, .contact-section {
    padding: 60px 0;
  }

  .practice-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .practice-card {
    padding: 26px 20px;
  }

  .about-image-wrapper img {
    height: 380px;
  }

  .about-experience-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
  }

  .about-credentials {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .simulator-card {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .step-question {
    font-size: 1.4rem;
  }

  .options-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .option-btn {
    padding: 16px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .review-card {
    padding: 24px 20px;
  }

  .faq-question {
    padding: 16px 18px;
    font-size: 0.98rem;
  }

  .faq-answer {
    padding: 0 18px;
  }

  .faq-item.active .faq-answer {
    padding: 0 18px 18px;
  }

  .form-card, .contact-info-card {
    padding: 28px 20px;
    border-radius: var(--radius-lg);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .floating-actions {
    bottom: 20px;
    right: 20px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }
}

/* Palette contrast and keyboard interaction states */
.logo-sub, .card-footer-btn, .faq-icon, .btn-outline:hover {
  color: var(--gold-ink);
}
.hero-title .gold-text { color: var(--terracotta); }
.card-icon-box, .badge-icon, .hero-badge i { color: var(--terracotta); }
.practice-card:hover .card-icon-box, .sim-step-point.active, .float-top:hover {
  color: var(--bg-dark);
}
.about-section, .contact-info-card { background-color: var(--bg-dark-card); }
.top-bar .gold-text, .about-section .gold-text, .contact-info-card .gold-text,
.footer .gold-text, .footer .logo-sub { color: var(--gold-primary); }
.about-section .section-tag, .contact-info-card .section-tag {
  color: var(--gold-primary);
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
}
.about-section .section-tag::before, .contact-info-card .section-tag::before {
  background-color: var(--gold-primary);
}
:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 4px;
}
:where(.top-bar, .about-section, .contact-info-card, .footer) :focus-visible {
  outline-color: var(--gold-primary);
}
::selection { background: var(--gold-primary); color: var(--bg-dark); }
@media (max-width: 768px) {
  .mobile-toggle:hover { color: var(--bg-dark); }
}

.form-control { color: var(--text-primary); }
.form-control::placeholder { color: var(--text-muted); opacity: 1; }
.form-control:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.option-btn i, .faq-search i { color: var(--terracotta); }

.author-avatar { color: var(--bg-dark); }
.faq-question i { color: var(--terracotta); }
.faq-search-box input:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 3px; }

/* Color distribution from exemplo 1 and exemplo 2: ivory canvas,
   terracotta actions, brown feature bands, and restrained gold details. */
.header, .header.scrolled { background-color: rgba(244, 241, 233, 0.96); }
.hero { background: var(--bg-main); }
.top-bar, .trust-bar { background-color: var(--bg-dark-card); }
.practice-card, .process-card { background-color: var(--bg-subtle); }
.btn-primary, .btn-whatsapp {
  background: var(--terracotta);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover, .btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: var(--shadow-md);
  filter: none;
}
.btn-secondary { background-color: var(--bg-dark-card); }
.btn-secondary:hover { background-color: var(--bg-dark-subtle); }
.nav-link::after, .practice-card::before { background: var(--terracotta); }
.practice-card:hover .card-icon-box {
  background: var(--terracotta);
  color: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}
.card-footer-btn, .logo-sub { color: var(--terracotta); }
.about-section {
  background-color: var(--bg-main);
  color: var(--text-primary);
}
.about-content-column .section-title, .cred-title { color: var(--text-primary); }
.about-bio-lead, .about-bio-text, .cred-desc { color: var(--text-secondary); }
.cred-icon { color: var(--terracotta); }
.about-section .section-tag {
  color: var(--terracotta);
  background: var(--terracotta-subtle);
  border-color: rgba(149, 87, 49, 0.28);
}
.about-section .section-tag::before { background-color: var(--terracotta); }
.about-section .gold-text { color: var(--gold-ink); }
.about-image-wrapper { border-color: var(--bg-subtle); box-shadow: var(--shadow-md); }
.about-experience-card { background: var(--bg-dark-card); }
.simulator-section, .contact-section { background-color: var(--bg-subtle); }
.process-section { background-color: var(--bg-dark-card); }
.process-section .section-title { color: var(--bg-surface); }
.process-section .section-subtitle { color: var(--text-light-muted); }
.process-section .section-tag {
  color: var(--gold-primary);
  background: var(--gold-subtle);
  border-color: var(--gold-primary);
}
.process-section .section-tag::before { background-color: var(--gold-primary); }
.process-card { background-color: var(--bg-subtle); border-color: var(--border-color); }
.process-title { color: var(--terracotta); }
.process-desc { color: var(--text-secondary); }
.process-icon { background-color: var(--bg-dark-card); }
.testimonials-section { background-color: var(--bg-main); color: var(--text-primary); }
.testimonials-section .section-title { color: var(--text-primary); }
.testimonials-section .section-subtitle { color: var(--text-secondary); }
.reviews-header-badge {
  background: var(--bg-subtle);
  border-color: var(--border-color);
  color: var(--terracotta);
}
.reviews-header-badge .stars-rating { color: var(--gold-ink); }
.review-card { background-color: var(--bg-dark-subtle); }
.review-card:hover { box-shadow: var(--shadow-md); }
.footer { background-color: var(--bg-main); color: var(--text-primary); border-color: var(--border-color); }
.footer-brand .logo-name, .footer-heading { color: var(--text-primary); }
.footer-desc, .footer-links a, .footer-bottom { color: var(--text-secondary); }
.footer .logo-sub, .footer .gold-text, .footer-links a:hover { color: var(--terracotta); }
.footer-oab { background: var(--bg-subtle); border-color: var(--border-color); color: var(--text-secondary); }
.footer-bottom { border-color: var(--border-color); }
:where(.about-section, .footer) :focus-visible { outline-color: var(--terracotta); }
.process-section :focus-visible { outline-color: var(--gold-primary); }

/* Keep horizontal entrances within the viewport without altering section layouts. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Pre-reveal state preserves layout; without the head bootstrap all content is visible. */
@media (prefers-reduced-motion: no-preference) {
  .entrances-enabled :is(
    .hero-content-column > *, .hero-media-wrapper,
    .practice-header, .practice-card,
    .about-image-column, .about-content-column > *,
    .simulator-section .container > .text-center, .simulator-card,
    .process-section .container > .text-center, .process-card,
    .testimonials-section .container > .text-center, .review-card,
    .faq-section .container > .text-center, .faq-search-box, .faq-item,
    .contact-info-card, .form-card
  ):not([data-entrance-played="true"]) { opacity: 0; }
}

/* First-visit welcome screen; the pre-paint visibility rules live in the head. */
.welcome-loader { gap: clamp(12px, 2vh, 21px); padding: 28px; text-align: center; opacity: 1; transition: opacity 350ms ease; }
.welcome-portrait {
  width: min(420px, 84vw, 48vh); height: min(490px, 98vw, 56vh);
  max-height: 56vh; object-fit: cover; object-position: center 20%;
  border-radius: 210px 210px 30px 30px; border: 7px solid var(--bg-surface);
  box-shadow: 0 18px 45px rgba(61, 42, 30, 0.14); margin-bottom: clamp(12px, 2vh, 21px);
}
.welcome-name { font-family: var(--font-heading); font-size: clamp(1.3rem, 4vw, 1.7rem); font-weight: 600; }
.welcome-subtitle { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-secondary); }
.welcome-scales { width: 84px; height: 84px; flex-shrink: 0; color: var(--terracotta); margin-top: clamp(12px, 2vh, 28px); opacity: 0; animation: none; }
.welcome-message { font-size: .82rem; color: var(--text-muted); }
.welcome-loader.welcome-leaving { opacity: 0; }
@keyframes welcome-spin {
  from { transform: perspective(500px) rotateY(0deg); }
  to { transform: perspective(500px) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .welcome-scales { animation: none; }
  .welcome-loader { transition: none; }
}

@media (max-height: 640px) {
  .welcome-loader { gap: 8px; padding: 16px; }
  .welcome-portrait { width: min(420px, 66vw, 38vh); height: min(490px, 77vw, 44vh); margin-bottom: 8px; }
  .welcome-scales { width: 56px; height: 56px; margin-top: 8px; }
}

.welcome-name, .welcome-subtitle, .welcome-message { display: grid; }
.welcome-name-space, .welcome-typed { grid-area: 1 / 1; white-space: nowrap; }
.welcome-name-space { visibility: hidden; }
.welcome-loading .welcome-typed { visibility: hidden; }
.welcome-typing .welcome-typed, .welcome-balance-visible .welcome-typed { visibility: visible; }
.welcome-balance-visible .welcome-scales { opacity: 1; animation: welcome-spin 3s linear 1; }
@media (prefers-reduced-motion: reduce) {
  .welcome-loading .welcome-typed { visibility: visible; }
  .welcome-scales, .welcome-balance-visible .welcome-scales { opacity: 1; animation: none !important; }
}

/* Privacy choices have equal visual weight; native dialog handles keyboard focus. */
.cookie-dialog {
  position: fixed; inset: auto 24px 24px auto; margin: 0;
  width: min(580px, calc(100vw - 48px)); max-height: calc(100dvh - 48px);
  padding: 0; border: 1px solid var(--border-color); border-radius: 20px;
  background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-lg);
}
.cookie-dialog::backdrop { background: rgba(61, 42, 30, .24); }
.cookie-content { padding: 28px; }
.cookie-eyebrow { color: var(--terracotta); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cookie-dialog h2 { font-family: var(--font-heading); font-size: 1.4rem; margin: 8px 0 12px; }
.cookie-dialog p { font-size: .88rem; color: var(--text-secondary); margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-choice { flex: 1 1 145px; padding: 12px 14px; border: 1px solid var(--terracotta); border-radius: 10px; background: var(--bg-surface); color: var(--terracotta); font-weight: 600; font-size: .82rem; cursor: pointer; }
.cookie-choice:hover { background: var(--bg-subtle); }
.cookie-choice[hidden], .cookie-details[hidden] { display: none; }
.cookie-details { padding: 18px; margin: 16px 0; background: var(--bg-subtle); border-radius: 12px; }
.cookie-details h3 { font-size: .92rem; margin-bottom: 10px; }
.cookie-details h3 span { display: block; color: var(--terracotta); font-size: .75rem; margin-top: 4px; }
.cookie-details p:last-child { margin-bottom: 0; }
.cookie-footer-control { margin-top: 20px; }
.cookie-footer-control button { border: none; background: transparent; color: var(--text-secondary); font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; padding: 8px 0; }
@media (max-width: 600px) {
  .cookie-dialog { inset: auto 12px 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  .cookie-content { padding: 22px; }
  .cookie-choice { flex-basis: 100%; }
}

#cookieTitle:focus { outline: none; }


/* Keep contact cards within smartphone grid tracks; desktop remains unchanged. */
@media (max-width: 767px) {
  #contato .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #contato .contact-info-card,
  #contato .form-card,
  #contato .contact-item > div:last-child,
  #contato .form-group,
  #contato .form-control {
    min-width: 0;
  }

  #contato .contact-info-card,
  #contato .form-card {
    padding: 28px 20px;
    overflow-wrap: anywhere;
  }

  #contato .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #contato .form-control {
    max-width: 100%;
  }

  #contato .form-card .btn-lg {
    padding-inline: 16px;
    flex-wrap: wrap;
  }
}

/* Subtle relief belongs only to the page wallpaper, not interface surfaces. */
:is(body, section, .footer, .welcome-loading .welcome-loader) {
  background-image: url('assets/images/justice-relief-light.svg?v=subtle-wallpaper-1');
  background-repeat: repeat; background-size: 180px 180px;
}
:is(.trust-bar, .process-section) {
  background-image: url('assets/images/justice-relief-dark.svg?v=subtle-wallpaper-1');
}
/* Fine satin grain, a raised rim, and restrained depth on all button controls. */

:is(button, .btn, .option-btn) {

  background-image: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0) 48%, rgba(0,0,0,.07)),

    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);

  box-shadow: inset 0 1px 1px rgba(255,255,255,.30), inset 0 -2px 2px rgba(0,0,0,.13),

    0 3px 0 rgba(0,0,0,.14), 0 6px 12px rgba(0,0,0,.09);

}

:is(button, .btn, .option-btn):hover {

  background-image: linear-gradient(180deg, rgba(255,255,255,.17), rgba(255,255,255,0) 48%, rgba(0,0,0,.06)),

    repeating-linear-gradient(115deg, rgba(255,255,255,.025) 0 1px, transparent 1px 4px);

  box-shadow: inset 0 1px 1px rgba(255,255,255,.35), inset 0 -2px 2px rgba(0,0,0,.13),

    0 3px 0 rgba(0,0,0,.14), 0 7px 16px rgba(0,0,0,.13);

}

:is(button, .btn, .option-btn):active {

  box-shadow: inset 0 2px 3px rgba(0,0,0,.16), 0 1px 0 rgba(0,0,0,.12);

}

:is(button, .btn):disabled { box-shadow: inset 0 1px 1px rgba(255,255,255,.2); }

@media print {

  body, section, .footer { background-image: none !important; }

}




/* Footer attribution: only the developer name is a link. */
.developer-credit { flex-basis: 100%; text-align: center; }
.developer-credit a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.developer-credit a:hover { color: var(--text-primary); }

/* Keep the existing footer contact copy readable over its light relief. */
.footer .footer-grid p { color: var(--text-secondary) !important; }
