/*
Theme Name: N1 Red
Theme URI: https://n1soluciones.com
Author: N1 Soluciones
Description: Tema WordPress baseado no layout do site N1 Soluciones (paleta vermelha).
Version: 1.0
Text Domain: n1-red
*/

:root {
  --n1-bg: #121212;
  --n1-fg: #fafafa;
  --n1-primary: #d30000;
  --n1-muted: #b0b0b0;
  --n1-border: rgba(255,255,255,0.12);
  --n1-card: rgba(255,255,255,0.05);
  --n1-font: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; padding: 0; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--n1-bg);
  color: var(--n1-fg);
  font-family: var(--n1-font);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.n1-kit { color: var(--n1-fg); }
.n1-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.n1-section { padding: 80px 0; }
.n1-section--alt { background: rgba(255,255,255,0.04); border-top: 1px solid var(--n1-border); border-bottom: 1px solid var(--n1-border); }
.n1-center { text-align: center; }
.n1-left { text-align: left; }
.n1-title { font-size: 40px; line-height: 1.1; margin: 0 0 16px; }
.n1-subtitle { font-size: 18px; color: var(--n1-muted); margin: 0; }
.n1-text-primary { color: var(--n1-primary); }

.n1-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; text-decoration: none; transition: all .2s ease;
}
.n1-btn--primary { background: var(--n1-primary); color: #fff; }
.n1-btn--primary:hover { opacity: .9; }
.n1-btn--outline { border-color: var(--n1-primary); color: #fff; background: transparent; }
.n1-btn--outline:hover { background: var(--n1-primary); }
.n1-btn--white { background: #fff; color: var(--n1-primary); }
.n1-btn--white:hover { opacity: .9; }

.n1-card {
  background: var(--n1-card);
  border: 1px solid var(--n1-border);
  border-radius: 16px;
  padding: 24px;
}

.n1-grid-1 { display: grid; gap: 10px; }
.n1-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.n1-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.n1-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.n1-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }

.n1-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(211,0,0,0.3); padding: 6px 12px; border-radius: 999px; font-size: 12px; color: var(--n1-primary); margin-bottom: 20px; }
.n1-badge__dot { width: 8px; height: 8px; background: var(--n1-primary); border-radius: 50%; box-shadow: 0 0 8px var(--n1-primary); }

/* Header */
.n1-header {
  position: sticky; top: 0; z-index: 999;
  background: rgba(18,18,18,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--n1-border);
}
.n1-header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.n1-logo img { height: 40px; display: block; }
.n1-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.n1-nav__list { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.n1-nav__list li { margin: 0; padding: 0; }
.n1-nav__link { color: rgba(255,255,255,0.7); }
.n1-nav__link:hover { color: #fff; }
.n1-nav__link--primary { color: var(--n1-primary); font-weight: 700; }
.n1-burger { display: none; background: none; border: 0; gap: 5px; }
.n1-burger span { display: block; width: 22px; height: 2px; background: #fff; }
.n1-mobile-menu { display: none; flex-direction: column; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--n1-border); }
.n1-mobile-menu a { color: #fff; }
.n1-header.n1-is-open .n1-mobile-menu { display: flex; }

/* Hero */
.n1-hero, .n1-hero-simple {
  position: relative; padding: 120px 0 80px; overflow: hidden;
  background: radial-gradient(circle at top, rgba(18,18,18,0.8), #121212);
}
.n1-hero__bg {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 400px; background: rgba(211,0,0,0.2);
  filter: blur(120px); border-radius: 50%;
}
.n1-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.n1-hero__actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.n1-hero__stats { position: relative; }
.n1-hero__label { position: absolute; top: -14px; right: -14px; background: var(--n1-primary); color: #fff; font-size: 11px; font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.n1-hero__stat { padding: 16px 0; border-top: 1px solid var(--n1-border); }
.n1-hero__stat:first-of-type { border-top: none; }
.n1-hero__stat-value { font-size: 32px; font-weight: 800; color: #36d273; }
.n1-hero__stat-text { font-size: 13px; color: var(--n1-muted); }

/* Lightbox */
.n1-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,0.85); display: none; align-items: center; justify-content: center; z-index: 9999; }
.n1-lightbox__img { max-width: 90vw; max-height: 85vh; border-radius: 12px; }
.n1-lightbox__close { position: absolute; top: 20px; right: 20px; background: none; border: 0; color: #fff; font-size: 24px; }
.n1-lightbox.n1-is-open { display: flex; }

/* CTA */
.n1-cta { background: var(--n1-primary); color: #fff; padding: 96px 0; }
.n1-cta .n1-subtitle { color: rgba(255,255,255,0.9); }
.n1-cta-dark { background: rgba(211,0,0,0.9); color: #000; padding: 96px 0; }
.n1-cta-dark .n1-subtitle { color: rgba(0,0,0,0.7); }

/* Services */
.n1-service-card {
  display: block; color: inherit; text-decoration: none;
  background: var(--n1-card); border: 1px solid var(--n1-border);
  border-radius: 16px; padding: 28px; transition: all .2s ease; height: 100%;
}
.n1-service-card:hover { border-color: var(--n1-primary); transform: translateY(-4px); }
.n1-service-card__icon { font-size: 28px; margin-bottom: 12px; color: var(--n1-primary); }
.n1-service-card p { color: var(--n1-muted); font-size: 14px; }
.n1-service-card span { display: inline-block; margin-top: 10px; color: var(--n1-primary); font-weight: 600; font-size: 13px; }

/* Methodology */
.n1-step { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 12px; }
.n1-step__head { display: flex; align-items: center; gap: 12px; }
.n1-step__icon { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(211,0,0,0.1); border-radius: 10px; color: var(--n1-primary); }
.n1-step p { color: var(--n1-muted); font-size: 14px; }
.n1-step ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--n1-muted); font-size: 13px; }
.n1-step ul li:before { content: "→"; color: var(--n1-primary); margin-right: 6px; }

/* Contact */
.n1-contact-list { margin-top: 24px; display: grid; gap: 16px; }
.n1-contact-list span { color: var(--n1-muted); font-size: 14px; }

/* Audit */
.n1-audit__progress { color: var(--n1-primary); font-weight: 700; margin-bottom: 20px; letter-spacing: 2px; }
.n1-audit__question { font-size: 28px; margin-bottom: 24px; text-transform: uppercase; }
.n1-audit__body input, .n1-audit__body textarea {
  width: 100%; padding: 12px; border-radius: 8px;
  border: 1px solid var(--n1-border); background: transparent; color: #fff;
}
.n1-audit__step { display: none; }
.n1-audit__step.is-active { display: block; }
.n1-audit__actions { margin-top: 24px; }

/* Calculator */
.n1-result { display: flex; justify-content: space-between; border-bottom: 1px solid var(--n1-border); padding: 10px 0; }
.n1-result strong { color: var(--n1-primary); }

/* Footer */
.n1-footer { background: #0f0f0f; border-top: 1px solid var(--n1-border); padding: 64px 0 32px; }
.n1-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.n1-footer h3 { color: var(--n1-primary); margin: 0 0 12px; }
.n1-footer h4 { margin: 0 0 12px; }
.n1-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.n1-footer a { color: var(--n1-muted); }
.n1-footer a:hover { color: #fff; }
.n1-footer__bottom { text-align: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--n1-border); color: var(--n1-muted); }

/* Forms */
.n1-form label { display: block; margin: 12px 0 6px; }
.n1-form input, .n1-form textarea {
  width: 100%; padding: 10px; border-radius: 8px;
  border: 1px solid var(--n1-border); background: transparent; color: #fff;
}

@media (max-width: 1024px) {
  .n1-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .n1-grid-5 { grid-template-columns: repeat(2, 1fr); }
  .n1-hero__grid { grid-template-columns: 1fr; }
  .n1-title { font-size: 34px; }
  .n1-nav { display: none; }
  .n1-burger { display: flex; flex-direction: column; }
}
@media (max-width: 767px) {
  .n1-section { padding: 64px 0; }
  .n1-grid-2, .n1-grid-3, .n1-grid-4, .n1-grid-5 { grid-template-columns: 1fr; }
  .n1-title { font-size: 28px; }
}
    margin-bottom: 4rem;
    color: var(--foreground);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
}

/* WordPress Admin Bar Fix */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}
