/* ============================================================
   Kuljetusliike V. Oksman & Knit Oy — index.css
   Design: Full-width hero A, Deep Navy + Amber, Sora + Figtree
   ============================================================ */

/* ── Custom Properties ── */
:root {
  --brand: oklch(0.38 0.12 240);
  --brand-light: color-mix(in oklab, var(--brand) 30%, white);
  --brand-dark: color-mix(in oklab, var(--brand) 70%, black);
  --surface-1: oklch(0.99 0.005 240);
  --surface-2: oklch(0.93 0.01 240);
  --surface-3: oklch(0.16 0.03 240);
  --text-primary: oklch(0.13 0.01 240);
  --text-secondary: oklch(0.44 0.03 240);
  --accent: oklch(0.68 0.20 50);
  --accent-dark: color-mix(in oklab, var(--accent) 70%, black);

  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  --font-heading: 'Sora', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--surface-1);
  overflow-x: hidden;
}

::selection {
  background: color-mix(in oklab, var(--accent) 30%, white);
  color: var(--text-primary);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out, background 150ms ease-out;
  text-decoration: none;
  border: 2px solid transparent;
  min-height: 44px;
  &:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  &:active { transform: scale(0.97); }
}

.btn-accent {
  background: var(--accent);
  color: oklch(0.15 0.02 50);
  border-color: var(--accent);
  &:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 4px 20px color-mix(in oklab, var(--accent) 50%, transparent);
    transform: translateY(-2px);
  }
}

.btn-lg { padding: 18px 36px; font-size: 1.0625rem; }

.btn-ghost-white {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.5);
  &:hover { border-color: white; background: rgba(255,255,255,0.1); transform: translateY(-1px); }
}

/* ── Section Tag ── */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);

  h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.12;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
  }
  p { color: var(--text-secondary); font-size: 1.0625rem; }
}

/* ── Scroll Animations ── */
.reveal-up {
  animation: fadeUp linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
  animation-delay: var(--delay, 0ms);
}

.reveal-left {
  animation: fadeLeft linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

.reveal-right {
  animation: fadeRight linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

.reveal-card {
  animation: cardReveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 75%;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
  from { opacity: 0; translate: 0 48px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fadeLeft {
  from { opacity: 0; translate: -60px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes fadeRight {
  from { opacity: 0; translate: 60px 0; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes cardReveal {
  from { opacity: 0; translate: 0 24px; }
  to { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up, .reveal-left, .reveal-right, .reveal-card { animation: none; }
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface-3);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: oklch(0.15 0.02 50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.875rem;
  border-radius: 8px;
  flex-shrink: 0;
  &.small { width: 32px; height: 32px; font-size: 0.75rem; border-radius: 6px; }
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: white;
}

.logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
}

.main-nav {
  flex: 1;
  ul {
    display: flex;
    gap: var(--space-xl);
    justify-content: center;
  }
  a {
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 150ms ease-out;
    &:hover { color: var(--accent); }
  }
}

.header-phone {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9375rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease-out;
  &:hover { color: white; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  align-items: center;
  span { display: block; width: 24px; height: 2px; background: white; transition: transform 200ms ease-in-out; }
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  animation: parallax linear;
  animation-timeline: scroll();
}

@keyframes parallax { to { transform: translateY(-25%); } }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--brand) 90%, black) 0%,
    color-mix(in oklab, var(--brand-dark) 85%, transparent) 50%,
    oklch(0.10 0.03 240 / 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--space-4xl);
  padding-bottom: var(--space-4xl);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.0;
  color: white;
  margin-bottom: var(--space-lg);
  max-width: 720px;
  em { font-style: normal; color: var(--accent); }
}

.hero-sub {
  font-size: 1.1875rem;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  margin-top: var(--space-4xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}

.trust-pill {
  display: flex;
  flex-direction: column;
  .trust-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
  }
  .trust-label {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
  }
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.2);
}

/* ── SERVICES ── */
.services {
  padding: var(--space-4xl) 0;
  background: var(--surface-1);
}

.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid color-mix(in oklab, var(--text-primary) 8%, transparent);

  &:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  &.service-row-reverse { direction: rtl; > * { direction: ltr; } }
}

.service-row-image {
  border-radius: 12px;
  overflow: hidden;
  clip-path: inset(0 round 12px);
  img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 500ms ease-out;
  }
  &:hover img { transform: scale(1.04); }
}

.service-row-content {
  padding: var(--space-md) 0;
}

.service-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: color-mix(in oklab, var(--accent) 25%, transparent);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.service-row-content h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.service-row-content p {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.service-price {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: var(--space-md);
}

.service-link {
  display: block;
  color: var(--brand);
  font-weight: 600;
  transition: color 150ms ease-out, translate 150ms ease-out;
  &:hover { color: var(--accent); translate: 4px 0; }
}

/* ── PROCESS ── */
.process {
  padding: var(--space-4xl) 0;
  background: var(--brand);
}

.process .section-header {
  h2 { color: white; }
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.process-step {
  flex: 1;
  min-width: 180px;
  text-align: center;
  padding: 0 var(--space-md);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: oklch(0.15 0.02 50);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  flex-shrink: 0;
}

.step-content {
  h3 {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
  }
  p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; line-height: 1.5; }
}

.process-connector {
  flex: 0 0 60px;
  height: 2px;
  background: color-mix(in oklab, var(--accent) 35%, transparent);
  align-self: 28px;
  margin-top: 27px;
  position: relative;
  &::after {
    content: '';
    position: absolute;
    right: -6px;
    top: -4px;
    border-left: 8px solid color-mix(in oklab, var(--accent) 35%, transparent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
  }
}

/* ── ABOUT ── */
.about {
  padding: var(--space-4xl) 0;
  background: var(--surface-3);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-content {
  h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.12;
    color: white;
    margin-bottom: var(--space-lg);
    margin-top: var(--space-md);
  }
  p { color: rgba(255,255,255,0.72); margin-bottom: var(--space-md); line-height: 1.65; }
}

.about-highlights {
  margin-top: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);

  .highlight-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }

  strong { display: block; color: white; font-weight: 600; margin-bottom: 2px; }
  span { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
}

.about-image {
  border-radius: 16px;
  overflow: hidden;
  img {
    width: 100%;
    height: 480px;
    object-fit: cover;
  }
}

/* ── STATS ── */
.stats-section {
  position: relative;
  padding: var(--space-4xl) 0;
}

.stats-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--brand-dark) 88%, transparent);
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  .stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
  }
  .stat-plus {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--accent);
  }
  .stat-label {
    display: block;
    color: rgba(255,255,255,0.65);
    font-size: 0.9375rem;
    margin-top: var(--space-sm);
    font-weight: 500;
  }
}

