/* === CSS RESET & BASE === */
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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  min-height: 100vh;
  background: #F3F6F9;
  color: #1A2331;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #30A28A; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #22405B; text-decoration: underline; }
:focus { outline: 2px solid #30A28A; outline-offset: 2px; }
ul, ol { padding-left: 24px; }

/* === BRAND FONTS === */
h1, h2, h3, .btn-primary, nav.main-nav a, nav.mobile-nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
}
h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; color: #22405B; }
h2 { font-size: 2rem; font-weight: 700; letter-spacing: -1px; color: #22405B; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 700; color: #30A28A; margin-bottom: 8px; }
p, li, label, small { font-size: 1rem; }
strong { font-weight: 700; }

/* === CONTAINERS & LAYOUT === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  .section { padding: 30px 8px; margin-bottom: 40px; }
  .container { padding: 0 8px; }
}

/* === HEADER & NAVIGATION === */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 18px -8px #22405b1a;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 16px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  color: #22405B; font-weight: 600;
  padding: 10px 0;
  font-size: 1.05rem;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.18s, color 0.18s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #30A28A;
  border-bottom: 2px solid #30A28A;
}
.btn-primary {
  background: #30A28A;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  box-shadow: 0 4px 18px -4px #30A28A33;
  font-size: 1.1rem;
  transition: background 0.2s, box-shadow 0.2s, transform 0.14s;
  cursor: pointer;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #22405B;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 28px -3px #22405b33;
}

.mobile-menu-toggle {
  background: none; border: none; color: #30A28A;
  font-size: 2rem; cursor: pointer; margin-left: 12px;
  display: none;
  z-index: 1101;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover { color: #22405B; }

@media (max-width: 900px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: block; }
}

/* === MOBILE MENU OVERLAY === */
.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: #22405B;
  color: #fff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 32px 20px 0 20px;
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.87,0,.13,1);
  box-shadow: 3px 0 24px 0 #22405b80;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  background: none; border: none; color: #fff;
  font-size: 2.1rem; align-self: flex-end; margin-bottom: 30px;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: #30A28A; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.14s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #30A28A;
  border-bottom: 2px solid #30A28A;
}
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}

