:root {
    --bg-dark: #05080c;
    --text-main: #e0e0e0;
    --text-muted: #9aa0a6;
    --accent: #FFBD00; 
    --surface: #0f141e;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(15, 20, 30, 0.9);
    
    /* Fonts */
    --font-display: 'Poppins', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --font-heritage: 'Playfair Display', serif;
    
    --container-width: 1200px;
}

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

[id] {
    scroll-margin-top: 120px;
}

@media (max-width: 900px) {
    [id] {
        scroll-margin-top: 100px;
    }
}

html.lenis { height: auto; }

/* Skip Link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: #000;
    padding: 1rem;
    z-index: 10000;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: 700;
}
.skip-link:focus {
    top: 0;
}

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

/* Image Protection */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Utils */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 max(1.5rem, 4vw);
}

/* UTILITY CLASSES FOR RESPONSIVENESS */
.show-mobile { display: none !important; } /* Force hidden on desktop */

/* Focus States for Accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.noise-overlay {
    position: fixed; inset: 0; z-index: 10; pointer-events: none; opacity: 0.04;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: #fff; line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); letter-spacing: -0.01em; margin-bottom: 1.5rem; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 1.5rem; font-weight: 300; }

.serif-font { font-family: var(--font-heritage) !important; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.9rem 2rem; border-radius: 100px; text-decoration: none;
    font-weight: 600; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
    cursor: pointer;
    font-family: var(--font-display);
    text-align: center;
}

.btn-primary { background: var(--accent); color: #000; border: 1px solid var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 189, 0, 0.3); background: #fff; border-color: #fff; }

.footer-form-col button:hover .btn-icon {
    transform: translate(10px, -10px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.btn-outline { border: 1px solid var(--border); color: #fff; background: rgba(255,255,255,0.02); }
.btn-outline:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1); background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.full-width { width: 100%; }

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* --- NAVIGATION STYLES --- */

/* DESKTOP SPLIT NAV (Floating Pill Style) */
.main-header {
    position: fixed; top: 1.5rem; left: 0; width: 100%;
    z-index: 1000;
    pointer-events: none; /* Let clicks pass through outside the pill */
    display: flex; justify-content: center;
    transition: transform 0.3s ease;
}

.nav-pill-desktop {
    pointer-events: auto;
    background: rgba(10, 15, 22, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0 2rem;
    display: grid; 
    grid-template-columns: 1fr auto 1fr;
    align-items: center; 
    gap: 2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    position: relative;
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    width: 200px; /* Fixed width to ensure perfect symmetry around the center logo */
    height: 100%; /* Fill the 80px bar height */
}
.nav-left { justify-content: flex-end; }
.nav-right { justify-content: flex-start; }

/* Hero Logo */
.hero-logo-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    /* Tighter circular gradient */
    background: radial-gradient(circle, rgba(0, 0, 0, 0.5) 10%, rgba(0, 0, 0, 0) 30%);
    padding: 0.5rem;
    margin-bottom: 3.2rem;
    margin-top: 0;
    border-radius: 50%;
}
.hero-logo {
    width: 400px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3)); /* Subtle shadow for depth */
}

/* Footer Logo */
.footer-logo-wrapper {
    margin-bottom: 1.5rem; /* Increased spacing */
    display: flex;
    justify-content: center;
}
.footer-logo {
    height: 64px; /* 80%, siitä alkup.. */
    width: auto;
    opacity: 0.6;
    transition: opacity 0.3s;
}
.footer-logo:hover { opacity: 1; }

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.3s;
    font-family: var(--font-display);
    line-height: 1;
    display: flex;
    align-items: center;
    height: 100%; /* Fill the 80px height to ensure centering */
    transform: translateY(-1px); /* Visual adjustment to make it feel perfectly centered */
}
.nav-link:hover { color: var(--accent); }

