/* --- RESET & BASE --- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #F7F7FF;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #F7F7FF;
  color: #1A2656;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: #29A6A6; text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: #F71A5E; outline: none; }

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #1A2656;
  margin-top: 0;
  margin-bottom: 18px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; }
p, ul, ol, li, span, label, input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #1A2656;
}
strong { font-weight: 700; }
.subheadline {
  font-size: 1.12rem;
  color: #29A6A6;
  font-weight: 500;
  letter-spacing: 0.1px;
}

/* --- LAYOUT CONTAINERS & SECTIONS --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: transparent;
  position: relative;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px 0 rgba(41,166,166,.07), 0 1.5px 6px 0 rgba(26,38,86,.10);
  padding: 32px 28px;
  flex: 1 1 320px;
  transition: box-shadow 0.25s, transform 0.22s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 34px 0 rgba(247,26,94,0.18), 0 3px 12px 0 rgba(41,166,166,0.13);
  transform: translateY(-3px) scale(1.025);
  z-index: 2;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 15px;
  padding: 24px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px 0 rgba(41,166,166,.06);
}
.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;
}

/* --- FEATURE GRIDS --- */
.feature-grid, .service-grid, .industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid > div, .service-grid > div, .industry-grid > div {
  flex: 1 1 270px;
  min-width: 250px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 14px 0 rgba(41,166,166,.08);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.17s;
}
.feature-grid > div:hover, .service-grid > div:hover, .industry-grid > div:hover {
  box-shadow: 0 7px 22px 0 rgba(41,166,166,0.15), 0 6px 40px 0 rgba(247,26,94,0.10);
  transform: translateY(-2px) scale(1.018);
  z-index: 2;
}
.feature-grid img, .industry-grid img {
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  filter: drop-shadow(0 1px 5px #29A6A640);
}

/* --- BUTTONS --- */
.cta-btn, .cookie-btn, .cookie-pref-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 26px;
  background: #29A6A6;
  color: #fff;
  border: none;
  padding: 15px 36px;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.1px;
  box-shadow: 0 2px 10px 0 rgba(26,38,86,0.13);
  transition: background 0.18s, transform 0.20s, box-shadow 0.25s, color 0.18s;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus, .cookie-btn:hover, .cookie-btn:focus, .cookie-pref-btn:hover, .cookie-pref-btn:focus {
  background: #F71A5E;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 32px 0 rgba(247,26,94,0.16);
}
.cookie-btn.reject, .cookie-pref-btn.reject {
  background: #fff;
  color: #1A2656;
  border: 2px solid #29A6A6;
}
.cookie-btn.reject:hover, .cookie-pref-btn.reject:hover {
  color: #F71A5E;
  border-color: #F71A5E;
  background: #f7f7ff;
}
.cookie-btn.settings, .cookie-pref-btn.settings {
  background: #F7F7FF;
  color: #29A6A6;
  border: 2px solid #29A6A6;
}
.cookie-btn.settings:hover, .cookie-pref-btn.settings:hover {
  background: #1A2656;
  color: #fff;
  border-color: #1A2656;
}


/* --- HEADER --- */
header {
  background: #fff;
  box-shadow: 0 3px 22px 0 rgba(26,38,86,0.07);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
header img[alt="Sparqle Motor Insights"] {
  height: 44px;
  margin-right: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #1A2656;
  font-size: 1.03rem;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
header nav a:hover, header nav a:focus {
  background: #29A6A6;
  color: #fff;
  outline: none;
}
header .cta-btn {
  margin-left: 16px;
  box-shadow: 0 2px 10px 0 rgba(41,166,166,0.09);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: #29A6A6;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 7px;
  padding: 8px 16px;
  margin-left: 18px;
  cursor: pointer;
  z-index: 1001;
  transition: box-shadow 0.17s, background 0.15s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #1A2656;
  box-shadow: 0 6px 18px 0 rgba(41,166,166,0.10);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #1A2656E6;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(.6, .05, .1, 1.02);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  padding: 24px 28px 6px 16px;
  align-self: flex-end;
  cursor: pointer;
  z-index: 3001;
  transition: color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #29A6A6;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  width: 100%;
  align-items: flex-start;
  padding: 36px 30px 0 38px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 12px 0;
  border-radius: 7px;
  min-width: 180px;
  margin-bottom: 6px;
  transition: background 0.17s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #29A6A6;
  background: #fff;
}


/* --- HERO --- */
section:first-child {
  background: linear-gradient(90deg, #F7F7FF 60%, #29A6A615 90%);
  margin-bottom: 40px;
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  box-shadow: 0 3px 32px 0 rgba(41,166,166,0.03);
  padding-bottom: 48px;
}
section:first-child h1 {
  color: #1A2656;
  font-size: 2.7rem;
}
section:first-child .subheadline {
  font-size: 1.19rem;
  color: #29A6A6;
}


/* --- CTA BANNER --- */
.cta-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  background: #29A6A6;
  border-radius: 19px;
  box-shadow: 0 8px 32px 0 rgba(26,38,86,0.08), 0 2px 12px 0 rgba(41,166,166,0.07);
  color: #fff;
}
.cta-banner h2, .cta-banner p {
  color: #fff;
  margin-bottom: 0;
}
.cta-banner .cta-btn {
  background: #fff;
  color: #29A6A6;
  border: 2.5px solid #fff;
}
.cta-banner .cta-btn:hover, .cta-banner .cta-btn:focus {
  background: #F71A5E;
  color: #fff;
  border-color: #F71A5E;
}

/* --- TESTIMONIALS --- */
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 26px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px 0 rgba(26,38,86,0.10);
  margin-bottom: 24px;
  font-style: italic;
  font-size: 1.08rem;
  min-width: 250px;
  max-width: 440px;
  flex: 1 1 320px;
  color: #222335;
  border-left: 5px solid #29A6A6;
  transition: box-shadow 0.18s, border-color 0.15s;
}
.testimonial-card span {
  font-weight: 600;
  font-size: .99rem;
  font-style: normal;
  color: #1A2656;
}
.testimonial-card:hover, .testimonial-card:focus {
  border-color: #F71A5E;
  box-shadow: 0 8px 28px 0 rgba(247,26,94,0.13);
}
.client-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 12px;
  opacity: .88;
  filter: grayscale(.45);
}
.client-logos img {
  height: 46px;
}

/* --- INSIGHT CATEGORIES, TRENDING, CASES --- */
.insight-categories, .trending-topics, .case-snippets, .success-metrics, .outcome-metrics {
  background: #29A6A615;
  border-radius: 14px;
  margin-top: 18px;
  padding: 18px 19px;
  color: #1A2656;
  font-size: 1.01rem;
}
.insights-list {
  padding: 0;
  margin: 0 0 8px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.insights-list li {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 8px 0 rgba(41,166,166,0.08);
  padding: 18px 20px;
}

/* --- TEAMS --- */
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 12px;
}
.team-profiles > div {
  flex: 1 1 270px;
  min-width: 225px;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2.5px 12px 0 rgba(26,38,86,0.07);
  padding: 18px 16px;
  text-align: left;
}

/* --- FOOTER --- */
footer {
  background: #1A2656;
  color: #fff;
  padding: 40px 0 24px 0;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  box-shadow: 0 -4px 24px 0 rgba(26,38,86,0.12);
  margin-top: 50px;
}
footer .container {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
footer img[alt="Sparqle Motor Insights"] {
  height: 44px;
  margin-bottom: 10px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
footer nav a {
  color: #fff;
  font-size: 1rem;
  opacity: .84;
  text-decoration: underline;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  transition: color .19s, opacity .13s;
}
footer nav a:hover, footer nav a:focus {
  color: #29A6A6;
  opacity: 1;
}
footer .contact-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: .98rem;
  opacity: .93;
}
footer .contact-details img {
  width: 17px;
  height: 17px;
  margin-right: 3px;
  vertical-align: middle;
  filter: drop-shadow(0 0 3px #29A6A646);
}
footer .social-links {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 16px;
}
footer .social-links a img {
  width: 32px;
  height: 32px;
  opacity: .8;
  transition: opacity 0.12s;
}
footer .social-links a:hover img, footer .social-links a:focus img {
  opacity: 1;
}

/* --- FORMS & INPUTS --- */
input, select, textarea {
  border: 2px solid #29A6A6;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  outline: none;
  margin-bottom: 18px;
  width: 100%;
  box-shadow: 0 1px 4px 0 rgba(41,166,166,0.05);
  transition: border-color .18s;
}
input:focus, textarea:focus {
  border-color: #F71A5E;
}
label { display: block; margin-bottom: 7px; font-weight: 700; }

/* --- LISTS, OL/UL, LI --- */
ul, ol {
  margin: 0;
  margin-bottom: 18px;
  padding-left: 19px;
  color: #1A2656;
}
ul li, ol li { margin-bottom: 10px; }
ul li strong, ol li strong { color: #29A6A6; font-weight: bold; }

/* --- MODALS, ANIMATION --- */
@keyframes slideInUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes modalIn {
  from { transform: scale(0.96) translateY(44px); opacity: 0.22; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  z-index: 3000;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #1A2656;
  box-shadow: 0 -3px 22px 0 rgba(41,166,166,0.10);
  padding: 20px 18px 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 22px;
  animation: slideInUp .55s cubic-bezier(.7,.2,.1,1.08);
}
.cookie-banner p {
  max-width: 450px;
  margin: 0 12px 0 0;
  font-size: 1rem;
  color: #1A2656;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
}

/* Cookie Modal */
.cookie-modal-bg {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: #1A2656BA;
  z-index: 4000;
  display: none;
}
.cookie-modal-bg.open { display: block; }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  padding: 34px 32px 26px 32px;
  max-width: 400px;
  margin: 5vh auto 0 auto;
  box-shadow: 0 6px 40px 0 rgba(41,166,166,0.19);
  animation: modalIn .38s cubic-bezier(.58,.2,.12,1.04);
  position: relative;
}
.cookie-modal h2 {
  color: #1A2656;
  font-size: 1.3rem;
  margin-bottom: 17px;
}
.cookie-modal label {
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.cookie-modal .cookie-toggle {
  margin-left: 10px;
  accent-color: #29A6A6;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #1A2656;
  cursor: pointer;
  opacity: .6;
  transition: opacity .17s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  opacity: 1;
}

/* --- MISC & UTILITIES --- */
.hidden { display: none !important; }
.vertical-center { align-items: center; justify-content: center; }
.text-center { text-align: center !important; }
.mt-32 { margin-top: 32px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mb-32 { margin-bottom: 32px; }

/* --- MEDIA QUERIES: MOBILE-FIRST --- */
@media (max-width: 1080px) {
  .container { max-width: 100%; padding: 0 16px; }
  header .container, footer .container {
    gap: 16px;
    flex-wrap: wrap;
    height: auto;
  }
  .feature-grid, .service-grid, .industry-grid { gap: 20px; }
  .team-profiles { gap: 16px; }
  .testimonial-slider { gap: 16px; }
}
@media (max-width: 920px) {
  .feature-grid > div, .service-grid > div, .industry-grid > div, .team-profiles > div, .card {
    flex: 1 1 95%;
    min-width: 180px;
    max-width: 100%;
  }
  .testimonial-card { max-width: 95%; }
  .content-grid { gap: 14px; }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    height: auto;
    padding-top: 14px;
    padding-bottom: 7px;
  }
  header nav, header .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
  .section {
    margin-bottom: 40px;
    padding: 28px 9px;
  }
  .content-wrapper, .cta-banner { gap: 18px; }
  .text-image-section { flex-direction: column; gap: 17px; }
  .feature-grid, .service-grid, .industry-grid, .testimonial-slider, .card-container, .team-profiles {
    flex-direction: column;
    gap: 15px;
  }
  .testimonial-card { min-width: 0; }
  .cta-banner {
    border-radius: 12px;
    padding: 20px 10px;
  }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 21px;
  }
}
@media (max-width: 540px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.09rem; }
  .section {
    margin-bottom: 28px;
    padding: 16px 4px 12px 4px;
  }
  .feature-grid > div, .service-grid > div, .industry-grid > div, .team-profiles > div {
    padding: 13px 9px;
  }
  .testimonial-card, .card {
    padding: 13px 7px;
    font-size: .99rem;
  }
  .cta-btn { padding: 10px 18px; font-size: 1rem; }
}
/* --- END CSS --- */
