/* dit•DAHs Marketing Site Styles - U014-K
   Fixed: Header padding, Contribute button visibility, Footer text contrast
   Sprint: 3.2.6 / U014-K
   Date: February 7, 2026
*/

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

/* === CSS VARIABLES === */
:root {
  /* Colors - Practice Blue */
  --blue: #6ba3d6;
  --blue-dark: #4a82b5;
  --blue-light: #8dbce3;

  /* Slate Scale */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Cadence Colors */
  --green: #10b981;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --purple: #8b5cf6;
  --red: #ef4444;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
}

/* === BASE STYLES === */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--slate-700);
  background: white;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--slate-900);
}

/* === LAYOUT === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.intro,
.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.section-intro {
  font-size: 1.2rem;
  color: var(--slate-600);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

/* === HEADER & NAVIGATION === */
header {
  background: white;
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.25rem 0; /* FIXED: Added consistent padding */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem; /* FIXED: Add horizontal padding */
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
}

.back-link {
  color: var(--slate-600);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.back-link:hover {
  color: var(--blue);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* Mobile menu button - VISIBLE by default (mobile-first) */
/* Targeting correct class: .mobile-menu-button (matches HTML and JavaScript) */
.mobile-menu-button,
button.mobile-menu-button,
#mobile-menu-button,
.header-content .mobile-menu-button,
header .mobile-menu-button {
  display: block; /* Visible by default for mobile */
  visibility: visible;
  opacity: 1;
  /* Complete button reset - NO box around icon */
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.5rem;
  margin: 0;
  /* Icon styling */
  font-size: 1.5rem;
  line-height: 1;
  color: var(--slate-700);
  cursor: pointer;
}

/* Remove focus outline but keep accessible */
.mobile-menu-button:focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.mobile-menu-button:focus:not(:focus-visible) {
  outline: none;
}

/* === MOBILE MENU === */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
}

.mobile-menu-overlay.active {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 65%; /* Even narrower: was 70% */
  max-width: 280px; /* Even narrower: was 320px */
  height: 100vh;
  background: white;
  z-index: 999;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  justify-content: flex-end;
  padding: 0.5rem 1rem; /* Ultra tight: was 0.625rem */
  border-bottom: 1px solid var(--slate-200);
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--slate-700);
  cursor: pointer;
  padding: 0.125rem; /* Minimal: was 0.25rem */
  line-height: 1;
}
}

.mobile-nav {
  display: flex !important;
  flex-direction: column !important;
  padding: 0;
}

.mobile-nav a {
  padding: 0.5rem 1rem; /* Ultra tight: was 0.625rem */
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 400; /* Regular weight: was 500 (medium) */
  font-size: 0.9375rem; /* 15px - slightly smaller */
  line-height: 1.3; /* Tighter line height */
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.2s;
  display: block;
  width: 100%;
}

.mobile-nav a:hover {
  color: var(--blue);
}

/* Mobile menu Start Free text link */
.mobile-nav a.text-link {
  color: var(--blue);
  font-weight: 600;
  border-bottom: none;
  margin-top: 0.375rem; /* Minimal gap: was 0.5rem */
  padding-top: 0.5rem; /* Match other links */
  padding-bottom: 0.5rem; /* Match other links */
  border-top: 1px solid var(--slate-200);
  text-align: left;
  padding-left: 1rem; /* Match other links */
  line-height: 1.3;
}

.mobile-nav a.text-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* === BUTTONS === */
.btn,
.btn-primary,
.btn-secondary,
a.btn,
a.btn-primary,
a.btn-secondary,
button.btn,
button.btn-primary,
button.btn-secondary {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.btn-primary,
a.btn-primary,
button.btn-primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(107, 163, 214, 0.3);
}

