/* =========================================================
   Trähem — fastighetsutveckling för framtiden
   Design system: "Varm nordisk träarkitektur"
   ========================================================= */

:root {
  /* --- Färg --- */
  --forest-950: #16200f;
  --forest-900: #1e2b17;
  --forest-800: #2c3d22;
  --forest-600: #4e6d43;
  --brand: #556e46;
  --forest-400: #7d9a6c;
  --lime: #e5e354;
  --lime-deep: #c9c73f;
  --sand-50: #fbf8f1;
  --sand-100: #f5efe2;
  --sand-200: #ebe3d1;
  --sand-300: #ddd2ba;
  --clay: #6d454c;
  --clay-dark: #55353b;
  --honey: #fae27b;
  --ink: #1a1a17;
  --ink-70: rgba(26, 26, 23, 0.7);
  --ink-50: rgba(26, 26, 23, 0.5);

  --bg: var(--sand-50);
  --fg: var(--ink);

  /* --- Typografi --- */
  --font-display: "Chillax", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, -apple-system, sans-serif;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --text-base: clamp(1rem, 0.97rem + 0.2vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.5rem, 1.25rem + 1.1vw, 2.125rem);
  --text-2xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --text-3xl: clamp(2.4rem, 1.5rem + 3.4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1.4rem + 4.6vw, 5.75rem);

  /* --- Rytm --- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shell: 1320px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --section-y: clamp(4rem, 8vw, 8.5rem);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 1px 2px rgba(22, 32, 15, 0.06), 0 4px 14px rgba(22, 32, 15, 0.05);
  --shadow-lg: 0 20px 60px -20px rgba(22, 32, 15, 0.28);
}

/* =========================================================
   Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
p:last-child {
  margin-bottom: 0;
}
::selection {
  background: var(--lime);
  color: var(--forest-950);
}
:focus-visible {
  outline: 2.5px solid var(--forest-600);
  outline-offset: 3px;
  border-radius: 3px;
}

/* =========================================================
   Layout
   ========================================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow {
  max-width: 860px;
}
section {
  position: relative;
}
.section {
  padding-block: var(--section-y);
}
.section--tight {
  padding-block: clamp(2rem, 3.4vw, 3.25rem);
}
.dark {
  background: var(--forest-900);
  color: var(--sand-100);
}
.dark h1,
.dark h2,
.dark h3 {
  color: var(--sand-50);
}
.sand {
  background: var(--sand-100);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 3rem);
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 900px) {
  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 720px) {
  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Typografi-hjälpare
   ========================================================= */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-600);
}
.dark .kicker {
  color: var(--lime);
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.h-display {
  font-size: clamp(1.75rem, 1.15rem + 2.2vw, 2.9rem);
}
.h-section {
  font-size: var(--text-xl);
}
.lead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--ink-70);
  max-width: 62ch;
}
.dark .lead {
  color: rgba(245, 239, 226, 0.78);
}
.prose p {
  max-width: 68ch;
}
.muted {
  color: var(--ink-50);
  font-size: var(--text-sm);
}
.dark .muted {
  color: rgba(245, 239, 226, 0.6);
}

