/*
Theme Name:  SEJunction
Theme URI:   https://sejunction.com
Author:      Justin Kasia
Author URI:  https://sejunction.com
Description: A modern magazine-style theme for SEJunction — Africa's Social Enterprise Hub. Built for speed, SEO, and editorial content.
Version:     1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sejunction
Tags:        blog, magazine, custom-menu, featured-images, footer-widgets, full-width-template, sticky-post, translation-ready
*/

/* =============================================
   CSS Custom Properties
   ============================================= */

:root {
  --green-deep:   #1D3A2F;
  --green-mid:    #0F6E56;
  --green-light:  #1D9E75;
  --green-pale:   #E1F5EE;
  --amber:        #EF9F27;
  --amber-dark:   #BA7517;
  --amber-pale:   #FFF8ED;
  --teal:         #5DCAA5;
  --white:        #FFFFFF;
  --off-white:    #F7F5F0;
  --ink:          #1A1A18;
  --ink-mid:      #3D3D3A;
  --ink-light:    #7A7A75;
  --border:       rgba(29,58,47,0.12);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --font-mono:    'DM Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 12px 48px rgba(0,0,0,0.12);

  --max-width: 1200px;
  --nav-height: 68px;
}

/* =============================================
   Reset & Base
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

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

/* =============================================
   Navigation
   ============================================= */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

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

.nav-logo {
  display: flex;
  align-items: baseline;
  gap: 2px;
  flex-shrink: 0;
}

.nav-logo .se {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -0.5px;
}

.nav-logo .junction {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--amber-dark);
  letter-spacing: -0.5px;
}

.nav-logo .tagpill {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 10px;
  align-self: center;
  padding: 2px 8px;
  background: var(--green-pale);
  border-radius: 20px;
}

/* WordPress nav menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links ul li a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.01em;
  display: block;
}

.nav-links ul li a:hover,
.nav-links ul li.current-menu-item > a,
.nav-links ul li.current_page_item > a {
  background: var(--green-pale);
  color: var(--green-deep);
}

.nav-links ul li.menu-cta > a,
.nav-links ul li:last-child > a {
  background: var(--amber);
  color: var(--green-deep) !important;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding: 8px 20px;
  transition: background 0.18s, transform 0.15s;
}

.nav-links ul li.menu-cta > a:hover,
.nav-links ul li:last-child > a:hover {
  background: var(--amber-dark);
  color: var(--white) !important;
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.25s;
}

/* Mobile menu overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 200;
  flex-direction: column;
  padding: 24px;
}

.mobile-menu.open { display: flex; }

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--ink-mid);
}

.mobile-nav-links { margin-bottom: 32px; }

.mobile-nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-links ul li a {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-deep);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: block;
  transition: color 0.15s;
}

.mobile-nav-links ul li a:hover { color: var(--green-mid); }

/* =============================================
   Accent bar
   ============================================= */

.accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--green-light), var(--amber), var(--teal));
}

/* =============================================
   Hero Section
   ============================================= */

.hero {
  background: var(--green-deep);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 50%, rgba(29,158,117,0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(239,159,39,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.hero-desc {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--amber);
  color: var(--green-deep);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,159,39,0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  font-weight: 400;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(8px);
}

.hero-panel-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}

.hero-panel-post {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: opacity 0.15s;
}

.hero-panel-post:hover { opacity: 0.8; }
.hero-panel-post:last-child { border-bottom: none; padding-bottom: 0; }
.hero-panel-post:first-of-type { padding-top: 0; }

.hero-post-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
}

.hero-post-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-post-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 4px;
}

.hero-post-meta {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
}

/* =============================================
   Topics Strip
   ============================================= */

.topics-strip {
  background: var(--off-white);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.topics-scroll {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink-mid);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.topic-pill:hover,
.topic-pill.active {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

.topic-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  display: inline-block;
}

.topic-pill.amber .dot { background: var(--amber); }
.topic-pill.amber:hover,
.topic-pill.amber.active {
  background: var(--amber);
  color: var(--green-deep);
  border-color: var(--amber);
}

/* =============================================
   Section Shared Styles
   ============================================= */

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 16px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.15;
}

