/* ==========================================
   ÄLYKONSULTTI - STYLES
   Väripaletti pohjautuu logoon
   ========================================== */

/* CSS MUUTTUJAT - Logon värit */
:root {
    /* Päävärit logosta */
    --primary-blue: #A3D9F0;
    --secondary-peach: #F4B88E;
    --dark-blue: #2C5F7C;
    --light-bg: #E8F5FA;
    
    /* Tukivärit */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-gray: #666666;
    --hover-peach: #E89D6B;
    
    /* Typografia */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-max: 1200px;
}

/* ==========================================
   RESET & BASE
   ========================================== */

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ==========================================
   NAVIGATION
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 0.6rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.logo-image {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    letter-spacing: 0.5px;
    line-height: 1;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--dark-blue);
}

.cta-button-small {
    background: var(--secondary-peach);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
}

.cta-button-small:hover {
    background: var(--hover-peach);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 184, 142, 0.3);
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding-top: 40px;
    overflow: hidden;
}

.hero-small {
    min-height: 50vh;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(163, 217, 240, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(244, 184, 142, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.cta-button {
    display: inline-block;
    background: var(--secondary-peach);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: var(--hover-peach);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 184, 142, 0.4);
}

/* ==========================================
   SERVICES SECTION
   ========================================== */

.services {
    padding: var(--section-padding);
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-blue);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card:nth-child(1).visible {
    transition-delay: 0.1s;
}

.service-card:nth-child(2).visible {
    transition-delay: 0.2s;
}

.service-card:nth-child(3).visible {
    transition-delay: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(44, 95, 124, 0.1);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--dark-blue);
}

.service-icon svg {
    width: 100%;
    height: 100%;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.service-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-link {
    color: var(--dark-blue);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: var(--secondary-peach);
}

/* ==========================================
   FORM SECTION
   ========================================== */

.form-section {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, var(--white), var(--light-bg));
}

.form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-wrapper h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.form-subtitle {
    text-align: center;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-blue);
    font-size: 0.95rem;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.8rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: white;
    font-weight: 400;
}

.checkbox-label:hover {
    border-color: var(--primary-blue);
    background: rgba(163, 217, 240, 0.05);
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-blue);
    border-radius: 4px;
    margin-right: 0.8rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom {
    background: var(--primary-blue);
}

.checkbox-label input[type="radio"]:checked ~ .checkbox-custom {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input[type="radio"]:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.form-group input,
.form-group select {
    padding: 0.9rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    appearance: none;
    cursor: pointer;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232C5F7C' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(163, 217, 240, 0.2);
}

.contact-form button[type="submit"] {
    margin-top: 1rem;
    width: 100%;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

.about {
    padding: var(--section-padding);
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-item {
    padding: 2rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(44, 95, 124, 0.1);
}

.value-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--secondary-peach);
}

.value-icon svg {
    width: 100%;
    height: 100%;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.value-item p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ==========================================
   FOOTER
   ========================================== */

.cta-section {
    padding: 4rem 0;
    background: var(--light-bg);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-info h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.contact-info {
    margin-top: 1rem;
}

.contact-info a {
    color: var(--primary-blue);
}

.contact-info a:hover {
    color: var(--secondary-peach);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* ==========================================
   MOBILE NAVIGATION
   ========================================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--dark-blue);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--white);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .cta-button-small {
        margin-top: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .values {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}
