/* =========================
   PlasmaFuse AutoExpert CSS – Elegant Classic
   ========================= */

/* --- CSS 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #F9F9F9;
  color: #223557;
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #223557;
  text-decoration: none;
  transition: color 0.3s;
}
a:hover, a:focus {
  color: #FFD143;
  outline: none;
}

/* --- Font Loading (Websafe fallback if webfonts not loaded) --- */
h1, h2, h3, h4 {
  font-family: 'Oswald', 'Georgia', serif;
  letter-spacing: 0.01em;
  color: #223557;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; font-weight: 700; }

p, ul, ol, li, span, div {
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 1rem;
  color: #223557;
}
strong {
  font-weight: 700;
}

/* Typography scale */
@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}

/* --- Container & Section Layouts --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Header & Main Navigation --- */
header {
  background: #fff;
  box-shadow: 0 1px 10px 0 rgba(34,53,87,.05);
  position: sticky;
  top: 0;
  z-index: 20;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.main-nav img {
  width: 48px;
  height: 48px;
  margin-right: 20px;
}
.main-nav a {
  padding: 6px 12px;
  font-family: 'Oswald', 'Georgia', serif;
  font-size: 1.05rem;
  color: #223557;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #FFD143;
  color: #223557;
}

/* Hide desktop nav on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #223557;
  position: absolute;
  right: 18px;
  top: 22px;
  z-index: 40;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: fixed;
  top: 0; right: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,53,87,0.96);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  z-index: 99;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFD143;
  font-size: 2rem;
  cursor: pointer;
  margin: 25px 26px 10px 0;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 48px;
  margin-top: 40px;
  gap: 20px;
}
.mobile-nav a {
  color: #FFD143;
  font-family: 'Oswald', 'Georgia', serif;
  font-size: 1.25rem;
  font-weight: 400;
  padding: 10px 0;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  border-bottom: 2px solid #fff;
}

/* Show/Hide nav in response to viewport */
@media (max-width: 1080px) {
  .main-nav a {
    font-size: 1rem;
    padding: 4px 8px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .main-nav img {
    width: 40px;
    height: 40px;
    margin-right: 14px;
  }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 821px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none;
  }
}

/* --- HERO SECTIONS --- */
.hero {
  background: #F9F9F9;
  padding: 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0 36px 0;
  min-height: 340px;
}
.hero .content-wrapper {
  max-width: 720px;
  padding: 0;
  margin: 0 auto;
  align-items: center;
}
.hero h1 {
  color: #223557;
  font-size: 2.5rem;
  margin-bottom: 22px;
  text-align: center;
  letter-spacing: 0.02em;
}
.hero p {
  color: #2C3E52;
  margin-bottom: 28px;
  text-align: center;
  max-width: 540px;
}
.hero .cta-btn {
  margin: 0 auto;
  display: block;
}
@media (max-width: 768px) {
  .hero .content-wrapper { padding: 0; }
  .hero .container { min-height: 220px; }
  .hero h1 { font-size: 1.7rem; }
}

/* --- FLEXBOX PATTERNS (Mandatory) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(34,53,87,0.08);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  max-width: 100%;
  transition: box-shadow 0.24s;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(34,53,87,0.13);
}
.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;
  background: #FFF8E1;
  color: #2D2C2A;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(34,53,87,0.08);
  margin-bottom: 22px;
  flex-direction: column;
  min-width: 220px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURES (Section) --- */
.features {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 8px 0 rgba(34,53,87,0.05);
  margin-bottom: 60px;
  padding: 40px 0;
}
.features .content-wrapper {
  align-items: center;
}
.features h2 {
  text-align: center;
  margin-bottom: 24px;
}
.features ul, .features .feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-bottom: 16px;
}
.features ul li, .features .feature-grid > div {
  background: #FAFAFA;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(34,53,87,0.05);
  padding: 18px 18px 16px 18px;
  min-width: 220px;
  max-width: 340px;
  text-align: center;
  margin-bottom: 0;
}
.features .feature-grid > div img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.features h3 {
  font-size: 1.18rem;
  color: #223557;
}

@media (max-width: 768px) {
  .features .feature-grid, .features ul {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }
}