/* =========================================================
   Knappar
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.95em 1.6em;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn .arw {
  transition: transform 0.35s var(--ease);
}
.btn:hover .arw {
  transform: translateX(4px);
}
.btn--primary {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--clay-dark);
}
.btn--lime {
  background: var(--lime);
  color: var(--forest-950);
}
.btn--lime:hover {
  background: #eeec6e;
}
.btn--ghost {
  border: 1.5px solid currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: var(--forest-900);
  color: var(--sand-50);
  border-color: var(--forest-900);
}
.dark .btn--ghost:hover {
  background: var(--sand-50);
  color: var(--forest-950);
  border-color: var(--sand-50);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 600;
  font-size: var(--text-sm);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease);
}
.link-arrow:hover {
  gap: 0.9em;
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 248, 241, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.header.is-scrolled {
  border-color: var(--sand-300);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  min-height: 82px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.logo__dot {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--brand);
  margin-left: 0.2em;
  vertical-align: 0.02em;
}
.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo__word {
  font-family: var(--font-body);
  font-size: 1.72rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo__sub {
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-top: 3px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
}
.nav > .btn {
  display: none;
}
.nav a {
  position: relative;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 0.4em 0;
  color: var(--ink-70);
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1.5px;
  background: var(--forest-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--forest-950);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}
.header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--sand-300);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--forest-950);
  transition: transform 0.35s var(--ease), opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.6px) rotate(-45deg);
}

@media (max-width: 1000px) {
  .burger {
    display: flex;
  }
  .nav {
    position: fixed;
    inset: 82px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--sand-50);
    border-bottom: 1px solid var(--sand-300);
    padding: var(--space-4) var(--gutter) var(--space-8);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.5s var(--ease);
  }
  .nav.is-open {
    clip-path: inset(0 0 0 0);
  }
  .nav a {
    width: 100%;
    padding: 0.85em 0;
    font-size: var(--text-lg);
    font-family: var(--font-display);
    border-bottom: 1px solid var(--sand-200);
  }
  .header__cta .btn {
    display: none;
  }
  .nav > .btn {
    display: inline-flex;
    margin-top: var(--space-4);
    border: 0;
    color: #fff;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    width: auto;
    padding: 1em 1.7em;
  }
  .nav > .btn::after {
    display: none;
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  min-height: min(88svh, 820px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--forest-950);
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  animation: heroDrift 22s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  to {
    transform: scale(1.14) translate3d(-1.5%, -1%, 0);
  }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(15, 22, 10, 0.92) 0%, rgba(15, 22, 10, 0.62) 38%, rgba(15, 22, 10, 0.22) 75%, rgba(15, 22, 10, 0.3) 100%);
}
.hero__inner {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 4vw, 3.5rem);
  color: var(--sand-50);
}
.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: 0.92;
  color: var(--sand-50);
  max-width: 17ch;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal;
  color: var(--lime);
}
.hero__lead {
  margin-top: var(--space-6);
  max-width: 46ch;
  font-size: var(--text-lg);
  color: rgba(251, 248, 241, 0.85);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-8);
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-top: var(--space-12);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 248, 241, 0.65);
}
.hero__scroll i {
  display: block;
  width: 1px;
  height: 34px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  animation: scrollPulse 2.4s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%,
  100% {
    transform: scaleY(0.4);
    transform-origin: top;
    opacity: 0.4;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* Hero för undersidor */
.pagehero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--forest-900);
  color: var(--sand-50);
  overflow: hidden;
}
.pagehero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}
.pagehero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20, 30, 15, 0.9) 0%, rgba(20, 30, 15, 0.35) 60%, transparent 100%);
}
.pagehero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pagehero .shell {
  position: relative;
}
.pagehero h1 {
  font-size: var(--text-3xl);
  max-width: 22ch;
  color: var(--sand-50);
  line-height: 0.95;
}
.pagehero .lead {
  margin-top: var(--space-6);
}
.pagehero .lead {
  color: rgba(251, 248, 241, 0.84);
}
.crumbs {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-4);
}
.crumbs a:hover {
  text-decoration: underline;
}

/* =========================================================
   Marquee
   ========================================================= */
.marquee {
  overflow: hidden;
  background: var(--lime);
  color: var(--forest-950);
  padding-block: 0.7rem;
  border-block: 1px solid var(--lime-deep);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 38s linear infinite;
}
.marquee__track span {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.marquee__track span::after {
  content: "●";
  font-size: 0.5em;
  opacity: 0.55;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}

/* =========================================================
   Statistik
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--sand-300);
  padding-inline: max(var(--space-6), calc((100vw - var(--shell)) / 2));
}
.dark .stats {
  border-color: rgba(245, 239, 226, 0.16);
}
.stat {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2vw, 1.75rem);
  border-left: 1px solid var(--sand-300);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.dark .stat {
  border-color: rgba(245, 239, 226, 0.16);
}
.stat__num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--forest-800);
}
.dark .stat__num {
  color: var(--lime);
}
.stat__label {
  margin-top: 0.75rem;
  font-size: var(--text-sm);
  color: var(--ink-70);
  max-width: 24ch;
}
.dark .stat__label {
  color: rgba(245, 239, 226, 0.72);
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--sand-300);
  }
  .dark .stat:nth-child(n + 3) {
    border-top-color: rgba(245, 239, 226, 0.16);
  }
}

/* =========================================================
   Projektkort
   ========================================================= */
.project {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.project + .project {
  margin-top: clamp(3.5rem, 7vw, 7rem);
  padding-top: clamp(3.5rem, 7vw, 7rem);
  border-top: 1px solid var(--sand-300);
}
.dark .project + .project {
  border-color: rgba(245, 239, 226, 0.16);
}
.project--flip .project__media {
  order: 2;
}
@media (max-width: 860px) {
  .project {
    grid-template-columns: 1fr;
  }
  .project--flip .project__media {
    order: 0;
  }
}
.project__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--sand-200);
}
.project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover .project__media img {
  transform: scale(1.05);
}
.project__body h3 {
  font-size: var(--text-xl);
  margin-top: 0.35em;
}
.project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-5, 1.25rem) 0 var(--space-4);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.42em 0.9em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--sand-300);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-70);
  background: rgba(255, 255, 255, 0.5);
}
.dark .tag {
  border-color: rgba(245, 239, 226, 0.25);
  color: rgba(245, 239, 226, 0.8);
  background: transparent;
}
.tag--live {
  background: var(--lime);
  border-color: var(--lime-deep);
  color: var(--forest-950);
}
.tag--live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clay);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.project__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: var(--space-4) var(--space-4);
  margin: var(--space-6) 0;
  padding-block: var(--space-4);
  border-block: 1px solid var(--sand-200);
}
.dark .project__facts {
  border-color: rgba(245, 239, 226, 0.16);
}
.fact dt {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-50);
  margin-bottom: 0.25em;
}
.dark .fact dt {
  color: rgba(245, 239, 226, 0.55);
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  text-wrap: balance;
}

