/* ============================================
   GrowthDesk — CRM / Sales / Marketing Blog
   Design tokens
   ============================================ */
:root {
  --navy: #0F1B2D;
  --blue: #2557D6;
  --blue-dark: #1A3FA0;
  --sky: #EEF3FC;
  --ink: #1C2530;
  --slate: #5B6B7C;
  --green: #1FAA59;
  --white: #FFFFFF;
  --border: #E3E8F0;
  --purple: #7C4DFF;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 12px;
  --max-width: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy);
  color: #C9D4E3;
  font-size: 13px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
}
.topbar-socials { display: flex; gap: 14px; }
.topbar-socials a {
  color: #C9D4E3;
  display: flex;
  width: 28px; height: 28px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .15s, color .15s;
}
.topbar-socials a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Header / nav ---------- */
header.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 50;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-text .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  color: var(--navy);
  line-height: 1.1;
}
.brand-text .brand-tag {
  font-size: 12px;
  color: var(--slate);
  letter-spacing: .02em;
}
nav.main-nav {
  display: flex;
  gap: 32px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
nav.main-nav a { position: relative; padding: 6px 0; }
nav.main-nav a.active { color: var(--blue); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
nav.main-nav a:hover { color: var(--blue); }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 8px 20px rgba(37,87,214,.28); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, #E5EDFB 100%);
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: 17px;
  color: var(--slate);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; }

.hero-art { position: relative; }
.hero-art .float-card {
  position: absolute;
  left: -18px;
  bottom: -22px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15,27,45,.14);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.float-card .check {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.float-card .amount { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--navy); }
.float-card .up { color: var(--green); font-weight: 700; }

/* ---------- Section headers ---------- */
.section { padding: 76px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}
.section-head h2 { font-size: 30px; }
.section-head .view-all { font-weight: 700; color: var(--blue); font-size: 14px; white-space: nowrap; }
.section-head .view-all:hover { text-decoration: underline; }

/* ---------- Article cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15,27,45,.10); }
.card-thumb { aspect-ratio: 4/3; width: 100%; background: var(--sky); }
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 5px 10px;
  border-radius: 6px;
  color: #fff;
}
.tag.crm { background: var(--blue); }
.tag.sales { background: var(--navy); }
.tag.marketing { background: var(--purple); }
.card h3 { font-size: 18px; }
.card p.excerpt { color: var(--slate); font-size: 14px; flex: 1; }
.card .meta { font-size: 12.5px; color: var(--slate); display: flex; gap: 8px; align-items: center; }
.card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--slate); }

/* ---------- Ad slots ---------- */
.ad-slot {
  border: 1.5px dashed #C7D2E3;
  border-radius: var(--radius);
  background: #FAFBFE;
  color: var(--slate);
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ad-leaderboard { max-width: var(--max-width); margin: 0 auto; height: 100px; }
.ad-square { height: 250px; }
.ad-label { position: relative; }
.ad-label::before {
  content: 'ADVERTISEMENT';
  font-size: 10px;
  letter-spacing: .08em;
  font-weight: 700;
  color: #A9B5C6;
}

/* ---------- Categories strip ---------- */
.categories-strip { background: var(--navy); }
.cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 40px 0;
}
.cat-pills a {
  color: #DCE4F2;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.cat-pills a:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--sky);
  border-radius: 20px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter h2 { font-size: 26px; margin-bottom: 10px; }
.newsletter p { color: var(--slate); font-size: 14px; }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: var(--font-body);
}
.newsletter-form input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---------- Layout with sidebar (article pages / listing) ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.sidebar { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 28px; }
.sidebar-box {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.sidebar-box h4 { font-size: 15px; margin-bottom: 14px; }
.sidebar-box .aff-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
}
.sidebar-box .aff-item:first-of-type { border-top: none; padding-top: 0; }
.sidebar-box .aff-thumb {
  width: 48px; height: 48px;
  border-radius: 8px;
  background: var(--sky);
  flex-shrink: 0;
}
.sidebar-box .aff-item a { font-weight: 700; color: var(--blue); }
.disclosure-note {
  font-size: 12px;
  color: var(--slate);
  background: #FFF8E9;
  border: 1px solid #F0E2B8;
  border-radius: 8px;
  padding: 10px 12px;
}

/* ---------- Article body ---------- */
.article-hero-img { border-radius: 16px; overflow: hidden; margin-bottom: 28px; }
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--slate);
  font-size: 14px;
  margin: 18px 0 8px;
}
.article-title { font-size: 38px; margin-bottom: 6px; }
.article-body h2 { font-size: 26px; margin: 40px 0 14px; }
.article-body h3 { font-size: 20px; margin: 28px 0 10px; }
.article-body p { margin-bottom: 18px; color: #33414F; font-size: 16.5px; }
.article-body ul, .article-body ol { margin: 0 0 18px 22px; color: #33414F; font-size: 16.5px; }
.article-body li { margin-bottom: 8px; }
.article-body blockquote {
  border-left: 4px solid var(--blue);
  background: var(--sky);
  padding: 18px 24px;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--navy);
  margin: 30px 0;
}
.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin: 40px 0;
}
.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy); color: #B6C2D4; padding: 64px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-grid ul a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 13px;
  color: #8494AC;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .newsletter { grid-template-columns: 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  nav.main-nav { display: none; }
  .menu-toggle { display: flex; }
  .hero h1 { font-size: 36px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 28px; }
}
