/*
Theme Name: Marcelo Primo Soluções de TI
Theme URI: https://marceloprimo.com.br/
Author: Marcelo Primo
Description: Tema estático (landing page) para TI gerenciada — convertido do site marcelo-primo-site.
Version: 1.0.0
Text Domain: marcelo-primo
*/

/* ==========================================================================
   Marcelo Primo Soluções de TI — versão escura ("Sala de guerra")
   ========================================================================== */

:root {
  --bg: #0e0d13;
  --bg-alt: #12111a;
  --purple: #4c2ee0;
  --purple-hover: #3a1fc0;
  --purple-text: #8a7cff; /* variante clara p/ texto pequeno sobre fundo escuro (WCAG AA) */
  --green: #7dfcb1;

  --text: #e9e8ef;
  --text-loud: #cfcddb;
  --text-body: #c3c1d0;
  --text-muted: #b4b1c4;
  --text-muteder: #a9a7b8;
  --text-dim: #9d9ab0;
  --text-dimmer: #8f8ba8;
  --text-faint: #7c798f;
  --text-label: #6b6862;

  --border-soft: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.12);
  --border-stronger: rgba(255, 255, 255, 0.14);
  --border-dashed: rgba(255, 255, 255, 0.2);

  --font-sans: "Archivo", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --container-max: 1280px;
  --gutter: 56px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--purple);
  text-decoration: none;
}

h1, h2, h3, p, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.eyebrow__rule {
  width: 26px;
  height: 1px;
  background: var(--purple);
  flex-shrink: 0;
}

.eyebrow--plain {
  gap: 0;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  padding: 17px 30px;
  transition: background-color 0.15s ease;
}

.btn--primary {
  background: var(--purple);
  color: #fff;
}

.btn--primary:hover {
  background: var(--purple-hover);
  color: #fff;
}

.btn--pill {
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
}

.btn--cta {
  background: #fff;
  color: #2a1a7a;
  padding: 20px 34px;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 8px;
}

.btn--cta:hover {
  color: var(--purple-hover);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(125, 252, 177, 0.18);
  flex-shrink: 0;
}

/* Nav
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14, 13, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}

.nav__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 22px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  height: 30px;
  width: auto;
  filter: invert(1) hue-rotate(180deg) brightness(1.6);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muteder);
}

.nav__links > a:not(.btn) {
  color: var(--text-muteder);
}

.nav__links > a:not(.btn):hover {
  color: var(--text);
}

/* Hero
   ========================================================================== */

.hero {
  padding: 88px var(--gutter) 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: end;
  background: radial-gradient(1100px 500px at 12% -10%, rgba(76, 46, 224, 0.28), transparent 70%);
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.hero h1 {
  font-size: 66px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero .lede {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.hero__cta-note {
  font-size: 14px;
  color: var(--text-dimmer);
  line-height: 1.5;
}

.hero__media {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.photo-placeholder {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 10px, transparent 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}

.photo-placeholder--4-3 {
  aspect-ratio: 4 / 3;
}

.photo-placeholder--3-4 {
  aspect-ratio: 3 / 4;
}

.photo-placeholder span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.photo-placeholder--filled {
  background-image: none;
  padding: 0;
  overflow: hidden;
}

.photo-placeholder--filled img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-wrap {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box {
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 18px;
}

.stat-box__value {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-box__label {
  font-size: 13px;
  color: var(--text-dimmer);
  line-height: 1.4;
}

/* Faixa de risco
   ========================================================================== */

.risks {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.risks__inner {
  padding: 44px var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 44px;
}

.risk {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.risk__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--purple-text);
  letter-spacing: 0.1em;
}

.risk__title {
  font-size: 17px;
  font-weight: 600;
}

.risk p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Seções genéricas
   ========================================================================== */

.section__head {
  padding: 80px var(--gutter) 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section__head h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  max-width: 820px;
  line-height: 1.1;
}

.section__intro {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muteder);
}

/* Serviços
   ========================================================================== */

.service-list {
  padding: 36px var(--gutter) 80px;
  display: flex;
  flex-direction: column;
}

.service {
  display: grid;
  grid-template-columns: 56px 1fr 1fr 1fr;
  gap: 36px;
  padding: 38px 0;
  border-top: 1px solid var(--border);
}

.service--last {
  border-bottom: 1px solid var(--border);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--purple-text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.service__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--purple);
  flex-shrink: 0;
}

.service__icon svg {
  width: 20px;
  height: 20px;
}

.service__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service h3 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service__col p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

.service__col:nth-child(2) strong {
  color: var(--text-loud);
  font-weight: 600;
}

.service__col:nth-child(3) p {
  color: var(--text-body);
}

.service__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dimmer);
}

.service__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.5;
}

.service__list li::before {
  content: "— ";
}

/* Como funciona
   ========================================================================== */

.how {
  background: var(--bg-alt);
}

.how__inner {
  padding: 78px var(--gutter);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}

.how__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.how__intro h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.how__intro p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muteder);
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 22px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--purple-text);
}