/* === HERO SECTION === */
.hero {
  background: linear-gradient(90deg,#30A28A 0%,#F3F6F9 100%);
  padding: 64px 0 48px 0;
  margin-bottom: 54px;
}
.hero .content-wrapper {
  align-items: flex-start;
}
.hero h1 { color: #22405B; font-size: 2.8rem; line-height: 1.13; margin-bottom: 0; }
.hero p { color: #22405B; opacity: 0.85; font-size: 1.2rem; margin-top: 8px; margin-bottom: 24px; }

@media (max-width: 768px) {
  .hero { padding: 42px 0 32px 0; }
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
}

/* === FEATURES === */
.features .content-wrapper, .feature-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.feature-grid {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 28px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px -4px #30a28a2b;
  padding: 28px 20px;
  flex: 1 1 240px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.feature-grid > div:hover {
  box-shadow: 0 8px 28px -6px #22405b44;
  transform: translateY(-3px) scale(1.02);
}
.feature-grid img {
  width: 40px; height: 40px;
}

/* === CARD & FLEXBLOCK UTILITIES === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 14px -4px #22405b24;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.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) {
  .feature-grid { flex-direction: column; }
  .content-grid { flex-direction: column; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* === TESTIMONIALS === */
.testimonials .content-wrapper {
  gap: 30px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: 0 4px 14px -5px #30A28A24;
}
.testimonial-card p {
  color: #22405B;
  font-size: 1.08rem;
  line-height: 1.5;
}
.testimonial-card span {
  font-size: 1rem;
  color: #30A28A;
  font-weight: 600;
  margin-left: 12px;
}
@media (max-width: 600px) {
  .testimonial-card { flex-direction: column; gap: 10px; }
}

/* === CTA (CALL TO ACTION) === */
.cta .content-wrapper { align-items: center; }
.cta h2 { color: #22405B; margin-bottom: 15px; }

/* === ABOUT & TEXT BLOCKS === */
.text-section {
  background: #f3f6f9;
  border-radius: 12px;
  padding: 18px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul {
  margin-top: 6px;
  list-style-type: disc;
}
.text-section li {
  margin-bottom: 6px;
}

/* === LISTINGS & VEHICLE CARDS === */
.listing-cards .content-wrapper > div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.vehicle-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px -2px #30a28a22;
  padding: 24px 18px;
  flex: 1 1 240px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.13s;
}
.vehicle-card:hover {
  box-shadow: 0 8px 30px -10px #22405b33;
  transform: translateY(-2px) scale(1.02);
}
.vehicle-card h3 { color: #22405B; font-size: 1.15rem; margin-bottom: 6px; }
.vehicle-card ul { margin-bottom: 5px; }
.vehicle-card li {
  font-size: 0.99rem;
  color: #777;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vehicle-card strong { color: #30A28A; font-size: 1.15rem; letter-spacing: 0.01em; margin-top: 8px; }

/* === FORMS & INPUTS === */
input[type="text"], input[type="number"], select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid #30A28A55;
  margin-right: 12px;
  margin-bottom: 12px;
  background: #fff;
  transition: border 0.18s, background 0.14s;
  width: 220px;
  max-width: 100%;
}
input[type="text"]:focus, input[type="number"]:focus, select:focus {
  border-color: #30A28A;
  background: #f3f6f9;
}
button[type="submit"] {
  background: #22405B;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 12px -6px #22405b60;
  transition: background 0.18s, color 0.18s, transform 0.13s;
}
button[type="submit"]:hover, button[type="submit"]:focus {
  background: #30A28A;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
label { display: block; margin-bottom: 10px; font-weight: 500; }

/* === FOOTER === */
footer {
  background: #22405B;
  color: #fff;
  padding: 32px 0 20px 0;
  font-size: 1rem;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 26px;
  padding: 0 16px;
}
.footer-branding {
  display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.2rem;
}
.footer-branding img { width: 44px; }
.footer-nav {
  display: flex; flex-direction: column; gap: 8px; margin-right: 34px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.9;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.17s, opacity 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #30A28A; opacity: 1;
}
.footer-contact {
  display: flex; flex-direction: column;
  gap: 6px;
  font-size: 0.98rem;
  opacity: 0.93;
  letter-spacing: 0.01em;
}
.footer-contact img {
  vertical-align: middle;
  margin-right: 3px;
  width: 18px; height: 18px;
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 22px; align-items: flex-start; }
  .footer-nav { flex-direction: row; gap: 20px; margin-right: 0; }
}
@media (max-width: 600px) {
  footer { padding: 22px 0 12px 0; font-size: 0.95rem; }
  .footer-contact { font-size: 0.94rem; }
}

/* === FAQ LIST === */
.faq-list {
  display: flex; flex-direction: column; gap: 22px; margin-bottom: 8px;
}
.faq-list > div {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border-left: 4px solid #30A28A;
  box-shadow: 0 4px 13px -7px #30A28A22;
  transition: box-shadow 0.17s, border-color 0.14s;
}
.faq-list > div:hover { box-shadow: 0 8px 30px -12px #22405b35; border-color: #22405B; }
.faq-list h3 { margin-bottom: 6px; color: #22405B; font-size: 1.11rem; }
.faq-list p { color: #22405B; font-size: 0.99rem; }

.faq-section .content-wrapper,
.faq-preview .content-wrapper,
.guide-topics .content-wrapper,
.tips .content-wrapper,
.calculator-section .content-wrapper,
.financing-types .content-wrapper {
  gap: 28px;
}

/* === CALCULATOR ESTIMATE DISPLAY === */
.result-display {
  background: #f3f6f9;
  margin-top: 14px;
  padding: 12px 18px;
  border-radius: 8px;
  min-height: 34px;
  color: #22405B;
  font-size: 1.08rem;
}

/* === FAQ CTA === */
.faq-cta .content-wrapper,
.cta .content-wrapper {
  align-items: center;
  gap: 18px;
}

/* === ANIMATIONS === */
@keyframes slideInBottom {
  from { transform: translateY(64px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%);opacity:0; } to { transform:translateX(0);opacity: 1; }
}

/* === COOKIE BANNER === */
#cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  box-shadow: 0 -4px 22px -4px #22405b33;
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 10px 20px 10px;
  gap: 20px;
  animation: slideInBottom 0.33s cubic-bezier(.9,.12,0,.98);
}
#cookie-banner p {
  margin: 0;
  font-size: 1rem;
  color: #22405B;
  max-width: 400px;
}
.cookie-banner-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  padding: 10px 18px;
  border-radius: 18px;
  border: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  background: #30A28A;
  color: #fff;
  margin: 0 2px;
  transition: background 0.15s, color 0.14s, box-shadow 0.14s;
  box-shadow: 0 2px 10px -3px #30a28a38;
}
.cookie-btn.settings {
  background: #22405B;
}
.cookie-btn.reject {
  background: #fff;
  color: #30A28A;
  border: 2px solid #30A28A;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #22405B;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #e6e6e6;
  color: #30A28A;
  border-color: #22405B;
}

/* === COOKIE CONSENT MODAL === */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,64,91,0.8);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.23s;
}
#cookie-modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 48px -8px #22405b50;
  padding: 34px 28px 24px 28px;
  min-width: 340px;
  max-width: 97vw;
  color: #22405B;
  animation: slideInRight 0.27s;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
#cookie-modal h2 {
  color: #22405B; font-size: 1.35rem; margin-bottom: 0.7em;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.cookie-category label {
  font-weight: 600;
  color: #30A28A;
  margin-bottom: 0;
}
.cookie-category input[type="checkbox"] {
  accent-color: #30A28A;
  width: 18px; height: 18px;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
#cookie-modal .close-modal {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  color: #30A28A;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.14s;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  color: #22405B;
}
@media (max-width: 500px) {
  #cookie-modal .modal-content { min-width: 90vw; padding: 16px 6px 16px 12px; }
}

/* === ACCESSIBILITY & MISC UTILS === */
.sr-only { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* === EFFECTS & SHADOWS === */
.card, .card-container > div, .feature-grid > div {
  box-shadow: 0 2px 12px -4px #30a28a27;
  border-radius: 14px;
}

/* === RESPONSIVE SPACING === */
@media (max-width: 600px) {
  html { font-size: 15px; }
  .btn-primary { padding: 11px 18px; font-size: 1rem; }
  .feature-grid > div, .vehicle-card { padding: 19px 10px; min-width: 100px; }
  .text-section, .faq-list > div, .testimonial-card { padding: 13px 7px; }
}

/* === PRINT SANITIZER === */
@media print {
  header, footer, #cookie-banner, #cookie-modal, .mobile-menu { display: none !important; }
}

/* === FLEX LAYOUT GUIDANCE === */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* === TYPOGRAPHY SCALE === */
@media (max-width: 420px) {
  body { font-size: 14px; }
  h1 { font-size: 1.30rem !important; }
  h2 { font-size: 1.05rem !important; }
  .faq-list h3, .vehicle-card h3 { font-size: 1rem !important; }
}

/***** END CSS *****/
