/*
Theme Name: Sokratis Marketing Analyst
Theme URI: https://example.com
Author: Your Studio
Description: A marketing-analyst blog theme with a bold hero, insight categories, and a curated articles feed.
Version: 1.0
Text Domain: sokratis
*/

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: 'Inter', sans-serif; letter-spacing: -0.02em; }

:root {
  --black: #0b0d0a;
  --panel: #10130f;
  --green: #3ecf4e;
  --green-dark: #2fae3d;
  --ink: #14170f;
  --muted: #6b6f66;
  --line: #e7e8e2;
  --paper: #f6f7f3;
  --white: #ffffff;
  --max: 1240px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--green); display: block; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 4px; font-weight: 700; font-size: 13px;
  letter-spacing: 0.06em; text-transform: uppercase; border: none; transition: transform .15s ease, background .15s ease;
}
.btn-primary { background: var(--green); color: #06210b; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid rgba(255,255,255,.25); color: #fff; background: transparent; }

/* ============ Header ============ */
.site-header {
  background: var(--black);
  padding: 18px 0;
  position: relative;
  z-index: 40;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark-img { width: 40px; height: 40px; border-radius: 9px; display: block; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 9px;
  background: var(--green); color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 20px;
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 0.01em; }

.primary-nav ul { display: flex; align-items: center; gap: 22px; flex-wrap: nowrap; }
.primary-nav a {
  color: #d8dad3; font-size: 12.5px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase;
  white-space: nowrap; transition: color .15s ease;
}
.primary-nav a:hover { color: #fff; }
.site-header .wrap { flex-wrap: nowrap; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.18); color: #fff; background: transparent;
}
.nav-toggle { display: none; background: transparent; border: none; color: #fff; padding: 4px; cursor: pointer; }
.nav-toggle .icon-close { display: none; }
.site-header.nav-open .nav-toggle .icon-burger { display: none; }
.site-header.nav-open .nav-toggle .icon-close { display: block; }

/* ============ Hero ============ */
.hero { position: relative; color: #fff; padding: 150px 0 90px; overflow: hidden; display: flex; align-items: center; min-height: 560px; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(60% 90% at 50% 45%, rgba(9,11,7,.97) 0%, rgba(9,11,7,.9) 45%, rgba(9,11,7,.6) 75%, rgba(9,11,7,.4) 100%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-copy { text-align: center; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.hero-copy h1 {
  font-size: clamp(40px, 5.2vw, 68px); font-weight: 900; line-height: 1.02; margin: 18px 0 22px;
  text-transform: uppercase;
}
.hero-copy h1 .accent { color: var(--green); }
.hero-copy p { font-size: 17px; line-height: 1.6; color: #b7b9b1; max-width: 46ch; margin: 0 auto 30px; }

#hero-heading { min-height: 3.3em; }
.type-cursor {
  display: inline-block; width: 4px; height: 0.82em;
  background: var(--green); margin-left: 3px; vertical-align: -0.06em;
  animation: type-blink 0.9s steps(1) infinite;
}
.type-cursor.is-static { animation: none; opacity: 1; }
@keyframes type-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .type-cursor { animation: none; }
}

/* ============ Mini About ============ */
.mini-about { background: #fff; padding: 52px 0; border-bottom: 1px solid var(--line); }
.mini-about-inner { display: flex; align-items: center; gap: 26px; max-width: 760px; margin: 0 auto; }
.mini-about-photo {
  width: 88px; height: 88px; border-radius: 999px; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--green);
}
.mini-about-copy .eyebrow { margin-bottom: 10px; }
.mini-about-copy p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.mini-about-copy strong { color: var(--ink); }

/* ============ Category strip ============ */
.category-strip { background: var(--paper); padding: 90px 0 56px; border-bottom: 1px solid var(--line); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.category-card .cat-icon {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(62,207,78,.12);
  display: flex; align-items: center; justify-content: center; color: var(--green); margin-bottom: 18px;
}
.category-card h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; letter-spacing: 0.01em; text-transform: uppercase; }
.category-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.category-card .go-link { color: var(--green); font-weight: 700; font-size: 15px; }

/* ============ Content area ============ */
.content-section { padding: 72px 0 90px; background: var(--paper); }
.content-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: start; }

.section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.section-heading h2 { font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.section-heading .rule { flex: 1; height: 1px; background: var(--line); }

.article-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 26px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.article-row:first-child { padding-top: 0; }
.article-thumb { border-radius: 4px; overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-cat { color: var(--green); font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.article-row h3 { font-size: 20px; font-weight: 800; margin: 10px 0 10px; line-height: 1.3; }
.article-row h3 a:hover { color: var(--green-dark); }
.article-row p { color: var(--muted); font-size: 14.5px; line-height: 1.6; margin-bottom: 14px; }
.article-meta { font-size: 12.5px; color: #8c8f84; font-weight: 600; letter-spacing: 0.02em; }

.view-all { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; font-weight: 800; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.view-all svg { color: var(--green); }

/* Sidebar */
.sidebar > * + * { margin-top: 30px; }
.fact-slider { background: var(--black); color: #fff; padding: 32px; border-radius: 6px; }
.fact-slider .mail-icon { color: var(--green); margin-bottom: 14px; }
.fact-slider .eyebrow { display: flex; margin-bottom: 20px; }
.fact-slides { position: relative; min-height: 168px; }
.fact-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(6px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.fact-slide.is-active { opacity: 1; transform: translateY(0); pointer-events: auto; }
.fact-slide p { font-size: 18px; font-weight: 700; line-height: 1.45; color: #fff; margin: 0 0 14px; }
.fact-source { font-size: 12.5px; color: #8b8d84; font-weight: 600; letter-spacing: 0.02em; }
.fact-dots { display: flex; gap: 7px; margin-top: 18px; }
.fact-dots .dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.18); transition: background .3s ease, width .3s ease; }
.fact-dots .dot.is-active { background: var(--green); width: 18px; }

.sidebar-panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.sidebar-panel h4 { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; color: var(--ink); }
.topic-list li { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.topic-list li:last-child { border-bottom: none; }
.topic-list .hash { color: var(--green); margin-right: 8px; font-weight: 700; }
.topic-list .arrow { color: #b6b8ae; }

.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--ink);
}
.social-row a:hover { background: var(--green); border-color: var(--green); color: #06210b; }

/* ============ CTA banner ============ */
.cta-banner {
  background: radial-gradient(120% 160% at 0% 0%, #14371c 0%, #0a0d09 55%);
  color: #fff; padding: 54px 0;
}
.cta-banner .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { font-size: 30px; font-weight: 800; line-height: 1.2; }
.cta-banner h2 .accent { color: var(--green); font-style: italic; }
.cta-features { display: flex; gap: 46px; flex-wrap: wrap; }
.cta-feature { display: flex; align-items: center; gap: 14px; max-width: 220px; }
.cta-feature .icon { color: var(--green); flex-shrink: 0; }
.cta-feature strong { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.cta-feature span { font-size: 13px; color: #a8aaa2; line-height: 1.4; }

/* ============ Footer ============ */
.site-footer { background: var(--black); color: #b7b9b1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-about p { font-size: 13.5px; line-height: 1.65; margin: 18px 0 16px; max-width: 34ch; }
.footer-about .more-link { color: var(--green); font-weight: 800; font-size: 13px; }
.footer-col h5 { color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-col li { margin-bottom: 12px; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 12.5px; color: #797c73; flex-wrap: wrap; gap: 10px; }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .category-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .content-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--black);
    max-height: 0; overflow: hidden;
    transition: max-height .3s ease;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .site-header.nav-open .primary-nav { max-height: 480px; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 32px 22px; }
  .primary-nav a {
    display: block; padding: 13px 0; font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .primary-nav li:last-child a { border-bottom: none; }
}
@media (max-width: 640px) {
  .hero { padding: 90px 0; min-height: 460px; }
  .wrap { padding: 0 20px; }
  .mini-about-inner { flex-direction: column; text-align: center; }
  .article-row { grid-template-columns: 1fr; }
  .cta-banner .wrap { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
}
