/* =============================================================
   Scan Pro Child — main.css
   ============================================================= */

/* ---------------------------------------------------------------
   Custom Properties
   --------------------------------------------------------------- */
:root {
  --color-primary:   #198393;
  --color-secondary: #f4f6f8;
  --color-accent:    #00A48D;
  --color-text:      #1a1a1a;
  --color-muted:     #888;
  --color-dark:      #0f1923;
  --color-white:     #ffffff;
  --color-border:    #e8e8e8;

  --font-heading: 'IBM Plex Sans', sans-serif;
  --font-slab:    'Roboto Slab', serif;
  --font-body:    'Inter', sans-serif;

  --transition-fast: 0.2s ease;
  --radius:          6px;
  --radius-lg:       10px;
  --section-pad:     88px;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
address { font-style: normal; }

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

/* ---------------------------------------------------------------
   Full-width fix — neutraliza restrições do Hello Elementor
   --------------------------------------------------------------- */
.site-content-wrapper,
.site-content-wrapper > * {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

.site-main {
  width: 100%;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Hello Elementor adiciona max-width em .entry-content */
.entry-content,
.entry-summary,
.hentry,
.page-content,
body.page .entry-content,
body.single .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  float: none !important;
}

/* ---------------------------------------------------------------
   Tipografia
   --------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
}

h5, h6 { font-family: var(--font-slab); font-weight: 400; }

h1 { font-size: clamp(30px, 4.5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); }
h3 { font-size: clamp(18px, 2.5vw, 26px); }
h4 { font-size: 19px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------
   Container
   --------------------------------------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------------------------------------------------------------
   Botões
   --------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.2px;
}

.btn:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 164, 141, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  border-color: var(--color-white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-white {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}
.btn-white:hover {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

/* ---------------------------------------------------------------
   Seções
   --------------------------------------------------------------- */
section { padding: var(--section-pad) 0; }

.section-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 3.5vw, 44px);
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.section-title em { font-style: normal; color: var(--color-primary); }

.section-intro {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 0;
}

/* Fundo alternado */
.bg-white    { background: var(--color-white); }
.bg-light    { background: var(--color-secondary); }
.bg-dark     { background: var(--color-dark); }
.bg-primary  { background: var(--color-primary); }

/* ---------------------------------------------------------------
   Banner de página interna — versão escura
   --------------------------------------------------------------- */
.page-banner {
  padding: 112px 0 56px;
  width: 100%;
}

.page-banner--dark {
  background: var(--color-dark);
}

.page-banner--dark h1 {
  color: var(--color-white);
  margin-top: 14px;
}

.page-banner-subtitle {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  margin-top: 10px;
}

/* Banner versão clara — para páginas genéricas */
.page-banner--light {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 112px 0 48px;
}

.page-banner--light h1 {
  color: var(--color-text);
  margin-top: 12px;
}

.page-banner--light .page-banner-subtitle {
  color: var(--color-muted);
}

/* ---------------------------------------------------------------
   Breadcrumb (funciona em dark e light)
   --------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.page-banner--dark .breadcrumb      { color: rgba(255,255,255,0.45); }
.page-banner--dark .breadcrumb a    { color: rgba(255,255,255,0.65); }
.page-banner--dark .breadcrumb a:hover { color: var(--color-white); }
.page-banner--dark .breadcrumb span { color: rgba(255,255,255,0.45); }

.page-banner--light .breadcrumb      { color: var(--color-muted); }
.page-banner--light .breadcrumb a    { color: var(--color-muted); }
.page-banner--light .breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb-sep { font-size: 10px; opacity: 0.5; }

/* ---------------------------------------------------------------
   Split layout
   --------------------------------------------------------------- */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.split-text p {
  color: #555;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.8;
}

.split-text .btn { margin-top: 10px; }

.split-image img { width: 100%; border-radius: var(--radius-lg); }

.split-img-placeholder {
  width: 100%;
  height: 380px;
  background: var(--color-secondary);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--color-border);
}

/* ---------------------------------------------------------------
   Grid de produtos
   --------------------------------------------------------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.09);
}

.product-card-img {
  background: var(--color-secondary);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 210px;
  overflow: hidden;
}

.product-card-img img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-img-placeholder {
  width: 100%;
  height: 100%;
  background: #eaecee;
  border-radius: var(--radius);
}

.product-card-body { padding: 20px 22px 22px; }

.product-card-category {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.product-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-card-title a  { color: var(--color-text); }
.product-card-title a:hover { color: var(--color-primary); }

.product-card-price {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}

.product-card-btn { width: 100%; text-align: center; }

/* Filtros */
.product-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 40px;
}

