/* Velvet Velocity Ausbau – Industrial Modern CSS (mobile-first, flex-only) */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Source+Sans+Pro:wght@400;600;700&display=swap');

/* Reset & Normalize */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { height: 100%; }
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: inherit; vertical-align: baseline; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; }
button { background: none; border: none; font: inherit; color: inherit; cursor: pointer; }

/* Design Tokens */
:root {
  --brand-primary: #1F2937; /* deep slate */
  --brand-secondary: #9E3F22; /* rust/metallic copper */
  --brand-accent: #F5F3EE; /* warm light */

  --bg-900: #0E1217; /* base background */
  --bg-800: #141A21; /* elevated surface */
  --bg-700: #1B222B; /* card surface */
  --metal-500: #3A434D; /* borders/lines */
  --metal-400: #505A66; /* subtle */
  --text-100: #E9EDF1; /* primary text */
  --text-200: #C8CFD6; /* secondary text */
  --white: #ffffff;

  --radius-s: 6px;
  --radius-m: 10px;
  --shadow-1: 0 6px 18px rgba(0,0,0,0.25);
  --shadow-2: 0 12px 28px rgba(0,0,0,0.35);
  --focus: 0 0 0 3px rgba(158,63,34,0.45);
}

/* Base */
body {
  background: var(--bg-900);
  color: var(--text-100);
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 16px;
}

h1, h2, h3, h4 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; color: var(--brand-accent); line-height: 1.2; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 20px; color: var(--text-100); }

p { color: var(--text-200); font-size: 16px; }
strong { color: var(--text-100); font-weight: 700; }

ul, ol { margin-left: 0; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
ul li, ol li { list-style: none; position: relative; padding-left: 20px; color: var(--text-200); }
ul li::before { content: ""; width: 8px; height: 8px; background: var(--brand-secondary); border-radius: 1px; position: absolute; left: 0; top: 10px; }
ol { counter-reset: c; }
ol li { counter-increment: c; }
ol li::before { content: counter(c) "."; position: absolute; left: 0; color: var(--brand-secondary); font-weight: 700; }

/* Links */
a { color: var(--brand-accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #fff; }
a:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }

/* Layout Wrappers (Flex-only) */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

section { margin-bottom: 60px; padding: 40px 20px; background: transparent; border-top: 1px solid rgba(255,255,255,0.04); }
/* Mandatory spacing class for compatibility */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Header */
header { position: sticky; top: 0; z-index: 50; background: rgba(20,26,33,0.96); backdrop-filter: saturate(120%) blur(6px); border-bottom: 1px solid var(--metal-500); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 36px; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2)); }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--text-200); padding: 8px 10px; border-radius: 4px; transition: color .2s ease, background-color .2s ease; }
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }
.main-nav a:focus-visible { box-shadow: var(--focus); }

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

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: #fff; background: var(--bg-700); border: 1px solid var(--metal-500); border-radius: 8px; box-shadow: var(--shadow-1); transition: background .2s ease, transform .1s ease; }
.mobile-menu-toggle:hover { background: var(--brand-primary); }
.mobile-menu-toggle:active { transform: scale(0.98); }
.mobile-menu-toggle:focus-visible { box-shadow: var(--focus); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; background: rgba(14,18,23,0.98); border-left: 2px solid var(--brand-secondary); display: flex; flex-direction: column; padding: 20px; gap: 20px; transform: translateX(100%); transition: transform .35s ease; z-index: 100; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--bg-700); border: 1px solid var(--metal-500); border-radius: 8px; box-shadow: var(--shadow-1); }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.mobile-nav a { color: var(--text-100); font-size: 18px; padding: 12px 10px; border-radius: 6px; background: rgba(255,255,255,0.04); border: 1px solid var(--metal-500); }
.mobile-nav a:hover { background: rgba(255,255,255,0.08); }

/* Hero */
.hero { background: var(--bg-800); border-bottom: 1px solid var(--metal-500); }
.hero .container { gap: 0; }
.hero .content-wrapper { padding-top: 10px; padding-bottom: 10px; }
.hero h1 { font-size: 32px; color: #fff; text-transform: none; }
.hero p { font-size: 18px; }

/* 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; padding: 12px 18px; border-radius: 8px; font-weight: 700; letter-spacing: 0.4px; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.primary { background: var(--brand-secondary); color: #fff; border-color: #7F331C; }
.btn.primary:hover { background: #7F331C; }
.btn.secondary { background: transparent; color: var(--brand-accent); border-color: var(--metal-500); }
.btn.secondary:hover { background: rgba(255,255,255,0.06); border-color: var(--brand-accent); }
.btn.link { padding: 0; border: none; background: none; color: var(--brand-accent); text-decoration: underline; text-underline-offset: 3px; }
.btn.link:hover { color: #fff; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font-weight: 700; color: var(--brand-primary); background: var(--brand-accent); border-radius: 999px; border: 1px solid #e0ddd6; }

/* Text + Image Sections */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.text-image-section > div { flex: 1 1 280px; }
.text-image-section img { width: 100%; height: auto; border-radius: var(--radius-m); box-shadow: var(--shadow-1); border: 1px solid rgba(255,255,255,0.06); }

/* Project and generic cards */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--bg-700); border: 1px solid var(--metal-500); border-radius: var(--radius-m); box-shadow: var(--shadow-1); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Testimonials – light background for readability */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: var(--brand-accent); color: var(--brand-primary); border: 1px solid #e0ddd6; border-left: 4px solid var(--brand-secondary); border-radius: var(--radius-m); box-shadow: 0 6px 16px rgba(0,0,0,0.15); }
.testimonial-card p { color: var(--brand-primary); }
.testimonial-card strong { color: var(--brand-primary); }
.testimonial-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.18); }