.btn-secondary,
a.btn-secondary,
button.btn-secondary {
  background: white;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-secondary:hover,
a.btn-secondary:hover,
button.btn-secondary:hover {
  background: var(--slate-50);
  color: var(--blue-dark);
  text-decoration: none;
}

.text-link {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.text-link:hover {
  color: var(--blue-dark);
  text-decoration: underline;
}

/* === HERO SECTION === */
.hero {
  padding: 3rem 0 4rem;
  background: linear-gradient(to bottom, white, var(--slate-50));
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.hero-subhead {
  font-size: 1.1rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-intro {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.hero-cta {
  margin-bottom: 1.5rem;
}

.trust-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--slate-500);
  font-size: 0.95rem;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* === FEATURE GRIDS === */
.feature-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--slate-50);
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--slate-900);
}

.feature-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin-bottom: 0;
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  stroke: var(--blue);
}

/* === CADENCE GRID === */
.cadence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.cadence-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.cadence-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cadence-card h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.cadence-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.cadence-card p {
  color: var(--slate-600);
  margin-bottom: 0;
}

/* Cadence card border colors */
.cadence-card:nth-child(1) {
  border-left-color: #10b981;
}
.cadence-card:nth-child(1) .cadence-icon {
  stroke: #10b981;
}

.cadence-card:nth-child(2) {
  border-left-color: #6ba3d6;
}
.cadence-card:nth-child(2) .cadence-icon {
  stroke: #6ba3d6;
}

.cadence-card:nth-child(3) {
  border-left-color: #f59e0b;
}
.cadence-card:nth-child(3) .cadence-icon {
  stroke: #f59e0b;
}

.cadence-card:nth-child(4) {
  border-left-color: #8b5cf6;
}
.cadence-card:nth-child(4) .cadence-icon {
  stroke: #8b5cf6;
}

.cadence-card:nth-child(5) {
  border-left-color: #475569;
}
.cadence-card:nth-child(5) .cadence-icon {
  stroke: #475569;
}

.cadence-card:nth-child(6) {
  border-left-color: #ef4444;
}
.cadence-card:nth-child(6) .cadence-icon {
  stroke: #ef4444;
}

/* === AUDIENCE GRID === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.audience-card {
  background: var(--slate-50);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--slate-200);
  transition: all 0.2s;
}

.audience-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.audience-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  stroke: var(--blue);
}

.audience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.audience-card p {
  color: var(--slate-600);
  margin-bottom: 1.5rem;
}

/* === CALLOUTS === */
.callout {
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid;
  margin: 2rem 0;
}

.callout-info {
  background: var(--blue-light);
  background: rgba(107, 163, 214, 0.1);
  border-left-color: var(--blue);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: var(--amber);
}

.callout h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* === CTA SECTIONS === */
.cta-light,
.cta-section {
  background: var(--slate-50);
  padding: 4rem 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-dark {
  background: var(--slate-900);
  color: white;
  padding: 4rem 2rem;
  border-radius: 1rem;
  text-align: center;
  margin: 4rem 0;
}

.cta-light h2,
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--slate-900);
}

.cta-dark h2 {
  color: white;
}

.cta-light p,
.cta-section p {
  font-size: 1.1rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-dark p {
  color: var(--slate-300);
}

/* === CONTRIBUTE PAGE STYLES === */
/* FIXED: Ensure button is visible and properly styled */
.support-button-container {
  text-align: center;
  margin: 3rem 0;
}

.support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--amber);
  color: var(--slate-900);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.support-button:hover {
  background: var(--amber-dark);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
  transform: translateY(-2px);
  color: var(--slate-900);
  text-decoration: none;
}

.support-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.support-note {
  text-align: center;
  font-size: 1rem;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto 1rem;
  line-height: 1.6;
}

/* === ARTICLE STYLES === */
article {
  padding: 3rem 0;
}

article h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

