/*
Theme Name: Fringe Lines Light
Theme URI: https://fringelines.io
Author: Quinn & Doom
Author URI: https://fringelines.io
Description: Premium light theme for Fringe Lines — a GTM podcast, newsletter, and solutions hub. Built on Kadence. Shadcn-inspired light mode, near-identical to Fringe Lines Dark.
Template: kadence
Version: 2.0.0
License: GNU General Public License v3.0
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: fringelines-light
*/

/* ==========================================================================
   Fringe Lines — Light Theme
   Shadcn-inspired light mode counterpart to Fringe Lines Dark
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --fl-bg: #F7F7F5;                      /* warm off-white — easier on the eyes than pure #FFFFFF */
  --fl-surface: #FFFFFF;                 /* cards stay pure white so they "pop" against the body */
  --fl-surface-hover: #FAFAFA;
  --fl-surface-elevated: #EFEFEC;
  --fl-primary: #059669;                 /* emerald-600 — readable green on white */
  --fl-secondary: #E87B35;
  --fl-accent: #2563EB;                  /* blue-600 */
  --fl-text: #18181B;                    /* zinc-900 */
  --fl-text-bright: #09090B;             /* near-black */
  --fl-muted: #71717A;                   /* zinc-500 */
  --fl-border: #E4E4E7;                  /* zinc-200 */
  --fl-border-glow: rgba(5, 150, 105, 0.3);
  --fl-glow: rgba(5, 150, 105, 0.06);
  --fl-glow-strong: rgba(5, 150, 105, 0.12);
  --fl-gradient-start: #FFFFFF;
  --fl-gradient-end: #FAFAFA;
  --fl-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  --fl-shadow-glow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px -8px rgba(5, 150, 105, 0.18);
  --fl-radius: 12px;
  --fl-radius-lg: 16px;
  --fl-radius-xl: 24px;
  --fl-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --fl-max-width: 1200px;
  --fl-font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --fl-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(61, 255, 162, 0.05); }
  50% { box-shadow: 0 0 40px rgba(61, 255, 162, 0.12); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- Global Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-color: var(--fl-bg) !important;
  color: var(--fl-text) !important;
  font-family: var(--fl-font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Kadence parent theme structural overrides */
.site,
.site-container,
.site-inner,
.wp-site-blocks,
#wrapper,
#inner-wrap,
.content-wrap,
.site-main,
.content-area,
.site-content {
  background-color: var(--fl-bg) !important;
  color: var(--fl-text) !important;
}

/* Override Kadence's inline color variables */
body .site {
  --global-palette1: #09090B;   /* primary text → near-black */
  --global-palette2: #18181B;   /* headings */
  --global-palette3: #71717A;   /* muted */
  --global-palette4: #A1A1AA;   /* extra muted */
  --global-palette5: #E4E4E7;   /* borders */
  --global-palette6: #F4F4F5;   /* elevated surface */
  --global-palette7: #FAFAFA;   /* surface alt */
  --global-palette8: #FFFFFF;   /* body bg */
  --global-palette9: #FFFFFF;   /* secondary bg */
  --global-body-font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --global-heading-font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Ensure all wp-block-group sections inherit dark bg */
.wp-block-group {
  color: var(--fl-text);
}

/* Override entry headers and titles */
.entry-hero,
.page-hero-section,
.entry-header {
  background-color: var(--fl-bg) !important;
}

.entry-title,
.page-title {
  color: var(--fl-text-bright) !important;
  font-family: var(--fl-font-heading) !important;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fl-font-heading);
  color: var(--fl-text-bright);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.8rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); }

p {
  color: var(--fl-muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

a {
  color: var(--fl-primary);
  text-decoration: none;
  transition: color var(--fl-transition);
}

a:hover {
  color: var(--fl-accent);
}

/* ---------- Utility Classes ---------- */
.fl-container {
  max-width: var(--fl-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.fl-kicker {
  font-family: var(--fl-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fl-primary);
  margin-bottom: 1rem;
  display: block;
}

.fl-gradient-text {
  background: linear-gradient(135deg, var(--fl-primary), var(--fl-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fl-highlight {
  color: var(--fl-primary);
}

.fl-section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--fl-border), transparent);
  margin: 0;
  border: none;
}

/* ---------- Buttons ---------- */
.fl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: var(--fl-radius);
  font-family: var(--fl-font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--fl-transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}

.fl-btn-primary {
  background: transparent;
  color: var(--fl-primary);
  border-color: var(--fl-primary);
}

.fl-btn-primary:hover {
  background: var(--fl-primary);
  color: var(--fl-bg);
  box-shadow: 0 0 24px rgba(61, 255, 162, 0.2);
}

.fl-btn-secondary {
  background: var(--fl-secondary);
  color: var(--fl-text-bright);
  border-color: var(--fl-secondary);
}

.fl-btn-secondary:hover {
  background: #D06B28;
  border-color: #D06B28;
  box-shadow: 0 0 24px rgba(232, 123, 53, 0.2);
  color: var(--fl-text-bright);
}

.fl-btn-ghost {
  background: transparent;
  color: var(--fl-text);
  border-color: var(--fl-border);
}

.fl-btn-ghost:hover {
  border-color: var(--fl-muted);
  color: var(--fl-text-bright);
}

.fl-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.site-header,
#masthead {
  background: rgba(247, 247, 245, 0.85) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--fl-border) !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header a,
#masthead a {
  color: var(--fl-text) !important;
  font-family: var(--fl-font-heading);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color var(--fl-transition);
}

.site-header a:hover,
#masthead a:hover {
  color: var(--fl-primary) !important;
}

/* Header CTA button */
.header-button .wp-block-button__link,
.site-header .wp-block-button__link {
  background: transparent !important;
  color: var(--fl-primary) !important;
  border: 2px solid var(--fl-primary) !important;
  border-radius: var(--fl-radius) !important;
  font-family: var(--fl-font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  transition: all var(--fl-transition) !important;
}

.header-button .wp-block-button__link:hover,
.site-header .wp-block-button__link:hover {
  background: var(--fl-primary) !important;
  color: var(--fl-bg) !important;
  box-shadow: 0 0 24px rgba(5, 150, 105, 0.2) !important;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.fl-hero {
  position: relative;
  background: var(--fl-bg);
  padding: 8rem 2rem 6rem;
  overflow: hidden;
  text-align: left;
  border-bottom: none;
}

.fl-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('assets/images/hero-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.35;
  z-index: 1;
}

.fl-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--fl-bg) 95%);
  z-index: 2;
}

/* Edge glow effects (like Refine Labs) */
.fl-hero .fl-hero-glow-left,
.fl-hero .fl-hero-glow-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  z-index: 1;
  pointer-events: none;
}

