/* ==========================================================================
   INDEX.PHP — Home institucional
   ========================================================================== */

.home-hero {
  position: relative; padding: 88px 0 96px; overflow: hidden; border-bottom: 1px solid var(--color-border);
}
.home-hero .blueprint-bg { position: absolute; inset: 0; z-index: 0; }

.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }

.hero-text { max-width: 600px; }
.home-hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.1rem); margin-bottom: 20px; }
.home-hero p.lead { font-size: 1.12rem; color: var(--color-text-body); margin-bottom: 32px; }
.home-hero .hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-circle {
  position: relative; width: min(100%, 480px); aspect-ratio: 1 / 1; border-radius: 50%;
  overflow: hidden; flex-shrink: 0;
  background: radial-gradient(circle at 38% 32%, #EAF5FC 0%, #CFE6F5 55%, #A9D4EC 100%);
  box-shadow: 0 20px 60px -20px rgba(0, 131, 203, .35), inset 0 0 0 1px rgba(0, 131, 203, .12);
}
.dark-theme .hero-circle {
  background: radial-gradient(circle at 38% 32%, #1B3247 0%, #12253A 55%, #0B1A2A 100%);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(110, 193, 228, .18);
}
.hero-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14%; }

/* --- Órbita de ar + folhas ao redor do círculo do hero --- */
.hero-visual { position: relative; --orbit-r: 270px; }
.hero-orbit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; z-index: 1; }

