/*
Theme Name: Adplus
Theme URI: https://adplus.com.br
Author: Adplus
Author URI: https://adplus.com.br
Description: Tema institucional para a Adplus Contábil — contabilidade e gestão patrimonial. Construído com boas práticas de SEO, acessibilidade (WCAG) e segurança.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.7
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: adplus
Tags: custom-colors, custom-logo, custom-menu, featured-images, translation-ready, accessibility-ready
*/

/* -------------------------------------------------------
   0. Design tokens
------------------------------------------------------- */
:root {
  /* Cores base */
  --color-bg: #FAF9F7;
  --color-bg-soft: #F1EEE8;
  --color-ink: #2A2138;
  --color-ink-strong: #231C33;
  --color-ink-muted: #4A4258;
  --color-purple: #6B4FA0;
  --color-purple-deep: #2E2350;
  --color-purple-deeper: #231C33;
  --color-purple-text-muted: #C7C1D6;
  --color-purple-text-faint: #8A82A0;

  /* Dourado: versão viva para uso sobre fundo escuro/ícones,
     versão "ink" mais escura para texto sobre fundo claro —
     a versão viva não atinge 4.5:1 sobre --color-bg (ver nota de acessibilidade). */
  --color-gold: #C9942B;
  --color-gold-ink: #8C6A1F;

  --color-border: #2A213822;
  --color-border-soft: #2A213814;
  --color-white: #FAF9F7;

  --font-sans: 'Libre Franklin', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;

  --container: 1200px;
  --container-narrow: 800px;
  --radius: 0px;
}

/* -------------------------------------------------------
   1. Reset enxuto
------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

a {
  color: var(--color-purple);
  text-decoration: none;
}
a:hover { color: var(--color-gold-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-ink-strong);
  line-height: 1.2;
  margin: 0 0 20px;
}

p { margin: 0 0 16px; }

ul, ol { margin: 0; padding: 0; }
dl, dt, dd { margin: 0; }

button { font-family: inherit; }

/* -------------------------------------------------------
   2. Acessibilidade: foco visível e skip link
------------------------------------------------------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-gold-ink);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 8px;
  z-index: 999999;
  background: var(--color-purple-deep);
  color: var(--color-white);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  color: var(--color-white);
}

/* -------------------------------------------------------
   3. Layout utilitário
------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 80px 24px; }
.section-tight { padding: 56px 24px; }
.section-dark { background: var(--color-ink-strong); }
.section-purple { background: var(--color-purple-deep); }
.section-soft { background: var(--color-bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-purple);
  margin-bottom: 14px;
  text-transform: uppercase;
}
.eyebrow-badge {
  background: rgba(107, 79, 160, 0.08);
  padding: 7px 14px;
}
.eyebrow-on-dark { color: var(--color-gold); }

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

.lede {
  font-size: 17px;
  color: var(--color-ink-muted);
}

.grid {
  display: grid;
  gap: 40px;
}
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
/* Seção de Serviços da Home: sempre 3 colunas, mesmo em telas estreitas. */
.grid-3-fixed { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) {
  .grid-3-fixed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-3-fixed { grid-template-columns: 1fr; }
}
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-4-fixed { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) {
  .grid-4-fixed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4-fixed { grid-template-columns: 1fr; }
}
.grid-align-center { align-items: center; }

.hairline-grid {
  display: grid;
  gap: 1px;
  background: rgba(250, 249, 247, 0.1);
}

/* -------------------------------------------------------
   4. Botões
------------------------------------------------------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.35s ease-in-out, color 0.35s ease-in-out, border-color 0.35s ease-in-out, transform 0.3s ease-in-out;
}
.btn-primary { background: var(--color-purple-deep); color: var(--color-white); }
.btn-primary:hover { background: var(--color-ink-strong); color: var(--color-white); }
.btn-outline { background: transparent; color: var(--color-purple-deep); border-color: rgba(42, 33, 56, 0.2); }
.btn-outline:hover { color: var(--color-gold-ink); border-color: var(--color-gold-ink); }
.btn-gold { background: var(--color-gold); color: var(--color-ink-strong); font-weight: 700; }
.btn-gold:hover { background: var(--color-gold-ink); color: var(--color-white); }
.btn-outline-light { background: transparent; color: var(--color-white); border-color: rgba(250, 249, 247, 0.4); }
.btn-outline-light:hover { color: var(--color-gold); border-color: var(--color-gold); }

/* Leve encolhida ao passar o mouse (feedback de "pressionável"); no
   toque/clique encolhe um pouco mais, dando retorno tátil imediato. */
@media (hover: hover) {
  .btn:hover { transform: scale(0.99); }
}
.btn:active { transform: scale(0.97); }

.link-arrow { font-weight: 600; font-size: 14.5px; }