/* --- Services Overview / Detail --- */
.services-overview, .services-detail {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(34,53,87,0.06);
  margin-bottom: 60px;
  padding: 40px 0;
}
.services-overview h2, .services-detail h2 {
  text-align: center;
  margin-bottom: 20px;
}
.services-overview ul, .services-detail .service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 23px;
}
.services-overview ul li, .services-detail .service-card {
  background: #F9F6EF;
  border-radius: 8px;
  color: #223557;
  padding: 20px 16px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.services-overview ul li span, .services-detail .service-card span {
  background: #FFD143;
  color: #223557;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 1.05rem;
  margin-left: 20px;
}
.services-detail .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.services-detail .service-card {
  flex: 1 1 220px;
  max-width: 340px;
  flex-direction: column;
  align-items: flex-start;
  min-width: 220px;
  margin-bottom: 0;
  box-shadow: 0 2px 10px rgba(34,53,87,0.04);
  transition: box-shadow 0.26s;
}
.services-detail .service-card:hover {
  box-shadow: 0 6px 20px rgba(34,53,87,0.1);
}
@media (max-width: 768px) {
  .services-detail .service-list, .services-overview ul {
    gap: 14px;
  }
}

/* --- Testimonials --- */
.testimonials {
  background: #faf9f7;
  padding: 40px 0 36px 0;
  margin-bottom: 60px;
}
.testimonials .content-wrapper {
  align-items: center;
}
.testimonials h2 {
  text-align: center;
  margin-bottom: 24px;
}
.testimonials .testimonial-card {
  margin: 0 auto 24px auto;
  max-width: 550px;
  background: #FFF8E1;
  color: #223557;
  border-radius: 14px;
  font-size: 1.05rem;
  box-shadow: 0 4px 22px rgba(34,53,87,0.08);
  position: relative;
  transition: box-shadow 0.22s;
}
.testimonial-card:hover {
  box-shadow: 0 10px 34px rgba(34,53,87,0.14);
}
.testimonial-card p {
  margin: 0 0 8px 0;
  color: #223557;
}
.testimonial-name {
  font-weight: 700;
  color: #2E3541;
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}
.star-rating {
  font-family: 'Oswald', serif;
  color: #FFD143;
  font-size: 1.25rem;
  margin-top: 2px;
}

/* --- Section with Call to Action (CTA) --- */
.cta-section {
  background: #223557;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px rgba(34,53,87,0.09);
  margin-bottom: 60px;
  padding: 40px 0 36px 0;
}
.cta-section .content-wrapper {
  align-items: center;
}
.cta-section h2 {
  color: #FFD143;
  text-align: center;
  margin-bottom: 18px;
  font-size: 2rem;
}
.cta-section p {
  color: #fff;
  text-align: center;
}
.cta-section .cta-btn {
  margin-top: 22px;
  margin-bottom: 0;
  background: #FFD143;
  color: #223557;
  border: none;
}

/* --- Legal, FAQ, About, Map, Confirmation Sections --- */
.legal-section, .faq-section, .about-section, .team-section, .map-section, .confirmation, .tips, .contact-info, .emergency-section {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px rgba(34,53,87,0.04);
  padding: 40px 0;
  margin-bottom: 60px;
}
.legal-section h1, .confirmation h1 {
  color: #223557;
  margin-bottom: 16px;
  font-size: 2rem;
  font-family: 'Oswald', 'Georgia', serif;
}
.legal-section h2, .confirmation h2 {
  margin-bottom: 12px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}
.text-section > div {
  margin-bottom: 16px;
  background: #f8f6f2;
  border-radius: 8px;
  padding: 18px 16px;
  box-shadow: 0 1px 4px rgba(34,53,87,0.045);
  color: #223557;
}
.text-section h3 {
  font-size: 1.13rem;
  font-family: 'Oswald', serif;
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  .text-section > div {
    padding: 13px 8px;
    margin-bottom: 11px;
    font-size: .97rem;
  }
}

/* --- Buttons, Links, Interactions --- */
.cta-btn, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', 'Georgia', serif;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 7px;
  background: #223557;
  color: #FFD143 !important;
  padding: 13px 30px;
  border: none;
  transition: background 0.21s, color 0.21s, box-shadow 0.23s;
  box-shadow: 0 2px 10px rgba(34,53,87,0.042);
  cursor: pointer;
  margin-top: 10px;
  text-decoration: none;
  letter-spacing: 0.03em;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus, .btn:hover, .btn:focus {
  background: #FFD143;
  color: #223557 !important;
  box-shadow: 0 4px 20px rgba(34,53,87,0.12);
}

/* --- Footer --- */
footer {
  padding: 0;
  background: #223557;
  color: #fff;
}
.footer-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 34px 20px 20px 20px;
  max-width: 1120px;
  margin: 0 auto;
}
.footer-wrapper img {
  width: 54px;
  height: 54px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 0;
}
.footer-nav a {
  color: #FFD143;
  font-family: 'Oswald', serif;
  font-size: 1rem;
  margin-bottom: 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact p {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 5px;
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 14px 18px 14px;
  }
  .footer-wrapper img {
    margin-bottom: 3px;
  }
}

