/*
Theme Name: BoutiqueFitness AI
Theme URI: https://boutiquefitness.ai
Description: Custom theme for boutiquefitness.ai — AI in the boutique fitness space
Author: BoutiqueFitness AI
Version: 1.0.0
License: GPL2
Text Domain: bfai-theme
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:       #0F172A;
  --navy-mid:   #1E293B;
  --teal:       #0891B2;
  --teal-light: #06B6D4;
  --purple:     #7C3AED;
  --purple-light:#A855F7;
  --white:      #FFFFFF;
  --off-white:  #F8FAFC;
  --light:      #F1F5F9;
  --border:     #E2E8F0;
  --text:       #1E293B;
  --text-mid:   #475569;
  --text-light: #94A3B8;

  --grad-teal:   linear-gradient(135deg, #0891B2 0%, #06B6D4 100%);
  --grad-purple: linear-gradient(135deg, #7C3AED 0%, #A855F7 100%);
  --grad-hero:   linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
  --grad-dark:   linear-gradient(135deg, #0F172A 0%, #1E293B 100%);

  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,.15);
  --shadow-card:0 2px 12px rgba(15,23,42,.08);

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

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'Fira Code', 'Consolas', monospace;

  --max-width:  1160px;
  --nav-height: 72px;
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-light); }
ul, ol { padding-left: 1.25rem; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,.75); }
.section--light { background: var(--off-white); }
.section--border-top { border-top: 1px solid var(--border); }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--grad-teal); color: var(--white); }
.btn-primary:hover { color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.4); }
.btn-secondary:hover { border-color: var(--white); color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-mid); color: var(--white); }
.btn-outline { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline:hover { background: var(--teal); color: var(--white); }
.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .85rem; }

/* ============================================================
   BADGE / CHIP
   ============================================================ */