.orbit-rings { position: absolute; width: min(100%, 560px); height: min(100%, 560px); overflow: visible; }
.orbit-ring { fill: none; stroke: var(--color-brand); stroke-linecap: round; }
.orbit-ring-1 { stroke-width: .5; opacity: .3; stroke-dasharray: 4 7; animation: orbit-spin 40s linear infinite; }
.orbit-ring-2 { stroke-width: .4; opacity: .22; stroke-dasharray: 2 9; animation: orbit-spin 55s linear infinite reverse; }
.dark-theme .orbit-ring { stroke: #6EC1E4; }

.orbit-leaf {
  position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  color: var(--e-global-color-74603a5f); opacity: .85; filter: drop-shadow(0 2px 4px rgba(0,0,0,.15));
}
.dark-theme .orbit-leaf { color: var(--e-global-color-ad063dc); }
.orbit-leaf-1 { width: 22px; height: 22px; margin: -11px 0 0 -11px; animation: orbit-path-a 16s linear infinite; }
.orbit-leaf-2 { width: 16px; height: 16px; margin: -8px 0 0 -8px; opacity: .65; animation: orbit-path-b 22s linear infinite reverse; }
.orbit-leaf-3 { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; opacity: .5; animation: orbit-path-c 27s linear infinite; }

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes orbit-path-a {
  from { transform: rotate(0deg) translateX(var(--orbit-r)) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(var(--orbit-r)) rotate(360deg); }
}
@keyframes orbit-path-b {
  from { transform: rotate(90deg) translateX(calc(var(--orbit-r) - 12px)) rotate(-90deg); }
  to   { transform: rotate(-270deg) translateX(calc(var(--orbit-r) - 12px)) rotate(270deg); }
}
@keyframes orbit-path-c {
  from { transform: rotate(200deg) translateX(calc(var(--orbit-r) + 22px)) rotate(-200deg); }
  to   { transform: rotate(560deg) translateX(calc(var(--orbit-r) + 22px)) rotate(160deg); }
}

@media (max-width: 900px) {
  .hero-visual { --orbit-r: 195px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .hero-text { max-width: none; margin: 0 auto; }
  .home-hero .hero-cta-row { justify-content: center; }
  .hero-circle { width: min(72vw, 340px); margin: 0 auto; }
}

/* --- Sobre Nós (teaser) --- */
.about-teaser { padding: 88px 0; }
.about-teaser-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.about-teaser-copy p { font-size: 1.02rem; color: var(--color-text-body); line-height: 1.7; margin-bottom: 24px; }
.about-teaser-copy .link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-family: var(--font-display); font-weight: 600; color: var(--color-brand); }
.about-teaser-copy .link-arrow svg { width: 16px; height: 16px; transition: transform var(--transition-base); }
.about-teaser-copy .link-arrow:hover svg { transform: translateX(4px); }

.pillars-mini { display: flex; flex-direction: column; gap: 20px; }
.pillar-mini { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); transition: all var(--transition-base); box-shadow: var(--shadow-card); }
.pillar-mini:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.pillar-mini h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 600; margin: 0 0 4px; color: var(--color-text-heading); }
.pillar-mini p { font-size: .86rem; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

/* --- Onde a Arfrio Climatiza (aplicações) --- */
.applications-section { padding: 88px 0; border-top: 1px solid var(--color-border); }
.applications-section h2 { margin-top: 6px; }
.applications-section > .container > p.text-muted { max-width: 620px; margin-top: 10px; }
.applications-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.application-card {
  padding: 24px; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  background: var(--color-surface); box-shadow: var(--shadow-card); transition: all var(--transition-base);
}
.application-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.application-card .icon-badge { margin-bottom: 16px; }
.application-card h4 { font-family: var(--font-display); font-size: .98rem; font-weight: 600; margin: 0 0 6px; color: var(--color-text-heading); }
.application-card p { font-size: .84rem; color: var(--color-text-muted); margin: 0; line-height: 1.5; }

@media (max-width: 980px) { .applications-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .applications-grid { grid-template-columns: 1fr; } }

/* --- Destaque de produto --- */
.featured-section { padding: 0 0 96px; }
.featured-card {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 0;
  border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--color-surface); box-shadow: var(--shadow-elevated);
}
.featured-media { position: relative; background: radial-gradient(circle at 50% 42%, var(--badge-blue-bg), var(--color-bg-alt) 75%); display: flex; align-items: center; justify-content: center; min-height: 320px; }
.featured-media .media-placeholder { display: none; position: absolute; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--color-text-muted); font-family: var(--font-mono); font-size: .72rem; text-align: center; padding: 24px; }
.featured-media .media-placeholder svg { width: 40px; height: 40px; opacity: .45; color: var(--color-brand); }
.featured-copy { padding: 44px 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-copy .badge { align-self: flex-start; margin-bottom: 16px; }
.featured-copy h3 { font-size: 1.9rem; margin-bottom: 12px; }
.featured-copy p { color: var(--color-text-body); margin-bottom: 24px; }
.featured-specs { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 28px; }
.featured-specs span { font-family: var(--font-mono); font-size: .8rem; color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.featured-specs svg { width: 14px; height: 14px; color: var(--color-brand); }
.featured-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Projetos em Operação (cases, carrossel) --- */
.cases-section { padding: 88px 0; border-top: 1px solid var(--color-border); }

.cases-carousel-wrap { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.cases-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 12px; flex: 1; min-width: 0;
  scrollbar-width: none;
}
.cases-carousel::-webkit-scrollbar { display: none; }

.case-card {
  flex: 0 0 auto; width: auto; height: 510px; scroll-snap-align: start; min-width: 0;
  position: relative; border-radius: var(--radius-md); overflow: hidden; margin-top: 0;
  border: 1px solid var(--color-border); cursor: zoom-in; display: block; padding: 0; background: none;
}
.case-card img { height: 100%; width: auto; display: block; transition: transform var(--transition-base); }
.case-card:hover { transform: none; }
.case-card:hover img { transform: scale(1.07); }
.case-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity var(--transition-base);
  background: linear-gradient(to top, rgba(11,16,19,.4), transparent 45%);
}
.case-card:hover::after { opacity: 1; }
.case-card-zoom {
  position: absolute; bottom: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #16191D; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: all var(--transition-base);
}
.case-card:hover .case-card-zoom { opacity: 1; transform: scale(1); }
.case-card-zoom svg { width: 15px; height: 15px; }

.cases-arrow, .clients-arrow {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-border);
  background: var(--color-surface); display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--color-text-body); transition: all var(--transition-base);
}
.cases-arrow:hover, .clients-arrow:hover { border-color: var(--color-brand); color: var(--color-brand); box-shadow: var(--shadow-card); }
.cases-arrow svg, .clients-arrow svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .cases-arrow, .clients-arrow { display: none; } }

