/* ============================================================
   GRUPO DIMARTINS — SITE INSTITUCIONAL — style.css
   Sistema de Design: verde petróleo + dourado premium
   ============================================================ */

/* ---------- VARIÁVEIS CSS ---------- */
:root {
  /* Cores base */
  --bg-darkest:   #030a05;
  --bg-dark:      #060e08;
  --bg-medium:    #0a1a0e;
  --bg-card:      #0d2011;
  --bg-elevated:  #102614;

  /* Dourado */
  --gold-primary: #c9a227;
  --gold-light:   #d4b44a;
  --gold-muted:   #a07d1c;

  /* Texto */
  --text-primary: #eef5ef;
  --text-secondary: #c4d6c8;
  --text-muted:   #7a9880;

  /* Bordas */
  --border-subtle: rgba(201, 162, 39, 0.15);
  --border-gold:   rgba(201, 162, 39, 0.40);

  /* Tipografia */
  --font-title: 'Playfair Display', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;

  /* Espaçamentos */
  --section-padding: 5rem 1.5rem;
  --container-max: 1140px;

  /* Transições */
  --transition: 0.3s ease;
  --transition-slow: 0.6s ease;

  /* Sombras */
  --shadow-gold: 0 0 30px rgba(201, 162, 39, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ---------- RESET ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: radial-gradient(circle at 18% 10%, #0f4838 0%, #062318 36%, #030a05 100%) fixed;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Overlay de luz dourada — cria profundidade sobre o gradiente */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.14), transparent 24%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold-light);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
}

/* ---------- TIPOGRAFIA ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--text-primary);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p:last-child { margin-bottom: 0; }

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- BOTÕES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--bg-darkest);
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.25);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: var(--bg-darkest);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.40);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border: 2px solid var(--gold-primary);
}

.btn-outline:hover {
  background: rgba(201, 162, 39, 0.08);
  color: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* ---------- HEADER ---------- */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  isolation: isolate;
  background: rgba(6, 14, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background var(--transition), box-shadow var(--transition);
}

#site-header.scrolled {
  background: rgba(3, 10, 5, 0.97);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header-logo img {
  height: 44px;
  width: auto;
}

/* Nav desktop */
.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.main-nav a:hover {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.header-cta {
  display: none;
}

/* Hamburguer */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: rgba(3, 10, 5, 0.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: 1.3rem;
  font-family: var(--font-title);
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
  text-align: center;
  transition: color var(--transition);
}

.mobile-menu a:hover {
  color: var(--gold-primary);
}

.mobile-menu .btn {
  width: 100%;
  max-width: 320px;
}

/* ---------- HERO ---------- */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 1.5rem 5rem;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201, 162, 39, 0.10) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(201, 162, 39, 0.03) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(201, 162, 39, 0.03) 60px);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.hero-headline .gold-text {
  color: var(--gold-primary);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 560px;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}

/* ---------- SEÇÕES GERAIS ---------- */
section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-block;
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-title);
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ---------- SERVIÇOS ---------- */
#servicos {
  background: rgba(3, 10, 5, 0.78);
  backdrop-filter: blur(2px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-elevated);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.service-name {
  font-family: var(--font-title);
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- COMO FUNCIONA ---------- */
#como-funciona {
  background: rgba(6, 14, 8, 0.60);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
}

.step-item {
  text-align: center;
  padding: 2rem 1.5rem;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-light));
  color: var(--bg-darkest);
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
}

.step-title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ---------- DIFERENCIAIS ---------- */
#diferenciais {
  background: rgba(10, 26, 14, 0.65);
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.diferencial-card {
  background: rgba(3, 10, 5, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 2rem 1.75rem;
  transition: all var(--transition);
}

.diferencial-card:hover {
  border-color: var(--border-gold);
  background: rgba(3, 10, 5, 0.85);
  box-shadow: var(--shadow-gold);
}

.diferencial-icon {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

.diferencial-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.diferencial-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---------- CTA DIAGNÓSTICO ---------- */
#cta-diagnostico {
  background: rgba(3, 10, 5, 0.55);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

#cta-diagnostico::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-diagnostico-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-diagnostico-box {
  background: rgba(201, 162, 39, 0.06);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 3rem 2.5rem;
}

.cta-diagnostico-box .section-label {
  font-size: 0.7rem;
}

.cta-diagnostico-box h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}

.cta-diagnostico-box p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-price-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- CONFIANÇA / NÚMEROS ---------- */
#confianca {
  background: rgba(3, 10, 5, 0.78);
  padding: 4rem 1.5rem;
}

.confianca-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.confianca-item .stat-number {
  font-size: 2.5rem;
}

.confianca-item .stat-label {
  font-size: 0.9rem;
}

/* ---------- FOOTER ---------- */
#site-footer {
  background: rgba(3, 10, 5, 0.88);
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 1;
  padding: 3.5rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 38px;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0;
}

.footer-nav h4 {
  color: var(--gold-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-bottom a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--gold-primary);
}

/* ---------- WHATSAPP FLUTUANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 998;
  background: #25d366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

/* ---------- UTILITÁRIOS ---------- */
.text-gold { color: var(--gold-primary); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Divisor dourado */
.gold-divider {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  border-radius: 2px;
  margin: 0.75rem 0 1.5rem;
}

.section-header.centered .gold-divider {
  margin: 0.75rem auto 1.5rem;
}

/* ---------- RESPONSIVIDADE ---------- */
@media (min-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
    max-width: 720px;
  }

  .confianca-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .header-cta {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .footer-top {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .hero-actions .btn {
    font-size: 1.05rem;
    padding: 1rem 2.2rem;
  }

  .confianca-item .stat-number {
    font-size: 3rem;
  }
}
