/*
Theme Name: Nicko Tadifa Blog
Description: Custom GeneratePress child theme matching the navy/teal branding of nickotadifa.com — built for the /blog subfolder WordPress install.
Author: Built for Nicko Tadifa
Template: generatepress
Version: 1.0
*/

/* ==========================================================================
   Nicko Tadifa — Blog theme (matches the main site's design system)
   Same variables / component classes as the static site's styles.css,
   adapted for WordPress markup (posts, archives, comments, widgets).
   ========================================================================== */

:root {
  --navy-900: #0b1f3a;
  --navy-800: #10294a;
  --navy-700: #16345c;
  --navy-600: #1f4272;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #e6f7f5;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;
  --amber-500: #f59e0b;

  --max-width: 1180px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --transition: 180ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.6em 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--slate-50); }

.section--navy {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--slate-200);
}
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  background: var(--teal-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.section--navy .eyebrow { background: rgba(20, 184, 166, 0.16); color: var(--teal-500); }

.lede { font-size: 1.1rem; color: var(--slate-500); max-width: 640px; }
.section--navy .lede { color: var(--slate-300); }

.section-head { max-width: 720px; margin: 0 auto 52px auto; text-align: center; }
.section-head.left { text-align: left; margin: 0 0 52px 0; }

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--teal-600); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-500); transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--slate-300); color: var(--navy-900); }
.btn-outline:hover { border-color: var(--teal-600); color: var(--teal-600); }
.section--navy .btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.section--navy .btn-outline:hover { border-color: var(--teal-500); color: var(--teal-500); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* ---------------- Header / Nav ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

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

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--navy-900); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-weight: 500; font-size: 0.68rem; color: var(--slate-500); letter-spacing: 0.04em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > button.nav-link-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.93rem; color: var(--slate-700);
  background: none; border: none; cursor: pointer; font-family: inherit;
  transition: background var(--transition), color var(--transition);
}
.nav-links > li > a:hover,
.nav-links > li > button.nav-link-btn:hover,
.nav-links > li > a.active { background: var(--teal-100); color: var(--teal-600); }

.nav-cta-wrap { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-900); color: var(--slate-300); padding: 64px 0 28px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: var(--slate-300); font-size: 0.92rem; transition: color var(--transition); }
.footer-grid a:hover { color: var(--teal-500); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.85rem; color: var(--slate-500); flex-wrap: wrap; gap: 12px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--slate-300);
}
.social-row a:hover { background: var(--teal-600); color: var(--white); }

/* ---------------- Cards / Grids ---------------- */

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }

.icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--teal-100); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}

.tag {
  display: inline-block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 999px;
  background: var(--teal-100); color: var(--teal-600);
}

/* ---------------- Blog cards (archive / index grid) ---------------- */

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

.blog-thumb {
  height: 170px;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 2rem;
  overflow: hidden;
}
.blog-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-body { padding: 22px 24px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { font-size: 0.78rem; color: var(--slate-500); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.blog-meta a { color: var(--slate-500); }
.blog-meta a:hover { color: var(--teal-600); }
.blog-card h2, .blog-card h3 { font-size: 1.1rem; margin: 0; }
.blog-card h2 a, .blog-card h3 a { color: var(--navy-900); }
.blog-card h2 a:hover, .blog-card h3 a:hover { color: var(--teal-600); }
.blog-excerpt { color: var(--slate-500); font-size: 0.92rem; margin: 0; }
.blog-read { margin-top: auto; font-weight: 700; color: var(--teal-600); font-size: 0.88rem; }
.blog-read:hover { color: var(--teal-500); }

/* ---------------- Page header (archive title / single post hero) ---------------- */

.page-hero {
  padding: 56px 0 44px 0;
  background: linear-gradient(180deg, var(--slate-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--slate-200);
}
.breadcrumb { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 16px; }
.breadcrumb a { color: var(--teal-600); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------------- Single post content ---------------- */

.post-content-wrap { max-width: 760px; margin: 0 auto; }
.post-featured-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow-md); }
.post-featured-image img { width: 100%; }

.entry-content { font-size: 1.05rem; color: var(--slate-700); }
.entry-content h2 { margin-top: 1.6em; font-size: 1.5rem; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em 0; padding-left: 1.4em; color: var(--slate-700); }
.entry-content li { margin-bottom: 0.5em; }
.entry-content a { color: var(--teal-600); font-weight: 600; text-decoration: underline; text-decoration-color: var(--teal-100); text-underline-offset: 2px; }
.entry-content a:hover { color: var(--teal-500); }
.entry-content strong { color: var(--navy-900); }
.entry-content code { background: var(--slate-100); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.entry-content blockquote {
  border-left: 3px solid var(--teal-600);
  padding: 4px 0 4px 20px;
  margin: 1.6em 0;
  color: var(--slate-500);
  font-style: italic;
}
.entry-content img { border-radius: var(--radius-md); margin: 1.2em 0; }

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.post-tags a {
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px; background: var(--slate-100); color: var(--slate-700);
}
.post-tags a:hover { background: var(--teal-100); color: var(--teal-600); }

.post-author-box {
  display: flex; gap: 16px; align-items: center;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 48px;
}
.post-author-box .avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--teal-600));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.post-author-box .name { font-weight: 700; color: var(--navy-900); margin-bottom: 2px; }
.post-author-box .role { font-size: 0.85rem; color: var(--slate-500); }

/* ---------------- Pagination ---------------- */

.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.blog-pagination a, .blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--slate-200);
  font-weight: 600; font-size: 0.9rem; color: var(--slate-700);
}
.blog-pagination a:hover { border-color: var(--teal-600); color: var(--teal-600); }
.blog-pagination .current { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

/* ---------------- CTA banner (reused on single posts / archive) ---------------- */

.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), #0f766e);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: var(--white);
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: var(--slate-300); max-width: 560px; margin: 0 auto 8px auto; }
.cta-banner .cta-row { justify-content: center; }

/* ---------------- Comments ---------------- */

#comments { max-width: 760px; margin: 56px auto 0 auto; }
#comments .comment-list { list-style: none; margin: 0; padding: 0; }
#comments .comment { border-top: 1px solid var(--slate-200); padding: 20px 0; }
#comments textarea, #comments input[type="text"], #comments input[type="email"], #comments input[type="url"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm); font-family: inherit; font-size: 0.94rem;
}
#comments .form-submit input {
  background: var(--teal-600); color: var(--white); border: none;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
}
#comments .form-submit input:hover { background: var(--teal-500); }

/* ---------------- Utilities ---------------- */

.text-center { text-align: center; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 12px; border: 1px solid var(--slate-200); border-top: none;
    box-shadow: var(--shadow-lg);
    display: none; gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-cta-wrap .btn-primary { display: none; }
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 60px 0; }
  .cta-banner { padding: 36px 22px; }
}
