/* --- CSS Variables (Bauhaus Functional Palette) --- */
:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f4f4;
  --color-accent-light: #ffecec; /* Very pale red for backgrounds */
  --color-text: #212529;
  --color-text-light: #ffffff;
  --color-primary: #e63946; /* Signal Red */
  --color-dark: #111111;
  --border-color: #212529;
  --border-width: 3px;
  --container-width: 1200px;
  --section-spacing: 100px;
}

/* --- Global Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}

/* --- Typography & Utility Classes --- */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.5px;
}
.headline-xl {
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}
.headline-lg {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 30px;
}
.headline-md {
  font-size: 2rem;
  margin-bottom: 20px;
}
.lead-text {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #555;
}
.body-text {
  font-size: 1.1rem;
  margin-bottom: 20px;
}
.body-text-large {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 25px;
}

.highlight {
  color: var(--color-primary);
}
.text-white {
  color: var(--color-text-light);
}
.bg-light {
  background-color: var(--color-bg-alt);
}
.bg-accent-light {
  background-color: var(--color-accent-light);
}
.bg-dark-red {
  background-color: #a71e2b;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 800px;
}
.center {
  text-align: center;
}
.mb-50 {
  margin-bottom: 50px;
}
.mb-30 {
  margin-bottom: 30px;
}

.section {
  padding: var(--section-spacing) 0;
}
.section-divider {
  height: var(--border-width);
  background: var(--color-text);
  width: 100%;
}
.section-divider-thick {
  height: 12px;
  background: var(--color-text);
  width: 100%;
}

/* --- Buttons --- */
.btn-primary,
.btn-header,
.btn-submit,
.btn-cookie {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 0; /* Bauhaus: no rounded corners here */
}
.btn-primary:hover,
.btn-header:hover,
.btn-submit:hover {
  background-color: var(--color-dark);
  transform: translateY(-2px);
}
.btn-text {
  display: inline-block;
  padding: 16px 32px;
  color: var(--color-text);
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.3s ease;
}
.btn-text:hover {
  color: var(--color-primary);
}

/* --- Header --- */
.header {
  padding: 20px 0;
  border-bottom: var(--border-width) solid var(--border-color);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-text);
}
.logo img {
  width: 50px;
  height: 50px;
}
.logo-shape {
  width: 30px;
  height: 30px;
  background: var(--color-primary);
  border-radius: 50%;
}
.nav-desktop {
  display: flex;
  gap: 30px;
}
.nav-desktop a {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-desktop a:hover {
  color: var(--color-primary);
}
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 30px;
  height: var(--border-width);
  background: var(--color-text);
  transition: 0.3s;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--color-bg);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.4s ease-in-out;
  border-left: var(--border-width) solid var(--border-color);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: var(--border-width) solid var(--border-color);
  font-weight: 900;
  font-size: 1.2rem;
}
.close-btn {
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}
.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
}
.mobile-nav-links a {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.mobile-nav-links a:hover {
  color: var(--color-primary);
}

/* --- Hero Section --- */
.hero-section {
  padding: 100px 0;
  overflow: hidden;
}
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.bauhaus-composition {
  position: relative;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.shape-rect-red {
  position: absolute;
  top: 50px;
  left: 0;
  width: 200px;
  height: 400px;
  background: var(--color-primary);
  z-index: 1;
}
.shape-circle-black {
  position: absolute;
  bottom: 50px;
  right: 50px;
  width: 250px;
  height: 250px;
  background: var(--color-dark);
  border-radius: 50%;
  z-index: 2;
}
.shape-line {
  position: absolute;
  top: 250px;
  left: -50px;
  width: 600px;
  height: var(--border-width);
  background: var(--color-text);
  transform: rotate(-15deg);
  z-index: 3;
}
.hero-img {
  position: relative;
  z-index: 4;
  border: var(--border-width) solid var(--border-color);
  background: #fff;
  padding: 20px;
  max-height: 400px;
  object-fit: cover;
}

/* --- Grid Cards (Areas) --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.grid-card {
  padding: 40px;
  border: var(--border-width) solid var(--border-color);
  background: var(--color-bg);
  transition: 0.3s;
}
.grid-card:hover {
  background: var(--color-primary);
  color: var(--color-text-light);
  border-color: var(--color-primary);
}
.grid-card:hover .card-icon {
  color: var(--color-text-light);
}
.card-icon {
  color: var(--color-primary);
  margin-bottom: 25px;
  transition: 0.3s;
}
.grid-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* --- Split Layouts (Deep Dives) --- */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-layout.reverse {
  direction: rtl;
}
.split-layout.reverse .split-text {
  direction: ltr;
}
.bordered-img {
  border: var(--border-width) solid var(--border-color);
  box-shadow: 10px 10px 0 var(--color-dark);
}
.label-red {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text-light);
  padding: 5px 15px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

/* --- Process Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step-counter;
}
.step-block {
  text-align: center;
  position: relative;
  padding-top: 60px;
}
.step-block::before {
  content: "";
  position: absolute;
  top: 25px;
  left: -50%;
  width: 100%;
  height: var(--border-width);
  background: var(--border-color);
  z-index: 1;
}
.step-block:first-child::before {
  display: none;
}
.step-num {
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.5rem;
  margin: 0 auto 25px;
  position: relative;
  z-index: 2;
  border: var(--border-width) solid var(--border-color);
}
.step-block h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* --- Interface Philosophy Graphic --- */
.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}
.functional-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  text-transform: uppercase;
}
.fg-circle,
.fg-square {
  padding: 20px;
  border: var(--border-width) solid var(--border-color);
  background: var(--color-bg);
  text-align: center;
  width: 200px;
}
.fg-circle {
  border-radius: 50%;
}
.fg-arrow {
  font-size: 2rem;
  color: var(--color-primary);
}

