@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;700&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --primary-color: #7B2FBE;
    --primary-hover: #63209E;
    --primary-light: #F4EBFC;
    --accent-color: #6D745E;
    --dark-color: #181619;
    --dark-bg: #151316;
    --light-color: #FAFAF8;
    --surface-color: #FFFFFF;
    --text-color: #2F2B32;
    --text-muted: #6E6670;
    --border-color: #DDD5DE;
    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-script: 'Dancing Script', cursive;
    --max-width: 1120px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 1px 2px rgba(24, 22, 25, 0.05);
    --shadow-lg: 0 12px 28px rgba(24, 22, 25, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--light-color) 38%, #FFFFFF 100%);
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 16px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Top bar style */
.top-bar {
    background-color: var(--dark-bg);
    color: var(--light-color);
    padding: 7px 0;
    font-size: 0.9rem;
}

.top-bar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #FFFFFF;
    transition: var(--transition);
}

.social-link:hover {
    color: #FFFFFF;
    opacity: 0.82;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 2.7 / 1;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .hero {
        aspect-ratio: 1144 / 483;
        background-color: #121012;
    }

    .hero-img {
        object-fit: contain;
        object-position: center center;
    }
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: contrast(1.04) brightness(0.98);
    display: block;
}

/* Navigation Header */
.main-header {
    background-color: rgba(250, 250, 248, 0.96);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.main-nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.nav-list {
    display: flex;
    width: 100%;
    justify-content: space-between;
    list-style: none;
    padding: 0;
}

.nav-item {
    flex: 1;
    text-align: center;
}

.nav-link {
    display: block;
    padding: 17px 5px 16px;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    color: var(--text-color);
    text-transform: uppercase;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    position: absolute;
    right: 15px;
    z-index: 200;
}

.nav-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
}

.nav-toggle-icon::before {
    top: -8px;
}

.nav-toggle-icon::after {
    bottom: -8px;
}

/* Nav toggle states */
.nav-toggle.open .nav-toggle-icon {
    background-color: transparent;
}
.nav-toggle.open .nav-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}
.nav-toggle.open .nav-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 900px) {
    .nav-container {
        height: 60px;
        justify-content: flex-start;
    }
    .nav-toggle {
        display: block;
    }
    .main-nav {
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--light-color);
        border-bottom: 2px solid var(--border-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    .main-nav.open {
        max-height: 500px;
    }
    .nav-list {
        flex-direction: column;
    }
    .nav-link {
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    .nav-link::after {
        display: none;
    }
    .nav-link.active {
        background-color: var(--primary-light);
        border-left: 4px solid var(--primary-color);
    }
}

/* Main Content Area */
.main-content {
    flex: 1;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 54px 20px 64px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 34px;
    position: relative;
    padding-bottom: 14px;
    letter-spacing: 0;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 72px;
    height: 2px;
    background-color: var(--accent-color);
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: #DDDDDD;
    padding: 46px 20px 22px 20px;
    margin-top: auto;
    font-size: 0.95rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding-bottom: 30px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: #FFFFFF;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 15px;
    position: relative;
}

.footer-col p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #FFFFFF;
    padding-left: 5px;
}

.copyright {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: #888888;
}

/* Biography Page Styles (index.html) */
.bio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
    gap: 54px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .bio-layout {
        grid-template-columns: 1fr;
    }

    .bio-image-sticky {
        position: static;
    }
}

.bio-text {
    max-width: 720px;
}

.bio-text p {
    margin-bottom: 20px;
    line-height: 1.82;
    font-size: 1.02rem;
}

.bio-image-wrapper {
    border: 1px solid var(--border-color);
    padding: 12px;
    background: var(--surface-color);
    box-shadow: var(--shadow);
    border-radius: 2px;
}

.bio-image-sticky {
    position: sticky;
    top: 100px;
}

.bio-img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.2);
}

.bio-image-crop-frame {
    aspect-ratio: 1324 / 3456;
    overflow: hidden;
}

.bio-image-crop-frame .bio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-img-long-crop {
    object-fit: cover;
    object-position: center;
}