/* --- Responsive Flex Directions --- */
@media (max-width: 768px) {
  .content-grid,
  .footer-wrapper,
  .card-container,
  .text-image-section {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .section, .features, .cta-section, .legal-section, .testimonials, .services-overview, .services-detail, .about-section, .team-section, .contact-info, .emergency-section, .faq-section, .map-section, .confirmation {
    padding: 26px 5px;
    margin-bottom: 40px;
  }
}

/* --- Cookie Consent Banner --- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; width: 100vw;
  background: #223557;
  color: #fff;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 16px 18px 18px;
  font-size: 1rem;
  z-index: 250;
  box-shadow: 0 -2px 16px rgba(34,53,87,0.13);
  opacity: 1;
  transition: opacity .33s, bottom .39s;
}
.cookie-banner.hide {
  opacity: 0;
  bottom: -90px;
  pointer-events: none;
}
.cookie-banner-text {
  flex: 1 1 auto;
  margin-right: 18px;
}
.cookie-btn {
  background: #FFD143;
  color: #223557;
  border: none;
  border-radius: 6px;
  padding: 8px 24px;
  margin-left: 7px;
  font-size: 1rem;
  font-family: 'Oswald', serif;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s, color .18s;
  box-shadow: 0 1px 4px rgba(34,53,87,0.10);
}
.cookie-btn:focus, .cookie-btn:hover {
  background: #223557;
  color: #FFD143;
  outline: 2px solid #FFD143;
}
.cookie-btn.reject {
  background: #fff;
  color: #223557;
  border: 1px solid #FFD143;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #FFD143;
  color: #223557;
}
.cookie-btn.settings {
  background: transparent;
  color: #FFD143;
  border: 1px solid #FFD143;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #FFD143;
  color: #223557;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.97rem;
    padding: 13px 7px 12px 9px;
  }
  .cookie-banner-text {
    margin-right: 0;
    margin-bottom: 7px;
  }
}

/* --- Cookie Preferences Modal --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,53,87,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  pointer-events: all;
  opacity: 1;
  transition: opacity .33s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #223557;
  border-radius: 16px;
  max-width: 480px;
  width: 98vw;
  padding: 40px 24px 32px 24px;
  box-shadow: 0 6px 36px rgba(34,53,87,0.20);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.cookie-modal-close {
  position: absolute;
  right: 16px; top: 18px;
  background: none;
  border: none;
  color: #223557;
  font-size: 1.6rem;
  cursor: pointer;
}
.cookie-modal h2 {
  color: #223557;
  font-family: 'Oswald', serif;
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
  width: 100%;
}
.cookie-toggle {
  width: 46px;
  height: 26px;
  border: none;
  border-radius: 13px;
  background: #eee;
  cursor: pointer;
  position: relative;
  transition: background 0.18s;
}
.cookie-toggle[data-checked="true"] {
  background: #FFD143;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 22px; height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.17s;
  box-shadow: 0 2px 8px rgba(40,57,85,0.12);
}
.cookie-toggle[data-checked="true"]:before {
  left: 22px;
}
.cookie-category-desc {
  font-size: .97rem;
  color: #4B5670;
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.align-center { align-items: center; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

/* --- Additional spacing for content cards --- */
.card + .card, .testimonial-card + .testimonial-card, .service-card + .service-card {
  margin-top: 20px;
}

/* --- Responsive refinement --- */
@media (max-width: 500px) {
  .main-nav img, .footer-wrapper img {
    width: 32px; height: 32px;
    margin-right: 6px;
  }
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.1rem; }
  .cta-btn, .btn {
    font-size: .98rem;
    padding: 10px 16px;
  }
  .footer-nav a { font-size: 0.96rem; }
}

/* --- Subtle shadows, modern round corners --- */
.card, .features ul li, .feature-grid > div, .testimonial-card, .cookie-modal-content, .service-card {
  box-shadow: 0 2px 8px rgba(34,53,87,0.08);
  border-radius: 14px;
}

/* --- Animations & Transitions --- */
.card, .testimonial-card, .service-card {
  transition: box-shadow 0.23s, transform 0.17s;
}
.card:hover, .testimonial-card:hover, .service-card:hover {
  box-shadow: 0 8px 32px rgba(34,53,87,0.13);
  transform: translateY(-5px) scale(1.027);
}
.cta-btn, .btn, .cookie-btn {
  transition: background 0.21s, color 0.21s, box-shadow 0.23s;
}

/* --- General spacing and margin rules --- */
section, .section {
  margin-bottom: 60px;
}
.card, .testimonial-card, .service-card, .features ul li, .feature-grid > div {
  margin-bottom: 20px;
}
.features .feature-grid, .testimonials .content-wrapper, .card-container {
  gap: 24px;
}

/* --- Accessibility: :focus outline --- */
a:focus, button:focus, .cta-btn:focus, .cookie-btn:focus {
  outline: 2px solid #FFD143;
  outline-offset: 1px;
}

/* --- Hide scrollbars on mobile menu/modal --- */
.mobile-menu, .cookie-modal {
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}

/* --- Hide elements by utility class --- */
.hide { display: none !important; }

/* --- End CSS --- */
