/* ── LOGIVIESTI — JAETTU CSS ── */
:root {
  --gold: #F5C400;
  --gold-dim: #c49a00;
  --dark: #0D0D0D;
  --dark2: #141414;
  --dark3: #1a1a1a;
  --dark4: #222222;
  --text: #F0EEE8;
  --text-muted: #AEACA6;  /* nostettu #9B9890 → parempi kontrasti */
  --text-dim: #7A7875;    /* nostettu #6B6965 → parempi kontrasti */
  --border: rgba(245,196,0,0.15);
  --border-soft: rgba(255,255,255,0.07);
  --ff-display: 'Syne', sans-serif;
  --ff-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Ankkurilinkit laskeutuvat navin alapuolelle — navkorkeus ~61px + väli */
  scroll-padding-top: 80px;
}

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILS ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.gold { color: var(--gold); }
.muted { color: var(--text-muted); }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  /* Solid fallback ensin — mobiiliselaimet joissa backdrop-filter ei toimi */
  background: #0D0D0D;
  background: rgba(13,13,13,0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-soft);
  transition: padding 0.3s;
  /* Estää navin läpinäkyvyyden transform-konteksteissa */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: padding;
}
nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--ff-display); font-weight: 800;
  font-size: 1.25rem; color: var(--text);
  text-decoration: none; letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 400;
  transition: color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  background: var(--gold); color: var(--dark) !important;
  font-weight: 500 !important; padding: 9px 20px;
  border-radius: var(--radius-sm); transition: opacity 0.2s !important;
}
.nav-cta:hover { opacity: 0.88; color: var(--dark) !important; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all 0.3s;
}

/* ── MOBILE NAV ── */
.mobile-menu {
  display: none;
  position: fixed; top: 61px; left: 0; right: 0; z-index: 99;
  background: var(--dark2); border-bottom: 1px solid var(--border-soft);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.mobile-menu a {
  display: block; padding: 14px 0; color: var(--text-muted);
  text-decoration: none; font-size: 1rem;
  border-bottom: 1px solid var(--border-soft); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text); }
.mobile-menu .nav-cta {
  margin-top: 16px; display: block; text-align: center;
  padding: 14px 0; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--dark) !important;
  font-weight: 600 !important; font-size: 1rem;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--dark);
  font-family: var(--ff-body); font-weight: 600;
  font-size: 0.95rem; padding: 14px 28px;
  border-radius: var(--radius-sm); border: none;
  text-decoration: none; cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text);
  font-family: var(--ff-body); font-weight: 400;
  font-size: 0.95rem; padding: 13px 24px;
  border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
  text-decoration: none; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ── SECTION SHARED ── */
section { padding: 100px 0; }
.section-label {
  font-size: 0.75rem; font-weight: 500; color: var(--gold);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.025em; margin-bottom: 20px;
}
.section-sub {
  font-size: 1.05rem; color: var(--text-muted);
  line-height: 1.65; max-width: 560px;
}

/* ── HERO SHARED ── */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,196,0,0.1); border: 1px solid rgba(245,196,0,0.25);
  color: var(--gold); font-size: 0.8rem; font-weight: 500;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px;
  background: var(--gold); border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--gold); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-muted);
  line-height: 1.65; margin-bottom: 36px; max-width: 480px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── MARQUEE ── */
.marquee-section {
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden; background: var(--dark2);
}
.marquee-track {
  display: flex; gap: 0;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: flex; align-items: center; gap: 20px;
  padding: 0 20px; font-size: 0.8rem; font-weight: 500;
  color: var(--text-dim); letter-spacing: 0.1em;
  text-transform: uppercase; white-space: nowrap;
}
.marquee-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

/* ── PAKETIT ── */
.packages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin-top: 56px;
}
.pkg-card {
  background: var(--dark3); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; position: relative;
  transition: border-color 0.25s, transform 0.2s;
}
.pkg-card:hover { border-color: rgba(255,255,255,0.12); transform: translateY(-3px); }
.pkg-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(245,196,0,0.04) 0%, var(--dark3) 100%);
}
.pkg-card.featured:hover { border-color: var(--gold); transform: translateY(-3px); }
.pkg-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--dark);
  font-size: 0.7rem; font-weight: 700; padding: 4px 14px;
  border-radius: 100px; letter-spacing: 0.08em;
  text-transform: uppercase; white-space: nowrap;
}
.pkg-name { font-family: var(--ff-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.pkg-tagline { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }
.pkg-price {
  font-family: var(--ff-display); font-size: 2rem;
  font-weight: 800; color: var(--gold);
  letter-spacing: -0.03em; line-height: 1;
}
.pkg-price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.pkg-price-vat { font-size: 0.78rem; color: var(--text-dim); margin-top: 4px; }
.pkg-divider { margin: 20px 0; border: none; border-top: 1px solid var(--border-soft); }
.pkg-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pkg-features li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.45;
}
.pkg-features li::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.pkg-cta {
  display: block; text-align: center; margin-top: 24px; padding: 12px;
  border-radius: var(--radius-sm); font-weight: 500; font-size: 0.9rem;
  text-decoration: none; transition: all 0.2s;
  border: 1px solid rgba(245,196,0,0.3); color: var(--gold); background: transparent;
}
.pkg-cta:hover { background: rgba(245,196,0,0.08); }
.pkg-card.featured .pkg-cta {
  background: var(--gold); color: var(--dark); border-color: var(--gold); font-weight: 600;
}
.pkg-card.featured .pkg-cta:hover { opacity: 0.88; }
.pkg-note { text-align: center; margin-top: 28px; font-size: 0.85rem; color: var(--text-dim); }

/* ── FAQ ── */
.faq-list { margin-top: 48px; max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-btn {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; text-align: left; gap: 16px;
  color: var(--text); font-family: var(--ff-body);
  font-size: 1rem; font-weight: 500; line-height: 1.4;
  transition: color 0.2s;
}
.faq-btn:hover { color: var(--gold); }
.faq-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1px solid var(--border-soft); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--gold); transition: transform 0.3s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0;
}
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 20px; }
.faq-answer p {
  font-size: 0.95rem; color: var(--text-muted);
  line-height: 1.7;
}

