:root {
  --bg-primary: #f9f9f7; 
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;

  --text-primary: #0f172a; 
  --text-secondary: #64748b;
  --text-muted: #94a3b8;

  --border: #e5e7eb;

  --accent-soft: #cbd5e1;
  --accent-strong: #0f172a;
  --header-height: 80px;
  --font-primary: "Manrope", sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #020617;
  --bg-secondary: #020617;
  --bg-card: #0f172a;

  --text-primary: #f8fafc; 
  --text-secondary: #94a3b8; 
  --text-muted: #64748b;

  --border: #1e293b;

  --accent-soft: #1e293b;
  --accent-strong: #f8fafc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body.menu-open { overflow: hidden; }

/* === CONTAINERS === */
.container { width: 90%; max-width: 1400px; margin: 0 auto; }
.container-content { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* === HEADER === */
.header {
  height: var(--header-height); display: flex; align-items: center; position: fixed;
  width: 100%; top: 0; z-index: 200; background: var(--bg-secondary);
  border-bottom: 1px solid var(--border); transition: background-color 0.3s ease, border-color 0.3s ease;
  background: color-mix(in srgb, var(--bg-secondary), transparent 10%); backdrop-filter: blur(10px);
}
.header__container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); text-decoration: none; z-index: 201; }
.nav { display: none; }
.header__actions { display: flex; gap: 15px; align-items: center; z-index: 201; }
.desktop-only { display: none !important; }

/* Mobile Menu */
.mobile-menu-btn { background: none; border: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; z-index: 201; padding: 5px; }
.bar { width: 25px; height: 2px; background-color: var(--text-primary); transition: 0.3s ease; }
body.menu-open .mobile-menu-btn .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .mobile-menu-btn .bar:nth-child(2) { opacity: 0; }
body.menu-open .mobile-menu-btn .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: var(--bg-secondary);
  z-index: 150; display: flex; align-items: center; justify-content: center;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding-top: 80px;
}
body.menu-open .mobile-menu-overlay { transform: translateX(0); }
.mobile-nav { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.mobile-link { font-size: 2rem; font-weight: 800; text-decoration: none; color: var(--text-primary); transition: color 0.3s; }
.mobile-cta { margin-top: 20px; width: 100%; text-align: center; }

/* === BUTTONS & THEME === */
.theme-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-primary);
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; cursor: pointer; transition: all 0.3s ease;
}
.theme-btn:hover { background: var(--accent-soft); }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: none; }

.btn {
  display: inline-block; padding: 10px 24px; border-radius: 50px; text-decoration: none;
  font-weight: 700; cursor: pointer; transition: all 0.3s ease;
}
.btn:hover { background: var(--accent-soft); transform: translateY(-2px); }
[data-theme="dark"] .btn:hover { background: var(--border); }

