/* --- CSS RESET & 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,
menu, 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 {
  line-height: 1.15;
  scroll-behavior: smooth;
}
body {
  background: #F7F6F4;
  font-family: 'Roboto', Arial, sans-serif;
  color: #18313B;
  min-height: 100vh;
  font-size: 16px;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
ul, ol {
  list-style: none;
}
button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  outline: none;
}

/* --- BRAND VARIABLES as custom properties --- */
:root {
  --color-primary: #18313B;
  --color-secondary: #C1A875;
  --color-accent: #F7F6F4;
  --color-electric: #EE2A51;
  --color-electric2: #00D8A7;
  --color-electric3: #FFA723;
  --color-dark: #101921;
  --color-card-bg: #fff;
  --shadow-elevated: 0 6px 24px rgba(24,49,59,0.12);
  --shadow-card: 0 2px 12px rgba(24,49,59,0.10);
  --radius-card: 18px;
  --radius-btn: 32px;
  --radius-section: 18px;
  --font-display: 'Oswald', Arial, sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* --- TYPOGRAPHY & HEADINGS --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 800;
}
h1 {
  font-size: 2.5rem;
  color: var(--color-dark);
  margin-bottom: 16px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  color: var(--color-electric2);
  margin-bottom: 10px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
p, ul, ol, li, span {
  font-family: var(--font-body);
  color: var(--color-dark);
  font-size: 1rem;
  line-height: 1.7;
}
p {
  margin-bottom: 16px;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}

/* --- LINKS --- */
a {
  transition: color 0.15s, background 0.15s;
}
a:hover, a:focus {
  color: var(--color-electric);
}

/* --- BUTTONS: .cta-primary, .cta-secondary --- */
.cta-primary, .cta-secondary, .cookie-btn {
  padding: 12px 32px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  border: none;
  transition: background 0.15s, color 0.15s, transform 0.1s, box-shadow 0.2s;
  display: inline-block;
  text-align: center;
  box-shadow: 0 2px 16px rgba(238,42,81,0.12);
  margin-top: 14px;
}
.cta-primary {
  background: var(--color-electric);
  color: #fff;
  box-shadow: 0 4px 20px rgba(238, 42, 81, 0.18);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-electric2);
  color: var(--color-primary);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 26px rgba(0,216,167,0.16);
}
.cta-secondary {
  background: none;
  border: 2px solid var(--color-electric);
  color: var(--color-electric);
  box-shadow: none;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-electric);
  color: #fff;
  border-color: var(--color-electric2);
  transform: translateY(-2px) scale(1.03);
}

/* --- GENERAL LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section, main > section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-accent);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-elevated);
  position: relative;
  /* For energetic feel, add subtle colored border left or top on sections */
  border-left: 6px solid var(--color-electric);
}

main > section.hero, main > .hero, .news-hero {
  background: linear-gradient(100deg,var(--color-electric) 35%, var(--color-accent) 80%);
  color: #fff;
  padding: 60px 0 60px 0;
  border-left: none;
  border-radius: 0 0 48px 48px;
  box-shadow: 0 12px 40px rgba(24,49,59,0.13);
}
main > section.hero .content-wrapper, .news-hero .content-wrapper {
  align-items: flex-start;
}