/* -------------------------------------------------------
   5. Cabeçalho / navegação
------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 247, 0.93);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border-soft);
}
.site-header__bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; }
.site-logo__tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  white-space: nowrap;
}

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}
.primary-nav a {
  color: var(--color-ink);
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  white-space: nowrap;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a,
.primary-nav a[aria-current="page"] {
  color: var(--color-purple-deep);
  border-bottom-color: var(--color-gold);
}

.header-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  background: none;
  border: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--color-ink-strong); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar-1 { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar-2 { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar-3 { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }

.mobile-nav-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(78vw, 300px);
  background: var(--color-bg);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 201;
  display: flex;
  flex-direction: column;
  padding: 20px 20px 24px;
}
.mobile-nav-panel.is-open { transform: translateX(0); }
.mobile-nav-panel__head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.mobile-nav-panel__close {
  background: none; border: none; padding: 8px; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--color-ink-strong);
}
.mobile-nav-panel nav ul { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.mobile-nav-panel nav a {
  display: block;
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 1px solid var(--color-border-soft);
}
.mobile-nav-panel nav .current-menu-item > a {
  color: var(--color-purple-deep);
  border-bottom: 2px solid var(--color-gold);
}
.mobile-nav-panel .btn { margin-top: 20px; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-ink-strong);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 200;
}
.nav-overlay.is-open { opacity: 0.4; pointer-events: auto; }

body.nav-open { overflow: hidden; }

@media (min-width: 860px) {
  .primary-nav { display: flex; }
  .header-cta { display: inline-block; }
  .menu-toggle, .mobile-nav-panel, .nav-overlay { display: none; }
}
@media (max-width: 859.98px) {
  .primary-nav { display: none; }
  .header-cta { display: none; }
}

/* -------------------------------------------------------
   6. Hero
------------------------------------------------------- */
.hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 22px;
}
.hero__lede { font-size: 18px; color: var(--color-ink-muted); max-width: 520px; margin-bottom: 34px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, auto); gap: 20px; }
.hero__stat-num { font-size: clamp(20px, 4vw, 28px); font-weight: 700; color: var(--color-gold-ink); margin: 0; }
.hero__stat-label { font-size: 13px; color: var(--color-ink-muted); margin: 0; }

