/*
Theme Name: Seamfix Foundation
Theme URI: https://foundation.seamfix.com
Author: NextGen Team
Author URI: https://github.com/a912
Description: Seamfix Foundation site theme. Forked from the NextGen theme with the October 2026 content review applied: Programs dropdown, NextGen Academy and Community Development pages, updated impact numbers, contact and footer fixes.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nextgen
Tags: custom, responsive, modern, blog, full-width-template
*/

/* =========================================
   CSS Custom Properties (Design Tokens)
   ========================================= */
:root {
  --color-primary: #0f172a;
  --color-secondary: #6366f1;
  --color-accent: #f59e0b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-white: #ffffff;

  --font-sans: 'Parkinsans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Parkinsans', var(--font-sans);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);

  --transition: 0.25s ease;
  --container-max: 1200px;
  --container-padding: 1.5rem;
}

/* =========================================
   Reset & Base
   ========================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary); }
ul { list-style: none; }

/* =========================================
   Typography
   ========================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1.25rem; color: var(--color-text); }

.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =========================================
   Layout
   ========================================= */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section { padding: 5rem 0; }
.section--alt { background: var(--color-bg-alt); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* =========================================
   Buttons
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
  border-color: var(--color-secondary);
}
.btn-primary:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-outline:hover {
  background: var(--color-secondary);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* =========================================
   Header & Navigation
   (Legacy rules — overridden by header.css for the floating pill)
   ========================================= */
.site-header {
  position: relative;
  background: transparent;
  border: 0;
  padding: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.site-logo span { color: var(--color-secondary); }

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.main-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--color-secondary);
  background: #f0f0ff;
}

.nav-cta { margin-left: 1rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 60% 40%, rgba(99,102,241,0.25) 0%, transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { color: var(--color-white); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99,102,241,0.2);
  border: 1px solid rgba(99,102,241,0.4);
  color: #a5b4fc;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: var(--color-white); margin-bottom: 1.25rem; }
.hero p {
  color: rgba(255,255,255,0.72);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-hero-primary {
  background: var(--color-secondary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid var(--color-secondary);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-primary:hover {
  background: transparent;
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,0.4);
}
.btn-hero-ghost {
  color: rgba(255,255,255,0.8);
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.25);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-hero-ghost:hover {
  border-color: rgba(255,255,255,0.6);
  color: white;
  background: rgba(255,255,255,0.08);
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-mockup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(16px);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1.25rem;
}
.mockup-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-content { display: flex; flex-direction: column; gap: 0.75rem; }
.mockup-line {
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.15);
}
.mockup-line.short { width: 60%; }
.mockup-line.medium { width: 80%; }
.mockup-line.full { width: 100%; }
.mockup-img-placeholder {
  width: 100%;
  height: 140px;
  background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(245,158,11,0.2));
  border-radius: var(--radius-md);
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* =========================================
   Cards
   ========================================= */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-secondary);
}
.card-body { padding: 1.75rem; }
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-secondary), #818cf8);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}
.card h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.card p { color: var(--color-text-muted); font-size: 0.95rem; margin: 0; }

/* =========================================
   Post / Blog Cards
   ========================================= */
.post-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card-thumbnail {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
  overflow: hidden;
}
.post-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.post-card-category {
  background: #f0f0ff;
  color: var(--color-secondary);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
}
.post-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; }
.post-card h3 a { color: var(--color-primary); }
.post-card h3 a:hover { color: var(--color-secondary); }
.post-card p { color: var(--color-text-muted); font-size: 0.9rem; flex: 1; }
.post-card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--color-border); }
.read-more {
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.read-more:hover { gap: 0.6rem; }

/* =========================================
   Section Headers
   ========================================= */
.section-header { margin-bottom: 3.5rem; text-align: center; }
.section-eyebrow {
  display: inline-block;
  color: var(--color-secondary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--color-text-muted); max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* =========================================
   Stats Strip
   ========================================= */
.stats-strip { padding: 3.5rem 0; background: var(--color-primary); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-item { color: var(--color-white); }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.9rem; }

/* =========================================
   CTA Section
   ========================================= */
.cta-section {
  background: linear-gradient(135deg, var(--color-secondary), #4f46e5);
  padding: 6rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 60%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.cta-section h2,
.cta-section p { color: var(--color-white); position: relative; }
.cta-section p { opacity: 0.85; margin-bottom: 2rem; font-size: 1.1rem; }
.cta-section h2 { margin-bottom: 1rem; }
.btn-cta {
  background: var(--color-white);
  color: var(--color-secondary);
  padding: 1rem 2.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}
.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  color: var(--color-primary);
}

/* =========================================
   Footer
   ========================================= */
.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .site-logo { color: var(--color-white); }
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 1rem; font-size: 0.9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: var(--color-white); font-size: 0.9rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--color-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.social-links { display: flex; gap: 0.75rem; }
.social-link {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  font-size: 0.9rem;
}
.social-link:hover { background: var(--color-secondary); color: white; }

/* =========================================
   Single Post
   ========================================= */
.post-header { padding: 5rem 0 3rem; background: var(--color-bg-alt); }
.post-header-inner { max-width: 760px; margin: 0 auto; }
.post-content { max-width: 760px; margin: 0 auto; padding: 3rem 0 5rem; }
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { color: var(--color-text); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content blockquote {
  border-left: 4px solid var(--color-secondary);
  padding: 1rem 1.5rem;
  background: #f0f0ff;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 1.5rem 0;
}
.post-content code {
  background: var(--color-bg-alt);
  padding: 0.15rem 0.4rem;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9em;
}
.post-content pre {
  background: var(--color-primary);
  color: #e2e8f0;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* =========================================
   Sidebar
   ========================================= */
.content-sidebar-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.widget { margin-bottom: 2rem; }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--color-secondary); }

/* =========================================
   Forms
   ========================================= */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; }
input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* =========================================
   Pagination
   ========================================= */
.pagination { display: flex; gap: 0.5rem; justify-content: center; padding: 3rem 0; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--color-secondary);
  color: white;
  border-color: var(--color-secondary);
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --container-padding: 1rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .main-nav { display: none; position: fixed; inset: 0; background: var(--color-white); flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; z-index: 200; }
  .main-nav.is-open { display: flex; }
  .main-nav ul { flex-direction: column; }
  .hamburger { display: flex; z-index: 300; position: relative; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* =========================================
   WordPress Core Classes
   ========================================= */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-text-muted); text-align: center; margin-top: 0.4rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
