/* =====================================================
   CONTABIL MARTIN — ESTILO PRINCIPAL
   Criação: WEBX | www.webxsites.com.br
   ===================================================== */

/* =====================================================
   IMPORTAÇÃO DE FONTES
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* =====================================================
   VARIÁVEIS DE COR E CONFIGURAÇÃO GLOBAL
   ===================================================== */
:root {
  --color-primary: #2B605A;
  --color-secondary: #D4AF37;
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-700: #374151;
  --color-whatsapp: #25D366;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
  --navbar-height: 96px;
  --container-max: 1280px;
  --container-padding: 24px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --transition-base: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--navbar-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-white);
  color: var(--color-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* =====================================================
   ANIMAÇÕES — NEON BOTÃO WHATSAPP
   ===================================================== */
@keyframes rotateBorder {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 10px var(--color-whatsapp), 0 0 20px var(--color-whatsapp); }
  50%       { box-shadow: 0 0 20px var(--color-whatsapp), 0 0 40px var(--color-whatsapp), 0 0 60px var(--color-whatsapp); }
}

/* =====================================================
   BOTÃO NEON WHATSAPP (ANIMAÇÃO DE BORDA)
   ===================================================== */
.neon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  padding: 2px;
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.neon-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 70%, var(--color-whatsapp) 100%);
  transform-origin: 0 0;
  animation: rotateBorder 2.5s linear infinite;
  z-index: 0;
}

.neon-btn-inner {
  position: relative;
  z-index: 10;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition-base);
}

.neon-btn:hover .neon-btn-inner {
  background: #1e4540;
  transform: scale(0.98);
}

.neon-btn .wa-icon {
  width: 22px;
  height: 22px;
  fill: var(--color-secondary);
  flex-shrink: 0;
  transition: fill 0.3s ease;
}

.neon-btn:hover .wa-icon {
  fill: var(--color-whatsapp);
}



/* =====================================================
   NAVBAR / CABEÇALHO
   ===================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-100);
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
  transition: var(--transition-base);
}

#navbar .container {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo img {
  height: 58px;
  width: auto;
  object-fit: contain;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar-nav a {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.navbar-nav a:hover { color: var(--color-secondary); }

.navbar-cta {
  display: flex;
  align-items: center;
}

/* Botão mobile ao lado da logo — oculto por padrão */
.navbar-cta-mobile {
  display: none;
}

/* =====================================================
   HERO SECTION
   ===================================================== */
#inicio {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(43,96,90,0.95) 0%,
    rgba(43,96,90,0.80) 50%,
    rgba(43,96,90,0.25) 100%
  );
}

.hero-overlay-bottom {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43,96,90,0.85) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
  color: var(--color-white);
  padding: 80px 0;
  animation: fadeInUp 1s ease both;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.hero-label-line {
  width: 48px;
  height: 2px;
  background: var(--color-secondary);
}

.hero-label-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 32px;
  color: var(--color-white);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 48px;
  color: rgba(255,255,255,0.85);
  max-width: 600px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}

.hero-social-proof {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  max-width: 200px;
  border-left: 2px solid rgba(212,175,55,0.5);
  padding-left: 16px;
  line-height: 1.6;
}

/* =====================================================
   SEÇÃO SOBRE — 26 ANOS
   ===================================================== */
#sobre {
  padding: 96px 0;
  background: var(--color-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.sobre-number-block {
  position: relative;
}

.sobre-bg-number {
  font-family: var(--font-serif);
  font-size: clamp(8rem, 12vw, 14rem);
  font-weight: 700;
  color: var(--color-gray-100);
  line-height: 0.9;
  letter-spacing: -0.04em;
  position: absolute;
  top: -48px;
  left: -32px;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.sobre-heading-block {
  position: relative;
  z-index: 1;
}

.sobre-heading-block h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
  line-height: 1.2;
}

.sobre-heading-block h2 span { color: var(--color-secondary); }

.gold-bar {
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  margin-bottom: 32px;
}

.sobre-text p {
  font-size: 1.05rem;
  color: var(--color-gray-500);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* =====================================================
   SEÇÃO SERVIÇOS
   ===================================================== */
#servicos {
  padding: 96px 0;
  background: #F0F0F0;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.gold-bar-center {
  width: 80px;
  height: 4px;
  background: var(--color-secondary);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-gray-100);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.service-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-card-img img {
  transform: scale(1.08);
}

.service-card-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,96,90,0.18);
  transition: background 0.3s ease;
}

.service-card:hover .service-card-img-overlay {
  background: rgba(43,96,90,0);
}

.service-card-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card-body p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.7;
  flex-grow: 1;
}