.badge {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 100px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge-teal    { background: rgba(8,145,178,.12); color: var(--teal); }
.badge-purple  { background: rgba(124,58,237,.12); color: var(--purple); }
.badge-white   { background: rgba(255,255,255,.15); color: var(--white); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  height: var(--nav-height);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.site-logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  letter-spacing: -.02em;
}
.site-logo:hover { color: var(--teal-light); }
.site-logo .logo-dot { color: var(--teal-light); }
.site-logo .logo-ai {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
  text-decoration: none;
}
.main-nav a:hover, .main-nav a.current { color: var(--white); background: rgba(255,255,255,.08); }

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  color: var(--white);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero {
  background: var(--grad-hero);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 70% 40%, rgba(8,145,178,.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(124,58,237,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 .highlight {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: rgba(255,255,255,.8); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hero-stat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}
.hero-stat-card .stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-light);
  line-height: 1;
  margin-bottom: .35rem;
}
.hero-stat-card .stat-label {
  font-size: .8rem;
  color: rgba(255,255,255,.65);
  line-height: 1.3;
}

/* ============================================================
   PILLAR CARDS
   ============================================================ */
.pillars-section { padding: 5rem 0; background: var(--off-white); }
.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-title { margin-bottom: .75rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-mid); max-width: 580px; margin: 0 auto 3rem; }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  text-decoration: none;
  display: block;
  color: inherit;
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-accent, var(--grad-teal));
  opacity: 0;
  transition: opacity .2s;
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  color: inherit;
}
.pillar-card:hover::before { opacity: 1; }
.pillar-card:hover .pillar-arrow { transform: translateX(4px); }

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  background: var(--card-icon-bg, rgba(8,145,178,.1));
}
.pillar-card h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--navy); }
.pillar-card p { font-size: .9rem; color: var(--text-mid); margin-bottom: 1.25rem; }
.pillar-link {
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.pillar-arrow { transition: transform .2s; display: inline-block; }

/* pillar accent colors */
.pillar-marketing { --card-accent: linear-gradient(90deg,#0891B2,#06B6D4); --card-icon-bg: rgba(8,145,178,.1); }
.pillar-sales      { --card-accent: linear-gradient(90deg,#7C3AED,#A855F7); --card-icon-bg: rgba(124,58,237,.1); }
.pillar-ops        { --card-accent: linear-gradient(90deg,#059669,#10B981); --card-icon-bg: rgba(5,150,105,.1); }
.pillar-service    { --card-accent: linear-gradient(90deg,#D97706,#F59E0B); --card-icon-bg: rgba(217,119,6,.1); }
.pillar-reporting  { --card-accent: linear-gradient(90deg,#DC2626,#EF4444); --card-icon-bg: rgba(220,38,38,.1); }
.pillar-tech       { --card-accent: linear-gradient(90deg,#0F172A,#334155); --card-icon-bg: rgba(15,23,42,.08); }

/* ============================================================
   FEATURE STRIP
   ============================================================ */
.feature-strip {
  background: var(--navy);
  padding: 3rem 0;
}
.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.feature-strip-item { text-align: center; }
.feature-strip-icon { font-size: 2rem; margin-bottom: .75rem; }
.feature-strip-label { font-size: .9rem; font-weight: 600; color: rgba(255,255,255,.85); }

/* ============================================================
   BLOG SECTION
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.post-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--navy) 0%, #1E3A5F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-category {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.post-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.post-card h3 a { color: var(--navy); text-decoration: none; }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { font-size: .88rem; color: var(--text-mid); flex: 1; margin-bottom: 1rem; }
.post-card-meta { font-size: .78rem; color: var(--text-light); }

/* ============================================================
   PILLAR PAGE HERO
   ============================================================ */
.pillar-hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.pillar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  opacity: 1;
}
.pillar-hero .container { position: relative; z-index: 1; }
.pillar-hero h1 { color: var(--white); margin: .75rem 0 1.25rem; }
.pillar-hero .hero-desc { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 640px; }

.pillar-hero-marketing { background: linear-gradient(135deg, #0F3460 0%, #0891B2 100%); }
.pillar-hero-sales      { background: linear-gradient(135deg, #2D1B69 0%, #7C3AED 100%); }
.pillar-hero-operations { background: linear-gradient(135deg, #064E3B 0%, #059669 100%); }
.pillar-hero-service    { background: linear-gradient(135deg, #78350F 0%, #D97706 100%); }
.pillar-hero-reporting  { background: linear-gradient(135deg, #7F1D1D 0%, #DC2626 100%); }
.pillar-hero-technology { background: linear-gradient(135deg, #0F172A 0%, #334155 100%); }

/* ============================================================
   CONTENT SECTIONS (Pillar Pages)
   ============================================================ */
.content-section { padding: 4rem 0; }
.content-section + .content-section { border-top: 1px solid var(--border); }

.content-grid-text-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.content-grid-text-media.reverse { direction: rtl; }
.content-grid-text-media.reverse > * { direction: ltr; }

.media-block {
  background: var(--light);
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  border: 1px solid var(--border);
}

.benefit-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.benefit-list li {
  display: flex;
  gap: .75rem;
  padding: .6rem 0;
  font-size: .95rem;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.benefit-list li:last-child { border-bottom: none; }
.benefit-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05rem;
}

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.tool-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: box-shadow .2s, border-color .2s;
}
.tool-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.tool-card-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.tool-card h4 { margin-bottom: .4rem; font-size: 1rem; }
.tool-card p { font-size: .85rem; color: var(--text-mid); margin: 0; }

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { padding: 4rem 0; background: var(--off-white); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color .2s;
}
.faq-question:hover { color: var(--teal); }
.faq-question.open { color: var(--teal); }
.faq-chevron { transition: transform .3s; flex-shrink: 0; color: var(--text-light); }
.faq-question.open .faq-chevron { transform: rotate(180deg); color: var(--teal); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-answer.open { max-height: 400px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  font-size: .95rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--grad-hero);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(8,145,178,.15) 0%, transparent 70%);
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.blog-hero { background: var(--navy); padding: 4rem 0 3rem; }
.blog-hero h1 { color: var(--white); }
.blog-hero p { color: rgba(255,255,255,.75); }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding: 4rem 0;
}
.blog-main-grid { display: grid; gap: 2rem; }

.post-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: box-shadow .2s;
}
.post-list-card:hover { box-shadow: var(--shadow-md); }
.post-list-card h2 { font-size: 1.3rem; margin: .5rem 0 .75rem; }
.post-list-card h2 a { color: var(--navy); }
.post-list-card h2 a:hover { color: var(--teal); }
.post-list-meta { font-size: .8rem; color: var(--text-light); margin-bottom: 1rem; }
.post-list-card p { font-size: .93rem; margin-bottom: 1rem; }
.read-more { font-size: .88rem; font-weight: 600; color: var(--teal); }

/* sidebar */
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-links { list-style: none; padding: 0; }
.sidebar-links li { padding: .4rem 0; border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a { font-size: .9rem; color: var(--text); }
.sidebar-links a:hover { color: var(--teal); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero { background: var(--navy); padding: 4rem 0 3rem; }
.post-hero h1 { color: var(--white); max-width: 760px; }
.post-hero-meta { color: rgba(255,255,255,.65); font-size: .9rem; margin-top: 1rem; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 4rem 0;
}
.post-content {
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
}
.post-content h2 { margin: 2.5rem 0 1rem; color: var(--navy); font-size: 1.6rem; }
.post-content h3 { margin: 2rem 0 .75rem; color: var(--navy); }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem; padding-left: 1.5rem; }
.post-content li { margin-bottom: .4rem; color: var(--text-mid); }
.post-content strong { color: var(--navy); font-weight: 600; }
.post-content a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   ADS ZONES
   ============================================================ */
.ad-banner {
  background: var(--light);
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .8rem;
  text-align: center;
  padding: 1rem;
}
.ad-sidebar { min-height: 250px; }
.ad-leaderboard { min-height: 90px; }
.ad-inline { margin: 2rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 4rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand { }
.footer-brand .site-logo { margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-col h5 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .9rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--teal-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; gap: .5rem; justify-content: center; padding: 2rem 0; }
.pagination a, .pagination span {
  padding: .5rem .9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text);
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.pagination a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pagination .current { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: grid; grid-template-columns: repeat(2, 1fr); max-width: 400px; margin: 0 auto; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .feature-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-layout { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 3rem 0; }
  .section--lg { padding: 4rem 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .content-grid-text-media { grid-template-columns: 1fr; }
  .content-grid-text-media.reverse { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
  .hero-actions { flex-direction: column; }
  .cta-actions { flex-direction: column; align-items: center; }

  .main-nav { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--navy); padding: 1rem 1.5rem 1.5rem; box-shadow: var(--shadow-lg); border-top: 1px solid rgba(255,255,255,.08); }
  .main-nav.open { display: flex; }
  .main-nav a { width: 100%; padding: .65rem 1rem; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
}