.filter-btn {
  padding: 7px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
  color: #555;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(25,131,147,0.05);
}

.products-more {
  text-align: center;
  margin-top: 48px;
}

.no-products-notice {
  color: var(--color-muted);
  text-align: center;
  padding: 40px 0;
  grid-column: 1 / -1;
}

/* ---------------------------------------------------------------
   Parceiros
   --------------------------------------------------------------- */
.partners-section {
  background: var(--color-secondary);
  padding: 56px 0;
}

.partners-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(20px, 3vw, 30px);
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.partner-logo-item img {
  max-height: 56px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.partner-logo-item img[alt="exodraft"] { max-height: 77px; padding: 0 10px; }
.partner-logo-item img[alt="Aldes"]    { max-height: 39px; padding: 0 10px; }
.partner-logo-item img[alt="Aereco"]   { max-height: 48px; padding: 0 10px; }

.partner-logo-item:hover img { filter: grayscale(0%); opacity: 1; }

.partner-logo-placeholder {
  padding: 16px 32px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  color: #aaa;
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------------
   Cards de diferenciais
   --------------------------------------------------------------- */
.features-section { background: var(--color-secondary); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}

.feature-icon { color: var(--color-primary); margin-bottom: 18px; }
.feature-title { font-size: 19px; margin-bottom: 10px; }
.feature-text  { color: #555; font-size: 14.5px; line-height: 1.75; margin-bottom: 0; }

/* ---------------------------------------------------------------
   CTA Section
   --------------------------------------------------------------- */
.cta-section { background: var(--color-primary); text-align: center; }

.cta-content h2 { color: var(--color-white); margin-bottom: 14px; }
.cta-content p  { color: rgba(255,255,255,0.8); margin-bottom: 32px; font-size: 17px; }

/* ---------------------------------------------------------------
   Página genérica (page.php)
   --------------------------------------------------------------- */
.page-body {
  padding: 64px 0 88px;
}

.page-article-inner {
  max-width: 820px;
}

.page-content {
  font-size: 16px;
  line-height: 1.85;
  color: #333;
}

.page-content h2 { margin: 36px 0 16px; }
.page-content h3 { margin: 28px 0 12px; }
.page-content ul, .page-content ol { padding-left: 20px; margin-bottom: 16px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content p  { margin-bottom: 18px; }

/* ---------------------------------------------------------------
   Contato
   --------------------------------------------------------------- */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: start;
}

.contact-form-col h2,
.contact-info-col h2 { margin-bottom: 6px; }

.contact-intro { color: var(--color-muted); margin-bottom: 32px; font-size: 15px; }

.form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-row--2col .form-group { margin-bottom: 0; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 15px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(25,131,147,0.1);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.required { color: var(--color-primary); }

.form-required-note {
  font-size: 12.5px;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.form-submit { padding: 15px 40px; font-size: 15.5px; border-radius: var(--radius); }

.form-notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14.5px;
}

.form-notice--success { background: #edf9f5; border: 1px solid #00A48D; color: #00573c; }
.form-notice--error   { background: #fdf1f1; border: 1px solid #e05050; color: #7a2020; }

/* Dados de contato */
.contact-info-block { margin-bottom: 28px; }

.contact-info-block h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.contact-info-block a { color: #444; }
.contact-info-block a:hover { color: var(--color-primary); }

.contact-map-placeholder {
  background: var(--color-secondary);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 13.5px;
  margin-top: 24px;
}

/* ---------------------------------------------------------------
   Animação de entrada — apenas entrada suave (IntersectionObserver)
   --------------------------------------------------------------- */
.reveal-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ---------------------------------------------------------------
   Utilitários
   --------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------------------------------------------------------------
   Responsivo
   --------------------------------------------------------------- */
@media (max-width: 1024px) {
  .products-grid    { grid-template-columns: repeat(2, 1fr); }
  .split-section    { gap: 48px; }
  .contact-grid     { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-pad: 60px; }

  .container { padding: 0 20px; }

  .products-grid  { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; gap: 16px; }

  .split-section  {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split-image { order: -1; }
  .split-img-placeholder { height: 240px; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row--2col { grid-template-columns: 1fr; }

  .partners-grid { gap: 16px; }
  .page-banner   { padding: 88px 0 40px; }
}

@media (max-width: 480px) {
  .btn { padding: 12px 20px; font-size: 14px; }

  .filter-btn { padding: 6px 14px; font-size: 13px; }
}
