/* ═══════════════════════════════════════════════════
   Keyloop Support Tools — Shared Stylesheet
   Used by: /index_new.html, /DK/, /NO/, /SV/
   © 2026 Keyloop Denmark ApS
═══════════════════════════════════════════════════ */

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

/* ── Brand tokens ── */
:root {
  --navy:       #3C576B;
  --navy-dk:    #2a3e4f;
  --navy-lt:    #4d6d84;
  --blue:       #76AFDC;
  --blue-dk:    #5595c8;
  --blue-lt:    #a8cde8;
  --blue-pale:  #eaf4fb;
  --white:      #ffffff;
  --off:        #f4f6f9;
  --border:     #dce2e9;
  --text:       #1c2b36;
  --text-2:     #4a5f6e;
  --text-3:     #8099a8;
}

/* ── Base ── */
html {
  height: 100%;
}

body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  background: var(--off);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════
   NAV — shared by all pages
   Root page:    logo + "Support Tools" label + cta
   Country pages: back button + country name + cta
══════════════════════════════════════════════════ */
.nav {
  background: var(--navy);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.22);
  flex-shrink: 0;
}

/* Root nav: logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.nav-logo img {
  height: 26px;
  filter: brightness(0) invert(1);
}

.nav-logo-fallback {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
  display: none;
}

.nav-pipe {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.22);
  margin: 0 2px;
}

.nav-sub {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.52);
}

/* Country pages: back button */
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.18);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav-back:hover { background: rgba(255,255,255,.1); color: #fff; }

.nav-country {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Shared nav elements */
.nav-gap { flex: 1; }

/* nav-ext removed — redundant with footer link */

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 7px 18px;
  border-radius: 6px;
  transition: background .15s, transform .12s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--blue-dk); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════
   HERO — shared gradient, two variants:
   .hero-root   (root page — taller, centered text)
   .hero-country (country pages — shorter, flag+text row)
══════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--navy-dk) 0%, var(--navy) 55%, var(--navy-lt) 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative glow orbs */
.hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,175,220,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  left: 30%; bottom: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(118,175,220,.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Root variant */
.hero-root { padding: 64px 0 72px; }
.hero-root .hero-inner { max-width: 1100px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 18px;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}

.hero-root h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.hero-root .hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 500px;
}

/* Country variant */
.hero-country { padding: 40px 0 48px; }

.hero-country .hero-inner {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero-badge {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue-dk);
  background: rgba(118,175,220,.18);
  border: 1px solid rgba(118,175,220,.4);
  border-radius: 7px;
  padding: 7px 13px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 4px;
}

.hero-country .hero-locale {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-lt);
  margin-bottom: 8px;
}

.hero-country h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.3px;
  line-height: 1.2;
  margin-bottom: 5px;
}

.hero-country .hero-sub {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,.6);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════
   ROOT PAGE — country selection grid
══════════════════════════════════════════════════ */
.section-wrap {
  width: 100%;
  padding: 48px 60px 0;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

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

.country-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px 24px;
  text-decoration: none;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
  overflow: hidden;
}

.country-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.country-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(60,87,107,.16);
  border-color: var(--blue-lt);
}

.country-card:hover::after { transform: scaleX(1); }

.country-flag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--blue-dk);
  background: var(--blue-pale);
  border: 1px solid #c3ddf3;
  border-radius: 6px;
  padding: 5px 10px;
  display: inline-block;
  margin-bottom: 16px;
  align-self: flex-start;
}

.country-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.country-locale {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  font-weight: 300;
}

.country-arrow {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue-dk);
  transition: gap .18s;
}

.country-card:hover .country-arrow { gap: 9px; }

/* ══════════════════════════════════════════════════
   SUPPORT BANNER — root page
══════════════════════════════════════════════════ */
.banner-wrap {
  width: 100%;
  margin-top: 28px;
  padding: 0 60px;
}

.banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--blue-pale);
  border: 1px solid #c3ddf3;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 16px 22px;
}

.banner-icon {
  width: 36px;
  height: 36px;
  background: rgba(118,175,220,.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-dk);
}

.banner-text { flex: 1; }

.banner-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2px;
}

.banner-desc { font-size: 13px; color: var(--text-2); }

.banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, transform .12s;
}
.banner-btn:hover { background: var(--navy-dk); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════
   COUNTRY PAGE CONTENT
══════════════════════════════════════════════════ */
.content {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 60px 56px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Info alert */
.alert {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--blue-pale);
  border: 1px solid #c3ddf3;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  padding: 15px 20px;
}

.alert-icon { color: var(--blue-dk); flex-shrink: 0; }

.alert-text { font-size: 13.5px; color: var(--text); }

.alert-text a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.alert-text a:hover { color: var(--blue-dk); }

/* Sections */
.section {}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.section-title svg { color: var(--blue-dk); }

/* Link cards grid */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: background .13s, border-color .13s, transform .13s, box-shadow .13s;
}

.link-card:hover {
  background: var(--blue-pale);
  border-color: var(--blue-lt);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(60,87,107,.1);
  color: var(--navy);
}

.link-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue-dk);
  transition: background .13s;
}
.link-card:hover .link-card-icon { background: rgba(118,175,220,.18); }

.link-card-label { flex: 1; font-weight: 500; }

.link-card-ext {
  font-size: 13px;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   FOOTER — shared
══════════════════════════════════════════════════ */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy { font-size: 13px; color: var(--text-3); }

/* ══════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero        { animation: fadeUp .35s ease both; }
.section-wrap { animation: fadeUp .35s .12s ease both; }
.banner-wrap  { animation: fadeUp .35s .2s ease both; }
.alert        { animation: fadeUp .35s .06s ease both; }

.section:nth-child(1) { animation: fadeUp .3s .10s ease both; }
.section:nth-child(2) { animation: fadeUp .3s .15s ease both; }
.section:nth-child(3) { animation: fadeUp .3s .20s ease both; }
.section:nth-child(4) { animation: fadeUp .3s .25s ease both; }
.section:nth-child(5) { animation: fadeUp .3s .30s ease both; }
.section:nth-child(6) { animation: fadeUp .3s .35s ease both; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .nav { padding: 0 18px; }
  .hero-root  { padding: 44px 0 52px; }
  .hero-country { padding: 28px 0 36px; }
  .hero-inner { padding: 0 20px; }
  .hero-country .hero-inner { flex-direction: column; gap: 14px; }
  .section-wrap { padding: 32px 20px 0; }
  .banner-wrap  { padding: 0 20px; }
  .banner { flex-wrap: wrap; }
  .country-grid { grid-template-columns: 1fr; gap: 12px; }
  .content { padding: 24px 18px 44px; gap: 24px; }
  .link-grid { grid-template-columns: 1fr; }
  footer { padding: 18px 20px; }
}

@media (min-width: 681px) and (max-width: 960px) {
  .section-wrap { padding-left: 32px; padding-right: 32px; }
  .banner-wrap  { padding-left: 32px; padding-right: 32px; }
  .content { padding-left: 32px; padding-right: 32px; }
}