/* Mirage Vehicle Energy – Warm Friendly Flexbox CSS */

/* CSS RESET and NORMALIZE */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, main, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F5F5F5;
  color: #2C2C2C;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #20415A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F39422;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  font-size: 1rem;
}

/* Color palette */
:root {
  --color-primary: #20415A;
  --color-secondary: #F5F5F5;
  --color-accent: #F39422;
  --color-bg: #FFF9F3;
  --color-bg-soft: #FFFDFB;
  --color-text-main: #2C2C2C;
  --color-text-dark: #1B2632;
  --color-card: #FFF;
  --color-shadow: rgba(32,65,90,0.06);
  --color-shadow-strong: rgba(32,65,90,0.18);
  --color-banner-bg: #FFE6C6;
  --color-success: #51C187;
  --color-error: #D92D20;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; margin-bottom: 0.7em; }
h2 { font-size: 2rem; margin-bottom: 0.7em; }
h3 { font-size: 1.3rem; margin-bottom: 0.4em; }
h4 { font-size: 1.1rem; }
p, .subheadline, li, blockquote, cite {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--color-text-main);
}
.subheadline {
  font-size: 1.18rem;
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: 1.2em;
}

strong { font-weight: 600; }
blockquote {
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 0.3em;
  font-size: 1.13em;
}
cite {
  font-size: 0.97em;
  color: var(--color-accent);
  font-style: normal;
}

/* Main containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section layout spacing */
section,
.section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: none;
}
@media (max-width: 800px) {
  section,
  .section {
    padding: 32px 0;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card);
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 22px;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 var(--color-shadow-strong);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px 16px 20px;
  margin-bottom: 20px;
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 var(--color-shadow);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 var(--color-shadow-strong);
  border-color: var(--color-primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-card);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  padding: 22px 16px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.feature-item:hover {
  box-shadow: 0 6px 22px 0 var(--color-shadow-strong);
}

/* HERO section */
.hero {
  background: var(--color-bg);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 24px 0 var(--color-shadow);
  margin-bottom: 50px;
  padding: 56px 0 56px 0;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.9rem;
}
.hero .subheadline, .hero p {
  color: var(--color-primary);
  font-size: 1.18rem;
}

@media (max-width: 600px) {
  .hero {
    padding: 36px 0;
    border-radius: 0 0 18px 18px;
  }
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* Feature, Service, Industries grid structure */
.feature-grid, .service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 26px;
}
.feature-grid > div, .service-grid > div {
  background: var(--color-card);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 var(--color-shadow);
  padding: 26px 17px 22px 17px;
  flex: 1 1 240px;
  min-width: 220px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.16s, box-shadow 0.18s;
}
.feature-grid > div:hover, .service-grid > div:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 8px 28px 0 var(--color-shadow-strong);
}
.feature-grid img, .service-grid img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-banner-bg);
  object-fit: contain;
}
.feature-grid h3, .service-grid h3 {
  font-size: 1.17rem;
}
@media (max-width: 900px) {
  .feature-grid, .service-grid { gap: 18px; }
  .feature-grid > div, .service-grid > div { min-width: 160px; max-width: 100%; }
}
@media (max-width: 600px) {
  .feature-grid, .service-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-grid > div, .service-grid > div {
    width: 100%;
    min-width: unset;
    padding: 20px 13px 16px 13px;
  }
}

/* CTA Button Styles */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: 'Roboto Slab', 'Georgia', serif;
  font-weight: 700;
  font-size: 1.14rem;
  border-radius: 32px;
  padding: 12px 32px;
  box-shadow: 0 1px 10px 0 var(--color-shadow);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.15s, outline 0.12s;
  margin-top: 8px;
}
.cta.primary {
  background: var(--color-primary);
  color: #fff;
}
.cta:hover, .cta:focus {
  background: #d37c1b;
  color: #fffde6;
  transform: translateY(-1.5px) scale(1.04);
  outline: 2px solid var(--color-accent);
}
.cta.primary:hover, .cta.primary:focus {
  background: #304F6B;
  color: #FFD088;
}
@media (pointer: coarse) {
  .cta:hover, .cta:focus {
    outline: none;
    box-shadow: 0 0 0 4px #FFD08855;
  }
}

