:root {
  --primary: #007bff;
  --primary-dark: #0056b3;
  --text: #222;
  --light-text: #555;
  --bg: #fff;
  --gray: #f8f9fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #eee;
    --light-text: #ccc;
    --bg: #121212;
    --gray: #1e1e1e;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Rubik", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: 80px;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Header & Nav */
header {
  background: var(--bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: none;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-weight: 500;
  text-align: center;
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 300px;
  background: var(--bg);
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  gap: 0.75rem;
}

.nav-links.active li {
  text-align: center;
}

.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle img {
  width: 48px;
  height: 48px;
}

.menu-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Hero & Promo */
.hero {
  text-align: center;
  padding: 2rem 1rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.promo {
  text-align: center;
  padding: 1rem 1rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}
.hero h2 {
  font-size: 1.5rem;
  color: var(--light-text);
}

/* Image blocks */
.image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Services Banner */
.services-banner {
  text-align: center;
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--gray);
  border-radius: 8px;
}
.services-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.services-banner p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Bio */
.bio {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.bio img {
  float: left;
  width: 300px;
  margin-right: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
}

@media (max-width: 767px) {
  .bio img {
    float: none;
    width: 100%;
    margin: 0 0 1rem 0;
  }
}

.bio-table {
  width: 100%;
  border-collapse: collapse;
}

.bio-table td {
  padding: 1rem;
  vertical-align: top;
}

.bio-img {
  padding-right: 1rem;
  padding-bottom: 1rem;
}

/* Responsive table for bio */
@media (max-width: 768px) {
  .bio-table,
  .bio-table tbody,
  .bio-table tr,
  .bio-table td {
    display: block;
  }
  .bio-table td {
    padding: 0.5rem 0;
  }
  .bio-img {
    padding-right: 0;
    padding-bottom: 0.5rem;
  }
}

/* Features (responsive table) */
.features {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.services-table {
  width: 100%;
  border-collapse: collapse;
}

.services-table .card {
  background: var(--gray);
  padding: 1.5rem;
  border-radius: 8px;
  vertical-align: top;
}

.card {
  margin-bottom: 2rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card ol {
  margin-bottom: 2rem;
}

/* Social & Footer */
.social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}
.social a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.social span {
  font-size: 2.5rem;
}

footer {
  text-align: center;
  padding: 2rem;
  background: var(--gray);
  font-size: 0.9rem;
}

/* Scroll to top */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: opacity 0.3s;
}

/* Calendar table header – adapts to light/dark mode */
.calendar-header {
  background: rgba(0, 0, 0, 0.05); /* very light gray in light mode */
}

@media (prefers-color-scheme: dark) {
  .calendar-header {
    background: rgba(255, 255, 255, 0.1); /* subtle white tint in dark mode */
  }
}

/* Optional: Make header text darker/lighter for better contrast */
.calendar-header th {
  color: var(
    --text
  ); /* uses your --text variable (black in light, white in dark) */
}

/* Mobile menu */
@media (max-width: 767px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background: var(--bg);
    position: absolute;
    top: 100%;
    left: 0;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    display: flex;
  }

  /* Extra dark mode safeguard for hamburger icon */
  @media (prefers-color-scheme: dark) {
    .menu-toggle {
      color: #ffffff !important; /* force white in dark mode */
    }
  }

  /* Responsive table stacking for features */
  .services-table,
  .services-table tbody,
  .services-table tr,
  .services-table td {
    display: block;
  }
  .services-table .card {
    margin-bottom: 1.5rem;
  }

  /* Tighter spacing on mobile */
  .hero,
  .promo,
  .services-banner,
  .bio,
  .features {
    padding: 1.5rem 1rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero h2 {
    font-size: 1.25rem;
  }

  .services-banner h2 {
    font-size: 1.5rem;
  }

  .social {
    padding: 1rem;
  }

  footer {
    padding: 1rem;
  }
}

/* Force light mode - ignore system dark mode preference */
:root {
  --bg: #ffffff !important;
  --text: #222222 !important;
  --light-text: #555555 !important;
  --gray: #f8f9fa !important;
  --primary: #007bff !important;
  --primary-dark: #0056b3 !important;
}

/* Ensure body and other elements use light variables */
body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

/* Override any dark mode media query in your CSS */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff !important;
    --text: #222222 !important;
    --light-text: #555555 !important;
    --gray: #f8f9fa !important;
  }
  body {
    background: var(--bg) !important;
    color: var(--text) !important;
  }
}

/* Optional: Force all backgrounds/text to light if anything else sneaks in 
* {
  background-color: var(--bg) !important;
  color: var(--text) !important;
}*/
/* Standard hyperlink styles - industry default */
a {
  color: #0066cc; /* classic blue */
  text-decoration: underline; /* underline by default */
  transition: color 0.15s ease;
}

a:visited {
  color: #551a8b; /* classic visited purple */
}

a:hover,
a:focus {
  color: #003366; /* darker blue on hover/focus */
  text-decoration: underline;
}

/* Optional: make links stand out more in buttons or cards */
.btn a,
.card a,
.promo a {
  color: #007bff; /* match your primary brand color if you prefer */
  text-decoration: none;
}

.btn a:hover,
.card a:hover,
.promo a:hover {
  color: #0056b3;
  text-decoration: underline;
}
/* Small descriptive text under headings (used in feature cards & notes) */
.small-note {
  font-size: 1rem;
  color: #77afe7;
  font-weight: normal;
  display: block;
  margin-top: 0.5rem;
}
/* Better looking lists on the whole site */
main ul,
main ol,
.features ul,
.features ol,
.promo ul,
.promo ol {
  padding-left: 1.8rem; /* ← most popular sweet spot */
  margin-left: 0;
}

/* Optional - make nested lists look nice too */
main ul ul,
main ol ul {
  padding-left: 1.6rem;
}

/* Scrolling Ticker */
.scrolling-ticker {
  background: #333;
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  height: 60px;
}

.ticker-container {
  position: relative;
  height: 100%;
}

.ticker-message {
  white-space: nowrap;
  animation: scroll 80s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Scrolling Ticker 2 */
.scrolling-ticker2 {
  background: var(--primary);
  color: white;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 500;
  overflow: hidden;
  position: relative;
  height: 60px;
}

.scrolling-ticker2 .ticker-container {
  position: relative;
  height: 100%;
}

.scrolling-ticker2 .ticker-message {
  white-space: nowrap;
}

.scrolling-ticker2 .ticker-message.scrolling {
  animation: scroll 30s linear infinite;
}