.btn--primary { background-color: var(--text-primary); color: var(--bg-primary); border: 1px solid var(--border); }
.btn--primary-dark { background-color: #0f172a; color: white; border: 1px solid transparent; }
.btn--primary-dark:hover { background-color: #000; }
[data-theme="dark"] .btn--primary-dark { color: white; }

.btn--outline { border: 1px solid var(--border); color: var(--text-primary); background: transparent; }
.btn--outline:hover { border-color: var(--text-primary); color: var(--text-primary); background-color: var(--accent-soft); }

.scroll-progress-bar {
  position: absolute; bottom: 0; left: 0; height: 3px; background: var(--text-primary);
  width: 0%; z-index: 205; transition: width 0.1s linear;
}

.nav__link { position: relative; text-decoration: none; color: var(--text-muted); font-weight: 600; transition: color 0.3s; }
.nav__link::after {
  content: ''; position: absolute; width: 0%; height: 2px; bottom: -4px; left: 0;
  background-color: var(--text-primary); transition: width 0.3s ease-in-out;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--text-primary); }

/* === HERO SECTION === */
.hero {
  padding-top: calc(var(--header-height) + 40px); padding-bottom: 80px;
  min-height: 90vh; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.hero__split-layout { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; margin-bottom: 40px; width: 100%; }
.hero__side { text-align: center; cursor: pointer; position: relative; z-index: 50; width: 100%; transition: transform 0.3s ease, opacity 0.3s ease; }
.hero__text { font-size: 2.5rem; line-height: 1; font-weight: 800; text-shadow: 0 0 30px var(--bg-primary); }
.hero__side--left .hero__text { color: var(--text-primary); }
.hero__side--right .hero__text { color: var(--text-secondary); }
.hero__subtext { font-size: 0.9rem; color: var(--text-muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.hero__image-area { position: relative; width: 280px; aspect-ratio: 4 / 5; z-index: 10; margin: -10px 0; flex-shrink: 0; }
.hero-image-wrapper { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; }
.img-base, .img-paint { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; pointer-events: none; }
.img-paint { z-index: 2; clip-path: inset(0% 0% 0% 100%); will-change: clip-path; }
body.state-realistic .hero__side--right { opacity: 0.3; }
body.state-paint .hero__side--left { opacity: 0.3; }
.hero__actions-center { text-align: center; position: relative; z-index: 60; }

/* === SEÇÕES GERAIS === */
.section { padding: 80px 0; transition: background-color 0.3s ease; }
.section--alt { background-color: var(--bg-secondary); }
.section--center { text-align: center; }
.section-title { font-size: 2rem; margin-bottom: 10px; color: var(--text-primary); font-weight: 800; }
.section-desc { font-size: 1.1rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; line-height: 1.6; }
.section-header { text-align: center; margin-bottom: 50px; }

/* === PROJETOS GRID === */
.projects-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
.project-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: all 0.3s ease;
}
.project-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08); border-color: var(--text-primary); }
.project-card__image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.project-card__content { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; align-items: flex-start; }
.project-card__content h3 { color: var(--text-primary); margin-bottom: 8px; font-size: 1.25rem; }
.project-card__content p { color: var(--text-secondary); margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; }
.tags { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag { background: var(--accent-soft); padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; color: var(--text-primary); text-transform: uppercase; }
.icon-link { display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all 0.3s; padding: 10px; margin: -10px; cursor: pointer; }
.icon-link:hover { color: var(--text-primary); transform: scale(1.1); }

/* === SERVIÇOS B2B === */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 40px 30px;
    display: flex; flex-direction: column; text-align: center; transition: all 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--text-primary); }
.service-icon { font-size: 3rem; margin-bottom: 20px; }
.service-card h3 { color: var(--text-primary); font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; flex-grow: 1; margin-bottom: 20px; }
.service-meta { font-weight: 700; color: var(--text-primary); font-size: 0.9rem; background: var(--accent-soft); padding: 8px 15px; border-radius: 8px; margin-bottom: 24px; display: inline-block; }
.highlight-card { border: 2px solid var(--text-primary); box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; transform: scale(1.05); }
[data-theme="dark"] .highlight-card { box-shadow: 0 10px 30px rgba(255,255,255,0.05); }
.highlight-card::before {
    content: 'Mais Escolhido'; position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
    background: var(--text-primary); color: var(--bg-primary); padding: 4px 16px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase;
}
.highlight-card:hover { transform: scale(1.05) translateY(-8px); }
.btn--full { width: 100%; display: block; }

/* === DORES (BENEFÍCIOS) === */
.differential-icons { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.diff-item { background: var(--bg-card); border: 1px solid var(--border); padding: 24px; border-radius: 12px; flex: 1; min-width: 140px; text-align: center; transition: all 0.3s ease; }
.diff-item:hover { transform: translateY(-5px); border-color: var(--text-primary); }
.diff-icon { font-size: 2.5rem; margin-bottom: 12px; }
.diff-item h4 { color: var(--text-primary); font-weight: 700; font-size: 1rem; }

/* === BANNER MANUTENÇÃO  === */
.maint-banner {
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}
.maint-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    font-weight: 800;
    margin-bottom: 20px;
}
.maint-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
.tag-highlight {
  display: inline-block; background: #f9f9f7; color: #000; padding: 4px 12px;
  border-radius: 20px; font-weight: 800; font-size: 0.8rem; margin-bottom: 20px; text-transform: uppercase;
}