article h2 {
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

article h3 {
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

article p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

article ul,
article ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

article li {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

article .article-intro {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

/* === FOOTER === */
/* FIXED: Improved text contrast for readability */
footer {
  background: var(--slate-900) !important;
  color: var(--slate-400) !important; /* FIXED: Light text on dark background */
  padding: 3rem 2rem 2rem !important;
}

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

.footer-content {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 3rem !important;
  margin-bottom: 2rem !important;
  text-align: center !important;
}

.footer-section {
  text-align: center !important;
}

.footer-section h3 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: white !important; /* FIXED: White for headings */
  margin-bottom: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-section ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.footer-section li {
  margin-bottom: 0.5rem !important;
}

.footer-section a {
  color: var(--slate-400) !important; /* FIXED: Light gray links */
  text-decoration: none !important;
  transition: color 0.2s !important;
}

.footer-section a:hover {
  color: var(--blue-light) !important;
  text-decoration: underline !important;
}

.footer-bottom {
  padding-top: 2rem !important;
  border-top: 1px solid var(--slate-700) !important;
  text-align: center !important;
}

.footer-bottom p {
  color: var(--slate-500) !important; /* FIXED: Medium gray for bottom text */
  font-size: 0.875rem !important;
  margin-bottom: 0.5rem !important;
}

.footer-tagline {
  color: var(--slate-500) !important; /* FIXED: Medium gray for tagline */
  font-size: 0.875rem !important;
}

/* Override any potential black text in footer */
footer,
footer * {
  color: var(--slate-400); /* Default light gray for all footer text */
}

footer h3,
footer .footer-section h3 {
  color: white !important; /* White headings */
}

footer a,
footer .footer-section a {
  color: var(--slate-400) !important; /* Light gray links */
}

footer p,
footer .footer-bottom p {
  color: var(--slate-500) !important; /* Medium gray paragraphs */
}

/* === RESPONSIVE === */

/* Desktop: Ensure mobile menu is hidden above 900px */
@media (min-width: 901px) {
  .mobile-menu-button,
  button.mobile-menu-button,
  .header-content .mobile-menu-button,
  header .mobile-menu-button,
  .mobile-menu-button.mobile-menu-button {
    display: none !important; /* Force hidden on desktop */
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important; /* Can't be clicked */
  }
  
  /* Show desktop nav ONLY - not mobile-nav */
  header > div > div > nav,
  .header-content > nav {
    display: flex !important; /* Ensure desktop nav shows */
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Ensure mobile-nav stays as column if somehow visible */
  .mobile-nav,
  nav.mobile-nav {
    display: flex !important;
    flex-direction: column !important;
  }
}

/* Mobile: Show mobile menu button, hide desktop nav */
@media (max-width: 900px) {
  /* Hide desktop nav ONLY (not mobile-nav!) */
  header > div > div > nav,
  .header-content > nav {
    display: none !important;
    visibility: hidden !important;
  }

  /* Show mobile menu button - clean, no box */
  .mobile-menu-button,
  button.mobile-menu-button,
  .header-content .mobile-menu-button,
  header .mobile-menu-button {
    display: block !important; /* Force show on mobile only */
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    /* Ensure no box on mobile either */
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
  }
  
  /* Ensure mobile-nav displays correctly as vertical list */
  .mobile-nav,
  nav.mobile-nav {
    display: flex !important;
    flex-direction: column !important;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0; /* FIXED: Slightly less padding on mobile */
  }

  .logo-img {
    height: 32px;
  }

  .hero {
    padding: 2rem 0 3rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-intro {
    font-size: 1.1rem;
  }

  .feature-grid,
  .features-grid,
  .cadence-grid,
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  section {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .intro,
  .lead {
    font-size: 1.1rem;
  }

  article h1 {
    font-size: 2rem;
  }

  article h2 {
    font-size: 1.5rem;
  }

  .support-button {
    padding: 1.125rem 2rem;
    font-size: 1.05rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .cadence-grid {
    grid-template-columns: 1fr;
  }
}
