/* ============================================
   Kindly Agency — Redesign
   Shared stylesheet for all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Gloock&family=Quicksand:wght@100;300;400;500;600;700&display=swap');

/* Colors sampled directly from the live kindly-agency.se site, July 2026 */
:root {
  --cream: #f5f1eb;        /* real section background */
  --cream-alt: #efe6d6;
  --ink: #3a3f42;
  --slate: #5c6a75;        /* real heading/body color */
  --slate-deep: #46545d;
  --footer-navy: #242a56;  /* real footer background */
  --terracotta: #b88276;   /* real CTA button color */
  --terracotta-deep: #9c6a5f;
  --tan: #c6ab74;          /* real service-icon color */
  --cream-text: #f5f1eb;
  --border: rgba(58, 63, 66, 0.1);
  --shadow: 0 20px 50px -25px rgba(36, 42, 86, 0.35);
  --radius: 18px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--slate);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Gloock', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--slate);
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: lowercase;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.9em;
}

.section-subtitle {
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  text-transform: lowercase;
  color: var(--slate);
  font-weight: 400;
  margin: 0.4em 0 0;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 100px 0;
}

/* First section under the home hero — no dead cream band between the hero image
   and the section heading. */
.section--after-hero {
  padding-top: 48px;
}

/* Section whose card grid rides up over the bottom of the page hero, so there is
   no dead cream band between the hero image and the first row of boxes. */
.section-overlap {
  padding-top: 0;
  position: relative;
  z-index: 3;
}
.section-overlap > .wrap > .pain-grid,
.section-overlap > .wrap > .service-boxes {
  margin-top: -120px;
}

.section--tight { padding: 70px 0; }

.bg-alt { background: var(--cream-alt); }
.bg-ink { background: var(--slate-deep); color: var(--cream-text); }
.bg-ink h2, .bg-ink h3, .bg-ink .serif { color: var(--cream-text); }

.center { text-align: center; }

/* ---------- NAV ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 240, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: 'Gloock', serif;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--slate-deep);
  letter-spacing: 0.5px;
  transition: letter-spacing 0.25s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
}
.logo:hover { letter-spacing: 1.2px; opacity: 0.85; }

.logo span { color: var(--terracotta); }

.logo img { height: 54px; width: auto; display: block; transition: filter 0.2s ease; }

/* Inner-page headers sit on a light cream bar, so the white hero logo needs to
   be recolored dark for contrast — original site has no dark logo asset, so we
   filter the white PNG to a dark neutral silhouette. */
.logo-dark img { filter: brightness(0); opacity: 0.78; }

/* Footer always uses the brand's actual tan/gold logo variant (matches the live site) */
.footer-logo img { height: 88px; }

