/* ══ ESTILOS GLOBAIS - COAST DESIGN SYSTEM ══ */
:root {
  /* Fallbacks de CSS Variables */
  --bg-base: #050505;
  --bg-surface: #0A0A0A;
  --bg-elevated: rgba(255,255,255,0.03);
  --accent: #E6C258;
  --accent-dim: rgba(230,194,88,0.12);
  --accent-glow: rgba(230,194,88,0.25);
  --text-high: #F9F6F0;
  --text-mid: #A3A09A;
  --text-low: #5C5A56;
  --border-subtle: rgba(255,255,255,0.06);
  --border-accent: rgba(230,194,88,0.30);
  --gradient-brand: linear-gradient(135deg, #E6C258 0%, #B38F36 100%);
  --gradient-hero-bg: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(230,194,88,0.10) 0%, transparent 80%);

  /* Tipografia Base */
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  /* Sistema de Espaçamento Modular */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 100px;
  --space-3xl: clamp(100px, 12vw, 160px);

  /* Curvaturas */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Física de Animação */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-base: 300ms;
  --duration-slow: 650ms;
}

/* RESET PREMIUM */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg-base);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TIPOGRAFIA & HIERARQUIA */
h1, h2, h3, h4, h5, h6, .font-display {
  font-family: var(--font-display);
  color: var(--text-high);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.2;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; height: auto; }
.d-block { display: block; }
.text-center { text-align: center; }

/* UTILITIES DE LAYOUT */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.section-padding { padding: var(--space-3xl) 0; }

/* CUSTOM CURSOR */
@media (hover: hover) and (pointer: fine) {
  #cursor-dot, #cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 99999;
    transform: translate(-50%, -50%); border-radius: 50%;
  }
  #cursor-dot {
    width: 6px; height: 6px; background: var(--accent);
    transition: transform var(--duration-fast) var(--ease-out);
  }
  #cursor-ring {
    width: 36px; height: 36px; border: 1.5px solid var(--border-accent);
    transition: width var(--duration-fast) var(--ease-out), height var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
    will-change: transform;
  }
  body.is-hovering #cursor-ring {
    width: 52px; height: 52px; background: var(--accent-dim); border-color: transparent;
  }
  body.is-hovering #cursor-dot { transform: translate(-50%, -50%) scale(0); }
}
@media (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none !important; }
}

/* PRELOADER */
#preloader {
  position: fixed; inset: 0; background: var(--bg-base); z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity var(--duration-slow) var(--ease-out), visibility var(--duration-slow);
}
.preloader-content { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; }
.preloader-ring {
  position: absolute; width: 100%; height: 100%; fill: none; stroke: var(--accent);
  stroke-width: 2; stroke-dasharray: 300; stroke-dashoffset: 300;
  transform: rotate(-90deg); animation: drawRing 1.5s var(--ease-out) forwards;
}
#preloader-logo { max-width: 50px; opacity: 0; transform: scale(0.9); animation: revealLogo 0.8s var(--ease-spring) 1s forwards; }
.preloader-bar { margin-top: var(--space-lg); width: 200px; height: 2px; background: var(--border-subtle); border-radius: var(--radius-pill); overflow: hidden; }
.preloader-progress { width: 0%; height: 100%; background: var(--accent); animation: progressFill 2s var(--ease-out) forwards; }
@keyframes drawRing { to { stroke-dashoffset: 0; } }
@keyframes revealLogo { to { opacity: 1; transform: scale(1); } }
@keyframes progressFill { to { width: 100%; } }

/* HEADER & NAV */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--space-md) 0; transition: all var(--duration-base) var(--ease-out);
}
#header.scrolled {
  padding: var(--space-sm) 0; background: rgba(5,5,5, 0.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-bottom: 1px solid var(--border-subtle);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 32px; }
.nav-links { display: flex; gap: var(--space-lg); }
.nav-links a { font-size: 0.875rem; font-weight: 600; color: var(--text-mid); transition: color var(--duration-fast) var(--ease-out); }
.nav-links a:hover { color: var(--text-high); }
.btn-nav {
  padding: 10px 24px; font-size: 0.875rem; font-weight: 600; color: var(--text-high);
  border: 1px solid var(--border-accent); border-radius: var(--radius-pill);
  transition: background var(--duration-fast) var(--ease-out);
}
.btn-nav:hover { background: var(--accent-dim); }
#burger-menu { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 101; }
#burger-menu span { display: block; width: 24px; height: 2px; background: var(--text-high); transition: 0.3s; }

