/*
Theme Name: EdmundVA Theme
Author: EdmundVA
Version: 1.6
Description: Light/dark mode, testimonial fixes, and centered service layout.
*/

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.8;
  font-size: 18px;
  box-sizing: border-box;
  background-color: #121212;
  color: #ffffff;
}

h1, h2, h3 {
  margin-bottom: 0.5em;
  color: #b3ffcc;
}

body.light-mode {
  background-color: #f4fff4;
  color: #111;
}

body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
  color: #044d29;
}

body.light-mode a {
  color: #007a33;
}

body.light-mode nav,
body.light-mode header,
body.light-mode .footer {
  background-color: #ccead2;
  color: #111;
}

body.light-mode .custom-contact-box,
body.light-mode .testimonial,
body.light-mode .audio-sample,
body.light-mode .equipment-item {
  background-color: #ffffff;
  color: #222;
  border: 1px solid #b4dab4;
}

body.light-mode blockquote,
body.light-mode .testimonial {
  background-color: #ffffff;
  border-left: 4px solid #007a33;
  color: #333;
  padding: 1em;
  margin: 1em 0;
}

/* Navigation */
.top-nav {
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.top-nav a {
  color: #90ee90;
  text-decoration: none;
  font-weight: 600;
}

.top-nav a:hover {
  text-decoration: underline;
}

body.light-mode .top-nav {
  background-color: #ccead2;
}

body.light-mode .top-nav a {
  color: #007a33;
}

/* Toggle */
#mode-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

#mode-toggle span {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

#mode-toggle button {
  background: none;
  border: none;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
}

body.light-mode #mode-toggle {
  background-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

body.light-mode #mode-toggle span,
body.light-mode #mode-toggle button {
  color: #000;
}

/* Buttons */
.button {
  display: inline-block;
  background-color: #388e3c;
  color: white !important;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  margin: 8px 5px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: #2e7d32;
}

body.dark-mode .button {
  background-color: #2e7d32;
}

body.dark-mode .button:hover {
  background-color: #1b5e20;
}

/* Footer */
footer.footer {
  padding: 2rem;
  text-align: center;
  color: #999;
  background-color: #1e1e1e;
  margin-top: 3rem;
}

body.light-mode .footer {
  background-color: #ccead2;
  color: #222;
}

/* Layout */
main,
section,
.page-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

.hero, .services, .testimonials, .cta {
  padding: 60px 20px;
}

/* Hero */
.hero {
  text-align: center;
  background-color: #1e1e1e;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

body.light-mode .hero {
  background-color: #e9f9e9;
}

body.light-mode .hero h1,
body.light-mode .hero p {
  color: #044d29;
}

/* Services */
.services {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  background-color: #1e1e1e;
  text-align: center;
}

.service {
  flex: 1 1 280px;
  max-width: 300px;
  margin: 0 auto;
}

.service h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

body.light-mode .services {
  background-color: #e6f5e6;
}

body.light-mode .service h2,
body.light-mode .service p {
  color: #111;
}

/* Testimonials */
.testimonials {
  background-color: #1e1e1e;
  color: #fff;
}

body.light-mode .testimonials {
  background-color: #e9f9e9;
  color: #111;
}

.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
}

.testimonial-carousel blockquote {
  min-width: 300px;
  font-style: italic;
  padding: 1rem;
  background-color: #2b2b2b;
  color: #ddd;
  border-left: 4px solid #90ee90;
}

body.light-mode .testimonial-carousel blockquote {
  background-color: #fff;
  color: #111;
  border-left: 4px solid #007a33;
}

/* Carousel - Home Page */
.home-carousel .testimonial-carousel {
  position: relative;
  overflow: hidden;
  height: auto;
  max-width: 700px;
  margin: 0 auto;
}

.home-carousel .testimonial {
  opacity: 0;
  position: absolute;
  transition: opacity 0.6s ease-in-out;
  width: 100%;
  text-align: center;
  padding: 1rem;
  box-sizing: border-box;
}

.home-carousel .testimonial.active {
  opacity: 1;
  position: relative;
}

/* CTA */
.cta {
  text-align: center;
  background-color: #1e1e1e;
}

.cta h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

body.light-mode .cta {
  background-color: #ccead2;
  color: #111;
}

body.light-mode .cta h2 {
  color: #044d29;
}

/* Responsive */
@media (max-width: 768px) {
  .services {
    flex-direction: column;
    align-items: center;
  }

  .service {
    width: 100%;
    margin-bottom: 20px;
  }

  body {
    font-size: 17px;
  }

  nav a {
    font-size: 16px;
    padding: 10px 14px;
    display: inline-block;
  }

  h1, h2, h3 {
    font-size: 20px;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
  }

  .button, .download-link {
    font-size: 16px;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  .custom-contact-box,
  .audio-sample,
  .testimonial,
  .equipment-item {
    padding: 16px;
    margin-bottom: 16px;
  }

  .bio img {
    max-width: 100%;
    height: auto;
  }

  .footer {
    font-size: 14px;
    text-align: center;
  }

  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
