/* --- 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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #F3E7CB;
  color: #28313E;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  height: auto;
  display: inline-block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
/* --- FONT LOADING (vintage_retro fallback for demo) --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');

:root {
  --color-primary: #19346C;
  --color-secondary: #F3F5F7;
  --color-accent: #FBBC05;
  --color-bg-vintage: #F3E7CB;
  --color-retro-green: #478559;
  --color-retro-red: #C94E4B;
  --color-retro-orange: #F6A24B;
  --color-retro-blue: #62A3D7;
  --color-nav-bg: #F3F5F7;
  --color-muted: #D3C8B4;
  --color-txt-base: #28313E;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', 'Arial', sans-serif;
  --font-vintage: 'Montserrat', 'Roboto', Arial, Helvetica, sans-serif;
  --border-radius: 12px;
  --shadow-card: 0 3px 12px 0 rgba(32,30,22,0.10);
  --shadow-popup: 0 4px 28px 0 rgba(0,0,0,0.22);
  --shadow-btn: 0 2px 6px 0 rgba(25,52,108,0.13);
  --section-spacing: 60px;
  --gap-base: 20px;
}

/* --- GENERIC PAGE LAYOUT --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
main {
  min-height: 50vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff6e3;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  position: relative;
}
/* For vintage section effect: add a retro-style accent pattern stripe on left */
section:before {
  content: '';
  display: block;
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 12px;
  background: repeating-linear-gradient(135deg, var(--color-retro-red), var(--color-retro-red) 6px, transparent 6px, transparent 12px), repeating-linear-gradient(45deg, var(--color-retro-orange), var(--color-retro-orange) 6px, transparent 6px, transparent 12px);
  opacity: 0.14;
  border-top-left-radius: var(--border-radius);
  border-bottom-left-radius: var(--border-radius);
  z-index: 0;
}
section > .container, section > div.container {
  position: relative;
  z-index: 1;
}

/* --- HEADER & NAV --- */
header {
  background: #fffdf5;
  border-bottom: 6px double var(--color-retro-orange);
  box-shadow: 0 4px 12px 0 rgba(251,188,5,0.08);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--color-primary);
  padding: 7px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: var(--color-accent);
}
header img {
  height: 48px;
}
.cta-primary {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  background: var(--color-retro-orange);
  color: var(--color-primary);
  border-radius: 30px;
  padding: 10px 30px;
  border: none;
  box-shadow: var(--shadow-btn);
  letter-spacing: 0.03em;
  transition: background 0.18s, color 0.18s, box-shadow 0.25s;
  cursor: pointer;
  margin-left: 12px;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--color-retro-red);
  color: #fff;
  box-shadow: 0 4px 24px 2px rgba(201,78,75,.14);
}
.cta-secondary {
  font-family: var(--font-display);
  font-size: 16px;
  background: transparent;
  color: var(--color-retro-red);
  border: 2px solid var(--color-retro-red);
  border-radius: 30px;
  padding: 8px 24px;
  margin-top: 18px;
  transition: background 0.17s, color 0.16s;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--color-retro-red);
  color: #fff;
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.14s;
  z-index: 201;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-retro-orange);
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-bg-vintage);
  box-shadow: var(--shadow-popup);
  transform: translateX(-100vw);
  transition: transform 0.44s cubic-bezier(.62,.02,.25,1);
  z-index: 4000;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding-top: 40px;
  padding-bottom: 24px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 2em;
  background: none;
  border: none;
  color: var(--color-retro-red);
  font-weight: bold;
  cursor: pointer;
  z-index: 4010;
  padding: 5px 12px 5px 5px;
  border-radius: 50%;
  transition: background 0.11s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-retro-red);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding-left: 32px;
  padding-top: 25px;
}
.mobile-nav a {
  font-size: 20px;
  font-family: var(--font-display);
  color: var(--color-primary);
  padding: 9px 0;
  border-bottom: 2px dotted var(--color-retro-orange);
  width: 100%;
  max-width: 260px;
  letter-spacing: 0.02em;
  transition: color 0.18s, background 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-retro-red);
  background: #fff2e1;
}

@media (max-width: 1024px) {
  header .container {
    flex-wrap: wrap;
    gap: 10px;
  }
  header nav {
    gap: 5px;
  }
}
@media (max-width: 820px) {
  header nav, .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 {
  font-size: 2.3rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 0 #F6A24B22;
}
h2 {
  font-size: 1.6rem;
  color: var(--color-retro-red);
  font-weight: 700;
  margin-top: 0;
}
h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 11px;
}
p, li, span, ol, ul, td {
  font-family: var(--font-body);
  color: var(--color-txt-base);
  font-size: 17px;
}
p, ul, ol {
  margin-bottom: 14px;
}
a {
  color: var(--color-primary);
  transition: color 0.17s;
}
a:hover, a:focus {
  color: var(--color-retro-blue);
  text-decoration: underline;
  outline: none;
}
strong {
  font-weight: 700;
}

