/* ============================================================
   AELIUS SOLAR — Custom Styles
   Bootstrap 5 + Custom CSS
   ============================================================ */

:root {
  --solar-primary:    hsl(213, 100%, 10%);   /* navy dark blue */
  --solar-highlight:  hsl(11,  77%,  56%);   /* orange */
  --solar-muted:      hsl(213, 31%,  91%);   /* light blue-gray */
  --solar-muted-fg:   hsl(213, 20%,  45%);   /* medium blue-gray */
  --solar-gold:       hsl(200, 100%, 50%);   /* cyan/light blue */
}

/* ── Base ──────────────────────────────────────────────── */
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--solar-primary);
}

/* ── Color Utilities ────────────────────────────────────── */
.text-highlight   { color: var(--solar-highlight) !important; }
.text-solar-muted { color: var(--solar-muted-fg)  !important; }

.bg-solar-primary { background-color: var(--solar-primary) !important; }
.bg-solar-muted   { background-color: var(--solar-muted)   !important; }
.bg-solar-light   { background-color: hsla(213, 31%, 91%, 0.30) !important; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-orange {
  background-color: var(--solar-highlight);
  border-color:     var(--solar-highlight);
  color: #fff;
  font-weight: 600;
  padding: .65rem 1.6rem;
  border-radius: .5rem;
  transition: opacity .2s, transform .15s;
}
.btn-orange:hover {
  background-color: var(--solar-highlight);
  opacity: .88;
  color: #fff;
  transform: translateY(-1px);
}

.btn-solar-outline {
  border: 2px solid var(--solar-primary);
  color: var(--solar-primary);
  font-weight: 600;
  padding: .65rem 1.6rem;
  border-radius: .5rem;
  background: transparent;
  transition: background .2s, color .2s;
}
.btn-solar-outline:hover {
  background-color: var(--solar-primary);
  color: #fff;
}

/* ── Navbar ─────────────────────────────────────────────── */
.site-header {
  background-color: rgba(255,255,255,0.97);
  border-bottom: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: background .3s, box-shadow .3s;
}
.site-header.scrolled {
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.navbar-brand img { height: 40px; width: auto; }
.navbar-brand img.logo-mobile { height: 56px; }

.nav-link {
  color: var(--solar-primary) !important;
  font-weight: 500;
  transition: color .2s;
}
.nav-link:hover { color: var(--solar-highlight) !important; }

/* ── Hero ───────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,25,50,.55) 0%,
    rgba(0,15,35,.70) 60%,
    rgba(0,10,25,.80) 100%
  );
}
.hero-content { position: relative; z-index: 1; }

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--solar-highlight);
  line-height: 1.15;
}
.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: rgba(255,255,255,.90);
}

.scroll-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
  color: rgba(255,255,255,.7);
  font-size: 1.6rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── Section Titles ─────────────────────────────────────── */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--solar-primary);
}

/* ── Benefit Cards ──────────────────────────────────────── */
.benefit-card {
  position: relative;
  height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}
.benefit-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
}
.benefit-card:hover img { transform: scale(1.1); }

.benefit-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.80) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  transition: background .5s;
}
.benefit-card:hover .benefit-overlay {
  background: rgba(0,25,50,.82);
}

.benefit-default {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  color: #fff;
  transition: opacity .4s, transform .4s;
}
.benefit-card:hover .benefit-default { opacity: 0; transform: translateY(-12px); }

.benefit-hover {
  position: absolute;
  inset: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s, transform .4s;
}
.benefit-card:hover .benefit-hover { opacity: 1; transform: translateY(0); }

.benefit-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.20);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
  font-size: 1.4rem;
}

.benefit-title-card {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Solutions ──────────────────────────────────────────── */
.solution-card {
  background: #fff;
  border: 1px solid rgba(0,25,50,.12);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  transition: box-shadow .3s, transform .3s;
}
.solution-card:hover {
  box-shadow: 0 12px 32px rgba(0,25,50,.12);
  transform: translateY(-4px);
}
.solution-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsla(200,100%,50%,.15), hsla(213,100%,10%,.12));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
  font-size: 1.8rem;
  color: var(--solar-highlight);
}

