/* ============================================
   CREED CONSORTIUM THEME - MAIN STYLES
   ============================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/* --- CSS Variables / Design Tokens --- */
:root {
  --primary:           hsl(210, 100%, 20%);
  --primary-dark:      hsl(210, 100%, 14%);
  --primary-fg:        hsl(210, 40%, 98%);
  --secondary:         hsl(204, 100%, 30%);
  --secondary-fg:      #fff;
  --accent:            hsl(40, 46%, 60%);
  --accent-dark:       hsl(40, 46%, 48%);
  --accent-fg:         hsl(210, 29%, 15%);
  --background:        hsl(210, 20%, 98%);
  --foreground:        hsl(210, 29%, 24%);
  --card:              #ffffff;
  --card-fg:           hsl(210, 29%, 24%);
  --muted:             hsl(210, 20%, 96%);
  --muted-fg:          hsl(210, 11%, 45%);
  --border:            hsl(210, 20%, 90%);
  --teal-light:        hsl(204, 60%, 92%);
  --radius:            0.5rem;
  --font-heading:      'Montserrat', system-ui, sans-serif;
  --font-body:         'Open Sans', system-ui, sans-serif;
  --shadow-sm:         0 1px 3px rgba(0,0,0,.08);
  --shadow-md:         0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:         0 8px 32px rgba(0,0,0,.14);
  --transition:        all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); line-height: 1.2; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* --- Layout Utilities --- */
.container-narrow {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-padding { padding: 5rem 1.5rem; }
@media (max-width: 768px) { .section-padding { padding: 3.5rem 1rem; } }

/* --- Typography --- */
.label-text {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
  line-height: 1.15;
}
.section-desc { color: var(--muted-fg); max-width: 42rem; }
.section-heading { margin-bottom: 3rem; }
.section-heading.centered { text-align: center; }
.section-heading.centered .section-desc { margin: 0 auto; }
.section-heading.light .section-title { color: var(--primary-fg); }
.section-heading.light .section-desc  { color: rgba(255,255,255,.65); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  padding: .7rem 1.75rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-accent {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline-light {
  background: transparent;
  color: var(--primary-fg);
  border-color: rgba(255,255,255,.35);
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: .875rem 2.5rem; font-size: 1rem; }

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
}
#site-header.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  padding: .75rem 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.site-logo img { height: 40px; width: auto; }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--primary-fg);
  transition: color .3s;
}
.logo-text span { color: var(--accent); }
#site-header.scrolled .logo-text { color: var(--primary); }

/* Desktop Nav */
.desktop-nav { display: flex; align-items: center; gap: .25rem; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.88);
  border-radius: var(--radius);
  transition: color .25s, background .25s;
  text-decoration: none;
}
.nav-link:hover, .nav-link.active { color: #fff; }
#site-header.scrolled .nav-link { color: var(--foreground); }
#site-header.scrolled .nav-link:hover,
#site-header.scrolled .nav-link.active { color: var(--primary); background: var(--muted); }
.nav-link svg { width: 14px; height: 14px; }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  width: 17rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  z-index: 200;
}
.nav-item:hover .dropdown-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: .625rem 1rem;
  font-size: .875rem;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.dropdown-menu a:hover { background: var(--muted); color: var(--primary); }

/* Header CTA */
.header-cta .btn { padding: .55rem 1.25rem; font-size: .875rem; }
.header-cta .btn-outline-light { border-color: rgba(255,255,255,.35); }
#site-header.scrolled .header-cta .btn-outline-light {
  border-color: var(--primary);
  color: var(--primary);
}
#site-header.scrolled .header-cta .btn-outline-light:hover {
  background: var(--primary);
  color: var(--primary-fg);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: .5rem;
  color: var(--primary-fg);
  cursor: pointer;
}
#site-header.scrolled .mobile-toggle { color: var(--foreground); }
.mobile-toggle svg { width: 24px; height: 24px; display: block; }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--card);
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
.mobile-nav {
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}
.mobile-nav a {
  display: block;
  padding: .75rem 1rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--foreground);
  border-radius: var(--radius);
  transition: background .2s;
}
.mobile-nav a:hover { background: var(--muted); color: var(--primary); }
.mobile-sub a {
  padding-left: 2rem;
  font-size: .85rem;
  color: var(--muted-fg);
}
.mobile-nav .btn { width: 100%; margin-top: .5rem; justify-content: center; }