.fl-hero .fl-hero-glow-left {
  left: 0;
  background: linear-gradient(90deg, rgba(91, 141, 239, 0.08), transparent);
}

.fl-hero .fl-hero-glow-right {
  right: 0;
  background: linear-gradient(270deg, rgba(61, 255, 162, 0.06), transparent);
}

.fl-hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--fl-max-width);
  margin: 0 auto;
  animation: fadeInUp 0.8s ease-out;
}

.fl-hero h1 {
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.fl-hero .fl-tagline {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--fl-muted);
  max-width: 620px;
  margin: 0 0 2.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   SOCIAL PROOF BAR
   ========================================================================== */
.fl-social-proof {
  background: var(--fl-surface);
  border-top: 1px solid var(--fl-border);
  border-bottom: 1px solid var(--fl-border);
  padding: 2.5rem 2rem;
}

.fl-social-proof-inner {
  max-width: var(--fl-max-width);
  margin: 0 auto;
  text-align: center;
}

.fl-social-proof .fl-kicker {
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  color: var(--fl-muted);
}

.fl-social-proof-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  opacity: 0.5;
  filter: grayscale(1) brightness(2);
  transition: opacity var(--fl-transition);
}

.fl-social-proof-logos:hover {
  opacity: 0.7;
}

.fl-social-proof-logos img {
  height: 28px;
  width: auto;
}

.fl-social-proof-logos span {
  font-family: var(--fl-font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fl-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   CONTENT PILLARS (Podcast / Newsletter / GTM)
   ========================================================================== */
.fl-pillars {
  padding: 6rem 2rem;
  background: var(--fl-bg);
}

.fl-pillars-inner {
  max-width: var(--fl-max-width);
  margin: 0 auto;
}

.fl-section-header {
  text-align: center;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease-out;
}

.fl-section-header h2 {
  margin-bottom: 1rem;
}

.fl-section-header p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.fl-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.fl-pillar-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--fl-transition);
  position: relative;
  overflow: hidden;
}

