/* --- 0. FONTS (self-hosted, latin subset) --- */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/poppins-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/poppins-700-latin.woff2') format('woff2'); }

/* --- 1. DESIGN SYSTEM --- */
:root {
    --bg-dark: #050505;
    --bg-card: #121212;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --accent-gold: #D4AF37;
    
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 { font-family: var(--font-heading); color: #fff; font-weight: 600; }
p { margin-bottom: 24px; color: var(--text-muted); font-weight: 400; }
a { color: var(--accent-gold); text-decoration: none; transition: 0.3s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { a:hover { color: #fff; } }

/* --- 2. AURORA BACKGROUND --- */
.aurora-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; overflow: hidden; pointer-events: none;
}
.aurora-blob {
    position: absolute; opacity: 0.15; animation: float 20s infinite alternate ease-in-out; will-change: transform;
}
.blob-1 { width: 780px; height: 780px; background: radial-gradient(circle closest-side, #0f3d3e 45%, transparent); top: -190px; left: -190px; }
.blob-2 { width: 660px; height: 660px; background: radial-gradient(circle closest-side, #3d3412 45%, transparent); bottom: -180px; right: -180px; animation-delay: -5s; }
.blob-3 { width: 460px; height: 460px; background: radial-gradient(circle closest-side, #1a2f23 35%, transparent); top: calc(40% - 80px); left: calc(40% - 80px); opacity: 0.1; animation-duration: 30s; }
@keyframes float { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 30px) scale(1.1); } }

/* --- 3. STICKY NAV --- */
.sticky-nav {
    position: fixed; top: 0; left: 0; width: 100%; background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 15px 0; z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.05); transform: translateY(-100%); transition: transform 0.4s ease-in-out; display: flex; align-items: center; justify-content: center;
}
.sticky-nav.visible { transform: translateY(0); }
.sticky-content { width: 100%; max-width: 1100px; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.sticky-name { font-family: var(--font-heading); font-weight: 600; color: #fff; letter-spacing: 1px; font-size: 1rem; }
.sticky-btn { white-space: nowrap; padding: 10px 24px; background: var(--accent-gold); color: #000; border-radius: 50px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
@media (hover: hover) { .sticky-btn:hover { background: #fff; } }

/* --- 4. HERO SECTION --- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 100px 0; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background-image: url('/images/hero-mobile.webp'); background-image: image-set(url('/images/hero-mobile.avif') type('image/avif'), url('/images/hero-mobile.webp') type('image/webp')); background-size: cover; background-position: center; animation: kenBurnsCenter 15s ease-out forwards; will-change: transform; }
.hero-content { z-index: 2; text-align: center; max-width: 900px; padding: 0 24px; }
h1 { font-size: clamp(3.5rem, 7vw, 6rem); font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin-bottom: 24px; text-shadow: 0 4px 8px rgba(0,0,0,0.4), 0 15px 30px rgba(0,0,0,0.3), 0 30px 60px rgba(0,0,0,0.2); }
.hero-subtitle { display: flex; align-items: center; justify-content: center; gap: 15px; text-transform: uppercase; letter-spacing: 3px; font-size: 0.95rem; color: var(--accent-gold); margin-bottom: 20px; font-weight: 600; text-shadow: 0 4px 12px rgba(0,0,0,0.8); }
.hero-subtitle::before, .hero-subtitle::after { content: ''; height: 2px; width: 40px; background-color: var(--accent-gold); box-shadow: 0 2px 8px rgba(0,0,0,0.6); }
.hero-content p.hero-role { font-size: 1.5rem; color: #fff; margin-bottom: 50px; font-weight: 400; letter-spacing: 0.5px; text-shadow: 0 4px 16px rgba(0,0,0,0.8); }
.hero-btns { display: flex; gap: 25px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 16px 36px; background-color: rgba(0, 0, 0, 0.75); color: #fff; border: 1px solid var(--accent-gold); text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; border-radius: 50px; transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; transition: all 0.3s ease; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.4); }
@media (hover: hover) { .btn:hover { background-color: rgba(0, 0, 0, 0.9); border-color: #fff; transform: translateY(-3px) translateZ(0); box-shadow: 0 8px 25px rgba(0,0,0,0.6); } }
.btn-primary { background-color: rgba(0, 0, 0, 0.85); border: 2px solid var(--accent-gold); color: var(--accent-gold); }
@media (hover: hover) { .btn-primary:hover { background-color: var(--accent-gold); color: #000; border-color: var(--accent-gold); box-shadow: 0 0 25px rgba(212, 175, 55, 0.6); } }
.btn:active, .sticky-btn:active { transform: scale(0.96) translateZ(0); transition-duration: 0.1s; }
@media (min-aspect-ratio: 3/4) {
    .hero::before { background-image: url('/images/hero-desktop.webp'); background-image: image-set(url('/images/hero-desktop.avif') type('image/avif'), url('/images/hero-desktop.webp') type('image/webp')); }
}
@keyframes kenBurnsCenter { 0% { transform: scale(1); } 100% { transform: scale(1.2); } }
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.js .reveal.active { opacity: 1; transform: translateY(0); }
.delay-200 { transition-delay: 0.2s; } .delay-400 { transition-delay: 0.4s; }

/* --- 5. EDITORIAL IMAGE --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
.split-layout { display: grid; grid-template-columns: 1fr; gap: 60px; align-items: center; }
.editorial-card { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,0.5); aspect-ratio: 3/4; }
.editorial-card picture { display: block; height: 100%; }
.editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.editorial-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(5,5,5,0.6) 70%, rgba(5,5,5,0.95) 100%); z-index: 1; }

/* MUUTOS: Tekstilaatikon sijaintia säädetty alemmas vähentämällä alapuolista paddingia */
.editorial-content { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    padding: 40px 40px 15px 40px; /* Top Right Bottom Left */
    z-index: 2; 
}

.editorial-content h2 { font-size: 2rem; color: var(--accent-gold); margin-bottom: 15px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.editorial-quote { font-style: italic; font-size: 1.1rem; color: #e0e0e0; border-left: 3px solid var(--accent-gold); padding-left: 15px; font-family: var(--font-body); }
@media (hover: hover) { .editorial-card:hover img { transform: scale(1.05); } }
.text-body-col p { font-size: 1.1rem; line-height: 1.8; color: #ccc; }

/* --- 6. SPOTLIGHT CARDS --- */
.bg-offset { background-color: rgba(255, 255, 255, 0.02); }

.grid-expert-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.spotlight-card {
    background: rgba(30, 30, 30, 0.6); padding: 35px;
    border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.05); position: relative; overflow: hidden; transition: transform 0.3s ease;
    display: flex; flex-direction: column; justify-content: flex-start;
}
.spotlight-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(212, 175, 55, 0.08), transparent 40%);
    opacity: 0; transition: opacity 0.3s; pointer-events: none; z-index: 0;
}
@media (hover: hover) {
    .spotlight-card:hover { transform: translateY(-5px); }
    .spotlight-card:hover::before { opacity: 1; }
}
.spotlight-content { position: relative; z-index: 1; }

.spotlight-card h3 { font-size: 1.35rem; margin-bottom: 12px; letter-spacing: -0.5px; color: #fff; }
.spotlight-card p { font-size: 0.95rem; margin-bottom: 0; color: #aaa; line-height: 1.6; }

.spotlight-card.featured { border: 1px solid rgba(212, 175, 55, 0.3); background: rgba(40, 40, 40, 0.7); }
.spotlight-card.featured h3 { color: var(--accent-gold); }

/* --- 7. DETAILS SECTION --- */
.details-section { max-width: 900px; margin: 0 auto; }
.detail-item { border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 40px; padding-bottom: 40px; }
.detail-item:last-child { border-bottom: none; }
.detail-item h3 { font-size: 1.8rem; margin-bottom: 25px; display: flex; align-items: center; letter-spacing: -0.5px; }
.detail-item h3::before { content: '✦'; color: var(--accent-gold); margin-right: 15px; font-size: 1.2rem; opacity: 0.8; }
.highlight-box { background: linear-gradient(to right, rgba(212, 175, 55, 0.08), transparent); border-left: 4px solid var(--accent-gold); padding: 30px; margin: 35px 0; font-style: italic; color: #e0e0e0; font-weight: 400; font-size: 1.15rem; border-radius: 0 8px 8px 0; }
ul.feature-list { list-style: none; margin-left: 10px; margin-bottom: 20px; }
ul.feature-list li { position: relative; padding-left: 30px; margin-bottom: 15px; color: var(--text-muted); }
ul.feature-list li::before { content: ''; position: absolute; left: 0; top: 12px; width: 15px; height: 2px; background-color: var(--accent-gold); }

footer { background-color: #020202; text-align: center; padding: 100px 20px; border-top: 1px solid #111; }
footer p.footer-name { font-family: var(--font-heading); font-size: 1.5rem; color: #fff; margin-bottom: 15px; letter-spacing: 1px; font-weight: 700; }

@media (min-width: 900px) {
    .split-layout { grid-template-columns: 1fr 1fr; }
    .grid-expert-layout { grid-template-columns: repeat(4, 1fr); }
    .spotlight-card.featured { grid-column: span 2; }
}

/* --- 8. LANGUAGE SWITCH --- */
.lang-switch { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.lang-switch a { color: var(--text-muted); padding: 6px 4px; }
.lang-switch a[aria-current="true"] { color: var(--accent-gold); }
@media (hover: hover) { .lang-switch a:hover { color: var(--accent-gold); } }
.hero .lang-switch { position: absolute; top: 24px; right: 24px; z-index: 3; padding: 2px 12px; background: rgba(0, 0, 0, 0.6); border-radius: 50px; }
.sticky-actions { display: flex; align-items: center; gap: 20px; }

/* --- 9. HERO AUDIENCE & BOOKING --- */
.hero-audience { display: block; margin-top: 8px; font-size: 1.1rem; opacity: 0.9; }
.spotlight-card p + p { margin-top: 12px; }
.spotlight-card p { overflow-wrap: anywhere; }
/* Links inside running text are underlined, not just coloured (accessibility) */
p a, li a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.card-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.card-actions .btn { padding: 12px 24px; font-size: 0.75rem; }
.booking-note { text-align: center; max-width: 760px; margin: 50px auto 0; }
.booking-note.crisis-note { margin-top: 16px; font-size: 0.9rem; color: #888; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 480px) {
    h1 { font-size: 11vw; }
    .sticky-content { padding: 0 16px; }
    .sticky-actions { gap: 12px; }
    .sticky-name { font-size: 0.9rem; letter-spacing: 0.5px; }
    .sticky-btn { padding: 10px 16px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero::before, .aurora-blob { animation: none; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
}
