/* ─── HERO ANIMAÇÕES ────────────────────────────── */
@keyframes heroUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroReveal {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Elementos de entrada — animation-fill-mode: both mantém o estado inicial imediatamente,
   evitando qualquer flash antes da animação começar */
.hero-text .label     { animation: heroUp 0.7s 0.05s cubic-bezier(0.22,1,0.36,1) both; }
.hero-title           { animation: heroUp 0.8s 0.15s cubic-bezier(0.22,1,0.36,1) both; }
.hero-desc            { animation: heroUp 0.7s 0.28s cubic-bezier(0.22,1,0.36,1) both; }
.hero-actions         { animation: heroUp 0.7s 0.40s cubic-bezier(0.22,1,0.36,1) both; }
.hero-badges          { animation: heroUp 0.7s 0.52s cubic-bezier(0.22,1,0.36,1) both; }
.hero-image img { animation: heroReveal 1s 0.1s cubic-bezier(0.22,1,0.36,1) both; }

/* Badge flutua após entrar */
.hero-image-badge {
  animation:
    heroUp   0.7s 0.7s cubic-bezier(0.22,1,0.36,1) both,
    heroFloat 4s  1.5s ease-in-out infinite;
}

/* Respeita preferência do sistema */
@media (prefers-reduced-motion: reduce) {
  .hero-text .label,
  .hero-title,
  .hero-desc,
  .hero-actions,
  .hero-badges,
  .hero-image img,
  .hero-image-badge { animation: none; }
}

/* ─── HERO ─────────────────────────────────────── */
.hero { min-height: 100svh; position: relative; overflow: hidden; }

/* Imagem de fundo cobrindo toda a hero */
.hero-image { position: absolute; inset: 0; z-index: 0; height: auto; }
.hero-image img { width: 100%; height: 100%; }
.hero-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(30,20,14,0.72) 40%, rgba(30,20,14,0.30) 100%);
}

/* Texto por cima — centrado verticalmente via absolute + transform */
.hero-text {
  position: absolute;
  top: 20%;
  left: 8%;
  z-index: 1;
  max-width: 560px;
  padding: 0;
}

/* Label — cor dourada no hero (fundo escuro: contraste 6.2:1 ✓) */
.hero-text .label {
  color: var(--accent);
  letter-spacing: 0.25em;
}

/* Título */
.hero-title { font-size: clamp(52px,6vw,80px); line-height: 1.05; color: var(--white); }
.hero-title em { font-style: italic; color: var(--accent); }

/* Descrição */
.hero-desc { font-size: 16px; color: rgba(255,255,255,0.90); line-height: 1.9; margin: 24px 0 40px; max-width: 440px; }

/* Botões */
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions .btn-dark {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}
.hero-actions .btn-dark:hover { background: var(--accent2); border-color: var(--accent2); }
.hero-actions .btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.55);
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* Badges de números */
.hero-badges { display: flex; gap: 32px; margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.18); }
.hero-badge-num { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 300; color: var(--white); line-height: 1; }
.hero-badge-label { font-size: 12px; color: rgba(255,255,255,0.82); letter-spacing: 0.08em; margin-top: 4px; }

/* Badge flutuante */
.hero-image-badge {
  position: absolute; bottom: 100px; right: 48px; z-index: 1;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  padding: 18px 26px; border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(30,20,14,0.25);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid rgba(255,255,255,0.6);
}
.hero-image-badge-dot { width: 10px; height: 10px; border-radius: 50%; background: #4CAF82; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(76,175,130,0.25); }
.hero-image-badge-text { font-size: 13px; color: var(--mid); line-height: 1.4; }
.hero-image-badge-text strong { display: block; font-size: 14px; color: var(--dark); font-weight: 500; }

/* ─── FAIXA DE SERVIÇOS ─────────────────────────── */
.services-strip { background: var(--dark); color: var(--white); padding: 28px 32px; display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }
.services-strip-item { display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); }
.services-strip-item .strip-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* ─── SOBRE (teaser) ────────────────────────────── */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.about-img-wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-img-wrap img { border-radius: var(--radius); }
.about-img-wrap img:first-child { grid-column: 1/-1; height: 280px; }
.about-img-wrap img:not(:first-child) { height: 200px; }
.about-badge { position: absolute; top: 20px; right: -20px; background: var(--accent); color: var(--white); padding: 18px 22px; border-radius: var(--radius); text-align: center; }
.about-badge-num { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; line-height: 1; display: block; }
.about-badge-text { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ─── CARDS DE SERVIÇO ──────────────────────────── */
.service-card { background: var(--white); border: 1px solid var(--bg3); border-radius: var(--radius); padding: 32px 28px; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(61,46,34,0.1); border-color: var(--accent); }
.service-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--accent); }
.service-card h4 { margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--mid); line-height: 1.7; }
.service-card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); text-decoration: none; margin-top: 18px; font-weight: 500; transition: gap 0.2s; }
.service-card-link:hover { gap: 10px; }