/* HERO SECTION */
#hero {
  position: relative; min-height: 100svh;
  display: grid; place-items: center; padding-top: 80px; overflow: hidden;
}
.hero-bg-gradient { position: absolute; inset: 0; background: var(--gradient-hero-bg); pointer-events: none; z-index: 0; }
#topo-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.15; }
.hero-content {
  position: relative; z-index: 10; text-align: center; display: flex;
  flex-direction: column; align-items: center; gap: var(--space-md);
}
.eyebrow-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px;
  background: var(--accent-dim); border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill); font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-high); font-weight: 600;
}
.dot-pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulseDot 2s infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

.hero-title { font-size: clamp(3.5rem, 8vw, 6.5rem); line-height: 1.0; letter-spacing: -0.05em; }
.hero-title em { font-style: italic; color: var(--accent); font-weight: 400; }
.hero-subheadline { font-size: clamp(1rem, 2vw, 1.25rem); max-width: 58ch; margin: 0 auto; }
.hero-ctas { display: flex; gap: var(--space-sm); margin-top: var(--space-sm); }
.btn-primary {
  background: var(--gradient-brand);
  color: #000000 !important; /* CORRIGIDO: Garante que o texto fique escuro sobre o dourado */
  padding: 16px 36px; border-radius: var(--radius-pill); font-weight: 700;
  font-size: 1rem; box-shadow: 0 8px 32px var(--accent-glow);
  transition: transform var(--duration-fast) var(--ease-spring), box-shadow var(--duration-fast) var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 40px var(--accent-glow); }
.btn-secondary {
  padding: 16px 36px; border-radius: var(--radius-pill); font-weight: 600; color: var(--text-high);
  border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02);
  transition: all var(--duration-fast) var(--ease-out); display: inline-flex; align-items: center; justify-content: center;
}
.btn-secondary:hover { border-color: var(--border-accent); background: var(--accent-dim); }
.hero-social-proof { margin-top: var(--space-lg); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.8rem; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.05em; }
.hero-social-proof svg { color: var(--accent); }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 10; }
.mouse { width: 24px; height: 36px; border: 1.5px solid var(--text-low); border-radius: 12px; position: relative; }
.wheel { width: 4px; height: 6px; background: var(--text-low); border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollWheel 1.5s infinite; }
@keyframes scrollWheel { 0% { top: 6px; opacity: 1; } 100% { top: 18px; opacity: 0; } }

/* GERAL SECTIONS */
.eyebrow-text { display: block; font-size: 0.85rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: var(--space-xs); }
.section-title { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: var(--space-md); }
.section-desc { font-size: 1.125rem; max-width: 60ch; margin-bottom: var(--space-lg); }

/* ABOUT SECTION */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: var(--space-3xl); align-items: center; }
.about-image-wrapper { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.about-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-xl); position: relative; z-index: 2; border: 1px solid var(--border-subtle); }
.about-glow { position: absolute; inset: -20px; background: var(--accent); filter: blur(80px); opacity: 0.15; z-index: 1; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); margin-top: var(--space-lg); padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); }
.stat-item h4 { font-size: 2.5rem; color: var(--accent); line-height: 1; margin-bottom: 4px; }
.stat-item p { font-size: 0.85rem; color: var(--text-low); text-transform: uppercase; letter-spacing: 0.05em; }

/* SERVICES */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); }
.service-card { position: relative; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-lg); overflow: hidden; transition: transform var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out); display: flex; flex-direction: column; }
.service-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(800px circle at var(--mx, 50%) var(--my, 50%), var(--accent-glow), transparent 40%); opacity: 0; transition: opacity var(--duration-base); z-index: 0; pointer-events: none; }
.service-card:hover { transform: translateY(-8px); border-color: var(--border-accent); }
.service-card:hover::after { opacity: 1; }
.service-card-content { position: relative; z-index: 2; }
.card-img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-md); margin-bottom: var(--space-md); border: 1px solid var(--border-subtle); }
.card-tag { display: inline-block; padding: 4px 12px; background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: var(--radius-pill); font-size: 0.75rem; color: var(--accent); margin-bottom: var(--space-sm); font-weight: 600; }
.service-card h3 { font-size: 1.5rem; margin-bottom: var(--space-xs); }

