/* ============================================================
   CCR Gestão Contábil — Stylesheet
   Paleta: dark teal (#0C2929) + sage green (#C5D68A)
   ============================================================ */

:root {
  --dark:        #0C2929;
  --dark-mid:    #0F3535;
  --teal:        #163F3F;
  --teal-light:  #1D5252;
  --accent:      #C5D68A;
  --accent-dark: #9BB85A;
  --accent-light:#E0EDBA;
  --white:       #FFFFFF;
  --gray-muted:  rgba(255,255,255,0.55);
  --text-dark:   #1A2E1A;
  --border:      rgba(197,214,138,0.1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  font-size: 16px; /* evita zoom automático em iOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

section { padding: 5.5rem 2rem; }

.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.tag-dark { color: var(--teal); }

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  color: var(--white);
}
.title-dark { color: var(--dark); }

.section-desc {
  font-size: 1rem;
  color: var(--gray-muted);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 3rem;
}
.desc-dark { color: rgba(11,42,42,0.75); }

/* ---- BUTTONS ---- */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px; /* touch target */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  min-height: 54px;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(197,214,138,0.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-secondary:hover {
  background: rgba(197,214,138,0.1);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(12,41,41,0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 0.62rem;
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: var(--dark) !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 7px;
  font-weight: 700 !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.nav-cta:hover {
  background: var(--accent-light) !important;
  transform: translateY(-1px);
  color: var(--dark) !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s;
  pointer-events: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100svh; /* svh para mobile (exclui barra do browser) */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, var(--dark) 0%, var(--dark-mid) 55%, #091f1f 100%);
  padding: 0 2rem;
}

.hero-bg-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 15% 55%, rgba(197,214,138,0.09) 0%, transparent 48%),
    radial-gradient(circle at 85% 20%, rgba(197,214,138,0.05) 0%, transparent 38%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(197,214,138,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197,214,138,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  padding: 7rem 0 4.5rem;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197,214,138,0.1);
  border: 1px solid rgba(197,214,138,0.2);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.25rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.hero-title .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.68);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-subtitle strong { color: var(--white); font-weight: 700; }

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

/* Hero benefits list */
.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(22,63,63,0.45);
  border: 1px solid rgba(197,214,138,0.1);
  border-radius: 12px;
  transition: border-color 0.3s, background 0.3s;
}
.benefit-item:hover {
  border-color: rgba(197,214,138,0.25);
  background: rgba(29,82,82,0.5);
}

.benefit-check {
  width: 28px; height: 28px;
  background: rgba(197,214,138,0.15);
  border: 1px solid rgba(197,214,138,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.benefit-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.benefit-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.55;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--dark-mid); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  background: var(--teal);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.25rem;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.value-card {
  background: rgba(197,214,138,0.05);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 1rem;
}
.value-icon { color: var(--accent); margin-bottom: 0.5rem; }
.value-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.25rem; }
.value-card p  { font-size: 0.75rem; color: var(--gray-muted); line-height: 1.5; }

.about-quote {
  background: rgba(197,214,138,0.07);
  border-left: 3px solid var(--accent);
  border-radius: 0 9px 9px 0;
  padding: 1.125rem 1.375rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.78);
  font-style: italic;
  line-height: 1.65;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--dark); }

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

.service-card {
  background: var(--teal);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  transition: border-color 0.3s, transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  border-color: rgba(197,214,138,0.28);
  background: var(--teal-light);
  transform: translateY(-5px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.28);
}

.service-icon {
  width: 46px; height: 46px;
  background: rgba(197,214,138,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.service-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 0.5rem; }
.service-card p  { font-size: 0.82rem; color: var(--gray-muted); line-height: 1.65; }

/* ============================================================
   SPECIALTIES
   ============================================================ */
#specialties { background: var(--dark-mid); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.spec-card {
  background: var(--teal);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.spec-card:hover {
  border-color: rgba(197,214,138,0.3);
  background: var(--teal-light);
  transform: translateY(-5px);
}

.spec-icon {
  width: 54px; height: 54px;
  background: rgba(197,214,138,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 1rem;
}
.spec-card h3 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.35rem; }
.spec-card p  { font-size: 0.74rem; color: var(--gray-muted); line-height: 1.5; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.section-accent {
  background: var(--accent);
  padding: 5.5rem 2rem;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: 14px;
  padding: 1.75rem;
  box-shadow: 0 4px 22px rgba(11,42,42,0.14);
}
.stars { color: var(--dark); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 1rem; }
.testimonial-text {
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.72;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.avatar {
  width: 42px; height: 42px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.author-name { font-size: 0.88rem; font-weight: 700; color: var(--dark); }
.author-role { font-size: 0.73rem; color: #5a6e5a; }

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: var(--dark); }

.faq-inner { text-align: center; }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--teal);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  padding: 1.2rem 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: color 0.2s;
  line-height: 1.45;
  min-height: 56px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.faq-q:hover { color: var(--accent); }
.faq-icon { color: var(--accent); flex-shrink: 0; transition: transform 0.3s; }
.faq-q.active .faq-icon { transform: rotate(45deg); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a.open { max-height: 280px; }
.faq-a p {
  padding: 0 1.4rem 1.2rem;
  font-size: 0.835rem;
  color: var(--gray-muted);
  line-height: 1.72;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
#cta-final {
  background: linear-gradient(140deg, var(--dark-mid), var(--teal));
  padding: 5.5rem 2rem;
}
.cta-inner { text-align: center; }
#cta-final .section-title { max-width: 680px; margin: 0 auto 1rem; }
#cta-final .section-desc  { max-width: 480px; margin: 0 auto 2.5rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #050E0E;
  padding: 3.5rem 2rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(197,214,138,0.07);
}

.footer-logo-img {
  width: 56px; height: 56px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}
.footer-logo-name { font-size: 1.2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.footer-crc { font-size: 0.73rem; color: rgba(255,255,255,0.3); margin: 0.2rem 0 1rem; }
.footer-desc { font-size: 0.82rem; color: rgba(255,255,255,0.38); line-height: 1.7; margin-bottom: 1.25rem; }

.social-links { display: flex; gap: 0.625rem; }
.social-link {
  width: 40px; height: 40px; /* touch target */
  background: rgba(197,214,138,0.07);
  border: 1px solid rgba(197,214,138,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: background 0.2s, border-color 0.2s;
  touch-action: manipulation;
}
.social-link:hover {
  background: rgba(197,214,138,0.15);
  border-color: rgba(197,214,138,0.3);
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.2s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.875rem;
}
.footer-contact-item svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.footer-contact-item a,
.footer-contact-item span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.55;
  transition: color 0.2s;
}
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.76rem; color: rgba(255,255,255,0.22); }

.crc-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(197,214,138,0.06);
  border: 1px solid rgba(197,214,138,0.12);
  border-radius: 6px;
  padding: 0.35rem 0.825rem;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(197,214,138,0.55);
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom));
  right: 1.75rem;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,0.45);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waPulse 2.5s ease-in-out infinite;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.65);
}
.whatsapp-float:active { transform: scale(0.95); }

