/* 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  background: #FFF;
  scroll-behavior: smooth;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  background: #fff;
  color: #19325B;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after { box-sizing: border-box; }
img, picture, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; background: none; border: none; cursor: pointer; }

/* BRAND VARIABLES */
:root {
  --primary: #19325B;
  --secondary: #FAC016;
  --accent: #FFFFFF;
  --danger: #F53A4B;
  --brand-blue: #19325B;
  --brand-yellow: #FAC016;
  --brand-white: #fff;
  --electric-green: #18e195;
  --vibrant-orange: #ff502c;
  --electric-blue: #1cbaff;
  --soft-gray: #F7F9FB;
  --shadow: 0 4px 16px rgba(25,50,91,0.08);
  --radius: 18px;
}

/* TYPOGRAPHY */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--primary);
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, div, span {
  font-size: 1rem;
  color: var(--primary);
}
p {
  margin-bottom: 12px;
}
strong {
  color: var(--primary);
  font-weight: 700;
}
em {font-style: italic; color: var(--electric-blue);}

ul, ol {
  margin-bottom: 18px;
  padding-left: 20px;
}
ul li, ol li {
  list-style: disc;
  margin-bottom: 8px;
  font-size: 1rem;
}

/* SPACING & FLEX LAYOUTS */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.section,
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow 0.28s;
}
.cta-section {
  background: var(--brand-yellow);
  color: var(--primary);
  box-shadow: 0 6px 28px rgba(25,50,91,0.10);
  margin-bottom: 60px;
}

/* FLEXBOX PATTERNS */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {
  background: #fff;
  margin-bottom: 20px;
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 280px;
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(28,186,255,0.13);
  transform: translateY(-4px) 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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--soft-gray);
  box-shadow: 0 4px 14px rgba(25,50,91,0.08);
  margin-bottom: 20px;
  min-width: 250px;
  transition: box-shadow 0.22s, transform 0.16s;
  border: 2px solid var(--electric-blue);
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px rgba(18,225,171,0.12);
  transform: translateY(-2px) scale(1.012);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  padding: 22px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--electric-blue);
  min-width: 220px;
  flex: 1 1 200px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, border 0.25s;
}
.feature-item:hover {
  box-shadow: 0 8px 32px rgba(255,80,44,0.11);
  border: 2px solid var(--vibrant-orange);
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  margin-top: 12px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.vehicle-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}
.vehicle-category {
  background: var(--electric-blue);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 16px;
  min-width: 200px;
  flex: 1 1 190px;
  box-shadow: 0 2px 8px rgba(25,50,91,0.08);
  margin-bottom: 20px;
  transition: background 0.22s;
}
.vehicle-category h3 { color: #fff; }
.vehicle-category ul li { color: #fff; }
.vehicle-category:hover {
  background: var(--electric-green);
  color: var(--primary);
}

.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-item {
  background: var(--soft-gray);
  padding: 20px 16px;
  border-radius: var(--radius);
  flex: 1 1 230px;
  box-shadow: 0 2px 10px rgba(28,186,255,0.09);
  margin-bottom: 20px;
  border-left: 5px solid var(--brand-yellow);
  transition: border 0.18s;
}
.faq-item:hover { border-left: 5px solid var(--electric-blue); }

/* HERO SECTION */
.hero {
  background: linear-gradient(110deg, var(--electric-blue) 16%, var(--vibrant-orange) 84%);
  color: #fff;
  border-radius: 0 0 48px 48px;
  margin-bottom: 50px;
  box-shadow: 0 12px 56px rgba(18,225,171,0.08);
  padding-top: 68px;
  padding-bottom: 68px;
}
.hero h1, .hero p { color: #fff; }
.hero .cta-btn { background: var(--secondary); color: var(--primary); }
.hero .cta-btn:hover { background: var(--primary); color: #fff; }
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  max-width: 700px;
}

/* TESTIMONIALS */
.testimonials-preview, .testimonials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: flex-start;
}
.star-rating {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--vibrant-orange);
  gap: 4px;
  font-size: 1.1rem;
}
.testimonials-list > div:last-child, .testimonials-preview > a {
  margin-top: 12px;
  font-weight: bold;
  color: var(--primary);
  text-decoration: underline;
  transition: color 0.18s;
}
.testimonials-list > div:last-child:hover, .testimonials-preview > a:hover {
  color: var(--electric-blue);
}

.stats ul {
  margin-bottom: 12px;
}
.stats ul li { font-size: 1.15rem; }

/* CTA BUTTONS */
.cta-btn {
  background: var(--electric-green);
  color: var(--primary);
  padding: 15px 38px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.13rem;
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(24,225,149,0.18);
  transition: background 0.22s, color 0.18s, transform 0.2s;
  cursor: pointer;
  letter-spacing: 0.03em;
  margin-top: 8px;
  margin-bottom: 8px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--vibrant-orange);
  color: #fff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 32px rgba(255,80,44,0.09);
}

