/* ===========================================
   Shadow Velocity "Elegant Classic" Reset & Core Styles
   =========================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
  font-family: inherit;
}
body {
  font-family: 'Open Sans', Georgia, 'Times New Roman', Times, serif;
  background: #FAFAFA;
  color: #222233;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
img,svg {
  display: block;
  max-width: 100%;
  height: auto;
}
input,button,select,textarea {
  font-family: inherit;
  font-size: inherit;
}
a {
  color: #14213D;
  text-decoration: none;
  transition: color 0.18s;
}
a:hover, a:focus {
  color: #FCA311;
  outline: none;
}
ul,ol {
  list-style: none;
}

/* ===========================================
   Brand & Typography
   =========================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times, serif;
  color: #14213D;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

p, li, td, th, blockquote {
  font-family: 'Open Sans', Georgia, Times, serif;
  font-size: 1rem;
  color: #222233;
  font-weight: 400;
}
p {
  margin-bottom: 16px;
}
blockquote {
  font-style: italic;
  color: #434352;
  border-left: 4px solid #FCA311;
  background: #F6F5F2;
  padding: 16px 24px;
  margin-bottom: 0;
  border-radius: 4px;
}
strong {
  font-weight: 700;
  color: #14213D;
}
em {
  color: #676775;
  font-style: italic;
}

/* ===========================================
   Global Layout and Containers
   =========================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
}
.text-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 0;
}

/* ===========================================
   Header & Navigation
   =========================================== */
header {
  background: #f3f4f7;
  border-bottom: 1px solid #e9eaea;
  position: relative;
  z-index: 120;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 20px 18px 20px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.desktop-nav a {
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1rem;
  color: #14213D;
  padding: 6px 4px;
  transition: color 0.18s;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #FCA311;
  transition: width .25s;
  position: absolute;
  left: 0;
  bottom: -2px;
}
.desktop-nav a:focus::after,
.desktop-nav a:hover::after {
  width: 100%;
}
.desktop-nav a.active {
  color: #FCA311;
}

.btn-primary {
  font-family: 'Montserrat', Georgia, serif;
  background: #14213D;
  color: #fff;
  border: none;
  padding: 12px 36px;
  font-size: 1.06rem;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,34,59,0.05);
  transition: background 0.22s, color 0.20s, box-shadow 0.22s;
  display: inline-block;
  margin-top: 20px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #FCA311;
  color: #14213D;
  box-shadow: 0 4px 16px rgba(252,163,17,0.06);
  outline: none;
}

/* ----------- Mobile Navigation ----------- */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #14213D;
  cursor: pointer;
  z-index: 301;
  margin-left: 8px;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #FCA311;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100vw;
  height: 100vh;
  background: #fff;
  position: fixed;
  top: 0; left: 0;
  transform: translateX(-100vw);
  transition: transform 0.38s cubic-bezier(.3,.7,.4,1);
  box-shadow: 0 6px 40px rgba(20,33,61,0.12);
  z-index: 300;
  padding: 0 20px 40px 20px;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 25px 0 16px 0;
  font-size: 2rem;
  background: none;
  border: none;
  color: #14213D;
  cursor: pointer;
  transition: color 0.18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #FCA311;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  color: #14213D;
  padding: 14px 0;
  border-bottom: 1px solid #E5E5E5;
  transition: background 0.14s, color 0.17s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #FCA31122;
  color: #FCA311;
  padding-left: 10px;
}

/* Hide desktop nav on mobile and show mobile menu toggle */
@media (max-width: 980px) {
  .desktop-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
  header .btn-primary {
    display: none;
  }
}

/* Hide mobile menu by default on desktop */
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===========================================
   Main & Section Layout
   =========================================== */
