/* ===== Variables ===== */
:root {
  --color-bg: #0f172a;
  --color-bg-alt: #1e293b;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-light: #e2e8f0;
  --color-primary: #0ea5e9;
  --color-primary-dark: #0284c7;
  --color-accent: #38bdf8;
  --color-border: #e2e8f0;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --container: 1120px;
  --header-h: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-lead {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}

.btn-nav {
  background: var(--color-primary);
  color: #fff;
  padding: 8px 18px;
  font-size: 0.9rem;
}
.btn-nav:hover { background: var(--color-primary-dark); }

.btn-full { width: 100%; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 1rem;
}
.logo-text span {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.7;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: #fff; }
.nav a.btn-nav { color: #fff; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 80px;
  background: var(--color-bg);
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.70) 55%, rgba(14,165,233,0.28) 100%),
    url('images/Industriebau1.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }

.hero-lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Intro ===== */
.intro {
  padding: 80px 0;
  background: #f8fafc;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.intro-text h2 { margin-bottom: 20px; }
.intro-text p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.intro-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stat {
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
}

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: #f1f5f9;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-surface);
  padding: 32px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.1);
  color: var(--color-primary);
  border-radius: 10px;
  margin-bottom: 20px;
}
.service-icon svg { width: 24px; height: 24px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Technology ===== */
.tech-grid {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.tech-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tech-card.reverse .tech-image { order: 2; }
.tech-card.reverse .tech-content { order: 1; }

.tech-image {
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.placeholder-img {
  position: relative;
  background-color: #cbd5e1;
  background-size: cover;
  background-position: center;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tech-image img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.tech-content {
  padding: 36px 40px 36px 0;
}

.tech-card.reverse .tech-content {
  padding: 36px 0 36px 40px;
}

.tech-content h3 { margin-bottom: 14px; }
.tech-content p {
  color: var(--color-text-muted);
  margin-bottom: 18px;
}

.tech-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tech-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--color-text);
}
.tech-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-content h2 { margin-bottom: 20px; }
.about-content p {
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.about-person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.person-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.about-person strong { display: block; }
.about-person span {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.about-image {
  min-height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-image img {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}

/* ===== Contact ===== */
.section-contact {
  background: var(--color-bg);
  color: #fff;
}

.section-contact .eyebrow { color: var(--color-accent); }
.section-contact h2 { color: #fff; }
.section-contact p { color: rgba(255,255,255,0.75); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-details {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.contact-item a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-item a:hover { color: var(--color-accent); }

.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 36px;
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.8);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  transition: border-color 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

/* ===== Footer ===== */
.footer {
  background: #0a0f1a;
  color: rgba(255,255,255,0.6);
  padding: 48px 0 32px;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer-brand .logo-mark {
  width: 32px;
  height: 32px;
  font-size: 0.7rem;
}

.footer-legal p { margin-bottom: 8px; }

.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-links a:hover { color: #fff; }

.footer-copy {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}

/* ===== Modal ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--color-text); }

.modal-content h3 {
  margin-bottom: 16px;
  font-size: 1.35rem;
}
.modal-content p {
  color: var(--color-text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .intro-grid,
  .about-grid,
  .contact-grid,
  .tech-card,
  .tech-card.reverse {
    grid-template-columns: 1fr;
  }

  .tech-card.reverse .tech-image,
  .tech-card.reverse .tech-content {
    order: unset;
  }

  .tech-content,
  .tech-card.reverse .tech-content {
    padding: 28px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-image { min-height: 280px; }
}

@media (max-width: 700px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav.open { display: flex; }

  .menu-toggle { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero { min-height: auto; padding-bottom: 64px; }
  .section { padding: 64px 0; }
  .intro { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .contact-form-wrap { padding: 24px; }
}

/* ===== Projects Gallery ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--color-surface);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card.full-width {
  grid-column: 1 / -1;
}

.project-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e2e8f0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-image.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  aspect-ratio: 21 / 9;
}

.project-image.before-after img {
  height: 100%;
}

.ba-label {
  position: absolute;
  top: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.ba-label.before { left: 12px; }
.ba-label.after { left: calc(50% + 12px); }

.project-content {
  padding: 20px 24px 24px;
}

.project-content h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.project-content p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.project-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .project-image.before-after {
    grid-template-columns: 1fr;
    aspect-ratio: auto;
  }
  .project-image.before-after img {
    aspect-ratio: 16/9;
  }
  .ba-label.after { left: 12px; top: calc(50% + 12px); }
}
