
/* -------------------------
   RESET
------------------------- */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    line-height: 1.6;
    background: white;
}

img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}


/* -------------------------
   GENERAL
------------------------- */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section-heading {
    margin-bottom: 50px;
}


/* -------------------------
   TOP BAR
------------------------- */

.top-bar {
    background: #151515;
    color: white;
    font-size: 13px;
    padding: 10px 0;
}

.top-bar .container {
    display: flex;
    justify-content: flex-end;
    gap: 30px;
}


/* -------------------------
   HEADER
------------------------- */

.header {
    background: white;
    border-bottom: 1px solid #eee;
}

.nav {
    min-height: 85px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

nav a:hover {
    color: #b58a4a;
}

nav a.active {
    color: #b58a4a;
}

.inquiry-button {
    background: #b58a4a;
    color: white;

    padding: 13px 22px;

    transition: 0.2s;
}

.inquiry-button:hover {
    background: #966f39;
}


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

.hero {
    min-height: 650px;

    /* background-image: url("images/factory.jpg"); -- kuva puuttuu */
    background-size: cover;
    background-position: center;

    position: relative;

    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.55);
}

.hero-content {
    position: relative;

    color: white;

    width: 90%;
    max-width: 1200px;

    margin: auto;
}

.hero-content p:first-child {
    font-size: 14px;
    letter-spacing: 3px;

    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(50px, 7vw, 90px);

    line-height: 1.05;

    margin-bottom: 25px;
}

.hero-button {
    display: inline-block;

    margin-top: 25px;

    padding: 15px 30px;

    background: #b58a4a;
    color: white;

    transition: 0.2s;
}

.hero-button:hover {
    background: #966f39;
}

/* Shorter hero used at the top of the inner pages (Yritys, Tuotteet, Palvelut, Yhteystiedot) */
.hero--small {
    min-height: 320px;
}

.hero--small h1 {
    font-size: clamp(38px, 6vw, 60px);

    margin-bottom: 15px;
}


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

.features {
    background: white;

    margin-top: -70px;

    position: relative;
}

.feature-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}

.feature {
    padding: 40px;

    min-height: 220px;

    border-right: 1px solid #ddd;

    background: white;
}

.feature:last-child {
    border-right: none;
}

.feature h3 {
    font-size: 22px;

    margin-bottom: 15px;
}

.feature p {
    color: #666;

    margin-bottom: 20px;
}

.feature a {
    color: #b58a4a;

    font-weight: bold;

    transition: 0.2s;
}

.feature a:hover {
    color: #966f39;
}


/* -------------------------
   ABOUT
------------------------- */

.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.about-image img {
    height: 500px;

    object-fit: cover;
}

.section-label {
    color: #b58a4a;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 15px;
}

.about h2,
.why-us h2,
.products h2,
.contact h2 {
    font-size: 48px;

    line-height: 1.1;

    margin-bottom: 25px;
}

.about-content p:not(.section-label) {
    color: #666;

    margin-bottom: 20px;
}

.button {
    display: inline-block;

    margin-top: 20px;

    padding: 14px 28px;

    background: #222;

    color: white;

    border: none;

    font-family: inherit;
    font-size: 15px;

    cursor: pointer;

    transition: 0.2s;
}

.button:hover {
    background: #b58a4a;
}


/* -------------------------
   WHY US
------------------------- */

.why-us {
    padding: 120px 0;

    background: #f5f5f5;
}

.why-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.why-grid img {
    height: 500px;

    object-fit: cover;
}


/* -------------------------
   PRODUCTS / PALVELUT
------------------------- */

.products {
    padding: 120px 0;
}

.products-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.product-card {
    padding: 35px 30px;

    border: 1px solid #ddd;

    transition: 0.2s;
}

.product-card:hover {
    border-color: #b58a4a;
}

.product-card h3 {
    font-size: 20px;

    margin-bottom: 12px;
}

.product-card p {
    color: #666;
}