/* NAVIGATION */
header {
  width: 100%;
  background: var(--primary);
  padding: 0;
  box-shadow: 0 4px 16px rgba(25,50,91,0.07);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 0 22px;
  min-height: 78px;
}
header img[alt="RimbeOfti Autoservice"] {
  height: 44px;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  color: #fff;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 7px 10px;
  border-radius: 8px;
  transition: background 0.19s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-yellow);
  color: var(--primary);
}

/* Footer navigation */
footer {
  background: var(--brand-blue);
  color: #fff;
  margin-top: 80px;
  box-shadow: 0 -3px 12px rgba(25,50,91,.09);
  font-size: 1rem;
  position: relative;
  padding: 32px 0;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--brand-yellow);
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-nav a:hover { color: var(--electric-green); }
.footer-contact, .footer-hours, .footer-brand {
  color: #fff;
  opacity: 0.9;
  margin-bottom: 5px;
  font-size: 0.96rem;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.footer-contact a { color: #fff; font-weight: 700; }
.footer-contact a img, .footer-contact img { height: 17px; width: 17px; margin-right: 4px; display: inline; vertical-align: middle; }
.footer-brand { font-size: 0.97rem; opacity: 0.79; }

/* CONTACT INFO - Contact Page */
.contact-information-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 17px 0 21px 0;
}
.contact-information-list > div {
  background: var(--soft-gray);
  border-radius: 8px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-information-list img {
  width: 20px;
  height: 20px;
  filter: brightness(1.2) saturate(1.5);
}

/* TABLE STYLES */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 7px rgba(28,186,255,0.10);
  background: #fff;
}
th, td {
  padding: 14px 10px;
  text-align: left;
  border-bottom: 1.5px solid var(--soft-gray);
}
th {
  background: var(--brand-yellow);
  color: var(--primary);
  font-weight: 700;
}
tr:last-child td { border-bottom: none; }

/* MODAL & ANIMATIONS (Cookie Banner) */
@keyframes slideInRight {
  0%   {transform: translateX(100%); opacity:0;}
  100% {transform: translateX(0); opacity:1;}
}
@keyframes slideInLeft {
  0%   {transform: translateX(-100%); opacity:0;}
  100% {transform: translateX(0); opacity:1;}
}
@keyframes fadeInUp {
  0%   {transform: translateY(40px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}
@keyframes fadeDown {
  0%   {transform: translateY(-48px); opacity:0;}
  100% {transform: translateY(0); opacity:1;}
}

/* MOBILE NAV */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--brand-yellow);
  color: var(--brand-blue);
  border-radius: 8px;
  width: 43px;
  height: 43px;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 43px;
  border: none;
  box-shadow: 0 2px 7px rgba(250,192,22,0.13);
  z-index: 1112;
  transition: background 0.14s;
}
.mobile-menu-toggle:active {
  background: var(--electric-green);
  color: #fff;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0;
  width: 84vw;
  max-width: 420px;
  height: 100vh;
  background: var(--brand-blue);
  box-shadow: -8px 0 28px rgba(25,50,91,0.18);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.77,0,.18,1);
  z-index: 1999;
  padding: 40px 24px 18px 24px;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  animation: slideInRight 0.33s both;
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  color: #fff;
  background: var(--vibrant-orange);
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.5rem;
  border: none;
  z-index: 2011;
  box-shadow: 0 2px 7px rgba(255,80,44,0.13);
  transition: background 0.14s;
}
.mobile-menu-close:active {
  background: var(--electric-green);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 60px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 0 12px 6px;
  border-radius: 7px;
  transition: background 0.18s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--electric-blue);
  color: var(--brand-yellow);
}

