/* ================================
   Rinot DeiFi Mobility CSS - Elegant Classic Design
   Responsive, Flexbox Only, No Grid/Columns
   Brand: #243144 (primary), #CFB87C (secondary/gold), #E6E8EB (accent/light)
   Fonts: Montserrat (display), Open Sans (body), fallback: Georgia, serif
=================================== */

/* ===== CSS RESET/BASE ===== */
html, body, div, section, main, header, nav, footer, ul, ol, li, h1, h2, h3, h4, h5, h6, p, img, a, button, table, th, tr, td, form {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F6F6F5;
  color: #243144;
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #243144;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #CFB87C;
  outline-offset: 2px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  color: #243144;
  margin-bottom: 16px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.375rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.subheadline {
  font-family: 'Open Sans', Georgia, serif;
  font-size: 1.125rem;
  color: #6D7689;
  margin-bottom: 32px;
  font-weight: 400;
}

/* Paragraphs and list */
p {
  margin-bottom: 18px;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 18px;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* ====== CONTAINERS, SPACING ====== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.section, section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}

@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding: 0 14px;
  }
  .section, section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* ===== HEADER & NAVIGATION ===== */
header {
  background: #fff;
  box-shadow: 0 4px 14px -6px rgba(36, 49, 68, 0.09);
  border-bottom: 1px solid #E6E8EB;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 28px;
}
.brand-logo img {
  height: 40px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  color: #20304B;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #F4F2ED;
  color: #CFB87C;
}
header .btn.primary {
  margin-left: 14px;
}

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #243144;
  margin-left: 6px;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 150;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #CFB87C;
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  header .btn.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(36,49,68,0.96);
  color: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: start;
  padding-top: 30px;
  transform: translateX(100vw);
  transition: transform 0.32s cubic-bezier(.62,.3,.37,.99);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #CFB87C;
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 16px 24px 24px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #CFB87C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  width: 90vw;
  margin-top: 26px;
}
.mobile-nav a {
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.18rem;
  color: #fff;
  padding: 14px 8px 14px 22px;
  border-radius: 6px;
  background: none;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  border-left: 4px solid transparent;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(207,184,124,0.09);
  color: #CFB87C;
  border-left: 4px solid #CFB87C;
}

@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  height: 48px;
  min-width: 160px;
  border-radius: 8px;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  text-decoration: none;
  outline: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
  box-shadow: 0 2px 16px rgba(36,49,68,0.04);
}
.btn.primary {
  background: #243144;
  color: #fff;
  border: 2px solid #243144;
  box-shadow: 0 2px 14px rgba(36,49,68,0.06);
}
.btn.primary:hover,
.btn.primary:focus {
  background: #CFB87C;
  color: #243144;
  border-color: #CFB87C;
}
.btn.secondary {
  background: #fff;
  color: #243144;
  border: 2px solid #CFB87C;
}
.btn.secondary:hover,
.btn.secondary:focus {
  background: #CFB87C;
  color: #243144;
}
.btn:active {
  box-shadow: 0 1px 6px rgba(36,49,68,0.11) inset;
}

/* Micro-interactions for buttons */
.btn {
  will-change: transform;
}
.btn:active {
  transform: scale(.97);
}

/* ===== HERO SECTION ===== */
.hero {
  background: #fff;
  padding: 64px 0 40px 0;
  margin-bottom: 52px;
  border-bottom: 1px solid #ebeae8;
}
.hero .content-wrapper {
  align-items: center;
  justify-content: center;
  gap: 0;
  text-align: center;
}

/* ===== FEATURES ===== */
.features, .vehicle-types, .philosophy {
  background: #F7F6F4;
  border-radius: 22px;
  box-shadow: 0 4px 40px -8px rgba(36,49,68,0.08);
  margin-bottom: 60px;
  padding: 40px 0;
}
.feature-list, .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 32px;
  margin-bottom: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex-basis: 260px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(36,49,68,0.06);
  padding: 32px 26px 24px 26px;
  margin-bottom: 20px;
  transition: box-shadow .20s, transform .2s;
  border: 1px solid #ebeae8;
  min-width: 180px;
  max-width: 310px;
}
.feature-item:hover {
  box-shadow: 0 8px 36px -8px #CFB87C33;
  transform: translateY(-4px) scale(1.018);
  border-color: #CFB87C88;
}
.feature-item img {
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  filter: grayscale(0.05) brightness(0.97);
}

@media (max-width: 900px) {
  .feature-list, .feature-grid {
    gap: 18px;
  }
  .feature-item {
    max-width: 100%;
    width: 100%;
    flex-basis: 100%;
    min-width: 0;
    padding: 20px 12px 18px 16px;
  }
}
@media (max-width: 600px) {
  .features, .vehicle-types, .philosophy {
    padding: 22px 0 18px 0;
  }
}