main {
  margin-top: 0;
  margin-bottom: 0;
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(20,33,61,0.04);
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

/* ===========================================
   Cards, Features, Grids, Testimonials
   =========================================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #FAFAFA;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(20,33,61,0.08);
  padding: 28px 22px 24px 22px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.18s, transform 0.13s;
  border: 1px solid #ECECEC;
}
.card:hover {
  box-shadow: 0 8px 26px rgba(20,33,61,0.17);
  transform: translateY(-2px) scale(1.02);
  border-color: #FCA31155;
}
.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: 14px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #F8F7F4;
  border-left: 5px solid #FCA311;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 3px 16px rgba(32,34,51,0.08);
  transition: box-shadow 0.21s;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card blockquote {
  border: none;
  padding: 0;
  background: none;
  color: #191922;
  font-size: 1.04rem;
}
.testimonial-card strong {
  color: #14213D;
  font-family: 'Montserrat', serif;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 16px 0;
}
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f7fb;
  border-radius: 7px;
  padding: 10px 16px;
  margin-bottom: 0 !important;
  font-size: 1rem;
}
.features-list img, .feature-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-right: 3px;
}

.article-listing {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.article-listing div {
  background: #faf9f6;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(20,33,61,0.07);
  padding: 18px 20px 16px 18px;
  border-left: 4px solid #FCA311;
  transition: box-shadow 0.17s;
}
.article-listing a {
  color: #14213D;
  font-weight: 500;
  font-family: 'Montserrat', serif;
}
.article-listing a:hover {
  color: #FCA311;
}

/* Table styling (Luxury Cars page) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
  margin-top: 8px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(32,34,51,0.07);
}
thead tr {
  background: #F6F8FA;
}
th, td {
  padding: 13px 14px;
  font-size: 1rem;
  border-bottom: 1px solid #E5E5E5;
  text-align: left;
}
th {
  font-weight: 700;
  font-family: 'Montserrat', serif;
  color: #14213D;
  background: #F6F8FA;
}
tr:last-child td {
  border-bottom: none;
}

/* List Unordered & Ordered within Content */
ul:not(.desktop-nav):not(.mobile-nav):not(.features-list),
ol {
  padding-left: 0;
  margin-bottom: 16px;
}
ul:not(.desktop-nav):not(.mobile-nav):not(.features-list) li,
ol li {
  margin-bottom: 13px;
  position: relative;
  padding-left: 28px;
  color: #353556;
}
ul:not(.desktop-nav):not(.mobile-nav):not(.features-list) li:before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #FCA311;
  font-size: 1.1rem;
  line-height: 1.1;
}
ol li {
  counter-increment: listitem;
}
ol li:before {
  content: counter(listitem) '.';
  position: absolute;
  left: 0;
  color: #FCA311;
  font-family: 'Montserrat', serif;
}

/* ===========================================
   Footer
   =========================================== */
footer {
  background: #F8F8F0;
  border-top: 1px solid #e4e6ef;
  margin-top: 0;
  padding: 0;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 20px 24px 20px;
}
footer nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
footer nav a {
  font-family: 'Open Sans', serif;
  color: #222233;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s;
}
footer nav a:hover,footer nav a:focus {
  color: #FCA311;
}
.footer-contact {
  font-size: 0.98rem;
  color: #7c7e8a;
  margin-bottom: 0;
}
footer p {
  width: 100%;
  font-size: 0.92rem;
  color: #9CA2B6;
  margin-top: 14px;
  margin-bottom: 2px;
}

@media (max-width:860px) {
  footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  footer nav {
    gap: 16px;
  }
}

