/* === Design Tokens === */
:root {

  /* Colours */
  --color-primary: #07320D;       /* Dark Fern */
  --color-secondary: #DAA520;     /* Golden Grass */
  --color-accent-dark: #3D1E40;   /* Revolver */
  --color-text: #333333;          /* Mine Shaft */
  --color-bg: #F2FBF0;            /* Ottoman */

  /* Dark Mode */
  --color-bg-dark: #0B0F0A;
  --color-text-dark: #E6F2E3;
  --color-primary-dark: #1C4B2E;
  --color-secondary-dark: #D4B344;
  --color-accent-dark-mode: #5C3A61;
  --color-surface-dark: #121814;

  /* Typography */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-secondary: 'Merriweather', Georgia, serif;

  /* Text Sizes */
  --text-h1-size: 2.5rem;
  --text-h2-size: 2rem;
  --text-body-size: 1rem;
  --text-label-size: 0.875rem;
  --text-quote-size: 1.125rem;

  /* Font Weights */
  --font-weight-bold: 700;
  --font-weight-semibold: 600;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
}

/* === Manual Dark Mode via .theme-dark ===
.theme-dark body {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
}

.theme-dark .hero-section,
.theme-dark .bg-light,
.theme-dark .feature-card {
  background-color: var(--color-surface-dark) !important;
  color: var(--color-text-dark) !important;
}

.theme-dark .btn-outline-light {
  border-color: var(--color-secondary-dark);
  color: var(--color-secondary-dark);
  background-color: transparent;
}

.theme-dark .btn-outline-light:hover {
  background-color: var(--color-secondary-dark);
  color: var(--color-bg-dark);
}

.theme-dark .feature-card .h5 {
  color: var(--color-secondary-dark);
}

.theme-dark .text-primary {
  color: var(--color-primary-dark) !important;
}

.theme-dark .text-accent {
  color: var(--color-accent-dark-mode) !important;
}

.theme-dark .bg-primary,
.theme-dark .btn-cta {
  background-color: var(--color-primary-dark) !important;
  color: var(--color-text-dark) !important;
}

.theme-dark .btn-cta:hover {
  background-color: var(--color-secondary-dark) !important;
  color: var(--color-bg-dark) !important;
}

 */

/* === Icon Colors === */
.icon-primary { 
  color: var(--color-primary);
  transition: color 0.3s ease-in-out; }
.icon-secondary { color: var(--color-secondary); }
.icon-accent { color: var(--color-accent-dark); }
.icon-text { color: var(--color-text); }

noscript div {
  background-color: #fff3cd;
  color: #856404;
  padding: 1rem;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  text-align: center;
  margin: 1rem 0;
}

/* === Base Layout === */
body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Navbar === */
.navbar {
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem;
}

.navbar a {
  margin-left: 1rem;
  text-decoration: none;
  color: var(--color-primary);
}

.logo {
  font-weight: var(--font-weight-bold);
  font-size: 1.2rem;
  color: var(--color-primary);
  text-decoration: none;
}
.logo-header {
  background-color: transparent;
}

.logo-header-img {
  max-width: 300px;
  height: auto;
}


/* === Main Content Wrapper === */
.content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* === Hero Section with Image Overlay === */
.hero-section {
  position: relative;
  background: url('../images/hero-illustration.jpg') no-repeat left center / cover;
  height: 95vh;
  display: flex;
  align-items: center;
  justify-content:right;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  /* background-color: rgba(0, 0, 0, 0.55); */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1rem;
}

.hero-title {
  color: var(--color-bg);
  font-size: var(--text-h1-size);
  font-weight: var(--font-weight-bold);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--color-bg);
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-normal);
  max-width: 640px;
  margin: 0 auto 2rem;
}

.hero-logo {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin: 0 auto 1rem;
}

.hero-ummah-section {
  background-color: var(--color-primary);
}

.hero-ummah-section h2,
.hero-ummah-section p {
  font-weight: var(--font-weight-semibold);
}

/* === Features Section === */
.features-section {
  background-color: var(--color-bg);
}

.feature-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  background-color: #ffffff;
  color: var(--color-text);
  font-family: var(--font-primary);
  transition: transform 0.2s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
  font-size: var(--text-h2-size);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-top: 1rem;
}

/* === CTA Section === */
.cta-section {
  background-color: var(--color-primary);
  color: var(--color-bg);
  padding: 3rem 0;
}

.cta-heading {
  font-size: var(--text-h2-size);
  font-weight: var(--font-weight-bold);
  color: var(--color-bg);
}

.cta-section .btn-cta {
  background-color: var(--color-secondary);
  color: var(--color-bg);
}