/* --- FAQ Accordion --- */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  border-top: var(--border-width) solid var(--border-color);
}
.faq-item {
  border-bottom: var(--border-width) solid var(--border-color);
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 25px 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.3s;
}
.faq-btn:hover {
  color: var(--color-primary);
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 10px;
}
.faq-content p {
  padding-bottom: 25px;
}
.faq-item.active .faq-content {
  max-height: 300px;
}
.faq-item.active .faq-btn i {
  transform: rotate(180deg);
}

/* --- Contact Form --- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info {
  padding-right: 40px;
  border-right: var(--border-width) solid var(--border-color);
}
.contact-details-block {
  margin-top: 40px;
  padding-top: 40px;
  border-top: var(--border-width) solid var(--border-color);
}
.bauhaus-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-group label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}
.form-group input {
  padding: 15px;
  border: var(--border-width) solid var(--border-color);
  font-family: inherit;
  font-size: 1rem;
  border-radius: 0;
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.captcha-input {
  width: 100%;
}
.captcha-group {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.form-check {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.form-check input {
  width: 24px;
  height: 24px;
  border: var(--border-width) solid var(--border-color);
  border-radius: 0;
  accent-color: var(--color-primary);
}
.form-check label {
  font-size: 0.95rem;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: var(--color-text-light);
  padding: 80px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand {
  font-weight: 900;
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: block;
  color: var(--color-primary);
}
.footer h4 {
  margin-bottom: 25px;
  text-transform: uppercase;
  font-size: 1rem;
  color: #999;
}
.footer a,
.footer p {
  display: block;
  color: #ccc;
  margin-bottom: 12px;
  transition: 0.3s;
}
.footer a:hover {
  color: var(--color-primary);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-text);
  color: var(--color-text-light);
  padding: 20px;
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  border-top: var(--border-width) solid var(--color-primary);
  transform: translateY(100%);
  transition: transform 0.5s ease;
}
.cookie-banner.show {
  transform: translateY(0);
}
.cookie-banner p {
  margin: 0;
  font-weight: 700;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-desktop,
  .btn-header {
    display: none;
  }
  .headline-xl {
    margin-top: 20px;
  }
  .burger {
    display: flex;
  }
  .hero-split,
  .split-layout,
  .grid-3,
  .steps-grid,
  .grid-2,
  .grid-2-1,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-visual {
    order: -1;
    height: 400px;
  }
  .bauhaus-composition {
    height: 100%;
  }
  .contact-info {
    padding-right: 0;
    border-right: none;
    border-bottom: var(--border-width) solid var(--border-color);
    padding-bottom: 40px;
  }
  .split-layout.reverse {
    direction: ltr;
  }
  .step-block::before {
    display: none;
  } /* Remove connecting lines on mobile */
  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--accent);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
