
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Päävärit */
    --primary-color: #1e40af;      /* Tummansininen */
    --secondary-color: #0891b2;    /* Sinivihreä */
    --accent-color: #d4af37;       /* Lämmin kulta */
    
    /* Neutraalit */
    --dark-bg: #1e293b;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}



/*  .logo  */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Responsiivinen lisäys mobiilille */
@media (max-width: 768px) {
    .logo-image {
        height: 60px;
    }
    
   
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    margin: 3px 0;
    transition: 0.3s;
}

/* HERO */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
   
 
}
@media (max-width: 768px) {
    .hero {
        height: 60vh;
        /*min-height: 400px;*/
    }
}

/* Taustakuvien vaihtuva animaatio */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroSlideshow 24s infinite;
    z-index: -2;
}


.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(30, 64, 175, 0.35),  /* tummansininen 35% */
        rgba(56, 189, 248, 0.15)  /* vaalea sinivihreä 15% */
    );
    z-index: -1;
}

/* Animaatio: 4 kuvaa, 6s per kuva */
@keyframes heroSlideshow {
    0%   { background-image: url('images/hero1.png'); }
    33%  { background-image: url('images/hero2c.jpg'); }
    66%  { background-image: url('images/hero3.png'); }
    90%  { background-image: url('images/hero4.png'); }
    100%   { background-image: url('images/hero1.png'); }
}

.hero-content {
    max-width: 800px;
    padding-top: 50px; /*yläosaan tilaa*/
}

.hero h1 {
    font-size: clamp(1.5rem, 5vw, 4rem); /* minimi, suositeltu prosenttia, maksimi */ 
    line-height: 1.2;
    margin-top: 5vw;
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(0.8rem, 2.5vw, 1.5rem); /* minimi, suositeltu prosenttia, maksimi */
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Lisää dynaamisempi kuvio-animaatio */
@keyframes movePattern {
    0% { 
        transform: translate(0, 0) rotate(0deg); 
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% { 
        transform: translate(60px, 60px) rotate(360deg); 
        opacity: 1;
    }
}

/* Sections */
.section {
    padding: 6rem 0;
}
/* mobiilisääntö */
@media (max-width: 480px) {
    .section {
        padding: 4rem 0;
    }
}

.section-dark {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
    
}

.section-dark::before {
    animation: movePattern 5s linear infinite, pulse-glow 4s ease-in-out infinite;
}

.section-dark::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(12, 142, 193, 0.712) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(2, 43, 156, 0.61) 0%, transparent 60%);
    animation: gradientShift 5s ease-in-out infinite alternate;
    z-index: 0;
}

.section-dark .container {
    position: relative;
    z-index: 10;
}


.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-dark-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--white);
}
.section-dark .section-title {
    margin-top: 3rem;
}
.section-text {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-text-left {
    text-align: left;
    margin-bottom: 3rem;
    position: relative;
}
.section-dark-text-leftalign {
    text-align: left;
    margin-bottom: 6rem;
    position: relative;
    color: var(--text-light)
}

/*light bulletpoint*/

.section-bulletpoint {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    margin-left: 6rem;
   
}
.section-bulletpoint li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.6;

}

.section-bulletpoint li::before {
    content: '●'; 
    position: absolute;
    left: 0;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;

}


@media (max-width: 768px) {
    .section-bulletpoint {
        margin-left: 1.5rem; /* tai 0 */
    }

    .section-bulletpoint li {
        padding-left: 1.5rem; /* pienempi sisennys */
    }

    .section-bulletpoint li::before {
        font-size: 1rem;
        left: 0;
    }
}



/*dark bulletpoint*/

section-dark-bulletpoint {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
.section-dark-bulletpoint li {
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    color: var(--white);
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-dark-bulletpoint li::before {
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
}


.section-dark .section-dark-bulletpoint li::before {
    color: var(--accent-color);
}



/*header*/
.section-dark-header {
    text-align: center;
    margin-top: 3rem;

    margin-bottom: 3rem;
    position: relative;

}

.section-header {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

.section-dark .section-title::after {
    background: var(--accent-color);
}

/* Service Cards */
.service-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02) !important; /* Lisää scale. !important ohittaa scroll-revealin. */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Isompi varjo */
}
.service-icon {
    font-size: 3rem;
    min-width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-icon img {
    width: 130px;
    height: 130px;
    object-fit: contain;
}
.service-content h4 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

.service-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
}


/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}


@media (max-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
}

.content-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.05);
}

/* Content Grid (2 columns)
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-grid.reverse {
    direction: rtl;
}

.content-grid.reverse > * {
    direction: ltr;
}
*/
.content-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.content-image img:hover {
    transform: scale(1.05);
}


/* Content list (1 column, center)*/