@media (max-width: 1023px) {
  .desktop-nav, .header-cta { display: none; }
  .mobile-toggle { display: block; }
}
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* ============================================
   HERO SECTION
   ============================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 34, 71, .82);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 8rem 1.5rem 5rem;
  max-width: 1100px;
  margin: 0 auto;
}
.hero-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--primary-fg);
  line-height: 1.1;
  max-width: 900px;
  margin: 0 auto;
}
.hero-title span { color: var(--accent); }
.hero-desc {
  margin: 1.5rem auto 0;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.72);
  max-width: 600px;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.hero-stats {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}
.hero-stat-label { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .25rem; }

/* ============================================
   WHY CREED SECTION
   ============================================ */
#why-creed { background: var(--background); }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-card {
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  transition: var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,149,87,.3);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  transition: background .3s;
}
.feature-card:hover .feature-icon { background: rgba(184,149,87,.15); }
.feature-icon svg { width: 24px; height: 24px; color: var(--secondary); }
.feature-card:hover .feature-icon svg { color: var(--accent); }
.feature-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .75rem;
}
.feature-desc { font-size: .9rem; color: var(--muted-fg); line-height: 1.7; }

/* ============================================
   SERVICES SECTION
   ============================================ */
#services-section { background: var(--muted); }
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(184,149,87,.3);
}
.service-icon {
  width: 44px; height: 44px;
  background: rgba(4,34,71,.08);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background .3s;
}
.service-card:hover .service-icon { background: rgba(184,149,87,.15); }
.service-icon svg { width: 20px; height: 20px; color: var(--primary); transition: color .3s; }
.service-card:hover .service-icon svg { color: var(--accent); }
.service-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .5rem;
}
.service-desc { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; flex: 1; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-top: 1rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--secondary);
  transition: color .2s;
}
.service-card:hover .service-link { color: var(--accent); }
.service-link svg { width: 14px; height: 14px; transition: transform .2s; }
.service-card:hover .service-link svg { transform: translateX(4px); }

/* ============================================
   METHODOLOGY SECTION
   ============================================ */
#methodology { background: var(--background); }
.methodology-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px)  { .methodology-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .methodology-grid { grid-template-columns: repeat(3, 1fr); } }
.method-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
}
.method-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.method-num {
  width: 40px; height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: .875rem;
  color: var(--primary-fg);
  flex-shrink: 0;
}
.method-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
}
.method-duration { font-size: .75rem; color: var(--accent); font-weight: 600; }
.method-list { list-style: none; }
.method-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .875rem;
  color: var(--muted-fg);
  margin-bottom: .4rem;
}
.method-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: .45rem;
}

/* ============================================
   STATS SECTION
   ============================================ */
#stats { background: var(--primary); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 3rem;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--accent);
  display: block;
}
.stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  margin-top: .4rem;
  line-height: 1.4;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
#testimonials { background: var(--muted); }
.testimonials-wrap { max-width: 750px; margin: 0 auto; }
.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 3);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.testimonial-quote-icon {
  width: 40px; height: 40px;
  color: rgba(184,149,87,.25);
  margin-bottom: 1.5rem;
}
.testimonial-text {
  font-size: 1.1rem;
  color: var(--foreground);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 2rem;
}
.testimonial-footer { display: flex; align-items: center; justify-content: space-between; }
.testimonial-name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
}
.testimonial-role { font-size: .875rem; color: var(--muted-fg); }
.testimonial-nav { display: flex; gap: .5rem; }
.testimonial-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--foreground);
}
.testimonial-btn:hover { background: var(--muted); }
.testimonial-btn svg { width: 16px; height: 16px; }

/* ============================================
   PILLARS SECTION
   ============================================ */
#pillars { background: var(--background); }
.pillars-wrap { max-width: 750px; margin: 0 auto; }
.pillar-item {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: calc(var(--radius) * 2);
  margin-bottom: .75rem;
  overflow: hidden;
  transition: border-color .2s;
}
.pillar-item.open { border-color: rgba(184,149,87,.35); }
.pillar-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .95rem;
  color: var(--foreground);
  justify-content: space-between;
}
.pillar-trigger:hover { background: rgba(0,0,0,.02); }
.pillar-num {
  color: var(--accent);
  font-weight: 700;
  font-size: .875rem;
  flex-shrink: 0;
}
.pillar-title { flex: 1; }
.pillar-chevron {
  width: 18px; height: 18px;
  color: var(--muted-fg);
  transition: transform .25s;
  flex-shrink: 0;
}
.pillar-item.open .pillar-chevron { transform: rotate(180deg); }
.pillar-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}
.pillar-item.open .pillar-content { max-height: 300px; }
.pillar-content p {
  padding: 0 1.5rem 1.25rem;
  font-size: .9rem;
  color: var(--muted-fg);
  line-height: 1.75;
}

