/* =========================================
   ELTON GIACOMETTI RODRIGUES — ADVOGADO
   style.css
   ========================================= */

/* --- CUSTOM PROPERTIES --- */
:root {
  --navy:        #0B1D35;
  --navy-2:      #102040;
  --navy-3:      #162C50;
  --gold:        #C49A3C;
  --gold-2:      #D4AD55;
  --gold-light:  #EDD98A;
  --white:       #FFFFFF;
  --cream:       #F9F7F2;
  --cream-2:     #F0EAD6;
  --text:        #1A1A1A;
  --text-mid:    #4B4B4B;
  --text-light:  #767676;
  --border:      #E4E0D8;
  --border-dark: #2A3F60;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
  --shadow-xl:  0 24px 60px rgba(0,0,0,0.18);

  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --transition:      0.3s ease;
  --transition-slow: 0.55s cubic-bezier(0.22, 1, 0.36, 1);

  --max-width: 1200px;
  --header-h:  88px;
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

address {
  font-style: normal;
}

abbr[title] {
  text-decoration: none;
  color: var(--gold);
}

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover,
.btn-gold:focus-visible {
  background: var(--gold-2);
  border-color: var(--gold-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196, 154, 60, 0.35);
}

.btn-gold-sm {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
}
.btn-gold-sm:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

/* Botão navy — usado na CTA intermediária (sobre fundo claro) */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover,
.btn-navy:focus-visible {
  background: var(--navy-2);
  border-color: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  font-size: 1rem;
  padding: 1.1rem 2.25rem;
}

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

.btn-dark {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-dark:hover,
.btn-dark:focus-visible {
  background: var(--navy-2);
  border-color: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover,
.btn-outline-white:focus-visible {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* Outline gold — usado na CTA sobre fundo claro */
.btn-outline-gold-sm {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: var(--transition);
}
.btn-outline-gold-sm:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-header {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-size: 0.8rem;
  padding: 0.65rem 1.4rem;
}
.btn-header:hover {
  background: var(--gold-2);
  border-color: var(--gold-2);
}

/* =========================================
   TIPOGRAFIA COMPARTILHADA
   ========================================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 1.25rem;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 600px;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-label {
  justify-content: center;
}
.section-header .section-label::before {
  display: none;
}
.section-header .section-desc {
  margin-inline: auto;
}

/* =========================================
   SEÇÃO PADRÃO
   ========================================= */
.section {
  padding: clamp(80px, 10vw, 120px) 0;
}

/* =========================================
   ANIMAÇÕES ON-SCROLL
   ========================================= */
.fade-in-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s var(--transition-slow),
              transform 0.7s var(--transition-slow);
}
.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.diferenciais-grid .diferencial:nth-child(2) { transition-delay: 0.1s; }
.diferenciais-grid .diferencial:nth-child(3) { transition-delay: 0.2s; }
.diferenciais-grid .diferencial:nth-child(4) { transition-delay: 0.1s; }
.diferenciais-grid .diferencial:nth-child(5) { transition-delay: 0.2s; }
.diferenciais-grid .diferencial:nth-child(6) { transition-delay: 0.3s; }

/* =========================================
   WHATSAPP FLOAT
   ========================================= */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: #25D366;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
}

/* =========================================
   HEADER
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}
.header.transparent {
  background: transparent;
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.28);
  height: 64px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: var(--header-h);
  transition: height 0.35s ease;
}
.header.scrolled .header-inner {
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
}
.header.scrolled .logo-img {
  height: 52px;
}

/* Nav */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: calc(100% - 1.7rem);
}

/* Botão fechar nav mobile — oculto por padrão */
.nav-close {
  display: none;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../images/header.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(11, 29, 53, 0.70) 0%,
    rgba(11, 29, 53, 0.60) 50%,
    rgba(11, 29, 53, 0.80) 100%
  );
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.hero-content {
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}
.badge-line {
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin-inline: auto;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  margin-inline: auto;
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* =========================================
   SOBRE
   ========================================= */
.section-sobre {
  background: var(--white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: center;
}

.sobre-image-col {
  position: relative;
}

.foto-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--navy);
}
.foto-advogado {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s ease;
  position: relative;
  z-index: 1;
}
.foto-wrapper:hover .foto-advogado {
  transform: scale(1.03);
}

/* Placeholder visível enquanto a imagem não carrega */
.foto-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, var(--navy-2), var(--navy-3));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 0;
}
.foto-initials {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
  opacity: 0.5;
}
.foto-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Borda dourada decorativa */
.foto-wrapper::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--gold) 0%, transparent 50%);
  opacity: 0.2;
  z-index: 2;
  pointer-events: none;
}

/* Conteúdo sobre */
.sobre-content .section-title {
  margin-top: 0.25rem;
}

.sobre-text {
  color: var(--text-mid);
  margin-bottom: 1.25rem;
  line-height: 1.85;
}

/* =========================================
   SERVIÇOS PREVIDENCIÁRIOS
   ========================================= */
.section-servicos {
  background: var(--cream);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.servico-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.servico-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gold);
}

.servico-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.4rem;
  flex-shrink: 0;
  transition: background var(--transition);
}
.servico-card:hover .servico-icon {
  background: var(--gold);
  color: var(--navy);
}

