/* ============================================================
   Speedd.eu — Style Sheet
   Palette: slate-mint (#1E3A52 primary + #2EBFA0 accent)
   Fonts: Sora (headings) + Mulish (body) — self-hosted WOFF2
   Archetype: fullwidth-editorial-strip
   ============================================================ */

/* --- Self-hosted fonts ------------------------------------ */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/sora-400.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/sora-600.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/sora-700.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/sora-800.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/mulish-400.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/mulish-500.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/mulish-600.woff2') format('woff2'); }
@font-face { font-family: 'Mulish'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/mulish-700.woff2') format('woff2'); }

/* --- Custom Properties ------------------------------------ */
:root {
  --c-primary:      #1E3A52;
  --c-accent:       #2EBFA0;
  --c-accent-dk:    #1D9A82;
  --c-bg:           #F5F9FC;
  --c-surface:      #FFFFFF;
  --c-text:         #1A2A38;
  --c-muted:        #5C7A8F;
  --c-border:       #CBE0EE;

  --f-head: 'Sora', system-ui, sans-serif;
  --f-body: 'Mulish', system-ui, sans-serif;

  --r-sm:  4px;
  --r-md:  14px;
  --r-lg:  28px;

  --w-max: 1160px;
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; display: block; }
a { color: var(--c-accent-dk); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Base ------------------------------------------------- */
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.72;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--c-text);
}
h1 { font-size: clamp(1.85rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.35rem, 2.8vw, 2rem); }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.4rem); }
p { margin-bottom: 1rem; }