/* --- FLEXBOX PATTERNS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-card-bg);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.14s;
}
.card:hover {
  box-shadow: 0 6px 40px rgba(238,42,81,0.13);
  transform: translateY(-2px) scale(1.03);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 18px rgba(24,49,59,0.12);
  border-radius: 16px;
  margin-bottom: 20px;
  border-left: 4px solid var(--color-electric2);
  max-width: 480px;
  color: #222;
  font-size: 1.06rem;
  position: relative;
}
.testimonial-card strong {
  font-size: 1rem;
  color: var(--color-electric);
  font-family: var(--font-display);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SPECIAL COMPONENTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  margin-bottom: 22px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 2px 12px rgba(0,216,167,0.09);
  padding: 26px 24px 20px 24px;
  flex: 1 1 210px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.12s;
  border-top: 4px solid var(--color-electric3);
}
.feature-grid > div:hover {
  box-shadow: 0 8px 34px rgba(255,167,35,0.16);
  transform: translateY(-4px) scale(1.04);
  border-top-color: var(--color-electric2);
}
.feature-grid img {
  width: 38px;
  height: 38px;
}

.car-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 16px 0 28px 0;
  padding-left: 8px;
}
.car-categories li {
  background: var(--color-electric2);
  color: #fff;
  padding: 8px 20px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.car-overview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.car-overview-grid > div {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: 0 2px 10px rgba(24,49,59,0.09);
  padding: 18px 20px;
  min-width: 210px;
  font-size: 1.08rem;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 10px;
}
.text-section ul, .text-section ol {
  list-style: disc inside;
  padding-left: 18px;
  margin-bottom: 12px;
}
.text-section li {
  margin-bottom: 8px;
}

/* --- FOOTER --- */
footer {
  background: var(--color-primary);
  color: #fff;
  padding: 48px 0 24px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}
.footer-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: var(--color-electric);
}
.brand-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.brand-footer img {
  width: 48px;
  margin-bottom: 10px;
}
.brand-footer p {
  font-size: 0.98rem;
  color: #fff;
  opacity: 0.86;
}
.contact-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.contact-footer ul {
  list-style: none;
}
.contact-footer li {
  display: flex;
  align-items: center;
  color: #fff;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 8px;
}
.contact-footer img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(24,49,59,0.06);
  position: sticky;
  top: 0;
  z-index: 990;
  min-height: 64px;
}
header .container {
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.logo img {
  height: 40px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}
.main-nav a {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1.08rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  transition: background 0.11s, color 0.11s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #fff;
  background: var(--color-electric);
}
.mobile-menu-toggle {
  display: none;
  background: var(--color-electric);
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  z-index: 1202;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: rgba(24,49,59, 0.97);
  z-index: 1200;
  padding: 32px 0 0 0;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.82,0,.2,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  color: #fff;
  background: none;
  font-size: 2.15rem;
  position: absolute;
  top: 18px; right: 26px;
  z-index: 1212;
  border: none;
  transition: color 0.15s, background 0.1s;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-electric2);
  color: var(--color-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  margin-top: 36px;
  margin-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 10px 0;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-electric2);
  color: var(--color-primary);
}

