/* ==========================================================================
   DevCode Professional Services - Design System
   ========================================================================== */

:root {
  /* Brand palette per DevCode Group Brand Book.
     Primary accent = Coral (#FF5959). Konsultrörelsen brand identifiers
     = Dark Teal (#407977) + Warm Beige (#BEB0A0). Neutral surfaces
     derive from brand Grey (#EFF2F4) + Warm Beige tints. */
  --red: #FF5959;
  --red-deep: #E03E3E;
  --red-soft: #FFD9D9;
  --red-wash: #FFEFEF;
  --teal: #407977;
  --teal-deep: #2F5C5A;
  --beige: #BEB0A0;
  --cream: #EFEAE1;
  --cream-light: #F6F2EA;
  --paper: #FBF8F2;
  --ink: #000000;
  --ink-soft: #2A2A2A;
  --ink-muted: #6B6B6B;
  --stone: #BEB0A0;
  --border: #E4DED2;
  --grey-bg: #EFF2F4;
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-red: 0 4px 12px rgba(255, 89, 89, 0.18), 0 16px 40px rgba(255, 89, 89, 0.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Exo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.serif { font-family: 'Instrument Serif', Georgia, serif; letter-spacing: -0.005em; }
.italic { font-style: italic; }


/* ==========================================================================
   GROUP BAR + HEADER
   ========================================================================== */

.group-bar {
  background: var(--ink);
  color: var(--cream-light);
  padding: 9px 40px;
  font-size: 12px;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 101;
}

.group-bar-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.group-bar a {
  color: var(--cream-light);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.group-bar a:hover { color: var(--red-soft); }

.group-bar .group-link {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 14px;
}

.group-bar .group-meta {
  color: rgba(252, 245, 235, 0.6);
  line-height: 1.3;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 238, 226, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(229, 219, 200, 0.6);
}

.nav-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--ink);
}

.logo img {
  height: 36px;
  width: auto;
  display: block;
}

.logo-suffix {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  padding-left: 14px;
  border-left: 1px solid var(--border);
  line-height: 1.2;
}

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

nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover, nav a.active { color: var(--red); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--cream-light) !important;
  padding: 11px 22px;
  border-radius: 100px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--red) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-red);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary, .btn-secondary, .btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary { background: var(--red); color: white; }
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: var(--shadow-red); }

.btn-secondary { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--cream-light); }

.btn-cream { background: var(--cream-light); color: var(--ink); }
.btn-cream:hover { background: var(--ink); color: white; transform: translateY(-2px); }

.btn-primary svg, .btn-secondary svg, .btn-cream svg { transition: transform 0.25s ease; }
.btn-primary:hover svg, .btn-secondary:hover svg, .btn-cream:hover svg { transform: translateX(4px); }

/* ==========================================================================
   PAGE HERO (smaller hero for subpages)
   ========================================================================== */

.page-hero {
  padding: 100px 40px 80px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.page-hero-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.page-hero-meta::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--red);
}

.page-hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
  max-width: 1000px;
  margin-bottom: 32px;
}

.page-hero h1 .italic { color: var(--red); }

.page-hero-lead {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 720px;
}

/* ==========================================================================
   SECTION HEAD (shared across sections)
   ========================================================================== */

.section-head {
  max-width: 1320px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  align-items: end;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--red);
}

.section-head h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
  margin-top: 20px;
}

.section-head h2 .italic { font-style: italic; color: var(--red); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */

.marquee {
  background: var(--ink);
  color: var(--cream-light);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  border-top: 1px solid rgba(206, 49, 58, 0.2);
  border-bottom: 1px solid rgba(206, 49, 58, 0.2);
}

.marquee-track {
  display: flex;
  gap: 50px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-style: italic;
}

.marquee-track span { display: inline-flex; align-items: center; gap: 50px; }

.marquee-track .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   RED CTA + FOOTER (shared across pages)
   ========================================================================== */

.red-cta {
  background: var(--red);
  color: white;
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
}

.red-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.red-cta-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.red-cta h2 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.022em;
}

.red-cta h2 .italic { font-style: italic; }

.red-cta-right p {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.85);
}

footer {
  background: var(--ink);
  color: var(--cream-light);
  padding: 100px 40px 40px;
  position: relative;
}

