/* Root variables for consistent colours and fonts */
:root {
    --primary-color: #002B45; /* deep navy */
    --secondary-color: #00A896; /* teal */
    --accent-color: #FF6B6B; /* coral */
    --light-color: #F4E7DA; /* light beige */
    --dark-color: #0A1E29; /* almost black */
    --heading-font: 'Cormorant Garamond', serif;
    --body-font: 'Manrope', sans-serif;
}

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

body {
    font-family: var(--body-font);
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Navigation */
.navbar {
    background-color: var(--light-color);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color);
}

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

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

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

/* Hero section */
.hero {
    background-color: var(--light-color);
    padding: 4rem 0;
}

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

.hero-text {
    flex: 1 1 50%;
    padding-right: 1rem;
}

.hero-text h1 {
    font-family: var(--heading-font);
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.hero-text .btn {
    margin-top: 0.5rem;
}

.hero-image {
    flex: 1 1 45%;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: #fff;
}

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

.btn-secondary {
    background-color: var(--accent-color);
    color: #fff;
}

.btn-secondary:hover {
    background-color: #d95050;
}

/* Expert section */
.expert {
    background-image: url('images/watercolor.jpg');
    background-size: cover;
    background-position: center;
    padding: 4rem 0;
    text-align: center;
    color: var(--dark-color);
}

.expert h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.expert p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    background: rgba(255,255,255,0.8);
    padding: 1rem 1.5rem;
    border-radius: 6px;
}

/* Programs section */
.programs {
    padding: 4rem 0;
    background-color: var(--light-color);
}

.programs h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

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

.program-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-5px);
}

.program-card h3 {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.program-card p {
    flex-grow: 1;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.program-card .price {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

/* Testimonials section */
.testimonials {
    padding: 4rem 0;
    background-image: url('images/pattern.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--dark-color);
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(244, 231, 218, 0.8);
    /* Light overlay to make text readable */
}

.testimonials .container {
    position: relative;
    z-index: 1;
}

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

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.testimonial-card p {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Review form */
.review-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.review-form h3 {
    font-family: var(--heading-font);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.review-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.review-form input,
.review-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.review-form textarea {
    resize: vertical;
}

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

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

.popup-content p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

/* Contact section */
.contact {
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 4rem 0;
}

.contact h2 {
    font-family: var(--heading-font);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.contact-details {
    flex: 1 1 40%;
    font-size: 1rem;
    line-height: 1.6;
}

.contact-details p {
    margin-bottom: 0.5rem;
}

.contact-form {
    flex: 1 1 55%;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #666;
}

.contact-form textarea {
    resize: vertical;
}

.consent {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.consent input {
    margin-right: 0.5rem;
}

.contact-form .btn {
    align-self: flex-start;
}

/* Footer */
.footer {
    background-color: #001E32;
    color: var(--light-color);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

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

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

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
    }
    .hero-text, .hero-image {
        flex: 1 1 100%;
        text-align: center;
    }
    .hero-text {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    .contact-container {
        flex-direction: column;
    }
    .contact-details, .contact-form {
        flex: 1 1 100%;
    }
    .navbar ul {
        gap: 0.75rem;
    }
}