/* ===========================================
   Cookie Consent Banner & Modal
   =========================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #222233ee;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  z-index: 401;
  padding: 18px 30px 18px 36px;
  box-shadow: 0 -2px 14px rgba(20,33,61,0.09);
  font-size: 1.05rem;
  animation: fadeInUp 0.7s cubic-bezier(.36,.65,.39,.98);
}
@keyframes fadeInUp { from { transform:translateY(100%); opacity:0; } to { transform:translateY(0); opacity:1; } }

.cookie-banner p {
  color: #fff;
  margin: 0 12px 0 0;
  flex: 1;
  font-size: 1.01rem;
}
.cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-btn {
  border: none;
  border-radius: 20px;
  padding: 8px 23px;
  font-size: 1rem;
  cursor: pointer;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  transition: background 0.17s, color 0.13s, box-shadow 0.13s;
}
.cookie-btn.accept {
  background: #FCA311;
  color: #14213D;
}
.cookie-btn.reject {
  background: #cccfd4;
  color: #222233;
}
.cookie-btn.settings {
  background: transparent;
  border: 1px solid #E5E5E5;
  color: #fff;
  padding: 8px 16px;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #FCA311;
  color: #14213D;
  outline: none;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%) scale(1);
  z-index: 410;
  background: #fff;
  color: #222233;
  box-shadow: 0 8px 56px rgba(20,33,61,0.17);
  border-radius: 16px;
  padding: 38px 32px 30px 32px;
  min-width: 310px;
  max-width: 98vw;
  min-height: 160px;
  animation: fadeInModal 0.42s cubic-bezier(.2,.7,.43,1.1);
}
@keyframes fadeInModal { from{transform:translate(-50%,calc(-50% + 80px)) scale(.96);opacity:0;} to{transform:translate(-50%,-50%) scale(1);opacity:1;} }
.cookie-modal h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  font-family: 'Montserrat', serif;
}
.cookie-pref-category {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal label {
  font-family: 'Open Sans', serif;
  color: #14213D;
  font-weight: 400;
}
.cookie-toggle {
  appearance: none;
  width: 34px; height: 20px;
  border-radius: 14px;
  background: #E5E5E5;
  outline: none;
  position: relative;
  transition: background 0.17s;
  cursor: pointer;
}
.cookie-toggle:checked {
  background: #FCA311;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #ccc3;
  transition: left 0.18s;
}
.cookie-toggle:checked::after {
  left: 17px;
}
.cookie-modal .cookie-btn {
  margin-top: 22px;
  padding: 9px 30px;
  box-shadow: 0 1px 6px #eac37036;
}
.cookie-modal .cookie-btn.cancel {
  background: transparent;
  border: 1px solid #E5E5E5;
  color: #14213D;
  margin-left: 14px;
}
.cookie-modal .cookie-btn.cancel:hover {
  background: #E5E5E5;
  color: #222233;
}
.cookie-modal .cookie-btn.save {
  background: #FCA311;
  color: #14213D;
}
.cookie-modal .cookie-btn.save:hover {
  background: #ffd072;
}

.cookie-modal .category-always {
  color: #757575;
  font-size: .98rem;
}

.cookie-modal-close {
  position: absolute;
  right: 16px; top: 16px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #14213D;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #FCA311;
}

.cookie-modal-backdrop {
  content: '';
  position: fixed;
  inset: 0;
  background: #19192260;
  z-index: 405;
}

@media (max-width: 540px) {
  .cookie-modal {
    padding: 18px 10px;
  }
}

/* ===========================================
   RESPONSIVE (Mobile & Tablet adjustments)
   =========================================== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  section { padding: 22px 7px; margin-bottom: 40px; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.07rem; }
  .card-container, .content-grid, .features-list {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 10px;
  }
  .article-listing div {
    padding: 10px 10px 10px 10px;
  }
  table, th, td { font-size: 0.96rem; }
}

@media (max-width: 560px) {
  header .container, footer .container {
    padding: 18px 8px;
  }
  section { padding: 12px 2px; margin-bottom: 26px; }
  .btn-primary { padding: 10px 18px; font-size: .98rem; }
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 16px; padding: 12px 7px; font-size: 0.98rem; }
  .cookie-actions { width: 100%; padding-left: 0; }
}

/* ===============================
   Micro-interactions & Transitions
   =============================== */
.btn-primary, .cookie-btn, .mobile-nav a, .desktop-nav a {
  transition: background 0.18s, color 0.15s, box-shadow 0.21s, transform 0.16s;
}
.card, .testimonial-card, .article-listing div {
  transition: box-shadow 0.19s, transform 0.13s;
}
.card:focus-within, .testimonial-card:focus-within, .article-listing div:focus-within {
  box-shadow: 0 10px 26px rgba(20,33,61,0.16);
  outline: none;
}

/* ===============================
   Misc Spacing / Helpers
   =============================== */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

/* Correct additional spacing */
ul,ol {
  margin-bottom: 18px;
}
ul li ul, ul li ol, ol li ul, ol li ol {
  margin-left: 16px;
  margin-bottom: 0;
}

/* Remove unwanted table border on mobile */
@media (max-width: 420px) {
  table, th, td {
    font-size: 0.9rem;
    padding: 8px 6px;
  }
}

/* Accessibility highlight for focus */
a:focus, .btn-primary:focus, .mobile-menu-toggle:focus, .cookie-btn:focus {
  outline: 2px solid #FCA311;
  z-index: 10;
}

/* ===============================
   PRINT (optional)
   =============================== */
@media print {
  header, footer, .cookie-banner, .cookie-modal, .mobile-menu { display: none !important; }
  body { color: #222; background: #fff; }
  section, .container { box-shadow: none !important; border-radius: 0 !important; }
}
