/* /poistopalvelu/ page styles — recreated from the design handoff
   ("Muutto365 Poistopalvelu.html"): tokens, type, spacing and breakpoints are
   the handoff's own. The booking app's dynamic parts (calendar, detected-item
   pills, photo thumbnails, outcome panels, modal PDF frame) are styled in
   poisto-app.css next to the script that renders them. */

:root {
  --navy: #0a0f1a;
  --navy-soft: #141b2b;
  --cream: #faf6ef;
  --orange: #f36f21;
  --orange-hover: #d95e14;
  --ink: #181c22;
  /* Raised from 0.82: the site's primary audience skews older, and
     secondary copy on the dark sections needs to read easily without
     hunting for it against the navy background. */
  --dim-on-navy: rgba(245, 244, 239, 0.95);
  --dim-on-cream: rgba(24, 28, 34, 0.7);
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
}

/* The design's exact orange, for browsers that parse oklch; the hex above is
   its sRGB fallback. */
@supports (color: oklch(0.68 0.19 45)) {
  :root {
    --orange: oklch(0.68 0.19 45);
    --orange-hover: oklch(0.6 0.19 45);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--orange);
  text-decoration: none;
}

a:hover {
  color: var(--orange-hover);
}

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

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus {
  top: var(--space-3);
  color: #fff;
}

/* !important throughout: component rules such as `.field input { width: 100% }`
   are more specific and would otherwise re-expand a hidden control past the
   viewport edge. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 50;
}

.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: block;
  flex: none;
}

.wordmark {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 20px;
  color: var(--ink);
}

.wordmark .accent {
  color: var(--orange);
}

.hdr-right {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.hdr-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
}

.hdr-nav a {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--dim-on-cream);
}

.hdr-nav a:hover {
  color: var(--ink);
}

.hdr-nav a.active {
  color: var(--orange);
  font-weight: 700;
}

.loc-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--dim-on-cream);
  text-transform: uppercase;
  display: none;
}

@media (min-width: 800px) {
  .loc-tag {
    display: inline;
  }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn-primary,
.btn-primary-onlight,
.btn-secondary {
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  transition:
    transform 0.15s,
    border-color 0.2s,
    color 0.2s,
    opacity 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: var(--navy);
}

.btn-primary:hover {
  color: var(--navy);
}

.btn-primary-onlight {
  background: var(--navy);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

.btn-secondary.on-cream {
  color: var(--ink);
  border-color: rgba(24, 28, 34, 0.25);
}

.btn-primary:hover,
.btn-primary-onlight:hover {
  transform: translateY(-1px);
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.btn-primary:disabled,
.btn-primary-onlight:disabled,
.btn-secondary:disabled {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.hdr-cta {
  padding: 11px 28px;
  font-size: 14px;
}

.btn-hero {
  padding: 18px 28px;
  font-size: 17px;
}

.btn-hero-secondary {
  padding: 17px 27px;
  font-size: 16px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
main {
  background: var(--navy);
}

.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  /* Full viewport width, as in the design: the photo bleeds to the right
     edge. No max-width: .hero-copy's padding below is measured from 100vw,
     so a capped grid squeezed the copy and the photo on screens > 1440px. */
  align-items: stretch;
}

/* One breakpoint for the whole page, as the handoff specifies: 800px, where
   the header switches to the hamburger too. At 900 the hero stacked into the
   phone layout while the header was still desktop. */
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  padding: var(--space-7) var(--space-6) var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  justify-content: center;
}

@media (min-width: 1290px) {
  .hero-copy {
    padding-left: max(var(--space-4), calc((100vw - 1240px) / 2 + var(--space-4)));
  }
}

.hero-photo {
  position: relative;
  min-height: 420px;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 30%;
}

.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, transparent 12%);
}

@media (max-width: 800px) {
  .hero-photo::after {
    background: linear-gradient(180deg, transparent 0%, var(--navy) 100%);
  }

  .hero-photo {
    min-height: 340px;
    order: -1;
  }
}

h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
}

h1 .hi {
  color: var(--orange);
}

