/* ============ APPLE DESIGN ============
   Aplicação dos princípios da skill apple-design:
   tipografia com tracking óptico, materiais translúcidos,
   feedback no press, easing naturais e reduced-motion. */

/* ============ VARIÁVEIS ============ */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --paper: #ffffff;
  --paper-2: #f5f5f7;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.4);
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --dark: #161617;
  --star: #ffb400;
  --shadow-soft: 0 18px 60px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 6px 30px rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --container: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 68px;
}

/* ============ RESET ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ UTILITÁRIOS ============ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
/* Tipografia: hierarquia por peso+tamanho+entrelinha, tracking óptico */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.1; text-wrap: balance; }
h1 {
  font-size: clamp(2.9rem, 7vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
}
h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
h2 em { font-style: normal; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { color: var(--muted); }
.gold,
.stars { color: var(--star); }

/* ============ BUTTONS (feedback no pointer-down) ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px;
  border-radius: 980px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.25s ease, transform 0.1s ease, box-shadow 0.25s ease;
  text-align: center;
  white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 17px; }
.btn:active { transform: scale(0.96); transition: transform 80ms ease-out; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { border-color: rgba(255, 255, 255, 0.9); color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.24); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f2; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; background: rgba(255, 255, 255, 0.1); padding: 12px 20px; font-size: 15px; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }

/* ============ HEADER (material translúcido) ============ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(28, 28, 30, 0.55);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 38px; width: auto; border-radius: 6px; object-fit: contain; }
.brand-text { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.95); }
.brand-text strong { color: #fff; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: rgba(255, 255, 255, 0.88); font-weight: 500; font-size: 15px; transition: opacity 0.2s; }
.nav a:hover { opacity: 0.7; }
.nav .btn-ghost { margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: rgba(255, 255, 255, 0.95); margin: 5px 0; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  color: #fff; overflow: hidden; text-align: center;
}
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.18) 45%, rgba(0,0,0,0.62) 100%);
}
.hero-content { position: relative; z-index: 2; padding: calc(var(--header-h) + 40px) 0 90px; max-width: 900px; display: flex; flex-direction: column; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 10px 20px; border-radius: 980px;
  font-size: 15px; margin-bottom: 30px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-badge strong { font-weight: 600; }
.hero h1 { max-width: 820px; margin-bottom: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: #fff; }
.hero > .container p {
  color: rgba(255, 255, 255, 0.92); font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 640px; margin-bottom: 42px; font-weight: 400; letter-spacing: -0.01em;
}
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 70px; }
.hero-proof { display: flex; gap: 60px; flex-wrap: wrap; justify-content: center; }
.proof-item { display: flex; flex-direction: column; align-items: center; }
.proof-item strong { font-size: 1.8rem; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.proof-item strong .small { font-size: 1rem; }
.proof-item span { font-size: 13.5px; color: rgba(255, 255, 255, 0.75); margin-top: 4px; }

/* ============ TRUST BAR ============ */
.trust-bar { background: var(--paper-2); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 26px 0; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--ink); font-size: 14.5px; text-align: center; }
.trust-google { height: 22px; width: 22px; border-radius: 50%; object-fit: contain; }
.trust-icon { color: var(--ink); }

/* ============ SEÇÕES ============ */
.section { padding: 110px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head p:not(.eyebrow) { font-size: 1.15rem; letter-spacing: -0.005em; }

/* ============ SOBRE ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; }
.split-media > img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-soft); }
.media-card {
  position: absolute; right: -18px; bottom: -18px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  color: var(--ink);
  padding: 20px 26px; border-radius: 16px;
  box-shadow: var(--shadow-soft);
  text-align: left; border: 1px solid rgba(255,255,255,0.9);
}
.media-card strong { display: block; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; color: var(--blue); }
.media-card span { font-size: 13px; color: var(--muted); }
.split-text p { margin-bottom: 18px; }
.check-list { margin: 26px 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-size: 15px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}
.split-text .eyebrow { text-align: left; }

/* ============ SERVIÇOS ============ */
.grid-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-servico {
  background: var(--paper); border-radius: var(--radius);
  padding: 36px 28px; border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.card-servico:hover { transform: translateY(-8px); box-shadow: var(--shadow-card); }
.servico-icon { font-size: 2.1rem; margin-bottom: 16px; }
.card-servico h3 { margin-bottom: 10px; }
.card-servico p { font-size: 14.5px; }

/* ============ GALERIA ============ */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: var(--container); margin: 0 auto; padding: 0 0 40px; }
.gallery-item { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4/5; cursor: pointer; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery-item:active img { transform: scale(0.985); transition: transform 60ms ease-out; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-zoom {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.4) 100%);
  opacity: 0; transition: opacity 0.3s;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 24px;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }

/* ============ DEPOIMENTOS ============ */
.google-rating { font-size: 1.05rem; margin-top: 16px; color: var(--muted); }
.google-rating .stars { letter-spacing: 3px; }
.grid-depoimentos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-depoimento {
  background: var(--paper); border-radius: var(--radius);
  padding: 42px 34px; border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  display: flex; flex-direction: column; gap: 18px;
}
.card-depoimento:hover { box-shadow: var(--shadow-card); transform: translateY(-4px); }
.card-depoimento .stars { letter-spacing: 3px; font-size: 15px; }
.card-depoimento blockquote { font-size: 1.18rem; line-height: 1.45; letter-spacing: -0.01em; color: var(--ink); flex: 1; }
.card-depoimento blockquote::before { content: "“"; color: var(--blue); font-size: 2.2rem; line-height: 0; margin-right: 4px; }
.card-depoimento figcaption { border-top: 1px solid var(--paper); padding-top: 18px; display: flex; flex-direction: column; gap: 3px; }
.card-depoimento figcaption strong { font-weight: 600; }
.card-depoimento figcaption span { font-size: 13px; color: var(--muted); }

/* ============ CTA ============ */
.cta { position: relative; color: #fff; text-align: center; padding: 130px 0; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); }
.cta-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.5), rgba(0,0,0,0.72)); }
.cta-content { position: relative; }
.cta-content h2 { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 16px; color: #fff; }
.cta-content p { color: rgba(255, 255, 255, 0.85); font-size: 1.15rem; max-width: 560px; margin: 0 auto 36px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ============ CONTATO ============ */
.grid-contato { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 6px; }
.info-item { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.06); align-items: flex-start; }
.info-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: var(--paper-2); color: var(--ink); border-radius: 12px; font-size: 19px;
}
.info-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.info-item p, .info-item a { font-size: 15px; color: var(--muted); }
.info-item a:hover { color: var(--blue); }
.contact-info .btn { align-self: flex-start; margin-top: 24px; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); min-height: 420px; }
.map iframe { display: block; height: 100%; min-height: 420px; }

