/* ============================================================
   DJK Digital — Website stylesheet
   Built from DJK Digital Brand Guidelines, Version 2, 2026
   Colour: Electric Blue #2F80FF -> Violet #7B3FF2 gradient,
   Midnight #0F172A, Slate #64748B, White #FFFFFF.
   Type: Space Grotesk (display), Inter (body).
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/Inter-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --blue: #2F80FF;
  --violet: #7B3FF2;
  --gradient: linear-gradient(90deg, var(--blue) 0%, var(--violet) 100%);
  --navy: #0F172A;
  --slate: #64748B;
  --mist: #F8FAFC;
  --line: #E6EAF0;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --container: 1180px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 16px; color: var(--navy); }
p.lede { font-size: 18px; color: var(--slate); }
small, .caption { font-size: 13px; color: var(--slate); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ---------- Eyebrow + accent rule ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.accent-rule {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient);
  margin: 0 0 24px;
}
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .accent-rule { margin-inline: auto; }

/* ---------- Pill badge (tag) ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--slate);
}
.tag .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(47, 128, 255, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px -8px rgba(47, 128, 255, 0.55); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline-light:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline-navy:hover { border-color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand-logo { display: flex; align-items: center; height: 28px; }
.brand-logo img { height: 100%; width: auto; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  color: var(--slate);
  font-size: 14.5px;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--navy);
  border-color: var(--blue);
}

/* Nav buttons must not inherit the plain nav-link styling above:
   `.main-nav a` (0,2,0) outranks `.btn-primary` (0,1,0). */
.main-nav a.btn {
  padding: 14px 28px;
  border: 1px solid transparent;
}
.main-nav a.btn-primary,
.main-nav a.btn-primary:hover,
.main-nav a.btn-primary[aria-current="page"] {
  color: var(--white);
  border-color: transparent;
}
.main-nav a.btn-outline-navy,
.main-nav a.btn-outline-navy:hover {
  color: var(--navy);
  border-color: var(--line);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .main-nav {
    position: absolute;
    top: 74px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open { max-height: 420px; }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
  }
  .main-nav ul li { border-bottom: 1px solid var(--line); }
  .main-nav a { display: block; padding: 14px 0; border-bottom: 0; color: var(--navy); }
  .main-nav .btn { margin: 12px 24px 20px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 88px;
  text-align: center;
}
.hero .tag { margin-bottom: 26px; }
.hero h1 { max-width: 15ch; margin-inline: auto; }
.hero .lede { max-width: 560px; margin: 0 auto 32px; text-align: center; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 72px 0 64px;
}
.page-hero .eyebrow { color: #8fb6ff; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 640px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-alt { background: var(--mist); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid.cols-4 { grid-template-columns: 1fr; } }

.attr-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 32px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.attr-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,23,42,0.08); border-color: #D8DFEA; }
.attr-card .icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  margin-bottom: 20px;
}
.attr-card h3 { margin-bottom: 8px; font-size: 19px; }
.attr-card p { color: var(--slate); margin: 0; font-size: 15px; }

.value-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 28px 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(15,23,42,0.08); }
.value-card .num { color: var(--blue); font-weight: 600; font-size: 13px; letter-spacing: 0.08em; }
.value-card h3 { margin: 6px 0 8px; font-size: 18px; }
.value-card p { color: var(--slate); margin: 0; font-size: 15px; }

/* ---------- Trait pills (home teaser) ---------- */
.trait-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.trait-pill {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  background: var(--mist);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
.center-link { text-align: center; margin: 24px 0 0; }
.link-arrow {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  transition: color 0.15s ease;
}
.link-arrow:hover { color: var(--violet); }

/* ---------- Personality table (We are / We aren't) ---------- */
.personality-table { margin-top: 40px; border-top: 1px solid var(--line); }
.personality-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.personality-row.head {
  padding-top: 0;
  padding-bottom: 12px;
}
.personality-row.head span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.personality-row .are { font-weight: 600; color: var(--navy); font-size: 16px; }
.personality-row .arent { color: #B8C0CC; text-decoration: line-through; font-size: 16px; }
@media (max-width: 560px) {
  .personality-row { gap: 12px; }
  .personality-row .are, .personality-row .arent { font-size: 14.5px; }
}

/* ---------- Vision quote ---------- */
.quote-block {
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-top: 8px;
}
.quote-block p.quote {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
  max-width: 760px;
}

/* ---------- Split content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Media ---------- */
.split-media { margin: 0; }
.split-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}
.split-media figcaption {
  font-size: 13px;
  color: var(--slate);
  margin-top: 12px;
}
@media (max-width: 860px) { .split-media { order: -1; } }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-lg);
  padding: 72px 40px;
  text-align: center;
  margin: 0 24px 88px;
}
@media (max-width: 860px) { .cta-band { margin: 0 16px 64px; padding: 56px 24px; } }
.cta-band .accent-rule { margin-inline: auto; }
.cta-band .eyebrow { color: #8fb6ff; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.68); max-width: 480px; margin: 0 auto 28px; }

/* ---------- Contact ---------- */
.contact-card {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  color: var(--navy);
  margin: 12px 0 20px;
  word-break: break-word;
}
.contact-email:hover { color: var(--blue); }

/* ---------- Legal content ---------- */
.legal-content h2 { margin-top: 48px; font-size: 22px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 17px; margin-top: 28px; }
.legal-content p, .legal-content li { color: var(--slate); }
.legal-content strong { color: var(--navy); }
.legal-content ul { margin: 0 0 16px; padding-left: 20px; list-style: disc; }
.legal-content li { margin-bottom: 8px; }
.legal-content .updated { color: var(--slate); font-size: 14px; margin-bottom: 40px; }
.legal-content mark {
  background: #FEF3C7;
  color: var(--navy);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 500;
}
.legal-content .placeholder-note {
  background: var(--mist);
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px;
  margin-bottom: 40px;
  font-size: 14px;
  color: var(--navy);
}
.legal-content .placeholder-note p { margin: 0; color: var(--navy); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 64px 0 0;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .brand-logo { margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 14px; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.6); font-size: 14px; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--white); }
.footer-legal {
  color: rgba(255,255,255,0.45);
  font-size: 12.5px;
  line-height: 1.7;
  margin: 0;
  padding: 24px 0 0;
  max-width: 780px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 0 28px;
  font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }
.footer-bar { height: 6px; background: var(--gradient); }

/* ---------- 404 ---------- */
.not-found {
  text-align: center;
  padding: 120px 0;
}
.not-found .code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 7rem);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}
