:root {
  color-scheme: dark;
  --accent: #D4813D;
  --accent-rgb: 212, 129, 61;
  --accent-hover: #C0702F;
  --accent-bg: #D4813D;
  --accent-text: #1a1a1e;
  --surface: #131315;
  --section-dark: #0d0d0f;
  --section-dark-2: #151518;
  --section-border: rgba(255,255,255,0.1);
  --section-text: #ffffff;
  --section-text-muted: #8a8a96;
  --nav-bg: rgba(13,13,15,0.95);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --bs-primary: var(--accent);
  --bs-primary-rgb: var(--accent-rgb);
  --bs-body-bg: #0d0d0f;
  --bs-body-color: #e8e6e3;
  --bs-secondary-color: #8a8a96;
  --bs-emphasis-color: #fff;
  --bs-border-color: #2a2a2e;
  --bs-link-color: var(--accent);
  --bs-link-hover-color: #D4813D;
}
[data-bs-theme="dark"] {
  --accent: #D4813D;
  --accent-rgb: 212, 129, 61;
  --accent-hover: #C0702F;
  --accent-bg: #D4813D;
  --accent-text: #1a1a1e;
  --surface: #131315;
}
[data-bs-theme="light"] {
  color-scheme: light;
  --accent: #A8621F;
  --accent-rgb: 168, 98, 31;
  --accent-hover: #8B4E10;
  --accent-bg: #A8621F;
  --accent-text: #ffffff;
  --surface: #ffffff;
  --section-dark: #ecece6;
  --section-dark-2: #f6f5f0;
  --section-border: rgba(0,0,0,0.08);
  --section-text: #1a1a1e;
  --section-text-muted: #6b6b76;
  --nav-bg: rgba(245,244,240,0.92);
  --bs-primary: var(--accent);
  --bs-primary-rgb: var(--accent-rgb);
  --bs-body-bg: #f5f4f0;
  --bs-body-color: #1a1a1e;
  --bs-secondary-color: #6b6b76;
  --bs-emphasis-color: #000;
  --bs-border-color: #d4d2ce;
  --bs-link-color: var(--accent);
  --bs-link-hover-color: #8B4E10;
}
body { font-family: var(--font-body); }
h1, h2, h3, h4, h5, h6, .font-heading { font-family: var(--font-heading); }

html { scroll-behavior: smooth; }

.bg-highlight { background-color: var(--accent-bg) !important; color: var(--accent-text) !important; }
.text-highlight { color: var(--accent) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-section-dark { background-color: var(--section-dark) !important; }
.text-section { color: var(--section-text) !important; }
.text-section-muted { color: var(--section-text-muted) !important; }
.btn-outline-section {
  color: var(--section-text) !important;
  border-color: var(--section-text) !important;
  border-width: 2px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.btn-outline-section:hover {
  background-color: var(--section-text) !important;
  color: var(--section-dark) !important;
}

.hero-section {
  background: linear-gradient(135deg, var(--section-dark) 0%, var(--section-dark-2) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
}
.section-padding { padding: 5rem 0; }

[id], section[id], #servicos, #sobre, #faq, #contato, #diferenciais, #depoimentos {
  scroll-margin-top: 88px;
}

.card-hover {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.12) !important;
}

.counter-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
}

.whatsapp-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-fab:hover {
  background-color: var(--accent-bg) !important;
  filter: brightness(1.12);
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.cookie-banner {
  position: fixed;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 1060;
  width: 380px;
  max-width: calc(100vw - 3rem);
  padding: 1.25rem 1.25rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--section-border);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--section-text);
}
.cookie-banner-visible {
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner a { text-decoration: none; }
.cookie-banner a:hover { text-decoration: underline; }

@media (max-width: 576px) {
  .cookie-banner {
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
  }
}

.section-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.navbar {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-scrolled {
  background-color: var(--nav-bg) !important;
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
}

.gallery-img {
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.4s ease;
}
.gallery-img:hover {
  transform: scale(1.03);
}

.testimonial-card {
  border: none;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.diferencial-card {
  border: 1px solid var(--section-border);
  border-radius: 16px;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.diferencial-card:hover {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.accordion-button:not(.collapsed) {
  background-color: rgba(var(--accent-rgb), 0.08);
  color: var(--accent);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(var(--accent-rgb), 0.3);
}

footer a { text-decoration: none; }
footer a:hover { color: var(--accent) !important; }

#themeToggle { font-size: 1.1rem; color: var(--section-text-muted); }
#themeToggle:hover { color: var(--section-text); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .hero-section { min-height: 80vh; padding: 5rem 0 3rem; }
  .hero-section .display-4 { font-size: calc(2.1rem + 1vw); }
  .hero-section .lead { font-size: 1.05rem; }
  .display-5 { font-size: calc(1.8rem + 0.5vw); }
  .counter-number { font-size: 1.8rem; }
  .section-padding { padding: 3rem 0; }
}
@media (max-width: 576px) {
  .hero-section .btn-lg { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
