/* =============================================================
   OakStride Studio – Golden Template stylesheet
   Designspråk: "Ren nordisk" – luft, en djup accent, foto-lett.
   -------------------------------------------------------------
   Byt en kunds utseende genom att bara ändra variablerna i
   :root nedan (färger, typsnitt, radie). Inget annat behöver röras.
   ============================================================= */

/* -----------------------------------------------------------------
   1. DESIGN TOKENS  ← detta är det ENDA du normalt ändrar per kund
   ----------------------------------------------------------------- */
:root {
  /* Varumärke – EN djup accent (håll det disciplinerat) */
  --brand:      #1d5566;     /* stålblå – nordiskt vatten */
  --brand-dark: #143d4a;     /* hover/mörkare */
  --brand-tint: #e9f1f2;     /* ljus bakgrundston */

  /* Neutraler – kylbiaserade mot accenten (medvetet valda) */
  --ink:      #172025;       /* kall nästan-svart, brödtext/rubriker */
  --ink-soft: #59636a;       /* dämpad text */
  --paper:    #ffffff;       /* sidbakgrund */
  --surface:  #f1f5f5;       /* sektionsbakgrund (kall off-white) */
  --line:     #e0e7e7;       /* hårfina linjer/kanter */

  /* Fokus (tillgänglighet) */
  --focus:    #1d5566;

  /* Typsnitt */
  --font-head: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Form & rytm – crisp och luftigt */
  --radius:    8px;
  --radius-sm: 5px;
  --shadow:    0 1px 2px rgba(23,32,37,.04), 0 8px 24px rgba(23,32,37,.06);
  --shadow-lg: 0 24px 70px rgba(23,32,37,.12);
  --container: 1140px;
  --gap:       clamp(1rem, 2.6vw, 1.75rem);
}

/* -----------------------------------------------------------------
   2. RESET & BAS
   ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.025em; color: var(--ink); text-wrap: balance;
}
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* -----------------------------------------------------------------
   3. LAYOUT-HJÄLPARE  (luft gör jobbet)
   ----------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(22px, 5vw, 44px); }
.section { padding: clamp(68px, 11vw, 132px) 0; }
.section--surface { background: var(--surface); }
.section--brand { background: var(--brand); color: #eaf2f3; }
.section--brand h2, .section--brand .eyebrow { color: #fff; }
.section--brand .section-head p { color: #cfe0e2; }
.section--brand .contact-list .k { color: #cfe0e2; opacity: 1; }
.eyebrow {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 18px;
}
.section-head { max-width: 62ch; margin-bottom: clamp(40px, 6vw, 68px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.12rem; max-width: 54ch; }

.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--brand); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; }
.skip-link:focus { left: 0; }

/* -----------------------------------------------------------------
   4. KNAPPAR  (crisp, en accent)
   ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 13px 24px; border-radius: var(--radius-sm); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus-visible { border-color: var(--brand); color: var(--brand); }
.section--brand .btn--primary { background: #fff; color: var(--brand); }
.section--brand .btn--primary:hover { background: #eaf2f3; }
.btn--block { width: 100%; justify-content: center; }

/* -----------------------------------------------------------------
   5. HEADER / NAV  (minimal)
   ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-family: var(--font-head); font-weight: 700; font-size: 1.24rem; text-decoration: none; color: var(--ink); letter-spacing: -0.03em; }
.brand span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.96rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { padding: 9px 18px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px 22px 22px; box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a, .nav-links .btn { border: 0; }
  .nav-links .btn { margin-top: 10px; justify-content: center; }
}

/* -----------------------------------------------------------------
   6. HERO  (foto-lett, mycket luft)
   ----------------------------------------------------------------- */
.hero { padding: clamp(64px, 11vw, 128px) 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: 26px; }
.hero .lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 36px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--surface); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.trust-row { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 42px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.9rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; }
.trust-row svg { width: 17px; height: 17px; stroke: var(--brand); }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .hero-media { order: -1; aspect-ratio: 16/10; } }