.lead {
  color: var(--dim-on-navy);
  font-size: 1.15rem;
  max-width: 46ch;
  line-height: 1.55;
}

.services {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  list-style: none;
}

.service {
  display: flex;
  align-items: center;
  gap: 14px;
}

.service .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 13px;
  flex: none;
}

.service .label {
  font-weight: 600;
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: 6px;
}

.trust {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim-on-navy);
}

/* ── Sections ───────────────────────────────────────────────────────────── */
section {
  padding: var(--space-7) 0;
}

.hero {
  padding: 0;
}

.section-cream {
  background: var(--cream);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(24, 28, 34, 0.15);
}

.wizard .eyebrow::after {
  background: rgba(255, 255, 255, 0.15);
}

h2.heading {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  max-width: 26ch;
  margin-top: 14px;
  line-height: 1.15;
}

.section-intro {
  color: var(--dim-on-cream);
  font-size: 1.02rem;
  max-width: 52ch;
  margin-top: 12px;
}

.process {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  list-style: none;
}

@media (max-width: 800px) {
  .process {
    grid-template-columns: 1fr;
  }
}

.card {
  background: #fff;
  border: 1px solid rgba(24, 28, 34, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.card .num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 15px;
}

.card .title {
  font-weight: 700;
  font-size: 18px;
}

.card .desc {
  color: var(--dim-on-cream);
  font-size: 15px;
  line-height: 1.55;
}

.audience {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
}

.chip {
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
}

.note-line {
  border-left: 3px solid var(--orange);
  padding-left: var(--space-3);
  color: var(--dim-on-cream);
  font-size: 15px;
  line-height: 1.6;
  margin-top: var(--space-3);
}

/* ── Wizard ─────────────────────────────────────────────────────────────── */
.wizard {
  background: var(--navy);
  color: #fff;
}

.wizard h2.heading {
  color: #fff;
}

.wizard-intro {
  color: var(--dim-on-navy);
  font-size: 1.02rem;
  max-width: 48ch;
  margin-top: 12px;
}

.quote-form fieldset {
  border: 0;
  min-width: 0;
}

.step-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-on-navy);
  font-weight: 400;
  margin-top: var(--space-5);
}

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  max-width: 900px;
  margin-top: var(--space-3);
}

@media (max-width: 800px) {
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.size-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  text-align: left;
  cursor: pointer;
  color: #fff;
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.size-btn:hover {
  border-color: var(--orange);
}

.size-btn[aria-pressed='true'] {
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
}

.size-btn .sb-name {
  font-weight: 700;
  font-size: 16px;
}

.size-btn .sb-desc {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--orange);
}

.step-locked-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim-on-navy);
  margin-top: var(--space-3);
}

.wiz-step2 {
  margin-top: var(--space-5);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wiz-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4) var(--space-5);
  max-width: 760px;
  margin-top: var(--space-4);
}

.sqm-fields {
  margin-top: var(--space-3);
}

@media (max-width: 700px) {
  .wiz-grid {
    grid-template-columns: 1fr;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim-on-navy);
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  padding: 8px 0;
  border-radius: 0;
  width: 100%;
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 1px 0 0 var(--orange);
}

.field input[aria-invalid='true'],
.field textarea[aria-invalid='true'] {
  border-color: #ff9d8a;
}

.field-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-on-navy);
  line-height: 1.5;
}

.field-hint a {
  color: var(--orange);
}

.field-error,
.consent-error {
  font-family: var(--mono);
  font-size: 12px;
  color: #ffb4a3;
}

.upload-box {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  padding: 16px;
  text-align: center;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim-on-navy);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.upload-box:hover,
.upload-box:focus-within {
  border-color: var(--orange);
}

.upload-box:focus-within {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

.biz-toggle {
  display: flex;
  gap: 10px;
  margin-top: 0;
  flex-wrap: wrap;
}

.biz-opt {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim-on-navy);
  cursor: pointer;
  background: transparent;
}

.biz-opt[aria-pressed='true'] {
  border-color: var(--orange);
  color: var(--orange);
}

.warning-note {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--orange);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-top: var(--space-5);
  max-width: 640px;
}

.breakdown {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: var(--space-4) 0;
  max-width: 420px;
}

