/* 
* Harmonia Mieli - Main Stylesheet
* Created for a Finnish meditation studio with international inspiration
* Colors: Green (#4A7C59) and Sand (#f5f0e6)
* Fonts: Cormorant Garamond (headings) and Montserrat (body)
*/

/* ---------- Base Styles ---------- */

:root {
    --primary-color: #4A7C59;
    --secondary-color: #f5f0e6;
    --accent-color: #D4B483;
    --dark-color: #333333;
    --light-color: #ffffff;
    --text-color: #444444;
    --link-color: #3A6349;
    --error-color: #E74C3C;
    --success-color: #2ECC71;
    --transition: all 0.3s ease;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px = 1rem */
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.2rem;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

h4 {
    font-size: 2.4rem;
}

p {
    margin-bottom: 1.5rem;
}

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

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style-position: inside;
    margin-bottom: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header .subtitle {
    font-size: 1.8rem;
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.4rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
    border: 2px solid var(--primary-color);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-small {
    padding: 0.8rem 1.6rem;
    font-size: 1.2rem;
}

/* ---------- Header Styles ---------- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 1.5rem 0;
    transition: var(--transition);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
}

.logo h1 {
    font-size: 2.8rem;
    margin-bottom: 0;
    color: var(--primary-color);
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    margin-bottom: 0;
}

.main-nav .nav-links li {
    margin-left: 2.5rem;
}

.main-nav .nav-links a {
    font-size: 1.5rem;
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.main-nav .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.main-nav .nav-links a:hover::after,
.main-nav .nav-links a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
}

/* ---------- Hero Section ---------- */

.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: 70px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 4rem;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.hero-content h2 {
    font-size: 4.8rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 1.8rem;
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 3;
}

/* ---------- About Section ---------- */

.about-section {
    background-color: var(--secondary-color);
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    flex: 1;
    min-width: 200px;
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.feature-icon {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.feature h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature p {
    font-size: 1.4rem;
    margin-bottom: 0;
}

/* ---------- Services Section ---------- */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 3rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary-color);
}

.service-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
}

.service-card p {
    margin-bottom: 2rem;
}

.service-link {
    font-weight: 600;
    color: var(--primary-color);
    position: relative;
}

.service-link::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover::after {
    margin-left: 10px;
}

/* ---------- Instructors Section ---------- */

.instructors-section {
    background-color: var(--secondary-color);
}

.instructors-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.instructor-card {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.instructor-image {
    flex: 0 0 40%;
    overflow: hidden;
}

.instructor-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: var(--transition);
}

.instructor-card:hover .instructor-image img {
    transform: scale(1.05);
}

.instructor-info {
    flex: 1;
    padding: 3rem;
}

.instructor-info h3 {
    font-size: 2.4rem;
    margin-bottom: 0.5rem;
}

.instructor-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.instructor-bio {
    margin-bottom: 0;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.prev-btn, .next-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.prev-btn:hover, .next-btn:hover {
    color: var(--dark-color);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 6px;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background-color: var(--primary-color);
}

/* ---------- Schedule Section ---------- */

.schedule-tabs {
    max-width: 800px;
    margin: 0 auto;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tabs-header {
    display: flex;
    background-color: var(--primary-color);
}

.tab-btn {
    flex: 1;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--light-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.tabs-content {
    background-color: var(--light-color);
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.schedule-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-time {
    flex: 0 0 120px;
    font-weight: 600;
    color: var(--primary-color);
}

.schedule-details {
    flex: 1;
}

.schedule-details h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.schedule-details p {
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* ---------- Testimonials Section ---------- */

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-slide {
    display: none;
}

.testimonial-slide.active {
    display: block;
}

.testimonial-content {
    padding: 4rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
}

.testimonial-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 3rem;
    padding-left: 4rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 2rem;
}

.author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    margin-bottom: 0;
    color: var(--primary-color);
    font-size: 1.4rem;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.prev-testimonial, .next-testimonial {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.prev-testimonial:hover, .next-testimonial:hover {
    color: var(--dark-color);
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

/* ---------- Space Section ---------- */

.space-section {
    background-color: var(--secondary-color);
}

.space-gallery {
    margin-bottom: 5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.space-features {
    display: flex;
    gap: 2rem;
}

.feature-column {
    flex: 1;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.feature-icon {
    flex: 0 0 60px;
    color: var(--primary-color);
    margin-right: 2rem;
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.feature-text p {
    margin-bottom: 0;
    font-size: 1.4rem;
}

/* ---------- Contact Section ---------- */

.contact-wrapper {
    display: flex;
    gap: 3rem;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card {
    padding: 2rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.card-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.info-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.info-card p {
    margin-bottom: 0;
}

.contact-form-container {
    flex: 1;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 3rem;
}

.contact-form {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.form-group {
    flex: 0 0 calc(50% - 1rem);
}

.form-group.full-width {
    flex: 0 0 100%;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.form-checkbox {
    display: flex;
    align-items: center;
}

.form-checkbox input {
    width: auto;
    margin-right: 1rem;
}

.form-checkbox label {
    margin-bottom: 0;
}

/* ---------- Footer ---------- */

.main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 5rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    flex: 1;
    min-width: 300px;
}

.footer-logo h2 {
    color: var(--light-color);
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 4rem;
}

.footer-nav, .footer-legal {
    flex: 1;
}

.footer-nav h3, .footer-legal h3 {
    color: var(--light-color);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.footer-nav ul, .footer-legal ul {
    list-style: none;
    margin-bottom: 0;
}

.footer-nav li, .footer-legal li {
    margin-bottom: 1rem;
}

.footer-nav a, .footer-legal a {
    color: #ccc;
    transition: var(--transition);
}

.footer-nav a:hover, .footer-legal a:hover,
.footer-nav a.active, .footer-legal a.active {
    color: var(--light-color);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

/* ---------- Success Page ---------- */

.success-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    margin-top: 80px;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.success-icon {
    color: var(--success-color);
    margin-bottom: 2rem;
}

.success-message {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.success-details {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.additional-info {
    background-color: var(--secondary-color);
}

.info-cards {
    display: flex;
    gap: 2rem;
}

/* ---------- Legal Pages ---------- */

.privacy-section,
.terms-section,
.cookies-section {
    margin-top: 80px;
    padding-top: 4rem;
}

.privacy-content,
.terms-content,
.cookies-content {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 4rem;
}

.privacy-intro,
.terms-intro,
.cookies-intro {
    margin-bottom: 3rem;
}

.privacy-section,
.terms-section,
.cookies-section {
    margin-bottom: 3rem;
}

.privacy-section h3,
.terms-section h3,
.cookies-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.terms-section h4 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.privacy-list,
.terms-list,
.cookies-list {
    list-style-type: disc;
    margin-left: 2rem;
}

.privacy-updated,
.terms-updated,
.cookies-updated {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    text-align: right;
    font-style: italic;
}

.cookies-table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.cookies-table {
    width: 100%;
    border-collapse: collapse;
}

.cookies-table th,
.cookies-table td {
    padding: 1.2rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cookies-table th {
    background-color: var(--primary-color);
    color: var(--light-color);
}

/* ---------- Responsive Styles ---------- */

@media screen and (max-width: 1024px) {
    html {
        font-size: 60%;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-wrapper {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 58%;
    }
    
    .hero-content {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--light-color);
        box-shadow: var(--shadow);
        padding: 2rem 0;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }
    
    .main-nav .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .main-nav .nav-links li {
        margin: 0;
    }
    
    .main-nav .nav-links a {
        display: block;
        padding: 1.5rem 2rem;
    }
    
    .instructor-card {
        flex-direction: column;
    }
    
    .instructor-image {
        flex: 0 0 100%;
    }
    
    .instructor-image img {
        height: 300px;
    }
    
    .about-features {
        flex-direction: column;
    }
    
    .space-features {
        flex-direction: column;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .form-group {
        flex: 0 0 100%;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    html {
        font-size: 56%;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item.large {
        grid-column: 1;
        grid-row: span 1;
    }
    
    .info-cards {
        flex-direction: column;
    }
}