/* ============================================================
   HÉRCIO MARCAS – CSS PRINCIPAL
   Paleta: Azul escuro #0D1B2A | Dourado #C9A84C | Branco #F8F8F6
============================================================ */

:root {
  --navy: #0D1B2A;
  --navy-mid: #122233;
  --navy-light: #1A3050;
  --gold: #C9A84C;
  --gold-light: #DEC06B;
  --gold-dark: #A8852F;
  --white: #F8F8F6;
  --white-pure: #FFFFFF;
  --text: #E8E4DC;
  --text-muted: #9BA8B5;
  --border: rgba(201, 168, 76, 0.2);
  --shadow: 0 20px 60px rgba(0,0,0,0.4);
  --radius: 4px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   TIPOGRAFIA
============================================================ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-eyebrow.light { color: var(--gold-light); }

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--navy);
  margin-bottom: 24px;
}
.section-title.light { color: var(--white); }

.section-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-lead.light { color: var(--text); }

/* ============================================================
   BOTÕES
============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,0.35);
}

.btn-outline {
  border: 1.5px solid rgba(255,255,255,0.4);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}

.btn-wp {
  background: #25D366;
  color: #fff;
  justify-content: center;
}
.btn-wp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
}

.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.mt-2 { margin-top: 2rem; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(13, 27, 42, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: 32px;
}

.logo { display: flex; align-items: baseline; }
.logo-hercio { font-family: 'Roboto', sans-serif; font-size: 2rem; font-weight: 700; color: var(--white); }
.logo-marcas { font-family: 'Roboto', sans-serif; font-size: 2rem; font-weight: 300; color: var(--white); letter-spacing: 0; text-transform: none; margin-left: 0; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
  letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--gold); }

.nav-cta { margin-left: 8px; padding: 10px 20px; font-size: 0.85rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(13,27,42,0.97) 50%, rgba(13,27,42,0.7) 80%, rgba(13,27,42,0.3) 100%);
  z-index: 1;
}

.hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: saturate(0.6) brightness(0.7);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding-top: 60px;
  padding-bottom: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  animation: fadeInDown 0.7s ease both;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: var(--white);
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.hero-title em { color: var(--gold); font-style: normal; }

.hero-sub {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 16px;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 580px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s both;
}

/* ============================================================
   STATS BAR
============================================================ */
.stats-bar {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}

.stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-plus { font-size: 1.4rem; }
.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   SEÇÕES GERAIS
============================================================ */
.section {
  padding: 96px 0;
}
.bg-dark {
  background: var(--navy-mid);
}

/* ============================================================
   DIFERENCIAL
============================================================ */
.diferencial { background: var(--white); }
.diferencial .section-title { color: var(--navy); }
.diferencial .section-eyebrow { color: var(--gold-dark); }
.diferencial p { color: #3A3A3A; margin-bottom: 16px; font-size: 1.05rem; }

.diferencial-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.photo-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(13,27,42,0.95));
  padding: 40px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.photo-caption strong { color: var(--white); font-size: 1rem; font-family: var(--font-display); }
.photo-caption span { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.05em; }

/* ============================================================
   CARDS – POR QUE REGISTRAR
============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-feature {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: var(--transition);
}
.card-feature:hover {
  background: rgba(201,168,76,0.06);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-4px);
}

.card-icon {
  width: 48px; height: 48px;
  color: var(--gold);
  margin-bottom: 20px;
}
.card-icon svg { width: 100%; height: 100%; }

.card-feature h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 10px;
  font-family: var(--font-display);
}
.card-feature p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   PATENTES
============================================================ */
.patentes { background: var(--white); }
.patentes .section-eyebrow { color: var(--gold-dark); }
.patentes .section-title { color: var(--navy); }
.patentes p { color: #3A3A3A; margin-bottom: 16px; font-size: 1.05rem; }

.patentes-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.patentes-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.patentes-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.patentes-icon-wrap {
  position: absolute;
  bottom: 20px; right: 20px;
  background: rgba(13,27,42,0.9);
  border-radius: 50%;
  padding: 16px;
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.patentes-icon-wrap svg { width: 48px; height: 48px; }

/* ============================================================
   SERVIÇOS
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--gold);
  transition: height 0.4s ease;
}
.service-card:hover { background: rgba(255,255,255,0.06); border-color: var(--border); }
.service-card:hover::before { height: 100%; }

.service-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 900;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  margin-bottom: 12px;
  transition: color var(--transition);
}
.service-card:hover .service-num { color: rgba(201,168,76,0.4); }

.service-card h3 {
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
  font-family: var(--font-display);
}
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   RISCOS
============================================================ */
.riscos { background: var(--white); }
.riscos .section-title { color: var(--navy); }
.riscos .section-eyebrow { color: #B22222; }

.riscos-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.riscos-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.riscos-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2A2A2A;
  font-size: 1rem;
}
.riscos-list li::before {
  content: '✕';
  color: #B22222;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.riscos-apoio {
  font-style: italic;
  color: #555;
  border-left: 3px solid var(--gold-dark);
  padding-left: 16px;
  margin-top: 24px;
  font-size: 0.95rem;
}

.riscos-cta-box {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.alerta-icon { color: #E8C248; margin-bottom: 20px; }
.riscos-cta-box h3 { font-size: 1.5rem; color: var(--white); margin-bottom: 12px; }
.riscos-cta-box p { color: var(--text-muted); margin-bottom: 28px; font-size: 0.95rem; }

/* ============================================================
   PROCESSO
============================================================ */
.processo-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}

.processo-step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding-bottom: 40px;
  position: relative;
}
.processo-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.step-marker {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-mid);
  z-index: 1;
}
.step-marker span {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
}

.step-content h3 { font-size: 1.1rem; color: var(--white); margin-bottom: 8px; }
.step-content p { color: var(--text-muted); font-size: 0.95rem; }

/* ============================================================
   AUTORIDADE
============================================================ */
.autoridade { background: var(--gold-dark); }

.autoridade-inner {
  display: flex;
  justify-content: center;
}
.autoridade-quote {
  max-width: 780px;
  text-align: center;
}
.quote-mark {
  font-family: var(--font-display);
  font-size: 8rem;
  line-height: 0.5;
  color: rgba(13,27,42,0.25);
  margin-bottom: 24px;
}
blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 32px;
}
.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.quote-author strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); }
.quote-author span { font-size: 0.85rem; color: rgba(13,27,42,0.7); letter-spacing: 0.05em; }