/* --- Quem confia na Arfrio (logos, carrossel) --- */
.clients-section { padding: 88px 0; border-top: 1px solid var(--color-border); background: var(--color-bg-alt); }
.clients-carousel-wrap { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.clients-carousel {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px 4px 12px; flex: 1; min-width: 0; scrollbar-width: none;
}
.clients-carousel::-webkit-scrollbar { display: none; }
.logo-item {
  flex: 0 0 auto; scroll-snap-align: start; width: 152px; height: 92px;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 16px;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.logo-item:hover { border-color: var(--color-brand); box-shadow: var(--shadow-card); }
.logo-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-item--dark { background: #12151A; border-color: #12151A; }
.logo-item--dark img { padding: 6px; }

/* --- Depoimentos --- */
.testimonials-section { padding: 88px 0; border-top: 1px solid var(--color-border); background: var(--color-bg-alt); }
.testimonials-widget-wrap {
  zoom: .8; max-width: 1100px; margin: 0 auto;
}
.testimonials-cta { text-align: center; margin: 24px 0 0; }
.testimonials-cta a { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--color-brand); }

/* --- Formas de pagamento (banner Cartão BNDES) --- */
.payment-section { padding: 88px 0; border-top: 1px solid var(--color-border); }
.payment-section .container { text-align: center; }
.payment-section h2 { max-width: 560px; margin: 0 auto 12px; }
.payment-section p.text-muted { max-width: 560px; margin: 0 auto 32px; }
.payment-banner {
  display: block; max-width: 1100px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-elevated); transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.payment-banner:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(0,131,203,.15), 0 30px 60px rgba(20,30,45,.18); }
.payment-banner img { width: 100%; height: auto; display: block; }

/* --- Hub de Conforto & Saúde (resumo, 2 matérias) --- */
.home-hub-section { padding: 88px 0; border-top: 1px solid var(--color-border); }
.home-hub-section > .container > p.text-muted { max-width: 620px; margin-bottom: 8px; }

.noticias-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.noticia-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-card); transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.noticia-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.noticia-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.noticia-badge { font-size: .68rem; }
.noticia-date { font-family: var(--font-mono); font-size: .72rem; color: var(--color-text-muted); white-space: nowrap; }
.noticia-card h3 { font-size: 1.18rem; margin: 0; line-height: 1.35; }
.noticia-resumo { font-size: .92rem; color: var(--color-text-body); line-height: 1.6; margin: 0; }

.pitaco-box { margin-top: 4px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--badge-blue-bg); border: 1px solid var(--color-border); }
.pitaco-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.pitaco-icon { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: var(--color-brand); color: #fff; display: flex; align-items: center; justify-content: center; }
.pitaco-icon svg { width: 14px; height: 14px; }
.pitaco-label { font-family: var(--font-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--color-brand); }
.pitaco-text { font-size: .88rem; color: var(--color-text-heading); line-height: 1.6; margin: 0 0 8px; font-style: italic; }
.pitaco-signature { display: block; font-family: var(--font-mono); font-size: .7rem; color: var(--color-text-muted); text-align: right; }
.dark-theme .pitaco-box { background: rgba(110,193,228,.08); }

/* Referências das matérias do Hub */
.noticia-fontes { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.noticia-fontes-label { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--color-text-muted); }
.noticia-fontes ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.noticia-fontes li { font-size: .78rem; line-height: 1.45; }
.noticia-fontes a { color: var(--color-brand); text-decoration: none; border-bottom: 1px solid transparent; }
.noticia-fontes a:hover, .noticia-fontes a:focus-visible { border-bottom-color: currentColor; }
.noticia-fonte-org { display: block; color: var(--color-text-muted); font-size: .72rem; }

.dark-theme .pitaco-icon { background: var(--color-accent-cyan); color: #0B1013; }
.dark-theme .pitaco-label { color: var(--color-accent-cyan); }

/* --- CTA final --- */
.home-cta { padding: 96px 0; text-align: center; }
.home-cta h2 { max-width: 520px; margin: 0 auto 14px; }
.home-cta p { max-width: 460px; margin: 0 auto 28px; color: var(--color-text-body); }
.home-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 980px) {
  .about-teaser-grid { grid-template-columns: 1fr; }
  .featured-card { grid-template-columns: 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
}