/* ===== ABOUT, USP-LIST ===== */
.usp-list {
  margin-top: 18px;
  margin-bottom: 10px;
  padding-left: 20px;
  list-style: disc;
  color: #574a2c;
  font-size: 1.02rem;
}

/* ===== TABLES & INFOBOXES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 24px 0;
  border-radius: 10px;
  box-shadow: 0 2px 13px rgba(36,49,68,0.04);
  overflow: hidden;
}
thead {
  background: #E6E8EB;
}
th, td {
  padding: 15px 18px;
  text-align: left;
  font-size: 1rem;
}
th {
  font-family: 'Montserrat', Georgia, serif;
  font-weight: 600;
  color: #243144;
}
tbody tr {
  border-bottom: 1px solid #ececec;
}
tbody tr:last-child {
  border-bottom: none;
}
tr:hover {
  background: #f8f7f6;
  transition: background .16s;
}

.info-box {
  background: #F9F8F6;
  border-left: 5px solid #CFB87C;
  border-radius: 8px;
  color: #243144;
  padding: 16px 24px;
  font-size: 1rem;
  margin: 18px 0 6px 0;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 40px -6px rgba(36,49,68,0.09);
  padding: 40px 0 30px 0;
  margin-bottom: 60px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #FAFAFA;
  border: 1.5px solid #E6E8EB;
  border-radius: 14px;
  padding: 24px 30px 18px 30px;
  margin-bottom: 20px;
  box-shadow: 0 1.5px 7.5px rgba(36,49,68,0.07);
  max-width: 640px;
  transition: border-color .18s, box-shadow .18s;
}
.testimonial-card:hover {
  border-color: #CFB87C;
  box-shadow: 0 6px 24px -6px #CFB87C33;
}
.testimonial-meta {
  font-family: 'Open Sans', Georgia, serif;
  font-size: 0.97rem;
  color: #7c6a3b;
  font-style: italic;
}
.star-rating {
  color: #CFB87C;
  font-size: 1.09rem;
  font-family: 'Montserrat', Georgia, serif;
  letter-spacing: 0.11em;
}
@media (max-width: 700px) {
  .testimonials {
    padding: 24px 0 10px 0;
  }
  .testimonial-card {
    padding: 14px 12px;
    max-width: 100%;
  }
}

/* ===== CTA SECTION ===== */
.cta {
  background: #243144;
  color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 48px -2px #24314433;
  padding: 42px 0;
  text-align: center;
  margin-bottom: 60px;
}
.cta .btn.primary {
  background: #CFB87C;
  color: #243144;
  border: 2px solid #CFB87C;
}
.cta h2{
  color: #fff;
}
.cta .btn.primary:hover, .cta .btn.primary:focus {
  background: #fff;
  border-color: #fff;
  color: #243144;
}
@media (max-width: 700px) {
  .cta {
    padding: 18px 0 18px 0;
    font-size: 1.08rem;
  }
}

/* ===== FOOTER ===== */
footer {
  background: #243144;
  color: #fff;
  padding: 30px 0 18px 0;
  border-top: 2px solid #CFB87C44;
}
footer .container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #CFB87C;
  font-family: 'Montserrat', Georgia, serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.16s;
}
.footer-nav a:hover {
  color: #fff6d0;
}
.footer-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.97rem;
  color: #DFDFDB;
}
.footer-info img {
  height: 34px;
  margin-bottom: 8px;
  filter: drop-shadow(0 2px 4px #00000022);
}
@media (max-width: 850px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-info {
    margin-top: 18px;
  }
}

/* ===== CONTACT & LEGAL ===== */
.contact-info ul, .contact-form ul {
  list-style: none;
  padding-left: 0;
}
.contact-info li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.08rem;
}
.contact-info li img {
  height: 22px;
  width: 22px;
  opacity: 0.73;
}
.form-description {
  margin-bottom: 18px;
}
.legal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 30px -6px rgba(36,49,68,0.07);
  padding: 40px 20px;
  margin-bottom: 60px;
}
@media (max-width: 800px) {
  .legal {
    padding: 18px 8px;
  }
}

/* ===== FAQ SECTION ===== */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.faq-item {
  background: #faf9f6;
  border: 1.5px solid #e1dfd8;
  border-radius: 9px;
  padding: 18px 20px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  box-shadow: 0 2px 11px rgba(36,49,68,0.06);
  transition: box-shadow .16s, border-color .15s;
}
.faq-item:hover {
  box-shadow: 0 6px 26px -9px #CFB87C44;
  border-color: #CFB87C;
}
@media (max-width: 850px) {
  .faq-list {
    flex-direction: column;
    gap: 10px;
  }
}

