/* Electric Grove - Modern Bold CSS Theme */

/* 1. Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');

:root {
  --primary: #16447E;
  --secondary: #18A999;
  --accent: #F5F7FA;
  --black: #181C22;
  --white: #fff;
  --gray: #E5EAF1;
  --danger: #E74C3C;
  --shadow: 0 4px 24px 0 rgba(22,68,126,0.08), 0 1.5px 6px 0 rgba(24,169,153,0.08);
  --radius: 18px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--accent);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
}

/* 2. Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  line-height: 1.15;
}
h3 {
  font-size: 1.35rem;
  font-weight: 700;
}
h4 {
  font-size: 1.1rem;
  font-weight: 700;
}
p, ul, ol {
  font-family: var(--font-body);
  font-size: 1rem;
  margin: 0 0 18px 0;
  color: var(--black);
}
strong {
  font-weight: 700;
}
a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 700;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--primary);
  text-decoration: underline;
}

/* 3. Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* 4. Header & Navigation */
header {
  background: var(--white);
  box-shadow: 0 2px 16px 0 rgba(22,68,126,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 18px 0;
}
header nav > a img {
  height: 38px;
  width: auto;
  display: block;
}
header nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
header nav ul li a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}
header nav ul li a:hover, header nav ul li a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--secondary) 60%, var(--primary) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 32px;
  box-shadow: 0 2px 12px 0 rgba(24,169,153,0.12);
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-left: 18px;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, var(--primary) 60%, var(--secondary) 100%);
  color: var(--white);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px 0 rgba(22,68,126,0.13);
}

/* 5. Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  margin-left: 16px;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  box-shadow: 0 2px 12px 0 rgba(22,68,126,0.13);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--white);
  box-shadow: 0 8px 32px 0 rgba(22,68,126,0.18);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.25s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: var(--danger);
  color: var(--white);
  font-size: 2rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--primary);
  padding: 12px 0;
  border-bottom: 2px solid var(--gray);
  transition: color var(--transition), background var(--transition);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: var(--accent);
}

/* Hide desktop nav on mobile, show burger */
@media (max-width: 1024px) {
  header nav ul, header nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* 6. Main Content Layouts */
.feature-grid, .service-list, .resource-list, .blog-post-grid, .team-section, .pricing-table {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div, .service-list > div, .resource-list > div, .blog-post-grid > div, .team-section > div, .pricing-table > div {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .service-list > div:hover, .resource-list > div:hover, .blog-post-grid > div:hover, .team-section > div:hover, .pricing-table > div:hover {
  box-shadow: 0 8px 32px 0 rgba(24,169,153,0.13);
  transform: translateY(-4px) scale(1.03);
}

.plan-comparison, .pricing-faq, .downloadable-guides, .video-tutorials, .faq-accordion, .featured-post, .photo-gallery, .contact-info, .map {
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  margin-bottom: 20px;
}

/* Cards & Containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 320px;
  color: var(--black);
}
.testimonial-card p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--black);
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* 7. Footer */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 40px 0 0 0;
  margin-top: 60px;
}
footer .container {
  padding-bottom: 24px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 34px;
  margin-bottom: 8px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 8px;
}
footer nav a {
  color: var(--white);
  font-weight: 700;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--secondary);
}
footer p {
  color: var(--accent);
  font-size: 0.98rem;
  text-align: center;
  margin: 0;
}

/* 8. Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px 16px 16px;
  z-index: 9999;
  box-shadow: 0 -4px 24px 0 rgba(22,68,126,0.13);
  animation: cookieSlideIn 0.5s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--white);
  margin: 0 0 8px 0;
  font-size: 1rem;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px 0 rgba(24,169,153,0.13);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--white);
  color: var(--secondary);
}
.cookie-banner .reject {
  background: var(--danger);
  color: var(--white);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--white);
  color: var(--danger);
}
.cookie-banner .settings {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--primary);
  color: var(--white);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(22,68,126,0.18);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--white);
  color: var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalPopIn 0.35s cubic-bezier(.4,0,.2,1);
}
@keyframes modalPopIn {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal-content .cookie-category label {
  font-weight: 700;
  color: var(--primary);
}
.cookie-modal-content .cookie-category input[type="checkbox"] {
  accent-color: var(--secondary);
  width: 22px;
  height: 22px;
}
.cookie-modal-content .cookie-category input[disabled] {
  accent-color: var(--gray);
}
.cookie-modal-content .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
}
.cookie-modal-content button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 28px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal-content .save {
  background: var(--secondary);
  color: var(--white);
}
.cookie-modal-content .save:hover, .cookie-modal-content .save:focus {
  background: var(--primary);
  color: var(--white);
}
.cookie-modal-content .cancel {
  background: var(--gray);
  color: var(--primary);
}
.cookie-modal-content .cancel:hover, .cookie-modal-content .cancel:focus {
  background: var(--primary);
  color: var(--white);
}

/* 9. Responsive Design */
@media (max-width: 1024px) {
  .feature-grid, .service-list, .resource-list, .blog-post-grid, .team-section, .pricing-table, .testimonial-slider {
    gap: 18px;
  }
  .feature-grid > div, .service-list > div, .resource-list > div, .blog-post-grid > div, .team-section > div, .pricing-table > div, .testimonial-card {
    min-width: 180px;
    padding: 20px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 8px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .section {
    margin-bottom: 36px;
    padding: 24px 8px;
  }
  .feature-grid, .service-list, .resource-list, .blog-post-grid, .team-section, .pricing-table, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .service-list > div, .resource-list > div, .blog-post-grid > div, .team-section > div, .pricing-table > div, .testimonial-card {
    min-width: 0;
    width: 100%;
    padding: 16px 8px;
  }
  .plan-comparison, .pricing-faq, .downloadable-guides, .video-tutorials, .faq-accordion, .featured-post, .photo-gallery, .contact-info, .map {
    padding: 16px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  header nav {
    flex-direction: row;
    gap: 10px;
    padding: 10px 0;
  }
  footer {
    padding: 24px 0 0 0;
  }
}

/* 10. Micro-interactions & Effects */
button, .cta-btn, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
}
button:focus-visible, .cta-btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* 11. Geometric Decorative Elements (Modern Bold) */
.section {
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -60px;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--secondary) 60%, var(--primary) 100%);
  opacity: 0.09;
  border-radius: 50% 40% 60% 50% / 60% 50% 40% 50%;
  z-index: 0;
  pointer-events: none;
}
.section > * {
  position: relative;
  z-index: 1;
}

/* 12. Utility Classes */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 12px !important; }
.mb-2 { margin-bottom: 12px !important; }
.text-center { text-align: center !important; }

/* 13. Accessibility */
[tabindex]:focus {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

/* 14. Hide elements visually but keep for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* 15. Miscellaneous */
ul, ol {
  padding-left: 22px;
}
li {
  margin-bottom: 8px;
}

/* 16. Prevent Overlapping */
.feature-grid > div, .service-list > div, .resource-list > div, .blog-post-grid > div, .team-section > div, .pricing-table > div, .testimonial-card {
  margin-bottom: 20px;
}

/* 17. Prevent absolute for content cards (only for decorative) */
/* Already enforced above */

/* 18. Ensure proper z-index stacking for overlays */
.mobile-menu, .cookie-modal {
  z-index: 2000;
}

/* 19. Custom Scrollbar for Modern Look */
::-webkit-scrollbar {
  width: 8px;
  background: var(--accent);
}
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 8px;
}

/* 20. Hide scroll on mobile menu when closed */
body.mobile-menu-open {
  overflow: hidden;
}

/* END Electric Grove Modern Bold CSS */
