/*
  IBM Plex Mono as our primary font
  (Freely hosted via Google Fonts)
*/
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&display=swap');

:root {
  --font-main: 'IBM Plex Mono', monospace;

  /* Light theme colors */
  --color-bg-light: #ffffff;
  --color-text-light: #000000;

  /* Dark theme colors */
  --color-bg-dark: #1a1a1a;
  --color-text-dark: #eaeaea;

  /* Accent color for links, bullets, headings, shading, etc. */
  --color-accent: #d85604; /* Matches your logo color */
}

/* Global styles (start in dark mode by default) */
body {
  font-family: var(--font-main);
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark mode is default */
body.dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-dark);
}

/* Light mode (toggled via JavaScript) */
body:not(.dark) {
  background-color: var(--color-bg-light);
  color: var(--color-text-light);
}

/* Full-width top header */
.hero-header {
  width: 100%;
  text-align: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

/* Larger Responsive Logo */
.logo-container {
  margin: 1rem 0;
}
.logo-container img {
  max-width: 100%;
  width: 30vw; /* Adjusts dynamically */
  min-width: 280px; /* Larger minimum size for better mobile appearance */
  max-width: 500px; /* Caps max size on large screens */
  height: auto;
}

/* Media query to enlarge the logo on medium sizes (e.g. half-width on a 4k monitor) */
@media (min-width: 1200px) and (max-width: 2000px) {
  .logo-container img {
    width: 35vw;
    max-width: 700px;
  }
}

/* Single-line shading bar of ASCII blocks in accent color */
.shaded-bar {
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  color: var(--color-accent);
  font-family: var(--font-main);
  font-size: 1em;
  line-height: 1;
  text-align: center;
}

/* Navigation at top with button-like links, uppercase text */
.top-nav {
  margin: 1rem 0;
}
.top-nav a {
  text-transform: uppercase;
  border: 1px solid var(--color-accent);
  padding: 0.25em 0.5em;
  margin: 0 0.25em;
  color: var(--color-accent);
  text-decoration: none;
  font-size: 0.9em;
}
.top-nav a:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-light);
  text-decoration: none;
}

/* Main content narrower layout */
main {
  max-width: 60ch;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* Increase width on larger screens */
@media (min-width: 768px) {
  main {
    max-width: 80ch;
  }
}
@media (min-width: 1200px) {
  main {
    max-width: 100ch;
  }
}

/* Section Headings */
h2 {
  text-transform: uppercase;
  font-weight: 400; /* Unbolded */
  font-size: 1.2em;
  margin: 2rem 0 1rem;
  position: relative;
  text-align: center;
}
h2::before {
  content: "▒▒▒ ";
  color: #e26b1d;  /* Slightly lighter shading */
}
h2::after {
  content: " ▒▒▒";
  color: #e26b1d;  /* Slightly lighter shading */
}

/* Links in main content use accent color by default */
a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* "Download PDF" link style (unused now, but kept in case needed later) */
.pdf-download {
  border: 1px solid var(--color-accent);
  padding: 0.25em 0.5em;
  font-size: 0.9em;
  margin-right: 0.5em;
}
.pdf-download:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-light);
  text-decoration: none;
}

/* Bulleted lists use » for each item */
ul {
  list-style: none;
  padding-left: 0;
}
ul li {
  margin: 0.5rem 0;
}
ul li::before {
  content: "» ";
  color: var(--color-accent);
}

/* Emphasized service titles */
.service-title {
  font-weight: 400; /* Unbolded */
  color: var(--color-accent);
}

/* Contact Section Formatting */
.contact-info strong {
  font-weight: 400;
}

/* Minimal ASCII Toggle Button (fixed top-right) */
.theme-toggle {
  font-family: var(--font-main);
  font-size: 1em;
  padding: 0.5em 0.75em;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  cursor: pointer;
  border-radius: 4px;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}
.theme-toggle:hover {
  background: var(--color-accent);
  color: var(--color-bg-light);
  text-decoration: none;
}

/* Footer */
footer {
  max-width: 60ch;
  margin: 2rem auto;
  padding: 1rem;
  text-align: center;
  font-size: 0.9em;
}

/* Increase footer width on larger screens */
@media (min-width: 768px) {
  footer {
    max-width: 80ch;
  }
}
@media (min-width: 1200px) {
  footer {
    max-width: 100ch;
  }
}
