/*---------------Google Fonts---------------*/
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600&display=swap');
@import 'menu.css';
@import 'sliderhp.css';

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Fredoka', sans-serif;
  font-size: 16px;
  --main-color: #0077be;
  --main-dark: #005a99;
  --text-dark: #1a2332;
  --text-muted: #6c757d;
  --bg-light: #f8fafc;
  color: var(--text-dark);
  background-color: #eaecf2;
}

p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  color: #3a4a5c;
}

/* ---- Header ---- */
header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 5vw;
}

/* Engloba TODO o conteúdo da página num único contexto de empilhamento
   isolado, para que nenhum elemento (transforms, GPU layers do iOS, etc.)
   consiga competir com o z-index do header sticky. */
.page-wrap {
  isolation: isolate;
}

/* ---- Logo brand (CSS/SVG, substitui imagem) ---- */
.logo-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  user-select: none;
}

.logo-icon {
  flex-shrink: 0;
  height: 44px;
  width: auto;
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: 0.5px;
}

.logo-name b {
  font-weight: 700;
  color: #0077be;
}

.logo-name span {
  font-weight: 300;
  color: #4a5568;
  letter-spacing: 3px;
}

.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 2px;
  color: #9aa5b0;
  margin-top: 3px;
  text-transform: uppercase;
}

/* ---- Nav active state ---- */
.drawer-list li a.active {
  background: rgba(255, 255, 255, 0.18);
  font-weight: 600;
}

/* ---- Hero Section (homepage) ---- */
.hero-section {
  background: linear-gradient(135deg, #0077be 0%, #005a99 55%, #003d6b 100%);
  color: #fff;
  padding: 4rem 5vw;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.hero-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2rem;
  line-height: 1.65;
  text-align: left;
}

.hero-badges {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.88rem;
  color: #fff;
}

/* ---- Hero card (glassmorphism) ---- */
.hero-card {
  flex-shrink: 0;
}

.hero-card-wrap {
  background: #fff;
  border-radius: 18px;
  padding: 2rem 2rem 1.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.hero-card-wrap .card-img {
  border-color: var(--main-color);
  max-width: 260px;
}

@media (max-width: 860px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }

  .hero-section h1,
  .hero-subtitle {
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-card-wrap .card-img {
    max-width: 200px;
  }
}

/* ---- Section headings ---- */
.section-heading {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.section-lead {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}

/* ---- About section ---- */
.about-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.about-section p:not(.section-lead) {
  text-align: justify;
}

/* ---- Card Logo ---- */
.card-img {
  border: 4px solid var(--main-color);
  transform-style: preserve-3d;
  transition: transform 0.1s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  max-width: 20rem;
  border-radius: 8px;
}

.card-img:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

/* ---- Features grid ---- */
.features-section {
  background: #fff;
  padding: 2.5rem 2rem 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-light);
  border-radius: 12px;
  padding: 1.75rem 1.4rem;
  text-align: center;
  border-top: 3px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-top-color 0.22s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.09);
  border-top-color: var(--main-color);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  line-height: 1.55;
}

/* ---- CTA section ---- */
.cta-section {
  padding: 3rem 2rem;
  text-align: center;
  background: var(--bg-light);
  border-top: 1px solid #e4eaf0;
}

/* ---- Button Orçamento ---- */
.btn-orcamento {
  display: inline-block;
  padding: 16px 44px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(135deg, #0077be 0%, #005a99 100%);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.28s ease;
  box-shadow: 0 8px 20px rgba(0, 119, 190, 0.35);
  letter-spacing: 0.4px;
}

.btn-orcamento:hover {
  background: linear-gradient(135deg, #005a99 0%, #003d6b 100%);
  box-shadow: 0 12px 30px rgba(0, 119, 190, 0.5);
  transform: translateY(-2px);
  color: #fff !important;
}

.btn-orcamento:active {
  transform: translateY(0);
}


/* ---- Back to top ---- */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--main-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 119, 190, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 998;
  line-height: 1;
  padding: 0;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background: var(--main-dark);
  transform: translateY(-3px);
}

/* ---- Footer ---- */
footer {
  color: #caced1;
}

.footer-top {
  background: #28323C;
  padding: 3rem 5vw 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col h5 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--main-color);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin: 0.45rem 0;
}

.footer-col a {
  color: #9aa5b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-col > p {
  color: #9aa5b0;
  font-size: 0.95rem;
  text-align: left;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9aa5b0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-social-link:hover {
  color: #fff;
}

.footer-bottom {
  background: #1E242A;
  padding: 1.2rem 5vw;
  text-align: center;
}

.footer-bottom small {
  color: #6c757d;
  font-size: 0.88rem;
}

/* ---- Garantir que secções de conteúdo ficam abaixo do header (z-index: 9999) ---- */
/* Cria stacking contexts z-index:0 para conter GPU layers de transforms/will-change */
.hero-section, .about-section, .features-section, .cta-section,
.slider-wrap, .pf-banner, .pf-section, .pf-cta,
.srv-banner, .srv-section, .srv-steps-section,
footer, .footer-top, .footer-bottom {
  position: relative;
  z-index: 0;
}

/* ---- Scroll animations ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Utility ---- */
.color-text { color: #757575 !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-section {
    padding: 4rem 1.5rem 3.5rem;
  }

  .hero-badges {
    gap: 0.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn-orcamento {
    padding: 14px 28px;
    font-size: 1rem;
  }

  .logo-sub {
    display: none;
  }
}
