/* ND7 Marketing Digital — Stylesheet Principal */
/* ================================================ */

:root {
  --primary:       #E60000;
  --primary-dark:  #B30000;
  --secondary:     #333333;
  --accent:        #555555;
  --dark:          #000000;
  --light:         #F8F9FA;
  --white:         #FFFFFF;
  --gray-100:      #F1F3F5;
  --gray-200:      #E9ECEF;
  --gray-500:      #6C757D;
  --gray-700:      #495057;
  --gray-900:      #212529;
  --success:       #28A745;
  --danger:        #DC3545;
  --warning:       #FFC107;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-heading:  'Poppins', 'Inter', sans-serif;
  --radius:        8px;
  --radius-lg:     16px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.16);
  --transition:    .25s ease;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--secondary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
p  { margin-bottom: 1rem; }

/* Container */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; }

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--secondary);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--white) !important;
}
.logo span { color: var(--primary); }
.logo img { height: 36px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav a {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: .5rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.nav-cta:hover { background: var(--primary-dark) !important; color: var(--white) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: var(--transition);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 60%, var(--dark) 100%);
  color: var(--white);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(230,0,0,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 650px; }
.hero-badge {
  display: inline-block;
  background: rgba(230,0,0,.15);
  color: var(--primary);
  border: 1px solid rgba(230,0,0,.3);
  padding: .35rem 1rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero h1 { color: var(--white); margin-bottom: 1.25rem; }
.hero h1 em { color: var(--primary); font-style: normal; }
.hero p { font-size: 1.15rem; opacity: .88; margin-bottom: 2rem; max-width: 520px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,0,0,.4);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.btn-dark {
  background: var(--secondary);
  color: var(--white);
}
.btn-dark:hover { background: var(--dark); color: var(--white); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .45rem 1.1rem; font-size: .85rem; }
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #1fba58; color: var(--white); }

/* ── SECTIONS ── */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-dark { background: var(--secondary); color: var(--white); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-gray { background: var(--gray-100); }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; max-width: 560px; margin: .75rem auto 0; }
.section-tag {
  display: inline-block;
  color: var(--primary);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-body { padding: 1.75rem; }
.card-img { width: 100%; height: 220px; object-fit: cover; }

/* ── GRID ── */
.grid { display: grid; gap: 2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── SERVICES ── */
.service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius);
  background: rgba(230,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.service-card p { color: var(--gray-500); font-size: .95rem; margin: 0; }

/* ── STATS ── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; }
.stat-item { text-align: center; }
.stat-number { font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { color: rgba(255,255,255,.75); font-size: .9rem; margin-top: .35rem; }

/* ── CASES ── */
.case-card { position: relative; }
.case-card .case-result {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: .3rem .75rem;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 700;
}

/* ── BLOG ── */
.post-meta { font-size: .875rem; color: var(--gray-500); display: flex; gap: 1rem; align-items: center; margin-bottom: .75rem; }
.post-meta time { display: flex; align-items: center; gap: .35rem; }
.post-category {
  display: inline-block;
  background: rgba(230,0,0,.1);
  color: var(--primary);
  padding: .2rem .6rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}
.post-title { font-size: 1.15rem; margin-bottom: .5rem; color: var(--secondary); }
.post-title a { color: inherit; }
.post-title a:hover { color: var(--primary); }
.post-excerpt { color: var(--gray-500); font-size: .9rem; }
.read-more { font-size: .875rem; font-weight: 600; color: var(--primary); display: inline-flex; align-items: center; gap: .3rem; margin-top: .75rem; }
.read-more:hover { gap: .6rem; }

/* Post único */
.post-hero-img { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 2.5rem; }
.post-content { font-size: 1.075rem; line-height: 1.85; }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content li { margin-bottom: .5rem; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  background: var(--gray-100);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  margin: 1.5rem 0;
}
.post-content img { border-radius: var(--radius); margin: 1.5rem 0; }
.post-content code {
  background: var(--gray-100);
  padding: .1em .4em;
  border-radius: 4px;
  font-size: .9em;
}

/* Paginação */
.pagination { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: 3rem; }
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 500;
  transition: all var(--transition);
}
.page-link:hover, .page-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

/* ── COMMENTS ── */
.comment-form-wrap { background: var(--gray-100); border-radius: var(--radius-lg); padding: 2rem; }
.comment-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-200);
}
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.comment-author { font-weight: 600; font-size: .95rem; }
.comment-date { color: var(--gray-500); font-size: .8rem; }
.comment-text { margin-top: .35rem; font-size: .95rem; }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--gray-700); }
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  color: var(--gray-900);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,0,0,.15);
}
textarea.form-control { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1.25em; padding-right: 2.5rem; }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: .95rem;
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.alert-success { background: #D4EDDA; color: #155724; border: 1px solid #C3E6CB; }
.alert-danger  { background: #F8D7DA; color: #721C24; border: 1px solid #F5C6CB; }
.alert-warning { background: #FFF3CD; color: #856404; border: 1px solid #FFEAA7; }
.alert-info    { background: #D1ECF1; color: #0C5460; border: 1px solid #BEE5EB; }

/* ── CONTACT ── */
.contact-info-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(230,0,0,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-info-label { font-weight: 600; font-size: .85rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .05em; }
.contact-info-value { font-weight: 600; color: var(--secondary); margin-top: .15rem; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}
.cta-section h2 { color: var(--white); margin-bottom: 1rem; }
.cta-section p { opacity: .9; font-size: 1.1rem; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── FOOTER ── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.7); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { margin-bottom: 1rem; font-size: 1.2rem; }
.footer-desc { font-size: .9rem; line-height: 1.7; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-heading { font-family: var(--font-heading); font-weight: 700; color: var(--white); margin-bottom: 1.25rem; font-size: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom { padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; font-size: .85rem; flex-wrap: wrap; gap: .5rem; }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--primary); }

/* ── BREADCRUMB ── */
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gray-500); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--gray-900); }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 100%);
  padding: 4rem 0 3rem;
  color: var(--white);
}
.page-hero h1 { color: var(--white); margin-bottom: .75rem; }
.page-hero p { opacity: .85; font-size: 1.1rem; max-width: 560px; }

/* ── UTILITY ── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.fw-bold { font-weight: 700; }
.d-flex { display: flex; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-primary { background: rgba(230,0,0,.15); color: var(--primary); }
.badge-success { background: rgba(40,167,69,.15); color: var(--success); }
.badge-danger  { background: rgba(220,53,69,.15);  color: var(--danger); }
.badge-warning { background: rgba(255,193,7,.2);   color: #856404; }
.badge-gray    { background: var(--gray-200);       color: var(--gray-700); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0 3rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 3.5rem 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .pagination { gap: .25rem; }
  .page-link { width: 36px; height: 36px; }
}
