/* Root variables for colours and fonts */
:root {
    --primary: #5a3e8d; /* dark violet */
    --secondary: #1abc9c; /* teal */
    --accent: #a778f6; /* light violet */
    --light-bg: #f8f6fb; /* very light background */
    --text: #333333;
    --muted: #666666;
}

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

body {
    font-family: 'PT Sans', sans-serif;
    color: var(--text);
    background: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Quicksand', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.navbar ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    transition: color 0.2s ease;
}

.navbar a:hover {
    color: var(--secondary);
}

/* Hero section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
}

.hero-text {
    flex: 1 1 50%;
    padding-right: 2rem;
    min-width: 260px;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.125rem;
    color: #f5f5f5;
}

.hero-image {
    flex: 1 1 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 260px;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Expert section */
.expert {
    padding: 3rem 2rem;
    background: var(--light-bg);
    text-align: center;
    max-width: 1000px;
    margin: auto;
}

.expert p {
    margin-top: 1rem;
    color: var(--muted);
    font-size: 1.125rem;
}

/* Programs */
.programs {
    padding: 3rem 2rem;
    background: #ffffff;
}

.programs .program-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.programs .program {
    background: var(--light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease;
}

.programs .program:hover {
    transform: translateY(-3px);
}

.programs h3 {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.programs p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.programs .price {
    font-weight: 600;
    color: var(--secondary);
    margin-top: auto;
}

/* Testimonials */
.testimonials {
    padding: 3rem 2rem;
    background-image: url('images/pattern.png');
    background-size: cover;
    background-position: center;
    color: var(--text);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
}

.testimonials-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.testimonial {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.75rem;
}

.testimonial .author {
    font-weight: 600;
    color: var(--secondary);
}

.review-form {
    max-width: 600px;
    margin: 2rem auto 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
}

.review-form h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.review-form form input,
.review-form form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
}

.review-form form button {
    background: var(--secondary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.review-form form button:hover {
    background: var(--primary);
}

/* Contact */
.contact {
    padding: 3rem 2rem;
    background: var(--light-bg);
}

.contact h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.contact form {
    max-width: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.contact form input,
.contact form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    resize: vertical;
}

.contact form textarea {
    min-height: 120px;
}

.contact .consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact .consent input[type="checkbox"] {
    margin-top: 0.2rem;
}

.contact form button {
    align-self: flex-start;
    background: var(--primary);
    color: #ffffff;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact form button:hover {
    background: var(--secondary);
}

/* Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.popup-content {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.popup-content button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    border: none;
    background: var(--secondary);
    color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.popup-content button:hover {
    background: var(--primary);
}

/* Footer */
footer {
    background: #ffffff;
    padding: 2rem;
    border-top: 1px solid #eee;
}

footer .footer-content {
    max-width: 1000px;
    margin: auto;
    text-align: center;
    color: var(--muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 1.5rem;
    }
    .navbar ul {
        gap: 1rem;
    }
}