/*
Theme Name:  Bernays Academy
Theme URI:   https://bernaysacademy.com
Author:      Solvv LLC
Author URI:  https://letsolvv.com
Description: A full-featured WordPress theme for Bernays Academy. Includes an animated brand identity, cohort course architecture, lead capture, and a polished dark UI built for conversion. Developed by Solvv LLC. Support: hi@letsolvv.com.
Version:     2.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: bernays-academy
Tags:        education, one-column, two-columns, custom-menu, featured-images, full-width-template, sticky-post, threaded-comments, translation-ready

Brand Palette (Bernays Academy):
  Primary Navy   #2f4379
  Steel Blue     #81a5d8
  Near Black     #212121
  Mid Grey       #9e9e9e
  White          #ffffff
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — BRAND BOOK
   ============================================================ */
:root {
  --navy:          #2f4379;
  --navy-dark:     #1e2d53;
  --navy-mid:      #263660;
  --steel:         #81a5d8;
  --steel-light:   #a8c3e8;
  --steel-pale:    rgba(129, 165, 216, 0.12);
  --charcoal:      #212121;
  --grey:          #9e9e9e;
  --grey-light:    #e8e8e8;
  --white:         #ffffff;
  --off-white:     #f7f8fc;

  --font-display:  'DM Serif Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, -apple-system, sans-serif;

  --radius:        4px;
  --radius-md:     8px;
  --shadow-sm:     0 2px 12px rgba(47, 67, 121, 0.08);
  --shadow-md:     0 8px 32px rgba(47, 67, 121, 0.14);
  --shadow-lg:     0 24px 64px rgba(47, 67, 121, 0.18);

  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --transition:    0.4s var(--ease-out);

  --container:     1160px;
  --gutter:        40px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--steel); }
