/* =========================================================
   Michael Neumann IT-Services — Stylesheet
   ========================================================= */

@import url('../assets/fonts/fonts.css');

:root {
  --ink: #13161a;
  --ink-soft: #1b2028;
  --petrol: #006c71;
  --petrol-light: #00888f;
  --cyan: #1fd0d6;
  --graphite: #51565b;
  --mist: #f6f9fb;
  --line: #e4e7ea;
  --white: #ffffff;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-w: 1180px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow-soft: 0 4px 24px rgba(19, 22, 26, 0.06);
  --shadow-card: 0 8px 30px rgba(19, 22, 26, 0.08);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

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

.section {
  padding: 108px 0;
}

@media (max-width: 720px) {
  .section { padding: 72px 0; }
}

.section--tight { padding: 72px 0; }

.section--dark {
  background: var(--ink);
  color: var(--mist);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.hero h1 { color: var(--mist); }

.section--mist { background: var(--mist); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 16px;
}

.section--dark .eyebrow { color: var(--cyan); }

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  flex-shrink: 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--graphite);
  font-size: 17px;
}

.section--dark .section-head p { color: #a7adb3; }

.section-head.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* -----------------------------
   Buttons
   ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--petrol);
  color: var(--white);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08) inset, 0 10px 24px -8px rgba(0, 108, 113, 0.55);
}

.btn--primary:hover {
  background: var(--petrol-light);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(0, 108, 113, 0.6);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(246, 249, 251, 0.28);
  color: var(--mist);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--petrol);
  color: var(--petrol);
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 14px; }

/* -----------------------------
   Header
   ----------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: padding 0.35s var(--ease), background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header.is-scrolled,
.site-header--solid {
  padding: 14px 0;
  background: rgba(19, 22, 26, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 12px 30px -18px rgba(0,0,0,0.6);
}

.brand {
  display: flex;
  align-items: center;
}

.brand img { height: 80px; width: auto; margin-top: 10px; }

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

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mist);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

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

.nav-links a:hover { color: var(--cyan); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--mist);
  transition: all 0.3s var(--ease);
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 78vw);
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
    z-index: 90;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { color: var(--mist); font-size: 20px; }
  .nav-links a::after { background: var(--cyan); }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .brand img { height: 60px; margin-top: 0; }
}

/* -----------------------------
   Hero
   ----------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--mist);
  overflow: hidden;
  padding: 200px 0 140px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(31, 208, 214, 0.22), transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content { max-width: 720px; }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan);
}

.hero p.lead {
  font-size: 18.5px;
  color: #b7bcc2;
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.hero__badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #9aa0a7;
  letter-spacing: 0.02em;
}

.hero__badge svg { width: 15px; height: 15px; color: var(--cyan); flex-shrink: 0; }

/* -----------------------------
   Stats
   ----------------------------- */

.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.stat { text-align: left; border-left: 2px solid var(--line); padding-left: 20px; }

.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  color: var(--petrol);
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.stat__label {
  font-size: 13.5px;
  color: var(--graphite);
  margin-top: 6px;
}

@media (max-width: 880px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .stats .container { grid-template-columns: 1fr; gap: 28px; }
}

/* -----------------------------
   Services
   ----------------------------- */

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

@media (max-width: 980px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(0, 108, 113, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: rgba(0, 108, 113, 0.25);
}

.card:hover::before { opacity: 1; }

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(0, 108, 113, 0.08);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
}

.card__icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  position: relative;
}

.card p {
  font-size: 14.5px;
  color: var(--graphite);
  position: relative;
}

/* -----------------------------
   Process
   ----------------------------- */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}

@media (max-width: 880px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

.process__step {
  position: relative;
  padding-top: 8px;
}

.process__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--petrol);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  display: block;
}

.process__step h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.process__step p {
  font-size: 14px;
  color: var(--graphite);
}

.process__step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 6px;
  right: -14px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  transform: rotate(45deg);
  display: none;
}

@media (min-width: 881px) {
  .process__step:not(:last-child)::after { display: block; }
}

/* -----------------------------
   Qualifications (dark)
   ----------------------------- */

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

@media (max-width: 980px) {
  .quals-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .quals-grid { grid-template-columns: 1fr; }
}

.qual-card {
  background: rgba(246, 249, 251, 0.035);
  border: 1px solid rgba(246, 249, 251, 0.12);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.qual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 208, 214, 0.4);
  background: rgba(31, 208, 214, 0.05);
}

.qual-card__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.qual-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(31, 208, 214, 0.12);
  color: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.qual-card__icon svg { width: 19px; height: 19px; }

.qual-card h3 {
  font-size: 15.5px;
  color: var(--mist);
  line-height: 1.35;
}

.qual-card__issuer {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: #7d8790;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.qual-card p.desc {
  font-size: 13.5px;
  color: #a7adb3;
}

/* -----------------------------
   Partners
   ----------------------------- */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

@media (max-width: 880px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}

.partner-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 108px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  filter: grayscale(1);
  opacity: 0.65;
  transition: all 0.35s var(--ease);
}

.partner-tile:hover {
  filter: grayscale(0);
  opacity: 1;
  border-color: rgba(0, 108, 113, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.partner-tile img { max-height: 32px; width: auto; }

.partners-note {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--graphite);
}

/* -----------------------------
   Contact
   ----------------------------- */

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

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 108, 113, 0.08);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg { width: 20px; height: 20px; }

.contact-info__item h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.contact-info__item a,
.contact-info__item p {
  font-size: 14.5px;
  color: var(--graphite);
}

.contact-info__item a:hover { color: var(--petrol); }

.form-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14.5px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field textarea { resize: vertical; min-height: 110px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(0, 108, 113, 0.12);
}

.form-note {
  font-size: 12.5px;
  color: var(--graphite);
  margin-top: 14px;
}

.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
}

.form-status.is-visible { display: block; }
.form-status { display: none; }

/* -----------------------------
   CTA band
   ----------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--mist);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(31, 208, 214, 0.18), transparent 70%);
}

.cta-band h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  color: var(--white);
  max-width: 480px;
  position: relative;
}

.cta-band .btn { position: relative; }

/* -----------------------------
   Footer
   ----------------------------- */

.site-footer {
  background: var(--ink);
  color: #9aa0a7;
  padding: 72px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(246, 249, 251, 0.1);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

.footer-brand img { height: 80px; margin-bottom: 18px; }

.footer-brand p {
  font-size: 14px;
  max-width: 320px;
  color: #7d8790;
}

.footer-col h4 {
  font-size: 13px;
  color: var(--mist);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul li { margin-bottom: 12px; }

.footer-col a {
  font-size: 14px;
  color: #9aa0a7;
  transition: color 0.25s var(--ease);
}

.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6b7178;
}

.footer-bottom a:hover { color: var(--cyan); }

/* -----------------------------
   Reveal-on-scroll
   ----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > * {
  transition-delay: calc(var(--i, 0) * 90ms);
}

/* -----------------------------
   Legal pages
   ----------------------------- */

.legal {
  padding: 168px 0 100px;
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 32px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal p, .legal li {
  font-size: 15px;
  color: var(--graphite);
  margin-bottom: 14px;
}

.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--petrol); text-decoration: underline; text-underline-offset: 2px; }

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 14px;
}

.legal table td, .legal table th {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--petrol);
}