/* --- Layout util ------------------------------------------ */
.sp-wrap {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

/* ============================================================
   HEADER
   ============================================================ */
.sp-header {
  background: var(--c-primary);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 3px solid var(--c-accent);
}
.sp-header__bar {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0.85rem var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Logo */
.sp-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.sp-logo:hover { text-decoration: none; }
.sp-logo__mark { width: 36px; height: 36px; flex-shrink: 0; }
.sp-logo__name {
  font-family: var(--f-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.sp-logo__name b { color: var(--c-accent); font-weight: 800; }

/* Nav */
.sp-nav ul { display: flex; gap: 0.15rem; list-style: none; }
.sp-nav a {
  display: block;
  padding: 0.4rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sp-nav a:hover, .sp-nav a[aria-current="page"] {
  background: rgba(46,191,160,0.18);
  color: var(--c-accent);
  text-decoration: none;
}

/* Mobile nav toggle hidden on desktop */
.sp-nav-toggle { display: none; }

/* ============================================================
   HERO — homepage
   ============================================================ */
.sp-hero {
  background: var(--c-primary);
  color: #fff;
  padding: var(--sp-xl) var(--sp-md) var(--sp-lg);
  position: relative;
}
.sp-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, #17e2c3 60%, transparent 100%);
}
.sp-hero__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}
.sp-hero__content { flex: 1 1 auto; }
.sp-hero__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.sp-hero__title {
  font-family: var(--f-head);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.25rem;
}
.sp-hero__title em {
  font-style: normal;
  color: var(--c-accent);
}
.sp-hero__lead {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 48ch;
  margin-bottom: 2rem;
}
.sp-hero__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.sp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--f-head);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.3rem;
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.sp-btn:hover { text-decoration: none; }
.sp-btn--primary { background: var(--c-accent); color: var(--c-primary); }
.sp-btn--primary:hover { background: var(--c-accent-dk); color: #fff; }
.sp-btn--ghost {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.2);
}
.sp-btn--ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

.sp-hero__image {
  flex: 0 0 420px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.sp-hero__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

/* ============================================================
   METRICS STRIP
   ============================================================ */
.sp-metrics {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
}
.sp-metrics__row {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: flex;
  justify-content: space-between;
}
.sp-metric {
  flex: 1 1 0;
  padding: 1.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--c-border);
}
.sp-metric:last-child { border-right: none; }
.sp-metric__val {
  display: block;
  font-family: var(--f-head);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--c-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.sp-metric__val--accent { color: var(--c-accent-dk); }
.sp-metric__lbl {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-muted);
}

/* ============================================================
   TOPIC STRIPS — homepage
   ============================================================ */
.sp-topics { padding: var(--sp-lg) 0; background: var(--c-bg); }
.sp-topics__hd {
  max-width: var(--w-max);
  margin: 0 auto var(--sp-md);
  padding: 0 var(--sp-md);
}
.sp-topics__hd h2 { color: var(--c-primary); }
.sp-topics__hd p { color: var(--c-muted); max-width: 52ch; margin-top: 0.5rem; }

.sp-topic {
  border-top: 1px solid var(--c-border);
  padding: var(--sp-md) 0;
}
.sp-topic:last-child { border-bottom: 1px solid var(--c-border); }
.sp-topic__row {
  max-width: var(--w-max);
  margin: 0 auto;
  padding: 0 var(--sp-md);
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
}
.sp-topic__row--flip { flex-direction: row-reverse; }
.sp-topic__body { flex: 1 1 auto; }
.sp-topic__seq {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent-dk);
  margin-bottom: 0.5rem;
}
.sp-topic__title {
  font-family: var(--f-head);
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--c-primary);
  margin-bottom: 0.6rem;
}
.sp-topic__desc {
  color: var(--c-muted);
  font-size: 0.97rem;
  margin-bottom: 1.25rem;
  max-width: 52ch;
}
.sp-topic__link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--c-accent-dk);
  text-decoration: none;
}
.sp-topic__link::after { content: ' →'; }
.sp-topic__link:hover { color: var(--c-primary); text-decoration: none; }
.sp-topic__thumb {
  flex: 0 0 360px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30,58,82,0.1);
}
.sp-topic__thumb img {
  width: 100%;
  height: 235px;
  object-fit: cover;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.sp-page-hero {
  background: var(--c-primary);
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
}
.sp-page-hero__inner {
  max-width: var(--w-max);
  margin: 0 auto;
}
.sp-breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.75rem;
}
.sp-breadcrumb a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
}
.sp-breadcrumb a:hover { color: var(--c-accent); text-decoration: none; }
.sp-breadcrumb span { color: rgba(255,255,255,0.3); padding: 0 0.4rem; }
.sp-page-hero__title {
  font-family: var(--f-head);
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.75rem;
  max-width: 22ch;
}
.sp-page-hero__meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   ARTICLE LAYOUT
   ============================================================ */
.sp-article-outer {
  padding: var(--sp-lg) var(--sp-md);
}
.sp-article-outer__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  display: flex;
  gap: var(--sp-lg);
  align-items: flex-start;
}
.sp-article { flex: 1 1 auto; max-width: 70ch; }

.sp-article-thumb {
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: var(--sp-md);
  box-shadow: 0 4px 20px rgba(30,58,82,0.1);
}
.sp-article-thumb img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.sp-article h2 {
  color: var(--c-primary);
  margin-top: var(--sp-md);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--c-border);
}
.sp-article h3 {
  color: var(--c-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.sp-article ul, .sp-article ol {
  margin: 0 0 1rem 1.4rem;
}
.sp-article li { margin-bottom: 0.3rem; }
.sp-article strong { color: var(--c-primary); }
.sp-article a { color: var(--c-accent-dk); }
.sp-article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.sp-article th {
  background: var(--c-primary);
  color: #fff;
  font-family: var(--f-head);
  font-size: 0.82rem;
  text-align: left;
  padding: 0.6rem 0.9rem;
}
.sp-article td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--c-border);
}
.sp-article tr:nth-child(even) td { background: var(--c-bg); }