/* Featured projekt (VYN) */
.spotlight {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--sand-50);
  isolation: isolate;
  min-height: min(78svh, 760px);
  display: flex;
  align-items: flex-end;
}
.spotlight__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.spotlight__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.spotlight:hover .spotlight__bg img {
  transform: scale(1.04);
}
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    115deg,
    rgba(20, 28, 14, 0.9) 0%,
    rgba(20, 28, 14, 0.62) 45%,
    rgba(20, 28, 14, 0.12) 100%
  );
}
.spotlight .tag {
  color: var(--sand-50);
  border-color: rgba(251, 248, 241, 0.4);
  background: rgba(18, 26, 12, 0.45);
  backdrop-filter: blur(6px);
}
.spotlight .tag--live {
  color: var(--forest-950);
  background: var(--lime);
  border-color: var(--lime-deep);
}
.spotlight__inner {
  padding: clamp(1.75rem, 4vw, 3.5rem);
  max-width: 720px;
}
.spotlight__logo {
  height: clamp(38px, 5vw, 58px);
  width: auto;
  margin-bottom: var(--space-6);
  filter: brightness(0) invert(1);
}
.spotlight h2 {
  font-size: var(--text-2xl);
  color: var(--sand-50);
  line-height: 0.98;
}
.spotlight p {
  margin-top: var(--space-4);
  max-width: 48ch;
  color: rgba(251, 248, 241, 0.86);
}

/* =========================================================
   Bildbandet / galleri
   ========================================================= */
.strip {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.5rem, 1vw, 1rem);
}
.strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--sand-200);
}
.strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.strip figure:hover img {
  transform: scale(1.06);
}
.strip .s-6 {
  grid-column: span 6;
  aspect-ratio: 16 / 11;
}
.strip .s-4 {
  grid-column: span 4;
  aspect-ratio: 4 / 5;
}
.strip .s-3 {
  grid-column: span 3;
  aspect-ratio: 3 / 4;
}
.strip .s-5 {
  grid-column: span 5;
  aspect-ratio: 4 / 3;
}
.strip .s-7 {
  grid-column: span 7;
  aspect-ratio: 16 / 10;
}
.strip .s-12 {
  grid-column: span 12;
  aspect-ratio: 21 / 8;
}
@media (max-width: 760px) {
  .strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .strip figure {
    grid-column: span 1 !important;
    aspect-ratio: 1 !important;
  }
  .strip .s-12,
  .strip .s-6:first-child {
    grid-column: span 2 !important;
    aspect-ratio: 16 / 10 !important;
  }
}

/* =========================================================
   Kort
   ========================================================= */
.card {
  background: var(--bg);
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  height: 100%;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease),
    border-color 0.45s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--sand-300);
}
.dark .card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(245, 239, 226, 0.14);
}
.card h3 {
  font-size: var(--text-lg);
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.5em;
}
.card__icon {
  width: 40px;
  height: 40px;
  color: var(--forest-600);
  margin-bottom: var(--space-5, 1.25rem);
}
.dark .card__icon {
  color: var(--lime);
}
.card p {
  font-size: var(--text-sm);
  color: var(--ink-70);
}
.dark .card p {
  color: rgba(245, 239, 226, 0.75);
}