/* ─── GALERIA ───────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); grid-template-rows: repeat(3, 260px); gap: 10px; }
.gallery-item { overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.gallery-item img { height: 100%; transition: transform 0.4s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(5) { grid-column: span 2; }

/* ─── ANTES / DEPOIS ────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.ba-card { border-radius: var(--radius); overflow: hidden; }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; }
.ba-images img { height: 220px; }
.ba-divider { position: relative; }
.ba-divider::after { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 2px; height: 100%; background: var(--white); opacity: 0.7; }
.ba-label-row { display: grid; grid-template-columns: 1fr 1fr; background: var(--dark); color: var(--white); }
.ba-label { padding: 10px 14px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; }
.ba-label:first-child { border-right: 1px solid rgba(255,255,255,0.1); color: var(--light); }
.ba-label:last-child { color: var(--accent); }
.ba-card-body { background: var(--white); padding: 18px 20px; }
.ba-card-body h4 { font-size: 18px; margin-bottom: 4px; }
.ba-card-body p { font-size: 13px; color: var(--mid); }

/* ─── EQUIPE (mini cards) ───────────────────────── */
.team-card { text-align: center; }
.team-photo { width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: var(--radius); margin-bottom: 16px; }
.team-photo img { height: 100%; }
.team-card h4 { font-size: 20px; margin-bottom: 4px; }
.team-card .role { font-size: 12px; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── DEPOIMENTOS ───────────────────────────────── */
.testimonial-card { background: var(--white); border: 1px solid var(--bg3); border-radius: var(--radius); padding: 32px; }
.testimonial-stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; display: flex; gap: 4px; align-items: center; }
.testimonial-stars svg { width: 16px; height: 16px; fill: var(--accent); stroke: none; }
.testimonial-text { font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1.5; color: var(--dark); margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--bg3); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--accent); }
.testimonial-name { font-size: 14px; font-weight: 500; }
.testimonial-date { font-size: 12px; color: var(--mid); }

/* ─── CONTATO DA HOME ───────────────────────────── */
.home-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-info-block { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--bg3); }
.contact-info-block:last-child { border: none; }
.contact-info-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg2); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-info-block h5 { font-family: 'DM Sans', sans-serif; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; font-weight: 500; }
.contact-info-block p { font-size: 14px; color: var(--mid); line-height: 1.6; }
.contact-info-block a { color: var(--dark); text-decoration: none; font-weight: 500; }
.contact-info-block a:hover { color: var(--accent); }

.home-contact-grid .map-wrap { height: 340px; }
.home-contact-grid .map-overlay-card {
  top: 16px; left: 16px;
  padding: 18px 20px;
  max-width: 220px;
  backdrop-filter: blur(4px);
  background: rgba(253,252,250,0.96);
}
.home-contact-grid .map-overlay-card h5 { font-size: 16px; }
.home-contact-grid .map-overlay-card p { font-size: 12px; }
.home-contact-grid .map-overlay-card a { font-size: 11px; }

/* ─── RESPONSIVO ────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero mobile: texto volta para flow normal */
  .hero { min-height: 100svh; }
  .hero-text {
    position: relative;
    top: auto; left: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    padding: 120px 24px 80px;
    box-sizing: border-box;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-image-badge { display: none; }
  .about-teaser { grid-template-columns: 1fr; gap: 48px; }
  .about-badge { right: 8px; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(5) { grid-column: span 1; }
  .ba-grid { grid-template-columns: 1fr; }
  .home-contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  .services-strip { gap: 24px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