/* ============================================
   WHO WE SERVE / AUDIENCE SECTION
   ============================================ */
#who-we-serve { background: var(--muted); }
.audience-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .audience-grid { grid-template-columns: repeat(3, 1fr); } }
.audience-card {
  padding: 1.75rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  height: 100%;
}
.audience-card svg { width: 32px; height: 32px; color: var(--secondary); margin-bottom: 1rem; }
.audience-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .5rem;
}
.audience-desc { font-size: .9rem; color: var(--muted-fg); line-height: 1.7; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--primary);
  text-align: center;
}
.cta-section .section-title { color: var(--primary-fg); font-size: clamp(1.75rem, 4vw, 2.5rem); }
.cta-section .section-desc-light {
  color: rgba(255,255,255,.65);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-note { font-size: .875rem; color: rgba(255,255,255,.4); margin-top: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
#site-footer { background: var(--primary); color: var(--primary-fg); }
.footer-main { padding: 5rem 1.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand .logo-text { color: var(--primary-fg); font-size: 1.25rem; margin-bottom: 1rem; }
.footer-brand p { font-size: .875rem; color: rgba(255,255,255,.6); line-height: 1.7; max-width: 22rem; margin-bottom: 1.5rem; }
.social-links { display: flex; gap: .75rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary-fg);
  transition: var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--accent); color: var(--accent-fg); }
.social-link svg { width: 16px; height: 16px; }
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .625rem; }
.footer-col ul li a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--primary-fg); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: .75rem;
}
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: .125rem; }
.footer-contact-item span { font-size: .875rem; color: rgba(255,255,255,.6); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.5rem;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: .75rem;
  color: rgba(255,255,255,.4);
}
@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-tagline { font-family: var(--font-heading); font-style: italic; color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: rgba(255,255,255,.4); transition: color .2s; text-decoration: none; }
.footer-links a:hover { color: var(--primary-fg); }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  background: var(--primary);
  padding: 9rem 1.5rem 5rem;
  text-align: center;
}
.page-hero .label-text { color: var(--accent); }
.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--primary-fg);
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-title span { color: var(--accent); }
.page-hero-desc {
  margin: 1.25rem auto 0;
  max-width: 560px;
  color: rgba(255,255,255,.65);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-story, .about-team { background: var(--background); }
.about-compare { background: var(--muted); }
.about-africa { background: var(--primary); text-align: center; }
.about-africa .section-title { color: var(--primary-fg); font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.about-africa p { color: rgba(255,255,255,.65); max-width: 44rem; margin: 1.25rem auto 2rem; line-height: 1.75; }
.prose p { margin-bottom: 1rem; color: var(--muted-fg); line-height: 1.8; }
.prose strong { color: var(--foreground); font-weight: 600; }
.compare-table { width: 100%; border-radius: calc(var(--radius)*2); border: 1px solid var(--border); overflow: hidden; background: var(--card); }
.compare-table th, .compare-table td { padding: .875rem 1rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .875rem; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table th { font-family: var(--font-heading); font-size: .8rem; color: var(--muted-fg); font-weight: 600; }
.compare-table th.highlight { color: var(--accent); font-weight: 700; }
.compare-table td:first-child { font-family: var(--font-heading); font-weight: 600; color: var(--foreground); }
.compare-table td.highlight { font-weight: 600; color: var(--foreground); }
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 640px)  { .practice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .practice-grid { grid-template-columns: repeat(3, 1fr); } }
.practice-card {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2);
}
.practice-card svg { width: 32px; height: 32px; color: var(--secondary); margin-bottom: 1rem; }
.practice-card h3 { font-family: var(--font-heading); font-weight: 700; color: var(--foreground); margin-bottom: .4rem; }
.practice-card p { font-size: .875rem; color: var(--muted-fg); }

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-section { padding: 5rem 1.5rem; }
.service-section:nth-child(even) { background: var(--muted); }
.service-section:nth-child(odd)  { background: var(--background); }
.service-detail-grid { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .service-detail-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.service-badge {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem;
}
.service-badge-icon {
  width: 48px; height: 48px;
  background: rgba(4,34,71,.08);
  border-radius: calc(var(--radius)*1.5);
  display: flex; align-items: center; justify-content: center;
}
.service-badge-icon svg { width: 24px; height: 24px; color: var(--primary); }
.service-badge-num { font-size: .7rem; font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--accent); }
.service-detail-title { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 700; color: var(--foreground); margin-bottom: .4rem; }
.service-tagline { color: var(--secondary); font-family: var(--font-heading); font-weight: 600; margin-bottom: 1rem; }
.service-overview { color: var(--muted-fg); line-height: 1.75; margin-bottom: 1.5rem; }
.service-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 2rem; }
.service-meta-item { display: flex; align-items: center; gap: .4rem; font-size: .875rem; color: var(--muted-fg); }
.service-meta-item svg { width: 16px; height: 16px; color: var(--accent); }
.service-right { background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius)*2); padding: 1.75rem; }
.scope-section h3, .ideal-section h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: .875rem;
  font-size: .95rem;
}
.scope-section { margin-bottom: 1.5rem; }
.scope-list li, .ideal-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; color: var(--muted-fg); margin-bottom: .5rem;
}
.scope-list li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  flex-shrink: 0; margin-top: .45rem;
}
.ideal-list li::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--secondary);
  flex-shrink: 0; margin-top: .45rem;
}

