/* ============================================================
   D&A Giraldes - Estilo Global
   style.css — FINAL RC-04 CLEAN (PRODUÇÃO)
   ============================================================ */

/* ============================================================
   01 — TOKENS, RESET E TIPOGRAFIA GLOBAL
   ============================================================ */
:root {
  --brand-green: #1B8E4B;
  --brand-blue: #0B2E6B;
  --soft: #6B7280;
  --muted: #374151;
  --bg-light: #F3F4F6;
  --bg-alt: transparent;
  --radius: 12px;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  --transition: 0.3s ease;
  --container: 1200px;
  --header-height: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--muted);
  background-color: #fff;
  line-height: 1.6;
}

/* ============================================================
   02 — LAYOUT BASE
   ============================================================ */
.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.section {
  padding: clamp(1.5rem, 4vw, 4rem) 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 1.2rem;
}

h1,
h2,
h3,
h4 {
  color: var(--brand-blue);
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

a {
  color: var(--brand-green);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--brand-blue);
}

/* ============================================================
   03 — HEADER (Geral / Sticky)
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 60px;
  width: auto;
}

/* ============================================================
   04 — HERO
   ============================================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 45vh;
  background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-copy p {
  font-size: 1.15rem;
  color: var(--soft);
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.hero-actions a {
  margin-right: 1rem;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #eaf4ef 0%, #d6ebe1 60%, transparent 100%);
  box-shadow:
    inset 0 0 35px rgba(0, 0, 0, 0.12),
    0 8px 25px rgba(0, 0, 0, 0.1);
  border: 10px solid var(--brand-green);
  width: 290px;
  height: 290px;
  margin-left: auto;
}


.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain; /* 🔑 reduz o “zoom” */
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  transform: scale(1.05); /* ajuste fino */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.25),
    0 0 0 8px rgba(27, 142, 75, 0.25);
}


.hero-photo:hover {
  transform: scale(1.08);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.35),
    0 0 0 10px rgba(27, 142, 75, 0.35);
}

/* ============================================================
   05 — CARDS E FUNDAMENTOS
   ============================================================ */
.fund-cards,
.cards {
  display: grid;
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 2rem;
}

.card,
.fund-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  text-decoration: none;
}

.fund-card h3 {
  margin: 0 0 6px;
}

.fund-card p {
  margin: 0;
}

.card:hover,
.fund-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
  width: 100px;
  height: 75px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 12px rgba(27, 142, 75, 0.25));
}

.card h3 {
  font-size: 1.15rem;
  color: var(--brand-blue);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   06 — BOTÕES
   ============================================================ */
.btn {
  display: inline-block;
  justify-content: center;
  margin-top: 2.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-align: center;
}

.btn-primary {
  background: var(--brand-green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-blue);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--brand-green);
  color: var(--brand-green);
}

.btn-ghost:hover {
  background: var(--brand-green);
  color: #fff;
}

/* ============================================================
   07 — BOTÕES FLUTUANTES
   ============================================================ */
.floating-buttons {
  position: fixed !important;
  right: 20px !important;
  bottom: 20px !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999 !important;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand-green);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.float-btn img {
  width: 28px;
  height: 28px;
}

.float-btn:hover {
  transform: scale(1.1);
  background: var(--brand-blue);
}

@keyframes pulse-click {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 142, 75, 0.6);
  }

  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 12px rgba(27, 142, 75, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 142, 75, 0);
  }
}

.float-btn:active {
  animation: pulse-click 0.45s ease-out;
}

@keyframes float-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 12px 2px rgba(27, 142, 75, 0.35);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(27, 142, 75, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(27, 142, 75, 0);
  }
}

@keyframes float-move {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }

  100% {
    transform: translateY(0);
  }
}

.btn-whatsapp {
  animation:
    float-pulse 2.5s infinite ease-in-out,
    float-move 3.2s infinite ease-in-out;
}

/* ============================================================
   08 — CARROSSEL DE LOGOS
   ============================================================ */
.logos-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.logos-slider {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: slide-logos 20s linear infinite;
  will-change: transform;
  transition: transform 0.2s ease-out;
}

.logo-client {
  width: 160px;
  height: auto;
  transition: transform 0.3s ease;
}

.logo-client:hover {
  transform: scale(1.1);
}

@keyframes slide-logos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .logos-slider {
    animation-duration: 30s;
    gap: 2rem;
  }

  .logo-client {
    width: 120px;
  }
}

/* ============================================================
   09 — FOOTER
   ============================================================ */
.site-footer {
  background: #fff;
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* ============================================================
   10 — RESPONSIVO (Hero / Cards / Logos)
   ============================================================ */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-art {
    width: 260px;
    height: 260px;
    margin: 0 auto;
  }

  .hero-photo {
    width: 220px;
    height: 220px;
  }
}

/* ============================================================
   11 — SAFEGUARDS
   ============================================================ */
html,
body,
.section,
.hero,
.hero-grid {
  overflow-x: hidden;
}

.site-header,
header {
  overflow: visible !important;
}