/* ===========================================================
   HOBERG DIGITAL AGENCY — BLOG STYLESHEET
   Brand tokens per official Hoberg Brand Identity Guide v1.0
   =========================================================== */

:root {
  /* Brand colors */
  --hoberg-red: #C8001A;
  --hoberg-red-dark: #A0000F;
  --hoberg-black: #0E0B08;
  --hoberg-gold: #D4A843;
  --white: #FFFFFF;
  --cream: #F5EFE6;
  --light-gray: #F5F5F5;
  --mid-gray: #888888;
  --border-gray: #E7E2D8;

  /* Type */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 24px rgba(14, 11, 8, 0.08);
  --shadow-card-hover: 0 12px 32px rgba(14, 11, 8, 0.14);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--hoberg-black);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

:focus-visible {
  outline: 2px solid var(--hoberg-red);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--hoberg-red);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ============ HEADINGS & TYPE SCALE ============ */

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

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-bottom: 0.6rem; }

p { margin-bottom: 1rem; color: #2b2622; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--hoberg-red);
  margin-bottom: 12px;
}

/* ============ BUTTONS ============ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--hoberg-red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(200, 0, 26, 0.28);
}
.btn-primary:hover { background: var(--hoberg-red-dark); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-outline-dark {
  background: transparent;
  color: var(--hoberg-black);
  border: 1.5px solid var(--hoberg-black);
}
.btn-outline-dark:hover { background: var(--hoberg-black); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }

/* ============ HEADER / NAV ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 11, 8, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-link img { height: 34px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-text span { color: var(--hoberg-red); }

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-nav a {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--white); }
.main-nav a.active { color: var(--hoberg-red); }

.nav-cta { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO (brand dark-red glow, matches hoberg.com.ng) ============ */

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, #7a0010 0%, #3d0008 32%, #1a0003 58%, var(--hoberg-black) 85%);
  color: var(--white);
  padding: 96px 24px 88px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 620px;
  background: radial-gradient(ellipse, rgba(220,0,26,0.5) 0%, rgba(180,0,20,0.2) 38%, transparent 72%);
  filter: blur(45px);
  pointer-events: none;
}

.hero-inner { position: relative; max-width: 820px; margin: 0 auto; }

.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { color: var(--hoberg-gold); font-style: normal; }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Search box */
.search-box {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  background: var(--white);
  border-radius: 50px;
  padding: 6px 6px 6px 22px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.search-box input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--hoberg-black);
  background: transparent;
}
.search-box input::placeholder { color: var(--mid-gray); }
.search-box button {
  background: var(--hoberg-red);
  color: var(--white);
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.search-box button:hover { background: var(--hoberg-red-dark); }

.search-empty {
  display: none;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ============ SECTIONS ============ */

.section { padding: 72px 0; }
.section-alt { background: var(--light-gray); }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-header p { max-width: 480px; color: var(--mid-gray); margin-bottom: 0; }

/* ============ ARTICLE CARDS ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); }

.card-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--hoberg-black) 0%, #2b0508 60%, var(--hoberg-red-dark) 100%);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.card-thumb .card-tag {
  background: var(--hoberg-red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 30px;
}

.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 10px; }
.card-body h3 a { transition: color var(--transition); }
.card-body h3 a:hover { color: var(--hoberg-red); }
.card-body p { color: var(--mid-gray); font-size: 0.94rem; flex: 1; }

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-gray);
  font-size: 0.82rem;
  color: var(--mid-gray);
}
.card-meta .read-more { color: var(--hoberg-red); font-weight: 600; }

.featured-card { display: grid; grid-template-columns: 1fr; }
.featured-card.large { grid-column: span 2; }

@media (min-width: 760px) {
  .featured-grid { grid-template-columns: 1.3fr 1fr; }
}

/* ============ CATEGORIES ============ */

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.category-card {
  background: var(--white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 26px;
  transition: border-color var(--transition), transform var(--transition);
}
.category-card:hover { border-color: var(--hoberg-red); transform: translateY(-3px); }
.category-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(200,0,26,0.1);
  color: var(--hoberg-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 14px;
}
.category-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.category-card p { font-size: 0.86rem; color: var(--mid-gray); margin-bottom: 0; }

/* ============ NEWSLETTER ============ */

.newsletter {
  background: var(--hoberg-black);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::after {
  content: "";
  position: absolute;
  bottom: -80px; right: -80px;
  width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(212,168,67,0.25), transparent 70%);
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,0.72); max-width: 480px; margin: 0 auto 28px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
}
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  font-family: var(--font-body);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-note { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 14px; }
.newsletter-success {
  display: none;
  color: var(--hoberg-gold);
  font-weight: 600;
  margin-top: 16px;
}

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

.contact-cta {
  background: linear-gradient(120deg, var(--hoberg-red) 0%, var(--hoberg-red-dark) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}
.contact-cta h2 { color: var(--white); }
.contact-cta p { color: rgba(255,255,255,0.88); max-width: 540px; margin: 0 auto 30px; }
.contact-cta .hero-actions { margin-bottom: 0; }
.contact-cta .btn-primary { background: var(--hoberg-black); box-shadow: none; }
.contact-cta .btn-primary:hover { background: #000; }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--hoberg-black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo-link { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.9rem; max-width: 280px; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  transition: background var(--transition), border-color var(--transition);
}
.footer-social a:hover { background: var(--hoberg-red); border-color: var(--hoberg-red); }

.footer-col h4 { font-family: var(--font-body); color: var(--white); font-size: 0.9rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--hoberg-gold); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ ARTICLE PAGE ============ */

.article-hero {
  background: var(--hoberg-black);
  color: var(--white);
  padding: 52px 24px 40px;
}
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,0.75); }
.breadcrumb a:hover { color: var(--hoberg-gold); }

.article-hero .eyebrow { color: var(--hoberg-gold); }
.article-hero h1 { color: var(--white); max-width: 820px; margin-bottom: 16px; }
.article-hero .lede { color: rgba(255,255,255,0.78); max-width: 720px; font-size: 1.05rem; }

.article-meta-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 56px 0 80px;
}