/* === BOTÃO FLUTUANTE WHATSAPP (COM PULSE) === */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25D366; color: #FFF; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); z-index: 2000;
    transition: transform 0.3s ease; animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); animation-play-state: paused; }
.whatsapp-float svg { width: 35px; height: 35px; fill: white; }

/* === FAQ E DEPOIMENTOS === */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 16px; padding: 20px; transition: all 0.3s ease; }
.faq-item:hover { border-color: var(--text-primary); }
.faq-item summary { font-weight: 700; font-size: 1.1rem; color: var(--text-primary); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--text-secondary); }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { margin-top: 15px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; }

.testi-card { text-align: left; align-items: flex-start; }
.quote-mark { font-size: 3rem; color: var(--text-primary); line-height: 1; opacity: 0.2; margin-bottom: -10px; }
.testi-card h4 { margin-bottom: 2px; }
.testi-card span { font-size: 0.85rem; color: var(--text-muted); }

/* === FOOTER E FORMULÁRIO === */
.footer { padding: 80px 0 40px 0; border-top: 1px solid var(--border); background-color: var(--bg-primary); }
.footer__container { display: flex; flex-direction: column; gap: 60px; }
.footer__row { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.footer__cta h2 { font-size: 3rem; margin-bottom: 16px; color: var(--text-primary); line-height: 1.1; }
.footer__cta p { color: var(--text-secondary); margin-bottom: 30px; font-size: 1.2rem; }
.footer__copy { text-align: center; border-top: 1px solid var(--border); padding-top: 30px; color: var(--text-muted); font-size: 0.9rem; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 16px; border-radius: 12px; border: 1px solid var(--border);
    background: var(--bg-primary); color: var(--text-primary); font-family: inherit; font-size: 1rem; transition: border-color 0.3s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--text-primary); }
.price-anchor { font-size: 0.85rem; color: var(--text-muted); margin-top: 15px; display: block; font-style: italic; }
.glowing-btn { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
[data-theme="dark"] .glowing-btn { box-shadow: 0 0 15px rgba(255,255,255,0.1); }

/* === AJUSTES FINAIS E RESPONSIVO === */
.btn:hover, .btn--primary:hover, .btn--outline:hover, .mobile-cta:hover {
    color: #000000 !important; background-color: #f8fafc !important; border-color: #f8fafc !important;
}

@media (min-width: 768px) {
  .container-content { padding-left: 32px; padding-right: 32px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__row { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

@media (min-width: 1024px) {
  .container-content { padding-left: 40px; padding-right: 40px; }
  .nav { display: block; position: absolute; left: 50%; transform: translateX(-50%); }
  .nav__list { display: flex; list-style: none; gap: 2rem; }
  .nav__link:hover { color: var(--text-primary); }
  .desktop-only { display: inline-block !important; }
  .mobile-menu-btn, .mobile-menu-overlay { display: none !important; }
  .hero__split-layout { flex-direction: row; gap: 0; }
  .hero__side { flex: 1; min-width: 250px; padding: 0 20px; }
  .hero__side--left { text-align: right; }
  .hero__side--right { text-align: left; }
  .hero__text { font-size: 4.5rem; }
  .hero__image-area { width: 400px; margin: 0 30px; }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .highlight-card { transform: scale(1.05); }
}

@media (max-width: 1024px) {
  .highlight-card { transform: scale(1); }
  .highlight-card:hover { transform: translateY(-8px); }
}

@media (max-width: 768px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 28px; height: 28px; }
  .maint-banner { padding: 40px 20px; }
  
  .footer__cta { text-align: center !important; display: flex; flex-direction: column; align-items: center; }
  .footer__cta p { text-align: center !important; margin: 0 auto 20px auto !important; }
  .footer__row { align-items: center !important; gap: 40px; }
  .price-anchor { text-align: center; width: 100%; }
  .footer__form-area { width: 100%; max-width: 500px; margin: 0 auto; }
}