/* Hide main nav and show mobile nav on small screens */
@media (max-width: 990px) {
  .main-nav { display: none; }
  .cta-btn {
    padding: 13px 25px;
    font-size: 1rem;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 991px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
}

/* RESPONSIVE - MOBILE FIRST */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container {
    padding: 0 10px;
    max-width: 98vw;
  }
  .section, section {
    margin-bottom: 38px;
    padding: 18px 6px;
    border-radius: 22px;
    box-shadow: 0 2px 9px rgba(25,50,91,0.11);
  }
  .card-container, .content-grid, .features-grid, .faq-list, .testimonials-preview, .testimonials-list, .vehicle-categories-grid {
    flex-direction: column;
    gap: 16px;
  }
  .content-wrapper { gap: 11px; }
  .hero {
    padding-top: 45px;
    padding-bottom: 38px;
    border-radius: 0 0 24px 24px;
  }
  .footer-contact, .footer-hours, .footer-brand, .footer-nav {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .card, .feature-item, .faq-item, .vehicle-category, .testimonial-card { min-width: unset; }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.25rem; }
}

/* MICRO-INTERACTIONS/TRANSITIONS */
a, .cta-btn, .main-nav a, .mobile-nav a, .feature-item, .card, .testimonial-card, .faq-item, .vehicle-category {
  transition: color 0.14s, background 0.16s, box-shadow 0.22s, border 0.18s, transform 0.15s;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 18px 12px 26px 12px;
  box-shadow: 0 -2px 24px rgba(25,50,91,0.14);
  font-size: 1rem;
  animation: fadeInUp 0.65s;
}
.cookie-banner p {
  color: #fff;
  margin: 0;
  font-size: 1rem;
  max-width: 560px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 20px;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 9px 19px;
  margin: 0;
  transition: background 0.18s, color 0.13s;
}
.cookie-banner .accept {
  background: var(--electric-green);
  color: var(--primary);
}
.cookie-banner .accept:hover { background: var(--vibrant-orange); color: #fff; }
.cookie-banner .reject {
  background: var(--danger);
  color: #fff;
}
.cookie-banner .reject:hover { background: var(--brand-yellow); color: var(--primary); }
.cookie-banner .settings {
  background: var(--brand-yellow);
  color: var(--primary);
}
.cookie-banner .settings:hover { background: var(--electric-blue); color: #fff; }

/* Cookie Modal (Preferences) */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4000;
  background: rgba(25,50,91,0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.38s;
}
.cookie-modal .modal-content {
  background: #fff;
  color: var(--primary);
  padding: 34px 28px 32px 28px;
  border-radius: 14px;
  box-shadow: 0 8px 38px rgba(25,50,91,0.16);
  min-width: 270px;
  max-width: 95vw;
  min-height: 220px;
  animation: fadeInUp 0.38s;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .modal-content h2 {
  font-size: 1.2rem;
  margin-bottom: 7px;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 12px;
}
.cookie-modal button {
  border-radius: 7px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.15s;
}
.cookie-modal .accept {
  background: var(--electric-green);
  color: var(--primary);
}
.cookie-modal .accept:hover {
  background: var(--vibrant-orange);
  color: #fff;
}
.cookie-modal .reject {
  background: var(--danger);
  color: #fff;
}
.cookie-modal .reject:hover { background: var(--brand-yellow); color: var(--primary); }
.cookie-modal .close-modal {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--electric-blue);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  margin: 3px 0;
}
.cookie-modal input[type="checkbox"] {
  width: 19px;
  height: 19px;
  accent-color: var(--electric-green);
  margin: 0;
  pointer-events: auto;
}
.cookie-modal .category-disabled {
  opacity: 0.56;
  pointer-events: none;
}

/* Z-INDEX LAYERING */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 2000; }
footer { z-index: 1; }

/* MISC: Accessibility focus */
a:focus, button:focus, .cta-btn:focus {
  outline: 2px solid var(--electric-blue);
  outline-offset: 2px;
}

/* SCROLLBAR (optional for vibrant/energetic look) */
::-webkit-scrollbar { width: 12px; background: #F7F9FB; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(105deg, var(--brand-yellow), var(--electric-blue));
  border-radius: 8px;
}

/* Print styles (optional, minimal) */
@media print {
  header, footer, nav, .mobile-menu, .cookie-banner, .cookie-modal { display:none !important; }
  section, .section { box-shadow: none; background: #fff; }
}