.footer-inner { max-width: 1320px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(252, 245, 235, 0.1);
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.footer-brand .footer-logo img { height: 48px; width: auto; }

.footer-brand .tagline {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(252, 245, 235, 0.7);
  line-height: 1.4;
  max-width: 380px;
  margin-bottom: 28px;
}

.footer-group-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 100px;
  background: rgba(252, 245, 235, 0.08);
  color: rgba(252, 245, 235, 0.9);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.footer-group-link:hover {
  background: var(--red);
  color: white;
}

.footer-col h6 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #E8A8AA;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 14px; }

.footer-col a {
  color: rgba(252, 245, 235, 0.75);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-contact p {
  color: rgba(252, 245, 235, 0.75);
  font-size: 15px;
  margin-bottom: 6px;
}

.footer-contact a {
  color: rgba(252, 245, 235, 0.75);
  text-decoration: none;
}

.footer-contact a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(252, 245, 235, 0.4);
  letter-spacing: 0.04em;
}

.footer-bottom a {
  color: rgba(252, 245, 235, 0.4);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(252, 245, 235, 0.8); }

/* ==========================================================================
   GENERAL CONTENT BLOCKS
   ========================================================================== */

.section { padding: 140px 40px; max-width: 1320px; margin: 0 auto; }
.section-bg { padding: 140px 40px; background: var(--paper); }
.section-bg-inner { max-width: 1320px; margin: 0 auto; }

.prose {
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.prose p { margin-bottom: 22px; }

.prose .lead-cap {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 56px;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--red);
}

/* ==========================================================================
   TIMELINE
   ========================================================================== */

.timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item { margin-bottom: 56px; position: relative; }

.timeline-item::before {
  content: '';
  position: absolute;
  top: 8px;
  left: -39px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--red);
  border: 4px solid var(--cream);
}

.timeline-year {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 12px;
}

.timeline-item h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.timeline-item p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  max-width: 600px;
}

/* ==========================================================================
   TEAM PILLS
   ========================================================================== */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-pill {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  transition: all 0.3s ease;
}

.team-pill:hover {
  border-color: var(--red);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.team-pill .team-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--red);
  margin-bottom: 16px;
}

.team-pill h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.team-pill h3 .italic { font-style: italic; color: var(--red); }

.team-pill p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  max-width: 1320px;
  margin: 0 auto;
  counter-reset: process;
}

.process-step {
  position: relative;
  counter-increment: process;
}

.process-step::before {
  content: counter(process, decimal-leading-zero);
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 56px;
  color: var(--red);
  line-height: 1;
  display: block;
  margin-bottom: 24px;
}

.process-step h3 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.process-step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */

.compare {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.compare-row:last-child { border-bottom: none; }

.compare-row > div {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  font-size: 15px;
  line-height: 1.5;
}

.compare-row > div:not(:first-child) {
  border-left: 1px solid var(--border);
}

.compare-row.header { background: var(--cream-light); }
.compare-row.header > div {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  padding: 32px;
}

.compare-row.header .italic { font-style: italic; color: var(--red); }

.compare-row .label {
  font-weight: 600;
  color: var(--ink);
}

.compare-row .value { color: var(--ink-soft); }

.compare-row .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  margin-right: 10px;
  flex-shrink: 0;
}

/* ==========================================================================
   BENEFITS GRID
   ========================================================================== */

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1320px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}

.benefit {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.benefit-num {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--red);
  margin-bottom: 14px;
}

.benefit h4 {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.benefit p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  max-width: 900px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  cursor: pointer;
}

.faq summary {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.015em;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: var(--red);
  line-height: 1;
  transition: transform 0.2s;
}

.faq details[open] summary::after { content: '−'; }

.faq details p {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  max-width: 720px;
}

/* ==========================================================================
   FORM
   ========================================================================== */

.form {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: 24px;
  padding: 56px 48px;
  border: 1px solid var(--border);
}

.form-row { margin-bottom: 24px; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-row.split .form-field { margin-bottom: 0; }
.form-field { margin-bottom: 24px; }

.form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream-light);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: all 0.2s;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--red);
  background: white;
}

.form textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   QUOTE
   ========================================================================== */

.quote-block {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.quote-block::before {
  content: '"';
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 200px;
  color: var(--red-soft);
  line-height: 0.6;
  display: block;
  margin-bottom: 20px;
}

.quote-block p {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 40px;
  color: var(--ink);
}

.quote-block .italic { color: var(--red); }

.quote-author {
  font-family: 'Instrument Serif', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-muted);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 980px) {
  .group-bar { padding: 8px 20px; font-size: 11px; }
  .group-bar-inner { gap: 12px; }
  .group-bar .group-meta { display: none; }
  nav ul { display: none; }
  .nav-wrap { padding: 14px 20px; gap: 16px; }
  .logo-suffix { display: none; }
  .page-hero { padding: 60px 20px 40px; }
  .section, .section-bg { padding: 80px 20px; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .marquee-track { font-size: 20px; gap: 32px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-pill { padding: 32px 28px; }
  .team-pill h3 { font-size: 28px; }
  .process { grid-template-columns: 1fr 1fr; gap: 24px; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > div:not(:first-child) { border-left: none; border-top: 1px solid var(--border); }
  .compare-row.header > div { padding: 20px; font-size: 22px; }
  .benefits { grid-template-columns: 1fr; }
  .form { padding: 32px 24px; }
  .form-row.split { grid-template-columns: 1fr; }
  .red-cta { padding: 60px 20px; }
  .red-cta-inner { grid-template-columns: 1fr; gap: 32px; }
  footer { padding: 60px 20px 30px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 40px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .timeline { padding-left: 28px; }
  .timeline-item { margin-bottom: 40px; }
  .timeline-item::before { left: -27px; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