/* Center Round Logo inside Pill */
.nav-center-logo {
    text-decoration: none;
    margin: 0;
    z-index: 20;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; /* Explicitly match the pill height */
    width: 88px; /* Match logo width to keep grid stable */
    position: relative;
}
.logo-circle-inner {
    width: 80px; height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(255, 189, 0, 0.3);
    border: 3px solid var(--bg-dark);
    transition: transform 0.3s ease;
    line-height: 1;
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Force perfect centering regardless of container flow */
}
.nav-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nav-center-logo:hover .logo-circle-inner { transform: translate(-50%, -50%) scale(1.1); }

/* MOBILE NAV PILL (New Implementation) */
.mobile-nav-pill-wrapper {
    position: fixed; top: 1.5rem; left: 0; width: 100%;
    display: flex; justify-content: center;
    z-index: 1000; pointer-events: none; /* Let clicks pass through sides */
}

.mobile-nav-pill {
    pointer-events: auto;
    background: rgba(15, 20, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    width: 280px; /* Fixed width for symmetry */
    position: relative;
    height: 60px;
}

.mobile-pill-item {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.4rem; text-decoration: none;
    background: none; border: none; cursor: pointer;
    height: 44px; width: 44px;
    transition: color 0.3s;
}

.mobile-pill-item:hover { color: var(--accent); }
.mobile-pill-item:active { transform: scale(0.95); }

/* Mobile Center Logo */
.mobile-center-logo {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    text-decoration: none;
}
.logo-circle-mobile {
    width: 60px; height: 60px;
    background: var(--accent);
    border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(255, 189, 0, 0.3);
    border: 2px solid var(--bg-dark);
    line-height: 1;
    overflow: hidden; /* Ensure image stays in circle */
}

/* Off-Canvas Menu */
.off-canvas-menu {
    position: fixed; top: 0; left: 0; bottom: 0; width: 300px;
    background: rgba(10, 15, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 2rem;
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
}
.off-canvas-menu.open { transform: translateX(0); }

.menu-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1001;
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

.close-menu {
    align-self: flex-end; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; margin-bottom: 2rem;
}
.menu-label { color: var(--accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; display: block; opacity: 0.6; }
.mobile-link { display: block; font-size: 1.2rem; color: #fff; text-decoration: none; margin-bottom: 1rem; font-weight: 600; transition: color 0.3s; }
.mobile-link:hover { color: var(--accent); }
.mobile-link.highlight { color: var(--accent); margin-top: 1.5rem; }

.off-canvas-content { flex: 1; overflow-y: auto; }
.menu-call-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}
.menu-cta {
    display: block;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
    letter-spacing: 1px;
    opacity: 0.8;
}
.menu-call-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.menu-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--accent);
    border: 1px solid var(--accent);
    padding: 0.6rem 1rem;
    border-radius: 100px;
    color: #000;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}
.menu-call-btn:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}
.menu-call-btn i {
    font-size: 0.9rem;
}

/* Hero */
.hero-section {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    padding-top: 60px; /* Offset for nav */
}
.hero-bg-wrapper { position: absolute; inset: 0; z-index: -1; }
.hero-zoom-container {
    position: absolute; inset: 0;
    animation: slowZoom 30s ease-in-out infinite;
}
.parallax-bg {
    position: absolute; inset: -100px; background-size: cover; background-position: center;
    opacity: 0; transform: scale(1.1);
}
@keyframes slowZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.gradient-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,8,12,0.4) 0%, rgba(5,8,12,0.7) 60%, var(--bg-dark) 100%);
}
.hero-text-wrapper { text-align: center; max-width: 800px; margin: 0 auto; position: relative; z-index: 20; padding-top: 0px; display: flex; flex-direction: column; align-items: center; }
.eyebrow { display: block; color: var(--accent); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 700; font-family: var(--font-display); }
.hero-subtext { max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.15rem; }
.hero-btn {
    padding: 0.75rem 2rem;
}
.btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
    text-align: center;
}
.btn-icon {
    font-size: 1.25rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.hero-btn .btn-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hero-btn .btn-number {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.9;
}
@media (max-width: 768px) {
    .hero-btn {
        padding: 0.8rem 1.5rem;
        width: 100%;
    }
    .hero-btn .btn-number {
        font-size: 0.8rem;
    }
    .hero-btn .btn-text {
        font-size: 0.9rem;
    }
}
.scroll-indicator {
    position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.2em;
    z-index: 20;
}
.scroll-indicator .line { width: 1px; height: 40px; background: rgba(255,255,255,0.3); }

/* Hide scroll indicator on short screens to prevent overlap */
@media (max-height: 800px) {
    .scroll-indicator { display: none; }
}

/* Marquee */
.marquee-strip { background: var(--accent); padding: 1.2rem 0; overflow: hidden; white-space: nowrap; transform: rotate(-1deg); margin: 2rem 0; }
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-track span { color: #000; font-weight: 700; font-size: 1.2rem; margin-right: 2rem; font-family: var(--font-body); letter-spacing: 0.05em; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* USP */
.usp-section { padding: 6rem max(1.5rem, 4vw); }
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 3rem; position: relative; z-index: 20; }
.usp-number { font-size: 2.5rem; color: var(--accent); opacity: 0.6; font-family: var(--font-display); display: block; margin-bottom: 0.5rem; font-weight: 700; }

/* --- HISTORY SECTION --- */
.history-section { position: relative; height: 400vh; }
.history-pin-wrapper { 
    height: 100vh; 
    width: 100%; 
    overflow: hidden; 
    background: #05080c; 
}
.history-image-mobile-wrapper {
    position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
}
.history-bg { 
    position: absolute; inset: 0; width: 100%; height: 100%; 
    background-size: cover; background-position: center; 
    object-fit: cover;
    transition: none;
}

/* LOGIC: BW (z-index 1) is bottom. Color (z-index 2) is top but opacity 0. */
.bg-bw { z-index: 1; filter: grayscale(80%) sepia(20%); opacity: 1; }
.bg-color { z-index: 2; opacity: 0; } 

.history-content { position: relative; z-index: 20; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 6rem; }
.history-card { max-width: 600px; margin-left: auto; background: rgba(5,8,12,0.85); border: 1px solid var(--border); will-change: transform; }
.section-label { color: var(--accent); letter-spacing: 1px; margin-bottom: 0.5rem; display: block; font-style: italic; font-weight: 600; }
.history-body .lead { font-size: 1.15rem; color: #fff; margin-bottom: 1.5rem; }
.history-body .highlight-text { color: var(--accent); font-size: 1.1rem; margin-top: 1rem; }

/* Services Section */
.services-section { padding: 8rem max(1.5rem, 4vw) 4rem; }
.section-header { text-align: center; margin-bottom: 4rem; position: relative; z-index: 20; }

/* --- SERVICE CARDS --- */
.services-stack {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
    z-index: 20;
}

.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background-color: var(--surface);
    border-radius: 8px; /* Sharper corners */
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sticky-card {
    position: sticky;
    top: calc(120px + (var(--i) * 50px));
    margin-bottom: calc(150px - (var(--i) * 50px));
    min-height: 450px;
}

.card-bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center;
    opacity: 0.3; /* Darker default */
    filter: grayscale(80%); /* Artistic touch */
    transition: all 0.6s ease;
}
.service-card:hover .card-bg { 
    transform: scale(1.05); 
    opacity: 0.5;
    filter: grayscale(0%);
}

.modern-card-content {
    position: relative; z-index: 20;
    height: 100%; width: 100%;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(5,8,12,0.8) 0%, rgba(5,8,12,0.4) 100%);
}