.content-list {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

@media (max-width: 768px) {
    .content-list {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .content-list {
        padding: 0 1rem;
    }
}


.content-list.reverse {
    direction: rtl;
}

.content-list.reverse > * {
    direction: ltr;
}

.content-list-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.content-list-image img:hover {
    transform: scale(1.05);
}




/* varustelutasot */
.level-a { border-left-color: #10b981; }
.level-b-plus { border-left-color: #06b6d4; }
.level-b { border-left-color: #3b82f6; }
.level-c { border-left-color: #f59e0b; }


.feature-box,
.level-box {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.section:not(.section-dark) .feature-box,
.section:not(.section-dark) .level-box {
    background: var(--light-bg);
    border-left-color: var(--primary-color);
}

.feature-box:hover,
.level-box:hover {
    transform: translateX(10px);
}

.feature-box h4,
.level-box h4 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.section:not(.section-dark) .feature-box h4,
.section:not(.section-dark) .level-box h4 {
    color: var(--primary-color);
}

.level-a { border-left-color: #10b981; }
.level-b { border-left-color: #3b82f6; }
.level-c { border-left-color: #2c11c7; }
.level-d { border-left-color: #ef4444; }


@media (max-width: 768px) {
  .level-box {
        width: 100%;
        margin: 0 auto;
        padding: 1.5rem;

  
  }

  .level-box h3 {
    font-size: 1.25rem;
  }

  .level-box p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .level-box img {
    width: 100%;
    height: auto;
    margin-bottom: 16px;
  }
}


/* Process Grid */
.intro-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-light);
}

.section-dark .intro-text {
    color: rgba(255, 255, 255, 0.8);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.process-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.process-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.process-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
}

.process-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-dark);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.process-card h3 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.process-card ul {
    list-style: none;
}

.process-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: --text-dark;
}

.process-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--text-dark);
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    position: relative;
    overflow: hidden;
}
/*
.contact-section::before {
    animation: movePattern 5s linear infinite, pulse-glow 4s ease-in-out infinite;

}

.contact-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(12, 142, 193, 0.712) 0%, transparent 60%),
                radial-gradient(circle at 70% 60%, rgba(2, 43, 156, 0.61) 0%, transparent 60%);
    animation: gradientShift 5s ease-in-out infinite alternate;
    z-index: 0;
}
    */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}



.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 10;
}


        



.contact-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    padding: 0.5rem 1rem;
    /*border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);*/
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}


.contact-item {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 1rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
}

.contact-item a[href^="mailto:"],
.contact-item a[href^="tel:"] {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem; 
    user-select: text; /* Sallii tekstin kopioinnin */
    cursor: text; /* Muuttaa kursorin tekstikursoriksi */
}

.contact-item a[href^="mailto:"]:hover,
.contact-item a[href^="tel:"]:hover {
    transform: scale(1.05);
    cursor: pointer; /* Hover-tilassa näyttää että voi klikata */
}




/* Jos käytät suoraan näytettäviä tietoja ilman linkkiä */
.contact-item span:not(.contact-icon) {
    font-weight: 500;
}
/* Footer */
.footer {
    
    text-align: center;
    padding: 2rem 0;
}


.scroll-reveal {
    opacity: 0; /* Piilossa oletuksena */
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1; /* NÄKYY kun JS lisää .revealed */
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }



 

    .content-grid,
    .content-grid.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .section-title {
        font-size: 2rem;
    }



    .process-grid {
        grid-template-columns: 1fr;
    }
}


/* Varmista että sisältö näkyy jos JavaScript ei lataudu */
.no-js .scroll-reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Yhteystiedot-sektion päivitykset */


.contact-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--white);
}


/* lomakkeen pohja */
.contact-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3,
.contact-info-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}


/* Lomake */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.form-group input,
.form-group textarea {
    padding: 0.9rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    margin-top: 0.5rem;
    width: 100%;
    cursor: pointer;
    border: none;
    font-size: 1.1rem;
}

.contact-form .cta-button:hover {
    transform: translateY(-2px);
}

/* Lomakkeen viestit */
.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}


/* Yhteystiedot-osio */
.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-extra {
    margin-top: 1rem;
    padding: 1.5rem;
   /* background: rgba(255, 255, 255, 0.1);
    border-radius: 15px; */
    border-left: 4px solid var(--accent-color);
}

.contact-extra p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Responsiivisuus */

/* Contact wrapper - jakaa lomakkeen ja yhteystiedot kahdelle puolelle */

/* Desktop */
@media (min-width: 769px) {
    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        max-width: 1100px;
        margin: 0 auto;
        z-index: 5;
    }
}

/* Mobiili */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
        width: 100% !important;
        gap: 2rem;
        z-index: 5;
    }
}

.contact-wrapper {
    position: relative;
    z-index: 5;
}


/* pienennetään lomakkeen paddingeja mobiilissa */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
        border-radius: 15px;
    }
}
/* pienennetään lomakkeen inputien sisäpaddingeja mobiilissa */
@media (max-width: 768px) {
    .form-group input,
    .form-group textarea {
        padding: 0.7rem 0.9rem;
        font-size: 1rem;
    }
}
/* kompaktimmat radiobuttonryhmät mobiilissa */
@media (max-width: 768px) {
    #target-type-group label,
    #package-type-group label {
        font-size: 0.95rem;
        line-height: 1.3;
    }
}

/* pienennetään otsikoiden ja tekstien marginaalejamobiilissa */
@media (max-width: 768px) {
    .contact-info-container h3,
    .contact-form-container h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    .contact-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}