ul, ol { list-style: none; }
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.text-center { text-align: center; }
.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.section-label--dark { color: var(--navy); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  opacity: 0;
  transition: opacity 0.3s;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--steel);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(129,165,216,0.3);
}
.btn-primary:hover {
  background: var(--steel-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(129,165,216,0.4);
}
.btn-outline {
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-outline-white {
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn-lg { padding: 18px 36px; font-size: 0.9375rem; }

/* ============================================================
   SITE HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-light);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}
.site-logo:hover { color: var(--navy); }
.logo-mark {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}
.logo-mark span {
  display: block;
  height: 3.5px;
  background: var(--steel);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}
.logo-mark span:nth-child(1) { width: 26px; }
.logo-mark span:nth-child(2) { width: 18px; }
.logo-mark span:nth-child(3) { width: 32px; }
.logo-mark span:nth-child(4) { width: 14px; }
.logo-mark span:nth-child(5) { width: 24px; }
.logo-mark span:nth-child(6) { width: 12px; }
.site-logo:hover .logo-mark span:nth-child(2) { width: 26px; }
.site-logo:hover .logo-mark span:nth-child(4) { width: 22px; }

.logo-text {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--navy);
}
.logo-text small {
  display: block;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--grey);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 36px; }
.primary-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 2px;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--steel);
  transition: width 0.3s var(--ease-out);
}
.primary-nav a:hover,
.primary-nav a.current-menu-item { color: var(--navy); }
.primary-nav a:hover::after,
.primary-nav a.current-menu-item::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }

/* Mobile Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO SECTION (Homepage)
   ============================================================ */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(129,165,216,0.15) 0%, transparent 70%);
  top: -100px;
  right: -100px;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(129,165,216,0.08) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
}
.hero-bars {
  position: absolute;
  top: 8%;
  right: 5%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  opacity: 0.1;
}
.hero-bars span {
  display: block;
  height: 5px;
  background: var(--steel);
  border-radius: 2px;
}
.hero-bars span:nth-child(1) { width: 160px; }
.hero-bars span:nth-child(2) { width: 110px; }
.hero-bars span:nth-child(3) { width: 200px; }
.hero-bars span:nth-child(4) { width: 140px; }
.hero-bars span:nth-child(5) { width: 180px; }
.hero-bars span:nth-child(6) { width: 100px; }
.hero-bars span:nth-child(7) { width: 160px; }
.hero-bars span:nth-child(8) { width: 130px; }

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content .section-label { color: var(--steel-light); }
.hero-title {
  font-size: clamp(2.75rem, 6vw, 5rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.0;
}
.hero-title em {
  font-style: italic;
  color: var(--steel);
}
.hero-body {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat__number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat__label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(129,165,216,0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 40px;
  width: 100%;
  max-width: 400px;
}
.hero-card__diamond {
  width: 80px;
  height: 80px;
  background: var(--steel);
  transform: rotate(45deg);
  border-radius: var(--radius);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card__diamond span {
  display: block;
  transform: rotate(-45deg);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--white);
}
.hero-card__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}
.hero-card__sub {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  line-height: 1.6;
}

/* ============================================================
   FEATURES / PILLARS SECTION
   ============================================================ */
.features { padding: 100px 0; background: var(--white); }
.features-header { text-align: center; margin-bottom: 64px; }
.features-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.features-header p {
  font-size: 1.0625rem;
  color: var(--grey);
  max-width: 520px;
  margin: 0 auto;
  font-weight: 300;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature-card {
  padding: 40px 32px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--steel);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.feature-card:hover { border-color: var(--steel-pale); box-shadow: var(--shadow-md); transform: translateY(-6px); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--steel-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-icon svg { width: 22px; height: 22px; fill: var(--steel); }
.feature-card h3 {
  font-size: 1.1875rem;
  margin-bottom: 12px;
  color: var(--navy);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--grey);
  line-height: 1.7;
  font-weight: 300;
}

/* ============================================================
   COURSES / PROGRAMS SECTION
   ============================================================ */
.programs { padding: 100px 0; background: var(--off-white); }
.programs-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; flex-wrap: wrap; gap: 20px; }
.programs-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.program-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}
.program-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.program-card__badge {
  padding: 32px 28px 28px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.program-card__badge::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 100px;
  height: 100px;
  border: 1.5px solid rgba(129,165,216,0.2);
  transform: rotate(45deg);
  border-radius: 4px;
}
.program-card__tag {
  display: inline-block;
  background: var(--steel-pale);
  border: 1px solid rgba(129,165,216,0.3);
  color: var(--steel-light);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 16px;
}
.program-card__badge h3 {
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: 6px;
}
.program-card__badge p { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }
.program-card__body { padding: 28px; }
.program-card__features { margin-bottom: 28px; }
.program-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--charcoal);
  padding: 7px 0;
  border-bottom: 1px solid var(--grey-light);
}
.program-card__features li:last-child { border-bottom: none; }
.program-card__features li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  background: var(--steel);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.program-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.program-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--navy);
}
.program-price span {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--grey);
  display: block;
  line-height: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 100px 0; background: var(--navy); position: relative; overflow: hidden; }
.testimonials::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}
.testimonials-header { text-align: center; margin-bottom: 64px; }
.testimonials-header h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.testimonials-header p { color: rgba(255,255,255,0.5); font-size: 1.0625rem; font-weight: 300; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(129,165,216,0.15);
  border-radius: var(--radius-md);
  padding: 36px 32px;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(129,165,216,0.35);
}
.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--steel);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 28px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--steel-pale);
  border: 2px solid rgba(129,165,216,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--steel);
}
.testimonial-name { font-size: 0.9375rem; font-weight: 600; color: var(--white); }
.testimonial-role { font-size: 0.8125rem; color: rgba(255,255,255,0.4); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 80px 0;
  background: var(--steel);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy-dark) 0%, transparent 60%);
  opacity: 0.4;
}
.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-band h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--white);
  max-width: 560px;
}
.cta-band h2 em { font-style: italic; color: rgba(255,255,255,0.75); }

/* ============================================================
   BLOG / POSTS ARCHIVE
   ============================================================ */
.blog-section { padding: 100px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--grey-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.blog-card__thumb {
  height: 220px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.blog-card:hover .blog-card__thumb img { transform: scale(1.06); }
.blog-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
}
.blog-card__thumb-placeholder .logo-mark { transform: scale(1.5); opacity: 0.3; }
.blog-card__body { padding: 28px; }
.blog-card__cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
  line-height: 1.3;
}
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--steel); }
.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--grey);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--grey);
}
.read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.3s;
}
.read-more:hover { color: var(--navy); gap: 10px; }
.read-more::after { content: '→'; }

