/* ═══════════════════════════════════════════════════════ */
/*  AJOKORTTIVALMENNUS.FI — YHTEINEN TYYLITIEDOSTO         */
/* ═══════════════════════════════════════════════════════ */

:root {
  --bg: #0a0a0b;
  --bg-elevated: #131316;
  --bg-card: #18181c;
  --border: #27272a;
  --border-hover: #3f3f46;
  --fg: #fafafa;
  --fg-muted: #a1a1aa;
  --fg-dim: #71717a;
  --accent: #ff6b1a;
  --accent-hover: #ff8042;
  --highlight: #fbbf24;
  --green: #10b981;
  --red: #ef4444;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Geist', system-ui, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── ATMOSFEERINEN TAUSTA ────────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 26, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(251, 191, 36, 0.04) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 11, 0.7);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-mark {
  width: 32px;
  height: 32px;
  position: relative;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

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

.logo-text .top {
  font-size: 17px;
}

.logo-text .bottom {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-links a:hover {
  color: var(--fg);
  background: var(--bg-elevated);
}

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-weight: 500;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 4px;
  }
  .nav-links li:not(:last-child):not(:nth-last-child(2)) {
    display: none;
  }
  /* Mobiili: pienennä nav-napit — eivät enää täytä headeria eivätkä katkea 2 riville */
  .nav .btn,
  .nav-cta {
    padding: 7px 12px !important;
    font-size: 13px !important;
    white-space: nowrap;
  }
}

/* ─── PAINIKKEET ──────────────────────────────────── */
.btn {
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 8px 24px -8px rgba(255, 107, 26, 0.5);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset, 0 12px 32px -8px rgba(255, 107, 26, 0.6);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
}

.btn-large {
  padding: 18px 32px;
  font-size: 17px;
}

/* ─── ROAD LINE DIVIDER ─────────────────────────────── */
.road-divider {
  position: relative;
  height: 1px;
  max-width: 1280px;
  margin: 0 auto;
  background: var(--border);
  overflow: visible;
}

.road-divider::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--highlight) 0,
    var(--highlight) 30px,
    transparent 30px,
    transparent 60px
  );
  opacity: 0.4;
}

/* ─── SECTION HEADERS ───────────────────────────────── */
.section-header {
  margin-bottom: 64px;
  max-width: 720px;
}

.section-eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--fg-muted);
}

/* ─── FOOTER ───────────────────────────────────────── */
footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 32px 40px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  footer {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}

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

.footer-col a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  /* isompi kosketuskohde mobiilissa (footerissa kymmeniä linkkejä) */
  display: inline-block;
  padding: 7px 0;
}

.footer-col a:hover {
  color: var(--fg);
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--fg-dim);
  font-size: 12px;
  font-family: var(--mono);
  position: relative;
  z-index: 2;
}

/* ─── SCROLL ANIMATIONS ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 107, 26, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(255, 107, 26, 0); }
}