/* TESTIMONIALS */
#testimonials { position: relative; background: var(--bg-surface); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.quote-mark { position: absolute; top: 40px; left: 50%; transform: translateX(-50%); font-family: var(--font-display); font-size: 16rem; color: var(--accent); opacity: 0.05; line-height: 1; pointer-events: none; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--space-lg); margin-top: var(--space-xl); position: relative; z-index: 2; }
.testim-card { background: var(--bg-base); padding: var(--space-lg); border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); display: flex; flex-direction: column; justify-content: space-between; }
.testim-quote { font-size: 1.1rem; font-style: italic; color: var(--text-high); margin-bottom: var(--space-lg); }
.testim-author { display: flex; align-items: center; gap: 16px; }
.testim-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-accent); }
.testim-info h5 { font-size: 1rem; margin-bottom: 2px; }
.testim-info span { font-size: 0.8rem; color: var(--text-low); }

/* CTA BAND + MAP */
.cta-box { background: var(--accent-dim); border: 1px solid var(--border-accent); border-radius: var(--radius-xl); padding: var(--space-2xl) var(--space-xl); text-align: center; position: relative; overflow: hidden; margin-bottom: var(--space-3xl); }
.cta-orb { position: absolute; top: -50%; right: -10%; width: 400px; height: 400px; background: var(--accent); filter: blur(120px); opacity: 0.2; border-radius: 50%; }
.cta-box-content { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--space-lg); }
.map-wrapper { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--border-subtle); height: 400px; }
.map-wrapper iframe { width: 100%; height: 100%; border: none; filter: invert(90%) hue-rotate(180deg) grayscale(80%) contrast(1.2); }

/* FOOTER */
#footer { background: var(--bg-surface); padding: var(--space-2xl) 0 var(--space-md); border-top: 1px solid var(--border-subtle); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-xl); padding-bottom: var(--space-xl); border-bottom: 1px solid var(--border-subtle); }
.footer-logo { max-width: 140px; margin-bottom: var(--space-sm); }
.footer-tagline { max-width: 300px; font-size: 0.9rem; }
.footer-social { display: flex; gap: var(--space-md); }
.footer-social a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; }
.footer-social a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-low); }

/* WHATSAPP FAB */
.wpp-fab {
  position: fixed; bottom: 32px; right: 32px;
  background: #E6C258; color: #000;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 14px 24px; border-radius: var(--radius-pill);
  z-index: 200; font-weight: 700; box-shadow: 0 8px 32px rgba(230,194,88,0.3);
  transition: all var(--duration-slow) var(--ease-spring);
  overflow: hidden; max-width: 250px;
}
.wpp-fab.collapsed {
  max-width: 52px; padding: 14px;
}
.wpp-fab.collapsed .fab-text { opacity: 0; width: 0; padding: 0; margin: 0; }
.fab-text { transition: all var(--duration-base); white-space: nowrap; }
.wpp-fab:hover { transform: translateY(-4px) scale(1.05); }
.fab-pulse { position: absolute; inset: 0; border-radius: var(--radius-pill); border: 2px solid #E6C258; animation: fabPulseAnim 2s infinite; pointer-events: none; }
@keyframes fabPulseAnim { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.4); opacity: 0; } }

/* SCROLL REVEAL (JS) */
.sr { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.sr.visible { opacity: 1; transform: none; }
.sr-delay-1 { transition-delay: 100ms; }
.sr-delay-2 { transition-delay: 200ms; }
.sr-delay-3 { transition-delay: 300ms; }

/* RESPONSIVO */
@media (max-width: 992px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrapper { max-width: 500px; margin: 0 auto; }
}
@media (max-width: 768px) {
  /* CORRIGIDO: Redução da lacuna (gap) absurda em telas pequenas */
  #hero { min-height: 80svh; padding-bottom: 80px; }
  
  .nav-links, .btn-nav { display: none; }
  #burger-menu { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .hero-ctas { flex-direction: column; width: 100%; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; justify-content: center; }
  .footer-grid { flex-direction: column; gap: var(--space-lg); }
  .wpp-fab { bottom: 24px; right: 24px; }
}