/* -- VINTAGE RETRO HEADLINE DECORATION -- */
h2, h3 {
  position: relative;
}
h2:before, h3:before {
  content: '';
  display: inline-block;
  width: 35px;
  height: 8px;
  background: var(--color-retro-orange);
  margin-right: 10px;
  border-radius: 4px;
  opacity: 0.28;
  vertical-align: middle;
}

/* --- BUTTONS --- */
button, .cta-primary, .cta-secondary {
  font-family: var(--font-display);
  border: none;
  outline: none;
}
button:active {
  outline: none;
}

/* --- CARD LAYOUTS AND CONTAINERS (FLEX ONLY) --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fffaf3;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  flex: 1 1 290px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 6px 30px 3px rgba(251,188,5,0.10);
  transform: translateY(-5px) scale(1.022);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.vehicle-card {
  margin-bottom: 20px;
  background: #fcefdc;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 30px 22px 20px 22px;
  flex: 1 1 280px;
  min-width: 250px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.vehicle-card:hover {
  box-shadow: 0 4px 18px 0 var(--color-retro-orange);
  transform: scale(1.014);
}
.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-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- LIST STYLES --- */
ul {
  list-style: disc inside;
  margin-left: 1em;
  margin-bottom: 18px;
}
ol {
  list-style: decimal inside;
  margin-left: 1em;
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 9px;
}
ul li img {
  height: 22px;
  width: auto;
  margin-right: 2px;
}

