/* Business Clarity AB — Shared Styles */

:root {
  --navy:      #0d1f3c;
  --navy-mid:  #1a3558;
  --teal:      #0e6e8a;
  --teal-light:#1890ad;
  --teal-bg:   #e8f4f8;
  --text:      #1a202c;
  --text-mid:  #4a5568;
  --text-light:#718096;
  --bg:        #ffffff;
  --bg-alt:    #f7fafc;
  --border:    #e2e8f0;
  --max-w:     860px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ─── Language toggle ─── */
html[lang="en"] .sv { display: none !important; }
html[lang="sv"] .en { display: none !important; }

/* ─── Navigation ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.nav-brand {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.lang-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 11px;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.lang-btn:hover { background: rgba(255,255,255,0.22); }

/* ─── Hero ─── */
.hero {
  background: var(--navy);
  background-image: linear-gradient(135deg, #0d1f3c 0%, #1a3a5c 100%);
  color: #fff;
  padding: 90px 2rem 100px;
  text-align: center;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero p.hero-tagline {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.02em;
  margin: -0.25rem auto 1.5rem;
  max-width: 620px;
}

.hero p.hero-clarity {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  margin-bottom: 2.5rem;
  margin-top: -0.5rem;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.8rem 2.1rem;
  border-radius: 4px;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { background: var(--teal-light); }

/* ─── Sections ─── */
section { padding: 72px 2rem; }
section.alt { background: var(--bg-alt); }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text);
}

p {
  color: var(--text-mid);
  margin-bottom: 1rem;
}
p:last-child { margin-bottom: 0; }

/* ─── Competence list ─── */
.competences {
  margin: 1.75rem 0;
  display: grid;
  gap: 1.5rem;
}

.competence-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.competence-badge {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: var(--teal-bg);
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-top: 2px;
}

.competence-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.competence-text span {
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ─── Reference cards ─── */
.references {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (max-width: 580px) {
  .references { grid-template-columns: 1fr; }
}

.ref-card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
}

.ref-org {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem !important;
}

.ref-year {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-bottom: 0.65rem !important;
}

.ref-card p:last-child {
  font-size: 0.875rem;
  line-height: 1.55;
}

/* ─── Value quote ─── */
.value-quote {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--text);
  font-weight: 400;
  border-left: 3px solid var(--teal);
  padding-left: 1.5rem;
  margin-top: 1rem;
}

/* ─── CTA / Contact section ─── */
.cta-section {
  background: var(--navy);
  background-image: linear-gradient(135deg, #0d1f3c 0%, #1a3a5c 100%);
}

.cta-section .section-label { color: var(--teal-light); }
.cta-section h2             { color: #fff; }
.cta-section p              { color: rgba(255,255,255,0.72); }

.contact-block {
  margin-top: 2.25rem;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
}
.contact-item a:hover { text-decoration: underline; }

/* ─── Summary box ─── */
.summary-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 2rem;
}

.summary-row {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.summary-row:last-child { border-bottom: none; }

.summary-key {
  flex-shrink: 0;
  width: 150px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-top: 0.1rem;
}

.summary-val {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
}

.summary-val a {
  color: var(--teal);
  text-decoration: none;
}
.summary-val a:hover { text-decoration: underline; }

/* ─── About page: career timeline ─── */
.timeline {
  margin-top: 2rem;
  display: grid;
  gap: 0;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:first-child { padding-top: 0; }
.timeline-item:last-child  { border-bottom: none; padding-bottom: 0; }

.timeline-year {
  flex-shrink: 0;
  width: 100px;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  padding-top: 0.15rem;
}

.timeline-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.timeline-body .org {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.timeline-body p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ─── About page: article list ─── */
.articles {
  margin-top: 1.75rem;
  display: grid;
  gap: 1rem;
}

.article-link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.9rem 1.2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  gap: 1rem;
}
.article-link:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(14,110,138,0.1);
}

.article-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.article-date {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ─── USP intro box ─── */
.usp-intro {
  background: var(--teal-bg);
  border-left: 3px solid var(--teal);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.usp-intro p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
}

/* ─── Footer ─── */
footer {
  background: #07152a;
  color: rgba(255,255,255,0.45);
  padding: 1.75rem 2rem;
  font-size: 0.8rem;
  text-align: center;
}

footer a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
footer a:hover { color: rgba(255,255,255,0.8); }

/* ─── Responsive ─── */
@media (max-width: 480px) {
  nav {
    padding: 0 1.25rem;
    flex-wrap: wrap;
    gap: 0;
    height: auto;
    min-height: 60px;
  }
  .nav-brand {
    flex: 1;
    padding: 0.75rem 0;
  }
  .nav-links {
    width: 100%;
    gap: 1.25rem;
    padding: 0.5rem 0 0.6rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
  }
  section { padding: 56px 1.25rem; }
  .hero { padding: 64px 1.25rem 72px; }
  .timeline-year { width: 72px; }
  .summary-key { width: 110px; }
}