.card-header { border-left: 3px solid var(--accent); padding-left: 1.5rem; margin-bottom: 1.5rem; }
.card-num { font-family: var(--font-display); font-size: 4rem; font-weight: 700; color: rgba(255,255,255,0.05); line-height: 1; position: absolute; right: 2rem; top: 1rem; }
.card-header h3 { font-size: 2rem; margin: 0; color: #fff; word-break: break-word; hyphens: auto; }

.card-body { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; }
.card-body p { margin: 0; max-width: 80%; font-size: 1.1rem; color: #ccc; }
.card-icon { font-size: 2rem; color: var(--accent); opacity: 0.8; transition: transform 0.3s; }
.service-card:hover .card-icon { transform: rotate(-10deg) scale(1.2); opacity: 1; }

/* --- PRICING SECTION --- */
.pricing-section {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--bg-dark), var(--surface));
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 20;
}

.pricing-grid a:nth-of-type(1) { grid-column: span 2; }
.pricing-grid a:nth-of-type(2) { grid-column: span 2; }
.pricing-grid a:nth-of-type(3) { grid-column: span 2; }
.pricing-grid a:nth-of-type(4) { grid-column: 2 / span 2; }
.pricing-grid a:nth-of-type(5) { grid-column: 4 / span 2; }

.pricing-image-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border: 1px solid var(--border);
    height: 100%;
}

