/* ==========================================================================
   DESIGN SYSTEM, ESTADOS DE ERRO & RESPONSIVIDADE MOBILE
   ========================================================================== */
:root {
  --color-primary: #022620;
  --color-sage: #92a697;
  --color-background: #f9fafb;
  --color-accent: #c59b27;
  --color-accent-hover: #a8821d;
  --color-whatsapp: #25d366;

  --color-text-dark: #111827;
  --color-text-muted: #4b5563;
  --color-text-light: #ffffff;
  --color-text-subtle: #e5e7eb;
  --color-error: #dc2626;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text-dark);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   HEADER GLASSMORPHISM
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #011a16;
  border-bottom: 1px solid transparent;
  padding: 1.25rem 0;
  transition:
    background-color 0.35s ease,
    border-color 0.35s ease,
    padding 0.35s ease,
    box-shadow 0.35s ease;
}

.header.scrolled {
  background-color: rgba(2, 38, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(146, 166, 151, 0.2);
  padding: 0.85rem 0;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-family: var(--font-sans);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-name {
  display: block;
  font-family: var(--font-serif);
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.2;
}

.brand-title {
  display: block;
  font-family: var(--font-sans);
  color: var(--color-sage);
  font-size: 0.75rem;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-sans);
  color: var(--color-text-subtle);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   HERO SECTION & PARALLAX
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 5rem 0 6rem 0;
  overflow: hidden;
}

.parallax-element {
  will-change: transform;
  transition: transform 0.05s linear;
}

.breathe-bg {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 600px;
  height: 600px;
  background-color: rgba(146, 166, 151, 0.12);
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  filter: blur(60px);
  pointer-events: none;
  animation: breatheLoop 9s ease-in-out infinite;
}

@keyframes breatheLoop {
  0%,
  100% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-15px, 15px);
  }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background-color: rgba(146, 166, 151, 0.15);
  border: 1px solid rgba(146, 166, 151, 0.3);
  color: var(--color-sage);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.badge-icon {
  width: 14px;
  height: 14px;
  stroke: var(--color-accent);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.85rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
  font-weight: 700;
}

.highlight {
  color: var(--color-accent);
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  color: var(--color-text-subtle);
  margin-bottom: 2rem;
  font-weight: 300;
}

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

.hero-image-wrapper {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(146, 166, 151, 0.3);
  background-color: #ffffff;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.hero-image-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  background-color: rgba(2, 38, 32, 0.9);
  backdrop-filter: blur(8px);
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(146, 166, 151, 0.3);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-element {
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   BOTÕES E COMPONENTES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-text-light);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(146, 166, 151, 0.4);
  color: var(--color-text-light);
}

.btn-outline:hover {
  background-color: rgba(146, 166, 151, 0.15);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

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

.btn-full {
  width: 100%;
}

.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 0.6rem;
  background-color: rgba(197, 155, 39, 0.4);
  z-index: -1;
  animation: pulseGlow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.2;
  }
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-left: 0.5rem;
}

/* ==========================================================================
   CARDS DE SERVIÇOS
   ========================================================================== */
