/* ============================================================
   Miljö Cykel i Linköping — "Kretslopp" design system
   Palette: warm paper + brand green + deep green-black
   Type: Bricolage Grotesque (display) + Inter (body)
   ============================================================ */

:root {
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Light theme tokens */
  --paper: #f4f1ea;
  --paper-soft: #ece7dc;
  --ink: #1b2a1e;
  --ink-soft: #4a554a;
  --line: #d8d2c4;
  --green: #35703d;      /* brand green — primary accent */
  --green-deep: #1d4a24;
  --green-soft: #e4eee2;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(27, 42, 30, 0.14);

  /* Fixed dark surfaces (footer, hero-media, stat band) — stay dark in both themes */
  --navy: #12240f;
  --navy-2: #0c1a0b;
  --on-dark: #f0eadc;
  --on-dark-soft: #c3c9b4;

  color-scheme: light;
  font-family: var(--font-body);
}

html[data-theme="dark"] {
  --paper: #0f1a10;
  --paper-soft: #142214;
  --ink: #e9e4d3;
  --ink-soft: #aab3a2;
  --line: #2a3a27;
  --green: #6db45a;
  --green-deep: #7cc268;
  --green-soft: #16261a;
  --white: #1a2619;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 6px 0;
  z-index: 100;
  text-decoration: none;
}
.skip:focus {
  left: 0;
}

.container {
  width: min(1120px, 100% - 3rem);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.btn-primary {
  background: var(--green);
  color: #fff;
}
html[data-theme="dark"] .btn-primary {
  background: #2c6b36; /* darker green in dark mode so white text keeps AA contrast */
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--green-deep);
  transform: translateY(-1px);
}
html[data-theme="dark"] .btn-primary:hover {
  background: #357c41;
}
.btn-ghost {
  border: 1px solid var(--ink-soft);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--green-soft);
}
.btn:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.btn-tel {
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  flex: none;
}
.brand-logo {
  height: 52px;
  width: auto;
}
.site-nav {
  margin-left: auto;
}
.site-nav ul {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover {
  color: var(--green);
  border-bottom-color: var(--green);
}
.header-cta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-decoration: none;
  color: #fff;
  background: var(--green);
  border-radius: 10px;
  padding: 0.5rem 1.1rem;
  align-items: center;
  flex: none;
  transition: background 0.18s ease, transform 0.18s ease;
}
.header-cta:hover {
  background: var(--green-deep, #1f7a3d);
  transform: translateY(-1px);
}
html[data-theme="dark"] .header-cta {
  background: #2c6b36; /* darker green in dark mode so white text keeps AA contrast */
}
html[data-theme="dark"] .header-cta:hover {
  background: #357c41;
}
.cta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
}
.cta-num {
  font-weight: 700;
  font-size: 1.02rem;
  color: #fff;
  white-space: nowrap;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 4rem 1.5rem 5.5rem;
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 1.25rem;
}
.eyebrow-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}
.hero-h {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero-h em {
  font-style: normal;
  color: var(--green);
  position: relative;
  white-space: nowrap;
}
.hero-h em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.55em;
  background: var(--green-soft);
  z-index: -1;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.hero-points li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}
.hero-media {
  position: relative;
}
.hero-frame {
  position: relative;
  border-radius: 18px;
  overflow: visible;
}
.hero-frame img {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 3px solid var(--green);
  transform: translate(14px, 14px);
  z-index: -1;
}
.hero-badge {
  position: absolute;
  bottom: 1.4rem;
  left: -2.2rem;
  background: var(--navy);
  color: var(--on-dark);
  border-radius: 14px;
  padding: 1rem 1.25rem 1rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
  max-width: 15rem;
}
.badge-icon {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--green);
}
.badge-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.25;
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 5.5rem 0;
}
.sec-head {
  max-width: 40rem;
  margin-bottom: 3rem;
}
.sec-head--center {
  margin-inline: auto;
  text-align: center;
}
.sec-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-sub {
  color: var(--ink-soft);
  margin-top: 0.75rem;
  font-size: 1.08rem;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--shadow);
}
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--green);
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
}
.pillar-icon svg {
  width: 26px;
  height: 26px;
}
.pillar-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.pillar-desc {
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
  margin-bottom: 1.25rem;
}
.pillar-cta {
  font-weight: 600;
  color: var(--green);
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}
.pillar-cta span {
  transition: transform 0.15s ease;
}
.pillar:hover .pillar-cta span {
  transform: translateX(4px);
}

/* ---------- Stat band ---------- */
.statband {
  background: var(--navy);
  color: var(--on-dark);
  padding: 3.5rem 0;
}
.statband-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: center;
}
.statband-big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--green);
  white-space: nowrap;
}
.statband-text {
  font-size: 1.25rem;
  color: var(--on-dark-soft);
  max-width: 34rem;
}
.statband-text strong {
  color: var(--on-dark);
}

