:root { --primary: #1e3a5f; --secondary: #e8722a; --accent: #f4a460; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.7; color: #1a1a1a; background: #fff; }
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section h2 { font-size: 28px; font-weight: 700; color: var(--primary); margin-bottom: 32px; text-align: center; }
.section-dark { background: #f8f9fb; }
.section-alt { background: #f4f7fb; }
.site-logo { max-width: 160px; height: auto; margin-bottom: 20px; border-radius: 8px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.service-card { background: #fff; padding: 28px 20px; border-radius: 12px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border: 1px solid #f0f0f0; transition: transform 0.2s, box-shadow 0.2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.service-icon { font-size: 32px; margin-bottom: 12px; display: block; }
.service-card h3 { font-size: 16px; font-weight: 600; color: var(--primary); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; max-width: 800px; margin: 0 auto; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.contact-icon { font-size: 24px; flex-shrink: 0; }
.contact-text { font-size: 14px; color: #444; }
.contact-text strong { color: var(--primary); display: block; margin-bottom: 2px; }
.contact-text a { color: var(--secondary); text-decoration: none; }
.contact-text a:hover { text-decoration: underline; }
footer { background: var(--primary); color: #fff; padding: 30px 0; text-align: center; }
footer p { font-size: 14px; opacity: 0.8; }
footer .powered-by { margin-top: 8px; font-size: 12px; opacity: 0.4; }
footer .powered-by a { color: #f4a460; text-decoration: none; }

/* Galleria (v2.3.0) */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.gallery-grid-small { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gallery-item { position: relative; overflow: hidden; border-radius: 10px; aspect-ratio: 4/3; cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; display: block; }
.gallery-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.92); }
.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img-wrap { display: flex; align-items: center; justify-content: center; }
.lightbox-img-wrap img { max-width: 85vw; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.lightbox-close { position: fixed; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 40px; cursor: pointer; z-index: 10001; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: #fff; font-size: 48px; cursor: pointer; padding: 8px 16px; z-index: 10001; border-radius: 8px; opacity: 0.6; transition: opacity 0.2s, background 0.2s; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-counter { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.6); font-size: 14px; z-index: 10001; }

/* Yhteydenottolomake (v2.2.0) */
.contact-form-wrapper { max-width: 600px; margin: 0 auto; }
.contact-form-intro { text-align: center; color: #666; margin-bottom: 28px; font-size: 16px; }
.cf-field { margin-bottom: 18px; }
.cf-field label { display: block; font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 5px; }
.cf-field input, .cf-field textarea { width: 100%; padding: 12px 16px; border: 2px solid #e0e7ef; border-radius: 8px; font-size: 15px; font-family: inherit; transition: border-color 0.2s; background: #fff; color: #1a1a1a; }
.cf-field input:focus, .cf-field textarea:focus { outline: none; border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.cf-field textarea { resize: vertical; min-height: 100px; }
.cf-row { display: flex; gap: 16px; }
.cf-row .cf-field { flex: 1; }
.cf-submit-row { margin-top: 8px; }
.cf-button { display: block; width: 100%; padding: 14px 28px; background: var(--secondary); color: #fff; font-size: 16px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.cf-button:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.cf-button:disabled { opacity: 0.5; cursor: not-allowed; }
.cf-status { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; text-align: center; }
.cf-status-success { background: #eaf7ed; color: #2d8a4e; border: 1px solid #b8e6c8; }
.cf-status-error { background: #fdecea; color: #c0392b; border: 1px solid #f5c6cb; }

@media (max-width: 600px) {
    .section { padding: 40px 0; }
    .section h2 { font-size: 24px; }
    .services-grid, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
    .cf-row { flex-direction: column; gap: 0; }
    .lightbox-prev, .lightbox-next { font-size: 32px; padding: 6px 12px; }
}

.hero { position: relative; background: linear-gradient(135deg, #1e3a5f 0%, #2d5f8a 50%, #e8722a 100%); color: #fff; padding: 100px 0 80px; text-align: center; overflow: hidden; min-height: 400px; display: flex; align-items: center; justify-content: center; }
.hero-pattern { position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.08; background-image: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,1) 35px, rgba(255,255,255,1) 70px); }
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; padding: 0 24px; }
.hero h1 { font-size: 44px; font-weight: 800; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.hero-tagline { font-size: 20px; opacity: 0.9; margin-bottom: 28px; font-weight: 300; }
.hero-contacts { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.hero-contact-link { color: #fff; text-decoration: none; font-size: 16px; background: rgba(255,255,255,0.15); padding: 10px 20px; border-radius: 30px; transition: background 0.3s; }
.hero-contact-link:hover { background: rgba(255,255,255,0.25); }
.about-text { font-size: 17px; color: #444; max-width: 700px; margin: 0 auto; text-align: center; line-height: 1.8; }
@media (max-width: 600px) { .hero { padding: 60px 0 50px; min-height: 300px; } .hero h1 { font-size: 30px; } .hero-contacts { flex-direction: column; align-items: center; gap: 10px; } }
