/* ==========================================================================
   SIILTEC GmbH — Bold Modern theme
   Palette: navy #1F3A66 · blue #27457E · steel #6E8BC0 · near-black #0C1626
   ========================================================================== */

:root {
  --navy: #1F3A66;
  --blue: #27457E;
  --steel: #6E8BC0;
  --ink: #0C1626;
  --white: #FFFFFF;
  --offwhite: #F5F7FA;
  --slate: #3A4658;

  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(12, 22, 38, 0.35);
  --shadow-sm: 0 8px 20px -12px rgba(12, 22, 38, 0.3);

  --font-head: 'Space Grotesk', 'Segoe UI', system-ui, Arial, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--slate);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

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

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: var(--radius-sm); z-index: 1000; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--offwhite); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* On light sections, primary button should be navy-filled */
.section .btn-primary,
.contact-form .btn-primary {
  background: var(--navy); color: #fff;
}
.section .btn-primary:hover,
.contact-form .btn-primary:hover { background: var(--blue); }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(31,58,102,.1);
}
.header-inner {
  display: flex; align-items: center; gap: 16px;
  height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.main-nav a {
  font-family: var(--font-head); font-weight: 500; color: var(--navy);
  font-size: 1rem; padding: 6px 2px; position: relative;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--steel); transition: width .2s ease;
}
.main-nav a:hover { text-decoration: none; }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 600; color: var(--slate);
}
.lang-btn {
  background: none; border: none; cursor: pointer; padding: 4px 6px;
  font: inherit; color: var(--slate); border-radius: 6px;
}
.lang-btn.is-active { color: var(--navy); background: var(--offwhite); }
.lang-btn:hover { color: var(--navy); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle-bar { height: 2px; width: 24px; background: var(--navy); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 45%, var(--ink) 100%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(110,139,192,.35), transparent 45%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: clamp(72px, 12vw, 140px) 24px clamp(80px, 12vw, 150px);
  max-width: 880px;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .8rem;
  font-family: var(--font-head); font-weight: 600; color: var(--steel);
  margin: 0 0 18px;
}
.hero-title {
  color: #fff; font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 700;
  margin: 0 0 20px; letter-spacing: -0.02em;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 640px;
  color: rgba(255,255,255,.88); margin: 0 0 34px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--offwhite); }
.section-dark { background: var(--ink); }
.section-dark .section-title,
.section-dark .section-kicker,
.section-dark .subsection-title { color: #fff; }
.section-dark .section-lead { color: rgba(255,255,255,.78); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: .16em;
  font-size: .78rem; font-weight: 600; font-family: var(--font-head);
  color: var(--steel); margin-bottom: 12px;
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-lead { font-size: 1.1rem; color: var(--slate); margin: 12px 0 0; }
.subsection-title { font-size: 1.3rem; margin-bottom: 18px; }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start;
}
.about-copy p { font-size: 1.08rem; margin: 0 0 18px; }
.facts {
  background: var(--white); border: 1px solid rgba(31,58,102,.12);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.facts-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts-list li { display: grid; gap: 2px; }
.fact-label { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--steel); font-weight: 600; }
.fact-value { font-family: var(--font-head); color: var(--navy); font-weight: 600; }

.leadership { margin-top: 56px; }
.people-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.person-card {
  background: var(--offwhite); border: 1px solid rgba(31,58,102,.1);
  border-radius: var(--radius); padding: 26px; text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.person-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.person-monogram {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 14px;
  display: grid; place-items: center; color: #fff; font-family: var(--font-head);
  font-weight: 700; font-size: 1.2rem;
  background: linear-gradient(135deg, var(--blue), var(--navy));
}
.person-name { font-size: 1.15rem; margin: 0 0 4px; }
.person-role { font-size: .95rem; margin: 0; color: var(--slate); }

/* ---------- Services ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 32px 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: var(--steel); background: rgba(255,255,255,.07); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--steel), var(--blue));
}
.service-name { color: #fff; font-size: 1.25rem; margin-bottom: 10px; }
.service-desc { color: rgba(255,255,255,.78); margin: 0; }

/* ---------- Partners ---------- */
.partner-group { margin-bottom: 44px; }
.partner-group:last-child { margin-bottom: 0; }
.partner-group-title {
  font-size: 1.25rem; margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 2px solid rgba(31,58,102,.12);
}
.partner-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.partner-tile {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 92px; padding: 18px; text-align: center;
  background: var(--white); border: 1px solid rgba(31,58,102,.14);
  border-radius: var(--radius); color: var(--navy);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.partner-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--steel); text-decoration: none; }
.partner-logo { max-height: 48px; width: auto; }
.partner-name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--navy); }
.partner-tile--static { background: var(--offwhite); cursor: default; }
.partner-tile--static:hover { transform: none; box-shadow: none; border-color: rgba(31,58,102,.14); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-address { font-style: normal; font-size: 1.05rem; margin: 0 0 28px; color: var(--slate); }
.contact-people { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.contact-people li { display: flex; flex-direction: column; }
.contact-person { font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.contact-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.contact-map iframe { display: block; }

.contact-form-wrap {
  background: var(--white); border: 1px solid rgba(31,58,102,.12);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; display: grid; gap: 6px; }
.field label { font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.field input, .field textarea {
  font: inherit; color: var(--slate); padding: 12px 14px;
  border: 1px solid rgba(31,58,102,.25); border-radius: var(--radius-sm);
  background: var(--white); width: 100%; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(110,139,192,.3);
}
.field textarea { resize: vertical; }
.field-error { display: none; color: #b3261e; font-size: .85rem; }
.field.has-error input, .field.has-error textarea { border-color: #b3261e; }
.field.has-error .field-error { display: block; }
.hp-field { position: absolute; left: -9999px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; align-items: flex-start; }
.footer-brand img { height: 32px; width: auto; margin-bottom: 12px; }
.footer-tagline { max-width: 320px; margin: 0; color: rgba(255,255,255,.7); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { color: rgba(255,255,255,.85); font-family: var(--font-head); font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12);
  font-size: .88rem; color: rgba(255,255,255,.6);
}
.footer-bottom p { margin: 0; }

/* ==========================================================================
   SCROLL-REVEAL ANIMATIONS
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: var(--white); border-bottom: 1px solid rgba(31,58,102,.12);
    box-shadow: var(--shadow); transform: translateY(-12px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
    margin: 0;
  }
  .main-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 16px; }
  .main-nav li { border-bottom: 1px solid rgba(31,58,102,.08); }
  .main-nav a { display: block; padding: 14px 0; }
  .main-nav a::after { display: none; }
}

@media (max-width: 480px) {
  .partner-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .hero-cta .btn { width: 100%; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
