/* ==========================================================================
   ConterMAQ - estilos personalizados
   Paleta da marca: amarelo #F0CA24 sobre tons escuros #23262C / #1D1A18
   ========================================================================== */

:root {
  --brand: #f0ca24;
  --brand-dark: #d9b41a;
  --brand-foreground: #23262c;
  --ink: #23262c;
  --ink-light: #5e6573;
  --background: #fdfcf9;
  --card: #ffffff;
  --muted: #eceef2;
  --muted-foreground: #5e6573;
  --border-color: #dde0e6;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(35, 38, 44, .06), 0 1px 3px rgba(35, 38, 44, .05);
  --shadow-md: 0 8px 24px rgba(35, 38, 44, .10);
  --whatsapp: #25d366;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { letter-spacing: -.02em; }

a { text-decoration: none; color: var(--ink); }
a:hover { color: var(--brand-dark); }

.text-muted-2 { color: var(--muted-foreground); }
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background-color: rgba(240, 202, 36, .12); }
.bg-ink { background-color: var(--ink); }
.bg-muted-2 { background-color: var(--muted); }
.section { padding: 4rem 0; }
.section-lg { padding: 4rem 0; }
.border-y-1 { border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.container-site { max-width: 1200px; }

@media (min-width: 768px) {
  .section-lg { padding: 6rem 0; }
}

/* ---------- Botões ---------- */
.btn-brand {
  background-color: var(--brand);
  border: 1px solid var(--brand);
  color: var(--brand-foreground);
  font-weight: 600;
  border-radius: var(--radius);
  padding: .625rem 1.25rem;
  transition: background-color .2s ease, transform .2s ease;
}
.btn-brand:hover, .btn-brand:focus { background-color: var(--brand-dark); border-color: var(--brand-dark); color: var(--brand-foreground); }

.btn-outline-ink {
  border: 1px solid var(--border-color);
  color: var(--ink);
  background: transparent;
  font-weight: 500;
  border-radius: var(--radius);
  padding: .625rem 1.25rem;
}
.btn-outline-ink:hover { background-color: var(--muted); color: var(--ink); }

.btn-outline-light-2 {
  border: 1px solid rgba(255, 255, 255, .3);
  background-color: rgba(255, 255, 255, .1);
  color: #fff;
  font-weight: 500;
  border-radius: var(--radius);
  padding: .625rem 1.25rem;
}
.btn-outline-light-2:hover { background-color: rgba(255, 255, 255, .2); color: #fff; }

.btn-lg-site { padding: .875rem 1.75rem; font-size: 1.05rem; }

/* ---------- Cabeçalho de página / breadcrumb ---------- */
.page-head {
  background-color: var(--muted);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 0;
}
@media (min-width: 768px) { .page-head { padding: 3rem 0; } }
.page-head h1 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .page-head h1 { font-size: 2.25rem; } }

.breadcrumb-site { font-size: .875rem; color: var(--muted-foreground); display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.breadcrumb-site a { color: var(--muted-foreground); display: inline-flex; align-items: center; gap: .3rem; }
.breadcrumb-site a:hover { color: var(--ink); }
.breadcrumb-site .current { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-color: rgba(35, 38, 44, .72); }
.hero-content { position: relative; padding: 5rem 0; color: #fff; }
@media (min-width: 768px) { .hero-content { padding: 7rem 0; } }
.hero h1 { font-size: 2.25rem; font-weight: 900; line-height: 1.1; }
@media (min-width: 768px) { .hero h1 { font-size: 3rem; } }
@media (min-width: 992px) { .hero h1 { font-size: 3.5rem; } }
.hero p.lead { color: rgba(255, 255, 255, .9); }
.hero-highlights { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.hero-highlights li { display: flex; align-items: center; gap: .5rem; font-size: .9375rem; color: rgba(255, 255, 255, .9); }

/* ---------- Cards ---------- */
.card-site {
  background-color: var(--card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  height: auto;
}

.service-card { display: block; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; color: inherit; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(240, 202, 36, .5); }
.service-card h3 { font-size: 1.125rem; font-weight: 700; margin-top: 1rem; }
.service-card:hover h3 { color: var(--brand-dark); }
.service-card p { color: var(--muted-foreground); font-size: .9375rem; margin-top: .5rem; }
.service-card .more { color: var(--brand-dark); font-weight: 500; font-size: .9375rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; }

.icon-badge {
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background-color: rgba(240, 202, 36, .14);
  color: var(--brand-dark);
}

/* ---------- Galeria ---------- */
.gallery-figure { overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border-color); background: var(--card); box-shadow: var(--shadow-sm); margin: 0; }
.gallery-figure img { width: 100%; height: 16rem; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-figure:hover img { transform: scale(1.05); }

/* ---------- Listas com check ---------- */
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list.row > li { margin-top: 0; }
.prose-site a, .check-list a, .client-card a { color: var(--ink); text-decoration: underline; }
.prose-site a:hover, .check-list a:hover { color: var(--brand-dark); }
.check-list li { display: flex; align-items: flex-start; gap: .5rem; color: var(--muted-foreground); margin-top: .625rem; }
.check-list li svg { flex: 0 0 auto; margin-top: .15rem; color: var(--brand-dark); }

/* ---------- Estatísticas / processo ---------- */
.stat-value { font-size: 2.25rem; font-weight: 900; color: var(--brand-dark); }
.step-number { font-size: 2.25rem; font-weight: 900; color: rgba(240, 202, 36, .5); }

/* ---------- Conteúdo de serviço ---------- */
.service-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.service-media { overflow: hidden; border-radius: var(--radius-xl); border: 1px solid var(--border-color); background: var(--muted); box-shadow: var(--shadow-sm); }
.prose-site h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; }
@media (min-width: 768px) { .prose-site h2 { font-size: 1.5rem; } }
.prose-site p { color: var(--muted-foreground); line-height: 1.75; margin-top: .75rem; }

/* ---------- Accordion (FAQ) ---------- */
.accordion-site .accordion-item { border: 0; border-bottom: 1px solid var(--border-color); background: transparent; }
.accordion-site .accordion-button { background: transparent; color: var(--ink); font-weight: 500; padding: 1rem 0; box-shadow: none; }
.accordion-site .accordion-button:not(.collapsed) { color: var(--ink); background: transparent; }
.accordion-site .accordion-button:focus { box-shadow: none; border-color: transparent; }
.accordion-site .accordion-body { color: var(--muted-foreground); padding: 0 0 1rem; }

/* ---------- Formulário de orçamento ---------- */
.quote-section { background-color: var(--muted); padding: 3rem 0; }
@media (min-width: 768px) { .quote-section { padding: 4rem 0; } }
.quote-card { background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 1.5rem; }
@media (min-width: 768px) { .quote-card { padding: 2.5rem; } }
.quote-card label { display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 500; margin-bottom: .4rem; }
.quote-card .form-control, .quote-card .form-select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: .625rem .75rem;
  font-size: .9375rem;
}
.quote-card .form-control:focus, .quote-card .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(240, 202, 36, .25);
}
.form-feedback { font-size: .875rem; margin-top: 1rem; }
.form-feedback.success { color: #157347; }
.form-feedback.error { color: #b02a37; }

/* ---------- Cartões de contato ---------- */
.contact-card { display: flex; align-items: center; gap: 1rem; background: var(--card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 1rem; color: inherit; transition: border-color .2s ease; }
.contact-card:hover { border-color: rgba(240, 202, 36, .5); color: inherit; }
.contact-icon { width: 3rem; height: 3rem; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; border-radius: 50%; background-color: rgba(240, 202, 36, .14); color: var(--brand-dark); }
.contact-icon.whatsapp { background-color: rgba(37, 211, 102, .12); color: var(--whatsapp); }

/* ---------- Clientes ---------- */
.client-card { display: flex; align-items: center; justify-content: center; text-align: center; background: var(--card); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 1rem; font-size: .875rem; font-weight: 500; height: 100%; }

/* ---------- CTA escuro ---------- */
.cta-dark { background-color: var(--ink); color: #fff; padding: 4rem 0; }
@media (min-width: 768px) { .cta-dark { padding: 6rem 0; } }
.cta-dark p { color: rgba(255, 255, 255, .8); }

/* ---------- Footer ---------- */
.site-footer { background-color: var(--ink); color: #fff; padding: 3rem 0; }
@media (min-width: 768px) { .site-footer { padding: 4rem 0; } }
.site-footer h3 { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }
.site-footer a { color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.site-footer a:hover { color: var(--brand); }
.site-footer p, .site-footer li { color: rgba(255, 255, 255, .8); font-size: .9375rem; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: 50%; background-color: rgba(255, 255, 255, .1); color: #fff; }
.social-btn:hover { background-color: var(--brand); color: var(--ink); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 2rem; color: rgba(255, 255, 255, .6); font-size: .875rem; }

/* ---------- Botão flutuante WhatsApp ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1040;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  background-color: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ---------- Página 404 / redirecionamento ---------- */
.center-screen { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.spinner-brand { width: 3rem; height: 3rem; border: 4px solid var(--brand); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Revelação suave ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.iso-section {
  background: #f7f7f5;
}

.iso-box {
  padding: 40px 48px;
  background: #fff;
  border: 1px solid rgba(35, 38, 44, 0.10);
  border-radius: 18px;
}

.iso-eyebrow {
  display: inline-block;
  color: #23262C;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.iso-certificate-card {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #f8f8f6;
  border: 1px solid rgba(35, 38, 44, 0.08);
  border-radius: 14px;
}

.iso-certificate-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

@media (max-width: 991.98px) {

  .iso-box {
    padding: 32px;
  }

}

@media (max-width: 767.98px) {

  .iso-box {
    padding: 24px;
  }

  .iso-certificate-card {
    height: 360px;
  }

}

.social-section {
  background: #f7f7f5;
}

.social-image {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(35, 38, 44, 0.08);
}

.social-image img {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
}

.social-eyebrow {
  display: inline-block;
  color: #23262C;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.social-entity {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid rgba(35, 38, 44, 0.10);
  border-radius: 14px;
}

.social-entity img {
  width: 90px;
  height: 70px;
  flex-shrink: 0;
  object-fit: contain;
}

.social-entity span {
  display: block;
  margin-bottom: 3px;
  color: #7a7d82;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.social-entity strong {
  display: block;
  color: #23262C;
  font-size: 17px;
  line-height: 1.35;
}

@media (max-width: 991.98px) {

  .social-image img {
    height: 380px;
  }

}

@media (max-width: 575.98px) {

  .social-image img {
    height: 300px;
  }

  .social-entity {
    align-items: flex-start;
  }

  .social-entity img {
    width: 70px;
    height: 60px;
  }

}

/* ==================================================
   HEADER
================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: rgba(253, 252, 249, 0.97);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}

/* Evita qualquer elemento do header escapar da viewport */
.site-header,
.site-header * {
  box-sizing: border-box;
}


/* ==================================================
   TOPBAR
================================================== */

.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 0.8125rem;
}

.topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar-contact {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar a {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.topbar a:hover {
  color: var(--brand);
}

.topbar svg {
  flex: 0 0 auto;
}

.topbar-location {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.8);
}


/* ==================================================
   HEADER PRINCIPAL
================================================== */

.header-main {
  width: 100%;
}

.header-main-inner {
  min-width: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}


/* ==================================================
   LOGO
================================================== */

.brand-logo {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo:hover {
  color: var(--ink);
}

.brand-logo span {
  color: var(--brand);
}


/* ==================================================
   MENU DESKTOP
================================================== */

.site-nav {
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 26px;
}

.site-nav .nav-link {
  border: 0;
  background: transparent;
  color: var(--ink-light);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 10px 0;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link.active {
  color: var(--ink);
}


/* Dropdown */

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-toggle::after {
  display: none;
}

.nav-dropdown-toggle svg {
  transition: transform 0.2s ease;
}

.dropdown.show .nav-dropdown-toggle svg {
  transform: rotate(180deg);
}


/* Menu de serviços */

.services-dropdown {
  width: 310px;
  max-width: calc(100vw - 32px);
  margin-top: 10px !important;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.services-dropdown .dropdown-item {
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: normal;
}

.services-dropdown .dropdown-item:hover,
.services-dropdown .dropdown-item:focus {
  color: var(--ink);
  background: var(--muted);
}


/* ==================================================
   CTA
================================================== */

.header-cta {
  flex: 0 0 auto;
  white-space: nowrap;
}


/* ==================================================
   BOTÃO MOBILE
================================================== */

.menu-mobile-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
}

.menu-mobile-btn:hover {
  background: var(--muted);
}


/* ==================================================
   OFFCANVAS MOBILE
================================================== */

.offcanvas-nav {
  --bs-offcanvas-width: 360px;

  width: min(360px, 88vw) !important;
  max-width: 100vw;
}

.offcanvas-nav .offcanvas-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-nav .offcanvas-body {
  padding: 18px 22px 28px;
  overflow-x: hidden;
}

.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: block;
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--ink);
  background: var(--muted);
}


/* Serviços mobile */

.mobile-nav-group {
  width: 100%;
  padding: 8px 0;
}

.mobile-nav-title {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.mobile-subnav {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-left: 10px;
}

.mobile-subnav a {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--ink-light);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mobile-subnav a:hover {
  color: var(--ink);
  background: var(--muted);
}

.mobile-phone {
  display: block;
  margin-top: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}


/* ==================================================
   RESPONSIVO
================================================== */

@media (max-width: 1199.98px) {

  .header-main-inner {
    gap: 18px;
  }

  .site-nav {
    gap: 18px;
  }

  .header-cta {
    padding-left: 16px;
    padding-right: 16px;
    font-size: 0.875rem;
  }

}


@media (max-width: 991.98px) {

  .header-main-inner {
    min-height: 70px;
  }

  .topbar-location {
    display: none;
  }

}


@media (max-width: 767.98px) {

  .topbar-inner {
    min-height: 36px;
  }

  .topbar-email {
    display: none !important;
  }

}


@media (max-width: 575.98px) {

  .brand-logo {
    font-size: 1.35rem;
  }

  .topbar-contact {
    width: 100%;
    justify-content: center;
  }

}

body { overflow-x: hidden; }

.offcanvas-nav {
  --bs-offcanvas-width: 360px;

  width: min(360px, 90vw) !important;
  height: 100dvh !important;
  max-height: 100dvh !important;

  background: #fff;
  color: var(--ink);

  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.14);
}

.offcanvas-nav .offcanvas-header {
  flex: 0 0 auto;
  padding: 22px;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}

.offcanvas-nav .offcanvas-body {
  flex: 1 1 auto;
  padding: 18px 22px 28px;
  background: #fff;

  overflow-y: auto;
  overflow-x: hidden;
}

.offcanvas-backdrop {
  z-index: 1040;
}

.offcanvas-nav {
  z-index: 1045;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  width: 100%;
  background: rgba(253, 252, 249, 0.97);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
}