/* Footer */
footer {
  background: #FAF7F5;
  box-shadow: 0 -2px 18px 0 var(--color-shadow);
  border-radius: 24px 24px 0 0;
  padding-top: 36px;
  padding-bottom: 18px;
  margin-top: 60px;
  font-size: 0.97em;
}
footer section {
  padding: 0;
  margin-bottom: 0;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.footer-brand img{
  max-width: 80px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 18px;
}
.footer-menu a, .footer-legal a {
  color: var(--color-primary);
  font-weight: 500;
  font-size: 1em;
  opacity: 0.95;
  transition: color 0.19s;
}
.footer-menu a:hover, .footer-legal a:hover { color: var(--color-accent); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.94em;
  color: var(--color-text-dark);
  margin-bottom: 12px;
}
.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.footer-social img {
  width: 30px;
  border-radius: 7px;
  background: #FFF3E5;
  transition: box-shadow 0.19s, transform 0.12s;
}
.footer-social img:hover {
  box-shadow: 0 2px 6px var(--color-shadow-strong);
  transform: scale(1.12);
}
@media (max-width: 700px) {
  .footer-menu { flex-wrap: wrap; gap: 9px 17px; }
  .footer-brand, .footer-legal, .footer-menu, .footer-social { align-items: flex-start; }
}

/* Card styles (custom) */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* FAQ & Text section styles */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1rem;
}
.text-section h3 {
  margin-top: 12px;
  font-size: 1.13rem;
  color: var(--color-accent);
}
.text-section p {
  font-size: 1rem;
  color: var(--color-text-main);
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1111;
  background: var(--color-banner-bg);
  color: var(--color-primary);
  box-shadow: 0 -6px 24px 0 var(--color-shadow-strong);
  border-radius: 16px 16px 0 0;
  padding: 28px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
  animation: cookie-slide-in 0.5s cubic-bezier(.5,1.6,.5,1.01);
}
.cookie-banner button {
  margin: 0 10px;
  padding: 10px 26px;
  font-family: 'Roboto Slab', serif;
  font-size: 1em;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: background 0.13s, color 0.14s;
  margin-top: 0.3em;
}
.cookie-banner .accept {
  background: var(--color-success);
  color: #fff;
}
.cookie-banner .reject {
  background: var(--color-error);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 650px) {
  .cookie-banner { font-size: 0.99em; padding: 20px 7px 14px 7px; }
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Cookie modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32,65,90, 0.25);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-bg 0.25s ease;
}
@keyframes fade-in-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal {
  background: var(--color-card);
  box-shadow: 0 4px 44px 0 var(--color-shadow-strong);
  border-radius: 23px;
  padding: 38px 32px 32px 32px;
  min-width: 300px;
  max-width: 95vw;
  color: var(--color-text-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modal-pop-in 0.22s cubic-bezier(.17,.67,.65,1.48);
}
@keyframes modal-pop-in {
  from { transform: scale(0.85) translateY(60px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 { font-size: 1.35rem; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.07em;
  padding: 12px 0;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--color-accent);
  width: 22px; height: 22px;
  border-radius: 4px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
}
.cookie-modal button {
  font-family: 'Roboto Slab', serif;
  font-size: 1em;
  border-radius: 19px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.17s, color 0.14s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--color-accent);
  color: #fff;
}

/* Header Main Nav */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 var(--color-shadow);
  border-radius: 0 0 28px 28px;
  padding: 0.4em 0 0.3em 0;
  position: sticky;
  top: 0px; left: 0; z-index: 100;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 10px 0 10px 0;
}
.main-nav a {
  color: var(--color-primary);
  font-weight: 700;
  font-family: 'Roboto Slab', serif;
  font-size: 1.05em;
  padding: 7px 13px;
  border-radius: 22px;
  transition: background 0.15s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
.main-nav img {
  width: 46px;
  height: auto;
  margin-right: 8px;
}
.main-nav .cta.primary {
  margin-left: 18px;
}

/* Hide mobile menu button by default */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 900px) {
  .main-nav { gap: 12px; }
}
@media (max-width: 820px) {
  .main-nav a:not(:first-child), .main-nav .cta.primary { font-size: 1em; padding: 6px 10px; }
  .main-nav img { width: 34px; }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    position: absolute;
    right: 26px;
    top: 20px;
    background: var(--color-primary);
    color: #fff;
    font-size: 2rem;
    border: none;
    border-radius: 14px;
    padding: 8px 14px 7px 14px;
    box-shadow: 0 1px 16px 0 var(--color-shadow);
    cursor: pointer;
    z-index: 3002;
    transition: background 0.13s, color 0.11s;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: var(--color-accent);
    color: #fffde0;
  }
}