/* ── Projects Grid (Home) ───────────────────────────────── */
.project-thumb {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  height: 100%;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.project-thumb:hover img { transform: scale(1.05); }

.project-thumb .pt-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.60) 0%, transparent 60%);
}
.project-thumb .pt-info-default {
  position: absolute;
  bottom: 1.2rem; left: 1.2rem;
  color: #fff;
  transition: opacity .3s;
}
.project-thumb .pt-info-hover {
  position: absolute;
  inset: 0;
  background: rgba(0,25,50,.82);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  opacity: 0;
  transition: opacity .3s;
  padding: 1.5rem;
}
.project-thumb:hover .pt-info-default { opacity: 0; }
.project-thumb:hover .pt-info-hover   { opacity: 1; }

.project-large  { height: 620px; }
.project-medium { height: 100%; min-height: 290px; }

.project-cta {
  background: var(--solar-primary);
  border-radius: 1rem;
  height: 100%;
  min-height: 290px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

/* ── About Section ──────────────────────────────────────── */
.about-bullet {
  font-weight: 700;
  font-size: 1rem;
  color: var(--solar-primary);
}
.about-deco-1 {
  position: absolute;
  top: -24px; left: -24px;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: hsla(213,100%,10%,.10);
  pointer-events: none;
}
.about-deco-2 {
  position: absolute;
  bottom: -24px; right: -24px;
  width: 128px; height: 128px;
  border-radius: 50%;
  background: hsla(213,100%,10%,.18);
  pointer-events: none;
}

/* ── Contact Form ───────────────────────────────────────── */
.contact-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0,25,50,.10);
  padding: 2rem;
}
.contact-info-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: hsla(213,100%,10%,.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--solar-primary);
  flex-shrink: 0;
  font-size: 1.1rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--solar-primary);
  box-shadow: 0 0 0 .2rem hsla(213,100%,10%,.15);
}

/* ── FAQ / Accordion ────────────────────────────────────── */
.accordion-item {
  border: 1px solid rgba(0,0,0,.10);
  border-radius: .75rem !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.accordion-button {
  font-weight: 600;
  color: var(--solar-primary);
}
.accordion-button:not(.collapsed) {
  color: var(--solar-highlight);
  background-color: hsla(213,31%,91%,.40);
  box-shadow: none;
}
.accordion-button:focus { box-shadow: none; }

/* ── Hero Interno (página Projetos / Empresa) ───────────── */
.inner-hero {
  padding-top: 5rem;
  padding-bottom: 4rem;
  background-color: var(--solar-primary);
  background-size: cover;
  background-position: center;
}

/* ── Project Cards (Projetos page) ─────────────────────── */
.proj-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff;
}
.proj-card:hover {
  box-shadow: 0 16px 40px rgba(0,25,50,.14);
  transform: translateY(-4px);
}
.proj-card img {
  height: 240px; width: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.proj-card:hover img { transform: scale(1.05); }

.badge-category {
  background-color: var(--solar-gold);
  color: #fff;
  font-size: .75rem;
  padding: .3rem .7rem;
  border-radius: .4rem;
}
.savings-label { color: var(--solar-highlight); font-weight: 700; }

/* ── DNA Cards (Empresa page) ───────────────────────────── */
.dna-card {
  border-radius: 1rem;
  border: 1px solid hsla(11,77%,56%,.20);
  padding: 2rem;
  text-align: center;
  height: 100%;
  transition: border-color .3s;
  background: #fff;
}
.dna-card:hover { border-color: hsla(11,77%,56%,.45); }
.dna-icon-wrap {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: hsla(213,100%,10%,.10);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: var(--solar-highlight);
}

/* ── CTA Section ────────────────────────────────────────── */
.cta-section {
  background-color: var(--solar-primary);
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  background-color: var(--solar-primary);
  color: rgba(255,255,255,.85);
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--solar-highlight); }
.footer-icon { color: var(--solar-highlight); }

/* ── WhatsApp Float Button ──────────────────────────────── */
.wpp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
  color: #fff;
  font-size: 1.75rem;
}
.wpp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,.60);
  color: #fff;
}

/* ── Pagination ─────────────────────────────────────────── */
.page-link { color: var(--solar-primary); border-radius: .4rem !important; }
.page-link:hover { background: var(--solar-muted); color: var(--solar-primary); }
.page-item.active .page-link {
  background-color: var(--solar-primary);
  border-color: var(--solar-primary);
}

/* ── Responsive tweaks ──────────────────────────────────── */
@media (max-width: 768px) {
  .project-large  { height: 300px; }
  .project-medium { height: 220px; min-height: unset; }
  .project-cta    { height: 180px; min-height: unset; }
  .benefit-card   { height: 260px; }
}