/* -----------------------------------------------------------------
   7. TJÄNSTER  (lätta kort, luft framför ramar)
   ----------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: border-color .18s, transform .18s; }
.card:hover { transform: translateY(-3px); border-color: var(--brand); }
.card .card-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 22px; color: var(--brand); }
.card .card-icon svg { width: 30px; height: 30px; stroke: var(--brand); }
.card h3 { font-size: 1.24rem; margin-bottom: 10px; letter-spacing: -0.02em; }
.card p { color: var(--ink-soft); font-size: 0.99rem; }

/* -----------------------------------------------------------------
   8. OM / FEATURES
   ----------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--surface); }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; display: grid; gap: 22px; margin-top: 30px; }
.feature-list li { display: flex; gap: 15px; align-items: flex-start; }
.feature-list .tick { flex: none; width: 24px; height: 24px; color: var(--brand); }
.feature-list .tick svg { width: 24px; height: 24px; stroke: var(--brand); }
.feature-list strong { display: block; margin-bottom: 2px; }
.feature-list span.txt { color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

/* -----------------------------------------------------------------
   9. GALLERI
   ----------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery a { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* -----------------------------------------------------------------
   10. OMDÖMEN
   ----------------------------------------------------------------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review { padding: 4px 0; }
.review + .review { border-top: 0; }
.stars { color: var(--brand); letter-spacing: 3px; margin-bottom: 16px; font-size: 0.95rem; }
.review p { font-size: 1.14rem; line-height: 1.5; margin-bottom: 20px; letter-spacing: -0.01em; font-family: var(--font-head); font-weight: 500; }
.review .who { font-weight: 600; font-size: 0.93rem; }
.review .who span { display: block; color: var(--ink-soft); font-weight: 400; font-size: 0.86rem; margin-top: 2px; }

/* -----------------------------------------------------------------
   11. KONTAKT
   ----------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 72px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: grid; gap: 24px; }
.contact-list .k { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; margin-bottom: 5px; }
.contact-list a { text-decoration: none; font-weight: 600; }
.section--brand .contact-list a:hover { text-decoration: underline; }
.hours { list-style: none; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 0.95rem; }
form.contact-form { display: grid; gap: 16px; background: var(--paper); color: var(--ink); padding: clamp(24px, 4vw, 36px); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.contact-form label { font-size: 0.88rem; font-weight: 600; display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2.5px solid var(--focus); outline-offset: 1px; border-color: var(--focus); }

/* -----------------------------------------------------------------
   12. FOOTER
   ----------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #b9c2c6; padding: clamp(48px, 7vw, 76px) 0 34px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #b9c2c6; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; display: grid; gap: 9px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.84rem; color: #7f8a8f; }
.footer-bottom a { color: #7f8a8f; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* -----------------------------------------------------------------
   13. HERO – RÖRLIG BILD (video)
   ----------------------------------------------------------------- */
/* a) Video i mediakolumnen (samma layout som bild) */
.hero-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* b) Fullbredds "cinematic"-hero med bakgrundsvideo (valfri variant).
      Använd <section class="hero hero--cinematic"> med .hero-bg + .container. */
.hero--cinematic { position: relative; padding: 0; min-height: min(78vh, 720px); display: grid; align-items: center; overflow: hidden; }
.hero--cinematic .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero--cinematic .hero-bg video, .hero--cinematic .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero--cinematic::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(23,32,37,.74) 0%, rgba(23,32,37,.40) 60%, rgba(23,32,37,.20) 100%); }
.hero--cinematic > .container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero--cinematic h1 { color: #fff; }
.hero--cinematic .eyebrow { color: #9fd0da; }
.hero--cinematic .lead { color: #dbe6e8; }
.hero--cinematic .trust-row { border-top-color: rgba(255,255,255,.25); color: #cdd8da; }
.hero--cinematic .trust-row svg { stroke: #fff; }
.hero--cinematic .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero--cinematic .btn--ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* Reducerad rörelse: dölj video, visa poster (JS pausar också) */
@media (prefers-reduced-motion: reduce) {
  .hero-media video, .hero--cinematic .hero-bg video { display: none; }
  .hero-media .video-poster, .hero--cinematic .hero-bg .video-poster { display: block; }
}
.video-poster { display: none; width: 100%; height: 100%; object-fit: cover; }

/* -----------------------------------------------------------------
   14. COOKIE-/SAMTYCKESBANNER
   ----------------------------------------------------------------- */
.oak-consent { position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; justify-content: center; padding: 16px; }
.oak-consent__card { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-width: 640px; width: 100%; padding: 24px 26px; }
.oak-consent__title { font-size: 1.16rem; margin-bottom: 8px; }
.oak-consent__text { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 16px; }
.oak-consent__prefs { display: none; grid-template-columns: 1fr; gap: 2px; margin-bottom: 18px; }
.oak-consent--prefs .oak-consent__prefs { display: grid; }
.oak-consent__row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.oak-consent__row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.oak-consent__row strong { display: block; font-size: 0.95rem; }
.oak-consent__row span span { color: var(--ink-soft); font-size: 0.88rem; }
.oak-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.oak-consent__actions .btn { padding: 11px 18px; font-size: 0.92rem; }
@media (max-width: 560px) { .oak-consent__actions { flex-direction: column-reverse; } .oak-consent__actions .btn { width: 100%; justify-content: center; } }

/* -----------------------------------------------------------------
   15. BRANSCHSEKTIONER (process, referensprojekt, kundcase, siffror, FAQ)
   ----------------------------------------------------------------- */
.container.narrow { max-width: 820px; }

/* Så går det till – numrerade steg */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: 14px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 0.96rem; }

/* Referensprojekt */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .projects { grid-template-columns: 1fr; } }
.project { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.project figcaption { padding: 18px 20px; }
.project figcaption strong { display: block; margin-bottom: 4px; }
.project figcaption span { color: var(--ink-soft); font-size: 0.92rem; }

/* Kundcase */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 900px) { .cases { grid-template-columns: 1fr; } }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; }
.case-tag { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.case h3 { font-size: 1.16rem; margin-bottom: 10px; }
.case-ch { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 14px; }
.case-re { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.case-re .tick { flex: none; width: 22px; height: 22px; color: var(--brand); }

/* Siffror-band */
.band { background: var(--brand); color: #fff; padding: clamp(40px, 6vw, 64px) 0; }
.band .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
@media (max-width: 720px) { .band .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-v { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.stat-l { color: rgba(255,255,255,.82); font-size: 0.94rem; margin-top: 4px; }

/* FAQ-dragspel */
.faq { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 20px 0; font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.5rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 22px; color: var(--ink-soft); max-width: 68ch; }