/* --- COOKIES CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: #fff;
  box-shadow: 0 3px 22px rgba(24,49,59,0.22);
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 22px;
  padding: 22px 34px 22px 34px;
  border-top: 6px solid var(--color-electric);
  border-radius: 24px 24px 0 0;
  max-width: 680px;
  margin: 0 auto;
  left: 0; right: 0;
  animation: cookieBannerAppear 0.55s cubic-bezier(.5,0,.25,1);
}
@keyframes cookieBannerAppear {
  0% { opacity:0; transform: translateY(60px); }
  100% { opacity:1; transform: translateY(0); }
}
.cookie-banner .cookie-text {
  flex: 1 0 220px;
  color: var(--color-primary);
  font-size: 1rem;
  font-family: var(--font-body);
  line-height: 1.7;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.cookie-btn {
  padding: 11px 30px;
  font-size: 1rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  margin-bottom: 0;
  transition: background 0.13s, color 0.13s;
  border: none;
}
.cookie-btn.accept {
  background: var(--color-electric2);
  color: var(--color-primary);
}
.cookie-btn.accept:hover {
  background: var(--color-electric);
  color: #fff;
}
.cookie-btn.reject {
  background: #f1f1f1;
  color: var(--color-electric);
  border: 2px solid var(--color-electric);
}
.cookie-btn.reject:hover {
  background: var(--color-electric3);
  color: var(--color-primary);
}
.cookie-btn.settings {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-btn.settings:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Cookie Settings MODAL */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,49,59,0.88);
  z-index: 2100;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn .33s cubic-bezier(.8,0,.2,1);
}
@keyframes fadeIn {
  0% { opacity:0; }
  100% { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 24px;
  padding: 36px 28px 32px 34px;
  max-width: 420px;
  width: 96%;
  box-shadow: 0 6px 38px rgba(238,42,81,0.18);
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal h2 {
  color: var(--color-electric);
  font-size: 1.25rem;
  margin-bottom: 12px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px; right: 18px;
  font-size: 2rem;
  color: var(--color-electric2);
  background: none;
  border: none;
  border-radius: 50%;
  padding: 4px 8px;
  transition: background 0.14s, color 0.14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: var(--color-electric3);
  color: #fff;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-weight: 500;
  font-family: var(--font-display);
  color: var(--color-primary);
}
input[type='checkbox'] {
  accent-color: var(--color-electric2);
  width: 20px; height: 20px;
}
.cookie-modal .cookie-desc {
  font-size: 0.97rem;
  color: var(--color-dark);
  margin-bottom: 8px;
}
.cookie-modal .save-btn {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 11px 34px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  align-self: flex-end;
  margin-top: 6px;
}
.cookie-modal .save-btn:hover {
  background: var(--color-electric);
  color: #fff;
}

/* --- RESPONSIVE DESIGN (MOBILE-FIRST) --- */
@media (max-width: 1100px) {
  .feature-grid {
    gap: 18px;
    flex-wrap: wrap;
  }
  .car-overview-grid {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    gap: 14px;
  }
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  .content-wrapper, .container {
    gap: 14px;
  }

  /* Hero/section padding decrease */
  main > section, .section {
    padding: 28px 8px;
    margin-bottom: 32px;
    border-radius: 18px;
  }
  main > section.hero, .news-hero {
    padding: 40px 0;
    border-radius: 0 0 34px 34px;
  }
  /* Flex patterns stack column */
  .feature-grid, .car-overview-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .testimonial-card {
    max-width: 100%;
    font-size: 1rem;
  }
  /* Footer */
  footer .container {
    flex-direction: column;
    gap: 16px;
  }
  .brand-footer img {
    width: 38px;
  }
  /* Hamburger menu replaces desktop nav */
  .main-nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (max-width: 599px) {
  .cookie-banner {
    max-width: 99vw;
    padding: 18px 6px 18px 12px;
    gap: 10px;
    border-radius: 12px 12px 0 0;
  }
  .cookie-banner .cookie-actions {
    gap: 6px;
  }
  .cookie-modal {
    padding: 18px 8px 20px 12px;
    border-radius: 12px;
  }
}
@media (max-width: 500px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: 1rem; }
  .brand-footer img { width: 27px; }
}

/* --- MICRO-INTERACTIONS (for buttons/links/card hovers) --- */
button:active, .cta-primary:active, .cta-secondary:active, .cookie-btn:active {
  transform: scale(0.99);
}
.card:active {
  transform: scale(0.98);
}

/* --- UTILITIES --- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-16 { margin-bottom: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-20 { gap: 20px; }

/* --- Hide visually but accessible 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;
}

/* --- HIDE/SHOW --- */
.hidden { display: none !important; }
.visible { display: block !important; }

/* --- HIGH-ENERGY STYLE EFFECTS (some vibrant color flashes for key elements) --- */
.cta-primary, .cta-secondary, .cookie-btn, .mobile-menu-toggle {
  box-shadow: 0 3px 14px 0 rgba(24,49,59,0.10), 0 0px 0px 0 var(--color-electric2), 0 0px 0px 0 var(--color-electric3);
}
.cta-primary:focus-visible, .cta-secondary:focus-visible, .cookie-btn:focus-visible {
  outline: 2px solid var(--color-electric2);
  outline-offset: 2px;
}
.card, .feature-grid > div, .testimonial-card {
  transition: box-shadow 0.19s, transform 0.13s, border-color 0.13s;
}

/* --- FORM ELEMENTS (if any appear) --- */
input, textarea, select {
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-secondary);
  font-size: 1rem;
  font-family: var(--font-body);
  margin-bottom: 14px;
  background: #fff;
  transition: border-color 0.12s;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--color-electric3);
}

/* --- SPECIAL COLOR HIGHTLIGHT FOR ENERGETIC ELEMENTS --- */
.news-hero h1, .news-hero p {
  color: #fff;
}

/* --- Eliminating grid/columns --- */
/* ENFORCED: No display: grid, column-* or columns properties above. All layouts are flexbox. */
