

@font-face {
    font-family: 'Lobster';
    src: url('fonts/Lobster/Lobster-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Käytä Lobster-fonttia kaikissa h1 ja h2 -elementeissä */
h1, h2, nav {
    font-family: 'Lobster', 'Comic Sans MS', cursive, Arial, sans-serif;
}

h1 {
		font-size: 2.5em;
		
}

h2 {
		font-size: 2.2em;
		
}

nav {
		font-size: 2.0em;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Header ja navigaatio */
header {
    text-align: center;
    color: #fff;
    padding: 60px 20px; /* vähän enemmän tilaa kuvan kanssa */
    background: url('images/flowers.jpg') no-repeat center center/cover; /* <-- vaihda oma kuva */
    position: relative;

}

header::before {
    /* Tummennuskerros paremman luettavuuden vuoksi */
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(113, 6, 72, 0.5); /* 40% läpinäkyvä musta */
    z-index: 1;
}

.logo-title, nav {
    position: relative; /* jotta ne näkyvät tummennuskerroksen päällä */
    z-index: 2;
	
}

.logo-nro h1 {
	border-top: 2px solid rgba(255,255,255,0.6);
    padding-top: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.6);
    padding-bottom: 0.5rem;
}

.logo {
    width: 100%;
    max-width: 400px;
    height: auto;
}

/* Navigaatio samaksi kuin aiemmin */
nav ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}


/* Esittelyosio */
#esittely .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
	margin: 0 auto;
    padding: 40px;
	max-width: 1000px;
}

.esittely-kuva img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 8px;

	
}

.esittely-teksti {
    flex: 1;
    padding-left: 3em;
}

/* Hinnasto */
#hinnasto {
    font-family: Arial, sans-serif;
    padding: 30px;
    max-width: 800px;
    margin: auto;
}

.hinnasto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hinnasto-header h2 {
    font-size: 28px;
    font-weight: bold;
    color: #b64e6b;
    border-bottom: 2px solid #aaa;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.hinnasto-header .alv {
    font-size: 14px;
    margin: 0;
}

.hinnasto-quote {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hinnasto-quote .circle {
    width: 60px;
    height: 60px;
    background-color: #f3c1d1;
    border-radius: 50%;
}

.hinnasto-quote p {
    font-size: 14px;
    color: #555;
}

.hinnasto-group {
    margin-top: 30px;
	margin-bottom: 30px;
}

.hinnasto-group h3 {
    color: #b64e6b;
    font-size: 16px;
    margin-bottom: 10px;
}

.hinnasto-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.hinnasto-item h4 {
    color: #b64e6b;
    margin: 0 0 5px;
}

.hinnasto-item p {
    margin: 0;
    font-size: 14px;
}

.price {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

hr {
    border: none;
    border-top: 2px dotted #999;
    margin: 15px 0;
}

#kuvakaruselli {
    max-width: 600px;
    margin: 40px auto;
    overflow: hidden;
    position: relative;
}

.kuvakaruselli-header h2 {
	text-align: center;
	align-items: center;
    font-size: 2.5em;
    font-weight: bold;
    color: #b64e6b;
    /* display: inline-block; */
    padding-bottom: 5px;
    margin-bottom: 5px;
}

.carousel-container {
    overflow: hidden;
    cursor: grab;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-track img {
    width: 100%;
    flex-shrink: 0;
    user-select: none;
}

/* Yhteydenotto */
#yhteydenotto {
	position: relative;

    text-align: center;
    padding: 60px 20px; /* vähän enemmän tilaa kuvan kanssa */
    background: url('images/flowers.jpg') no-repeat center center/cover; /* <-- vaihda oma kuva */
	
	
}

#yhteydenotto::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(113, 6, 72, 0.5);
    z-index: 1;
}

.yhteydenotto-text {
	position: relative;
	color: white;
	z-index: 2;
}



#yhteydenotto form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#yhteydenotto input,
#yhteydenotto textarea {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#yhteydenotto button {
    background: #333;
    color: white;
    padding: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

#yhteydenotto button:hover {
    background: #555;
}

.phone-link {
    color: inherit;
    text-decoration: none;
}

.phone-link:hover {
    text-decoration: underline;
}

.phone-link-logo {
    color: inherit;
    text-decoration: none;
	border-top: 2px solid rgba(255,255,255,0.6);
    padding-top: 0.5rem;
    border-bottom: 2px solid rgba(255,255,255,0.6);
    padding-bottom: 0.5rem;

}


/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
}

.yhteydenotto-text img {
    padding-top: 1rem;
    width: 100px;
    margin-bottom: 1rem;
}


@media only screen and (max-width: 750px) {
	
    #esittely .container {
        flex-direction: column;
    }	
	
	.esittely-teksti {
		order: 1; /* teksti ensin */
    }

    .esittely-kuva {
        order: 2; /* kuva alle */
        margin-top: 1.5rem;
    }
	.esittely-kuva img {
		border-radius: 0px;
        display: block;
        margin-left: auto;
        margin-right: auto;
		width: 75%;
	}
  
	    .logo {
        max-width: 280px;
    }
	
	    nav ul {
        flex-direction: column;
        gap: 10px;
    }
	
	 .hinnasto-item {
        flex-direction: column;
        gap: 5px;
    }

    .price {
        align-self: flex-end;
    }
}