/* -------------------------
   YHTEYSTIEDOT
------------------------- */

.privacy-policy {
    max-width: 900px;
    padding-top: 80px;
    padding-bottom: 100px;
}

.privacy-policy h1 {
    margin-bottom: 8px;
    font-size: clamp(32px, 5vw, 48px);
}

.privacy-policy h2 {
    margin-top: 34px;
    margin-bottom: 10px;
    font-size: 22px;
}

.privacy-policy p {
    margin-bottom: 16px;
}

.privacy-policy a,
.privacy-note a {
    color: #8a642d;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-updated {
    color: #777;
    margin-bottom: 30px;
}

.privacy-note {
    margin-top: 18px;
    font-size: 14px;
    color: #666;
}

/* -------------------------
   YHTEYSTIEDOT
------------------------- */

.contact {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info,
.contact-form {
    min-width: 0;
    width: 100%;
}

.contact-person {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 0;
    padding: 24px;
    border: 1px solid #ddd;
    background: white;
}

.contact-person-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    overflow: hidden;
    background: #f1f1f1;
}

.contact-person-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-person-details h3 {
    margin: 0 0 6px;
    font-size: 22px;
}

.contact-role {
    margin: 0 0 24px;
    color: #777;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 16px;
}

.contact-label {
    font-size: 13px;
    color: #777;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-detail a {
    color: #222;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.contact-detail a:hover {
    color: #b58a4a;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 15px;
    color: #222;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #b58a4a;
}

@media (max-width: 800px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* -------------------------
   TUOTESIVUN YHTEYSHENKILÖ
------------------------- */

.product-contact {
    padding: 0 0 100px;
}

.product-contact-card {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    align-items: center;
    gap: 30px;
    padding: 28px;
    border: 1px solid #ddd;
    background: #fff;
    transition: border-color 0.2s;
}

.product-contact-card:hover {
    border-color: #b58a4a;
}

.product-contact-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    display: block;
}

.product-contact-details .section-label {
    margin-bottom: 8px;
    font-size: 11px;
}

.product-contact-details h3 {
    font-size: 22px;
    margin-bottom: 2px;
}

.product-contact-role {
    color: #666;
    margin-bottom: 12px;
}

.product-contact-details a {
    display: block;
    width: fit-content;
    color: #222;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.product-contact-details a:hover {
    color: #b58a4a;
}

.product-contact-action {
    max-width: 240px;
}

.product-contact-action p {
    color: #666;
    margin-bottom: 10px;
}

.product-contact-action .button {
    margin-top: 5px;
    white-space: nowrap;
}

@media (max-width: 800px) {
    .product-contact {
        padding-bottom: 70px;
    }

    .product-contact-card {
        grid-template-columns: 100px 1fr;
        gap: 20px;
        padding: 20px;
    }

    .product-contact-image {
        width: 100px;
        height: 100px;
    }

    .product-contact-action {
        grid-column: 1 / -1;
        max-width: none;
        padding-top: 15px;
        border-top: 1px solid #ddd;
    }
}

@media (max-width: 420px) {
    .product-contact-card {
        grid-template-columns: 1fr;
    }

    .product-contact-image {
        width: 120px;
        height: 120px;
    }

    .product-contact-action {
        grid-column: auto;
    }
}
/*.contact {
    padding: 120px 0;
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1.2fr;

    gap: 80px;

    align-items: start;
}

.contact-info .product-card {
    margin-bottom: 20px;
}

.contact-info .product-card p {
    color: #222;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 14px 16px;

    margin-bottom: 15px;

    border: 1px solid #ddd;

    font-family: inherit;
    font-size: 15px;
    color: #222;
}

.contact-form textarea {
    min-height: 160px;

    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;

    border-color: #b58a4a;
}*/


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

footer {
    background: #171717;

    color: white;

    padding-top: 80px;
}

.footer-grid {
    display: grid;

    grid-template-columns: 1.2fr 1.7fr 1.7fr 1fr;

    gap: 40px;

    padding-bottom: 70px;
}

