/* =========================================================
   Leuchtstrom Autoservice – Professional Corporate Style
   Author: Senior CSS Developer & UI Designer
   Mobile-first, Flexbox-only, Accessible, Responsive
   ========================================================= */

/* ========================
   1) RESET & NORMALIZE
   ======================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Tahoma, sans-serif; line-height: 1.6; color: #1F2A37; background-color: #FFFFFF; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif; color: #0B2A4A; line-height: 1.25; }
p { margin: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid #00A3AD; outline-offset: 2px; }

/* ========================
   2) THEME TOKENS
   ======================== */
:root {
  --color-primary: #0B2A4A; /* deep corporate blue */
  --color-secondary: #00A3AD; /* teal accent */
  --color-accent: #F5F7FA; /* soft gray/blue */
  --color-text: #1F2A37; /* dark text */
  --color-muted: #6B7280; /* gray-500 */
  --color-border: #E5E7EB; /* gray-200 */
  --color-white: #FFFFFF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 16px rgba(11, 42, 74, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
}

/* ========================
   3) TYPOGRAPHY SCALE
   ======================== */
body { font-size: 16px; }
.small { font-size: 14px; color: var(--color-muted); }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-bottom: var(--space-16); }
h3 { font-size: 18px; color: var(--color-primary); }
strong { color: var(--color-primary); }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ========================
   4) GLOBAL LAYOUT HELPERS (FLEXBOX ONLY)
   ======================== */
.container { display: flex; flex-direction: column; gap: var(--space-20); width: 100%; max-width: 1200px; margin: 0 auto; }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-16); }

/* MANDATORY SPACING & ALIGNMENT PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-20); }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Apply section spacing to all main sections */
main section { margin-bottom: var(--space-60); padding: var(--space-40) var(--space-20); }

/* ========================
   5) HEADER & NAVIGATION
   ======================== */
header { position: sticky; top: 0; z-index: 1000; background: var(--color-white); box-shadow: 0 2px 10px rgba(11,42,74,0.06); }
header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 12px 20px; }
.branding { display: flex; align-items: center; }
.branding img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { padding: 8px 10px; color: var(--color-text); border-radius: var(--radius-sm); transition: background-color 0.2s ease, color 0.2s ease; }
.main-nav a:hover { background-color: var(--color-accent); color: var(--color-primary); }