.services-section {
  padding: 6rem 0;
  background-color: var(--color-background);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  color: var(--color-primary);
  margin-top: 0.5rem;
  font-weight: 700;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

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

@media (min-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background-color: #ffffff;
  padding: 2.25rem 2rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(146, 166, 151, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(2, 38, 32, 0.08);
}

.service-number {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
  display: block;
}

.service-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.service-highlight {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.service-desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.service-ideal {
  font-family: var(--font-sans);
  font-size: 0.825rem;
  color: var(--color-primary);
  background-color: rgba(146, 166, 151, 0.1);
  padding: 0.65rem 0.85rem;
  border-radius: 0.4rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid var(--color-sage);
}

.service-note {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: #6b7280;
  font-style: italic;
  background-color: #f3f4f6;
  padding: 0.65rem 0.85rem;
  border-radius: 0.4rem;
  margin-bottom: 1.25rem;
  border-left: 3px solid #9ca3af;
}

.btn-card-cta {
  margin-top: auto;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: rgba(2, 38, 32, 0.04);
  color: var(--color-primary);
  border: 1px solid rgba(2, 38, 32, 0.15);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-card-cta:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}

/* ==========================================================================
   ATENDIMENTO POR PÚBLICO (TABS)
   ========================================================================== */
.audience-section {
  padding: 6rem 0;
  background-color: #ffffff;
  border-top: 1px solid rgba(146, 166, 151, 0.2);
  border-bottom: 1px solid rgba(146, 166, 151, 0.2);
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  border: none;
  background-color: var(--color-background);
  color: var(--color-text-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

.tab-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--color-background);
  padding: 2.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(146, 166, 151, 0.3);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 700;
}

.tab-panel p {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SOBRE O PROFISSIONAL
   ========================================================================== */
.about-section {
  padding: 6rem 0;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .about-container {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
  }
}

.about-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.about-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

.about-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(2, 38, 32, 0.95));
  color: white;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}

.about-card-overlay h3 {
  font-family: var(--font-serif);
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.about-card-overlay p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-subtle);
}

.about-text h2 {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.about-text p {
  font-family: var(--font-sans);
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.about-checklist {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-checklist li {
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.check-icon {
  color: var(--color-accent);
  font-weight: bold;
}

/* ==========================================================================
   CTA FINAL & RODAPÉ
   ========================================================================== */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding: 6rem 0;
  text-align: center;
}

.cta-container h2 {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 700;
}

.cta-container p {
  font-family: var(--font-sans);
  max-width: 600px;
  margin: 0 auto 2rem auto;
  color: var(--color-text-subtle);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer {
  background-color: #011a16;
  color: var(--color-sage);
  padding: 3rem 0;
  font-size: 0.75rem;
  border-top: 1px solid rgba(146, 166, 151, 0.1);
}

.ethical-notice {
  background-color: rgba(2, 38, 32, 0.6);
  border: 1px solid rgba(146, 166, 151, 0.15);
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 2rem;
}

.ethical-notice h4 {
  font-family: var(--font-serif);
  color: var(--color-text-light);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.ethical-notice p {
  font-family: var(--font-sans);
}

.footer-social-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(146, 166, 151, 0.15);
}

.social-title {
  font-family: var(--font-sans);
  color: var(--color-text-light);
  font-size: 0.85rem;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(146, 166, 151, 0.15);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary);
}

.social-icon {
  width: 18px;
  height: 18px;
}

.footer-meta {
  font-family: var(--font-sans);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid rgba(146, 166, 151, 0.1);
  padding-top: 1.5rem;
}

.privacy-link {
  color: var(--color-accent);
  text-decoration: none;
  margin-left: 0.25rem;
}

.privacy-link:hover {
  text-decoration: underline;
}

/* ==========================================================================
   ESTADOS DE ERRO DOS FORMULÁRIOS
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.form-input.input-error {
  border-color: var(--color-error) !important;
  background-color: #fef2f2;
}

.error-message {
  font-size: 0.75rem;
  color: var(--color-error);
  display: none;
  font-weight: 500;
}

.form-group.has-error .error-message {
  display: block;
}

.form-privacy-note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.form-privacy-note a {
  color: var(--color-primary);
  font-weight: 600;
}

/* ==========================================================================
   BOTÃO FLUTUANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: var(--color-whatsapp);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 90;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-icon {
  width: 32px;
  height: 32px;
}

.whatsapp-notify-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #ef4444;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* ==========================================================================
   MODAL FLUTUANTE DE E-MAIL
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(2, 38, 32, 0.85);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: #ffffff;
  width: 100%;
  max-width: 550px;
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.modal-subtitle {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-input {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(146, 166, 151, 0.4);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.2);
}

/* ==========================================================================
   RESPONSIVIDADE MOBILE (AJUSTES FINOS COM MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .about-image {
    height: 350px;
  }

  .footer-meta {
    flex-direction: column;
    text-align: center;
  }

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