@media (min-width: 900px) {
  .article-layout { grid-template-columns: 260px 1fr; }
  .article-layout.no-toc { grid-template-columns: 1fr; }
}

.toc-aside {
  position: relative;
}
.toc-box {
  background: var(--light-gray);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 22px;
}
@media (min-width: 900px) {
  .toc-box { position: sticky; top: 96px; }
}
.toc-box h2 {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--hoberg-red);
  margin-bottom: 14px;
}
.toc-box ol { counter-reset: toc; }
.toc-box li {
  counter-increment: toc;
  margin-bottom: 10px;
  font-size: 0.9rem;
}
.toc-box a {
  display: flex;
  gap: 8px;
  color: #3a342e;
  transition: color var(--transition);
}
.toc-box a::before {
  content: counter(toc);
  color: var(--hoberg-red);
  font-weight: 700;
  min-width: 16px;
}
.toc-box a:hover { color: var(--hoberg-red); }

.article-body { max-width: 760px; }
.article-body h2 {
  margin-top: 48px;
  padding-top: 8px;
  scroll-margin-top: 90px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 26px; scroll-margin-top: 90px; }
.article-body p { font-size: 1rem; color: #2b2622; }
.article-body ul, .article-body ol { margin: 0 0 20px 22px; list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 8px; color: #2b2622; }
.article-body strong { color: var(--hoberg-black); }

.intro-lede {
  font-size: 1.08rem;
  color: #3a342e;
  background: var(--cream);
  border-left: 4px solid var(--hoberg-red);
  padding: 18px 22px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 32px;
}

.checklist {
  background: var(--light-gray);
  border-radius: var(--radius-md);
  padding: 24px 24px 4px;
  margin: 24px 0;
}
.checklist li { list-style: none; margin-left: 0; display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: "✓";
  color: var(--hoberg-red);
  font-weight: 700;
  flex-shrink: 0;
}

.pull-note {
  border: 1px solid var(--border-gray);
  border-left: 4px solid var(--hoberg-gold);
  background: var(--cream);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  font-size: 0.95rem;
  margin: 22px 0;
}
.pull-note strong { color: var(--hoberg-red); }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--border-gray); }
.faq-item { border-bottom: 1px solid var(--border-gray); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--hoberg-black);
}
.faq-question .plus {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--hoberg-red);
  color: var(--hoberg-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: transform var(--transition);
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-answer p { padding: 0 4px 18px 0; color: var(--mid-gray); font-size: 0.95rem; }

/* Internal links / related articles module */
.related-links {
  margin: 40px 0;
  padding: 24px;
  background: var(--light-gray);
  border-radius: var(--radius-md);
}
.related-links h3 { font-size: 1rem; margin-bottom: 14px; }
.related-links ul { display: flex; flex-direction: column; gap: 10px; }
.related-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--hoberg-red);
  font-weight: 600;
  font-size: 0.94rem;
}
.related-links a::before { content: "→"; }

.article-cta {
  margin-top: 20px;
  background: var(--hoberg-black);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
}
.article-cta h2, .article-cta h3 { color: var(--white); }
.article-cta p { color: rgba(255,255,255,0.75); }

.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-gray);
}
.author-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--hoberg-red);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}
.author-box p { margin-bottom: 0; font-size: 0.88rem; color: var(--mid-gray); }
.author-box strong { color: var(--hoberg-black); display: block; }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Responsive nav */
@media (max-width: 900px) {
  .main-nav { position: fixed; top: 66px; left: 0; right: 0; background: var(--hoberg-black); flex-direction: column; padding: 10px 24px 26px; transform: translateY(-130%); opacity: 0; transition: transform var(--transition), opacity var(--transition); border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .main-nav li { width: 100%; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: flex; }
}