.servico-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.servico-desc {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.servico-lista {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.servico-lista li {
  font-size: 0.87rem;
  color: var(--text-mid);
  line-height: 1.6;
  padding-left: 1.1rem;
  position: relative;
}
.servico-lista li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.servico-obs {
  font-size: 0.82rem;
  color: var(--text-light);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.servico-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  transition: gap var(--transition), color var(--transition);
}
.servico-link:hover {
  gap: 0.7rem;
  color: var(--navy);
}

/* delay escalonado */
.servicos-grid .servico-card:nth-child(2) { transition-delay: 0.1s; }
.servicos-grid .servico-card:nth-child(3) { transition-delay: 0.2s; }
.servicos-grid .servico-card:nth-child(4) { transition-delay: 0.1s; }
.servicos-grid .servico-card:nth-child(5) { transition-delay: 0.2s; }
.servicos-grid .servico-card:nth-child(6) { transition-delay: 0.3s; }

@media (max-width: 1024px) {
  .servicos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   DIFERENCIAIS
   ========================================= */
.section-diferenciais {
  background: var(--navy);
}
.section-diferenciais .section-title {
  color: var(--white);
}
.section-diferenciais .section-desc {
  color: rgba(255,255,255,0.6);
}
.section-diferenciais .section-label {
  color: var(--gold-light);
}
.section-diferenciais .section-label::before {
  background: var(--gold-light);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.diferencial {
  padding: 2.5rem 2rem;
  background: var(--navy-2);
  transition: background var(--transition);
  position: relative;
}
.diferencial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition);
}
.diferencial:hover {
  background: var(--navy-3);
}
.diferencial:hover::before {
  background: var(--gold);
}

.diferencial-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(196,154,60,0.12);
  line-height: 1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}
.diferencial:hover .diferencial-num {
  color: rgba(196,154,60,0.25);
}

.diferencial h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.diferencial p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.85;
}

/* =========================================
   CTA INTERMEDIÁRIA — fundo claro / quente
   ========================================= */
.section-cta {
  background: var(--cream-2);
  padding: clamp(60px, 8vw, 100px) 0;
}

.cta-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-deco {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196,154,60,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  flex: 1;
}
.cta-content .section-label {
  color: var(--gold);
}
.cta-content .section-label::before {
  background: var(--gold);
}
.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.cta-content p {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 480px;
  line-height: 1.8;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
  flex-shrink: 0;
}

/* =========================================
   FORMULÁRIO DE CONTATO
   ========================================= */
.section-contato {
  background: var(--white);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}

.contato-intro {
  color: var(--text-mid);
  margin: 1.25rem 0 2.5rem;
  line-height: 1.8;
}

.contato-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contato-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contato-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contato-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.contato-item a,
.contato-item span {
  font-size: 0.88rem;
  color: var(--text-light);
  transition: color var(--transition);
}
.contato-item a:hover {
  color: var(--gold);
}

/* Form */
.contato-form-wrapper {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.contato-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(196,154,60,0.12);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #DC2626;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.78rem;
  color: #DC2626;
  display: none;
}
.form-error.visible {
  display: block;
}

#formSubmit {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
#formSubmit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  line-height: 1.6;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  padding: clamp(60px, 8vw, 100px) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.footer-col-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-list li,
.footer-list a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
  line-height: 1.6;
}
.footer-list a:hover {
  color: var(--gold);
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-address p {
  font-size: 0.87rem;
  line-height: 1.6;
}
.footer-address a {
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-address a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
}
.footer-bottom a {
  color: var(--gold);
  font-weight: 500;
  transition: color var(--transition);
}
.footer-bottom a:hover {
  color: var(--gold-2);
}

/* =========================================
   RESPONSIVIDADE — TABLET (≤ 1024px)
   ========================================= */
@media (max-width: 1024px) {
  .sobre-grid,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .sobre-image-col {
    max-width: 460px;
    margin-inline: auto;
  }

  .diferenciais-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .cta-block {
    flex-direction: column;
    text-align: center;
  }
  .cta-content p {
    margin-inline: auto;
  }
  .cta-actions {
    align-items: center;
    width: 100%;
  }
}

/* =========================================
   RESPONSIVIDADE — MOBILE (≤ 768px)
   ========================================= */
@media (max-width: 768px) {
  :root {
    --header-h: 76px;
  }

  /* Header mobile */
  .menu-toggle {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  /* Nav overlay mobile */
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 800;
  }
  .nav.open {
    transform: translateX(0);
  }

  /* Botão fechar dentro da nav mobile */
  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50%;
    color: var(--white);
    cursor: pointer;
    transition: background var(--transition);
  }
  .nav-close:hover {
    background: rgba(255,255,255,0.12);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 1rem 2rem 2rem;
    text-align: center;
  }

  .nav-link {
    font-size: 1.2rem;
    padding: 1rem;
    display: block;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.75);
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover,
  .nav-link.active {
    color: var(--gold);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2rem, 7vw, 2.8rem);
  }
  .hero-sub {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Diferenciais */
  .diferenciais-grid {
    grid-template-columns: 1fr;
  }

  /* CTA */
  .cta-block {
    padding: 2.25rem 1.75rem;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Formulário */
  .contato-form-wrapper {
    padding: 1.75rem 1.25rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }

  /* WhatsApp float */
  .whatsapp-float {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* =========================================
   RESPONSIVIDADE — MOBILE PEQUENO (≤ 420px)
   ========================================= */
@media (max-width: 420px) {
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================
   ACESSIBILIDADE — FOCO VISÍVEL
   ========================================= */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}