.fl-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--fl-primary), var(--fl-accent));
  opacity: 0;
  transition: opacity var(--fl-transition);
}

.fl-pillar-card:hover {
  border-color: var(--fl-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--fl-shadow-glow);
  background: var(--fl-surface-hover);
}

.fl-pillar-card:hover::before {
  opacity: 1;
}

.fl-pillar-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.fl-pillar-card:nth-child(2) .fl-pillar-icon {
  animation-delay: 0.5s;
}

.fl-pillar-card:nth-child(3) .fl-pillar-icon {
  animation-delay: 1s;
}

.fl-pillar-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}

.fl-pillar-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.fl-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--fl-font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fl-primary);
  transition: gap var(--fl-transition);
}

.fl-pillar-link:hover {
  gap: 0.6rem;
  color: var(--fl-primary);
}

/* ==========================================================================
   GTM SOLUTIONS GRID
   ========================================================================== */
.fl-solutions {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, var(--fl-bg), var(--fl-gradient-end));
}

.fl-solutions-inner {
  max-width: var(--fl-max-width);
  margin: 0 auto;
}

.fl-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  padding: 0;
}

.fl-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  padding: 2.5rem;
  transition: all var(--fl-transition);
  position: relative;
  overflow: hidden;
}

.fl-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--fl-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--fl-transition);
}

.fl-card:hover {
  border-color: var(--fl-border-glow);
  transform: translateY(-3px);
  box-shadow: var(--fl-shadow-glow);
  background: var(--fl-surface-hover);
}

.fl-card:hover::after {
  transform: scaleX(1);
}

.fl-card .fl-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.fl-card h3 {
  color: var(--fl-text-bright);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.fl-card p {
  color: var(--fl-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.fl-card .fl-card-tag {
  display: inline-block;
  background: var(--fl-glow);
  color: var(--fl-primary);
  font-family: var(--fl-font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-top: 1.25rem;
}

/* ==========================================================================
   PODCAST SECTION
   ========================================================================== */
.fl-podcast {
  padding: 6rem 2rem;
  background: var(--fl-bg);
}

.fl-podcast-inner {
  max-width: var(--fl-max-width);
  margin: 0 auto;
}

.fl-podcast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.fl-podcast-header-left h2 {
  margin-bottom: 0.5rem;
}

.fl-podcast-header-left p {
  max-width: 500px;
}

.fl-podcast-platforms {
  display: flex;
  gap: 0.75rem;
}

.fl-podcast-platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 50%;
  color: var(--fl-muted);
  font-size: 1.2rem;
  transition: all var(--fl-transition);
}

.fl-podcast-platform-link:hover {
  border-color: var(--fl-primary);
  color: var(--fl-primary);
  box-shadow: 0 0 16px rgba(61, 255, 162, 0.1);
}

.fl-episode {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all var(--fl-transition);
}

.fl-episode:hover {
  border-color: var(--fl-border-glow);
  background: var(--fl-surface-hover);
  box-shadow: var(--fl-shadow-glow);
}

.fl-episode-artwork {
  width: 80px;
  height: 80px;
  border-radius: var(--fl-radius);
  overflow: hidden;
  flex-shrink: 0;
}

.fl-episode-artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fl-episode-content {
  flex: 1;
  min-width: 0;
}

.fl-episode-content h4 {
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
  color: var(--fl-text-bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-episode-meta {
  color: var(--fl-muted);
  font-size: 0.85rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.fl-episode-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.fl-episode-number {
  font-family: var(--fl-font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--fl-primary);
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.fl-episode-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--fl-primary);
  color: var(--fl-bg);
  border-radius: 50%;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--fl-transition);
  cursor: pointer;
  border: none;
}

.fl-episode-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(61, 255, 162, 0.25);
}

/* ==========================================================================
   NEWSLETTER SIGNUP
   ========================================================================== */
.fl-newsletter {
  padding: 6rem 2rem;
  background: var(--fl-surface);
  position: relative;
  overflow: hidden;
}

.fl-newsletter::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('assets/images/newsletter-bg.png');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
}

.fl-newsletter-inner {
  max-width: var(--fl-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.fl-newsletter-content h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.fl-newsletter-content p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.fl-newsletter-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.fl-newsletter-benefits li {
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--fl-text);
  font-size: 0.95rem;
}

.fl-newsletter-benefits li::before {
  content: '◆';
  color: var(--fl-primary);
  font-size: 0.6rem;
}

.fl-newsletter-form {
  background: var(--fl-surface-elevated);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  padding: 2.5rem;
}

.fl-newsletter-form label {
  display: block;
  font-family: var(--fl-font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fl-muted);
  margin-bottom: 0.5rem;
}

.fl-newsletter-form input[type="email"],
.fl-newsletter-form input[type="text"] {
  width: 100%;
  padding: 0.9rem 1.25rem;
  background: var(--fl-bg);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  color: var(--fl-text);
  font-family: var(--fl-font-body);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--fl-transition);
}

.fl-newsletter-form input[type="email"]:focus,
.fl-newsletter-form input[type="text"]:focus {
  outline: none;
  border-color: var(--fl-primary);
  box-shadow: 0 0 0 3px rgba(61, 255, 162, 0.1);
}

.fl-newsletter-form .fl-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.fl-newsletter-form button,
.fl-newsletter-form .fl-btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   FEATURE LIST
   ========================================================================== */
.fl-feature-list {
  list-style: none;
  padding: 0;
}

.fl-feature-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--fl-border);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  line-height: 1.6;
  color: var(--fl-text);
}