.footer-grid h3 {
    margin-bottom: 20px;
}

.footer-grid p,
.footer-grid a {
    display: block;

    color: #aaa;

    margin-bottom: 10px;
}

.footer-grid a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid #333;

    padding: 25px;

    text-align: center;

    color: #777;
}


/* -------------------------
   MOBILE
------------------------- */

@media (max-width: 800px) {

    .top-bar .container {
        justify-content: center;

        flex-wrap: wrap;

        gap: 10px 20px;
    }

    .nav {
        flex-direction: column;

        padding: 20px 0;
    }

    nav {
        gap: 20px;

        flex-wrap: wrap;

        justify-content: center;
    }

    .inquiry-button {
        display: none;
    }

    .hero {
        min-height: 550px;
    }

    .hero h1 {
        font-size: clamp(45px, 12vw, 70px);
    }

    .hero--small {
        min-height: 260px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature {
        border-right: none;

        border-bottom: 1px solid #ddd;
    }

    .feature:last-child {
        border-bottom: none;
    }

    .about,
    .why-us,
    .products,
    .contact {
        padding: 80px 0;
    }

    .about-grid,
    .why-grid,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .about-image img,
    .why-grid img {
        height: 350px;
    }

    .about h2,
    .why-us h2,
    .products h2,
    .contact h2 {
        font-size: 38px;
    }

    .footer-grid {
        grid-template-columns: 1fr;

        gap: 35px;

        padding-bottom: 50px;
    }
}


/* -------------------------
   LANGUAGE SWITCH (top bar, right side)
------------------------- */

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-btn {
    width: 26px;
    height: 18px;
    padding: 0;

    border: 2px solid transparent;
    background: none;
    cursor: pointer;

    opacity: 0.55;
    transition: 0.2s;
}

.lang-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lang-btn:hover {
    opacity: 1;
}

.lang-btn.active {
    opacity: 1;
    border-color: #b58a4a;
}


/* -------------------------
   PRODUCT LIST (picture next to each product)
------------------------- */

.product-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-item {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: stretch;
}

.product-item img {
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    background: #eee;
}

.product-item .product-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 800px) {
    .product-item {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-item img {
        height: 220px;
    }
}


/* -------------------------
   PRODUCT SUBPAGES
------------------------- */

a.product-item {
    color: inherit;
}

a.product-item:hover .product-card {
    border-color: #b58a4a;
}

.sub-link {
    display: inline-block;
    margin-top: 15px;
    color: #b58a4a;
    font-weight: bold;
    transition: 0.2s;
}

.sub-link:hover,
a.product-item:hover .sub-link {
    color: #966f39;
}

.back-link {
    margin-bottom: 30px;
    font-weight: 600;
}

.back-link a:hover {
    color: #b58a4a;
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.sub-card img {
    height: 220px;
    object-fit: cover;
    background: #eee;
}

.sub-card .product-card {
    border-top: none;
}

@media (max-width: 800px) {
    .sub-grid {
        grid-template-columns: 1fr;
    }
}




.form-message {
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #e8f5e9;
    color: #1b5e20;
    font-size: 14px;
    line-height: 1.5;
}

.form-message--error {
    background: #ffebee;
    color: #b71c1c;
}

.form-message[hidden] {
    display: none;
}

#submit-button:disabled {
    opacity: 0.65;
    cursor: wait;
}



/* Logo as link */
.logo { display: inline-block; }

/* Footer: keep all four columns on one line, wrap long e-mails */
.footer-grid > div { min-width: 0; }
.footer-grid p,
.footer-grid a { overflow-wrap: anywhere; }

/* 404 page */
.error-page { padding: 140px 0; text-align: center; }
.error-page h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.1; margin-bottom: 20px; }
.error-page p:not(.section-label) { color: #666; margin-bottom: 10px; }
@media (max-width: 800px) { .error-page { padding: 90px 0; } }
