*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Dark surfaces */
  --night:   #18181F;
  --deep:    #121218;

  /* Warm accent — amber/copper */
  --primary: #A86400;
  --mid:     #C07814;
  --accent:  #D4860A;
  --tint:    #F0D4A0;

  /* Light surfaces — warm */
  --pale:    #F0EDE8;
  --surface: #F8F6F2;
  --white:   #FFFFFF;

  /* Text */
  --text-dark:  #1A1A22;
  --text-mid:   #3D3D4D;
  --text-muted: #5A5A6E;
  --text-faint: #8A8A9E;
  --border:     #E2DDD8;
}


/* ── Navy-blue theme overrides ── */
body.theme-blue {
  --primary: #1A5EA8;
  --mid:     #2272C8;
  --accent:  #3B82F6;
  --tint:    #BFDBFE;
}
body.theme-blue nav,
body.theme-blue .hero { background: #0B1926; }
body.theme-blue footer { background: #060C15; }
body.theme-blue .projects { background: #0B1926; }
body.theme-blue .project-thumb { background: #112240; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Fira Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}

h1, h2, h3 {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

/* ── NAV ── */
nav {
  background: var(--night);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark { width: 38px; height: 38px; flex-shrink: 0; }

.nav-logo-text .name {
  display: block;
  color: white;
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.nav-logo-text .gmbh {
  display: block;
  color: #7A7A8A;
  font-size: 9px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: #B8B8CC;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s;
}

.nav-links a:hover { color: white; }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 4px;
  font-weight: 500;
  transition: background 0.15s !important;
}

.nav-cta:hover { background: var(--mid) !important; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid #28282F;
  padding-left: 20px;
  margin-left: 8px;
}

.lang-toggle a { color: #9090A0 !important; font-size: 12px; letter-spacing: 0.05em; }
.lang-toggle a.lang-active { color: white !important; font-weight: 500; }
.lang-toggle .lang-sep { color: #3A3A4A; font-size: 11px; }

/* ── HERO ── */
.hero {
  background: var(--night);
  padding: 6rem 3rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero-canvas,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-canvas { opacity: 0.6; }

.hero-fallback {
  opacity: 0.55;
}

.hero-fallback svg {
  width: 100%;
  height: 100%;
}

.star-pulse {
  animation: star-twinkle 3s ease-in-out infinite alternate;
}
.star-pulse:nth-child(odd)  { animation-duration: 2.4s; animation-delay: -0.8s; }
.star-pulse:nth-child(even) { animation-duration: 3.6s; animation-delay: -1.5s; }

@keyframes star-twinkle {
  from { opacity: 0.3; }
  to   { opacity: 1;   }
}

@media (max-width: 900px) {
  .hero-canvas { opacity: 0.3; }
  .hero-fallback { justify-content: center; padding-right: 0; opacity: 0.25; }
}

@media (max-width: 580px) {
  .hero-canvas { opacity: 0.2; }
  .hero-fallback { opacity: 0.18; }
}


.hero-eyebrow {
  color: var(--accent);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 18px;
}

.hero h1 {
  color: white;
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 20px; max-width: 520px;
}

.hero-body {
  color: #B8B8CC; font-size: 16px; line-height: 1.8;
  max-width: 440px; margin-bottom: 2.5rem;
}

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

.btn-primary {
  background: var(--primary); color: white;
  padding: 13px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; transition: background 0.15s; display: inline-block;
}
.btn-primary:hover { background: var(--mid); }

.btn-outline {
  border: 1.5px solid var(--accent); color: var(--accent);
  padding: 13px 28px; border-radius: 4px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; transition: background 0.15s, color 0.15s; display: inline-block;
}
.btn-outline:hover { background: rgba(212,134,10,0.1); }


/* ── SECTION SHELL ── */
section { padding: 5rem 3rem; }

.section-eyebrow {
  color: var(--accent); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px;
}

section h2 {
  font-size: clamp(24px, 3vw, 32px);
  color: var(--text-dark); margin-bottom: 2.5rem;
}

/* ── SERVICES ── */
.services { background: var(--surface); }

.services-list { display: flex; flex-direction: column; }

.service-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0 2.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.service-row:first-child { border-top: 1px solid var(--border); }

.service-num {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  padding-top: 3px;
}

.service-body h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 6px;
  font-family: 'Fira Sans', system-ui, sans-serif;
}

.service-body p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.service-row .service-link { white-space: nowrap; padding-top: 4px; font-size: 13px; }

.service-link { color: var(--primary); font-size: 14px; font-weight: 500; text-decoration: none; }
.service-link:hover { color: var(--mid); }

/* ── PRODUCTS ── */
.products { background: var(--surface); border-top: 1px solid var(--border); }

.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.product-card {
  background: white; border: 0.5px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s ease-out;
  will-change: transform;
}
.product-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

.product-img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover; display: block; background: var(--pale);
}

.product-info { padding: 1.5rem; }

.product-name {
  font-size: 17px; font-weight: 500; color: var(--text-dark);
  margin-bottom: 8px; font-family: 'Fira Sans', sans-serif;
}

.product-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }

.product-specs {
  font-size: 12px; color: var(--text-mid);
  border-top: 1px solid var(--border); padding-top: 10px;
}

/* ── ABOUT ── */
.about { background: white; border-top: 1px solid var(--border); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.about h2 { margin-bottom: 1rem; }

.about-body { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 2rem; }

.certs { display: flex; gap: 2rem; }

.cert-item .cert-title { color: var(--primary); font-size: 18px; font-weight: 500; }
.cert-item .cert-label { color: var(--text-faint); font-size: 11px; margin-top: 2px; }

.quote-card { background: var(--pale); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }

.quote-author { display: flex; align-items: center; gap: 14px; margin-bottom: 1.5rem; }

.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 500; font-size: 15px; flex-shrink: 0;
}

.author-name { font-size: 14px; font-weight: 500; color: var(--text-dark); }
.author-title { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

blockquote {
  font-family: 'Barlow Condensed', system-ui, sans-serif;
  font-style: italic; font-size: 15px; color: var(--text-mid); line-height: 1.75;
}

/* ── PROJECTS ── */
.projects { background: var(--night); }
.projects .section-eyebrow { color: var(--accent); }
.projects h2 { color: white; }

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.project-card {
  background: var(--deep); border-radius: 8px;
  overflow: hidden; transition: transform 0.2s;
}
.project-card:hover { transform: translateY(-3px); }

.project-thumb {
  height: 120px; background: #0D0D14;
  display: flex; align-items: center; justify-content: center;
}

.project-info { padding: 16px 18px; }
.project-title { font-size: 14px; font-weight: 500; color: white; margin-bottom: 5px; }
.project-meta { font-size: 12px; color: #9A9AB0; }


/* ── FOOTER ── */
footer { background: #0F0F18; padding: 2.5rem 3rem; }

.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
  border-bottom: 1px solid #28282F; padding-bottom: 2rem; margin-bottom: 2rem;
}

.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo span { color: #7A7A8A; font-family: 'Barlow Condensed', system-ui, sans-serif; font-size: 15px; }

.footer-nav { display: flex; gap: 24px; list-style: none; }
.footer-nav a { color: #B8B8CC; text-decoration: none; font-size: 13px; transition: color 0.15s; }
.footer-nav a:hover { color: white; }

.footer-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.footer-col h4 {
  color: #8A8A9E; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px; font-family: 'Fira Sans', sans-serif;
}

.footer-col p, .footer-col a {
  color: #7A7A8A; font-size: 13px; line-height: 1.8; text-decoration: none;
}
.footer-col a:hover { color: #8FAFC8; }

.footer-bottom { color: #7A7A8A; font-size: 12px; text-align: center; }
.photo-credits { margin-top: 4px; }
.photo-credits a { color: #6A6A7A; text-decoration: none; }
.photo-credits a:hover { color: #9A9AB0; }

/* ── RESPONSIVE ── */
/* ── CONTACT SECTION ── */
.contact-section { background: var(--pale); border-top: 1px solid var(--border); padding: 5rem 3rem; }

.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}

.contact-text .section-eyebrow { margin-bottom: 10px; }
.contact-text h2 { margin-bottom: 1.5rem; }

.contact-direct {
  display: flex; flex-direction: column; gap: 12px; margin-top: 2rem;
}

.contact-phone {
  color: var(--text-mid); font-size: 15px; text-decoration: none;
  font-weight: 500; transition: color 0.15s;
}
.contact-phone:hover { color: var(--primary); }

.contact-form-wrap {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 2rem;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-label {
  font-size: 13px; font-weight: 500; color: var(--text-dark);
  letter-spacing: 0.01em;
}

.contact-form input,
.contact-form textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 14px; font-family: inherit; color: var(--text-dark);
  background: var(--surface); transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--primary);
  background: white;
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-color: #C44444;
}
.contact-form textarea { resize: vertical; }

.contact-form .btn-primary { align-self: flex-start; }

.form-sent {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 12px; padding: 1rem 0;
}
.form-sent h3 { font-size: 20px; color: var(--text-dark); }
.form-sent p { font-size: 14px; color: var(--text-muted); }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: #B8B8CC; border-radius: 2px; transition: transform 0.2s, opacity 0.2s;
}
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  nav { padding: 0 1.5rem; }
  .nav-links { gap: 16px; }
  section { padding: 3.5rem 1.5rem; }
  .hero { padding: 4rem 1.5rem; }
  .contact-section { padding: 3.5rem 1.5rem; }
  .projects-grid, .products-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-contact { grid-template-columns: 1fr 1fr; }
  .service-row { grid-template-columns: 2.5rem 1fr; }
  .service-row .service-link { grid-column: 2; }
}

@media (max-width: 580px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--night); flex-direction: column; padding: 1rem 1.5rem 1.5rem;
    gap: 0; border-top: 1px solid #28282F; z-index: 99;
  }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid #28282F; }
  .nav-links li:last-child { border-bottom: none; }
  nav.nav-open .nav-links { display: flex; }
  nav { position: relative; }
  .projects-grid, .products-grid { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .contact-inner { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 8px 0; }
  .service-num { font-size: 20px; }
  .service-row .service-link { display: none; }
}