.bd-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--dim-on-navy);
}

/* Yhteiskuljetusetu — a credit, so it reads as one against the charges
   above it, and keeps the same grid as every other row. */
.bd-row-discount .bd-label,
.bd-row-discount > span:last-child {
  color: #9be6c0;
}

.bd-row.total {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  border-bottom: none;
}

/* The amount side of a breakdown row keeps its number and € together. */
.bd-row > span:last-child {
  white-space: nowrap;
}

.bd-row .bd-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.bd-vat,
.bd-note {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-on-navy);
}

.bd-note {
  margin-top: 6px;
  line-height: 1.5;
}

.wiz-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--dim-on-navy);
  max-width: 520px;
  cursor: pointer;
}

.checkbox-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: none;
  accent-color: var(--orange);
}

.checkbox-row a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cta-row {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.btn-cta-main {
  padding: 16px 26px;
  font-size: 16px;
}

/* ── Cross-link ─────────────────────────────────────────────────────────── */
.crosslinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(24, 28, 34, 0.1);
  border: 1px solid rgba(24, 28, 34, 0.1);
  max-width: 620px;
}

.crosslink-card {
  background: var(--cream);
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.crosslink-card .crosslink-title {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}

.crosslink-card p {
  color: var(--dim-on-cream);
  font-size: 15px;
  max-width: 44ch;
}

.crosslink-card .btn-secondary {
  padding: 11px 18px;
  font-size: 14px;
  align-self: flex-start;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #fff;
}

.footer-inner {
  padding: var(--space-6) var(--space-4) var(--space-4);
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-5);
}

@media (max-width: 800px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

.footer-brand {
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .f365 {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--orange);
  font-weight: 400;
}

.footer-tagline {
  color: var(--dim-on-navy);
  font-size: 14px;
  margin-top: 10px;
  max-width: 30ch;
}

.footer-col .footer-heading {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  font-weight: 400;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col a,
.footer-plain {
  color: var(--dim-on-navy);
  font-size: 14px;
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p,
.footer-bottom a {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim-on-navy);
  letter-spacing: 0.03em;
}

.footer-legal {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Mobile nav + spacing (the handoff's 800px block) ───────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-hamburger span {
  width: 22px;
  height: 2px;
  background: var(--ink);
}

@media (max-width: 800px) {
  .nav-hamburger {
    display: flex;
  }

  .hdr-right {
    gap: var(--space-3);
    min-width: 0;
  }

  .hdr-inner {
    padding: 26px 0;
  }

  .hdr-nav {
    position: fixed;
    inset: 70px 0 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    width: 70vw;
    background: var(--cream);
    padding: var(--space-4);
    transform: translateX(100%);
    visibility: hidden;
    transition:
      transform 0.3s ease,
      visibility 0.3s;
    z-index: 60;
    border-left: 1px solid rgba(24, 28, 34, 0.1);
  }

  .hdr-nav.open {
    transform: translateX(0);
    visibility: visible;
  }

  .hdr-cta {
    padding: 9px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex: none;
  }

  .wrap {
    padding: 0 28px;
  }

  .site-header {
    margin-top: max(15px, env(safe-area-inset-top));
    margin-bottom: 15px;
  }

  .hero-copy {
    padding: var(--space-5) 28px var(--space-6);
  }

  .footer-inner {
    padding-top: var(--space-7);
    padding-bottom: var(--space-6);
  }

  .footer-bottom {
    padding-top: var(--space-5);
    padding-bottom: var(--space-6);
    margin-bottom: max(15px, env(safe-area-inset-bottom));
  }
}

/* Phones: logo, wordmark, CTA and hamburger must fit one row inside the
   viewport (at 390px the 800px block's spacing overflowed by 8px). */
@media (max-width: 420px) {
  .wrap {
    padding: 0 20px;
  }

  .hero-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hdr-right,
  .brand {
    gap: 8px;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .nav-hamburger {
    padding: 6px;
  }
}

@media (max-width: 370px) {
  .wordmark {
    font-size: 17px;
  }

  .hdr-cta {
    padding: 8px 10px;
  }
}