.pricing-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.3s, transform 0.5s ease;
}

.pricing-image-card:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.price-example-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.price-example-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 3px; height: 0;
    background: var(--accent);
    transition: height 0.4s ease;
}

.price-example-box:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 189, 0, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.price-example-box:hover::before {
    height: 100%;
}

.price-header { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    color: #fff; 
    font-weight: 600; 
    margin-bottom: 1.5rem; 
    font-size: 1.05rem; 
    font-family: var(--font-display);
}

.price-header i {
    color: var(--accent);
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.price-body { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding-top: 1.2rem; 
}

.price-row { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 0.8rem; 
    color: var(--text-muted); 
    font-size: 0.9rem;
}

.price-total { 
    display: flex; 
    justify-content: space-between; 
    align-items: baseline; 
    margin-top: 1rem; 
}

.price-total span:first-child {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    font-weight: 700;
}

.price-total .amount { 
    font-size: 1.8rem; 
    color: #fff; 
    font-weight: 700; 
    font-family: var(--font-display);
}

.pricing-footer {
    text-align: center;
    margin-top: 4rem;
}

.pricing-expand-btn {
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1.5rem;
    border-radius: 12px;
    color: var(--accent);
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.pricing-expand-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.pricing-expand-btn i {
    transition: transform 0.3s ease;
}

.pricing-grid.expanded .pricing-expand-btn i {
    transform: rotate(180deg);
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid .price-example-box:nth-child(n),
    .pricing-grid .pricing-image-card {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pricing-section {
        padding: 4rem 0;
    }
    
    .pricing-grid .mobile-hidden {
        display: flex;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        border-width: 0;
        margin-top: -1.5rem; /* Offset the grid gap */
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                    padding 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                    border-width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                    margin-top 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), 
                    opacity 0.4s ease;
    }
    
    .pricing-grid.expanded .mobile-hidden {
        max-height: 500px; /* Large enough to fit content, prevents clipping if text wraps */
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        border-width: 1px;
        margin-top: 0;
        opacity: 1;
    }
    
    .pricing-expand-btn {
        display: flex;
    }
    
    /* Smaller text on mobile*/
    .price-header {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .price-row {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }
    
    .price-total .amount {
        font-size: 1.4rem;
    }
    
    .price-total span:first-child {
        font-size: 0.75rem;
    }
}

.text-link { color: var(--text-muted); text-decoration: none; border-bottom: 1px solid var(--accent); transition: 0.3s; padding-bottom: 2px; font-size: 0.95rem; font-weight: 500; }
.text-link:hover { color: var(--accent); }

/* --- FAQ ACCORDION --- */
.faq-section { padding: 4rem max(1.5rem, 4vw); }
.faq-accordion { max-width: 800px; margin: 0 auto; position: relative; z-index: 20; }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-header {
    width: 100%; padding: 1.5rem 0; text-align: left; background: none; border: none;
    color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
    cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    transition: color 0.3s;
}
.accordion-header:hover { color: var(--accent); }
.accordion-header i { transition: transform 0.3s; font-size: 0.9rem; color: var(--accent); }
.accordion-item.active .accordion-header i { transform: rotate(180deg); }

.accordion-content {
    height: 0; overflow: hidden; transition: height 0.3s ease-out;
}
.inner-content { padding-bottom: 1.5rem; color: var(--text-muted); line-height: 1.7; }
.faq-link {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s;
}
.faq-link:hover {
    opacity: 0.8;
}

/* --- FOOTER --- */
footer {
    background: #020305;
    padding: 6rem 0 2rem;
    border-top: 1px solid var(--border);
}
.footer-grid {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; margin-bottom: 4rem; position: relative; z-index: 20;
}
.form-card-footer {
    background: rgba(15, 20, 30, 0.7); padding: 2.5rem; border-radius: 12px; border: 1px solid var(--border);
}
.form-card-footer h3 { margin-bottom: 1.5rem; }
.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; font-size: 0.8rem; text-transform: uppercase; margin-bottom: 0.5rem; color: #888; letter-spacing: 1px; }

/* GDPR Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
}
.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

input, textarea {
    width: 100%; background: rgba(11, 15, 22, 0.5); border: 1px solid rgba(255,255,255,0.1); padding: 1rem; color: #fff; border-radius: 4px;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

.footer-info-col h3 { margin-bottom: 2rem; }
.contact-list { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; font-size: 1.1rem; color: #ccc; margin-bottom: 0.5rem; }
.contact-icon { color: var(--accent); width: 25px; display: flex; justify-content: center; padding-top: 5px; }
.service-area-text { margin-top: 1rem; font-style: italic; color: var(--text-muted); border-left: 2px solid var(--accent); padding-left: 1rem; }

.partners-block { margin-top: 3rem; }
.partners-block h4 { font-size: 0.9rem; color: #a0a0a0; text-transform: uppercase; margin-bottom: 1rem; }
.partners-logos-footer { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.partner-logo {
    height: 40px; width: auto; 
    filter: grayscale(100%); opacity: 0.7;
    transition: all 0.3s ease;
}
.partner-logo-large {
    height: 54px;
    max-width: 45vw;
    object-fit: contain;
}
@media (min-width: 901px) {
    .partner-logo-large {
        height: 72px;
        max-width: none;
    }
}
.partner-logo:hover { filter: grayscale(0%); opacity: 1; }

.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 2rem; position: relative; z-index: 20; }
.copyright-text { font-size: 0.85rem; color: #999; line-height: 1.6; }
.copyright-text a { color: #999; }
.copyright-text a:hover { color: var(--accent); }

/* Site Credit Tooltip */
.site-credit-wrapper {
    position: relative;
    display: inline-block;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: #666;
}

.site-credit-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s;
}

.site-credit-trigger:hover {
    color: #aaa;
}

.credit-logo {
    border-radius: 4px;
    filter: grayscale(100%);
    transition: filter 0.3s, transform 0.3s;
}

.site-credit-trigger:hover .credit-logo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.credit-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 1.5s;
    z-index: 100;
    text-align: left;
    color: #ddd;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1) !important;
    border-radius: 16px !important;
}

/* Invisible bridge so hover doesn't drop when moving from trigger to tooltip */
.credit-tooltip::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 15px;
}