.section-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-mid);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s, color 0.15s;
}

.section-link:hover { color: var(--amber-dark); gap: 8px; }

/* =============================================
   Featured Articles
   ============================================= */

.featured-section { padding: 80px 0 0; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

.featured-main {
  background: var(--white);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.featured-img {
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--green-deep) 0%, var(--green-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}

.featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body { padding: 32px 36px 40px; }

.cat-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.cat-badge.green { background: var(--green-pale); color: var(--green-mid); }
.cat-badge.amber { background: var(--amber-pale); color: var(--amber-dark); }

.featured-main .post-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.2;
  margin-bottom: 14px;
  transition: color 0.18s;
}

.featured-main:hover .post-title { color: var(--green-mid); }

.post-excerpt {
  font-size: 15px;
  color: var(--ink-light);
  line-height: 1.65;
  margin-bottom: 24px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-light);
}

.post-meta .author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-mid);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.meta-sep { color: var(--border); }

.featured-sidebar {
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-post {
  flex: 1;
  background: var(--off-white);
  padding: 24px;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-post:hover { background: var(--green-pale); }

.sidebar-post .post-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.3;
  margin: 10px 0 12px;
  transition: color 0.18s;
}

.sidebar-post:hover .post-title { color: var(--green-mid); }

.sidebar-post .post-excerpt {
  font-size: 13px;
  margin-bottom: 16px;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =============================================
   Blog Grid
   ============================================= */

.blog-section { padding: 80px 0; }

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

.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  overflow: hidden;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-img.g1 { background: linear-gradient(135deg, #1D3A2F, #1D9E75); }
.card-img.g2 { background: linear-gradient(135deg, #412402, #EF9F27); }
.card-img.g3 { background: linear-gradient(135deg, #0C447C, #5DCAA5); }
.card-img.g4 { background: linear-gradient(135deg, #1D3A2F, #085041); }
.card-img.g5 { background: linear-gradient(135deg, #633806, #BA7517); }
.card-img.g6 { background: linear-gradient(135deg, #163027, #1D9E75); }

.card-body {
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body .post-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--green-deep);
  line-height: 1.25;
  margin: 10px 0 10px;
  transition: color 0.18s;
}

.blog-card:hover .post-title { color: var(--green-mid); }

.card-body .post-excerpt {
  font-size: 13.5px;
  flex: 1;
  margin-bottom: 18px;
}

/* =============================================
   Business Tools Section
   ============================================= */

.tools-section {
  padding: 80px 0;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}

.tools-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.tools-section .section-label { color: var(--teal); }
.tools-section .section-title { color: var(--white); }

.tools-intro {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  max-width: 520px;
  margin-top: 8px;
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.tool-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px 28px 32px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-3px);
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(239,159,39,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.tool-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}

.tool-desc {
  font-size: 13.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 22px;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.02em;
  transition: gap 0.15s;
}

.tool-link:hover { gap: 10px; }

.tool-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(239,159,39,0.2);
  color: var(--amber);
}

/* =============================================
   Newsletter
   ============================================= */

.newsletter-section {
  padding: 72px 0;
  background: var(--amber-pale);
  border-top: 1px solid rgba(239,159,39,0.2);
  border-bottom: 1px solid rgba(239,159,39,0.2);
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 64px;
  align-items: center;
}

.newsletter-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber-dark);
  margin-bottom: 12px;
}

.newsletter-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.15;
}

.newsletter-sub {
  font-size: 15px;
  color: var(--ink-mid);
  margin-top: 10px;
  line-height: 1.6;
}

.newsletter-form { display: flex; flex-direction: column; gap: 12px; }

.form-row { display: flex; gap: 10px; }

.form-input {
  flex: 1;
  height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(29,58,47,0.2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.form-input:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.15);
}

.form-input::placeholder { color: var(--ink-light); }

.form-submit {
  height: 48px;
  padding: 0 28px;
  background: var(--green-deep);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.form-submit:hover { background: var(--green-mid); transform: translateY(-1px); }

.form-note { font-size: 12px; color: var(--ink-light); }

/* =============================================
   Contact
   ============================================= */

.contact-section { padding: 80px 0 100px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; }

.contact-item { display: flex; align-items: center; gap: 16px; }

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-item-val { color: var(--green-mid); font-weight: 500; font-size: 14px; }

.contact-form {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--border);
}

.contact-form h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 28px;
}

.form-group { margin-bottom: 18px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  resize: none;
}

.form-control:focus {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(29,158,117,0.12);
}

.form-control::placeholder { color: var(--ink-light); }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237A7A75' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background: var(--green-deep);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.18s, transform 0.15s;
  letter-spacing: 0.02em;
}

.btn-submit:hover { background: var(--green-mid); transform: translateY(-1px); }

/* =============================================
   Single Post
   ============================================= */

.single-hero {
  background: var(--green-deep);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.single-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.single-hero-inner { position: relative; z-index: 1; max-width: 760px; }

.single-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  margin: 16px 0 20px;
}

.post-content-wrap { padding: 64px 0 80px; }

.post-content-inner { max-width: 760px; }

.post-content h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 40px 0 16px;
  line-height: 1.2;
}

.post-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-deep);
  margin: 32px 0 12px;
}

.post-content p { margin-bottom: 20px; font-size: 17px; line-height: 1.75; color: var(--ink-mid); }

.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-mid);
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; }

.post-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 16px 24px;
  margin: 32px 0;
  background: var(--amber-pale);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote p { color: var(--ink); font-style: italic; margin: 0; }

.post-content a { color: var(--green-mid); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--amber-dark); }

.post-content img { border-radius: var(--radius-md); margin: 32px 0; }

/* =============================================
   Archive / Blog Page
   ============================================= */

.archive-hero {
  background: var(--off-white);
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}

.archive-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 12px;
}