/* ============================================
   APPROACH PAGE
   ============================================ */
.phase-section { padding: 5rem 1.5rem; }
.phase-section:nth-child(odd)  { background: var(--background); }
.phase-section:nth-child(even) { background: var(--muted); }
.phase-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .phase-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.phase-header { display: flex; align-items: center; gap: .875rem; margin-bottom: 1.5rem; }
.phase-num {
  width: 48px; height: 48px;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 700; color: var(--primary-fg);
  flex-shrink: 0;
}
.phase-title { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; color: var(--foreground); }
.phase-dur { font-size: .8rem; color: var(--accent); font-weight: 600; font-family: var(--font-heading); }
.phase-activities h3, .phase-deliverables h3 {
  font-family: var(--font-heading); font-weight: 700; color: var(--foreground);
  margin-bottom: .75rem; font-size: .95rem;
}
.phase-deliverables {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2); padding: 1.5rem;
}
.activities-list li, .deliverables-list li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem; color: var(--muted-fg); margin-bottom: .5rem;
}
.activities-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--secondary); flex-shrink: 0; margin-top: .45rem;
}
.deliverables-list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: .45rem;
}
.differentiators-grid {
  display: grid; gap: 1.25rem;
}
@media (min-width: 768px) { .differentiators-grid { grid-template-columns: repeat(2, 1fr); } }
.differentiator-card {
  display: flex; gap: 1rem;
  padding: 1.75rem; background: var(--card);
  border: 1px solid var(--border); border-radius: calc(var(--radius)*2);
}
.differentiator-card svg { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
.differentiator-card h3 { font-family: var(--font-heading); font-weight: 700; color: var(--foreground); margin-bottom: .4rem; }
.differentiator-card p { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }

/* ============================================
   INSIGHTS PAGE
   ============================================ */
.insights-page { background: var(--background); }
.category-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.cat-btn {
  padding: .5rem 1.125rem; border-radius: 2rem;
  font-size: .875rem; font-weight: 500; border: none; cursor: pointer;
  transition: var(--transition); background: var(--muted); color: var(--muted-fg);
}
.cat-btn:hover, .cat-btn.active {
  background: var(--primary); color: var(--primary-fg);
}
.featured-article {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius)*3); overflow: hidden; margin-bottom: 2.5rem;
  text-decoration: none; color: inherit; display: block;
  transition: var(--transition);
}
.featured-article:hover { box-shadow: var(--shadow-lg); }
.featured-article img { width: 100%; height: 280px; object-fit: cover; }
.featured-article-body { padding: 2rem; }
.article-meta { display: flex; gap: 1rem; font-size: .75rem; color: var(--muted-fg); margin-bottom: .75rem; }
.article-meta span { display: flex; align-items: center; gap: .25rem; }
.article-meta svg { width: 12px; height: 12px; }
.featured-article h2 {
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  color: var(--foreground); margin-bottom: .75rem; transition: color .2s;
}
.featured-article:hover h2 { color: var(--secondary); }
.featured-article p { color: var(--muted-fg); margin-bottom: 1rem; line-height: 1.7; }
.articles-grid {
  display: grid; gap: 1.5rem; margin-bottom: 4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius)*2); overflow: hidden;
  text-decoration: none; color: inherit; display: flex; flex-direction: column;
  transition: var(--transition); height: 100%;
}
.article-card:hover { box-shadow: var(--shadow-md); }
.article-card img { width: 100%; height: 180px; object-fit: cover; }
.article-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.article-card h3 {
  font-family: var(--font-heading); font-weight: 700; color: var(--foreground);
  margin-bottom: .5rem; transition: color .2s; flex: 1;
}
.article-card:hover h3 { color: var(--secondary); }
.article-card p { font-size: .875rem; color: var(--muted-fg); line-height: 1.6; margin-bottom: .875rem; }
.read-more {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .875rem; font-weight: 600; color: var(--secondary); transition: color .2s;
}
.article-card:hover .read-more { color: var(--accent); }
.read-more svg { width: 14px; height: 14px; }
.newsletter-box {
  background: var(--primary); border-radius: calc(var(--radius)*3);
  padding: 3rem 2rem; text-align: center;
}
.newsletter-form {
  display: flex; flex-wrap: wrap; gap: .75rem;
  justify-content: center; max-width: 460px; margin: 1.5rem auto 0;
}
.newsletter-form input {
  flex: 1; min-width: 200px; padding: .7rem 1rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); color: var(--primary-fg); font-size: .9rem;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-note { font-size: .75rem; color: rgba(255,255,255,.35); margin-top: .75rem; }

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid; gap: 3rem;
}
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; } }
.contact-form { background: transparent; }
.form-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-group { display: flex; flex-direction: column; gap: .375rem; }
.form-group label {
  font-size: .875rem; font-weight: 500; color: var(--foreground);
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: .625rem .875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--foreground);
  font-size: .9rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4,34,71,.08);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2rem; }
