/* Alcor Contabilidade · página inicial (hero, seções e animação do símbolo)
   Depende de site.css (tokens e componentes). */
/* hero */
.al-hero{z-index:0;clip-path:inset(0);display:flex;flex-direction:column;justify-content:center;min-height:max(520px,calc(min(100dvh,56.25vw) - 124px))}
.al-hero__bg{position:absolute;inset:0}
.al-hero__inner{width:100%;padding-top:40px;padding-bottom:40px}
.al-hero__tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:24px;margin-top:44px;max-width:1040px}
.al-tile:hover{border-color:rgba(255,255,255,.6)}
.al-hero ~ section,.al-hero ~ footer{position:relative;z-index:1}
.al-symbol{right:2%;bottom:-14%;height:max(546px,calc((min(100dvh,56.25vw) - 124px)*1.05));width:auto;aspect-ratio:312.07/364.18;overflow:visible}
.al-symbol__fill{fill:var(--hortela);fill-opacity:.12}
.al-symbol__line{fill:none;stroke:#BFE7E3;stroke-opacity:.3;stroke-width:1.6;stroke-linejoin:round}

/* seções */
.al-sec{padding:88px 0}
.al-sec--80{padding:80px 0}
.al-sec--72{padding:72px 0}
.al-sec--56{padding:56px 0}
.al-sec--menta{background:var(--menta)}
.al-section-title--sub{margin-bottom:10px}
.al-section-note{margin:0 0 40px;color:var(--cinza);font-size:17px}
.al-grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.al-grid3--steps{align-items:start}
.al-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;flex-wrap:wrap}
.al-section-head .al-section-title{flex:1;min-width:260px}
.al-link{display:inline-flex;align-items:center;gap:8px;font-weight:700;color:var(--teal)}
.al-link:hover{text-decoration:underline}
.al-link--head{margin-bottom:28px}
.al-container--narrow{max-width:900px}
.al-post{height:100%}
.al-post:hover h3{color:var(--teal)}
.al-post__meta time{color:var(--cinza)}
.al-faq__icon{display:inline-flex;color:var(--teal)}
.al-faq .al-faq__minus{display:none}
.al-faq[open] .al-faq__plus{display:none}
.al-faq[open] .al-faq__minus{display:block}
.al-faqs::after{content:"";display:block;border-top:1px solid var(--linha)}
.al-cta .al-btn svg{flex-shrink:0}


/* mobile (home) */
@media (max-width:900px){
  .al-hero{min-height:0;display:block}
  .al-hero__inner{padding-top:36px;padding-bottom:32px}
  .al-hero h1{font-size:36px;line-height:1.08}
  .al-hero p{margin:16px 0 24px;font-size:17px;line-height:1.55}
  .al-hero__actions{flex-direction:column;gap:12px}
  .al-hero__actions .al-btn,.al-cta .al-btn{width:100%}
  .al-hero__tiles{grid-template-columns:1fr;gap:10px;margin-top:28px}
  .al-tile{padding:12px 14px;gap:12px;border-radius:12px}
  .al-tile .al-icon-circle{width:38px;height:38px}
  .al-tile .al-icon-circle svg{width:22px;height:22px}
  .al-tile b{font-size:16px}
  .al-tile small{font-size:13px;margin-top:0}
  .al-symbol{right:auto;left:0;bottom:24%;height:44%}
  .al-symbol__fill{fill-opacity:.1}
  .al-symbol__line{stroke-opacity:.28}

  .al-sec,.al-sec--80,.al-sec--72,.al-sec--56{padding:48px 0}
  .al-section-title{margin-bottom:24px}
  .al-section-title--sub{margin-bottom:8px}
  .al-section-note{margin-bottom:24px}
  .al-section-head{display:block}
  .al-section-head .al-section-title{min-width:0}
  .al-link--head{margin:0 0 20px}
  .al-grid3{grid-template-columns:1fr;gap:18px}
  .al-grid3--steps{gap:22px}
  .al-quote{padding:22px}
  .al-quote p{font-size:16px;line-height:1.55;margin-bottom:16px}
  .al-post__body{padding:18px 20px 22px}
  .al-post h3{font-size:18px;margin:12px 0 8px}
  .al-snap{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--space-5);margin:0 calc(var(--space-5) * -1);padding:0 var(--space-5) 6px;scrollbar-width:none}
  .al-snap::-webkit-scrollbar{display:none}
  .al-snap>*{flex:0 0 82%;scroll-snap-align:start}
  .al-cta .al-container{padding-top:44px;padding-bottom:44px;display:block}
  .al-cta h2{font-size:28px;margin-bottom:22px}
}

/* animação do símbolo no mobile: CSS puro (no desktop é GSAP, ver home.js) */
@media (max-width:900px) and (prefers-reduced-motion:no-preference){
  .al-symbol__line{stroke-dasharray:3000;stroke-dashoffset:3000;animation:al-draw 9s ease-in-out infinite}
  .al-symbol__line--h{animation-delay:.9s}
  .al-symbol.is-frozen .al-symbol__line{animation:none;stroke-dasharray:none;stroke-dashoffset:0;opacity:.6}
}
@keyframes al-draw{
  0%{stroke-dashoffset:3000;opacity:1}
  40%{stroke-dashoffset:0;opacity:1}
  55%{stroke-dashoffset:0;opacity:.5}
  85%{stroke-dashoffset:0;opacity:0}
  100%{stroke-dashoffset:3000;opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .al-symbol__line{animation:none;stroke-dasharray:none;stroke-dashoffset:0;opacity:.5}
}