/* Mobile Navigation Drawer */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2004;
  background: #FFFDFB;
  box-shadow: 0 6px 32px 0 var(--color-shadow);
  transform: translateX(-110vw);
  transition: transform 0.33s cubic-bezier(.6,1.21,.39,1.05);
  display: flex;
  flex-direction: column;
  padding: 0;
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  animation: mobile-menu-slide-in 0.3s;
}
@keyframes mobile-menu-slide-in {
  from { transform: translateX(-110vw); }
  to { transform: translateX(0); }
}
.mobile-menu-close {
  display: flex;
  align-self: flex-end;
  background: none;
  color: var(--color-primary);
  font-size: 2.1rem;
  border: none;
  margin: 28px 26px 12px 0;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 15px;
  transition: background 0.12s, color 0.13s;
  z-index: 2006;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 28px 32px;
  margin-top: 15px;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.27em;
  padding: 11px 0 10px 0;
  width: 100%;
  border-radius: 13px;
  transition: background 0.1s, color 0.1s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent);
  color: #fff;
}
@media (max-width: 500px) {
  .mobile-nav { padding: 24px 12px; gap: 10px; }
  .mobile-menu-close { margin: 14px 9px 0 0; font-size: 2rem; }
}
/* Mobile Only Menu Cover */
@media (max-width: 720px) {
  .mobile-menu {
    display: flex;
  }
}

/* CTA BANNER */
.cta-banner {
  background: var(--color-banner-bg);
  border-radius: 18px;
  box-shadow: 0 2px 18px 0 var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding: 40px 0;
}
.cta-banner .content-wrapper {
  gap: 18px;
  align-items: center;
}

/* Map Placeholder */
.map-placeholder {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 18px;
  background: var(--color-card);
  border-radius: 16px;
  box-shadow: 0 2px 13px 0 var(--color-shadow);
  padding: 18px 18px;
}
.map-placeholder img {
  width: 78px;
}
@media (max-width: 600px) {
  .map-placeholder { flex-direction: column; gap: 13px; padding: 14px 7px; }
  .map-placeholder img { width: 62px; }
}

/* Process list */
.process ol {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
  margin-bottom: 22px;
}
.process ol li {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--color-card);
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 var(--color-shadow);
  font-size: 1.03em;
  padding: 13px 19px 13px 11px;
  min-width: 184px;
  margin-bottom: 12px;
}
.process ol li img {
  width: 30px;
  height: 30px;
  background: var(--color-banner-bg);
  border-radius: 8px;
}
@media (max-width: 700px) { .process ol { flex-direction: column; gap: 10px; } }
@media (max-width: 470px) { .process ol li { min-width: 0; width: 100%; padding: 8px 6px; } }

/* Responsive tweaks for .content-wrapper, containers, major flex containers */
@media (max-width: 920px) {
  .container { padding: 0 8px; }
  .content-wrapper { gap: 18px; }
}
@media (max-width: 700px) {
  .content-wrapper { gap: 13px; }
}

/* Legal, confirmations */
.legal, .confirmation {
  background: var(--color-bg);
  border-radius: 13px;
  box-shadow: 0 1px 12px 0 var(--color-shadow);
  padding: 38px 0 38px 0;
}
.legal .text-section, .confirmation .content-wrapper {
  gap: 15px;
}

/* Milestones & partner-logos section */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.partner-logos img {
  width: 64px; background: #FFF3E5;
  padding: 8px; border-radius: 9px;
  box-shadow: 0 1px 7px 0 var(--color-shadow);
}
@media (max-width: 520px) { .partner-logos { gap: 8px; } .partner-logos img { width: 44px; } }

/* Other section and card spacing */
.section, section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure all cards/sections have AT LEAST 20px margin between them */
.section > *, .card-container > *, .feature-grid > *, .service-grid > * {
  margin-bottom: 20px;
}

/* Visual micro-interactions for links, buttons, cards */
a,
.cta,
input[type="checkbox"],
.mobile-menu-toggle,
.mobile-menu-close {
  transition: box-shadow 0.15s, background 0.18s, transform 0.13s, color 0.14s;
}

/* Accessibility: High contrast for review/testimonial text */
.testimonials, .testimonial-card, .testimonial-card blockquote, .testimonial-card cite {
  color: #1B2632;
  background: var(--color-bg);
}

/* Misc: remove outline for mouse, keep for keyboard */
*:focus:not(:focus-visible) { outline: none; }
*:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; }

/* Hide visually but accessible to screen readers (use class .sr-only if needed) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive typography scaling (without clamp) */
@media (max-width: 1100px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.45rem; }
}
@media (max-width: 500px) {
  h1 { font-size: 1.46rem; }
  h2 { font-size: 1.08rem; }
  .cta { font-size: 1em; padding: 10px 16px; }
}

/* Hide main nav, show burger on mobile */
@media (max-width: 720px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}

/* Hide cookie-modal by default */
.cookie-modal-overlay { display: none; }
.cookie-modal-overlay.open { display: flex; }

/* Utility: Hide elements */
.hide { display: none !important; }
