/*
Theme Name: COR360 Blog
Theme URI: https://cor360.com.br
Author: COR360
Author URI: https://cor360.com.br
Description: Tema editorial personalizado para o blog de marketing do COR360.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.1
Text Domain: cor360
*/

:root {
  --bg: #020b1f;
  --surface: #071329;
  --surface-2: #0b1933;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.62);
  --soft: rgba(245, 247, 251, 0.38);
  --brand: #009dff;
  --brand-dark: #006cff;
  --success: #21d07a;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 20, 60, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(0, 157, 255, 0.16), transparent 35rem),
    linear-gradient(180deg, #020b1f 0%, #030816 100%);
  color: var(--text);
  font-family: Inter, Montserrat, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgba(2, 11, 31, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 10px 30px rgba(0, 157, 255, 0.28);
}

.brand-text {
  font-size: 20px;
}

.brand-text span {
  color: var(--brand);
}

.menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: rgba(0, 157, 255, 0.2);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: white;
}

.btn-muted {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}

.hero {
  padding: 84px 0 54px;
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: end;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  background: rgba(0, 157, 255, 0.1);
  border: 1px solid rgba(0, 157, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-panel {
  border: 1px solid rgba(0, 157, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(0, 157, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(7, 19, 41, 0.72);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.hero-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-panel li {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--success);
}

.main {
  padding: 46px 0 72px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.section-head p {
  max-width: 460px;
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 157, 255, 0.26);
  background: rgba(255, 255, 255, 0.052);
}

.post-thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 108, 255, 0.26), rgba(0, 157, 255, 0.1)),
    var(--surface-2);
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-body {
  flex: 1;
  padding: 20px;
}

.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.post-card h2,
.post-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.22;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.read-more {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 850;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 34px;
  align-items: start;
}

.content-layout .post-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  padding: min(6vw, 54px);
}

.article h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
}

.article-content {
  color: rgba(245, 247, 251, 0.82);
  font-size: 18px;
}

.article-content h2,
.article-content h3 {
  color: var(--text);
  margin-top: 34px;
  line-height: 1.18;
}

.article-content a {
  color: var(--brand);
  font-weight: 750;
}

.article-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--brand);
  background: rgba(0, 157, 255, 0.08);
  border-radius: 0 14px 14px 0;
}

.sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.widget {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  padding: 20px;
}

.widget-cta {
  border-color: rgba(0, 157, 255, 0.22);
  background:
    linear-gradient(155deg, rgba(0, 157, 255, 0.14), rgba(255, 255, 255, 0.035)),
    rgba(7, 19, 41, 0.82);
  box-shadow: 0 18px 48px rgba(0, 20, 60, 0.24);
}

.widget h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.widget-cta h3 {
  margin-top: 12px;
  font-size: 22px;
  line-height: 1.12;
}

.widget-cta p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.widget ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.widget li + li {
  margin-top: 8px;
}

.category-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-list li + li {
  margin-top: 0;
}

.category-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.category-list a:hover {
  border-color: rgba(0, 157, 255, 0.22);
  background: rgba(0, 157, 255, 0.08);
  color: var(--text);
}

.category-list strong {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 157, 255, 0.12);
  color: var(--brand);
  font-size: 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.pagination .page-numbers {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
}

.pagination .current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--soft);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.empty-state {
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
}

@media (max-width: 900px) {
  .hero-grid,
  .content-layout {
    grid-template-columns: 1fr;
  }

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

  .content-layout .post-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .menu,
  .header-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-panel {
    padding: 20px;
  }

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

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

  .content-layout .post-grid {
    grid-template-columns: 1fr;
  }
}