/* Lists inside dark sections spacing */
.content-wrapper > ul, .content-wrapper > ol { margin-top: 4px; }

/* Images global */
img { border-radius: var(--radius-s); }

/* Footer */
footer { background: #0C0F13; border-top: 1px solid var(--metal-500); }
footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
.footer-brand, .footer-nav, .footer-legal, .footer-contact { display: flex; flex-direction: column; gap: 12px; min-width: 240px; flex: 1 1 240px; }
.footer-brand img { height: 34px; filter: brightness(10); }
.footer-nav a, .footer-legal a, .footer-contact a { color: var(--text-200); }
.footer-nav a:hover, .footer-legal a:hover, .footer-contact a:hover { color: #fff; }
.footer-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-links a { background: rgba(255,255,255,0.06); border: 1px solid var(--metal-500); padding: 8px 10px; border-radius: 6px; }
.social-links a:hover { background: rgba(255,255,255,0.12); }

/* Header visibility for larger screens */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* Typography scale for larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 18px; }
  .text-image-section { flex-wrap: nowrap; }
}

/* Accessibility focus for key elements */
.logo:focus-visible, nav a:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible, .btn:focus-visible { outline: none; box-shadow: var(--focus); }

/* Tables (if any) styled to match */
table { width: 100%; border-collapse: collapse; display: flex; flex-direction: column; }
thead, tbody { display: flex; flex-direction: column; gap: 0; }
tr { display: flex; flex-direction: row; align-items: center; }
th, td { flex: 1; padding: 10px 8px; border-bottom: 1px solid var(--metal-500); color: var(--text-200); }
th { color: var(--brand-accent); text-align: left; }

/* Form elements (if added later) */
input, textarea, select { width: 100%; background: var(--bg-700); color: var(--text-100); border: 1px solid var(--metal-500); border-radius: 8px; padding: 12px; }
input:focus, textarea:focus, select:focus { outline: none; box-shadow: var(--focus); border-color: var(--brand-secondary); }
label { color: var(--text-200); font-weight: 600; }

/* Micro-interactions */
.content-wrapper a, .main-nav a, .footer-nav a, .footer-legal a, .footer-contact a { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }

/* Industrial dividers */
hr { border: none; height: 1px; background: var(--metal-500); opacity: .6; }

/* Ensure spacing between major blocks */
.content-wrapper > * + * { margin-top: 0; }

/* Mobile-first spacing safeguards */
section + section { margin-top: 0; }

/* Cookie Consent Banner & Modal (flex-only) */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: var(--bg-800); color: var(--text-100); border-top: 2px solid var(--brand-secondary); display: flex; flex-direction: column; gap: 12px; padding: 16px; box-shadow: 0 -10px 24px rgba(0,0,0,0.3); transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner .btn.accept { background: var(--brand-secondary); color: #fff; border-color: #7F331C; }
.cookie-banner .btn.reject { background: transparent; color: var(--brand-accent); border-color: var(--metal-500); }
.cookie-banner .btn.settings { background: var(--bg-700); color: var(--brand-accent); border-color: var(--metal-500); }

.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 130; display: none; }
.cookie-overlay.show { display: flex; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0.98); background: var(--bg-800); color: var(--text-100); border: 1px solid var(--metal-500); border-radius: 10px; box-shadow: var(--shadow-2); z-index: 140; width: min(94%, 720px); display: none; flex-direction: column; }
.cookie-modal.show { display: flex; transform: translate(-50%, -50%) scale(1); transition: transform .2s ease; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--metal-500); }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.cookie-modal .pref-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg-700); border: 1px solid var(--metal-500); border-radius: 8px; padding: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px; border-top: 1px solid var(--metal-500); }

/* Desktop layout enhancements */
@media (min-width: 992px) {
  .container { padding: 0 24px; }
  section { padding: 60px 24px; }
  .cookie-banner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Utility classes for spacing & alignment (flex-only) */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; flex: 1 1 280px; }
.center { display: flex; align-items: center; justify-content: center; }

/* Prevent overlap and ensure breathing room */
.content-wrapper { margin-bottom: 0; }
.content-wrapper > * { margin: 0; }

/* Page-specific subtle accents */
.hero + section { background: transparent; }

/* Readability tweaks for lists following headings */
h2 + ul, h2 + ol, h3 + ul, h3 + ol { margin-top: 6px; }

/* Make sure interactive items stand out on dark */
header a.btn.primary, footer a.btn.primary { color: #fff; }

/* Print basics */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-overlay { display: none !important; }
  body { background: #fff; color: #000; }
}
