/* ================================
   CRM Today — Stylesheet
   ================================ */

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

:root {
  --slate:     #0d1b2a;
  --slate-mid: #162535;
  --green:     #16a34a;
  --green-dk:  #15803d;
  --amber:     #d97706;
  --blue:      #0369a1;
  --violet:    #7c3aed;
  --teal:      #0891b2;
  --white:     #ffffff;
  --cool-bg:   #f0f4f8;
  --gray-50:   #f8fafc;
  --gray-100:  #e2e8f0;
  --gray-200:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-600:  #64748b;
  --text:      #1a202c;
  --border:    #e2e8f0;
  --radius:    3px;
  --font-sans: 'DM Sans', system-ui, sans-serif;
  --font-serif:'DM Serif Display', Georgia, serif;
  --max-w:     1200px;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── HEADER ── */
.site-header {
  background: var(--slate);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.header-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.logo-wrap { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.025em;
}
.logo .logo-today { color: var(--green); }
.logo-tag { font-size: .6rem; color: rgba(255,255,255,.32); letter-spacing: .1em; text-transform: uppercase; margin-top: .2rem; }
.main-nav {
  display: flex;
  gap: .15rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  color: rgba(255,255,255,.72);
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .75rem;
  border-radius: var(--radius);
  letter-spacing: .01em;
  transition: background .15s, color .15s;
}
.main-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: auto;
  padding: .3rem .5rem;
}

/* Ticker */
.header-ticker {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .42rem 0;
  overflow: hidden;
  font-size: .74rem;
}
.ticker-label {
  color: var(--white);
  background: var(--green);
  font-weight: 700;
  letter-spacing: .1em;
  white-space: nowrap;
  font-size: .62rem;
  padding: .18rem .5rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.ticker-track {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
}
.ticker-item { color: rgba(255,255,255,.48); white-space: nowrap; transition: color .15s; }
.ticker-item:hover { color: rgba(255,255,255,.85); }
.ticker-sep { color: rgba(255,255,255,.2); }

/* ── HERO ── */
.hero-section {
  background: linear-gradient(160deg, var(--slate) 0%, #1a2e42 100%);
  border-top: 3px solid var(--green);
  padding: 2.75rem 0 3rem;
}
.hero-dateline {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .7rem;
  font-weight: 500;
  color: rgba(255,255,255,.38);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dateline-badge {
  background: var(--green);
  color: var(--white);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .2rem .55rem;
  border-radius: 2px;
  flex-shrink: 0;
}
.hero-cat-tag {
  display: inline-block;
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .9rem;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.1rem;
  max-width: 780px;
}
.hero-sub {
  color: rgba(255,255,255,.62);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 620px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: .87rem;
  padding: .65rem 1.35rem;
  border-radius: var(--radius);
  transition: background .15s;
  flex-shrink: 0;
}
.hero-btn:hover { background: var(--green-dk); }
.hero-byline { font-size: .77rem; color: rgba(255,255,255,.35); }

/* Hero secondary stories strip */
.hero-secondary {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-secondary-label {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.28);
  text-transform: uppercase;
  white-space: nowrap;
  align-self: center;
  flex-shrink: 0;
}
.hero-secondary-links {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  flex: 1;
}
.hero-sec-item {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .3rem 1.25rem .3rem 0;
  border-right: 1px solid rgba(255,255,255,.1);
  margin-right: 1.25rem;
}
.hero-sec-item:last-child { border-right: none; margin-right: 0; }
.hero-sec-cat {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  flex-shrink: 0;
}
.hero-sec-title {
  font-size: .83rem;
  color: rgba(255,255,255,.6);
  line-height: 1.35;
  transition: color .15s;
}
.hero-sec-item:hover .hero-sec-title { color: var(--white); }

/* ── MAIN ── */
.site-main { padding: 3rem 0 4rem; background: var(--white); }
.section-block { margin-bottom: 3.5rem; }
.section-label {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--gray-400);
  text-transform: uppercase;
  padding-bottom: .7rem;
  border-bottom: 2px solid var(--text);
  margin-bottom: 1.5rem;
}

/* Category badge */
.story-cat {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 2px;
}
.story-cat.cat-reviews    { background: var(--blue); }
.story-cat.cat-comparisons{ background: var(--teal); }
.story-cat.cat-guides     { background: var(--violet); }
.story-cat.cat-industry   { background: var(--amber); }

/* Lead + side layout */
.story-grid-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2.5rem;
  align-items: start;
}
.story-lead {}
.story-img-wrap { position: relative; }
.story-img-wrap .story-cat { position: absolute; top: .75rem; left: .75rem; }
.story-img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--gray-100);
}
.story-img-placeholder {
  width: 100%;
  height: 290px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 50%, #d1fae5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.story-img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 24px,
    rgba(22,163,74,.06) 24px,
    rgba(22,163,74,.06) 25px
  );
}
.story-body { padding-top: 1.2rem; }
.story-title-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.2;
  margin: .5rem 0 .8rem;
}
.story-title-lg a:hover { color: var(--green); }
.story-excerpt {
  color: var(--gray-600);
  font-size: .94rem;
  line-height: 1.7;
  margin-bottom: .9rem;
}
.inline-link { color: var(--green); font-weight: 600; }
.inline-link:hover { text-decoration: underline; }