/* ---------- About ---------- */
.about {
  padding: 5.5rem 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-media {
  position: relative;
}
.about-media img {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.about-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 3px solid var(--green);
  transform: translate(-14px, 14px);
  z-index: -1;
}
.about-caption {
  margin-top: 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.about-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.about-p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  font-size: 1.05rem;
  max-width: 34rem;
}
.about-meta {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
  padding: 0.9rem 1.1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.5rem 0 1.75rem;
  color: var(--ink);
}

/* ---------- Workshop ---------- */
.workshop {
  background: var(--paper-soft);
  padding: 5.5rem 0;
}
.price-grid {
  max-width: 720px;
  margin-inline: auto;
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px dashed var(--line);
}
.price-row:first-child {
  border-top: 1px solid var(--line);
}
.price-name {
  font-weight: 500;
  color: var(--ink);
}
.price-dots {
  flex: 1;
  border-bottom: 2px dotted var(--ink-soft);
  opacity: 0.5;
}
.price-amt {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--green);
  white-space: nowrap;
}
.price-note {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.workshop-foot {
  max-width: 720px;
  margin-inline: auto;
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.5rem;
  align-items: center;
}
.workshop-foot img {
  border-radius: 14px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.workshop-note {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- Rent ---------- */
.rent {
  padding: 5.5rem 0;
}
.rent-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.rent-copy {
  order: 1;
}
.rent-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.1rem;
}
.rent-p {
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 1.5rem;
  max-width: 34rem;
}
.rent-list {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.rent-list li {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--ink);
}
.rent-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}
.rent-media img {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* ---------- Contact ---------- */
.contact {
  padding: 0 0 5.5rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}
.contact-card {
  background: var(--navy);
  color: var(--on-dark);
  border-radius: 18px;
  padding: 2.75rem;
}
.contact-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  color: var(--on-dark);
  margin-bottom: 1rem;
}
.contact-p {
  color: var(--on-dark-soft);
  margin-bottom: 1.75rem;
  max-width: 30rem;
}
.contact-tel {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: var(--green);
  text-decoration: none;
  margin-bottom: 0.4rem;
}
.contact-tel:hover {
  color: var(--on-dark);
}
.contact-mail {
  color: var(--on-dark-soft);
  text-decoration: underline;
}
.contact-info {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}
.ci-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.ci p {
  color: var(--ink-soft);
  line-height: 1.5;
}
.ci a {
  color: var(--ink);
  text-decoration: underline;
}
.ci a:hover {
  color: var(--green);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-2);
  color: var(--on-dark-soft);
  padding: 3.5rem 1.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1200px;
  margin-inline: auto;
}
.footer-logo {
  height: 60px;
  width: auto;
  margin-bottom: 1rem;
}
.footer-tagline {
  color: var(--on-dark-soft);
  max-width: 22rem;
}
.footer-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-dark);
  margin-bottom: 0.9rem;
}
.footer-col p {
  line-height: 1.7;
}
.footer-col a {
  color: var(--on-dark-soft);
  text-decoration: underline;
}
.footer-col a:hover {
  color: var(--green);
}
.footer-social a {
  text-decoration: none;
}
.footer-bottom {
  max-width: 1200px;
  margin-inline: auto;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 0.88rem;
  color: var(--on-dark-soft);
}

/* ---------- 404 ---------- */
.nfp {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}
.nfp-inner {
  text-align: center;
}
.nfp-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 6rem;
  line-height: 1;
  color: var(--green);
}
.nfp-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--ink);
  margin: 0.5rem 0;
}
.nfp-p {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}
.nfp-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner,
  .rent-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero-media {
    order: -1;
  }
  .hero-frame::before {
    transform: translate(10px, 10px);
  }
  .hero-badge {
    left: auto;
    right: 1.4rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .workshop-foot {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .site-nav {
    display: none;
  }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem;
  }
  .site-nav.is-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .site-nav.is-open a {
    display: block;
    padding: 0.6rem 0;
    width: 100%;
    font-size: 1.05rem;
  }
  .nav-toggle {
    display: flex;
  }
  .header-cta {
    margin-right: auto;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 1rem;
    padding-inline: 1rem;
  }
  .brand-logo {
    height: 42px;
  }
  .cta-label {
    display: none;
  }
  .cta-num {
    font-size: 0.95rem;
  }
  .statband-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contact-card {
    padding: 2rem;
  }
  .contact-tel {
    font-size: 1.6rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-h {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }
  .hero-badge {
    max-width: 13rem;
    bottom: 1rem;
    right: 0.5rem;
    padding: 0.85rem 1rem;
  }
}