/* ---------- TRANSPARENT HEADER (overlaid on the hero image, matches the live site) ---------- */
header.header-transparent {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  z-index: 100;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
header.header-transparent.nav-scrolled {
  background: rgba(58, 63, 66, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header.header-transparent .nav-links a { color: #fff; opacity: 0.92; }
header.header-transparent .nav-links a:hover,
header.header-transparent .nav-links a.active { opacity: 1; color: #fff; }
header.header-transparent .nav-links a::after { background: #fff; }
header.header-transparent .menu-toggle { color: #fff; }

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: normal;
}

.nav-links li { position: relative; }
.nav-links a {
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--terracotta); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn {
  display: inline-block;
  padding: 17px 35px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(.2,.8,.3,1.3), box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--terracotta);
  color: var(--cream-text);
}
.btn-primary:hover { background: var(--terracotta-deep); transform: translateY(-2px) scale(1.02); box-shadow: var(--shadow); }

.btn-ghost {
  background: transparent;
  color: var(--slate-deep);
  border: 1.5px solid var(--slate-deep);
}
.btn-ghost:hover { background: var(--slate-deep); color: var(--cream-text); transform: translateY(-2px); }

.btn-on-dark {
  background: var(--cream-text);
  color: var(--slate-deep);
}
.btn-on-dark:hover { background: var(--terracotta); color: var(--cream-text); transform: translateY(-2px) scale(1.02); }

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

.menu-toggle { display: none; }

/* ---------- MOBILE MENU (full-screen overlay) ---------- */
/* Full-viewport panel that fades in over the page: large serif links stacked and
   centred, close X top-right, contact details and the language toggle underneath. */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 88px 28px 48px;
  /* Cream panel with the hero's warm tan/terracotta glow bled into the corners. */
  background:
    radial-gradient(120% 85% at 12% 8%, rgba(198, 171, 116, 0.30) 0%, rgba(245, 241, 235, 0) 58%),
    radial-gradient(120% 85% at 88% 92%, rgba(184, 130, 118, 0.28) 0%, rgba(245, 241, 235, 0) 58%),
    var(--cream);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-nav.open { opacity: 1; pointer-events: auto; }

/* Page behind the overlay must not scroll while the menu is open. */
body.menu-open { overflow: hidden; }

.mobile-nav-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-nav-close span {
  position: absolute;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--slate-deep);
}
.mobile-nav-close span:first-child { transform: rotate(45deg); }
.mobile-nav-close span:last-child { transform: rotate(-45deg); }

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.mobile-nav-links a {
  font-family: 'Gloock', Georgia, serif;
  font-size: clamp(1.9rem, 8.4vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--slate-deep);
  opacity: 0;
  transform: translateY(14px);
  transition: color 0.25s ease;
}
.mobile-nav-links a.active,
.mobile-nav-links a:hover { color: var(--terracotta); }

/* Links rise in one after another once the panel is open. */
.mobile-nav.open .mobile-nav-links a {
  animation: mobileNavIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.mobile-nav.open .mobile-nav-links a:nth-child(1) { animation-delay: 0.08s; }
.mobile-nav.open .mobile-nav-links a:nth-child(2) { animation-delay: 0.14s; }
.mobile-nav.open .mobile-nav-links a:nth-child(3) { animation-delay: 0.20s; }
.mobile-nav.open .mobile-nav-links a:nth-child(4) { animation-delay: 0.26s; }
.mobile-nav.open .mobile-nav-links a:nth-child(5) { animation-delay: 0.32s; }
.mobile-nav.open .mobile-nav-links a:nth-child(6) { animation-delay: 0.38s; }

@keyframes mobileNavIn {
  to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-divider {
  width: 46px;
  height: 1px;
  background: rgba(58, 63, 66, 0.18);
}

.mobile-nav-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  color: var(--slate);
}
.mobile-nav-meta a { transition: color 0.25s ease; }
.mobile-nav-meta a:hover { color: var(--terracotta); }
.mobile-nav-meta .lang-toggle {
  margin-top: 4px;
  color: var(--slate);
  border-color: rgba(58, 63, 66, 0.28);
}
.mobile-nav-meta .lang-toggle:hover { border-color: var(--terracotta); }

/* Desktop never needs the panel in the DOM flow. */
@media (min-width: 901px) {
  .mobile-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
  .mobile-nav.open .mobile-nav-links a { animation: none; opacity: 1; transform: none; }
}

/* ---------- LANGUAGE TOGGLE (SV / EN) ---------- */
.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 6px 14px;
  font-family: 'Quicksand', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--slate-deep);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover { opacity: 1; }

/* The active language is solid; the other one is dimmed — clicking swaps them. */
.lang-toggle .lang-opt { transition: opacity 0.2s ease; }
.lang-toggle .lang-sep { opacity: 0.4; }
.lang-toggle[data-lang="sv"] .lang-opt-en,
.lang-toggle[data-lang="en"] .lang-opt-sv { opacity: 0.45; font-weight: 400; }

/* Over the transparent hero header the control needs to read white like the nav */
header.header-transparent .lang-toggle { color: #fff; border-color: rgba(255,255,255,0.55); }
header.header-transparent .lang-toggle:hover { border-color: #fff; }

/* ---------- HERO (animated WebGL fluid background, replaces the static grainy-image.png) ---------- */
.hero {
  position: relative;
  /* Shorter hero: ~62% of the viewport so the first content section is already
     peeking in and the page scrolls past the image quickly. */
  min-height: 62vh;
  display: flex;
  /* Copy is centered both horizontally and vertically in the hero band. */
  align-items: center;
  justify-content: center;
  padding: 96px 0 48px; /* clears the transparent header, keeps the block optically centred */
  text-align: center;
  overflow: hidden;
  background-color: #b5947a; /* fallback tone (matches the image's sand tone) while WebGL boots, or if unsupported */
  color: var(--cream-text);
}

/* Home hero: uses the site's actual background photo instead of the WebGL fluid canvas */
.hero.hero-static {
  background-image: url('assets/grainy-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Live canvas: slow, organic sand-gold / coral / ocean-grey-blue fluid morph + film grain,
   sampled from the real kindly-agency.se hero image. Sits behind .hero-inner (z-index 2)
   and behind the transparent header (z-index 50), so nav + copy are unaffected. */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1100px;   /* wide enough that the English lede still fits on one line */
  padding: 0 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn 0.9s ease forwards 0.15s;
}

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
  font-family: 'Gloock', sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 0.9;
  color: rgb(245, 241, 235);
  margin-bottom: 0.5em;
  letter-spacing: -2px;
}

/* Lede always stays on one line: it never wraps, and below ~1000px the type and
   tracking scale with the viewport so the single line keeps fitting. */
.hero .lede {
  font-family: 'Quicksand', sans-serif;
  font-size: min(22px, 2.55vw);
  font-weight: 100;
  line-height: 1.2;
  color: rgb(245, 241, 235);
  letter-spacing: min(2.8px, 0.32vw);
  max-width: none;
  margin: 0 auto;
  opacity: 1;
  text-transform: lowercase;
  white-space: nowrap;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.2em;
}

.trust-strip {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* ---------- PAGE HERO (secondary pages) ---------- */
/* Page hero — same live fluid canvas as the home hero, but tonally shifted warmer/more
   muted (via the .page-hero-tone filter on the canvas itself) so inner pages read as a
   distinct variation rather than a repeat of the home hero. Filter never touches the text
   since it's applied to the canvas element, not the .wrap content. */
.page-hero {
  position: relative;
  height: 500px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #b5947a;
  color: #f5f1eb;
}
.page-hero-tone {
  filter: sepia(0.35) saturate(0.75) hue-rotate(-14deg) brightness(0.96) contrast(1.05);
}
.page-hero .wrap {
  position: relative;
  z-index: 2;
  max-width: 700px;
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn 0.9s ease forwards 0.15s;
}
.page-hero .eyebrow { justify-content: center; color: var(--tan); }
.page-hero h1 {
  font-family: 'Gloock', sans-serif;
  font-weight: 800;
  letter-spacing: -2.7px;
  color: rgb(245, 241, 235);
}

/* Workshop has no hero image on the live site — plain cream, sits under the normal sticky header */
.page-hero--plain {
  height: auto;
  min-height: 0;
  padding: 70px 24px 50px;
  background-image: none;
  background-color: transparent;
  color: var(--slate-deep);
}
.page-hero--plain h1 { color: var(--slate-deep); }

/* ---------- PAIN CARDS ---------- */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 2.5em 0;
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* Soft ambient glow sampled from the live about page's cards */
  box-shadow: 0 0 40px rgba(36, 42, 86, 0.12);
  padding: 35px;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--slate-deep);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 55px rgba(36, 42, 86, 0.22);
  border-color: var(--terracotta);
}

/* ---------- FLY-IN CARDS ----------
   Scroll-triggered entrance: each card sails in from its own direction with a
   slight tilt and scale, staggered by --fly-delay (set per card in script.js).
   Falls back to plain visible content when reduced motion is requested. */
.fly {
  opacity: 0;
  transform: translate3d(var(--fly-x, 0), var(--fly-y, 48px), 0) scale(0.94) rotate(var(--fly-rot, 0deg));
  transition:
    opacity 0.75s cubic-bezier(.16,.84,.32,1) var(--fly-delay, 0s),
    transform 0.9s cubic-bezier(.16,.84,.32,1) var(--fly-delay, 0s);
  will-change: transform, opacity;
}
.fly.is-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
}

.fly-left  { --fly-x: -70px; --fly-y: 34px; --fly-rot: -4deg; }
.fly-up    { --fly-x: 0;     --fly-y: 64px; --fly-rot: 0deg; }
.fly-right { --fly-x: 70px;  --fly-y: 34px; --fly-rot: 4deg; }

@media (prefers-reduced-motion: reduce) {
  .fly { opacity: 1; transform: none; transition: none; }
}

.closing-line {
  text-align: center;
  font-family: 'Gloock', serif;
  font-size: 1.4rem;
  color: var(--terracotta-deep);
  margin-top: 1.5em;
}

/* ---------- METHOD STEPS ---------- */
.method-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
  margin-top: 3em;
  position: relative;
}

.method-step {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--border);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.method-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.method-step .num {
  font-family: 'Gloock', serif;
  font-size: 2.2rem;
  color: var(--terracotta);
  margin-bottom: 0.2em;
  display: block;
  transition: transform 0.3s ease;
}
.method-step:hover .num { transform: scale(1.12); }

.method-step h3 { margin-bottom: 0.4em; }

.loop-note {
  text-align: center;
  margin-top: 2.2em;
  font-size: 0.95rem;
  color: var(--slate);
}
.loop-note strong { color: var(--terracotta-deep); }

/* ---------- SERVICES (home page grid — white icon cards) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 3em;
}

.service-card {
  display: block;
  background: #fff;
  padding: 42px 40px;
  border-radius: 14px;
  box-shadow: 0 16px 34px -22px rgba(36,42,86,0.22);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.16,.7,.2,1), box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -22px rgba(36,42,86,0.3);
}

.service-icon {
  width: 34px;
  height: 34px;
  color: var(--tan);
  margin-bottom: 26px;
  display: block;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card:hover .service-icon { transform: scale(1.12) rotate(-5deg); }

/* Heading letters lift in a staggered wave on hover */
.service-card h3 {
  font-size: 1.08rem;
  letter-spacing: 2.5px;
  text-transform: lowercase;
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
  color: var(--slate-deep);
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.service-card h3 .word { display: inline-flex; white-space: nowrap; }
.service-card h3 .letter {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), color 0.35s ease;
}
.service-card:hover h3 .letter { transform: translateY(-3px); color: var(--terracotta-deep); }

.services-closing { text-align: center; margin-top: 3.5em; }
.services-closing h2 { margin-bottom: 0.9em; }

.included {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  font-size: 0.88rem;
  color: var(--slate);
}
.included li { padding: 4px 0; padding-left: 18px; position: relative; }
.included li::before {
  content: "—";
  position: absolute; left: 0; color: var(--terracotta);
}

/* Deep-dive service boxes (services page) — three across on desktop, mirroring
   the card grid on the live kindly-agency.se/tjanster page. */
.service-boxes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

/* Same card treatment as the Om oss .pain-card boxes: rounded, ambient glow */
.service-block {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 40px rgba(36, 42, 86, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.service-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 55px rgba(36, 42, 86, 0.22);
  border-color: var(--terracotta);
}
/* The service name is the card's headline; the benefit line below it plays the
   supporting role, so the visual weight is inverted from the markup order. */
.service-block .tag {
  display: block;
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--slate-deep);
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0.45em;
}
.service-block h2 {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.2px;
  color: var(--terracotta);
  margin: 0 0 0.9em;
}
.service-block p { font-size: 0.95rem; }
/* Included-list is pinned to the bottom so the lists line up across a row */
.service-block .included { margin-top: auto; padding-top: 18px; }
/* ---------- PROOF / METRICS ---------- */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 2.5em 0;
  text-align: center;
}
.metric {
  padding: 20px;
  transition: transform 0.3s ease;
}
.metric:hover { transform: translateY(-4px); }
.metric .val {
  font-family: 'Gloock', serif;
  font-size: 2.1rem;
  color: var(--terracotta);
  display: block;
  transition: color 0.3s ease;
}
.metric:hover .val { color: var(--terracotta-deep); }
.metric .label { font-size: 0.85rem; color: var(--slate); }

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2.5em;
}

.case-card {
  background: var(--cream);
  border: 1px dashed var(--terracotta);
  border-radius: var(--radius);
  padding: 26px;
  font-size: 0.92rem;
  color: var(--slate-deep);
  transition: transform 0.3s ease, border-style 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
  transform: translateY(-6px);
  border-style: solid;
  box-shadow: var(--shadow);
}
.case-card .placeholder-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--tan);
  color: var(--slate-deep);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.case-card .result { color: var(--terracotta-deep); font-weight: 700; }
