/* 
   Gentle Wisdom Practice
   Основні стилі сайту
*/

/* Загальні стилі */
:root {
    --primary-color: #3b7a57; /* Зелений */
    --secondary-color: #d2b2ff; /* Лавандовий */
    --accent-color: #f0d890; /* М'який золотий */
    --dark-color: #1e2e1f; /* Темно-зелений */
    --light-color: #f5f5f5; /* Світло-сірий */
    --medium-light: #f0f8f5; /* Світло-зелений */
    --header-font: 'Cormorant Garamond', serif;
    --body-font: 'Nunito', sans-serif;
    --transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--light-color);
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--header-font);
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

ul {
    list-style: none;
}

section {
    padding: 5rem 0;
    position: relative;
}

section:nth-child(odd) {
    background-color: var(--light-color);
}

section:nth-child(even) {
    background-color: var(--medium-light);
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    position: relative;
    display: block;
    width: 100%;
    height: 60px;
}

/* Кнопки */
.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button:hover {
    background-color: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
}

.glow-button {
    position: relative;
    overflow: hidden;
}

.glow-button:before {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
}

.glow-button:hover:before {
    opacity: 0.8;
    transform: scale(4);
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

/* Хедер */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(30, 46, 31, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo h1 {
    color: var(--light-color);
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    gap: 25px;
}

.nav a {
    color: var(--light-color);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 5px 10px;
    position: relative;
    transition: opacity 0.3s;
}

.nav a:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav a:hover {
    opacity: 0.8;
}

.nav a:hover:before {
    width: calc(100% - 20px);
}

/* Героїня секція */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('images/hero-background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    text-align: center;
    margin-top: 0;
    padding-top: 100px;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(30, 46, 31, 0.7), rgba(30, 46, 31, 0.4));
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1;
}

.hero h2 {
    color: var(--light-color);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.hero p {
    color: var(--light-color);
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Секції з заголовками */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.sacred-geometry {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    z-index: -1;
}

/* Секція про нас */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.about-text li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 15px;
}

.about-text li:before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

/* Секція класів */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.class-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.class-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0.7;
}

.class-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.class-icon {
    margin-bottom: 20px;
}

.class-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.class-details {
    font-style: italic;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
}

/* Секція викладачів */
.teachers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.teacher-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.teacher-image {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    aspect-ratio: 3/4;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.05);
}

.teacher-info h3 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.teacher-title {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.teacher-quote {
    font-family: var(--header-font);
    font-style: italic;
    position: relative;
    padding-left: 20px;
    margin-top: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
    border-left: 3px solid var(--secondary-color);
}

/* Секція філософії */
.philosophy-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.philosophy-principles {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.principle {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: flex-start;
}

.principle-icon {
    background-color: rgba(59, 122, 87, 0.1);
    padding: 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.principle-text h4 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.mandala-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.mandala {
    width: 100%;
    max-width: 300px;
    animation: rotate 60s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.mandala-description {
    background-color: rgba(59, 122, 87, 0.05);
    padding: 25px;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
}

/* Секція галереї */
.gallery-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 20px;
}

.gallery-tab {
    background: none;
    border: none;
    padding: 10px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: var(--header-font);
    color: var(--dark-color);
    position: relative;
    transition: var(--transition);
}

.gallery-tab:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.gallery-tab.active {
    color: var(--primary-color);
    font-weight: 600;
}

.gallery-tab.active:after,
.gallery-tab:hover:after {
    width: 100%;
}

.gallery-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
}

.gallery-grid.active {
    display: grid;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Секція мудр */
.mudras-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.mudra-card {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mudra-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.mudra-image {
    margin-bottom: 20px;
}

.mudra-info h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.mudra-instruction {
    font-style: italic;
    margin-top: 15px;
    color: #666;
    font-size: 0.9rem;
    padding: 10px;
    background-color: rgba(59, 122, 87, 0.05);
    border-radius: 5px;
}

/* Секція контактів */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item svg {
    min-width: 24px;
}

.contact-item p {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--light-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(59, 122, 87, 0.2);
}

/* Футер */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-item {
    margin-bottom: 40px;
}

.footer-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.footer-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.footer-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
}

.footer-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: var(--light-color);
    margin-bottom: 0;
    font-size: 1.5rem;
}

.footer-item h4 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-item h4:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-item ul {
    margin-top: 15px;
}

.footer-item li {
    margin-bottom: 10px;
}

.footer-item a {
    color: #ddd;
    transition: var(--transition);
}

.footer-item a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-decoration {
    margin: 20px 0;
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

/* Адаптивність */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.6rem;
    }
    
    .hero h2 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .about-content,
    .philosophy-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .teacher-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .teacher-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .teacher-quote {
        text-align: left;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-item:nth-child(n) {
        grid-column: 1;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .principle {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 10px;
    }
    
    .principle-icon {
        margin: 0 auto;
    }
    
    .class-card,
    .mudra-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .button {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .sacred-geometry {
        top: -30px;
    }
    
    .classes-grid,
    .mudras-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 375px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}