.fl-feature-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   SECTION — GENERAL
   ========================================================================== */
.fl-section {
  padding: 5rem 0;
  max-width: var(--fl-max-width);
  margin: 0 auto;
}

/* Page content area */
.entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer,
#colophon {
  background: var(--fl-surface) !important;
  border-top: 1px solid var(--fl-border) !important;
  color: var(--fl-text);
}

.fl-footer {
  max-width: var(--fl-max-width);
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.fl-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.fl-footer-brand h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--fl-text-bright);
}

.fl-footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 300px;
}

.fl-footer-col h4 {
  font-family: var(--fl-font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fl-primary);
  margin-bottom: 1.25rem;
}

.fl-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fl-footer-col ul li {
  margin-bottom: 0.6rem;
}

.fl-footer-col ul li a {
  color: var(--fl-muted);
  font-size: 0.9rem;
  transition: color var(--fl-transition);
}

.fl-footer-col ul li a:hover {
  color: var(--fl-text-bright);
}

.fl-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--fl-border);
  flex-wrap: wrap;
  gap: 1rem;
}

.fl-footer-bottom p {
  font-size: 0.85rem;
  color: var(--fl-muted);
}

.fl-footer-social {
  display: flex;
  gap: 0.75rem;
}

.fl-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--fl-bg);
  border: 1px solid var(--fl-border);
  border-radius: 50%;
  color: var(--fl-muted);
  font-size: 1rem;
  transition: all var(--fl-transition);
}

.fl-footer-social a:hover {
  border-color: var(--fl-primary);
  color: var(--fl-primary);
}

/* ==========================================================================
   KADENCE BLOCK OVERRIDES
   ========================================================================== */
.wp-block-kadence-tabs .kt-tabs-title-list li.kt-tab-title-active {
  border-color: var(--fl-primary) !important;
  color: var(--fl-primary) !important;
}

.wp-block-button .wp-block-button__link {
  background-color: var(--fl-primary) !important;
  color: var(--fl-bg) !important;
  border-radius: var(--fl-radius) !important;
  font-family: var(--fl-font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  transition: all var(--fl-transition) !important;
}

.wp-block-button .wp-block-button__link:hover {
  background-color: #2CE08E !important;
  box-shadow: 0 0 24px rgba(61, 255, 162, 0.2) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--fl-primary) !important;
  border: 2px solid var(--fl-primary) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--fl-primary) !important;
  color: var(--fl-bg) !important;
}

/* Separator / HR */
.wp-block-separator {
  border-color: var(--fl-border) !important;
  opacity: 1;
}

/* Group blocks with dark backgrounds */
.wp-block-group {
  border-radius: var(--fl-radius);
}

/* Cover blocks */
.wp-block-cover {
  border-radius: var(--fl-radius-lg);
  overflow: hidden;
}

/* ==========================================================================
   NEWSLETTER BOX (Legacy class compat)
   ========================================================================== */
.fl-newsletter-box {
  background: var(--fl-surface-elevated);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-xl);
  padding: 3rem;
  text-align: center;
  margin: 3rem 0;
  animation: glowPulse 4s ease-in-out infinite;
}

.fl-newsletter-box h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--fl-text-bright);
}

