/* Dark mode styles with vibrant blue theme */
:root {
  /* Light mode variables (default) */
  --primary-color: #1e73be;     /* Blue - headings, buttons, accents */
  --secondary-color: #4e9e6a;   /* Green - highlights, secondary elements */
  --background-color: #ffffff;  /* White - main background */
  --text-color: #333333;        /* Dark gray - better readability than black */
  --accent-color: #f5f5f5;      /* Light gray - section backgrounds */
  --footer-color: #f0f0f0;      /* Slightly darker gray for footer */
  --button-hover: #1a5c9e;      /* Darker blue for button hover states */
  --highlight-color: #e9f5ff;   /* Very light blue for highlights */
  --card-bg: #ffffff;           /* Card background */
  --border-color: #dddddd;      /* Border color */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Shadow color */
}

/* Vibrant Blue Dark mode variables */
[data-theme="dark"] {
  --primary-color: #4a9dff;     /* Brighter blue for dark mode */
  --secondary-color: #6ed186;   /* Vibrant green for dark mode */
  --background-color: #1a3a5a;  /* Deep blue background instead of dark gray */
  --text-color: #333333;        /* Dark Grey text for better contrast */
  --accent-color: #234870;      /* Lighter blue for section backgrounds */
  --footer-color: #183050;      /* Slightly darker blue for footer */
  --button-hover: #3a8bd8;      /* Hover state for dark mode */
  --highlight-color: #2a5a8a;   /* Vibrant blue for highlights */
  --card-bg: #234870;           /* Card background */
  --border-color: #3a6090;      /* Border color */
  --shadow-color: rgba(0, 0, 0, 0.3); /* Shadow color */
}

/* Apply theme transitions */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Dark mode toggle button */
.theme-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 900;
  border: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  background-color: var(--button-hover);
  transform: scale(1.05);
}

.theme-toggle i {
  font-size: 1.5rem;
}

/* Adjust elements for dark mode */
[data-theme="dark"] header,
[data-theme="dark"] .service-card,
[data-theme="dark"] .contact-method,
[data-theme="dark"] .contact-form-container,
[data-theme="dark"] .directions-box,
[data-theme="dark"] .price-table {
  background-color: var(--card-bg);
  box-shadow: 0 5px 15px var(--shadow-color);
}

[data-theme="dark"] .price-table th {
  background-color: var(--primary-color);
}

[data-theme="dark"] .price-table tr:nth-child(even) {
  background-color: var(--accent-color);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background-color: var(--accent-color);
  border-color: var(--border-color);
  color: var(--text-color);
}

[data-theme="dark"] .hours-box,
[data-theme="dark"] .policy-box {
  background-color: var(--accent-color);
}

[data-theme="dark"] .nav-menu.active {
  background-color: var(--background-color);
}

[data-theme="dark"] img {
  filter: brightness(0.95);
}

/* Add some subtle gradients for more vibrant feel */
[data-theme="dark"] .hero,
[data-theme="dark"] .page-banner {
  background: linear-gradient(135deg, var(--background-color), var(--highlight-color));
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, var(--highlight-color), var(--background-color));
}

/* Mobile adjustments for dark mode toggle */
@media (max-width: 767px) {
  .theme-toggle {
    bottom: 80px; /* Position above the mobile CTA */
  }
  
  [data-theme="dark"] .mobile-cta {
    background-color: var(--card-bg);
  }
}