/* Side stories */
.story-side { display: flex; flex-direction: column; }
.story-card {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.story-card:first-child { padding-top: 0; }
.story-title {
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.35;
  margin: .4rem 0 .4rem;
}
.story-title a:hover { color: var(--green); }
.story-snip { font-size: .83rem; color: var(--gray-600); line-height: 1.55; margin-bottom: .45rem; }
.story-meta { display: flex; gap: 1rem; font-size: .72rem; color: var(--gray-400); }
.story-author { font-weight: 600; color: var(--gray-600); }

/* Category strips */
.cat-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.strip-item {
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.strip-item:last-of-type { border-bottom: none; }
.strip-item h4 { font-size: .9rem; font-weight: 600; line-height: 1.35; margin-top: .35rem; }
.strip-item h4 a:hover { color: var(--green); }
.strip-item .story-meta { margin-top: .3rem; }
.cat-more {
  display: inline-block;
  margin-top: .75rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--green);
}
.cat-more:hover { text-decoration: underline; }

/* Promo block */
.promo-block {
  background: var(--slate);
  border-radius: 4px;
  overflow: hidden;
  border-left: 4px solid var(--green);
}
.promo-inner { padding: 2.5rem 3rem; }
.promo-eyebrow {
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .13em;
  color: var(--green);
  display: block;
  margin-bottom: .75rem;
}
.promo-block h3 {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: .75rem;
}
.promo-block p { color: rgba(255,255,255,.62); font-size: .92rem; line-height: 1.65; margin-bottom: 1.5rem; }
.promo-btn {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: .87rem;
  padding: .6rem 1.3rem;
  border-radius: var(--radius);
  transition: background .15s;
}
.promo-btn:hover { background: var(--green-dk); }

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
}
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: .9rem;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.news-card:nth-child(1),
.news-card:nth-child(2) { border-top: 1px solid var(--border); }
.news-card-img-wrap { position: relative; flex-shrink: 0; }
.news-card-img { width: 120px; height: 78px; object-fit: cover; border-radius: var(--radius); display: block; background: var(--gray-100); }
.news-img-placeholder {
  width: 120px;
  height: 78px;
  border-radius: var(--radius);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-img-wrap .story-cat { position: absolute; top: .3rem; left: .3rem; font-size: .52rem; padding: .12rem .32rem; }
.news-card-body { display: flex; flex-direction: column; }
.news-card h3 { font-size: .88rem; font-weight: 600; line-height: 1.3; margin-bottom: .3rem; }
.news-card h3 a:hover { color: var(--green); }
.news-card .story-meta { margin-top: auto; }

/* ── FOOTER ── */
.site-footer {
  background: var(--slate);
  color: rgba(255,255,255,.62);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 1.5rem;
}
.footer-brand p { font-size: .87rem; line-height: 1.65; margin-top: .75rem; }
.footer-logo {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.02em;
}
.footer-logo .logo-today { color: var(--green); }
.footer-col h5 { color: var(--white); font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .75rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer-col ul a { font-size: .84rem; color: rgba(255,255,255,.52); transition: color .15s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: .76rem;
  color: rgba(255,255,255,.32);
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.disclaimer { font-size: .71rem; color: rgba(255,255,255,.26); line-height: 1.65; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .story-grid-main { grid-template-columns: 1fr; }
  .story-img, .story-img-placeholder { height: 240px; }
  .story-side { border-top: 1px solid var(--border); padding-top: 1.5rem; }
  .cat-strip-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr; gap: 0; }
  .news-card:nth-child(2) { border-top: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-secondary { gap: 1rem; }
}

@media (max-width: 640px) {
  .hero-section { padding: 2rem 0 2.25rem; }
  .hero-title { font-size: 1.85rem; }
  .cat-strip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .promo-inner { padding: 1.75rem 1.5rem; }
  .main-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--slate);
    padding: 1rem 1.5rem;
    gap: .25rem;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 8px 16px rgba(0,0,0,.3);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .55rem .75rem; }
  .nav-toggle { display: block; }
  .header-top { position: relative; }
  .ticker-track { display: none; }
  .hero-secondary { flex-direction: column; gap: .75rem; }
  .hero-secondary-links { flex-direction: column; gap: .5rem; }
  .hero-sec-item { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding-bottom: .5rem; }
  .hero-sec-item:last-child { border-bottom: none; }
  .news-card { grid-template-columns: 90px 1fr; }
  .news-card-img, .news-img-placeholder { width: 90px; height: 62px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ── Homepage hero featured image ─────────────────────────────────────────── */
.hero-img-wrap {
  margin: 1.5rem 0 0;
  border-radius: 6px;
  overflow: hidden;
  max-height: 420px;
}
.hero-featured-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