.case-card a { color: var(--terracotta); font-weight: 600; }

.testimonial {
  max-width: 640px;
  margin: 3em auto 0;
  text-align: center;
}
.testimonial p {
  font-family: 'Gloock', serif;
  font-size: 1.3rem;
  color: var(--slate-deep);
}
.testimonial .who { font-size: 0.9rem; color: var(--slate); font-family: 'Quicksand'; font-style: normal; }

.proof-note {
  max-width: 600px;
  margin: 2.5em auto 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--slate);
  background: var(--cream-alt);
  padding: 20px 26px;
  border-radius: var(--radius);
}

/* ---------- PROCESS ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 3em;
}
.process-step {
  text-align: center;
  padding: 0 10px;
}
.process-step .num {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--terracotta);
  color: var(--cream-text);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Gloock', serif;
  margin: 0 auto 16px;
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(.34,1.56,.64,1), background 0.3s ease;
}
.process-step:hover .num { transform: scale(1.15) rotate(8deg); background: var(--terracotta-deep); }
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.9rem; color: var(--slate); }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  transition: padding-left 0.25s ease;
}
.faq-item:hover { padding-left: 6px; }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--slate-deep);
  transition: color 0.2s ease;
}
.faq-item:hover .faq-q { color: var(--terracotta-deep); }
.faq-q .plus { transition: transform 0.3s cubic-bezier(.34,1.56,.64,1); color: var(--terracotta); font-size: 1.3rem; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  font-size: 0.95rem;
  color: var(--slate);
}
.faq-item.open .faq-a { max-height: 300px; padding-top: 12px; }

/* ---------- FINAL CTA ---------- */
.final-cta {
  text-align: center;
  padding: 110px 0;
  background: linear-gradient(120deg, #5c6d75 0%, #4a5b62 60%, #3c4a51 100%);
  color: var(--cream-text);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute; inset: 0;
  opacity: 0.15; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.final-cta > * { position: relative; z-index: 2; }
.final-cta h2 { color: #fffaf3; }
.final-cta p { max-width: 520px; margin-left: auto; margin-right: auto; opacity: 0.9; }

/* ---------- CONTACT FORM ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact-col { display: flex; flex-direction: column; }
.contact-col-title {
  font-family: 'Gloock', serif;
  font-size: 1.7rem;
  color: var(--slate-deep);
  padding: 12px 4px;
  margin-bottom: 24px;
  box-sizing: border-box;
}
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--slate-deep); }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: 'Quicksand';
  font-size: 0.95rem;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--slate); margin-top: 14px; }

.contact-info-card {
  background: var(--cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
}
/* Icon sits in a fixed-width column so every label and value below it starts on
   the same left edge, and the icon's optical centre lines up with the label. */
.contact-info-card .row {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 14px;
  align-items: start;
  margin-bottom: 0;
}
.contact-info-card .row strong { font-size: 1.05rem; line-height: 1.4; display: block; }
/* <strong> is already block-level, so the authored <br> only added an empty line
   between each label and its value. */
.contact-info-card .row br { display: none; }
.contact-info-card .row .ico {
  color: var(--terracotta);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.4em;
}
.contact-info-card .row .ico svg { width: 20px; height: 20px; display: block; }

/* ---------- CONTACT TABS (email / meeting) ---------- */
.contact-tabs {
  display: flex;
  background: var(--cream-alt);
  border-radius: 999px;
  padding: 6px;
  gap: 4px;
  margin-bottom: 24px;
}
.contact-tab {
  flex: 1 1 0;
  border: none;
  background: transparent;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.4px;
  color: var(--slate-deep);
  cursor: pointer;
  text-align: center;
  transition: background 0.5s ease, color 0.5s ease;
}
.contact-tab.active { background: var(--footer-navy); color: #fff; }
.contact-tab:not(.active):hover { color: var(--terracotta-deep); }

.contact-panel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-sizing: border-box;
  flex: 1;
  display: flex;
  min-height: 540px;
}
.contact-panel { display: none; width: 100%; }
.contact-panel.active {
  display: flex;
  flex-direction: column;
  flex: 1;
  animation: heroIn 0.5s ease forwards;
}
.contact-panel .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }

#contact-form { display: flex; flex-direction: column; flex: 1; }
#contact-form button[type="submit"] { align-self: flex-start; }
.form-group-grow { flex: 1; display: flex; flex-direction: column; }
.form-group-grow textarea { flex: 1; min-height: 80px; }

.calendly-embed {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  overflow: hidden;
}
.calendly-embed iframe { flex: 1; width: 100%; border: none; display: block; }

@media (max-width: 560px) {
  .contact-panel .form-grid-2 { grid-template-columns: 1fr; }
  .calendly-embed iframe { height: 560px; }
}

/* ---------- WORKSHOP LIST ---------- */
.workshop-block { margin-bottom: 40px; }
.workshop-block ul { padding-left: 20px; color: var(--slate-deep); }
.workshop-block li { margin-bottom: 8px; }

/* ---------- FOOTER ---------- */
footer.site-footer {
  background: var(--footer-navy);
  color: var(--cream-text);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid .logo { color: var(--cream-text); }
.footer-grid .logo span { color: #e0906f; }
.footer-tagline { font-size: 0.92rem; opacity: 0.75; margin-top: 10px; max-width: 300px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; margin-bottom: 14px; }
.footer-col a { display: block; margin-bottom: 10px; opacity: 0.85; font-size: 0.92rem; }
.footer-col a:hover { opacity: 1; color: #e0906f; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .service-boxes { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero h1 { font-size: clamp(1.5rem, 5.2vw, 48px); line-height: 1.05; letter-spacing: -1px; }
  .hero { min-height: 52vh; padding: 88px 0 40px; }
  .logo img { height: 44px; }
  .nav { padding: 14px 24px; }
  .lang-toggle { padding: 5px 11px; font-size: 0.72rem; letter-spacing: 0.8px; }
  .nav-right { gap: 12px; }
  .nav-links { display: none; }
  .menu-toggle { display: block; background: none; border: none; font-size: 1.5rem; color: var(--slate-deep); cursor: pointer; }
  .pain-grid, .method-steps, .services-grid, .metric-strip, .case-grid, .process-grid { grid-template-columns: 1fr; }
  .service-boxes { grid-template-columns: 1fr; }
  .service-block { padding: 32px 28px; }
  .service-block .tag { font-size: 1.4rem; }
  .section-overlap > .wrap > .pain-grid,
  .section-overlap > .wrap > .service-boxes { margin-top: -70px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .service-card { padding: 34px 30px; }
}

/* ---------- VÅRT ARBETE (portfolio / our work) ----------
   Two-up project cards. Same white-card language as .service-card, but with a
   coloured "screen" panel standing in for a screenshot, so the section reads as
   work rather than another service list. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 3em;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 34px -22px rgba(36,42,86,0.22);
  transition: transform 0.5s cubic-bezier(.16,.7,.2,1), box-shadow 0.5s ease, border-color 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px -22px rgba(36,42,86,0.3);
  border-color: var(--terracotta);
}

/* Stand-in for a project screenshot: a soft brand-tinted panel with the client's
   domain set in the serif face. Swap the whole block for an <img> when real
   screenshots exist. */
.work-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  padding: 24px;
  background: linear-gradient(130deg, var(--cream-alt) 0%, #e3d6c0 55%, var(--tan) 100%);
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.35rem;
  color: var(--slate-deep);
  letter-spacing: 0.5px;
  text-align: center;
  transition: filter 0.5s ease;
}
.work-card:hover .work-thumb { filter: saturate(1.15) brightness(1.03); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.work-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 34px 34px;
}
.work-client {
  font-family: 'Gloock', Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.2;
  color: var(--slate-deep);
  margin: 0 0 0.15em;
}
.work-sector {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: lowercase;
  color: var(--terracotta);
  margin-bottom: 1em;
}
.work-body p { font-size: 0.95rem; margin-bottom: 1.4em; }

.work-tags {
  list-style: none;
  padding: 0;
  margin: auto 0 1.4em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-tags li {
  font-size: 0.74rem;
  letter-spacing: 0.6px;
  text-transform: lowercase;
  background: var(--cream-alt);
  color: var(--slate-deep);
  padding: 5px 12px;
  border-radius: 999px;
}

.work-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--terracotta);
  align-self: flex-start;
  transition: color 0.25s ease, gap 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.work-link:hover { color: var(--terracotta-deep); gap: 12px; }
.work-link .arrow { transition: transform 0.25s ease; }
.work-link:hover .arrow { transform: translateX(2px); }

.work-closing { text-align: center; margin-top: 3.2em; }
.work-closing p { max-width: 520px; margin: 0 auto 1.4em; }

/* The nav gained a sixth item with the Vårt arbete page — tighten it slightly on
   narrower desktops so it never collides with the logo or the language toggle. */
@media (max-width: 1240px) {
  .nav-links { gap: 26px; font-size: 18px; }
}
@media (max-width: 900px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-body { padding: 28px 26px 30px; }
  .work-thumb { min-height: 150px; font-size: 1.15rem; }
}
