﻿/* -------------------------------------------------------
   GLOBAL RESET
------------------------------------------------------- */
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #fff;
    color: #333;
}

img {
    max-width: 100%;
    height: auto;
}

/* -------------------------------------------------------
   NAVBAR (Bootstrap 5 + custom styles)
------------------------------------------------------- */

.landing-navbar {
    background-color: #4e73df;
    padding: 0.75rem 0;
}

/* Force proper Bootstrap navbar behavior */
.navbar-nav {
    align-items: center;
}


/* NAVBAR LOGO */
.landing-navbar .navbar-brand img {
    height: 80px; /* <-- pienennä tästä halutuksi */
    max-height: 80px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Menu link styles */
.landing-navbar .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 8px 14px;
}

    .landing-navbar .nav-link:hover {
        opacity: 0.85;
    }

/* Remove default UL spacing */
.landing-navbar ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Right-side (language + login) alignment */
.landing-navbar .navbar-nav.ms-auto {
    margin-left: auto !important;
}

/* Toggler icon (white) */
.navbar-toggler-icon {
    filter: invert(100%);
}

.navbar-toggler {
    border-color: rgba(255,255,255,0.7);
}

/* Dropdown menu */
.landing-navbar .dropdown-menu {
    min-width: 200px;
    padding: 8px 0;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.landing-navbar .dropdown-item {
    font-size: 0.95rem;
    color: #333 !important;
    padding: 8px 18px;
}

    .landing-navbar .dropdown-item:hover {
        background: #f0f0f0;
    }

/* Username next to avatar */
.landing-navbar .username {
    color: #fff;
    font-weight: 500;
    margin-left: 8px;
}

/* Align avatar + username horizontally */
.landing-navbar .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

    /* Avatar */
    .landing-navbar .dropdown-toggle img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
    }


/* -------------------------------------------------------
   HERO SECTION
------------------------------------------------------- */

.hero-section {
    position: relative;
    min-height: 480px;
    padding: 140px 0 120px 0;
    background-image: url('/img/header-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 135deg, rgba(0,0,0,0.65), rgba(0,0,0,0.35) );
    pointer-events: none;
}

/* Text shadow */
.hero-section h1,
.hero-section h5 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.55);
}

/* CTA buttons */
.hero-section .btn-primary {
    background-color: #1a73e8;
    border-color: #1a73e8;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hero-section .btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,0.8);
    font-weight: 600;
    background-color: rgba(255,255,255,0.15);
    backdrop-filter: blur(3px);
}

    .hero-section .btn-outline-light:hover {
        background-color: rgba(255,255,255,0.30);
        color: #fff;
    }
/* -------------------------------------------------------
   PAGE SECTIONS
------------------------------------------------------- */

.page-section {
    padding: 60px 0;
    margin: 0;
}

/* -------------------------------------------------------
   FEATURES
------------------------------------------------------- */

.feature-box {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    transition: all .2s ease;
}

    .feature-box:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 24px rgba(0,0,0,.15);
    }

    .feature-box img {
        height: 80px;
        margin-bottom: 18px;
    }


/* -------------------------------------------------------
   FOOTER
------------------------------------------------------- */

.landing-footer {
    font-size: 14px;
    color: #666;
    background: #fff;
    border-top: 1px solid #eee;
    padding: 20px 0;
    text-align: center;
}

.pricing-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

.pricing-box ul li {
    margin: 6px 0;
    font-size: 0.95rem;
}

.pricing-box .display-6 {
    color: #4e73df;
}

.feature-box img {
    height: 64px;
    width: auto;
}

/* PAGE HEADER */
.page-header {
    padding: 40px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid #eee;
}

.page-header-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.page-header-title {
    font-size: 1.9rem;
    font-weight: 600;
}

/* Public Pages Content Wrapper */
.public-content .container {
    max-width: 900px; /* sopiva leveys blogi/uutissivuille */
}

.public-content {
    padding-bottom: 80px; /* ettei footer liimaudu kiinni */
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
}

.contact-link {
    color: #4e73df;
    font-weight: 500;
    text-decoration: none;
}

    .contact-link:hover {
        text-decoration: underline;
    }