/* --- TABLES (VINTAGE STYLE) --- */
table {
  border-collapse: collapse;
  background: #fffefa;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 2px 12px 0 #f6a24b33;
  margin-bottom: 18px;
  margin-top: 6px;
}
thead {
  background: #19346C;
}
thead th {
  color: #fff;
  background: var(--color-retro-blue);
  font-family: var(--font-display);
  font-size: 17px;
  padding: 12px 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
td, th {
  border: 1.5px solid #f6a24bcc;
  padding: 11px 10px;
  text-align: left;
  font-size: 17px;
  background: #fffef7;
}
tbody tr:nth-child(even) td {
  background: #faecc3;
}
tbody tr:hover td {
  background: #feefd7bb;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  min-width: 230px;
  background: #fffdfa;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 12px 0 #47855911;
  border-left: 6px solid var(--color-retro-green);
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border-color 0.22s;
}
.testimonial-card p {
  font-family: var(--font-vintage);
  font-style: italic;
  font-size: 18px;
  color: #3a3a25;
  margin: 0;
  line-height: 1.4;
}
.testimonial-card div {
  color: var(--color-retro-orange);
  font-size: 20px;
  letter-spacing: 2px;
}
.testimonial-card span {
  color: var(--color-primary);
  font-size: 14px;
  font-family: var(--font-body);
}
.testimonial-card:hover {
  box-shadow: 0 5px 22px 0 #47855918;
  border-left: 6px solid var(--color-accent);
}

/* --- FOOTER --- */
footer {
  background: #f8dcc8;
  border-top: 7px groove var(--color-retro-orange);
  padding-top: 30px;
  padding-bottom: 40px;
  margin-top: 40px;
  font-size: 16px;
  letter-spacing: 0.01em;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 16px;
  color: var(--color-retro-red);
}
footer nav a {
  color: var(--color-retro-red);
  font-family: var(--font-body);
  padding: 3px 8px;
  border-radius: 7px;
  transition: background 0.17s;
}
footer nav a:hover, footer nav a:focus {
  background: #fff5dd;
}
footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  font-size: 15px;
  margin-top: 9px;
}
footer .footer-contact img {
  height: 16px;
  margin-right: 4px;
}
footer .footer-tagline {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 1.19em;
  color: var(--color-retro-orange);
  letter-spacing: 0.01em;
  text-shadow: 0 2px 0 #faecc3aa;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
  .container {
    max-width: 95vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .vehicle-card,
  .card {
    min-width: 168px;
    padding: 19px 11px;
  }
  section {
    padding: 27px 7px;
  }
}
@media (max-width: 768px) {
  .content-wrapper, .content-grid, .card-container, .footer-contact {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .vehicle-card, .card {
    max-width: 100%;
  }
  .testimonial-card {
    width: 100%;
    min-width: 90px;
  }
  section {
    margin-bottom: 36px;
    padding: 17px 3vw;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.13rem; }
  h3 { font-size: 1rem; }
}
@media (max-width: 540px) {
  header .container, footer .container {
    padding-left: 5px;
    padding-right: 5px;
  }
  .vehicle-card, .card {
    padding: 10px 5px;
    min-width: unset;
  }
  section {
    padding: 11px 2vw;
    margin-bottom: 22px;
  }
  h1 { font-size: 1.15rem; }
  h2, h3 { font-size: 1rem; }
}

/* --- MICRO-INTERACTIONS & TRANSITIONS --- */
.cta-primary, .cta-secondary, button, .vehicle-card, .card, .testimonial-card, nav a {
  transition: background 0.20s, color 0.18s, box-shadow 0.18s, border-color 0.22s, transform 0.16s;
}
.card, .vehicle-card {
  cursor: pointer;
}
.card:active, .vehicle-card:active {
  box-shadow: 0 2px 3px 0 #4441;
  transform: scale(0.98);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: #fffefa;
  color: #3a2a0b;
  border-top: 4px solid var(--color-retro-orange);
  box-shadow: 0 -2px 24px 0 #c94e4b08;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 20px 16px 18px 16px;
  align-items: flex-start;
  z-index: 6000;
  animation: slideInBanner 0.7s cubic-bezier(.6,.2,.5,1);
}
@keyframes slideInBanner {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 16px;
  margin: 0 0 9px 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 15px;
  padding: 7px 19px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 #f6a24b33;
  margin-top: 6px;
  font-weight: 700;
}
.cookie-banner .accept {
  background: var(--color-retro-green);
  color: #fff;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: var(--color-retro-red);
}
.cookie-banner .reject {
  background: var(--color-retro-red);
  color: #fff;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: var(--color-retro-orange);
}
.cookie-banner .settings {
  background: var(--color-secondary);
  color: var(--color-retro-red);
  border: 1.3px solid var(--color-retro-orange);
  margin-left: 6px;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: var(--color-retro-orange);
  color: #fff;
}

/* COOKIE SETTINGS MODAL (slide-in effect, flexbox dialog) */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(25,52,108,0.18);
  z-index: 10010;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeInModal 0.3s ease;
}
.cookie-modal.open {
  display: flex;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal .cookie-modal-box {
  background: #fffefa;
  box-shadow: 0 8px 48px 0 #2223;
  border-radius: var(--border-radius);
  max-width: 95vw;
  width: 400px;
  padding: 35px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modalIn 0.45s cubic-bezier(.66,.02,.45,1.01);
  position: relative;
}
@keyframes modalIn {
  from { transform: translateY(60%) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 9px; right: 11px;
  font-size: 1.49em;
  color: var(--color-retro-red);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 99px;
  transition: background 0.12s;
}
.cookie-modal .modal-close:hover {
  background: #faecc3;
}
.cookie-modal h3 {
  color: var(--color-primary);
  font-size: 1.14em;
  margin-bottom: 6px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-modal .cookie-category label {
  flex: 1;
  font-family: var(--font-body);
  color: #222;
}
.cookie-modal .cookie-toggle {
  width: 46px;
  height: 25px;
  background: #e2dfc2;
  border-radius: 50px;
  position: relative;
  border: 2px solid #e2dfc2;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.13s;
}
.cookie-modal .cookie-toggle input[type=checkbox] {
  display: none;
}
.cookie-modal .cookie-toggle .slider {
  position: absolute;
  left: 3px; top: 2px;
  width: 21px;
  height: 19px;
  background: var(--color-retro-orange);
  border-radius: 99px;
  transition: left 0.2s, background 0.2s;
}
.cookie-modal .cookie-toggle input[type=checkbox]:checked + .slider {
  left: 22px;
  background: var(--color-retro-green);
}
.cookie-modal .cookie-category.essential .cookie-toggle .slider {
  background: var(--color-retro-green);
  opacity: 0.5;
}
.cookie-modal .cookie-category.essential .cookie-toggle {
  cursor: not-allowed;
}
.cookie-modal .cookie-category.essential label {
  font-style: italic;
  color: #888;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .modal-actions button {
  padding: 8px 19px;
  border-radius: 20px;
  font-size: 15px;
  font-family: var(--font-display);
  font-weight: 700;
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-actions .save {
  background: var(--color-retro-green);
  color: #fff;
}
.cookie-modal .modal-actions .save:hover {
  background: var(--color-retro-red);
}
.cookie-modal .modal-actions .cancel {
  background: #faecd6;
  color: var(--color-retro-red);
  border: 1.2px solid var(--color-retro-orange);
}
.cookie-modal .modal-actions .cancel:hover {
  background: var(--color-retro-orange);
  color: #fff;
}

/* Ensure all interactive hover/focus states are accessible */
button, .cta-primary, .cta-secondary, .cookie-btns button, .mobile-menu-close, .modal-close {
  outline: none;
}
button:focus-visible, .cta-primary:focus-visible, .cta-secondary:focus-visible, .cookie-btns button:focus-visible {
  outline: 2.2px dashed var(--color-retro-blue);
  outline-offset: 2px;
}

/* ENFORCE SPACING and LAYOUT rules */
.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;
}

/* MISC --- Vintage/Nostalgic touch patterns (retro dots) */
body {
  background: var(--color-bg-vintage) url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="3" cy="3" r="2" fill="%23f6a24b"/><circle cx="15" cy="15" r="2" fill="%23478559"/></svg>') repeat fixed;
  background-size: 100px 100px;
}

/* --- END OF STYLE.CSS --- */