/* ============================================================
   SINGLE POST
   ============================================================ */
.single-hero { padding: 80px 0 60px; background: var(--off-white); border-bottom: 1px solid var(--grey-light); }
.post-category-link {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.single-hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); max-width: 780px; margin-bottom: 24px; }
.post-meta { display: flex; align-items: center; gap: 20px; font-size: 0.875rem; color: var(--grey); }
.post-content {
  padding: 72px 0 100px;
  max-width: 740px;
  margin: 0 auto;
}
.post-content p { font-size: 1.0625rem; line-height: 1.8; color: #333; margin-bottom: 28px; font-weight: 300; }
.post-content h2 { font-size: 1.875rem; margin: 48px 0 20px; }
.post-content h3 { font-size: 1.375rem; margin: 36px 0 16px; }
.post-content ul, .post-content ol { margin: 0 0 28px 28px; }
.post-content li { font-size: 1.0625rem; line-height: 1.8; color: #333; margin-bottom: 10px; font-weight: 300; list-style: disc; }
.post-content blockquote {
  border-left: 3px solid var(--steel);
  padding: 16px 28px;
  margin: 40px 0;
  background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.post-content blockquote p { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; color: var(--navy); margin-bottom: 0; }
.post-content img { border-radius: var(--radius-md); margin: 40px 0; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget { margin-bottom: 40px; }
.sidebar-widget h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--grey-light);
}

/* ============================================================
   LEAD CAPTURE / NEWSLETTER
   ============================================================ */
.newsletter { padding: 100px 0; background: var(--navy); }
.newsletter-inner { max-width: 600px; margin: 0 auto; text-align: center; }
.newsletter h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; }
.newsletter h2 em { font-style: italic; color: var(--steel); }
.newsletter p { color: rgba(255,255,255,0.55); font-size: 1.0625rem; font-weight: 300; margin-bottom: 40px; }
.newsletter-form {
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(129,165,216,0.25);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.newsletter-form:focus-within {
  border-color: var(--steel);
  box-shadow: 0 0 0 4px rgba(129,165,216,0.15);
}
.newsletter-form input[type="email"] {
  flex: 1;
  background: transparent;
  padding: 16px 22px;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--white);
  border: none;
  outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }
.newsletter-form button {
  background: var(--steel);
  color: var(--white);
  padding: 16px 28px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  flex-shrink: 0;
  animation: pulse-btn 3s ease-in-out infinite;
}
.newsletter-form button:hover { background: var(--steel-light); animation: none; }
@keyframes pulse-btn {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: inset -4px 0 0 0 rgba(255,255,255,0.1); }
}
.newsletter-note { margin-top: 14px; font-size: 0.75rem; color: rgba(255,255,255,0.25); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.6); }
.footer-top { padding: 72px 0 56px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .site-logo { margin-bottom: 20px; }
.footer-brand .site-logo .logo-text,
.footer-brand .site-logo .logo-text small { color: rgba(255,255,255,0.7); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; font-weight: 300; max-width: 280px; }
.footer-col h5 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.5); font-weight: 300; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--steel-light); }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--steel); border-color: var(--steel); color: var(--white); }
.footer-social svg { width: 14px; height: 14px; fill: currentColor; }
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8125rem; font-weight: 300; }
.footer-bottom a { color: rgba(255,255,255,0.4); transition: color 0.3s; }
.footer-bottom a:hover { color: var(--steel-light); }
.footer-legal { display: flex; gap: 20px; }

/* ============================================================
   COMING SOON PAGE TEMPLATE
   ============================================================ */
.coming-soon-page {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.cs-noise {
  position: fixed; inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.03; pointer-events: none; z-index: 9999;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --gutter: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { display: none; }
  .features-grid,
  .programs-grid,
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .primary-nav,
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .primary-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    padding: 24px var(--gutter) 40px;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: var(--shadow-md);
    gap: 24px;
    align-items: flex-start;
    z-index: 999;
  }
  .primary-nav.open .btn { display: inline-flex; }
  .features-grid,
  .programs-grid,
  .testimonials-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .hero-stats { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

@media (max-width: 480px) {
  :root { --gutter: 20px; }
  .programs-header { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   ANIMATIONS (scroll-triggered via JS)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
