/* =============================================
   AVELAR Segurança Patrimonial — Stylesheet
   ============================================= */

:root {
  --black: #0a0a0a;
  --black-soft: #111111;
  --black-card: #161616;
  --black-border: #222222;
  --white: #ffffff;
  --white-muted: #cccccc;
  --red: #F20415;
  --red-dark: #c40010;
  --red-glow: rgba(242, 4, 21, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--dark {
  background-color: var(--black);
}

.section--soft {
  background-color: var(--black-soft);
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--white);
  margin-bottom: 20px;
}

.section-title span {
  color: var(--red);
}

.section-desc {
  font-size: 17px;
  color: var(--white-muted);
  max-width: 640px;
  line-height: 1.75;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--red);
  margin: 20px 0 32px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242, 4, 21, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--black-border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 14px 0;
  border-bottom-color: rgba(242, 4, 21, 0.3);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo img {
  height: 44px;
  width: auto;
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.navbar__nav a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar__nav a:hover {
  color: var(--red);
}

.navbar__cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--red);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--black);
  z-index: 0;
}

.hero__bg-img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.92) 0%,
    rgba(10, 10, 10, 0.7) 50%,
    rgba(10, 10, 10, 0.35) 100%
  );
  z-index: 2;
}

.hero__noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 3;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 4;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--red-glow);
  border: 1px solid rgba(242, 4, 21, 0.35);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

.hero__title {
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--red);
  position: relative;
}

.hero__desc {
  font-size: 17px;
  color: var(--white-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--black-border);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
}

.hero__trust-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero__trust-num span {
  color: var(--red);
}

.hero__trust-label {
  font-size: 12px;
  color: var(--white-muted);
  margin-top: 4px;
}

.hero__trust-sep {
  width: 1px;
  height: 40px;
  background: var(--black-border);
}

/* ===== SERVICES ===== */
.services__header {
  text-align: center;
  margin-bottom: 64px;
}

.services__header .section-desc {
  margin: 0 auto;
}

.services__header .divider {
  margin: 20px auto 32px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2px;
  background: var(--black-border);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  overflow: hidden;
}

.service-card {
  background: var(--black-card);
  padding: 40px 36px;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.service-card:hover {
  background: #1a1a1a;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: var(--red-glow);
  border: 1px solid rgba(242, 4, 21, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card__img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: none;
}

.service-card__img.loaded {
  display: block;
}

.service-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card__desc {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.75;
}

/* ===== ABOUT ===== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__img-wrap {
  position: relative;
}

.about__img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.about__img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--black-card);
  border: 1px dashed var(--black-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #444;
}

.about__img-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.about__img-placeholder span {
  font-size: 13px;
}

.about__accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--red);
  color: var(--white);
  padding: 20px 24px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(242, 4, 21, 0.4);
}

.about__accent-num {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.about__accent-label {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
  margin-top: 4px;
}

.about__text .section-desc {
  margin-bottom: 24px;
}

.about__highlight {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-left: 3px solid var(--red);
  border-radius: 8px;
  margin-top: 32px;
}

.about__highlight-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.about__highlight-text {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.7;
}

.about__highlight-text strong {
  color: var(--white);
}

/* ===== DIFFERENTIALS ===== */
.diff__header {
  text-align: center;
  margin-bottom: 64px;
}

.diff__header .section-desc {
  margin: 0 auto;
}

.diff__header .divider {
  margin: 20px auto 32px;
}

.diff__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diff-card {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.diff-card:hover {
  border-color: rgba(242, 4, 21, 0.4);
  transform: translateY(-4px);
}

.diff-card__num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 20px;
}

.diff-card__icon {
  width: 48px;
  height: 48px;
  background: var(--red-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.diff-card__icon svg {
  width: 22px;
  height: 22px;
  color: var(--red);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diff-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}

.diff-card__desc {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.7;
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 96px 0;
  background: var(--black-soft);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(242,4,21,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 20px;
}

.cta-section .section-desc {
  margin: 0 auto 40px;
  text-align: center;
}

.cta-section .btn {
  font-size: 16px;
  padding: 18px 40px;
}

.cta-region {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--white-muted);
  font-size: 14px;
}

.cta-region svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}

/* ===== FOOTER ===== */
.footer {
  background: #050505;
  border-top: 1px solid var(--black-border);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--black-border);
}

.footer__brand img {
  height: 40px;
  margin-bottom: 20px;
}

.footer__brand p {
  font-size: 14px;
  color: var(--white-muted);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.footer__social a:hover {
  border-color: var(--red);
  background: var(--red-glow);
}

.footer__social a svg {
  width: 16px;
  height: 16px;
  color: var(--white-muted);
  fill: currentColor;
}

.footer__social a:hover svg {
  color: var(--red);
}

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col ul li a {
  color: var(--white-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer__col ul li a:hover {
  color: var(--red);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--white-muted);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 13px;
  color: #555;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom a {
  color: var(--red);
  text-decoration: none;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ===== SCROLL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

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

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .navbar__nav,
  .navbar__cta {
    display: none;
  }

  .navbar__toggle {
    display: flex;
  }

  .hero__title {
    font-size: clamp(32px, 8vw, 48px);
  }

  .hero__trust {
    gap: 16px;
  }

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

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

  .about__accent {
    bottom: -16px;
    right: 16px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    justify-content: center;
  }
}
