/* ============================================================
   DEPATI PERÍCIAS — Global Stylesheet
   Paleta: Azul marinho + Dourado premium
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0a0f1e;
  --navy-mid:   #111827;
  --navy-light: #1a2540;
  --navy-card:  #16213e;
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --gold-dark:  #a07830;
  --gold-glow:  rgba(201,168,76,0.18);
  --white:      #ffffff;
  --off-white:  #f0ede8;
  --text-muted: #8a9bb5;
  --glass:      rgba(255,255,255,0.04);
  --glass-border: rgba(201,168,76,0.22);
  --shadow-gold: 0 4px 32px rgba(201,168,76,0.15);
  --shadow-deep: 0 8px 40px rgba(0,0,0,0.5);
  --radius:     8px;
  --radius-lg:  16px;
  --max-w:      1200px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

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

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.2; }

.gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }

a { color: inherit; text-decoration: none; }

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }

/* ── Gold Divider ─────────────────────────────────────────── */
.divider {
  width: 64px; height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: 2px; margin: 16px 0 32px;
}
.divider--center { margin-left: auto; margin-right: auto; }

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  display: block; margin-bottom: 12px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--radius);
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 15px;
  cursor: pointer; border: none; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--navy);
  box-shadow: 0 4px 20px rgba(201,168,76,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.55);
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-outline:hover {
  background: var(--gold-glow);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--navy-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); }
.card:hover::before { opacity: 1; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 24px;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(10,15,30,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-deep);
}

.nav__inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 100px;
}

.nav__logo { display: flex; align-items: center; gap: 14px; }
.nav__logo img { height: 100px; width: auto; }
.nav__brasao {
  height: 65px; width: auto;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.25));
  transition: var(--transition);
}
.nav__logo:hover .nav__brasao {
  filter: drop-shadow(0 0 10px rgba(201,168,76,0.5));
}
.footer__brasao {
  height: 90px; width: auto;
  filter: drop-shadow(0 0 6px rgba(201,168,76,0.2));
  opacity: 0.85;
}
.nav__logo-text { display: flex; flex-direction: column; line-height: 1; }
.nav__logo-name {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 22px; color: var(--gold); letter-spacing: 1.5px;
}
.nav__logo-sub { font-size: 11.5px; letter-spacing: 3px; color: var(--text-muted); text-transform: uppercase; }

.nav__links { display: flex; align-items: center; gap: 8px; }
.nav__link {
  padding: 8px 16px; font-size: 14px; font-weight: 500;
  color: var(--off-white); border-radius: var(--radius);
  transition: var(--transition); position: relative;
}
.nav__link::after {
  content: ''; position: absolute; bottom: 4px; left: 16px; right: 16px; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: var(--transition);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.active { color: var(--gold); }
.nav__link.active::after { transform: scaleX(1); }

.nav__cta { margin-left: 16px; padding: 10px 22px; font-size: 14px; }

/* Mobile menu */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px; background: none; border: none;
}
.nav__hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav__mobile {
  display: none; position: fixed; top: 100px; left: 0; right: 0;
  background: rgba(10,15,30,0.99); backdrop-filter: blur(16px);
  padding: 24px; border-bottom: 1px solid var(--glass-border);
  flex-direction: column; gap: 8px; z-index: 999;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 16px; padding: 14px 20px; border-radius: var(--radius); }
.nav__mobile .nav__link:hover { background: var(--glass); }

/* ── WhatsApp Float ───────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 62px; height: 62px; border-radius: 50%;
  background: linear-gradient(135deg, #128c7e, #25d366);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 10px 40px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 32px; height: 32px; fill: #fff; }
.whatsapp-float::before {
  content: 'Fale com uma Perita';
  position: absolute; right: 74px; top: 50%; transform: translateY(-50%);
  background: var(--navy-card); color: var(--off-white);
  padding: 8px 14px; border-radius: var(--radius); font-size: 13px; font-weight: 500;
  white-space: nowrap; border: 1px solid var(--glass-border);
  opacity: 0; pointer-events: none; transition: var(--transition);
}
.whatsapp-float:hover::before { opacity: 1; }

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: #060a13;
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}

.footer__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.footer__logo img { height: 90px; }
.footer__desc { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.footer__social { display: flex; gap: 12px; }
.footer__social-link {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px; transition: var(--transition);
}
.footer__social-link:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-glow); }

.footer__heading {
  font-family: 'Playfair Display', serif; font-size: 16px;
  color: var(--gold); margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--glass-border);
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__links a { color: var(--text-muted); font-size: 14px; transition: var(--transition); }
.footer__links a:hover { color: var(--gold); padding-left: 4px; }

.footer__contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.footer__contact-icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer__contact-text { color: var(--text-muted); font-size: 14px; }
.footer__contact-text strong { color: var(--off-white); display: block; font-size: 13px; font-weight: 600; }

.footer__bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0; text-align: center;
  color: var(--text-muted); font-size: 13px;
}
.footer__bottom span { color: var(--gold); }

/* ── Breadcrumb ───────────────────────────────────────────── */
.page-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,168,76,0.06) 0%, transparent 70%);
}
.page-hero__label { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.page-hero__title { font-size: clamp(32px,5vw,54px); color: var(--white); margin-bottom: 16px; }
.page-hero__desc { color: var(--text-muted); font-size: 18px; max-width: 600px; line-height: 1.8; }
.breadcrumb { margin-bottom: 24px; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--gold); }
.breadcrumb span { margin: 0 8px; }

/* ── Grids ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 32px; }

/* ── Form ─────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--gold); margin-bottom: 8px; letter-spacing: 0.5px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: var(--navy-light);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 18px;
  color: var(--off-white);
  font-family: 'Inter', sans-serif; font-size: 15px;
  transition: var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.12); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }

/* ── Badge / Tag ──────────────────────────────────────────── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  background: var(--gold-glow); color: var(--gold);
  border: 1px solid rgba(201,168,76,0.3);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity:0; transform:translateX(-40px); } to { opacity:1; transform:translateX(0); } }
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:0.6; } }
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes float {
  0%,100% { transform:translateY(0); }
  50% { transform:translateY(-10px); }
}

.animate-up { animation: fadeInUp 0.7s ease both; }
.animate-in { animation: fadeIn 0.7s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* Intersection Observer fade */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .whatsapp-float::before { display: none; }
}

/* ── Print / A11y ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; }
}