.site-credit-wrapper:hover .credit-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
}

.site-credit-wrapper.force-hide .credit-tooltip {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition-delay: 0s !important;
}

.close-tooltip {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-tooltip:hover {
    color: #fff;
}

.credit-tooltip-content strong {
    display: block;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin-bottom: 0.6rem;
    padding-right: 15px; /* space for close button */
    line-height: 1.4;
}

.credit-tooltip-content p {
    font-size: 0.8rem;
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #aaa;
}

.credit-contact-link {
    display: inline-block;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.3s;
}

.credit-contact-link:hover {
    color: #fff;
    text-decoration: underline;
}

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 50px; height: 50px; background: var(--accent); color: #000;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; text-decoration: none; opacity: 0; pointer-events: none;
    transition: all 0.3s; z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); box-shadow: 0 0 15px var(--accent); }

/* Responsive */
@media (max-width: 900px) {
    .hide-mobile { display: none !important; }
    .show-mobile { display: flex !important; }
    
    .hero-subtext { font-size: 1rem; max-width: 100%; }
    .eyebrow { letter-spacing: 0.1em; font-size: 0.75rem; }
    .hero-section { padding-top: 45px; } /* Reduced by 15px as requested */
    .hero-logo { width: 275px; } /* Increased to 275px as requested */
    .hero-logo-wrapper { margin-bottom: 1.5rem; } /* Reduced spacing for mobile */
    .footer-logo { height: 60px; } /* 75% of original 80px */
    
    /* Sticky cards on mobile */
    .services-stack { padding: 0; }
    .sticky-card { position: relative; top: 0 !important; margin-bottom: 2rem; min-height: auto; }
    .modern-card-content { padding: 2rem; }
    .card-header h3 { font-size: 1.4rem; }
    .card-num { font-size: 3rem; }
    
    .usp-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    /* History Section Mobile Optimization */
    .history-section { height: auto; min-height: 150vh; }
    
    .history-pin-wrapper {
        height: 100%;
        display: block;
        position: relative;
    }
    
    /* New Wrapper Logic */
    .history-image-mobile-wrapper {
        position: sticky;
        top: 0;
        height: 0; /* Key for overlap: allows content to scroll over it */
        width: 100%;
        z-index: 0;
        overflow: visible;
    }
    
    .history-bg {
        position: absolute;
        top: 0; left: 0;
        height: 50vh;
        width: 100%;
        z-index: 1;
    }
    
    .history-content {
        position: relative;
        z-index: 10;
        padding: 2rem 1.5rem 4rem;
        justify-content: flex-start;
        height: auto;
        margin-top: calc(45vh - 20px); /* Push content below the 50vh image initially, with extra overlap */
    }

    .history-card { 
        margin: 0; 
        width: 100%; 
        padding: 2.5rem; 
        background: rgba(5, 8, 12, 0.95) !important; /* Solid background to cover image */
        backdrop-filter: blur(10px) !important;
        border: 1px solid var(--border) !important;
        box-shadow: 0 -10px 30px rgba(0,0,0,0.5) !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
        border-radius: 20px; /* Rounded all corners on mobile */
    }
    
    /* Text readability improvements */
    .history-card h2, .section-label {
        text-shadow: none;
    }
    
    .history-body p {
        color: var(--text-muted);
        text-shadow: none;
        background: none;
        padding: 0;
        border-radius: 0;
        margin-bottom: 1.5rem;
        border: none;
        backdrop-filter: none;
    }
    
    /* Hide the overlay that was darkening everything */
    .history-pin-wrapper::after { display: none; }
    
    .footer-grid { display: flex; flex-direction: column; }
    
    .services-section { padding-top: 3rem; padding-bottom: 3rem; }
    .heritage-gallery { padding-top: 1.5rem; }
    .usp-section { padding-top: 1.5rem; padding-bottom: 3rem; }
    .faq-section { padding-top: 1.5rem; padding-bottom: 3rem; }
    .pricing-section { padding-top: 1.5rem; padding-bottom: 3rem; }
    .cta-banner-section { padding-bottom: 3rem; }
    footer { padding-top: 3rem; }
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 380px;
    width: 100%;
    background: rgba(12, 19, 29, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.cookie-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0;
}

.cookie-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    flex: 1;
    white-space: nowrap;
}

