/* Dynalink Solutions — site styles */

/* Self-hosted Nunito (no Google Fonts request; GDPR-safe) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/nunito-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/nunito-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/nunito-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/nunito-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/nunito-latin-900-normal.woff2') format('woff2');
}

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

:root {
  --navy:   #1B2B6B;
  --blue:   #00AEEF;
  --gray:   #5A6472;
  --light:  #F4F7FB;
  --white:  #ffffff;
  --radius: 10px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', 'Segoe UI', system-ui, sans-serif;
  color: #222;
  line-height: 1.6;
}

/* ── LANG SWITCHER ── */
.lang-bar {
  background: var(--navy);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 5%;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: 1.5px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.65);
  font-family: inherit;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all .2s;
}

.lang-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.lang-btn:not(.active):hover {
  border-color: rgba(255,255,255,.7);
  color: var(--white);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 110px;
}

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

/* ── LOGO SVGs ── */
.logo-icon svg,
.logo-full svg { display: block; }

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

nav ul a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
  transition: color .2s;
}

nav ul a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  transition: background .2s, transform .15s !important;
}

.nav-cta:hover { background: #0098d4 !important; transform: translateY(-1px); color: var(--white) !important; }

/* ── HERO ── */
#hero {
  background: linear-gradient(135deg, var(--navy) 0%, #253d9e 60%, #1a6f9e 100%);
  color: var(--white);
  padding: 110px 5% 90px;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  right: -120px; top: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(0, 174, 239, .12);
}

#hero::after {
  content: '';
  position: absolute;
  right: 100px; bottom: -160px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: rgba(0, 174, 239, .08);
}

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

.hero-tag {
  display: inline-block;
  background: rgba(0,174,239,.2);
  color: var(--blue);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 22px;
  border: 1px solid rgba(0,174,239,.35);
}

#hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 22px;
}

#hero h1 span { color: var(--blue); }

.hero-logo {
  margin-bottom: 36px;
  opacity: .18;
}

#hero p {
  font-size: 1.1rem;
  opacity: .85;
  max-width: 580px;
  margin-bottom: 38px;
}

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

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-outline  { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: var(--white); }

/* ── SECTIONS ── */
section { padding: 90px 5%; }

.section-label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-lead {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 56px;
}

/* ── ABOUT ── */
#about { background: var(--white); }

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

.about-visual {
  background: linear-gradient(135deg, var(--navy) 0%, #1a6f9e 100%);
  border-radius: 20px;
  padding: 50px 40px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat { text-align: center; }
.stat-num { font-size: 2.8rem; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-label { font-size: .85rem; opacity: .75; margin-top: 4px; font-weight: 600; }
.stat-divider { height: 1px; background: rgba(255,255,255,.15); }

.about-text p { color: var(--gray); margin-bottom: 16px; }

.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill {
  background: var(--light);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid #dde5f0;
}

/* ── SERVICES ── */
#services { background: var(--light); }

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

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
  border: 1px solid #e2e8f4;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.service-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(27,43,107,.1); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.service-card h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 10px; font-weight: 800; }
.service-card p  { font-size: .9rem; color: var(--gray); }

/* ── CONTACT ── */
#contact { background: var(--white); }

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

.contact-info h3 { color: var(--navy); font-size: 1.1rem; margin-bottom: 20px; font-weight: 800; }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item p { font-size: .9rem; color: var(--gray); }
.contact-item strong { color: var(--navy); font-size: .95rem; display: block; margin-bottom: 2px; font-weight: 800; }

form { display: flex; flex-direction: column; gap: 18px; }

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

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

label { font-size: .85rem; font-weight: 700; color: var(--navy); }

input, select, textarea {
  padding: 12px 16px;
  border: 1.5px solid #d8e1f0;
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  color: #222;
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,174,239,.12);
}

textarea { resize: vertical; min-height: 130px; }

.btn-submit {
  background: linear-gradient(90deg, var(--navy), var(--blue));
  color: var(--white);
  border: none;
  padding: 14px 36px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  width: 100%;
  font-family: inherit;
}

.btn-submit:hover { opacity: .9; transform: translateY(-1px); }

.form-note { font-size: .78rem; color: var(--gray); text-align: center; margin-top: 6px; }

.success-msg {
  display: none;
  background: #e6f9ee;
  border: 1px solid #6fcf97;
  color: #1a7a40;
  border-radius: 8px;
  padding: 16px 20px;
  font-weight: 700;
  text-align: center;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  padding: 40px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

footer p { font-size: .85rem; }
footer span { color: var(--blue); font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 800px) {
  nav ul { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-visual { flex-direction: row; flex-wrap: wrap; justify-content: space-around; }
  footer { flex-direction: column; text-align: center; }
}

/* ─────────────────────────────────────────────
   Additions for the two-page (EN / DE) build
   ───────────────────────────────────────────── */

/* Language switcher is now two links, not buttons */
.lang-bar .lang-btn {
  display: inline-block;
  text-decoration: none;
  line-height: 1.2;
}

/* Footer legal links */
.footer-links { font-size: .85rem; }
.footer-links a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.footer-links a:hover { color: var(--white); text-decoration: underline; }

/* Form error message (mirrors .success-msg) */
.error-msg {
  display: none;
  background: #fdecea;
  border: 1px solid #e88b84;
  color: #a8261c;
  border-radius: 8px;
  padding: 16px 20px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* The original mobile rule hid the whole menu, including the contact CTA.
   Stack it instead so the nav still works on a phone. */
@media (max-width: 800px) {
  nav {
    height: auto;
    flex-direction: column;
    gap: 14px;
    padding: 16px 5%;
  }
  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
    font-size: .9rem;
  }
  .nav-logo img { height: 64px; width: auto; }
}

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

/* ─────────────────────────────────────────────
   Anchor offset — the nav is sticky and 110px tall,
   so #about / #services / #contact would otherwise
   land underneath it when you click the menu.
   ───────────────────────────────────────────── */
section[id] { scroll-margin-top: 120px; }

@media (max-width: 800px) {
  section[id] { scroll-margin-top: 150px; }
}

/* Legal pages: keep the same nav height as the rest of the site */
.legal-nav { justify-content: flex-start; }
