/* GLOBAL RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Lato', sans-serif;
    color: #4a4a4a;
    line-height: 1.7;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, nav a, button {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: inside disc; padding-left: 5px; margin-top: 10px; }
li { margin-bottom: 8px; }

:root {
    --logo-orange: #E69226;
    --logo-green: #4A8146;
}

/* HEADER */
header {
    text-align: center;
    padding: 30px 20px 10px 20px;
    background: #fff;
}

.logo-container img {
    max-width: 600px;
    margin: 0 auto 30px auto;
}

nav {
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

nav a {
    font-size: 13px;
    letter-spacing: 1.5px;
    font-weight: 400;
    color: #4a4a4a;
}

nav a:hover { color: var(--logo-orange); }
nav a.active { color: var(--logo-green); }

/* PAGE TITLE */
.page-title {
    text-align: center;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.page-title h1 {
    font-weight: 400;
    font-size: 26px;
    letter-spacing: 2px;
    line-height: 1.4;
    color: #4a4a4a;
    white-space: nowrap;
}

/* HERO IMAGE */
.hero-image-container img {
    width: 100%;
    height: 450px;
    object-fit: cover;
}

/* CONTENT SECTIONS */
.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 5%;
}

.narrow-center {
    max-width: 800px;
    text-align: left; 
}

/* GRID SYSTEM */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* LIST BLOCK (Right Aligned on Desktop) */
.list-block {
    justify-self: end;
    width: fit-content;
    text-align: left;
    margin-left: auto;
}

/* Custom class for the List Header to match H2 style */
.list-header {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 15px;
    color: #4a4a4a;
}

/* HEADERS & TEXT */
.text-block h2, .text-block h3 {
    font-weight: 700; /* Made bold via CSS */
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #4a4a4a;
}

/* Justify all body paragraphs */
.text-block p, 
.narrow-center p {
    text-align: justify;
    hyphens: auto;
    margin-bottom: 20px;
    font-size: 16px;
}

/* VIDEO PLAYERS */
.video-container {
    max-width: 1000px;
    margin: 0 auto;
}
.video-container video {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #000;
}

.youtube-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.youtube-wrapper iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

/* CONTACT SECTION */
.contact-section {
    background-color: #f7f7f7; 
    padding: 100px 20px;
    margin-top: 50px;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-container h1 {
    text-align: center;
    font-size: 38px;
    color: #444;
    margin-bottom: 60px;
    font-weight: 800;
    text-transform: none; 
}

/* FORM STYLING */
.form-group { margin-bottom: 35px; }
label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 8px; color: #4a4a4a; }
.sub-label { font-size: 13px; color: #888; font-weight: 400; margin-left: 5px; }

input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    font-family: inherit;
    font-size: 16px;
    border-radius: 0;
}

input:focus, textarea:focus {
    outline: none;
    border-bottom: 1px solid #333;
}

.split-inputs { display: flex; gap: 30px; }
.sub-input { width: 50%; }

button {
    background-color: #111;
    color: #fff;
    border: none;
    padding: 18px 40px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 2px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

button:hover { background-color: #444; }

/* FOOTER */
footer {
    padding: 60px 5% 20px 5%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo { max-width: 400px; }
.copyright { text-align: center; border-top: 1px solid #eee; padding-top: 30px; color: #999; font-size: 12px; }

/* --- EXTRA STYLES FOR SUB-PAGES --- */

/* For Puunhoito: Stack images with gaps */
.image-stack img {
    margin-bottom: 30px;
    width: 100%;
}

/* For Lumenpudotukset: Centered Image */
.centered-image {
    max-width: 1000px;
    margin: 60px auto 0 auto;
    display: flex;
    justify-content: center;
}

/* MOBILE RESPONSIVE */
@media (max-width: 768px) {
    header { padding: 20px; }
    .logo-container img { max-width: 280px; }
    
    nav { flex-direction: column; gap: 15px; border: none; padding: 10px 0; }
    
    .page-title h1 { 
        white-space: normal; 
        font-size: 22px; 
        line-height: 1.4;
    }

    .grid-2-col { grid-template-columns: 1fr; gap: 40px; }
    
    .list-block { 
        justify-self: start;
        width: 100%;
        margin-left: 0;
        padding-left: 0;
    }

    /* Target the class we created instead of 'p strong' */
    .list-header {
        margin-bottom: 10px;
    }

    .hero-image-container img { height: 250px; }
    .content-section { padding: 50px 20px; }
    .split-inputs { flex-direction: column; gap: 30px; }
    .sub-input { width: 100%; }
    .footer-content { flex-direction: column; gap: 40px; }
}

/* --- FOOTER SOCIAL ICONS --- */

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the logo and icons */
}

.social-icons {
    margin-top: 20px; /* Space between Logo and Icons */
    display: flex;
    gap: 20px; /* Space between Facebook and Instagram */
}

.social-icons a {
    color: #000; /* Black icons */
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons svg {
    width: 24px;   /* Icon size */
    height: 24px;
    fill: none;
    stroke: currentColor; /* Uses the text color for the lines */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Hover Effect - Change to Orange */
.social-icons a:hover {
    color: #e88f00; 
    transform: translateY(-2px); /* Slight lift effect */
}