/* SBEC Solutions — site stylesheet
   Brand colours sampled from SBEC_Solutions_SafeSecure_Logo */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/outfit-latin.woff2") format("woff2");
}

:root {
  --navy: #323a60;
  --navy-900: #1d2240;
  --navy-800: #262d4f;
  --cyan: #0fb3d7;
  --cyan-50: #e7f7fb;
  --cyan-100: #cdeff7;
  --teal: #156082;
  --ink: #1d2240;
  --text: #3d4566;
  --muted: #6b7391;
  --bg: #ffffff;
  --surface: #f4f7fb;
  --line: #e2e7f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 34, 64, .06), 0 8px 24px rgba(29, 34, 64, .06);
  --shadow-lg: 0 2px 4px rgba(29, 34, 64, .06), 0 20px 48px rgba(29, 34, 64, .12);
  --max: 1180px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 650; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.6vw, 3.6rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(29, 34, 64, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem;
  padding: 8px 14px; border-radius: 999px; transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { margin-left: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--navy); }
.nav a.btn-primary:hover { background: var(--navy-900); }
.lang {
  display: inline-flex; align-items: center; margin-left: 8px;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px; font-size: .85rem; font-weight: 600;
}
.lang a, .lang span { padding: 4px 10px; border-radius: 999px; text-decoration: none; line-height: 1.4; }
.lang span { background: var(--navy); color: #fff; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--navy); background: var(--surface); }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 28px; height: 28px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn svg { width: 18px; height: 18px; transition: transform .15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-900); color: #fff; box-shadow: 0 8px 20px rgba(50, 58, 96, .25); }
.btn-accent { background: var(--cyan); color: var(--navy-900); }
.btn-accent:hover { background: #fff; color: var(--navy-900); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { padding: 10px 18px; font-size: .95rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 104px);
  background:
    radial-gradient(900px 500px at 92% -10%, rgba(15, 179, 215, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(50, 58, 96, .08), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before { flex-shrink: 0; content: ""; width: 11px; height: 20px; background: url("../img/s-mark.png") center / contain no-repeat; }
.hero h1 .accent { color: var(--cyan); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-size: .85rem; font-weight: 600; color: var(--navy);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}

/* Delivery model card */
.model-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.model-card .label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 18px; }
.node { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: var(--radius); }
.node.munich { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%); color: #dfe3f2; }
.node.nearshore { background: var(--cyan-50); color: var(--text); }
.node h3 { font-size: 1.1rem; margin: 0 0 4px; }
.node.munich h3 { color: #fff; }
.node p { margin: 0; font-size: .95rem; line-height: 1.5; }
.node .pin {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
}
.node.munich .pin { background: rgba(255, 255, 255, .12); color: var(--cyan); }
.node.nearshore .pin { background: #fff; color: var(--teal); }
.node .pin svg { width: 22px; height: 22px; }
.link-line { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 38px; color: var(--muted); font-size: .85rem; font-weight: 500; }
.link-line::before { content: ""; width: 2px; height: 34px; background: repeating-linear-gradient(180deg, var(--cyan) 0 5px, transparent 5px 10px); }
.model-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.model-stats strong { display: block; color: var(--navy); font-size: 1.05rem; font-weight: 650; }
.model-stats span { font-size: .8rem; color: var(--muted); line-height: 1.3; display: block; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { font-size: 1.1rem; color: var(--muted); }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--cyan-50); color: var(--teal);
  transition: background .2s, color .2s;
}
.card:hover .icon { background: var(--navy); color: var(--cyan); }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .98rem; color: var(--text); }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card .tags span { font-size: .75rem; font-weight: 600; color: var(--teal); background: var(--surface); border-radius: 6px; padding: 3px 8px; }

/* Teams */
.teams { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.team {
  border-radius: 24px; padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden;
}
.team.munich { background: var(--navy); color: #d5daeb; }
.team.munich h3, .team.munich h2 { color: #fff; }
.team.nearshore { background: #fff; border: 1px solid var(--line); }
.team .place { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.team.munich .place { color: var(--cyan); }
.team.nearshore .place { color: var(--teal); }
.team .place svg { width: 18px; height: 18px; }
.team h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); margin-bottom: 16px; }
.team p:last-of-type { margin-bottom: 0; }
.team ul.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.team ul.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.team ul.checks svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--cyan); }
.team.nearshore ul.checks svg { color: var(--teal); }
.team::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%;
  border: 28px solid rgba(15, 179, 215, .12); pointer-events: none;
}

/* Industries */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.industry {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 18px; font-weight: 600; color: var(--navy);
}
.industry svg { width: 26px; height: 26px; color: var(--cyan); flex-shrink: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--navy), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .98rem; }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 28px;
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy) 55%, var(--teal) 100%);
  color: #d5daeb; padding: clamp(36px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { margin: 0; font-size: 1.1rem; max-width: 56ch; }
.cta .eyebrow { color: var(--cyan); }
.cta .eyebrow::before { filter: brightness(0) invert(1); }
.cta::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 179, 215, .35), transparent 70%); pointer-events: none;
}
.cta .btn { position: relative; z-index: 1; }