.step__title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* Sobre
   ========================================================================== */

.about {
  padding: 78px var(--gutter);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.about__text h2 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.about__text > p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 620px;
}

.about__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 8px;
}

.fact {
  border-top: 1px solid var(--border-stronger);
  padding-top: 14px;
}

.fact__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.fact__desc {
  font-size: 14px;
  color: var(--text-dimmer);
  line-height: 1.45;
}

/* Certificações
   ========================================================================== */

.certifications {
  padding: 0 var(--gutter) 78px;
}

.certifications__card {
  border: 1px dashed var(--border-dashed);
  border-radius: 10px;
  padding: 44px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.certifications__text {
  font-size: 18px;
  line-height: 1.5;
  color: #8b899c;
  max-width: 480px;
}

/* CTA
   ========================================================================== */

.cta {
  background: var(--purple);
}

.cta__inner {
  padding: 80px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.cta__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 660px;
}

.cta__text h2 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
}

.cta__text p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

/* Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border-soft);
}

.footer__inner {
  padding: 44px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-faint);
}

.footer__logo {
  height: 24px;
  width: auto;
  filter: invert(1) brightness(1.4);
  opacity: 0.75;
}

.footer__links {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
}

.footer__links a {
  color: var(--text-muteder);
}

.footer__links a:hover {
  color: var(--text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  :root {
    --gutter: 32px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .section__head h2,
  .cta__text h2 {
    font-size: 36px;
  }
}

@media (max-width: 900px) {
  .nav__links {
    gap: 18px;
    font-size: 13px;
  }

  .nav__links span {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .service {
    grid-template-columns: 1fr;
    gap: 16px;
  }

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

  .about {
    grid-template-columns: 1fr;
  }

  .about__facts {
    grid-template-columns: 1fr;
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 20px;
  }

  .nav__inner {
    padding: 16px var(--gutter);
  }

  .nav__links {
    gap: 12px;
  }

  .nav__links a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero .lede {
    font-size: 16px;
  }

  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .section__head h2 {
    font-size: 28px;
  }

  .cta__text h2 {
    font-size: 30px;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Blog: post single
   ========================================================================== */

.post-single__back {
  padding: 40px 0 0;
  font-size: 14px;
  color: var(--text-dim);
}

.post-single__back a {
  color: var(--text-dim);
}

.post-single__back a:hover {
  color: var(--purple-text);
}

.post-single__header {
  padding: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

.post-single__header h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.post-single__media {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 40px;
}

.post-single__media img {
  width: 100%;
  height: auto;
  display: block;
}

.post-single__content {
  max-width: 760px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.post-single__content p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-body);
}

.post-single__content h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 12px;
  color: var(--text-loud);
}

/* Blog: listing (/blog/)
   ========================================================================== */

.blog-hero {
  padding: 80px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}

.blog-hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.blog-hero .lede {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.blog-list {
  padding-bottom: 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
}

.blog-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-alt);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-card__body h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-card__body h2 a {
  color: var(--text);
}

.blog-card__body h2 a:hover {
  color: var(--purple-text);
}

.blog-card__body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.blog-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--purple-text);
}

.blog-pagination {
  padding-top: 40px;
  display: flex;
  gap: 24px;
}

.blog-pagination a,
.blog-pagination span {
  font-size: 14px;
  color: var(--text-dim);
}

.blog-pagination a:hover {
  color: var(--purple-text);
}

.blog-pagination .page-numbers.current {
  color: var(--purple-text);
  font-weight: 700;
}