/* ── REFERENSSIT ── */
.ref-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.ref-card {
  background: var(--dark3); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 28px; transition: border-color 0.25s;
}
.ref-card:hover { border-color: rgba(245,196,0,0.2); }
.ref-name { font-family: var(--ff-display); font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ref-location { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.ref-highlights { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ref-tag { font-size: 0.75rem; padding: 4px 12px; border-radius: 100px; background: rgba(245,196,0,0.08); border: 1px solid rgba(245,196,0,0.15); color: var(--gold); }
.ref-result { margin-top: 14px; padding: 12px 16px; background: rgba(245,196,0,0.06); border-left: 2px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.875rem; color: var(--text); line-height: 1.5; }
.ref-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.82rem; color: var(--gold); text-decoration: none; transition: gap 0.2s; }
.ref-link:hover { gap: 10px; }

/* ── CONTACT & FORM ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-top: 48px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--border-soft); }
.contact-item:last-child { border-bottom: none; }
.contact-icon { width: 40px; height: 40px; flex-shrink: 0; background: rgba(245,196,0,0.08); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.contact-label { font-size: 0.8rem; color: var(--text-dim); margin-bottom: 2px; }
.contact-value { font-size: 1rem; color: var(--text); font-weight: 500; text-decoration: none; transition: color 0.2s; }
a.contact-value:hover { color: var(--gold); }
.contact-form-box { background: var(--dark3); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 32px; }
.contact-form-box h3 { font-family: var(--ff-display); font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.contact-form-box p { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.03em; }
.form-row input, .form-row textarea {
  width: 100%; padding: 11px 14px; background: var(--dark4);
  border: 1px solid var(--border-soft); border-radius: var(--radius-sm);
  color: var(--text); font-family: var(--ff-body); font-size: 0.9rem;
  transition: border-color 0.2s; outline: none;
}
.form-row input:focus, .form-row textarea:focus { border-color: rgba(245,196,0,0.4); }
.form-row textarea { resize: vertical; min-height: 90px; }
.form-submit {
  width: 100%; background: var(--gold); color: var(--dark);
  border: none; border-radius: var(--radius-sm); padding: 13px;
  font-family: var(--ff-body); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: opacity 0.2s;
}
.form-submit:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer { background: var(--dark); padding: 32px 0; border-top: 1px solid var(--border-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-logo {
  font-family: var(--ff-display); font-weight: 800; font-size: 1rem;
  /* Korjaus: estää selaimen linkkisininen + alleviivaus */
  color: var(--text); text-decoration: none;
}
.footer-logo span { color: var(--gold); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-dim); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-muted); }
.footer-copy { font-size: 0.8rem; color: var(--text-dim); }
.footer-made { font-size: 0.78rem; color: var(--text-dim); }

/* ── STICKY MOBILE BAR ── */
.sticky-bar {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: var(--dark2); border-top: 1px solid var(--border-soft);
  padding: 12px 16px; gap: 10px;
}
.sticky-bar a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.9rem; text-decoration: none; transition: opacity 0.2s;
}
.sticky-bar .sticky-call { background: var(--gold); color: var(--dark); }
.sticky-bar .sticky-wa { background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.2); color: #25d366; }
.sticky-bar a:hover { opacity: 0.85; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.45s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .packages-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .ref-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .sticky-bar { display: flex; }
  body { padding-bottom: 72px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; flex-wrap: wrap; }
  /* Estää hero-tekstin leikkautumisen mobiilissa */
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 3rem) !important;
    word-break: break-word;
    overflow-wrap: break-word;
  }
  .hero-inner { width: 100%; max-width: 100%; }
  /* Scroll-padding mobiilissa — nav matalampana */
  html { scroll-padding-top: 70px; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-badge { font-size: 0.72rem; }
  .packages-grid { max-width: 100%; }
}