.cta-buttons { display: none; align-items: center; gap: var(--space-12); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s ease, background 0.2s ease; }
.mobile-menu-toggle:hover { background: #0D355C; transform: translateY(-1px); }

/* Desktop nav visibility */
@media (min-width: 768px) {
  .main-nav { display: flex; }
}
@media (min-width: 1024px) {
  .cta-buttons { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ========================
   6) BUTTONS & LINKS
   ======================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; letter-spacing: 0.2px; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease; }
.btn.primary { background: var(--color-primary); color: #fff; }
.btn.primary:hover { background: #0E3A6B; }
.btn.secondary { background: #EAF4F5; color: var(--color-primary); border-color: #CBEAEC; }
.btn.secondary:hover { background: #DFF0F1; color: #0B2A4A; }
.btn:active { transform: translateY(1px); }

.cta-group { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }

/* ========================
   7) MOBILE MENU (SLIDE-IN)
   ======================== */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 380px; background: var(--color-white); box-shadow: -8px 0 24px rgba(11,42,74,0.18); transform: translateX(100%); transition: transform 0.3s ease; z-index: 1100; display: flex; flex-direction: column; padding: 20px; gap: 16px; }
.mobile-menu .mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border-radius: 8px; background: var(--color-accent); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 10px; border-radius: 8px; color: var(--color-text); border: 1px solid transparent; }
.mobile-nav a:hover { background: var(--color-accent); border-color: var(--color-border); }

/* Open states supported via multiple hooks for JS flexibility */
.mobile-menu.open, body.menu-open .mobile-menu, .mobile-menu[aria-expanded="true"] { transform: translateX(0); }

/* Dim the page when menu open */
body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.42); z-index: 1090; }

/* ========================
   8) HERO SECTIONS
   ======================== */
.hero { background: var(--color-accent); border-top: 4px solid #DEE5EE; }
.hero .content-wrapper { gap: var(--space-16); }
.hero p { color: #334155; font-size: 18px; }
.supporting-points { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.supporting-points li { display: flex; align-items: flex-start; gap: 10px; padding-left: 0; position: relative; color: #334155; }
.supporting-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-secondary); margin-top: 7px; }

/* ========================
   9) FEATURES
   ======================== */
.features .feature-grid { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.feature-item { flex: 1 1 240px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease, transform 0.2s ease; }
.feature-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.feature-item img { width: 40px; height: 40px; }
.feature-item p { color: #3B4758; }

/* ========================
   10) SERVICES
   ======================== */
.services .service-list { display: flex; flex-direction: column; gap: 10px; }
.services .service-ctas { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.services .service-highlights, .services .service-disclaimers { display: flex; flex-direction: column; gap: 8px; background: var(--color-accent); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); }
.services .service-disclaimers p { color: var(--color-muted); font-size: 14px; }

/* ========================
   11) PROCESS / STEPS
   ======================== */
.process .steps { display: flex; flex-wrap: wrap; gap: var(--space-12); list-style-position: inside; padding: 0; margin: 0; }
.process .steps li { flex: 1 1 240px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px 16px; box-shadow: var(--shadow-sm); }
.process .timeline, .process .requirements { display: flex; flex-direction: column; gap: 10px; background: #FAFBFC; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); }
.process .timeline h3 { margin-bottom: 4px; }

/* ========================
   12) TESTIMONIALS (High contrast, light cards)
   ======================== */
.testimonials { background: var(--color-accent); }
.testimonials .content-wrapper { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.testimonial-card { flex: 1 1 280px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-20); align-items: flex-start; }
.testimonial-card blockquote { margin: 0; color: #0F172A; font-style: italic; }
.testimonial-card span { color: var(--color-muted); font-size: 14px; }

/* ========================
   13) TRUST / STATS / PRICING / FAQS / LEGAL
   ======================== */
.trust ul, .stats ul, .pricing .plans ul, .faqs .faq-list { display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none; }
.trust ul li, .stats ul li { display: flex; align-items: center; gap: 10px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px 14px; }
.trust ul img, .stats ul img { width: 28px; height: 28px; }
.statistics, .included-features, .price-notes, .comparisons, .contact-prompt { display: flex; flex-direction: column; gap: 8px; background: #FAFBFC; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); }

.pricing .plans { display: flex; flex-direction: column; gap: var(--space-12); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); }

.faqs .faq-list dt { font-weight: 700; color: var(--color-primary); }
.faqs .faq-list dd { margin: 0 0 10px 0; color: #374151; }

.legal .content-wrapper { display: flex; flex-direction: column; gap: var(--space-16); background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); }

/* ========================
   14) CTA SECTIONS
   ======================== */
.cta { background: var(--color-primary); color: #fff; border-radius: var(--radius-lg); }
.cta h2, .cta p { color: #fff; }
.cta .cta-group .btn.primary { background: #00A3AD; border-color: #00939C; }
.cta .cta-group .btn.primary:hover { background: #00939C; }
.cta .cta-group .btn.secondary { background: #103859; color: #fff; border-color: #1B4A73; }
.cta .cta-group .btn.secondary:hover { background: #1B4A73; }

/* ========================
   15) CONTACT & MAP
   ======================== */
.contact .contact-info { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }
.contact .contact-info li { display: flex; align-items: center; gap: 10px; }
.contact .contact-info img { width: 20px; height: 20px; }
.map { display: flex; align-items: center; justify-content: center; min-height: 180px; background: #EEF2F6; color: #334155; border: 1px dashed #C7D2DE; border-radius: var(--radius-md); padding: var(--space-20); }
.privacy-note { color: var(--color-muted); font-size: 14px; }
.privacy-note a { color: var(--color-secondary); text-decoration: underline; }

/* ========================
   16) ABOUT / STATS / STORY BLOCKS
   ======================== */
.about .mission, .about .story, .about .team, .about .values, .about .certifications, .status .summary, .status .next-steps { display: flex; flex-direction: column; gap: 8px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-20); }
.about .values ul { display: flex; flex-direction: column; gap: 10px; list-style: none; padding: 0; }

/* ========================
   17) FOOTER
   ======================== */
footer { background: var(--color-primary); color: #E6EEF6; }
.footer-wrapper { display: flex; flex-direction: column; gap: var(--space-16); padding: var(--space-32) var(--space-20); max-width: 1200px; margin: 0 auto; }
.footer-logo img { height: 38px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { color: #E6EEF6; opacity: 0.9; padding: 6px 8px; border-radius: 6px; }
.footer-nav a:hover { background: rgba(255,255,255,0.08); }
.footer-contact ul { display: flex; flex-direction: column; gap: 8px; list-style: none; padding: 0; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact img { width: 18px; height: 18px; filter: brightness(100) invert(1); opacity: 0.9; }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; border-radius: 8px; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); }
.footer-social a:hover { background: rgba(255,255,255,0.16); }
.footer-social img { width: 18px; height: 18px; filter: brightness(100) invert(1); }
.footer-branding { display: flex; align-items: center; justify-content: flex-start; color: #C9D6E5; font-size: 14px; }

@media (min-width: 900px) {
  .footer-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
}

/* ========================
   18) UTILITIES & MICRO-INTERACTIONS
   ======================== */
.shadow-hover { transition: box-shadow 0.2s ease, transform 0.2s ease; }
.shadow-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.muted { color: var(--color-muted); }

/* ========================
   19) RESPONSIVE LAYOUT TUNING
   ======================== */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .trust ul, .stats ul { flex-direction: row; flex-wrap: wrap; }
  .trust ul li, .stats ul li { flex: 1 1 240px; }
  .supporting-points { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  .hero .content-wrapper { width: 80%; }
  .features .feature-grid { justify-content: space-between; }
  .testimonials .content-wrapper { justify-content: space-between; }
}

/* ========================
   20) COOKIE CONSENT BANNER & MODAL
   ======================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; background: var(--color-white); border-top: 1px solid var(--color-border); box-shadow: 0 -8px 18px rgba(11,42,74,0.08); padding: 16px 20px; transform: translateY(100%); transition: transform 0.3s ease; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 6px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: var(--color-secondary); color: #06353A; border-color: #00939C; }
.cookie-banner .btn-accept:hover { background: #00939C; color: #fff; }
.cookie-banner .btn-reject { background: #EEF2F6; color: #0B2A4A; border-color: #D5DEE8; }
.cookie-banner .btn-reject:hover { background: #E5EBF3; }
.cookie-banner .btn-settings { background: var(--color-primary); color: #fff; }
.cookie-banner .btn-settings:hover { background: #0E3A6B; }

.cookie-modal { position: fixed; inset: 0; display: none; z-index: 1300; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,0.5); }
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 640px; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-md); }
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .cookie-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--color-accent); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px; }
.cookie-modal .cookie-footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch */
.toggle { position: relative; width: 46px; height: 26px; border-radius: 26px; background: #CBD5E1; transition: background 0.2s ease; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.toggle.is-on { background: #22C3CD; }
.toggle.is-on::after { transform: translateX(20px); }

/* ========================
   21) GENERIC CARDS & HOVERS (for reuse)
   ======================== */
.card.title-card { border-left: 4px solid var(--color-secondary); }
.card .card-title { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* ========================
   22) ACCESSIBILITY & STATES
   ======================== */
a:hover, button:hover { filter: none; }
a:focus-visible, .btn:focus-visible { outline: 3px solid #22C3CD; outline-offset: 2px; }

/* ========================
   23) PAGE-SPECIFIC LIGHT TWEAKS
   ======================== */
.status .content-wrapper { display: flex; flex-direction: column; gap: var(--space-16); }

/* ========================
   24) PREVENT OVERLAPS & CONSISTENT GAPS
   ======================== */
main > section .container { gap: var(--space-20); }
main > section .content-wrapper > * + * { margin-top: 0; }

/* ========================
   25) PRINT BASICS
   ======================== */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  main section { padding: 0; }
}