.form-checkbox { display: flex; align-items: flex-start; gap: .625rem; margin-bottom: 1.5rem; }
.form-checkbox input { width: 16px; height: 16px; margin-top: .125rem; flex-shrink: 0; }
.form-checkbox label { font-size: .875rem; color: var(--muted-fg); cursor: pointer; }
.contact-sidebar { display: flex; flex-direction: column; gap: 2rem; }
.contact-info-item { display: flex; align-items: flex-start; gap: .75rem; }
.contact-info-item svg { width: 20px; height: 20px; color: var(--secondary); flex-shrink: 0; margin-top: .125rem; }
.contact-info-item span { font-size: .9rem; color: var(--muted-fg); }
.contact-hours p { font-size: .875rem; color: var(--muted-fg); margin-bottom: .25rem; }
.contact-note {
  background: var(--muted); border-radius: calc(var(--radius)*1.5); padding: 1.25rem;
}
.contact-note p { font-size: .875rem; color: var(--muted-fg); }
.contact-note strong { color: var(--foreground); }
.sidebar-heading { font-family: var(--font-heading); font-weight: 700; color: var(--foreground); margin-bottom: .875rem; }

/* ============================================
   POLICY PAGES
   ============================================ */
.policy-content { background: var(--background); padding: 5rem 1.5rem; }
.policy-body { max-width: 800px; margin: 0 auto; }
.policy-body h2 {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700;
  color: var(--foreground); margin: 2rem 0 .75rem;
}
.policy-body p { color: var(--muted-fg); line-height: 1.8; margin-bottom: 1rem; }
.policy-body ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.policy-body ul li { color: var(--muted-fg); font-size: .9rem; margin-bottom: .4rem; }

/* ============================================
   404 / NOT FOUND
   ============================================ */
.not-found {
  min-height: 70vh; display: flex; align-items: center;
  justify-content: center; text-align: center; background: var(--background);
}
.not-found h1 { font-size: 6rem; font-family: var(--font-heading); font-weight: 800; color: var(--accent); }
.not-found h2 { font-family: var(--font-heading); font-size: 1.75rem; color: var(--foreground); margin: .5rem 0 1rem; }
.not-found p { color: var(--muted-fg); margin-bottom: 2rem; }

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   WP CUSTOMIZER / ADMIN BAR OFFSET
   ============================================ */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #site-header { top: 46px; } }

/* ============================================
   RESPONSIVE UTILITIES
   ============================================ */
.overflow-x-auto { overflow-x: auto; }
.text-center { text-align: center; }
.mt-2  { margin-top: .5rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
