/*
Theme Name: The Deep Work Hub
Theme URI: https://thedeepworkhub.com
Author: The Deep Work Hub Team
Author URI: https://thedeepworkhub.com
Description: High-performance, clean academic & modern SaaS theme for The Deep Work Hub, The Deep Work Academy, and automated SEO publishing.
Version: 1.0.0
Text Domain: thedeepworkhub
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

:root {
  --dwh-bg-main: #FFFFFF;
  --dwh-bg-subtle: #F8FAFC;
  --dwh-card-bg: #FFFFFF;
  --dwh-primary: #1E3A8A;        /* Deep academic navy */
  --dwh-primary-light: #2563EB;  /* Bright royal blue */
  --dwh-accent-yellow: #FACC15;  /* High-converting action yellow */
  --dwh-accent-yellow-hover: #FDE047;
  --dwh-text-main: #0F172A;      /* Charcoal black */
  --dwh-text-muted: #64748B;     /* Slate gray */
  --dwh-border: #E2E8F0;         /* Clean border */
  --dwh-radius: 16px;
  --dwh-radius-sm: 8px;
  --dwh-radius-pill: 9999px;
  --dwh-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --dwh-shadow-hover: 0 16px 36px -4px rgba(15, 23, 42, 0.12), 0 6px 16px -2px rgba(15, 23, 42, 0.05);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--dwh-text-main);
  background-color: var(--dwh-bg-subtle);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--dwh-primary-light);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  color: var(--dwh-primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dwh-text-main);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.35rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
h4 { font-size: 1.2rem; }

p {
  margin-top: 0;
  margin-bottom: 1.25rem;
}

/* Header & Navigation */
header.dwh-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--dwh-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.dwh-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dwh-brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--dwh-primary);
  letter-spacing: -0.02em;
}

.dwh-brand-dot {
  width: 10px;
  height: 10px;
  background: var(--dwh-primary-light);
  border-radius: 50%;
  display: inline-block;
}

.dwh-nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dwh-nav-links a {
  color: var(--dwh-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.dwh-nav-links a:hover,
.dwh-nav-links .current-menu-item a {
  color: var(--dwh-primary-light);
}

.dwh-nav-btn {
  padding: 10px 22px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: var(--dwh-primary) !important;
  border-radius: var(--dwh-radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-block;
  transition: all 0.2s ease;
}

.dwh-nav-btn:hover {
  background: var(--dwh-primary);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Layout Containers */
.dwh-main-content {
  flex: 1 0 auto;
  width: 100%;
}

.dwh-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px;
}

.dwh-container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px;
}

/* Badges & Pills */
.dwh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dwh-primary);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 6px 16px;
  border-radius: var(--dwh-radius-pill);
  margin-bottom: 20px;
}

.dwh-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--dwh-primary-light);
  border-radius: 50%;
}

/* Buttons */
.dwh-btn-main {
  display: inline-block;
  padding: 16px 34px;
  background: var(--dwh-accent-yellow);
  color: #0F172A !important;
  font-weight: 800;
  font-size: 1.02rem;
  border-radius: var(--dwh-radius-pill);
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(250, 204, 21, 0.35);
  border: none;
  cursor: pointer;
  text-align: center;
}

.dwh-btn-main:hover {
  background: var(--dwh-accent-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.45);
}

.dwh-btn-outline {
  display: inline-block;
  padding: 16px 30px;
  border: 1px solid var(--dwh-border);
  background: var(--dwh-bg-main);
  color: var(--dwh-primary) !important;
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--dwh-radius-pill);
  transition: all 0.2s ease;
  text-align: center;
}

.dwh-btn-outline:hover {
  border-color: var(--dwh-primary-light);
  color: var(--dwh-primary-light) !important;
  background: #F8FAFC;
  transform: translateY(-2px);
}

/* Standard Page Card Container */
.dwh-card {
  background: var(--dwh-card-bg);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: 44px 36px;
  box-shadow: var(--dwh-shadow);
}

/* Sections & Smooth Scroll Anchors */
section.dwh-section,
#ecosystem,
#community,
#diagnostic {
  scroll-margin-top: 90px;
}

section.dwh-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.dwh-hero {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dwh-hero h1 span.dwh-highlight,
.dwh-highlight {
  color: #2563EB;
  display: inline-block;
}

.dwh-hero p.dwh-lead,
.dwh-lead {
  font-size: 1.22rem;
  color: var(--dwh-text-muted);
  max-width: 760px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.dwh-hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Video Container */
.dwh-video-container {
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  background: #0F172A;
  border-radius: var(--dwh-radius);
  border: 1px solid var(--dwh-border);
  overflow: hidden;
  box-shadow: var(--dwh-shadow);
  margin: 20px auto 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94A3B8;
}

/* 4-Stat Metric Grid & Rounded Cards */
.dwh-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 50px;
  width: 100%;
}

.dwh-stat-card {
  background: var(--dwh-bg-main);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--dwh-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dwh-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--dwh-shadow-hover);
}

.dwh-stat-num {
  font-size: 2.3rem;
  font-weight: 800;
  color: #2563EB;
  margin-bottom: 4px;
  line-height: 1.1;
}

.dwh-stat-label {
  font-size: 0.88rem;
  color: var(--dwh-text-muted);
  font-weight: 600;
}