/* =====================================================
   SEÇÃO DEPOIMENTOS — AVALIAÇÕES GOOGLE
   ===================================================== */
#depoimentos {
  padding: 96px 0;
  background: var(--color-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
}

.testimonial-quote-icon {
  font-size: 2.5rem;
  color: rgba(212,175,55,0.25);
  position: absolute;
  top: 28px;
  left: 28px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  padding-top: 16px;
}

.testimonial-stars span {
  color: #FACC15;
  font-size: 1.25rem;
  line-height: 1;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(43,96,90,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author-info strong {
  display: block;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.9rem;
}

.testimonial-author-info small {
  font-size: 0.75rem;
  color: var(--color-gray-400);
}

/* =====================================================
   SEÇÃO FAQ
   ===================================================== */
#faq {
  padding: 96px 0;
  background: var(--color-primary);
}

#faq .section-header h2 {
  color: var(--color-white);
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 20px;
  padding: 40px 48px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-100);
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.faq-question:hover { color: var(--color-secondary); }

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke: var(--color-secondary);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 24px;
  font-size: 0.95rem;
  color: var(--color-gray-500);
  line-height: 1.8;
}

/* =====================================================
   SEÇÃO CTA — CHAMADA PARA AÇÃO
   ===================================================== */
#cta {
  padding: 96px 0;
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 500px; height: 500px;
  background: var(--color-gray-50);
  border-radius: 50%;
  opacity: 0.6;
}

#cta::after {
  content: "";
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  background: var(--color-gray-50);
  border-radius: 50%;
  opacity: 0.6;
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.25;
  margin-bottom: 24px;
}

.cta-content p {
  font-size: 1.1rem;
  color: var(--color-gray-500);
  margin-bottom: 48px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-flex {
  display: flex;
  justify-content: center;
}

/* =====================================================
   RODAPÉ — FOOTER
   ===================================================== */
#footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.65);
  padding: 64px 0 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

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

.footer-brand img {
  height: 56px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

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

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  fill: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}

.footer-contact-item a:hover { color: var(--color-secondary); }

.footer-gmb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-secondary) !important;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 8px;
  transition: color 0.2s ease;
}

.footer-gmb-link:hover { color: var(--color-white) !important; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.2s ease;
  font-weight: 600;
}

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

/* =====================================================
   BOTÃO FLUTUANTE DO WHATSAPP
   ===================================================== */
#floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
}

.floating-wa-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  text-decoration: none;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.floating-wa-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 300%;
  height: 300%;
  background: conic-gradient(from 0deg, transparent 60%, var(--color-whatsapp) 100%);
  transform-origin: 0 0;
  animation: rotateBorder 2.5s linear infinite;
  z-index: 0;
}

.floating-wa-inner {
  position: relative;
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.floating-wa-btn:hover .floating-wa-inner {
  background: #1e4540;
  transform: scale(0.92);
}

.floating-wa-btn svg {
  width: 30px;
  height: 30px;
  fill: var(--color-secondary);
  position: relative;
  z-index: 10;
  transition: fill 0.3s ease;
}

.floating-wa-btn:hover svg {
  fill: var(--color-whatsapp);
}

.floating-wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border: 1px solid var(--color-secondary);
}

.floating-wa-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--color-primary);
}

#floating-whatsapp:hover .floating-wa-tooltip {
  opacity: 1;
}

/* =====================================================
   UTILITÁRIOS DE ANIMAÇÃO (sem JS)
   ===================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   RESPONSIVO — TABLET (≤1024px)
   ===================================================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================
   RESPONSIVO — MOBILE (≤768px)
   ===================================================== */
@media (max-width: 768px) {
  :root { --navbar-height: 80px; }

  .navbar-nav,
  .navbar-cta { display: none; }

  .navbar-cta-mobile {
    display: none;
  }

  .navbar-cta-mobile .neon-btn-inner {
    padding: 12px 20px;
    font-size: 0.875rem;
    gap: 8px;
  }

  .navbar-cta-mobile .wa-icon {
    width: 20px;
    height: 20px;
  }

  /* Remove animacao de borda rotativa no botao mobile */
  .navbar-cta-mobile::before {
    display: none;
  }

  /* Borda estatica no lugar da animacao */
  .navbar-cta-mobile {
    border: 2px solid var(--color-whatsapp);
    padding: 0;
  }

  /* Logo centralizada no mobile */
  #navbar .container {
    justify-content: center;
  }


  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sobre-bg-number {
    font-size: 8rem;
    top: -24px;
    left: -8px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

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

  .faq-wrapper { padding: 28px 24px; }

  .hero-cta-row { flex-direction: column; align-items: flex-start; }
}