/* Page header (sub pages) */
.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
  background:
    radial-gradient(800px 400px at 95% -20%, rgba(15, 179, 215, .14), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); margin-bottom: .3em; }
.page-hero p { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0; }

/* About */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.split .big { font-size: clamp(1.15rem, 1rem + .5vw, 1.35rem); color: var(--ink); line-height: 1.55; }
.values { display: grid; gap: 16px; }
.value { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--surface); }
.value .icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.value .icon svg { width: 22px; height: 22px; }
.value h3 { font-size: 1.05rem; margin: 0 0 4px; }
.value p { margin: 0; font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-list .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--cyan-50); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; color: var(--ink); font-weight: 600; }
.contact-list span, .contact-list a { font-size: 1rem; }
.contact-cards .contact-list { grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-cards .contact-list a { overflow-wrap: anywhere; }
.site-footer a.social { display: inline-flex; align-items: center; gap: 8px; }
.site-footer a.social svg { width: 20px; height: 20px; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; color: var(--ink); font-size: .95rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(15, 179, 215, .15); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 20px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.form-note { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--cyan-50); color: var(--teal); font-weight: 500; }
.form-status.show { display: block; }

/* Legal pages */
.legal > * { max-width: 780px; }
.legal h2 { font-size: 1.4rem; margin-top: 2.2em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.1rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
.todo { background: #fff4cc; color: #6b4e00; border-radius: 4px; padding: 0 4px; font-weight: 600; }
.note { padding: 14px 18px; border-left: 4px solid var(--cyan); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #aab1cc; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; margin-bottom: 16px; }
.footer-brand p { max-width: 34ch; margin: 0; }
.site-footer h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #d5daeb; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-locations { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-locations ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px; }
.footer-locations li { display: flex; gap: 12px; align-items: flex-start; }
.footer-locations li svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--cyan); }
.footer-locations strong { display: block; color: #fff; font-weight: 600; }
.footer-locations span { display: block; font-size: .9rem; line-height: 1.5; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom .bar { display: inline-block; width: 10px; height: 18px; background: url("../img/s-mark.png") center / contain no-repeat; filter: brightness(0) invert(1); vertical-align: -4px; margin-right: 8px; opacity: .9; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn, .btn svg { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; padding: 12px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(29, 34, 64, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s;
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 12px; border-radius: 10px; font-size: 1.05rem; }
  .nav .btn { margin: 10px 0 0; }
  .lang { margin: 12px 0 0; align-self: flex-start; }
  .hero-grid, .split, .contact-grid, .teams, .cta { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .cta .btn { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .header-inner { height: 68px; }
  .nav { inset: 68px 0 auto 0; max-height: calc(100vh - 68px); }
  html { scroll-padding-top: 80px; }
  .brand img { height: 34px; }
  .grid-3, .industries, .form-row, .contact-cards .contact-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .model-card { padding: 20px; }
  .card { padding: 24px; }
  .cta { border-radius: 20px; }
}
