/* Root variables for colour palette and fonts */
:root {
    --primary: #193446; /* deep navy */
    --secondary: #F7D488; /* golden sand */
    --accent: #A1E0D6; /* soft teal */
    --light: #F8F3E6; /* warm beige */
    --dark: #0F2532; /* dark navy */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Nunito Sans', sans-serif;
}

/* Global styles */
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    text-decoration: underline;
}

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

/* Navigation */
nav {
    background-color: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links li a:hover {
    color: var(--secondary);
}

/* Hero */
.hero {
    background-color: var(--dark);
    color: #fff;
    padding: 4rem 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .hero-content {
        flex-direction: row;
    }
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    display: inline-block;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
}

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

/* Expert Section */
.expert {
    background-image: url('images/watercolor.jpg');
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
}

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

.expert p {
    max-width: 900px;
    margin: 0.5rem auto;
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.6;
}

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

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

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

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

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

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

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

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

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

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(248, 243, 230, 0.9);
    z-index: 0;
}

.testimonials h2 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-style: italic;
}

.testimonial-card h4 {
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    font-style: normal;
}

.review-form {
    margin-top: 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1;
}

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

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

.review-form input,
.review-form textarea {
    padding: 0.6rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.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: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.popup.hidden {
    display: none;
}

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

.popup-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary);
}

/* Contact Section */
.contact {
    background-color: var(--accent);
    padding: 3rem 0;
    color: var(--dark);
}

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

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.6rem;
    border: 1px solid var(--primary);
    border-radius: 4px;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.consent {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--dark);
}

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

/* Footer */
footer {
    background-color: var(--primary);
    color: #fff;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-col p {
    margin: 0.3rem 0;
    font-size: 0.95rem;
}

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

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

.copyright {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.9rem;
}

@media (min-width: 600px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}