.fl-newsletter-box p {
  color: var(--fl-muted);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   SCROLL ANIMATIONS (Intersection Observer via JS)
   ========================================================================== */
.fl-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fl-animate.fl-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 992px) {
  .fl-pillar-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fl-newsletter-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .fl-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .fl-podcast-header {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .fl-hero {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
  }

  .fl-hero .fl-tagline {
    margin: 0 auto 2rem;
  }

  .fl-btn-group {
    justify-content: center;
  }

  .fl-card-grid {
    grid-template-columns: 1fr;
  }

  .fl-episode {
    flex-direction: column;
    text-align: center;
  }

  .fl-episode-content h4 {
    white-space: normal;
  }

  .fl-section {
    padding: 3rem 1rem;
  }

  .fl-footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fl-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .fl-newsletter-form .fl-form-row {
    grid-template-columns: 1fr;
  }

  .fl-social-proof-logos {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .fl-hero h1 {
    font-size: 2.2rem;
  }

  .fl-pillar-card {
    padding: 2rem 1.5rem;
  }

  .fl-card {
    padding: 2rem 1.5rem;
  }

  .fl-newsletter-form {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   EPISODES PAGE
   ========================================================================== */
.fl-episodes-page {
  background: var(--fl-bg);
}

.fl-episodes-hero {
  padding: 5rem 0 3rem;
  background: linear-gradient(180deg, var(--fl-gradient-end), var(--fl-bg));
  border-bottom: 1px solid var(--fl-border);
}

.fl-episodes-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.fl-episodes-subtitle {
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--fl-muted);
  line-height: 1.7;
}

.fl-episodes-grid-section {
  padding: 4rem 0 6rem;
}

.fl-episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Episode Card */
.fl-episode-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius-lg);
  overflow: hidden;
  transition: all var(--fl-transition);
  text-decoration: none;
  display: flex;
  flex-direction: column;
}

.fl-episode-card:hover {
  border-color: var(--fl-border-glow);
  transform: translateY(-4px);
  box-shadow: var(--fl-shadow-glow);
  background: var(--fl-surface-hover);
}

/* Episode Card Image */
.fl-episode-card-image {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square ratio */
  overflow: hidden;
  background: var(--fl-surface-elevated);
}

.fl-episode-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--fl-transition);
}

.fl-episode-card:hover .fl-episode-card-image img {
  transform: scale(1.05);
}

/* Placeholder for posts without featured image */
.fl-episode-card-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--fl-surface-elevated), var(--fl-bg));
}

.fl-episode-card-ep-badge {
  font-family: var(--fl-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fl-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fl-episode-card-icon {
  font-size: 3rem;
}

/* Hover overlay with play button */
.fl-episode-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--fl-transition);
}

.fl-episode-card:hover .fl-episode-card-overlay {
  opacity: 1;
}

.fl-episode-play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--fl-primary);
  color: var(--fl-bg);
  border-radius: 50%;
  font-size: 1.3rem;
  transform: scale(0.8);
  transition: transform var(--fl-transition);
}

.fl-episode-card:hover .fl-episode-play-icon {
  transform: scale(1);
}