/* Mobile Cookie Banner */
@media (max-width: 600px) {
    .cookie-banner {
        left: 0;
        right: 0;
        bottom: 0;
        max-width: none;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 1.25rem 1.5rem;
    }
    
    .cookie-actions {
        flex-direction: column;
    }
}

/* --- HERITAGE GALLERY --- */
.heritage-gallery {
    padding: 3rem 1.5rem;
    margin-bottom: 4rem; /* Added spacing before CTA */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-top: 3rem;
    position: relative;
    z-index: 20;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.item-large {
    grid-column: span 8;
    aspect-ratio: 16 / 9;
}

.item-small {
    grid-column: span 4;
    aspect-ratio: 4 / 5;
}

.gallery-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) sepia(20%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

@media (min-width: 900px) {
    .gallery-img-wrapper img.align-left-desktop {
        object-position: left center;
    }
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) sepia(0%); /* Palauttaa värit hoverilla! */
}

/* --- CTA BANNER --- */
.cta-banner-section {
    padding: 2rem 1.5rem 6rem 1.5rem;
    position: relative;
    z-index: 20;
}

.cta-glass-panel {
    background: linear-gradient(135deg, rgba(15, 20, 30, 0.7), rgba(5, 8, 12, 0.85));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 4.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 50px rgba(0,0,0,0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-glass-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Combine dark gradient overlay with the bg */
    background: 
        linear-gradient(135deg, rgba(5, 8, 12, 0.75) 0%, rgba(5, 8, 12, 0.2) 100%),
        url('/media/lehtisen taksit palvelevat taksi tampereen palvelualueella.webp');
    background-size: cover;
    background-position: top left;
    opacity: 0.5;
    z-index: 1;
    pointer-events: none;
    /* Smooth radial mask for bg*/
    mask-image: radial-gradient(circle at 0% 0%, black 0%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 0% 0%, black 0%, transparent 85%);
    filter: grayscale(80%);
    transition: all 0.6s ease;
}

.cta-glass-panel:hover::before {
    transform: scale(1.05);
    opacity: 0.7;
    filter: grayscale(0%);
}

.cta-glass-panel:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 30px 60px rgba(0,0,0,0.6),
        0 0 20px rgba(255, 189, 0, 0.1);
    border-color: rgba(255, 189, 0, 0.3);
}

