/* ===================================================================
   LuminaTrace Raumwerker – style.css
   Aesthetic: monochrome_sophisticated (black/white/gray, dramatic contrast, elegant typography)
   Brand: primary #1F3B4D, secondary #D97706, accent #F2F5F7
   Mobile-first, ONLY flexbox layouts, no grid/columns
   =================================================================== */

/* ----------------------------
   Reset / Normalize
----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { line-height: 1.6; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.2rem; margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button, a { cursor: pointer; }
button { border: none; background: none; }
:focus { outline: 2px solid #1F3B4D; outline-offset: 2px; }

/* ----------------------------
   Theme Tokens
----------------------------- */
:root {
  --c-bg: #ffffff;
  --c-surface: #F5F6F7;
  --c-text: #111213;
  --c-muted: #5F6368;
  --c-border: #E3E5E8;
  --c-primary: #1F3B4D; /* brand */
  --c-secondary: #D97706; /* brand accent */
  --c-accent: #F2F5F7; /* brand accent surface */
  --c-black: #0B0C0D;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.12);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 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;
}

/* ----------------------------
   Typography
----------------------------- */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  color: var(--c-text);
  background: var(--c-bg);
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; /* brand display */ letter-spacing: 0.2px; }
h1 { font-size: 34px; line-height: 1.2; }
h2 { font-size: 26px; line-height: 1.3; }
h3 { font-size: 20px; line-height: 1.35; }
.subheadline { color: #2B2D2F; font-size: 16px; line-height: 1.6; opacity: 0.9; }

p, li { color: #1B1C1E; font-size: 16px; }
strong { font-weight: 700; }

/* Links */
a { color: var(--c-primary); text-decoration: none; border-bottom: 1px solid transparent; transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease; }
a:hover { color: #162A36; border-bottom-color: currentColor; }
a:active { color: #0F1C25; }

/* ----------------------------
   Layout Primitives (Flex-only)
----------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  margin-bottom: var(--space-20);
}

/* Mandatory spacing and 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; }

/* Generic card styling (used where applicable) */
.card, .testimonial-card {
  background: #FFFFFF;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-1);
}

/* Ensure min gaps between blocks */
section + section { margin-top: var(--space-32); }

/* ----------------------------
   Header & Navigation
----------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-16);
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo img { height: 32px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-20); }
.main-nav a {
  color: #141516;
  padding: 8px 6px;
  border-bottom: 1px solid transparent;
}
.main-nav a:hover { color: var(--c-primary); border-bottom-color: var(--c-primary); }

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

/* Hamburger button */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: var(--c-black);
  color: #fff;
  font-size: 20px;
  transition: background-color 220ms ease, transform 220ms ease;
}
.mobile-menu-toggle:hover { background: #151719; }
.mobile-menu-toggle:active { transform: scale(0.98); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0E0F11;
  color: #EDEFF2;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 280ms ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  width: 40px; height: 40px;
  color: #fff;
  font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}
.mobile-menu-close:hover { background: rgba(255,255,255,0.14); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}
.mobile-nav a {
  color: #F3F5F7;
  font-size: 18px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav a:hover { color: #fff; }

/* ----------------------------
   Hero Section
----------------------------- */
.hero {
  background: #0F1113; /* strong dark for dramatic contrast */
  color: #FFFFFF;
  padding: 60px 0;
}
.hero .container { gap: var(--space-20); }
.hero .content-wrapper { max-width: 900px; }
.hero h1 { color: #FFFFFF; }
.hero .subheadline { color: #CDD3D8; font-size: 17px; }
.hero p, .hero li { color: #96979a; }
.hero ul { display: flex; flex-direction: column; gap: 8px; }

/* ----------------------------
   Sections (default)
----------------------------- */
main section { padding: 30px 0; }
main section .container { gap: var(--space-16); }
main section h2 { color: #0F1112; }

/* Accents for readability */
.testimonial-card { background: #FFFFFF; color: #0F1112; }

/* Lists spacing */
ul li, ol li { margin-bottom: 8px; }
ol { padding-left: 1.25rem; }

/* ----------------------------
   Buttons
----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, box-shadow 200ms ease, transform 150ms ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn.primary {
  background: var(--c-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-1);
}
.btn.primary:hover { background: #162A36; box-shadow: var(--shadow-2); }
.btn.primary:active { transform: translateY(1px); }

.btn.secondary {
  background: transparent;
  color: #6e7578;
  border-color: #30343A;
}
.btn.secondary:hover { color: var(--c-primary); border-color: var(--c-primary); }
.btn.secondary:active { transform: translateY(1px); }

/* Inline icon spacing */
.btn img { margin-right: 8px; }

/* ----------------------------
   Footer
----------------------------- */
footer {
  background: #0C0D0E;
  color: #E7EAED;
  border-top: 1px solid #1A1C1F;
  padding-top: 28px;
  padding-bottom: 28px;
}
footer .content-wrapper { gap: var(--space-20); }
footer .text-section p { color: #C9CED3; }
.footer-nav, .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
}
.footer-nav a, .legal-nav a { color: #CDD1D6; border-bottom-color: transparent; }
.footer-nav a:hover, .legal-nav a:hover { color: #FFFFFF; border-bottom-color: rgba(255,255,255,0.2); }

/* ----------------------------
   Utility / Components
----------------------------- */
/* Content grids (flex-only) */
.content-grid > * { flex: 1 1 280px; }

/* Text + Image generic layout */
.text-image-section > * { flex: 1 1 320px; }

/* Subtle section surfaces when needed */
.surface-light { background: var(--c-accent); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.surface-contrast { background: #111315; color: #F7F8FA; }

/* Icon alignment within paragraphs */
p img[alt] { display: inline; vertical-align: middle; margin-right: 8px; height: 18px; width: auto; }

/* Quote style for testimonials (monochrome, high contrast) */
.testimonial-card {
  border-left: 4px solid #1A1C1F;
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: #2B2F33; }

/* Zebra separation for dense lists */
.content-wrapper > ul, .content-wrapper > ol { background: #FFFFFF; border: 1px solid var(--c-border); border-radius: var(--radius-m); padding: 16px 18px; }

/* ----------------------------
   Cookie Consent Banner & Modal
----------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #111214;
  color: #F0F2F5;
  padding: 16px 18px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.2);
  transform: translateY(110%);
  transition: transform 280ms ease;
  z-index: 3000;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { border-radius: 8px; padding: 10px 14px; font-size: 14px; }
.cookie-banner .btn.accept { background: var(--c-primary); color: #fff; }
.cookie-banner .btn.reject { background: #1A1C1F; color: #fff; border: 1px solid #2A2D31; }
.cookie-banner .btn.settings { background: transparent; color: #EAECEF; border: 1px solid #40454B; }
.cookie-banner .btn.settings:hover { border-color: var(--c-primary); color: #fff; }

/* Preferences Modal */
.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none; /* toggled via .open */
  align-items: center; justify-content: center;
  z-index: 3500;
  padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-content {
  background: #FFFFFF;
  color: #111214;
  width: 100%; max-width: 720px;
  border-radius: 12px;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle rows */
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--c-border); }
.cookie-row:last-child { border-bottom: none; }

/* Simple toggle style (using checkbox) */
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-toggle input[type="checkbox"] {
  width: 42px; height: 24px; appearance: none; background: #D3D6DA; border-radius: 999px; position: relative; transition: background 200ms ease;
}
.cookie-toggle input[type="checkbox"]:checked { background: var(--c-primary); }
.cookie-toggle input[type="checkbox"]::after {
  content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 200ms ease;
}
.cookie-toggle input[type="checkbox"]:checked::after { transform: translateX(18px); }

/* ----------------------------
   Responsive (Mobile-first)
----------------------------- */
@media (min-width: 600px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
}

@media (min-width: 768px) {
  body { font-size: 17px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  h3 { font-size: 22px; }

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

  .hero { padding: 80px 0; }
  .text-image-section { flex-direction: row; }

  /* Align footer sections in a row while wrapping as needed */
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .container { gap: var(--space-24); }
  header .container { gap: var(--space-20); }
}

/* ----------------------------
   Page-specific subtle touches
----------------------------- */
/* Hero link group spacing */
.hero .content-wrapper > div { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer contact icons alignment */
footer .text-section img { display: inline; vertical-align: middle; margin: 0 6px 0 0; }

/* Ensure adequate spacing between all stacked text sections */
.content-wrapper > .text-section + .text-section { margin-top: var(--space-12); }

/* Price/feature lists readability */
.content-wrapper > p + ul, .content-wrapper > p + ol { margin-top: 8px; }

/* ----------------------------
   High-contrast dividers and subtle shadows
----------------------------- */
hr { border: none; border-top: 1px solid var(--c-border); margin: 24px 0; }
.shadowed { box-shadow: var(--shadow-2); }

/* ----------------------------
   Prevent overlap & maintain spacing
----------------------------- */
section, .card, .testimonial-card { margin-bottom: var(--space-20); }

/* ----------------------------
   Accessibility helpers
----------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* ----------------------------
   Print (basic)
----------------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { color: #000; border-bottom: none; }
}
