/* =========================================================
   Shadowbrook Quest Motorhaus – Elegant Classic Stylesheet
   Mobile-first, Flexbox-only, brand-compliant design system
   ========================================================= */

/* ------------------------------
   CSS RESET / NORMALIZE
   ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0 0 0 1.25rem; }
button, input, select, textarea { font: inherit; color: inherit; border: none; background: none; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #D6452A; outline-offset: 2px; }

/* ------------------------------
   THEME TOKENS
   ------------------------------ */
:root {
  --primary: #0B2A3C;
  --secondary: #D6452A;
  --accent: #F2F5F7;
  --bg: #FAFAF8; /* subtle warm canvas for elegance */
  --text: #1A1A1A;
  --muted: #5B6770;
  --border: #E3E6EA;
  --soft-border: #ECEFF2;
  --soft-shadow: 0 2px 10px rgba(11, 42, 60, 0.08);
  --hover-shadow: 0 6px 16px rgba(11, 42, 60, 0.12);
}

/* ------------------------------
   GLOBAL TYPOGRAPHY
   ------------------------------ */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body font */
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;           /* Flexbox layout */
  flex-direction: column;  /* Mobile-first stack */
  gap: 20px;
}
.content-wrapper {
  display: flex;           /* Flexbox layout */
  flex-direction: column;
  gap: 20px;
}