.archive-hero p { font-size: 16px; color: var(--ink-light); max-width: 480px; }

.archive-grid { padding: 64px 0 80px; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 64px;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-mid);
  transition: background 0.15s, color 0.15s;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--green-deep);
  color: var(--white);
  border-color: var(--green-deep);
}

/* =============================================
   404 Page
   ============================================= */

.not-found {
  padding: 120px 0;
  text-align: center;
}

.not-found .big-num {
  font-family: var(--font-display);
  font-size: 120px;
  font-weight: 700;
  color: var(--green-pale);
  line-height: 1;
  margin-bottom: 16px;
}

.not-found h2 {
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--green-deep);
  margin-bottom: 16px;
}

.not-found p { color: var(--ink-light); margin-bottom: 32px; }

/* =============================================
   Footer
   ============================================= */

.site-footer {
  background: var(--ink);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .logo span { color: var(--amber); }

.footer-brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 240px;
  margin-bottom: 24px;
}

.social-links { display: flex; gap: 10px; }

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: background 0.18s;
  cursor: pointer;
  text-decoration: none;
}

.social-btn:hover { background: rgba(255,255,255,0.14); color: var(--white); }

.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copyright { font-size: 12px; color: rgba(255,255,255,0.3); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: rgba(255,255,255,0.3); transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.7); }

/* =============================================
   Scroll Reveal Animations
   ============================================= */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   Responsive
   ============================================= */

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { display: none; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-sidebar { flex-direction: row; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .newsletter-inner { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .blog-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .featured-sidebar { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .hero h1 { font-size: 38px; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .contact-form { padding: 24px; }
}

/* =============================================
   WordPress Core Alignment Classes
   ============================================= */

.alignleft  { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide  { max-width: 1000px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--ink-light); margin-top: 8px; text-align: center; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
