/* =============================
   RuneWarp Motorwerk - style.css
   Monochrome Sophisticated Theme
   Mobile-first, Flexbox-only Layouts
   ============================= */

/* RESET & NORMALIZE */
* { box-sizing: border-box; }
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; vertical-align: baseline; }

html { -webkit-text-size-adjust: 100%; }
body { line-height: 1; }
ol, ul { list-style: disc; padding-left: 1.2rem; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { background: none; border: none; font: inherit; cursor: pointer; }
:focus { outline: none; }

/* THEME VARIABLES (monochrome + brand accents) */
:root {
  --c-bg: #FFFFFF;
  --c-surface: #FAFAFA;
  --c-panel: #F2F2F2;
  --c-line: #E6E6E6;
  --c-text: #111111;
  --c-text-muted: #6B6B6B;
  --c-ink: #0C0C0C;
  --c-ink-soft: #1A1A1A;
  --c-hero: #0E0F11;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.06), 0 6px 16px rgba(0,0,0,0.06);
  --shadow-lift: 0 10px 24px rgba(0,0,0,0.12);
  --radius-s: 6px; 
  --radius-m: 10px;
  --radius-l: 16px;
  --brand-primary: #1E2A36;   /* deep slate (brand) */
  --brand-secondary: #E57200; /* amber (accent highlights) */
  --brand-accent: #F2F5F7;    /* light neutral */
}

/* BASE TYPOGRAPHY */
html { font-size: 16px; }
body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: Verdana, Geneva, 'Segoe UI', Tahoma, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { 
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, sans-serif;
  font-weight: 700; 
  color: var(--c-ink);
  line-height: 1.2;
}

h1 { font-size: 2rem; margin-bottom: 12px; }
h2 { font-size: 1.5rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-top: 8px; margin-bottom: 10px; }

p { font-size: 1rem; color: var(--c-text); margin-bottom: 12px; }
.subheadline { font-size: 1.125rem; color: var(--c-text-muted); margin-bottom: 16px; }
strong { color: var(--c-ink); font-weight: 700; }

/* LINKS */
a { position: relative; }
a:not(.btn)::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; opacity: 0.2; transform: scaleX(0);
  transition: transform 200ms ease, opacity 200ms ease;
}
a:hover:not(.btn)::after { transform: scaleX(1); opacity: 0.35; }

/* ACCESSIBILITY FOCUS */
:focus-visible { outline: 2px solid var(--brand-secondary); outline-offset: 2px; }
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(229,114,0,0.35); }