h1, h2, h3, h4 { color: var(--primary); margin: 0 0 10px; font-family: "Trebuchet MS", Tahoma, sans-serif; /* brand display font */ }
h1 { font-size: 32px; line-height: 1.25; letter-spacing: 0.2px; }
h2 { font-size: 24px; line-height: 1.3; }
h3 { font-size: 18px; line-height: 1.35; }
p { margin: 0 0 12px; color: var(--text); font-size: 16px; }
.small { font-size: 14px; color: var(--muted); }
.kicker { color: var(--secondary); text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.subheadline { color: var(--muted); font-size: 16px; }

/* ------------------------------
   HEADER / NAVIGATION
   ------------------------------ */
header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--soft-border);
  position: sticky;
  top: 0;
  z-index: 2000;
}
header > .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.logo img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--primary); font-size: 15px; padding: 8px 6px; border-radius: 6px; transition: color .2s ease, background-color .2s ease; }
.main-nav a:hover { color: #FFFFFF; background: var(--primary); }

.header-cta { display: none; align-items: center; gap: 10px; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 8px;
  color: #FFFFFF; background: var(--primary);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--soft-shadow); background: #0a2433; }

/* Mobile Menu Overlay + Panel */
.mobile-menu {
  position: fixed; inset: 0; /* full screen */
  background: rgba(11, 42, 60, 0.38);
  display: flex;            /* overlay uses flex */
  align-items: stretch;
  justify-content: flex-end;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: 3000;
}
.mobile-menu.active { opacity: 1; pointer-events: auto; }
.mobile-menu .mobile-nav {
  background: #FFFFFF;
  width: 86%; max-width: 360px; height: 100%;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px;
  box-shadow: var(--hover-shadow);
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.active .mobile-nav { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px; color: var(--primary);
  margin-bottom: 8px;
  background: var(--accent);
  transition: background-color .2s ease, transform .2s ease;
}
.mobile-menu-close:hover { background: #e8ecef; transform: translateY(-1px); }
.mobile-nav a {
  padding: 12px 10px; border-radius: 8px; color: var(--primary);
  background: #fff; border: 1px solid var(--soft-border);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.mobile-nav a:hover { background: var(--accent); color: #0a2433; transform: translateX(2px); }

/* ------------------------------
   HERO SECTION
   ------------------------------ */
.hero {
  background: var(--accent);
  border-bottom: 1px solid var(--soft-border);
}
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.hero h1 { font-size: 30px; }
.hero .subheadline { font-size: 16px; max-width: 68ch; }

.trust-badges ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--soft-border); border-radius: 10px; background: #fff; color: var(--primary); box-shadow: var(--soft-shadow); }
.trust-badges img { width: 18px; height: 18px; }

/* ------------------------------
   COMMON LAYOUT BLOCKS
   ------------------------------ */
.text-section {
  display: flex; flex-direction: column; gap: 8px;
  padding: 16px; border: 1px solid var(--soft-border); border-radius: 12px; background: #FFFFFF;
  box-shadow: var(--soft-shadow);
}
.values ul, .metrics ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.values li, .metrics li { background: #FFFFFF; border: 1px solid var(--soft-border); border-radius: 10px; padding: 10px 14px; color: var(--primary); box-shadow: var(--soft-shadow); }
.metrics strong { font-size: 18px; color: var(--secondary); margin-right: 4px; }

.service-cards, .feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.service-cards .text-section, .feature-grid .text-section { flex: 1 1 100%; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px; background: #FFFFFF; border: 1px solid var(--soft-border); border-radius: 12px; }

.contact-details { display: flex; flex-direction: column; gap: 8px; }
.contact-details p { display: flex; align-items: center; gap: 8px; margin: 0; }
.contact-details img { width: 18px; height: 18px; }

.map-embed-placeholder { display: flex; align-items: center; justify-content: center; min-height: 160px; border: 1px dashed var(--soft-border); border-radius: 12px; background: #fff; color: var(--muted); }

.timeline ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline li { padding: 10px 12px; border-left: 3px solid var(--secondary); background: #fff; border-radius: 8px; border: 1px solid var(--soft-border); }

/* Testimonials – high contrast, classic card */
.testimonial-card {
  display: flex; align-items: center; gap: 20px; padding: 20px; /* mandatory pattern */
  border: 1px solid var(--soft-border); border-radius: 12px; background: #FFFFFF; box-shadow: var(--soft-shadow);
  flex-wrap: wrap;
}
.testimonial-card p { margin: 0; flex: 1 1 100%; color: #0D0F12; }
.stars { color: var(--secondary); font-weight: 700; letter-spacing: 2px; }

/* Footer */
footer {
  background: #FFFFFF; border-top: 1px solid var(--soft-border);
}
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 40px; }
.quick-links nav, .legal-links nav { display: flex; flex-direction: column; gap: 8px; }
footer h3 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
footer a { color: var(--primary); }
footer a:hover { color: var(--secondary); }

/* ------------------------------
   BUTTONS & INTERACTIONS
   ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 16px;
  border-radius: 10px; border: 1px solid var(--primary);
  background: #FFFFFF; color: var(--primary);
  font-weight: 600; font-size: 15px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent); box-shadow: var(--soft-shadow); transform: translateY(-1px); }

.btn-primary { background: var(--secondary); border-color: var(--secondary); color: #FFFFFF; }
.btn-primary:hover { background: #BF3C25; border-color: #BF3C25; box-shadow: var(--hover-shadow); color: #E3E6EA; }

.btn-secondary { background: #FFFFFF; color: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background: #FFF5F3; }

/* Links */
a { color: var(--primary); }
a:hover { color: var(--secondary); }

/* ------------------------------
   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; }
.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; }

/* ------------------------------
   COOKIE CONSENT BANNER & MODAL
   ------------------------------ */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #FFFFFF; border-top: 1px solid var(--soft-border);
  box-shadow: 0 -4px 18px rgba(11,42,60,0.08);
  padding: 14px 16px; z-index: 4000;
  display: flex; flex-direction: column; gap: 12px;
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie-banner .btn-accept { background: var(--secondary); border: 1px solid var(--secondary); color: #fff; border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-reject { background: #FFFFFF; border: 1px solid var(--primary); color: var(--primary); border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-settings { background: var(--accent); border: 1px solid var(--soft-border); color: var(--primary); border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-accept:hover { background: #BF3C25; }
.cookie-banner .btn-reject:hover { background: var(--accent); }
.cookie-banner .btn-settings:hover { background: #e8ecef; }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(11,42,60,0.4);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .cookie-modal-inner {
  background: #FFFFFF; border-radius: 14px; border: 1px solid var(--soft-border);
  width: 100%; max-width: 640px;
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
  box-shadow: var(--hover-shadow);
}
.cookie-modal .cookie-options { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--soft-border); border-radius: 10px; }
.cookie-modal .cookie-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ------------------------------
   RESPONSIVE – MOBILE FIRST
   ------------------------------ */
@media (min-width: 640px) {
  .hero h1 { font-size: 34px; }
  .service-cards .text-section, .feature-grid .text-section { flex: 1 1 calc(50% - 10px); }
  .cta-strip { padding: 18px; }
}

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .text-image-section { flex-direction: row; }
  .trust-badges ul { gap: 14px; }
  .values li, .metrics li { padding: 12px 16px; }
  .service-cards .text-section, .feature-grid .text-section { flex: 1 1 calc(50% - 10px); }
  .content-grid { justify-content: flex-start; }
}

@media (min-width: 992px) {
  header > .container { padding-top: 14px; padding-bottom: 14px; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero .container { padding-top: 40px; padding-bottom: 40px; }
  .hero h1 { font-size: 48px; }
  .hero .subheadline { font-size: 18px; }

  .service-cards .text-section, .feature-grid .text-section { flex: 1 1 calc(33.333% - 14px); }

  footer .content-wrapper > div { flex: 1 1 calc(25% - 15px); }
}

/* ------------------------------
   CLASSIC DETAILS & UTILITIES
   ------------------------------ */
hr { border: none; border-top: 1px solid var(--soft-border); margin: 20px 0; }
.muted { color: var(--muted); }

/* Section base to ensure breathing room */
main > section { padding: 24px 0; }
main > section:nth-child(odd) { background: #FFFFFF; border-top: 1px solid var(--soft-border); border-bottom: 1px solid var(--soft-border); }

/* Prevent overlaps and ensure spacing between elements */
section .content-wrapper > * + * { margin-top: 8px; }

/* ------------------------------
   ACCESSIBILITY & PRINT
   ------------------------------ */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a::after { content: " (" attr(href) ")"; font-size: 12px; color: #555; }
}

/* ------------------------------
   PAGE-SPECIFIC LIGHT TWEAKS
   ------------------------------ */
.location-overview p strong { color: var(--primary); }
.quick-links nav a, .legal-links nav a { padding: 6px 0; }
.newsletter p { margin: 0; }

/* Ensure adequate minimum spacing between card-like blocks */
.text-section + .text-section, .testimonial-card + .testimonial-card { margin-top: 20px; }

/* ------------------------------
   FLEXBOX SAFEGUARDS
   ------------------------------ */
/* All structural wrappers already set to display:flex; avoid absolute for content blocks */
.card { position: relative; }

/* ------------------------------
   DARK TEXT IN TESTIMONIALS (contrast)
   ------------------------------ */
.testimonial-card, .testimonial-card p, .testimonial-card strong, .testimonial-card .stars { color: #0C0F13; }

/* ------------------------------
   NAV LINK SPACING (classic proportions)
   ------------------------------ */
.main-nav a { padding: 8px 10px; }

/* ------------------------------
   FORMS (if any future inputs)
   ------------------------------ */
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--soft-border); border-radius: 10px; background: #fff; color: var(--text);
}
input:focus, textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(214,69,42,0.15); }

/* ------------------------------
   HOVERABLE CARDS MICRO-INTERACTION
   ------------------------------ */
.text-section:hover { box-shadow: var(--hover-shadow); transform: translateY(-1px); transition: box-shadow .2s ease, transform .2s ease; }
.testimonial-card:hover { box-shadow: var(--hover-shadow); transform: translateY(-1px); transition: box-shadow .2s ease, transform .2s ease; }

/* ------------------------------
   ENSURE GAPS BETWEEN ALL CONTENT BLOCKS
   ------------------------------ */
section .content-wrapper { gap: 20px; }

/* ------------------------------
   TABLES (legal pages might use)
   ------------------------------ */
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--soft-border); border-radius: 10px; overflow: hidden; display: block; }
thead { background: var(--accent); color: var(--primary); }
tr { display: flex; }
th, td { flex: 1 1 0; padding: 10px 12px; border-bottom: 1px solid var(--soft-border); }
tr:last-child td { border-bottom: none; }

/* ------------------------------
   LISTS IN TEXT-SECTIONS
   ------------------------------ */
.text-section ul, .text-section ol { padding-left: 1.1rem; }
.text-section li { margin: 6px 0; }

/* ------------------------------
   STAR RATING SIZE TWEAK
   ------------------------------ */
.stars { font-size: 16px; }

/* ------------------------------
   PAGE HEADERS WITHOUT KICKER (legal pages)
   ------------------------------ */
.hero h1 + .subheadline { margin-top: 6px; }

/* End of stylesheet */