/* Numrerade steg */
.steps {
  counter-reset: step;
  display: grid;
  gap: 1px;
  background: var(--sand-300);
  border-block: 1px solid var(--sand-300);
}
.step {
  counter-increment: step;
  background: var(--bg);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  align-items: start;
}
.step__no::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--forest-400);
}
.step h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: 0.4em;
}
.step p {
  font-size: var(--text-sm);
  color: var(--ink-70);
  max-width: 62ch;
}
@media (max-width: 620px) {
  .step {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* =========================================================
   Team
   ========================================================= */
.person {
  position: relative;
}
.person__img {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 1;
  background: var(--sand-200);
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.6s var(--ease);
}
.person:hover .person__img {
  filter: grayscale(0);
}
.person__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.person:hover .person__img img {
  transform: scale(1.04);
}
.person h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  margin-top: var(--space-4);
}
.person__role {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-top: 0.35em;
}
.person p.bio {
  font-size: var(--text-sm);
  color: var(--ink-70);
  margin-top: 0.8em;
}
.person a.mail {
  font-size: var(--text-sm);
  color: var(--forest-600);
  border-bottom: 1px solid rgba(78, 109, 67, 0.35);
  display: inline-block;
  margin-top: 0.6em;
  word-break: break-word;
}
.person a.mail:hover {
  border-color: currentColor;
}

/* =========================================================
   Citat
   ========================================================= */
.quoteblock {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .quoteblock {
    grid-template-columns: 1fr;
  }
}
.quote {
  max-width: 24ch;
}
@media (max-width: 860px) {
  .quote,
  .quote--wide {
    max-width: none;
  }
}
blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.quote--wide {
  max-width: 34ch;
}
cite {
  display: block;
  margin-top: var(--space-6);
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--ink-50);
}
.dark cite {
  color: rgba(245, 239, 226, 0.6);
}

/* =========================================================
   Split-sektion (bild + text)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
  }
}
.split__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--sand-200);
}
.split__media--wide {
  aspect-ratio: 4 / 3;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   Formulär
   ========================================================= */
.form {
  display: grid;
  gap: var(--space-4);
}
.field {
  display: grid;
  gap: 0.4rem;
}
.field label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-70);
}
.dark .field label {
  color: rgba(245, 239, 226, 0.7);
}
.field input,
.field textarea,
.field select {
  font: inherit;
  font-size: var(--text-sm);
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  border: 1.5px solid var(--sand-300);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  width: 100%;
}
.dark .field input,
.dark .field textarea,
.dark .field select {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(245, 239, 226, 0.22);
  color: var(--sand-50);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(78, 109, 67, 0.16);
}
.field textarea {
  min-height: 140px;
  resize: vertical;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 620px) {
  .form__row {
    grid-template-columns: 1fr;
  }
}
.form__note {
  font-size: var(--text-xs);
  color: var(--ink-50);
}
.dark .form__note {
  color: rgba(245, 239, 226, 0.55);
}
.form__status {
  font-size: var(--text-sm);
  padding: 0.9em 1.1em;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--forest-950);
  display: none;
}
.form__status.is-visible {
  display: block;
}

/* =========================================================
   CTA-band
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--forest-950);
  color: var(--sand-50);
}
.cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.22;
}
.cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta .shell {
  position: relative;
}
.cta h2 {
  font-size: var(--text-2xl);
  max-width: 26ch;
  color: var(--sand-50);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--forest-950);
  color: rgba(251, 248, 241, 0.72);
  padding-block: clamp(3rem, 6vw, 5rem) var(--space-8);
  font-size: var(--text-sm);
}
.footer a:hover {
  color: var(--lime);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}
.footer .logo__word {
  color: var(--sand-50);
}
.footer .logo__dot {
  background: var(--lime);
}
.footer .logo__sub {
  color: rgba(251, 248, 241, 0.5);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: var(--space-4);
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}
.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: var(--space-6);
  border-top: 1px solid rgba(251, 248, 241, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-8);
  justify-content: space-between;
  font-size: var(--text-xs);
  color: rgba(251, 248, 241, 0.5);
}

/* =========================================================
   Scroll-reveal (utan layout shift)
   ========================================================= */
.reveal {
  opacity: 1;
}
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transition:
      opacity 0.9s var(--ease),
      filter 0.9s var(--ease);
    filter: blur(6px);
  }
  .js .reveal.is-in {
    opacity: 1;
    filter: blur(0);
  }
  .js .reveal[data-delay="1"] {
    transition-delay: 0.09s;
  }
  .js .reveal[data-delay="2"] {
    transition-delay: 0.18s;
  }
  .js .reveal[data-delay="3"] {
    transition-delay: 0.27s;
  }
  .js .reveal[data-delay="4"] {
    transition-delay: 0.36s;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* Diskret trä-ådring som sektionsdekor */
.rings {
  position: absolute;
  right: -8%;
  top: -10%;
  width: min(46vw, 560px);
  opacity: 0.14;
  color: var(--forest-600);
  pointer-events: none;
}
.dark .rings {
  color: var(--lime);
  opacity: 0.1;
}


/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-50);
  white-space: nowrap;
}
.lang-switch__link {
  padding: 0.35em 0.1em;
}
.lang-switch__link:hover,
.lang-switch__link.is-active {
  color: var(--forest-950);
}
.lang-switch__link.is-active {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
}
@media (max-width: 1000px) {
  .header__inner {
    gap: var(--space-3);
  }
  .lang-switch {
    margin-left: auto;
  }
}
