/* Fontit ja perusasetukset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    background-color: #fafafa;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #222;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #a64ac9;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1000;
}

.burger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero-osio */
.hero {
    background-image: url('kuvat/parturikuva.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    position: relative;
    color: white;
}

.hero-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
}

/* Varaa aikasi - kuvalliset taustat */
.booking-banner1 {
    background-image: url('kuvat/parturikuva.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 300px;
    position: relative;
    z-index: 1;
}

.booking-banner2 {
    background-image: url('kuvat/ulkopuoli.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 300px;
    position: relative;
    z-index: 1;
}

/* Osioiden yleinen tyyli */
.section {
    padding: 120px 20px 100px;
    text-align: center;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.section.dark {
    background-color: #1f1f1f;
    color: white;
}

.section.light {
    background-color: #f4f4f4;
}

/* Palvelukortit */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: auto;
    text-align: left;
}

.card {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Hinnasto taulukko */
table {
    width: 90%;
    max-width: 700px;
    margin: auto;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #a64ac9;
    color: white;
}

/* Ajanvaraus */
.cta button {
    margin-top: 20px;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    background-color: #a64ac9;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.cta button:hover {
    background-color: #832ba6;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
}

/* Responsiivisuus */
@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem 2rem;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .nav-links.active {
        display: flex;
        opacity: 1;
        max-height: 500px;
    }

    .hero {
        background-attachment: unset;
    }

    .booking-banner1 {
        background-attachment: unset;
    }

    .booking-banner2 {
        background-attachment: unset;
    }
}
