/* Global Styles */
:root {
    --brand-petrol: #007b9c;
    --brand-turquoise: #00b8d8;
    --brand-lime: #b2d235;

    --primary-color: #ffffff;
    --secondary-color: #f0f0f0;
    --accent-color: var(--brand-turquoise);
    --text-main: #333333;
    --heading-color: var(--brand-petrol);
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-special: 'Parisienne', cursive;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(255, 255, 255, 0.9);
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-weight: 300;
    /* Light */
    background-color: var(--secondary-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    margin: 0;
    font-weight: 400;
    /* Regular */
    text-transform: uppercase;
    color: var(--heading-color);
}

.special-text {
    font-family: var(--font-special);
    text-transform: none;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('static/pianokitara1.jpg') no-repeat center center/cover;
    background-color: #f0f0f0;
    /* Fallback */
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.1);
    /* Very transparent */
    backdrop-filter: blur(3px);
    /* Reduced blur */
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.main-title {
    font-size: 4rem;
    /* margin-bottom: 0.5rem; - Moved to container */
    color: var(--text-main);
    font-family: "Gill Sans Std", "Gill Sans", "Gill Sans MT", "Calibri", "sans-serif";
    line-height: 1.1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    font-weight: normal;
}

.title-row-1 {
    display: block;
    font-weight: normal;
    /* Regular */
    text-transform: uppercase;
    font-size: 0.9em;
    /* Slightly smaller relative to container */
}

.title-row-2 {
    display: block;
    font-weight: 300;
    /* Light */
    text-transform: none;
    font-size: 1.1em;
    /* Slightly larger */
}

.title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 0.5rem;
}

.title-logo {
    height: 120px;
    width: auto;
    border-radius: 10px;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: var(--text-main);
    text-transform: uppercase;
    font-weight: 500;
}

.tagline {
    font-family: var(--font-special);
    font-size: 3.0rem;
    margin-bottom: 1rem;
    color: var(--text-main);
    text-transform: none;
    line-height: 1.3;
    /* Parisienne doesn't look good in all caps usually */
}

.highlight {
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: bold;
    margin-bottom: 2rem;
}

.highlight-bg {
    background: rgba(15, 15, 15, 0.32);
    backdrop-filter: blur(5px);
    padding: 5px 15px;
    border-radius: 4px;
    color: #fff;
    /* Changed text to white for better contrast on gray */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.cta-container .btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 10px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: #fff;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-main);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Intro & Notice Box */
.intro {
    background-color: #fff;
    padding: 80px 0;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.notice-box {
    border-left: 5px solid var(--accent-color);
}

.contact-highlight {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.new-badge {
    background: var(--accent-color);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.new-item {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.coop {
    font-style: italic;
    color: var(--brand-petrol);
    font-weight: 600;
}

/* Teaching / Instruments */
#teaching {
    background: url('static/pianistijakitaristi1.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

#teaching::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay */
    backdrop-filter: grayscale(100%);
}

#teaching .container {
    position: relative;
    z-index: 2;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
    color: var(--text-main);
    /* Ensure text is visible */
    background: rgba(255, 255, 255, 0.1);
    /* Glass effect */
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.subsection-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-main);
}

.instruments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.instrument-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-bottom: 4px solid transparent;
}

.instrument-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid var(--accent-color);
}

.instrument-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-note {
    text-align: center;
    margin-top: 3rem;
    font-size: 1.4rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.info-text-bg {
    background: rgba(15, 15, 15, 0.32);
    /* Glass effect */
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 800px;
}

.summer-school {
    margin-top: 1rem;
    font-size: 1.5rem;
    color: var(--brand-turquoise);
    /* Changed to turquoise for visibility against dark glass? Or keep accent */
    font-weight: bold;
    text-shadow: none;
}

.summer-dates {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 0.5rem;
}

/* Values */
.values {
    background: #fff;
    padding: 4rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 3rem;
}

.value-item {
    background: #f9f9f9;
    padding: 1.5rem;
    padding-bottom: 2.5rem;
    /* Space for the arrow */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    /* For arrow positioning */
}

/* ... existing hover ... */

.value-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
}

.value-icon {
    font-size: 1.5rem;
    color: var(--brand-turquoise);
    margin-right: 15px;
    width: 30px;
    /* Fixed width for alignment */
    text-align: center;
}

.value-arrow {
    font-size: 1rem;
    color: var(--accent-color);
    transition: transform 0.3s ease;
    margin-left: auto;
    /* Push to right */
}

.value-item.active .value-arrow {
    transform: rotate(180deg);
    color: var(--accent-color);
}

.value-content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.value-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}

/* Active State for Value Items */
.value-item.active .value-content {
    max-height: 300px;
    /* Sufficient height for content */
    opacity: 1;
    margin-top: 1rem;
}

.value-item.active .toggle-icon {
    transform: rotate(180deg);
    color: var(--accent-color);
}

/* Interactive Instrument Cards */
.instrument-card {
    cursor: pointer;
    /* Ensure styles from previous steps are maintained, just adding cursor */
    display: flex;
    flex-direction: column;
    /* To push arrow to bottom */
    position: relative;
    padding-bottom: 3rem;
    /* Space for the arrow */
}

.instrument-desc {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.instrument-card.active .instrument-desc {
    max-height: 500px;
    /* Sufficient height */
    opacity: 1;
    margin-top: 1rem;
}

.instrument-arrow {
    font-size: 1.5rem;
    color: var(--secondary-color);
    position: absolute;
    bottom: 0.1rem;
    /* Adjusted position */
    left: 50%;
    transform: translateX(-50%);
    transition: transform 0.3s ease;
}

.instrument-card.active .instrument-arrow {
    transform: translateX(-50%) rotate(180deg);
    color: var(--accent-color);
}

/* Section Description Split */
.section-desc-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border-radius: 15px;
}