.cta-content {
    position: relative;
    z-index: 20;
    max-width: 800px;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-optimized-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 3rem 0;
    font-weight: 300;
    max-width: 90%;
}

.cta-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: stretch; /* Ensure buttons stretch to equal height */
}

.cta-actions .btn {
    flex: 1 1 auto; /* Allow buttons to grow and shrink, but default to auto */
    min-height: 100%; /* Ensure they take full height of the container */
    position: relative;
}

.cta-actions .btn-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

@media (min-width: 769px) {
    .cta-actions {
        flex-wrap: nowrap; /* Force side-by-side on desktop */
    }
    .cta-actions .btn {
        flex: 1 1 0; /* Equal width on desktop */
    }
}

@media (max-width: 768px) {
    .cta-actions .btn {
        width: 100%;
        min-height: 70px; /* Fixed height to match buttons with two lines */
    }
}

.cta-decoration {
    position: absolute;
    right: -40px;
    bottom: -60px;
    opacity: 0.03;
    z-index: 1;
    pointer-events: none;
}

.water-mark {
    font-size: 350px;
    color: #fff;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cta-glass-panel:hover .water-mark {
    transform: scale(1.1);
}

/* Mobile Responsiveness for new sections */
@media (max-width: 992px) {
    .item-large, .item-small {
        grid-column: span 12; /* Stack images on mobile */
        aspect-ratio: 16 / 9;
    }
    .cta-glass-panel {
        padding: 2.5rem 1.5rem;
    }
    .cta-glass-panel::before {
        background-position: 30% center;
        mask-image: radial-gradient(circle at center, black 0%, transparent 85%);
        -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 85%);
    }
    .water-mark {
        font-size: 175px;
    }
}