/* LAYOUT CONTAINERS (Flex-only) */
.container {
  display: flex; flex-direction: column; flex-wrap: nowrap;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.content-wrapper {
  display: flex; flex-direction: column; flex-wrap: nowrap; gap: 24px; align-items: flex-start;
}

/* MANDATORY SPACING PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; gap: 24px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 14px; }
.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; }

/* GENERIC SECTION SPACING */
main section { margin-bottom: 60px; padding: 40px 0; }

/* HEADER */
header { background: var(--c-bg); border-bottom: 1px solid var(--c-line); position: relative; z-index: 20; }
header .container { padding-top: 14px; padding-bottom: 14px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo img { height: 34px; width: auto; filter: grayscale(100%); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--c-ink); font-size: 0.95rem; letter-spacing: 0.02em; padding: 8px 10px; border-radius: var(--radius-s); transition: color 200ms ease, background 200ms ease; }
.main-nav a:hover { background: var(--c-panel); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c-ink); background: var(--c-panel); box-shadow: var(--shadow-soft); }
.mobile-menu-toggle:hover { background: #eaeaea; }

/* HERO */
.hero { background: var(--c-hero); color: #FFFFFF; border-bottom: 1px solid #15171A; }
.hero .subheadline { color: #D2D2D2; }
.hero h1 { color: #FFFFFF; font-size: 2rem; }
.hero .text-section p, .hero li { color: #E4E4E4; }
.hero .container { padding-top: 48px; padding-bottom: 48px; }

/* TEXT BLOCKS */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section p:last-child { margin-bottom: 0; }

/* CTA ROW */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--c-ink);
  font-weight: 700; letter-spacing: 0.02em; transition: transform 120ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--c-ink); color: #FFFFFF; border-color: var(--c-ink); }
.btn.primary:hover { background: #1a1a1a; }
.btn.secondary { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn.secondary:hover { background: var(--c-panel); }

/* Buttons in dark hero */
.hero .btn.secondary { color: #FFFFFF; border-color: #FFFFFF; }
.hero .btn.secondary:hover { background: rgba(255,255,255,0.08); }

/* LISTS */
ul, ol { display: flex; flex-direction: column; gap: 8px; }
li { color: var(--c-text); }
.hero li { color: #EDEDED; }

/* TESTIMONIALS (light on dark text requirement) */
.testimonial-card {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}
.testimonial-card:hover { box-shadow: var(--shadow-lift); }
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--c-text-muted); }

/* FOOTER */
footer { background: #0F1113; color: #EAEAEA; border-top: 1px solid #16181B; }
footer .content-wrapper { gap: 28px; }
footer .logo img { filter: brightness(0) invert(1) grayscale(100%); }
.footer-nav, .legal-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav h3, .legal-nav h3 { color: #FFFFFF; font-size: 1rem; margin-bottom: 6px; }
footer a { color: #EAEAEA; opacity: 0.9; padding: 4px 0; }
footer a:hover { opacity: 1; }
footer p { color: #D0D0D0; }
footer section { padding: 40px 0; margin-bottom: 0; }

/* MOBILE NAV OVERLAY */
.mobile-menu {
  position: fixed; inset: 0; background: var(--c-bg);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
  transform: translateX(100%); transition: transform 300ms ease; z-index: 50;
  box-shadow: -10px 0 24px rgba(0,0,0,0.15);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; background: var(--c-panel); color: var(--c-ink); display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { font-size: 1.05rem; padding: 12px 8px; border-bottom: 1px solid var(--c-line); }

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--c-bg); color: var(--c-text);
  border-top: 1px solid var(--c-line);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform 300ms ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .container { padding-top: 14px; padding-bottom: 14px; }
.cookie-banner .content-wrapper { gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--c-ink); font-weight: 700; }
.cookie-btn.accept { background: var(--c-ink); color: #FFFFFF; }
.cookie-btn.reject { background: transparent; color: var(--c-ink); }
.cookie-btn.settings { background: var(--c-panel); color: var(--c-ink); border-color: transparent; }
.cookie-btn:hover { filter: brightness(0.96); }

/* COOKIE MODAL */
.cookie-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 70; }
.cookie-modal.show { display: flex; }
.cookie-modal-content {
  background: var(--c-bg); color: var(--c-text); width: 100%; max-width: 720px; border-radius: var(--radius-l);
  border: 1px solid var(--c-line); box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-close { width: 36px; height: 36px; border-radius: 50%; background: var(--c-panel); display: inline-flex; align-items: center; justify-content: center; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--c-line); }
.cookie-toggle { display: inline-flex; align-items: center; gap: 10px; }

/* CARDS & PANELS */
.card { background: var(--c-bg); border: 1px solid var(--c-line); border-radius: var(--radius-m); padding: 18px; box-shadow: var(--shadow-soft); }
.card:hover { box-shadow: var(--shadow-lift); }

/* UTILITIES */
.muted { color: var(--c-text-muted) !important; }
.divider { width: 100%; height: 1px; background: var(--c-line); }

/* RESPONSIVE: TABLET & UP */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.75rem; }

  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }

  .text-image-section { flex-direction: row; }

  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
  .footer-nav, .legal-nav { min-width: 220px; }
}

/* RESPONSIVE: DESKTOP & UP */
@media (min-width: 1024px) {
  .container { padding: 0 24px; }
  header .container { padding-left: 24px; padding-right: 24px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
}

/* PAGE-SPECIFIC ENHANCEMENTS */
/* Ensure consistent spacing inside content wrappers across pages */
main .content-wrapper > h2 + .text-section { margin-top: -8px; }

/* NAV CTA distinct look in monochrome theme with subtle brand primary underline */
.main-nav .btn.primary { background: var(--c-ink); border-color: var(--c-ink); }
.main-nav .btn.primary:hover { background: #1a1a1a; }

/* CONTACT ROW ICON TEXT */
.text-section p img { display: inline-block; vertical-align: middle; margin-right: 10px; filter: grayscale(100%); }

/* VISUAL HIERARCHY - Eyebrow style for section headings (optional class) */
.eyebrow { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-text-muted); }

/* ENSURE MINIMUM GAPS BETWEEN ELEMENTS */
.content-wrapper > * + * { margin-top: 0; }
.content-grid > * { flex: 1 1 260px; }
.card-container > * { flex: 1 1 280px; }

/* PREVENT OVERLAP WITH COOKIE BANNER ON SMALL VIEWPORTS */
body { padding-bottom: env(safe-area-inset-bottom); }

/* BRAND-PERSONALITY MICRO ACCENTS (subtle, still monochrome-forward) */
.btn.primary:active { transform: translateY(0); }
.btn.primary:hover { box-shadow: 0 6px 16px rgba(0,0,0,0.18); }
.btn.secondary:focus-visible { border-color: var(--brand-primary); }

/* HEADER HOVER ACCENTS */
.main-nav a:hover { color: var(--brand-primary); }

/* LIST ITEM BETTER READABILITY */
.text-section ul li, .text-section ol li { padding-left: 2px; }

/* TABLE-LIKE TEXT GROUPS (flex only) */
.kv { display: flex; flex-direction: column; gap: 8px; }
.kv-row { display: flex; justify-content: space-between; gap: 16px; }

/* PRINT STYLES (basic) */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a::after { display: none; }
}

/* SAFETY: Ensure no overlap anywhere by default gaps */
section .testimonial-card + .testimonial-card { margin-top: 8px; }

/* Ensure readable hero links */
.hero a:not(.btn) { color: #FFFFFF; }
.hero a:not(.btn)::after { background: #FFFFFF; opacity: 0.35; }

/* End of stylesheet */
