/* CSS RESET AND NORMALIZATION */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; margin: 0; padding: 0; border: 0; font: inherit; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; line-height: 1.6; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; background: none; cursor: pointer; }
a:focus { outline: 2px solid #1C3962; outline-offset: 2px; }
button, input, select, textarea { font: inherit; background: none; border: none; }
button { cursor: pointer; background: none; }
ul, ol { list-style: none; padding-left: 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 10px; }

/* BRAND VARIABLES (fallbacks applied inline if needed) */
:root {
  --color-primary: #1C3962;
  --color-secondary: #F8C963;
  --color-accent: #FFFFFF;
  --color-bg: #FFFFFF;
  --color-text: #1C3962;
  --color-muted: #F7F7F8;
  --color-border: #EAECEE;
  --color-shadow: rgba(30,40,60,0.05);
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--font-body, 'Open Sans', Arial, Helvetica, sans-serif);
  background: var(--color-bg, #fff);
  color: var(--color-text, #1C3962);
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  color: var(--color-primary, #1C3962);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 14px; }
h4, h5, h6 { font-size: 1.1rem; margin-bottom: 8px; }

p, ul, ol, dl, table { margin-bottom: 18px; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.content-wrapper {
  max-width: 840px;
  margin: 0 auto;
}

.section, main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg, #FFFFFF);
}
.section:last-child, main section:last-child { margin-bottom: 0; }

.text-section {
  color: var(--color-text, #1C3962);
  font-size: 1.0625rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

ul, ol {
  padding-left: 20px;
  margin-bottom: 18px;
  list-style: disc inside;
}
li { margin-bottom: 8px; }
ul li:last-child, ol li:last-child { margin-bottom: 0; }

/*--------------- HEADER & NAVIGATION -----------------*/
header {
  background: var(--color-bg, #fff);
  border-bottom: 1px solid var(--color-border, #EAECEE);
  box-shadow: 0 3px 6px -6px var(--color-shadow, rgba(30,40,60,0.05));
  position: relative;
  z-index: 60;
}
header .container { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding-top: 18px; padding-bottom: 18px; }
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: var(--font-body, 'Open Sans', Arial, Helvetica, sans-serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--color-primary, #1C3962);
  letter-spacing: 0.01em;
  padding: 5px 0;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus { color: var(--color-secondary, #F8C963); outline: none; }
header nav .cta-btn {
  margin-left: 24px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary, #1C3962);
  color: var(--color-accent, #ffffff);
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 13px 32px;
  transition: background 0.2s, box-shadow 0.15s, color 0.2s;
  box-shadow: 0 1px 8px -6px var(--color-shadow, rgba(30,40,60,0.12));
  border: none;
  letter-spacing: 0.02em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-secondary, #F8C963);
  color: var(--color-primary, #1C3962);
  box-shadow: 0 3px 14px -8px var(--color-shadow, rgba(30,40,60,0.14));
  outline: none;
}

/*------------------- HERO SECTION ------------------*/
.hero {
  min-height: 320px;
  background: var(--color-bg, #fff);
}
.hero .container {
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 40px;
}
.hero .content-wrapper { text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 18px; }
.hero p { font-size: 1.188rem; color: #354E72; max-width: 630px; margin: 0 auto 28px auto; }

/*---------------- FLEXBOX LAYOUTS ------------------*/
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  flex: 1 1 260px;
  background: #fff;
  box-shadow: 0 1px 8px -6px var(--color-shadow, rgba(30,40,60,0.10));
  border-radius: 16px;
  margin-bottom: 20px;
  padding: 28px 22px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.12s;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px -12px var(--color-shadow, rgba(30,40,60,0.12));
  transform: translateY(-2px) scale(1.015);
}

.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;
  margin-bottom: 0;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 16px -8px var(--color-shadow, rgba(30,40,60,0.16));
  margin-bottom: 20px;
  border: 1px solid var(--color-border, #eaecee);
}
.testimonial-card blockquote {
  font-size: 1.15rem;
  color: var(--color-primary, #1C3962);
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-style: italic;
  line-height: 1.45;
  margin-bottom: 0;
}
.testimonial-card cite {
  font-size: 0.98rem;
  color: #353535;
  font-style: normal;
  font-family: var(--font-body, 'Open Sans', Arial, Helvetica, sans-serif);
}

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

/* Feature grid (/): mimic flexcard grid only with flex */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px -6px var(--color-shadow, rgba(30,40,60,0.09));
  padding: 28px 22px 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.feature-grid img {
  width: 36px; height: 36px; margin-bottom: 12px;
}
.feature-grid h3 {
  font-size: 1.16rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-grid p {
  color: #31455e;
  font-size: 1rem;
}

/*------------------ TABLES (pricing & our-cars) -----------------*/
table {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 1px 8px -6px var(--color-shadow, rgba(30,40,60,0.08));
  background: #FFF;
  overflow: hidden;
  font-size: 1rem;
  margin-bottom: 24px;
}
thead {
  background: var(--color-muted, #F7F7F8);
  border-bottom: 1px solid var(--color-border, #EAECEE);
}
th {
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-weight: 700;
}
td, th {
  padding: 14px 10px;
  border-bottom: 1px solid var(--color-border, #EAECEE);
}
tbody tr:last-child td { border-bottom: none; }

/*------------------ DL (FAQ PAGE) ---------------------*/
dl { margin-bottom: 24px; }
dt {
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-weight: 600;
  font-size: 1.08rem;
  margin-bottom: 8px;
  margin-top: 18px;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
  font-size: 1rem;
}

/*------------------- FOOTER -------------------------*/
footer {
  background: #fafbfc;
  border-top: 1px solid var(--color-border, #EAECEE);
  color: #31455e;
  font-size: 0.98rem;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 34px;
  max-width: 1160px;
}
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-main nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.footer-main nav a { font-size: 1rem; color: #1C3962; transition: color 0.15s; }
.footer-main nav a:hover, .footer-main nav a:focus { color: var(--color-secondary, #F8C963); outline: none; }
.footer-contact {
  margin-top: 20px;
}
.footer-contact ul {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.footer-contact li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.98rem;
  color: #213057;
  background: none;
}

/*------------------ MOBILE MENU (HAMBURGER) -------------------*/
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  background: var(--color-primary, #1C3962);
  color: var(--color-accent, #fff);
  border-radius: 50%;
  border: none;
  z-index: 103;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  transition: background 0.17s;
  box-shadow: 0 3px 16px -10px var(--color-shadow, rgba(30,40,60,0.12));
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { background: var(--color-secondary, #F8C963); color: var(--color-primary, #1C3962); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(28,57,98, 0.93);
  z-index: 106;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 18px;
  transform: translateX(100vw);
  transition: transform 0.32s cubic-bezier(0.66, 0, 0.2, 1);
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2.25rem;
  margin-right: 18px;
  margin-top: 10px;
  z-index: 108;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  margin: 50px 0 0 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.21rem;
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-weight: 600;
  padding: 6px 0;
  transition: color 0.14s, background 0.18s;
  border-radius: 5px;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--color-secondary, #F8C963);
  color: var(--color-primary, #1C3962);
}

/*------------------ COOKIE CONSENT BANNER -------------------*/
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid var(--color-border, #EAECEE);
  box-shadow: 0 -3px 24px -12px var(--color-shadow, rgba(30,40,60,0.08));
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 20px 20px 20px;
  font-size: 1.02rem;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s cubic-bezier(0.66, 0, 0.2, 1);
}
.cookie-banner.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: 24px;
}
.cookie-btn {
  background: var(--color-primary, #1C3962);
  color: #fff;
  border-radius: 18px;
  padding: 9px 22px;
  font-size: 0.98rem;
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-weight: 600;
  transition: background 0.18s, color 0.15s;
  border: none;
}
.cookie-btn.accept {
  background: var(--color-secondary, #F8C963);
  color: var(--color-primary, #1C3962);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus { background: #fff6d7; color: var(--color-primary, #1C3962); }
.cookie-btn.reject { background: #dbe3ea; color: var(--color-primary, #1C3962); }
.cookie-btn.reject:hover,
.cookie-btn.reject:focus { background: #c2d1e0; }
.cookie-btn.settings { background: var(--color-primary, #1C3962); color: #fff; }
.cookie-btn.settings:hover,
.cookie-btn.settings:focus { background: #223F6A; }

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(39, 56, 78, 0.28);
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 36px -10px var(--color-shadow, rgba(30,40,60,0.18));
  min-width: 340px;
  max-width: 94vw;
  padding: 40px 34px 32px 34px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #586c8a;
}
.cookie-modal-content h2 {
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 0 11px 0;
  border-bottom: 1px solid var(--color-border, #EAECEE);
  font-size: 1.02rem;
}
.cookie-category-label {
  font-weight: 600;
}
.cookie-toggle {
  appearance: none;
  background: #e4e7ea;
  width: 40px;
  height: 23px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.18s;
  outline: none;
}
.cookie-toggle:checked {
  background: var(--color-secondary, #F8C963);
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 6px -4px rgba(30,40,60,0.12);
  position: absolute;
  top: 2.5px;
  left: 3px;
  transition: left 0.2s cubic-bezier(0.66,0,0.2,1);
}
.cookie-toggle:checked:before {
  left: 19px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  justify-content: flex-end;
}

/*----------------- BUTTONS & LINKS ------------------*/
button, .btn, .cookie-btn, .cookie-modal-close {
  outline: none;
}
.btn, .cookie-btn {
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1rem;
  font-family: var(--font-display, 'Montserrat', Arial, Helvetica, sans-serif);
  font-weight: 600;
  transition: background 0.18s, color 0.15s;
  border: none;
}
.btn:focus, .cookie-btn:focus {
  outline: 2px solid var(--color-secondary, #F8C963);
  outline-offset: 2px;
}

/*----------------- MAP EMBED (Contact Page) ---------------*/
.map-embed {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 1px 8px -6px var(--color-shadow, rgba(30,40,60,0.09));
  margin-bottom: 16px;
}

/*----------------- SPACING BETWEEN CARDS/SECTIONS ----------*/
.section, main section { margin-bottom: 60px; }
.card-container, .content-grid { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { gap: 20px; padding: 20px; margin-bottom: 20px; }
.feature-item { gap: 15px; }

/*----------------- FORM (for future) -------------*/
input, select, textarea {
  background: #fff;
  color: var(--color-primary, #1C3962);
  border: 1px solid var(--color-border, #EAECEE);
  border-radius: 6px;
  font-size: 1rem;
  padding: 10px 14px;
  margin-bottom: 18px;
  outline: none;
  transition: border 0.15s;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--color-secondary, #F8C963);
  outline: none;
}

/*--------------- MICRO-ANIMATIONS / INTERACTIONS ------------*/
.card, .feature-grid > div {
  transition: box-shadow 0.18s, transform 0.12s;
}
.card:hover, .feature-grid > div:hover {
  box-shadow: 0 8px 24px -8px var(--color-shadow, rgba(30,40,60,0.12));
  transform: translateY(-2px) scale(1.009);
}
.cta-btn, .btn, .cookie-btn {
  transition: background 0.2s, color 0.18s, box-shadow 0.18s;
}
.cta-btn:active, .btn:active, .cookie-btn:active {
  transform: scale(0.98);
}

/*-------------------- RESPONSIVE DESIGN (Mobile-first) ---------------*/
@media (max-width: 1024px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .content-wrapper { padding-left: 0; padding-right: 0; }
  header .container { gap: 18px; }
}
@media (max-width: 900px) {
  .feature-grid { gap: 16px; }
  .feature-grid > div { flex: 1 1 180px; padding: 18px 12px 18px 12px; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.21rem; }
  .cta-btn { font-size: 0.96rem; padding: 11px 19px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-contact ul { flex-direction: column; gap: 12px; }
  .section, main section { margin-bottom: 32px; padding: 24px 7px; }
  .container { padding-left: 10px; padding-right: 10px; }
  .feature-grid > div { min-width: 125px; max-width: 98vw; }
  .feature-grid, .card-container, .content-grid { gap: 16px; }
  .map-embed { padding: 12px 6px; }
}
@media (max-width: 700px) {
  .card-container, .content-grid { flex-direction: column; }
  .feature-grid { flex-direction: column; }
  .feature-grid > div { width: 100%; }
  .testimonial-card { flex-direction: column; gap: 8px; }
  .footer-main { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 650px) {
  .hero .container { flex-direction: column; gap: 18px; min-height: 224px; }
  .feature-grid { flex-direction: column; gap: 14px; }
  .section, main section { margin-bottom: 20px; padding: 18px 0; }
}
@media (max-width: 540px) {
  .container { padding-left: 2vw; padding-right: 2vw; max-width: 98vw; }
  h1 { font-size: 1.38rem; }
  .cta-btn { font-size: 0.94rem; padding: 8px 13px; }
  .cookie-modal-content { min-width: 90vw; padding: 20px 7vw 22px 7vw; }
}

@media (max-width: 1050px) {
  header .container { flex-direction: row; gap: 10px; }
}

/* Mobile menu display logic */
@media (max-width: 900px) {
  header nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 900px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}
.text-image-section { flex-direction: row; }
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/*-- Ensure no card/section overlap by explicit margin-bottom/gap on all main containers --*/
main > section, .section, .card, .testimonial-card, .feature-grid > div, .feature-item, .card-container, .content-grid, .text-image-section {
  margin-bottom: 20px;
}

/* Ensure no absolute positioning for content elements (only for modal/close buttons) */
/* No display: grid or CSS columns anywhere! */
