/* RESETTI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PERUSTYYLIT */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    color: #faf5ec;
    background-color: #221d1b;
    background-image: url("images/tausta1pc.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* HEADER GRID-JAKO */

.header-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}


.root-header {
    display: grid;
    grid-template-columns: 2vw auto 0 auto 1fr 3fr 1fr; /* 7 vierekkäistä saraketta */
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    height: 15vh;
    box-sizing: border-box;
}

/* varmistetaan että kaikki gridin itemit pysyvät rivissä */
.grid-item {
    display: flex;
    align-items: center;
}

/* item4 (site title) voi olla pystyssä itsessään */
.item4 {
    flex-direction: column;
}

/* Logo-kuva */
.logo {
    height: 4.5vw;
    width: auto;
}

/* Otsikko (MECHAVOLTTI SOLUTIONS) */
.site-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.site-title-line1 {
    font-size: 1.4vw;
    font-weight: 400;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
}

.site-title-line2 {
    font-size: 0.8vw;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
    font-weight: 400;
    margin-top: 0.2vw;
    text-align: center;
}

/* Navigaatio */
.nav-links {
    display: flex;
    justify-content: flex-end;
    gap: 2vw;
    font-family: 'Cinzel', serif;
    font-size: 0.8vw;
}

.nav-links a {
    position: relative;
    padding: 0 1.5vw;
    font-size: 1.12vw;
    color: #faf5ec;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    text-align: center;
}

.nav-links a:not(:first-child)::before {
    content: "";
    position: absolute;
    left: -0.75vw;  /* ⬅️ Keskitä viiva kahden linkin väliin */
    top: 20%;
    bottom: 20%;
    width: 1px;
    background-color: #faf5ec;
    opacity: 0.6;
}

.nav-links a:hover,
.nav-links .active {
    color: #ceaa5b;
}

/* SISÄLTÖ */
.root-content {
    height: calc(100vh - 15vh);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2vw;
    text-align: center;
    position: relative;
    z-index: 1;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section h1 {
    font-size: 4vw;
    margin-bottom: 1vw;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: #faf5ec;
    text-align: center;
}

.hero-section h2 {
    font-size: 2.5vw;
    margin-bottom: 1vw;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: #faf5ec;
    text-align: center;
}

/* FOOTER */
.root-footer {
    height: 2vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8vw;
    color: white;
}
.root-footer p {
    color: #443a2a;
    font-size: 0.9vw;
}