/* ============ FOOTER ============ */
.footer { background: var(--dark); color: rgba(255, 255, 255, 0.75); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding: 70px 0 50px; }
.footer-brand .brand-logo { height: 44px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 14.5px; line-height: 1.7; }
.footer-col h3 {
  font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35); margin-bottom: 16px; font-weight: 600;
}
.footer-col a { display: block; padding: 5px 0; color: rgba(255, 255, 255, 0.75); font-size: 15px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: rgba(255, 255, 255, 0.65); font-size: 15px; padding: 5px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; text-align: center; }
.footer-bottom p { font-size: 13px; color: rgba(255, 255, 255, 0.45); }

/* ============ WHATSAPP FLUTUANTE ============ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.whatsapp-float:hover { transform: scale(1.08) translateY(-2px); }
.whatsapp-float:active { transform: scale(0.94); transition: transform 60ms ease-out; }

/* ============ LIGHTBOX (materializando, não só fade) ============ */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
  padding: 30px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(92vw, 1000px); max-height: 76vh; border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transform: scale(0.94);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lightbox-caption { color: #fff; font-size: 1.1rem; letter-spacing: -0.01em; }
.lightbox-close {
  position: absolute; top: 24px; right: 28px; background: rgba(255,255,255,0.1);
  border: 0; color: #fff; width: 44px; height: 44px; border-radius: 50%;
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close:active { transform: scale(0.9); transition: transform 60ms ease-out; }

/* ============ REVEAL (spring/flúido: origem-fim consistentes) ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: none; }

/* ============ STAGGER (entrada em grupo) ============ */
.grid-services > *:nth-child(2),
.grid-depoimentos > *:nth-child(2) { transition-delay: 60ms; }
.grid-services > *:nth-child(3),
.grid-depoimentos > *:nth-child(3) { transition-delay: 120ms; }
.grid-services > *:nth-child(4),
.grid-depoimentos > *:nth-child(4) { transition-delay: 180ms; }

/* ============ ENTRADA DO HERO (first-frame settle) ============ */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
html.js .hero-content > * {
  animation: hero-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
html.js .hero-content > *:nth-child(2) { animation-delay: .12s; }
html.js .hero-content > *:nth-child(3) { animation-delay: .26s; }
html.js .hero-content > *:nth-child(4) { animation-delay: .4s; }
html.js .hero-content > *:nth-child(5) { animation-delay: .54s; }

/* ============ LAZY LOAD (cross-fade) ============ */
html.js .gallery-item img { opacity: 0; transition: opacity 0.5s ease; }
html.js .gallery-item img.is-loaded { opacity: 1; }

/* ============ REDUCED MOTION (skill §14) ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html.js .gallery-item img { opacity: 1; }
  .lightbox-img { transform: none; }
  .hero-bg, .cta-bg { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .header, .media-card, .hero-badge, .lightbox { backdrop-filter: none; background: var(--dark); }
  .media-card { background: #fff; }
  .hero-badge { background: rgba(0, 0, 0, 0.35); }
}
@media (prefers-contrast: more) {
  body { background: #fff; }
  .section-alt { background: #edeef0; }
  .btn { border-width: 2px; }
}

/* ============ RESPONSIVO ============ */
@media (max-width: 1024px) {
  .grid-services { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-contato { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 64px; }
  .media-card { right: 8px; }
}
@media (max-width: 768px) {
  .header:has(.nav.open) {
    background: var(--dark) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
  .nav {
    position: fixed; top: var(--header-h); right: 0; bottom: 0; width: 100%;
    background: var(--dark);
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 30px 28px; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .nav.open { transform: translateX(0); }
  .nav a { display: block; padding: 12px 0; width: 100%; font-size: 1.15rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .nav .btn-ghost { margin: 12px 0 0; }
  .nav-toggle { display: block; }
  .section { padding: 80px 0; }
  .grid-services, .grid-depoimentos { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .check-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; padding: 50px 0 30px; }
  .hero-proof { gap: 30px; }
  .hero-cta .btn, .cta-actions .btn { width: 100%; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .brand-text { display: none; }
  .brand-logo { height: 36px; }
}