/* Episode Card Body */
.fl-episode-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fl-episode-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.fl-episode-card-date {
  font-family: var(--fl-font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fl-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fl-episode-card-title {
  font-size: 1.1rem !important;
  font-weight: 600;
  color: var(--fl-text-bright);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fl-episode-card-excerpt {
  font-size: 0.9rem;
  color: var(--fl-muted);
  line-height: 1.6;
  margin-top: auto;
}

/* Pagination */
.fl-episodes-pagination {
  margin-top: 4rem;
  text-align: center;
}

.fl-episodes-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  margin: 0 0.25rem;
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: var(--fl-radius);
  color: var(--fl-muted);
  font-family: var(--fl-font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--fl-transition);
}

.fl-episodes-pagination .page-numbers:hover {
  border-color: var(--fl-primary);
  color: var(--fl-primary);
}

.fl-episodes-pagination .page-numbers.current {
  background: var(--fl-primary);
  border-color: var(--fl-primary);
  color: var(--fl-bg);
  font-weight: 700;
}

.fl-episodes-pagination .prev,
.fl-episodes-pagination .next {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

/* Empty state */
.fl-episodes-empty {
  text-align: center;
  padding: 6rem 2rem;
}

.fl-episodes-empty h2 {
  margin: 1.5rem 0 0.75rem;
}

/* Responsive */
@media (max-width: 992px) {
  .fl-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fl-episodes-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .fl-episodes-hero {
    padding: 3rem 0 2rem;
  }
}

/* ==========================================================================
   KADENCE-SPECIFIC FIXES
   ========================================================================== */

/* Hide the default page title on the homepage and episodes page */
.home .entry-hero,
.home .page-hero-section,
.home .entry-header,
.home .wp-block-post-title,
body.home .entry-hero-layout-default,
.page-template-page-episodes .entry-hero,
.page-template-page-episodes .page-hero-section,
.page-template-page-episodes .entry-header,
body.page-template-page-episodes .entry-hero-layout-default {
  display: none !important;
}

/* Full-width overrides for episodes page too */
.page-template-page-episodes .content-wrap,
.page-template-page-episodes .site-main,
.page-template-page-episodes .entry-content {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.page-template-page-episodes .site-container .site-main,
.page-template-page-episodes .content-container {
  max-width: 100% !important;
  padding: 0 !important;
}
  display: none !important;
}

/* Make content area full-width for the dark theme sections */
.home .content-wrap,
.home .site-main,
.home .entry-content {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  width: 100% !important;
}

.home .site-container .site-main,
.home .content-container {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Kadence inner content container */
.home .content-container .content-wrap {
  max-width: 100% !important;
}

/* Kadence footer bar (bottom copyright bar) */
.site-footer .footer-row,
.site-footer .site-footer-bottom-wrap,
.site-footer .site-bottom-footer-wrap,
.site-footer .site-info,
#colophon .footer-row,
#colophon .site-info,
.footer-widget-area {
  background-color: var(--fl-surface) !important;
  color: var(--fl-muted) !important;
}

.site-footer .site-info a,
#colophon .site-info a {
  color: var(--fl-primary) !important;
}

.site-footer .site-info a:hover,
#colophon .site-info a:hover {
  color: var(--fl-accent) !important;
}

/* Kadence footer overall */
.site-footer,
.site-footer .site-footer-wrap,
#colophon,
#colophon .site-footer-wrap {
  background-color: var(--fl-surface) !important;
  border-top: 1px solid var(--fl-border) !important;
}

/* Edge glow removed in light mode — muddy on white */
body::before,
body::after { display: none !important; }

/* ==========================================================================
   2026 Refresh — shadcn-inspired overrides (light)
   Centered layout, Lucide icon styling, tightened spacing
   ========================================================================== */

/* Hide default WP page title on any page that uses our custom fl-hero */
body:has(.entry-content .fl-hero) .hero-container .entry-header.page-title,
body:has(.entry-content .fl-hero) .entry-content + .entry-header,
body:has(.entry-content .fl-hero) .hero-section .entry-title {
  display: none !important;
}

/* Break out of Kadence "boxed" entry-content constraint on pages that use our custom hero */
.entry-content:has(.fl-hero),
.entry-content:has(.fl-pillars),
.entry-content:has(.fl-expertise) {
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Force site main + content areas to fill and center on any page using our layout */
body.page .site-main,
body.page .content-area,
body.page .entry-content {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Center the hero (was left-aligned) */
.fl-hero {
  text-align: center !important;
  padding: 7rem 1.5rem 5rem !important;
  width: 100% !important;
  max-width: none !important;
}

.fl-hero-content {
  text-align: center !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.fl-hero h1 {
  max-width: 20ch;
  margin-left: auto !important;
  margin-right: auto !important;
  text-transform: none !important;        /* shadcn avoids ALL CAPS headings */
  letter-spacing: -0.03em;
  font-weight: 700 !important;
}

.fl-hero .fl-tagline {
  margin-left: auto !important;
  margin-right: auto !important;
}

.fl-btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Hide the dark mesh hero image — it doesn't work on a white background */
.fl-hero::before { display: none !important; }
.fl-hero::after { display: none !important; }
.fl-hero { background: linear-gradient(180deg, var(--fl-surface-elevated) 0%, var(--fl-bg) 100%) !important; }

/* ==========================================================================
   Lucide inline icon utilities
   ========================================================================== */

.fl-icon {
  display: inline-block;
  vertical-align: middle;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.fl-icon-xs { width: 14px; height: 14px; }
.fl-icon-sm { width: 18px; height: 18px; }
.fl-icon-md { width: 24px; height: 24px; }
.fl-icon-lg { width: 32px; height: 32px; }

.fl-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.18);
  color: var(--fl-primary);
  margin-bottom: 1.25rem;
}
.fl-icon-wrapper.fl-icon-accent {
  background: rgba(5, 150, 105, 0.08);
  border-color: rgba(5, 150, 105, 0.18);
  color: var(--fl-primary);
}

/* Hide legacy emoji holders (content now uses SVGs) */
.fl-pillar-icon:empty,
.fl-card-icon:empty { display: none; }

/* Nudge buttons to render icon + text cleanly */
.fl-btn { display: inline-flex; align-items: center; gap: 0.5rem; }
.fl-btn .fl-icon { width: 1rem; height: 1rem; }

/* Shadcn-flavored button refinements */
.fl-btn-primary {
  background: var(--fl-text-bright);
  color: var(--fl-bg);
  border: 1px solid var(--fl-text-bright);
}
.fl-btn-primary:hover {
  background: var(--fl-text);
  color: var(--fl-bg);
}
.fl-btn-secondary {
  background: transparent;
  color: var(--fl-text);
  border: 1px solid var(--fl-border);
}
.fl-btn-secondary:hover {
  background: var(--fl-surface-elevated);
  border-color: var(--fl-muted);
  color: var(--fl-text-bright);
}

/* ==========================================================================
   Cards — tightened shadcn-dark look
   ========================================================================== */

.fl-pillar-card,
.fl-card {
  background: var(--fl-surface);
  border: 1px solid var(--fl-border);
  border-radius: 12px;
  padding: 1.75rem;
  text-align: left !important;     /* was centered for some cards; shadcn prefers left */
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fl-pillar-card:hover,
.fl-card:hover {
  border-color: rgba(5, 150, 105, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 10px 28px -12px rgba(0,0,0,0.15);
}
.fl-pillar-card h3,
.fl-card h3 {
  text-transform: none !important;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.fl-pillar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--fl-primary);
}
.fl-pillar-link:hover { color: var(--fl-text-bright); }

.fl-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.625rem;
  border-radius: 9999px;
  background: var(--fl-surface-elevated);
  color: var(--fl-muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  border: 1px solid var(--fl-border);
}

/* ==========================================================================
   Podcast platform + play buttons — professional SVG sizing
   ========================================================================== */

.fl-podcast-platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 0 !important;             /* kill any leftover emoji sizing */
  color: var(--fl-text);
}
.fl-podcast-platform-link .fl-icon { color: var(--fl-text); }
.fl-podcast-platform-link:hover .fl-icon { color: var(--fl-primary); }

.fl-episode-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fl-text-bright);
}
.fl-episode-play .fl-icon { color: currentColor; }

/* Hide empty podcast artwork blocks (they have no src) */
.fl-episode-artwork { display: none !important; }

/* Footer social icons render as SVGs now */
.fl-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.fl-footer-social a .fl-icon { color: var(--fl-text); }
.fl-footer-social a:hover .fl-icon { color: var(--fl-primary); }

/* Newsletter benefits — replace bullets with checks */
.fl-newsletter-benefits { list-style: none; padding: 0; margin: 0; }
.fl-newsletter-benefits li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  color: var(--fl-text);
}
.fl-newsletter-benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35rem;
  width: 1.125rem; height: 1.125rem;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Headings: de-uppercase globally for shadcn-modern feel */
.fl-section-header h2,
.fl-podcast-header-left h2,
.fl-newsletter-content h2,
.fl-footer-brand h3 {
  text-transform: none !important;
}

@media (max-width: 640px) {
  .fl-hero { padding: 4rem 1rem 3rem !important; }
}

/* ==========================================================================
   About page two-column grid
   ========================================================================== */
.fl-about { padding: 4rem 0 1rem; }
.fl-about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.fl-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.fl-about-col h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0.5rem 0 1rem;
  text-transform: none;
  letter-spacing: -0.02em;
}
.fl-about-col p {
  color: var(--fl-muted);
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   Contact page two-column grid
   ========================================================================== */
.fl-contact { padding: 4rem 0 5rem; }
.fl-contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.fl-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.fl-contact-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.fl-contact-col .fl-pillar-card {
  padding: 1.5rem 1.75rem;
}
.fl-contact-col .fl-pillar-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
}
.fl-contact-col .fl-pillar-card p {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.fl-contact-col .fl-pillar-card p:last-child {
  margin-top: 0.35rem;
}

@media (max-width: 900px) {
  .fl-about-grid,
  .fl-contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