/* 3-Pillar Ecosystem Grid & Cards */
.dwh-ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.dwh-ecosystem-card {
  background: var(--dwh-bg-main);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--dwh-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dwh-ecosystem-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--dwh-shadow-hover);
}

.dwh-ecosystem-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 14px 0 10px;
  color: var(--dwh-text-main);
}

.dwh-ecosystem-card p {
  color: var(--dwh-text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.dwh-card-features {
  list-style: none;
  margin-bottom: 32px;
  font-size: 0.92rem;
  color: var(--dwh-text-muted);
  padding: 0;
}

.dwh-card-features li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.dwh-card-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2563EB;
  font-weight: bold;
}

/* Diagnostic Lead Section / Rounded Divider Box */
.dwh-lead-section {
  background: var(--dwh-bg-main);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: 56px 48px;
  margin: 40px auto;
  box-shadow: var(--dwh-shadow);
}

.dwh-lead-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.dwh-form-container {
  background: #F8FAFC;
  border: 1px solid var(--dwh-border);
  border-radius: 12px;
  padding: 20px;
}

@media (max-width: 900px) {
  .dwh-lead-layout {
    grid-template-columns: 1fr;
  }
  .dwh-lead-section {
    padding: 32px 20px;
  }
}

/* Funnel & Diagnostic Canvas Containers */
.dwh-scope {
  width: 100%;
  margin: 0 auto;
  padding: 40px 16px 80px;
  display: flex;
  justify-content: center;
  box-sizing: border-box;
}

.dwh-wrapper {
  width: 100%;
  max-width: 780px;
  background: var(--dwh-card-bg);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: 44px 36px;
  box-shadow: var(--dwh-shadow);
  text-align: center;
  margin: 0 auto;
}

.dwh-title {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  color: var(--dwh-text-main);
}

.dwh-survey-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 24px;
  min-height: 380px;
  text-align: left;
}

.dwh-security-note {
  font-size: 0.82rem;
  color: var(--dwh-text-muted);
  margin-top: 16px;
  font-weight: 500;
  text-align: center;
}

/* Legal Card Layout */
.dwh-legal-card {
  width: 100%;
  max-width: 840px;
  background: var(--dwh-bg-main);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: 56px 48px;
  box-shadow: var(--dwh-shadow);
  text-align: left;
  margin: 0 auto;
}

/* Blog & Article Styling (Track A SEO Ready) */
article.dwh-article {
  background: var(--dwh-bg-main);
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: clamp(28px, 5vw, 64px);
  box-shadow: var(--dwh-shadow);
  margin-bottom: 40px;
}

.dwh-article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--dwh-text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.dwh-article-content {
  font-size: 1.12rem;
  line-height: 1.8;
  color: #1E293B;
}

.dwh-article-content h2 {
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #F1F5F9;
}

.dwh-article-content h3 {
  margin-top: 36px;
  margin-bottom: 16px;
}

.dwh-article-content blockquote {
  border-left: 4px solid var(--dwh-primary-light);
  background: #F8FAFC;
  margin: 32px 0;
  padding: 18px 24px;
  border-radius: 0 var(--dwh-radius-sm) var(--dwh-radius-sm) 0;
  font-style: italic;
  color: var(--dwh-text-main);
}

/* Creator Jargon Callout Box */
.dwh-callout-box {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: var(--dwh-radius);
  padding: 24px 28px;
  margin: 36px 0;
}

.dwh-callout-title {
  font-weight: 800;
  color: var(--dwh-primary);
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* In-Article CTA Banner */
.dwh-article-cta {
  background: linear-gradient(135deg, #1E3A8A 0%, #1E40AF 100%);
  color: #FFFFFF;
  border-radius: var(--dwh-radius);
  padding: 40px 36px;
  margin-top: 50px;
  text-align: center;
}

.dwh-article-cta h3 {
  color: #FFFFFF;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.dwh-article-cta p {
  color: #E2E8F0;
  max-width: 600px;
  margin: 0 auto 24px;
}

/* Distraction-Free Funnel Canvas Template */
body.dwh-funnel-page {
  background-color: var(--dwh-bg-subtle);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.dwh-funnel-canvas {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.dwh-funnel-card {
  background: #FFFFFF;
  border: 1px solid var(--dwh-border);
  border-radius: var(--dwh-radius);
  padding: clamp(28px, 6vw, 48px);
  box-shadow: var(--dwh-shadow);
  text-align: center;
}

.dwh-funnel-minimal-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 0.82rem;
  color: var(--dwh-text-muted);
}

.dwh-funnel-minimal-footer a {
  color: var(--dwh-text-muted);
  text-decoration: underline;
}

/* Site Footer */
footer.dwh-site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--dwh-border);
  padding: 60px 24px 40px;
  text-align: center;
  color: var(--dwh-text-muted);
  font-size: 0.92rem;
  margin-top: auto;
}

.dwh-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.dwh-footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.dwh-footer-links a {
  color: var(--dwh-text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.dwh-footer-links a:hover {
  color: var(--dwh-primary);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .dwh-nav-links {
    display: none; /* Can be expanded with a toggle or simplified for mobile */
  }
  .dwh-card {
    padding: 28px 20px;
  }
}

