/* RESETTI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* PERUSTYYLIT */
html, body {
    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;
    background-attachment: fixed;
    scroll-behavior: smooth;
}

/* HEADER */

.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;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.3);
    height: 15vh;
}
.grid-item {
    display: flex;
    align-items: center;
}
.item4 { flex-direction: column; }
.logo { height: 4.5vw; width: auto; }

/* TITLE */
.site-title {
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.site-title-line1 {
    font-size: 1.4vw;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
}
.site-title-line2 {
    font-size: 0.8vw;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
    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;
    top: 20%;
    bottom: 20%;
    width: 0.1vw;
    background-color: #faf5ec;
    opacity: 0.6;
}
.nav-links a:hover,
.nav-links .active {
    color: #ceaa5b;
}

.customer-feedback {
    font-size: 1.2vw;
    font-style: italic;
    text-align: center;
    margin: 2vw auto;
    max-width: 85vw;
    color: #faf5ec;
    padding: 1vw;
}

/* ROOT CONTENT */
.root-content {
    margin-top: 15vh;
    padding: 2vw;
    text-align: center;
    background-image:
        linear-gradient(rgba(16, 18, 26, 0.8), rgba(39, 38, 38, 0.7)),
        url("images/IMG_6724_OK.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
}

/* HERO */
.hero-section h1 {
    font-size: 4vw;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: #faf5ec;
    margin-bottom: 3vw;
}
.hero-section h2 {
    font-size: 2.5vw;
    font-family: 'Cinzel', serif;
    font-weight: 400;
    color: #ceaa5b;
    margin-top: 3vw;
}
.hero-section p {
    font-size: 1.6vw;
    font-family: 'Open Sans', serif;
    color: #faf5ec;
    margin-bottom: 2.5vw;
}

/* REFERENSSIT – GRID */
.reference-section {
    padding: 5vw 1vw;
    display: flex;
    flex-direction: column;
    gap: 0vw;
    max-width: 100%;
    margin: 0 5vw;
}

.reference-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "text image";
    gap: 10vw;
    padding-bottom: 6vw;
    align-items: start;
    margin-bottom: 10vw;
}
.reference-item .reference-text { grid-area: text; }
.reference-item .reference-image { grid-area: image; }

.reference-item .reference-text {
    margin-top: -5vw; /* Sama arvo kuin vihreällä laatikolla */
    margin-bottom: 15vw;
}

/* VUOROTTELU */
.reference-item.even {
    grid-template-areas: "image text";
    margin-bottom: 5vw;
    align-items: start;
}

/* KUVAN TAAKSE VÄRI */
.reference-image {
    position: relative;
    z-index: 1;
}
.reference-image::before {
    content: "";
    position: absolute;
    top: -5vw;
    left: 0;
    width: 60%;
    height: 150%;
    background-color: rgba(45, 64, 53, 0.6);
    border-radius: 2vw;
    z-index: 0;
}

.reference-image img {
    position: relative;
    z-index: 1;
    width: 35vw;  /* Muunnettu vw */
    height: auto;
}

.crop-move {
    width: 25vw;   /* Muunnettu vw */
    height: 25vw;  /* Muunnettu vw */
    object-fit: cover;
    object-position: center;
    border-radius: 0.5vw;
    box-shadow: 0 0 0px rgba(0,0,0,0.5);
}

/* TEKSTIT */
.reference-item {
  align-items: flex-start; /* Tekstit ylös kuvan kanssa */
}

.reference-text {
  margin-top: -2vw; /* Nostaa tekstiä ylemmäs, säädä tarpeen mukaan */
}

.reference-text {
  padding-top: 4vw;
}

.reference-text {
    font-size: 1.2vw;
    line-height: 1.8;
    color: #faf5ec;
    font-family: 'Open Sans', sans-serif;
}
.reference-text h3 {
    color: #faf5ec;
    font-family: 'Cinzel', serif;
    font-size: 4vw;
    font-weight: 400;
    margin-bottom: 1vw;
}

.section-heading {
    font-size: 2.4vw;
    font-family: 'Cinzel', serif;
    color: #faf5ec;
    border-bottom: 0.3vw solid #ceaa5b;
    padding-bottom: 0.3vw;
    margin-bottom: 1vw;
    display: inline-block;
}

.custom-bullets {
    list-style: none;
    margin-left: 1.5vw;
    font-size: 1.1vw;
    line-height: 1.7;
}
.custom-bullets ul {
    list-style: circle;
    margin-left: 1.5vw;
    margin-top: 0.5vw;
}

.custom-bullets i {
    color: #ceaa5b;
    font-size: 1vw;
    margin-top: 0.2vw;
}

.highlight-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5vw;
    font-weight: 400;
    font-size: 1.1vw;
    color: #ceaa5b;
    margin-top: 1.5vw;
}
.highlight-line i {
    font-size: 1.2vw;
}

.spacing {
    margin-bottom: 5vw;
}

/* 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;
}