.cta-section .btn-cta:hover {
  background-color: #c2931c;
  color: var(--color-bg);
}
/* Welcome Back Styles */
.card-welcome {
  background-color: var(--bs-white);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 0.75rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease-in-out;
  max-width: 600px;
  margin: 0 auto;
}

.card-welcome h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent-dark);
  margin-bottom: 1rem;
}

.card-welcome p {
  font-size: 1rem;
  color: var(--bs-secondary);
  margin-bottom: 1.5rem;
}

.card-welcome .btn {
  margin: 0.25rem 0.5rem;
}

.text-muted-custom {
  color: rgba(51, 51, 51, 0.65); 
}

/* === Typography === */
.blockquote {
  font-size: var(--text-quote-size);
  font-style: italic;
  color: var(--color-text);
}
.blockquote-footer {
  font-size: var(--text-label-size);
  color: #777;
}

/* === Footer === */
.footer {
  background-color: var(--color-bg);
  color: var(--color-text);
  text-align: center;
  padding: 1.5rem 0;
  font-size: var(--text-label-size);
  border-top: 1px solid #e5e7eb;
}
.footer a {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* === Button Component === */
.button,
.btn-cta {
  background-color: var(--color-secondary);
  color: var(--color-bg);
  padding: 0.75rem 1.5rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 4px;
  font-size: var(--text-body-size);
  transition: background-color 0.3s ease;
}

.button:hover,
.btn-cta:hover {
  background-color: #c2931c;
  color: var(--color-bg);
}

/* === Landing Page === */
.landing-section {
  background-color: var(--color-bg);
  font-family: var(--font-primary);
}

.landing-title {
  color: var(--color-primary);
  font-size: var(--text-h1-size);
  font-weight: var(--font-weight-bold);
}

.landing-subtitle {
  color: var(--color-text);
  font-size: var(--text-body-size);
  font-weight: var(--font-weight-normal);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === Card Hover (Intent Options) === */
.intent-option:hover,
.focus-option:hover,
.timing-option:hover,
.custom-time-wrapper:hover {
  border: 2px solid var(--color-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
/* === Hollow Progress Bar === */
.progress {
  height: 20px;
  background-color: #ffffff;
  border-radius: 10px; 
  border: 2px solid var(--color-accent-dark);
}

.progress-bar {
  background-color: var(--color-primary);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 10px;
}

/* === Step Labels Below Progress Bar === */
.d-flex {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.d-flex span {
  width: 22%;
  text-align: center;
  font-size: 0.875rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.d-flex span.active {
  color: var(--color-primary);
}

.d-flex span.inactive {
  color: var(--color-text);
}

/* Highlight selected onboarding cards */
.intent-option.active,
.focus-option.active,
.timing-option.active,
.custom-time-wrapper.active {
  border: 2px solid var(--color-secondary);
  background-color: var(--color-accent-dark);
  color: #fff;
  transition: background-color 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.intent-option.active .icon-primary,
.focus-option.active .icon-primary,
.timing-option.active .icon-primary,
.custom-time-wrapper.active .icon-primary {
  color: var(--color-secondary) !important;
}

/* Add hover feedback */
.intent-option:hover,
.focus-option:hover,
.timing-option:hover,
.custom-time-wrapper:hover {
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(61, 30, 64, 0.3);
}

/* === Email Verified Badge === */
.email-verified-badge {
  background-color: var(--color-secondary); 
  color: var(--color-bg); 
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.onboarding-steps span {
  color: var(--color-text); /* Uses #333333 (Mine Shaft) from your theme */
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.4s ease, font-weight 0.4s ease, text-shadow 0.4s ease;
}

.onboarding-steps span.active-step {
  color: var(--color-secondary); /* Golden Grass */
  font-weight: var(--font-weight-semibold);
  text-shadow: 0 0 6px var(--color-secondary);
}

.onboarding-steps span.completed-step {
  color: #999;
}

.progress-bar {
  transition: width 0.6s ease-in-out;
  background-color: var(--color-primary); /* Dark Fern */
}

.page-fade {
  animation: fadeInScreen 0.6s ease-in;
  opacity: 0;
  animation-fill-mode: forwards;
}

@keyframes fadeInScreen {
  to { opacity: 1; }
}

/* === Responsive Tweaks === */
@media (max-width: 576px) {
  .landing-title {
    font-size: 2rem;
  }

  .landing-subtitle {
    font-size: 0.95rem;
  }

  .feature-card h3 {
    font-size: 1.25rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  .progress-bar {
    height: 15px; 
  }

  .btn-cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .card-welcome {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  }
}
