/* Javi Säule — light sage & airy blue accents */

:root {
  --page-max: 1024px;
  --green-800: #4d7268;
  --green-700: #5c8579;
  --green-600: #6d9a8a;
  --teal-700: #4f7a82;
  --blue-600: #6a8faf;
  --blue-500: #7c9db8;
  --blue-100: #e8f1f7;
  --blue-50: #f2f7fb;
  --cream: #f7faf9;
  --cream-mist: #eef6f4;
  --panel-light: #eef4f8;
  --text-on-dark: #f4fafc;
  --text-on-light: #2a3836;
  --text-muted: #5a6f6d;
  --text-muted-on-panel: #4d6168;
  --border: rgba(90, 130, 125, 0.22);
  --border-strong: rgba(74, 118, 132, 0.28);
  --header-h: 4.25rem;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --hero-gradient: linear-gradient(150deg, #3f635c 0%, #4a6d78 42%, #557d8f 100%);
  --split-left-gradient: linear-gradient(165deg, #3d5e58 0%, #456a72 55%, #4d7586 100%);
  --focus-ring: #5a8daa;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn--primary {
    transition: none;
  }

  .btn--primary:hover {
    transform: none;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-on-light);
  background: linear-gradient(
    165deg,
    var(--cream-mist) 0%,
    var(--blue-50) 38%,
    #f0f7f4 100%
  );
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-height: 100vh;
}

/* Centered column, max 1024px */
.page {
  max-width: var(--page-max);
  margin: 0 auto;
  background: var(--cream);
  box-shadow: 0 0 0 1px rgba(80, 120, 115, 0.08), 0 12px 40px rgba(45, 80, 90, 0.08);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page > main {
  flex: 1;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
}

.site-footer__nav a[aria-current="page"] {
  color: var(--text-on-light);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  background: rgba(247, 250, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(74, 118, 132, 0.08), 0 10px 28px rgba(45, 90, 95, 0.07);
}

.site-logo {
  font-weight: 700;
  font-size: clamp(0.75rem, 1.4vw, 0.9rem);
  letter-spacing: 0.1em;
  color: var(--teal-700);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  font-size: clamp(0.58rem, 1.8vw, 0.72rem);
  font-weight: 500;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
  color: var(--blue-600);
}

/* Section label */
.section-label {
  margin: 0 0 1.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

.section-label--on-dark {
  color: rgba(244, 250, 252, 0.78);
}

.section-label--on-light-panel {
  margin-bottom: 1rem;
  color: var(--text-muted-on-panel);
}

/* Readable body copy */
.prose {
  text-transform: none;
  letter-spacing: 0.01em;
}

.prose p {
  margin: 0 0 1.1rem;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.62;
  color: inherit;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-on-light);
}

/* Hero */
.hero {
  min-height: calc(100svh - var(--header-h));
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--hero-gradient);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero__title {
  margin: 0 0 clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  font-size: clamp(1.85rem, 7vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  max-width: 18ch;
}

.hero__line {
  display: block;
}

.hero__intro {
  max-width: 38rem;
  color: rgba(244, 250, 252, 0.95);
}

.hero__intro p {
  color: rgba(244, 250, 252, 0.9);
}

/* What we do */
.what-we-do {
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, #fafcfb 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--border);
}

.what-we-do__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.35rem, 2.5vw, 2rem);
}

@media (max-width: 900px) {
  .what-we-do__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .what-we-do__grid {
    grid-template-columns: 1fr;
  }
}

.what-we-do__num {
  display: block;
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: 0.02em;
  color: var(--teal-700);
  margin-bottom: 0.65rem;
}

.what-we-do__name {
  margin: 0 0 0.75rem;
  font-size: clamp(0.72rem, 1.6vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.35;
}

.what-we-do__text {
  margin: 0;
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-weight: 400;
  line-height: 1.58;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  text-transform: none;
}

/* Examples + how we work (split) */
.split-work {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: min(62vh, 38rem);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 720px) {
  .split-work {
    grid-template-columns: 1fr;
  }
}

.split-work__left {
  background: var(--split-left-gradient);
  color: var(--text-on-dark);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
}

.split-work__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.2;
  color: var(--text-on-dark);
}

.split-work__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  flex: 1;
}

.split-work__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: clamp(0.7rem, 1.5vw, 0.95rem) 0;
  font-size: clamp(0.78rem, 1.5vw, 0.88rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: rgba(244, 250, 252, 0.94);
  text-transform: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.split-work__list li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.32rem;
  height: 0.32rem;
  background: var(--blue-500);
  border-radius: 2px;
  box-shadow: 0 0 0 2px rgba(124, 157, 184, 0.35);
}

.split-work__right {
  background: linear-gradient(160deg, var(--panel-light) 0%, var(--blue-100) 100%);
  padding: clamp(2rem, 5vw, 3.25rem) clamp(1rem, 3vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.split-work__headline {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--teal-700);
  max-width: 24ch;
}

.split-work__body p {
  margin: 0;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem);
  color: var(--text-on-light);
}

/* Contact */
.contact {
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1rem, 3vw, 1.5rem);
  background: linear-gradient(180deg, #fafcfb 0%, var(--cream-mist) 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact .section-label {
  margin-bottom: 0.75rem;
}

.contact__title {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  text-transform: none;
  color: var(--teal-700);
}

.contact__email {
  margin: 0 0 1.75rem;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.contact__email a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact__email a:hover {
  color: var(--teal-700);
}

.btn {
  display: inline-block;
  padding: 0.95rem 2rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  border-radius: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-700) 0%, var(--teal-700) 55%, #4d7a8a 100%);
  color: var(--text-on-dark);
  box-shadow: 0 4px 14px rgba(61, 100, 105, 0.28);
}

.btn--primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(61, 100, 115, 0.32);
}

.contact__address {
  margin: 2rem 0 0;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.85;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.1rem clamp(1rem, 3vw, 1.5rem);
  background: rgba(247, 250, 249, 0.98);
  border-top: 1px solid var(--border);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.site-footer__nav a:hover {
  color: var(--blue-600);
}

/* Legal subpages */
.legal-page {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(
    165deg,
    var(--cream-mist) 0%,
    var(--blue-50) 40%,
    #f0f7f4 100%
  );
}

.legal-page .page {
  min-height: 100vh;
}

.legal-main {
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1rem, 3vw, 1.5rem);
}

.legal-main h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--teal-700);
}

.legal-main .lede {
  margin: 0 0 1.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0.03em;
}

.legal-main h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--green-800);
}

.legal-main p {
  margin: 0 0 0.9rem;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.65;
  color: var(--text-on-light);
}

.legal-main ul {
  margin: 0 0 0.9rem 1.1rem;
  padding: 0;
  font-size: 0.875rem;
  text-transform: none;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