/* ============================================================
   CONTATO
============================================================ */
.contact-section { text-align: center; }
.contact-section .section-title { margin-bottom: 12px; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 56px;
  text-align: left;
}

.contact-form-wrap, .contact-info {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.contact-form-wrap h3, .contact-info h3 {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group textarea { resize: vertical; }

.form-status {
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 24px;
}
.form-status.success { color: #4CAF50; }
.form-status.error { color: #f44336; }

/* Itens de contato */
.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.contact-item:hover { padding-left: 4px; }

.contact-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whatsapp-icon { background: rgba(37,211,102,0.15); color: #25D366; }
.email-icon { background: rgba(201,168,76,0.15); color: var(--gold); }
.map-icon { background: rgba(255,255,255,0.08); color: var(--text-muted); }

.contact-detail { display: flex; flex-direction: column; gap: 2px; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.contact-value { font-size: 0.95rem; color: var(--white); font-weight: 500; }

.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.social-links > span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.social-icons { display: flex; gap: 8px; }
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--gold); color: var(--gold); }

.cta-wp-box { padding-top: 24px; }
.cta-wp-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }

/* ============================================================
   RODAPÉ
============================================================ */
.footer {
  background: #080F18;
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

.footer-logo { margin-bottom: 16px; }
.footer-logo .logo-hercio { font-size: 2rem; }
.footer-tagline { color: var(--text-muted); font-style: italic; margin-bottom: 12px; max-width: 320px; font-size: 0.95rem; }
.footer-name { font-size: 0.8rem; color: rgba(255,255,255,0.3); }

.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-links h4, .footer-contact h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--gold); margin-bottom: 8px;
}
.footer-links a, .footer-link-item {
  font-size: 0.9rem; color: var(--text-muted);
  transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.admin-link { font-size: 1rem; color: rgba(255,255,255,0.1); transition: color var(--transition); }
.admin-link:hover { color: var(--gold); }

/* ============================================================
   FLOATING WHATSAPP
============================================================ */
.floating-wp {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: pulse 2.5s ease-in-out infinite;
}
.floating-wp:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
  animation: none;
}

/* ============================================================
   ANIMAÇÕES
============================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   IMAGENS PLACEHOLDER (quando não há imagem real)
============================================================ */
.hero-img:not([src]), .hero-img[src=""] { filter: none; background: var(--navy-light); }
img:not([src]), img[src=""] {
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  min-height: 200px;
}

/* ============================================================
   RESPONSIVO
============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(13,27,42,0.99);
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
  .nav-links.open + .nav-cta { display: block; }

  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .stats-inner { gap: 24px 40px; }
  .stat-divider { display: none; }

  .diferencial-layout,
  .patentes-layout,
  .riscos-layout,
  .contact-layout { grid-template-columns: 1fr; }

  .diferencial-photo { order: -1; }
  .patentes-visual { order: -1; }

  .cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .floating-wp { bottom: 16px; right: 16px; width: 52px; height: 52px; }

  .section { padding: 64px 0; }

  .riscos-cta-box { position: static; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .contact-form-wrap, .contact-info { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