/* ── TESTIMONIALS ── */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--surface-2);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-lg);
}

.testimonial-card {
  background: var(--surface-1);
  border-radius: 12px;
  padding: var(--space-xl);
  border: 1px solid color-mix(in oklab, var(--text-primary) 8%, transparent);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out;
  &:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
}

.stars {
  color: var(--accent);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  strong { font-weight: 600; color: var(--text-primary); }
  span { color: var(--text-secondary); font-size: 0.875rem; }
}

/* ── CTA ── */
.cta-section {
  padding: var(--space-4xl) 0;
  background: var(--surface-3);
  border-top: 3px solid var(--accent);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--space-3xl);
}

.cta-text {
  h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-md);
  }
  p { color: rgba(255,255,255,0.72); font-size: 1.0625rem; line-height: 1.6; }
}

.cta-contact {
  text-align: center;
  flex-shrink: 0;
  .cta-note {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    margin-top: var(--space-md);
    a { color: var(--accent); &:hover { text-decoration: underline; } }
  }
  .cta-hours { color: rgba(255,255,255,0.4); font-size: 0.8125rem; margin-top: var(--space-xs); }
}

/* ── FOOTER ── */
.site-footer { background: color-mix(in oklab, var(--surface-3) 100%, black); }

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-3xl) var(--space-xl);
}

.footer-brand {
  .footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
  }
  .footer-logo-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 0.9375rem;
  }
  p { color: rgba(255,255,255,0.55); font-size: 0.9375rem; line-height: 1.6; }
}

.footer-links, .footer-contact {
  h4 { color: rgba(255,255,255,0.9); font-weight: 600; margin-bottom: var(--space-md); font-size: 0.9375rem; }
  a { transition: color 150ms ease-out; &:hover { color: var(--accent); } }
  p, li { color: rgba(255,255,255,0.55); font-size: 0.9375rem; margin-bottom: var(--space-sm); }
}

.footer-links ul { display: flex; flex-direction: column; gap: var(--space-xs); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--space-md) var(--space-xl);
  text-align: center;
  p { font-size: 0.8125rem; color: rgba(255,255,255,0.3); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .cta-inner { grid-template-columns: 1fr; text-align: center; }
  .process-steps { gap: var(--space-sm); }
  .process-connector { flex: 0 0 30px; }
}

@media (max-width: 768px) {
  .service-row, .service-row.service-row-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-row-image img { height: 240px; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image img { height: 260px; }
  .about-content h2 { margin-top: 0; }

  .footer-inner { grid-template-columns: 1fr; gap: var(--space-xl); }
  .hero-title { font-size: clamp(2rem, 8vw, 3.5rem); }
  .hero-trust-bar { gap: var(--space-md); }
  .trust-divider { display: none; }

  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-phone { font-size: 0.8125rem; }

  .main-nav.is-open {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    background: var(--surface-3);
    padding: var(--space-xl);
    ul { flex-direction: column; align-items: center; gap: var(--space-xl); }
    a { font-size: 1.25rem; }
  }

  .process-steps { flex-direction: column; align-items: center; }
  .process-connector { width: 2px; height: 40px; flex: 0; margin: 0; &::after { display: none; } }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-md); }
  .stats-grid { gap: var(--space-xl); }
}