.section-desc-container p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    margin-bottom: 1rem;
    /* Small gap between paragraphs */
}

.section-desc-container p:last-child {
    margin-bottom: 0;
}

/* Hero Description */
.description-container {
    margin-bottom: 2rem;
    text-align: center;
}

.description-main,
.description-sub {
    font-size: 1.3rem;
    /* Larger font */
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

.description-main {
    margin-bottom: 1rem;
    /* Space between lines */
    font-weight: 600;
}

.description-sub {
    font-weight: 400;
}

/* Muskari Styles */
#muskari {
    background: url('static/tanssi1.jpg') no-repeat center center/cover;
    background-attachment: fixed;
    position: relative;
}

#muskari::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.4);
    /* Light overlay mainly */
    backdrop-filter: grayscale(100%);
}

#muskari .section-title {
    color: var(--brand-lime);
    background: rgba(15, 15, 15, 0.32);
    /* Dark Glass effect */
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#muskari .section-title::after {
    background: var(--brand-lime);
}

#muskari .container {
    position: relative;
    z-index: 2;
}

.highlight-box {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    /* Reverted to white */
    backdrop-filter: none;
    border: none;
    border-radius: 20px;
    box-shadow: none;
    padding: 2rem;
}

.highlight-text {
    color: var(--brand-lime);
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 2rem;
    background: rgba(178, 210, 53, 0.1);
    /* Light lime tint */
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(178, 210, 53, 0.3);
}

.detail-item strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--brand-lime);
}

.detail-item a {
    color: var(--text-main);
    text-decoration: underline;
    font-weight: bold;
}

.detail-item a:hover {
    color: var(--accent-color);
}

/* Events */
#events {
    background-color: var(--secondary-color);
}

.events-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.event-card {
    display: flex;
    background: url('static/konsertti1.jpg') no-repeat center center/cover;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.75);
    /* White overlay */
    backdrop-filter: none;
    z-index: 1;
}

.event-card:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-date {
    background: var(--accent-color);
    color: #fff;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    position: relative;
    z-index: 2;
}

.event-date .day {
    font-size: 2rem;
    font-weight: bold;
    line-height: 1;
}

.event-date .month {
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-top: 5px;
}

.event-date .year {
    font-size: 0.9rem;
    font-weight: bold;
    margin-top: 2px;
}

.event-details {
    padding: 20px;
    position: relative;
    z-index: 2;
}

.event-details h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
    color: var(--text-main);
}

.event-details p {
    margin: 5px 0;
    color: #666;
    font-size: 1.1rem;
}

.event-details i {
    width: 20px;
    text-align: center;
    margin-right: 5px;
    color: var(--accent-color);
}

/* Footer */
footer {
    background: #2e2e2e;
    /* Keeping footer dark for contrast */
    color: #fff;
    padding: 50px 0 20px;
    text-align: center;
}

.contact-logo h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

.contact-info p {
    margin: 10px 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: #fff;
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-info i {
    color: var(--accent-color);
    margin-right: 10px;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #999;
    margin-top: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .hero {
        background-attachment: scroll;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Brand Images */
.header-logo {
    max-width: 150px;
    margin-bottom: 1rem;
    border-radius: 5px;
    /* Slight rounding if rectangular */
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1rem;
    border-radius: 5px;
}

.card-decoration {
    display: none;
}

.profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: none;
    display: block;
    /* Center it if needed, or keep left aligned with contact info */
}

/* Payment Methods */
.payment-methods {
    margin-top: 2rem;
    text-align: left;
}





/* Footer Layout */
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-content {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        align-items: start;
        text-align: center;
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Center Profile Picture in Left Column */
.footer-profile {
    justify-content: center;
    height: 100%;
}

.footer-profile img.profile-pic {
    margin: 0;
    /* Reset margin */
}

/* Specific styling for the third column (ePassi, Instagram, WhatsApp) */
.footer-epassi {
    gap: 2rem;
    align-self: center;
    /* Vertically center in grid */
    /* Provides consistent spacing between the 3 items */
}

.footer-icon-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    transition: transform 0.3s ease;
}

.footer-icon-link:hover {
    transform: scale(1.05);
    color: var(--accent-color);
}

.payment-logo {
    max-width: 120px;
    /* Slightly larger as requested or to match */
    height: auto;
    margin-bottom: 0;
}

.social-logo {
    width: 50px;
    /* Consistent size */
    height: auto;
    margin-bottom: 0;
}

/* ePassi Section */
#epassi {
    padding: 4rem 2rem;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.epassi-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .epassi-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.epassi-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

.epassi-content {
    text-align: center;
}

@media (min-width: 768px) {
    .epassi-content {
        text-align: left;
    }
}

/* Mobile Hero Optimization */
@media (max-width: 768px) {
    .main-title {
        font-size: 1.7rem;
        /* Significantly reduced to fit one line */
    }

    .title-logo {
        height: 60px;
        /* Smaller logo */
    }

    .tagline {
        font-size: 2.6rem;
    }

    .highlight {
        font-size: 1.3rem;
    }

    .hero-content {
        padding: 2rem;
    }

    .title-row-2 {
        white-space: nowrap;
    }

    .title-container {
        gap: 8px;
    }

    .subtitle {
        font-size: 0.9rem;
    }
}

.epassi-logo-large {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
}

#epassi h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--brand-petrol);
}

#epassi p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
}