/* Quote/Highlight styling */
.quote-card {
    background-color: transparent;
    border-left: 2px solid var(--accent-color);
    padding: 6px 0 6px 22px;
    margin: 30px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-color);
    border-radius: 0;
}

/* General Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 11px 24px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: none;
    transition: var(--transition);
}

.btn:hover {
    background-color: var(--primary-hover);
    box-shadow: var(--shadow);
}

/* Grid & Tables for Ohjelmisto */
.program-category {
    margin-bottom: 40px;
}

.program-page-text .program-category:last-child {
    margin-bottom: 0;
}

.program-text-box {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFD 100%);
    border: 1px solid #B8CAD7;
    border-left: 4px solid #5F879D;
    border-radius: 2px;
    padding: 24px 28px;
    box-shadow: 0 10px 24px rgba(95, 135, 157, 0.08);
}

.program-text-box p {
    margin-bottom: 0;
    padding: 8px 0;
    font-size: 0.98rem;
    line-height: 1.62;
    color: var(--text-color);
    border-bottom: 1px solid rgba(95, 135, 157, 0.18);
}

.program-text-box p:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.program-text-box p:first-child {
    padding-top: 0;
}

.program-line-title {
    font-weight: 700;
}

.program-category-highlight {
    margin-top: 52px;
}

.program-text-box-highlight {
    background: linear-gradient(180deg, #FFFFFF 0%, #F3F8FA 100%);
    border-color: #8FB5C5;
    border-left-color: var(--accent-color);
    box-shadow: 0 14px 30px rgba(109, 116, 94, 0.11);
    position: relative;
}

.program-text-box-highlight::before {
    content: '';
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 2px;
    background: var(--accent-color);
}

.program-text-box-highlight p {
    font-size: 1.01rem;
    color: var(--dark-color);
    border-bottom-color: rgba(143, 181, 197, 0.24);
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.program-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 20px;
    box-shadow: none;
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--accent-color);
}

.program-card h4 {
    font-family: var(--font-serif);
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.program-card ul {
    list-style: none;
    font-size: 0.95rem;
}

.program-card li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 15px;
}

.program-card li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* Reviews page styles */
.review-item {
    margin-bottom: 30px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    padding: 26px;
    box-shadow: none;
}

.review-item:last-child {
    margin-bottom: 0;
}

.review-quote {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--dark-color);
    font-style: italic;
}

.review-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: right;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Singing Lessons Page */
.teaching-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .teaching-content {
        grid-template-columns: 1fr;
    }
}

.lesson-info h3 {
    font-family: var(--font-serif);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.lesson-info ul {
    margin: 15px 0 25px 20px;
}

.lesson-info li {
    margin-bottom: 8px;
}

/* Contact page styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 45px;
    align-items: stretch;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-image-wrapper {
        flex: none;
        height: 320px;
    }
}

.contact-details {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.contact-details p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.contact-details strong {
    color: var(--primary-color);
}

.contact-image-wrapper {
    position: relative;
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

.contact-image-wrapper .bio-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-form-container {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 2px;
    box-shadow: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 53, 95, 0.12);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-status {
    margin-top: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-status-success {
    color: #276749;
}

.contact-status-error {
    color: #B42318;
}

/* Events styles */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.event-card {
    display: flex;
    align-items: flex-start;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: none;
    background: var(--surface-color);
}

@media (max-width: 600px) {
    .event-card {
        flex-direction: column;
    }
}

.event-date {
    background-color: var(--primary-color);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 116px;
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    height: 148px;
    min-height: 148px;
    max-height: 148px;
    padding: 18px 12px;
    text-align: center;
}

.event-date-future {
    background: linear-gradient(160deg, #9B3FE8 0%, #C44EC4 48%, #F09A74 100%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 12px 24px rgba(155, 63, 232, 0.24);
    position: relative;
}

.event-date-future::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    height: 2px;
    background: rgba(255, 255, 255, 0.52);
}

.event-day {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1;
}

.event-month {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.event-year {
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 600px) {
    .event-date {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        height: 92px;
        min-height: 92px;
        max-height: 92px;
        flex-basis: auto;
    }
}

.event-details {
    padding: 22px 24px;
    flex: 1;
}

.event-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.event-desc {
    font-size: 0.96rem;
    color: var(--text-muted);
}