/* Sidebar */
.sp-sidebar {
  flex: 0 0 280px;
}
.sp-sidebar-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-top: 3px solid var(--c-accent);
  border-radius: var(--r-md);
  padding: 1.4rem;
  margin-bottom: 1.5rem;
}
.sp-sidebar-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  margin-bottom: 1rem;
}
.sp-sidebar-card ul { list-style: none; }
.sp-sidebar-card li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.88rem;
}
.sp-sidebar-card li:last-child { border-bottom: none; }
.sp-sidebar-card a { color: var(--c-text); font-weight: 600; }
.sp-sidebar-card a:hover { color: var(--c-accent-dk); text-decoration: none; }

/* ============================================================
   FAQ
   ============================================================ */
.sp-faq {
  margin-top: var(--sp-md);
  border-top: 2px solid var(--c-border);
  padding-top: var(--sp-md);
}
.sp-faq__heading {
  font-size: 1.5rem;
  color: var(--c-primary);
  margin-bottom: 1.25rem;
}
.sp-faq__item {
  border-bottom: 1px solid var(--c-border);
}
.sp-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  font-family: var(--f-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.sp-faq__item summary::-webkit-details-marker { display: none; }
.sp-faq__item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--c-accent-dk);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.sp-faq__item[open] > summary::after { content: '−'; }
.sp-faq__body {
  padding: 0.25rem 0 1.25rem;
  color: var(--c-muted);
  font-size: 0.95rem;
  line-height: 1.68;
}
.sp-faq__body p { margin-bottom: 0.5rem; }
.sp-faq__body p:last-child { margin-bottom: 0; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.sp-about-section { padding: var(--sp-lg) var(--sp-md); }
.sp-about-section__inner {
  max-width: var(--w-max);
  margin: 0 auto;
  max-width: 70ch;
}
.sp-about-section h2 { color: var(--c-primary); margin: 1.5rem 0 0.75rem; }
.sp-about-section p { color: var(--c-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.sp-footer {
  background: var(--c-primary);
  color: rgba(255,255,255,0.65);
  padding: var(--sp-lg) var(--sp-md) var(--sp-md);
  border-top: 3px solid var(--c-accent);
}
.sp-footer__grid {
  max-width: var(--w-max);
  margin: 0 auto;
  display: flex;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-md);
}
.sp-footer__brand { flex: 1.5 1 auto; }
.sp-footer__brand .sp-logo { margin-bottom: 0.9rem; }
.sp-footer__brand p { font-size: 0.88rem; max-width: 32ch; }
.sp-footer__col { flex: 1 1 auto; }
.sp-footer__col h5 {
  font-family: var(--f-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.85rem;
}
.sp-footer__col ul { list-style: none; }
.sp-footer__col li { margin-bottom: 0.4rem; }
.sp-footer__col a {
  color: rgba(255,255,255,0.55);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s;
}
.sp-footer__col a:hover { color: var(--c-accent); text-decoration: none; }
.sp-footer__base {
  max-width: var(--w-max);
  margin: 0 auto;
  padding-top: var(--sp-sm);
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .sp-hero__grid { flex-direction: column; }
  .sp-hero__image { display: none; }
  .sp-topic__row, .sp-topic__row--flip { flex-direction: column; }
  .sp-topic__thumb { flex: 0 0 auto; width: 100%; }
  .sp-article-outer__inner { flex-direction: column; }
  .sp-sidebar { display: none; }
  .sp-footer__grid { flex-direction: column; gap: var(--sp-md); }
}
@media (max-width: 720px) {
  .sp-metrics__row { flex-wrap: wrap; }
  .sp-metric { flex: 0 0 50%; border-right: none; border-bottom: 1px solid var(--c-border); }
  .sp-metric:nth-child(odd) { border-right: 1px solid var(--c-border); }
  .sp-metric:last-child, .sp-metric:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}
@media (max-width: 560px) {
  .sp-nav ul { display: none; }
  .sp-hero__actions { flex-direction: column; }
  .sp-btn { text-align: center; justify-content: center; }
}