.media-frame {
  background: repeating-linear-gradient(135deg, #2E235010, #2E235010 10px, #2E235018 10px, #2E235018 20px);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-frame__hint {
  font-family: monospace;
  font-size: 13px;
  color: var(--color-ink-muted);
  text-align: center;
  padding: 24px;
}
.media-frame--hero { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--4-3 { aspect-ratio: 4 / 3; }
.media-frame--16-9 { aspect-ratio: 16 / 9; }
.media-frame--16-10 { aspect-ratio: 16 / 10; }
.media-frame--wide { aspect-ratio: 16 / 5; }
@media (max-width: 640px) {
  .media-frame--wide { aspect-ratio: 4 / 5; }
}

/* -------------------------------------------------------
   7. Cartões de serviço / equipe / notícias
------------------------------------------------------- */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head--center { max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }

.service-card {
  position: relative;
  background: var(--color-ink-strong);
  padding: 36px 32px;
  transition: opacity 0.6s ease, transform 0.3s ease;
}
.service-card--outline {
  background: transparent;
  border-top: 2px solid var(--color-gold);
  padding: 28px 4px 0;
}
.service-card__icon { width: 38px; height: 38px; margin-bottom: 20px; color: var(--color-gold); }
.service-card h3 { font-size: 18px; color: var(--color-white); margin-bottom: 10px; }
.service-card--outline h3 { font-size: 19px; color: var(--color-ink-strong); }
.service-card p { font-size: 14.5px; color: var(--color-purple-text-muted); margin: 0 0 14px; }
.service-card--outline p { color: var(--color-ink-muted); }
.service-card .link-arrow { color: var(--color-purple); }

/* Barra de destaque na base do card ao passar o mouse. No design original
   isso nem existia como elemento — era o espaço de 1px do grid (hairline)
   ficando exposto quando o card sobe, ancorado na linha de baixo (fixa) e
   crescendo pra cima. Reproduzimos isso de propósito, com um pseudo-elemento
   cujo translateY(6px) cancela o translateY(-6px) do card (mesma duração/
   easing, então a base fica presa no lugar durante toda a transição) e um
   scaleY que cresce a partir dessa base fixa — funciona em qualquer linha
   do grid, não só na primeira (onde o efeito acidental aparecia). */
.service-card:not(.service-card--outline)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--color-purple-text-muted);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
@media (hover: hover) {
  /* especificidade [data-reveal] + classe, pra vencer [data-reveal].is-visible
     (mesmo peso, mas declarada depois no arquivo) e o lift não sumir depois
     que o card já revelou na rolagem. */
  [data-reveal].service-card:hover { transform: translateY(-6px); }
  .service-card:not(.service-card--outline):hover::after { transform: translateY(6px) scaleY(1); }
}

.pillar-item,
.step-block {
  transition: opacity 0.6s ease, transform 0.3s ease;
}
.step-block .step-num,
.pillar-num,
.stat-num-onlight {
  color: var(--color-gold-ink);
}
@media (hover: hover) {
  [data-reveal].pillar-item:hover { transform: translateY(-4px); }
  [data-reveal].step-block:hover { transform: translateY(-5px); }
}

.team-card { position: relative; padding: 14px; transition: opacity 0.6s ease, transform 0.25s ease; }
.team-card__photo { margin-bottom: 18px; position: relative; }
.team-card__photo .media-frame { transition: transform 0.3s ease; overflow: hidden; }
.team-card__photo .media-frame img,
.team-card__photo .media-frame__hint { transition: transform 0.3s ease; }
.team-card__name { font-size: 17px; margin-bottom: 4px; transition: color 0.2s ease; }
.team-card__role { font-size: 13.5px; font-weight: 600; color: var(--color-gold-ink); margin-bottom: 8px; }
.team-card p { font-size: 14px; color: var(--color-ink-muted); margin: 0; }

.team-card__border {
  position: absolute;
  background: rgba(201, 148, 43, 0.6);
  pointer-events: none;
}
.team-card__border--top,
.team-card__border--bottom { right: 0; height: 1px; width: 0; transition: width 0.45s ease; }
.team-card__border--top { top: 0; }
.team-card__border--bottom { bottom: 0; }
.team-card__border--left,
.team-card__border--right { width: 1px; height: 0; transition: height 0.45s ease; }
.team-card__border--left { left: 0; top: 0; transition-delay: 0.25s; }
.team-card__border--right { right: 0; bottom: 0; }

@media (hover: hover) {
  .team-card:hover .team-card__photo .media-frame { transform: scale(1.012); }
  .team-card:hover .team-card__photo img,
  .team-card:hover .team-card__photo .media-frame__hint { transform: scale(1.04); }
  .team-card:hover .team-card__name { color: var(--color-gold-ink); }
  .team-card:hover .team-card__border--top,
  .team-card:hover .team-card__border--bottom { width: 100%; }
  .team-card:hover .team-card__border--left,
  .team-card:hover .team-card__border--right { height: 100%; }
}

.news-card {
  display: block;
  background: var(--color-bg);
  border: 1px solid var(--color-border-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card .media-frame img,
.news-card .media-frame__hint { transition: transform 0.3s ease; }
.news-card__body { padding: 28px 26px 34px; }
.news-card__meta { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; color: var(--color-gold-ink); margin-bottom: 10px; }
.news-card h3 { font-size: 18px; margin-bottom: 10px; transition: color 0.2s ease; }
.news-card p { font-size: 14px; color: var(--color-ink-muted); margin: 0; }
@media (hover: hover) {
  [data-reveal].news-card:hover { transform: translateY(-4px); box-shadow: 0 14px 28px -12px rgba(35, 28, 51, 0.25); }
  .news-card:hover h3 { color: var(--color-purple); }
  .news-card:hover .media-frame img,
  .news-card:hover .media-frame__hint { transform: scale(1.06); }
}

/* -------------------------------------------------------
   8. Formulário de contato
------------------------------------------------------- */
.contact-form-wrap { background: var(--color-bg-soft); padding: 40px; border: 1px solid var(--color-border-soft); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; color: var(--color-ink-strong); margin-bottom: 6px; }
.form-row input,
.form-row textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(42, 33, 56, 0.2);
  background: var(--color-bg);
  font-size: 15px;
  color: var(--color-ink);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}
.form-row input:focus,
.form-row textarea:focus { border-color: var(--color-gold-ink); }
.form-row input::placeholder,
.form-row textarea::placeholder { color: var(--color-purple-text-faint); }
.form-honeypot { position: absolute; left: -9999px; top: -9999px; }

.form-notice { padding: 14px 18px; margin-bottom: 20px; font-size: 14.5px; }
.form-notice--success { background: #E7F3E4; color: #2E5A24; border: 1px solid #C4E0BC; }
.form-notice--error { background: #FBE9E7; color: #7A2A20; border: 1px solid #F2C4BC; }

.contact-info dt {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.5px;
  color: var(--color-purple-text-faint); margin-bottom: 4px; text-transform: uppercase;
}
.contact-info dd { font-size: 16px; color: var(--color-ink-strong); margin: 0 0 22px; }
.hours-table { display: grid; grid-template-columns: auto auto; column-gap: 16px; row-gap: 2px; font-size: 15px; color: var(--color-ink-strong); }

/* -------------------------------------------------------
   9. Footer
------------------------------------------------------- */
.site-footer { background: var(--color-purple-deeper); padding: 56px 24px 40px; }
.site-footer .container { padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-address { font-size: 13.5px; color: var(--color-purple-text-muted); margin-bottom: 16px; }
.footer-nav ul { list-style: none; display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--color-purple-text-muted); font-size: 14px; }
.footer-nav a:hover { color: var(--color-gold); }
.footer-col-label { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--color-purple-text-faint); margin-bottom: 10px; text-transform: uppercase; }
.footer-col-value { font-size: 14px; color: var(--color-purple-text-muted); }
.footer-col-value a { color: var(--color-gold); }
.footer-col-value a:hover { color: var(--color-white); }
.site-footer__bottom {
  max-width: var(--container); margin: 0 auto;
  font-size: 13px; color: var(--color-purple-text-faint);
  border-top: 1px solid rgba(250, 249, 247, 0.1);
  padding-top: 24px; text-align: center;
}

/* -------------------------------------------------------
   10. Diversos / paginação / 404
------------------------------------------------------- */
.pillar {
  background: var(--color-ink-strong);
  padding: 40px 36px;
  transition: opacity 0.6s ease, transform 0.3s ease, background 0.3s ease;
}
.pillar p { color: var(--color-purple-text-muted); margin: 0; }
@media (hover: hover) {
  [data-reveal].pillar:hover { background: #2b2340; transform: translateY(-4px); }
}

.pagination { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 0 24px 40px; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 1.5px solid var(--color-border);
  font-size: 14px; font-weight: 600; color: var(--color-ink-strong);
}
.pagination .current { background: var(--color-purple-deep); color: var(--color-white); border-color: var(--color-purple-deep); }
.pagination a:hover { border-color: var(--color-gold-ink); color: var(--color-gold-ink); }

.not-found { max-width: 640px; margin: 0 auto; padding: 120px 24px; text-align: center; }

.back-link { display: inline-block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }

.entry-content { font-size: 16px; color: var(--color-ink-muted); }
.entry-content h2 { font-size: 22px; margin-top: 32px; }
.entry-content a { text-decoration: underline; }
.entry-content img { margin: 24px 0; }

/* reveal-on-scroll (progressive enhancement, ver assets/js/main.js) */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* Sem JavaScript não há observer para adicionar `.is-visible`, então o
   conteúdo (e os ícones abaixo) precisam aparecer direto, sem depender
   dele. `no-js` some assim que assets/js/main.js roda (ver header.php). */
.no-js [data-reveal] { opacity: 1; transform: none; }

/* -------------------------------------------------------
   11. Ícones de serviço: traço "se desenhando"
   Disparado junto com [data-reveal].is-visible (mesmo IntersectionObserver
   do main.js) para o ícone desenhar-se quando o card entra na tela —
   igual ao comportamento original. Em prefers-reduced-motion a regra
   global no topo deste arquivo já zera a duração da animação.
------------------------------------------------------- */
@keyframes adpDraw { to { stroke-dashoffset: 0; } }

.service-card__icon .icon-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}
[data-reveal].is-visible .service-card__icon .icon-draw {
  animation-name: adpDraw;
  animation-timing-function: ease-in-out;
  animation-fill-mode: forwards;
  animation-duration: calc(var(--icon-duration, 1s) * 1.45);
  animation-delay: var(--icon-delay, 0s);
}
.no-js .service-card__icon .icon-draw {
  stroke-dashoffset: 0;
}

@media (max-width: 640px) {
  .section { padding: 56px 20px; }
}

/* -------------------------------------------------------
   12. Preloader — uma vez por sessão do navegador, em qualquer página
   (ver sessionStorage no header.php/main.js). Some sozinho por engano
   se o JS não rodar: hidden por padrão, `.js .preloader` é quem liga
   a visibilidade (ver header.php, que troca a classe no <html> assim
   que o JS carrega).
------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}
.js .preloader {
  display: flex;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0s linear 0s;
}
.js .preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
/* Já visto nesta sessão: nem monta a animação (evita flash + repetição
   irritante em cada clique de navegação interna). */
.js.preloader-skip .preloader {
  display: none;
}

.preloader__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.preloader__logo {
  height: 56px;
  width: auto;
  opacity: 0;
  transform: scale(0.92);
}
.js .preloader__logo {
  animation: preloaderLogoIn 0.7s cubic-bezier(0.22, 0.8, 0.25, 1) forwards 0.1s;
}
.preloader__line {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--color-gold);
  transform: scaleX(0);
  transform-origin: left;
}
.js .preloader__line {
  animation: preloaderLineIn 0.5s ease forwards 0.65s;
}

@keyframes preloaderLogoIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes preloaderLineIn {
  to { transform: scaleX(1); }
}