/* ===== CARDS & CONTENT GRIDS ===== */
.card-container, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1.5px 9px rgba(36,49,68,0.07);
  border: 1px solid #E6E8EB;
  padding: 24px 18px 20px 18px;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
  box-shadow: 0 7px 30px -6px #CFB87C33;
  border-color: #CFB87C;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== TEXT-IMAGE / HORIZONTAL SECTION ===== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .content-grid {
    flex-direction: column;
    gap: 10px;
  }
  .card-container, .card-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* ===== PARTNER LOGOS ===== */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  padding: 12px 0 8px 0;
  align-items: center;
  justify-content: flex-start;
}
.partner-logos img {
  height: 54px;
  width: auto;
  filter: grayscale(1) brightness(0.9) contrast(1.04);
  opacity: 0.79;
  margin-right: 8px;
  margin-bottom: 12px;
  transition: opacity .13s, filter .15s;
}
.partner-logos img:hover {
  filter: grayscale(0) brightness(1) drop-shadow(0 2px 6px #CFB87C22);
  opacity: 1;
}

/* ====== ANIMATIONS ====== */
@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.cta, .hero, .testimonial-card, .feature-item, .faq-item, .info-box, .contact-info, .footer-info {
  animation: fadein 0.7s cubic-bezier(.66,.1,.38,1) backwards;
}

/* ====== COOKIE CONSENT BANNER + MODAL ====== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #243144;
  color: #fff;
  z-index: 1001;
  padding: 26px 20px 20px 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  box-shadow: 0 -2px 18px #18395644;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
  transform: translateY(0);
  transition: transform .38s cubic-bezier(.62,.3,.37,.99), opacity .17s;
}
.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner-message {
  flex: 1 1 0;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  margin-right: 12px;
}
.cookie-banner-btns {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner .btn {
  height: 40px;
  min-width: 110px;
  font-size: 1rem;
  letter-spacing: 0.01em;
  padding: 0 16px;
}
.cookie-banner .btn.primary {
  background: #CFB87C;
  color: #243144;
  border-color: #CFB87C;
}
.cookie-banner .btn.secondary {
  background: #fff;
  color: #243144;
  border: 2px solid #E6E8EB;
}
.cookie-banner .btn.settings {
  background: #243144;
  color: #CFB87C;
  border: 2px solid #CFB87C;
}
/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 68, 0.80);
  z-index: 1002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .16s;
}
.cookie-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  color: #243144;
  border-radius: 14px;
  box-shadow: 0 4px 40px -8px #24314444;
  padding: 28px 34px 26px 34px;
  min-width: 320px;
  max-width: 99vw;
  max-height: 90vh;
  overflow-y: auto;
}
.cookie-modal h2 {
  font-size: 1.25rem;
  margin-bottom: 18px;
  color: #243144;
}
.cookie-preference-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  justify-content: start;
}
.cookie-preference-row label {
  font-size: 1.05rem;
  color: #23314C;
}
.cookie-switch {
  width: 38px;
  height: 20px;
  border-radius: 14px;
  background: #E6E8EB;
  position: relative;
  display: inline-block;
  vertical-align: middle;
  transition: background 0.2s;
}
.cookie-switch input {
  display: none;
}
.cookie-switch-slider {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #CFB87C;
  border-radius: 50%;
  transition: transform .19s, background .19s;
}
.cookie-switch input:checked + .cookie-switch-slider {
  transform: translateX(18px);
  background: #243144;
}
.cookie-modal .flex-btn-row {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 18px;
}
.cookie-modal .btn {
  min-width: 100px;
}
.cookie-modal .close-btn {
  position: absolute;
  top: 13px; right: 18px;
  font-size: 1.7rem;
  color: #CFB87C;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 16px 8px 10px 8px;
  }
  .cookie-banner-message {
    margin-right: 0;
    margin-bottom: 12px;
  }
  .cookie-modal {
    padding: 16px 9px 18px 9px;
    min-width: 0;
    width: 98vw;
  }
}

/* ===== CONFIRMATION (THANK YOU) ===== */
.confirmation {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 30px -6px rgba(36,49,68,0.11);
  margin: 68px auto 68px auto;
  padding: 54px 20px 70px 20px;
  text-align: center;
}
.confirmation h1 {
  color: #CFB87C;
}

/* ============= ACCESSIBILITY ============= */
:focus {
  outline: 2px solid #CFB87C; outline-offset: 1.5px;
}

/* ============= UTILITIES ============= */
.bg-primary { background: #243144; color: #fff; }
.bg-secondary { background: #CFB87C; color: #243144; }
.rounded { border-radius: 16px; }
.shadow { box-shadow: 0 6px 21px -3px #CFB87C22; }

/* ============= RESPONSIVE UTILS ============= */
@media (max-width: 600px) {
  .section, section, .hero {
    padding: 20px 0 0 0;
    margin-bottom: 36px;
  }
  h1 {
    font-size: 1.54rem;
  }
  h2 {
    font-size: 1.11rem;
    margin-bottom: 10px;
  }
}