@keyframes waPulse {
  0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,0.45); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,0.75); }
}

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
.animate-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.animate-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVO — TABLET (≤1100px)
   ============================================================ */
@media (max-width: 1100px) {
  .hero-content   { gap: 3rem; }
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .spec-grid      { grid-template-columns: repeat(3, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

/* ============================================================
   RESPONSIVO — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  #navbar { padding: 0.875rem 1.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(12,41,41,0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.25rem 1.5rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid rgba(197,214,138,0.1);
    z-index: 998;
  }
  .nav-links.open li { border-bottom: 1px solid rgba(197,214,138,0.06); }
  .nav-links.open li:last-child { border-bottom: none; padding-top: 1rem; }
  .nav-links.open a {
    padding: 0.875rem 0;
    font-size: 1rem;
    min-height: 52px;
  }
  .nav-links.open .nav-cta {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 0.875rem !important;
  }
  .hamburger { display: flex; }

  /* Hero: empilha verticalmente */
  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }
  .hero-benefits { gap: 0.875rem; }
  .benefit-item { padding: 1rem 1.25rem; }

  section, .section-accent, #cta-final { padding: 4rem 1.25rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; } /* card visual escondido em mobile; texto é prioritário */

  .services-grid     { grid-template-columns: 1fr; }
  .spec-grid         { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid          { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }

  .hero-ctas  { flex-direction: column; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn-primary { justify-content: center; }
}

/* ============================================================
   RESPONSIVO — PEQUENO (≤440px)
   ============================================================ */
@media (max-width: 440px) {
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 1.85rem; }
  .hero-subtitle { font-size: 0.97rem; }
}

/* ============================================================
   ACESSIBILIDADE — REDUZIR ANIMAÇÕES
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .animate-up {
    opacity: 1;
    transform: none;
  }
}
