/* Root variables for colour palette */
:root {
    --primary: #3c5273; /* deep slate blue */
    --secondary: #d95b43; /* warm coral */
    --accent: #e9c46a; /* golden beige */
    --highlight: #2a9d8f; /* teal */
    --light: #f3f6f4; /* very light greenish cream */
    --dark: #24344d; /* dark navy for text */
}

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

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

h1, h2, h3 {
    font-family: 'Questrial', sans-serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

section {
    padding: 4rem 0;
}

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

/* Header */
.header {
    background-color: var(--primary);
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav li {
    margin-left: 1.5rem;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.7;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 70px; /* space for fixed header */
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero.png');
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(60, 82, 115, 0.5);
    z-index: -1;
}

.hero-content h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

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

.btn-primary {
    background-color: var(--secondary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

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

/* Foundations */
.foundations {
    background-color: #fff;
}

.foundations h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.card {
    background-color: var(--light);
    border-left: 6px solid var(--highlight);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

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

.card .icon {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

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

.card p {
    font-size: 0.95rem;
    color: var(--dark);
    line-height: 1.4;
}

/* Programs */
.programs h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

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

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

.program-card h4 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.program-card p {
    flex-grow: 1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.program-card .price {
    font-weight: 600;
    color: var(--secondary);
}

/* Specialist */
.specialist {
    background-color: var(--light);
}

.specialist-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.specialist-photo img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.specialist-info h2 {
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.specialist-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.specialist-info p {
    font-size: 1rem;
    color: var(--dark);
    line-height: 1.5;
}

/* Testimonials */
.testimonials {
    background-color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.opinion-list {
    list-style: none;
    margin-bottom: 2rem;
}

.opinion-list li {
    background-color: var(--light);
    border-left: 6px solid var(--accent);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.opinion-list li strong {
    display: block;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.opinion-form {
    background-color: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.opinion-form h3 {
    margin-bottom: 1rem;
}

.opinion-form input,
.opinion-form textarea {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Merriweather Sans', sans-serif;
}

.opinion-form button {
    width: 100%;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.hidden {
    display: none;
}

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

.modal-content p {
    margin-bottom: 1rem;
}

/* Contact */
.contact {
    background-color: var(--light);
}

.contact h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.contact input,
.contact textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Merriweather Sans', sans-serif;
}

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

.checkbox-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

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

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-brand {
    font-size: 1.4rem;
    font-weight: 600;
}

.footer-contact p,
.footer-policy a {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

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

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

.copyright {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 1rem;
    color: #cfd6df;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav.open {
        max-height: 300px;
    }

    .nav ul {
        flex-direction: column;
        padding: 1rem;
    }

    .nav li {
        margin: 0.5rem 0;
    }

    .nav-toggle {
        display: block;
    }

    .specialist-grid {
        flex-direction: column;
        text-align: center;
    }

    .specialist-photo img {
        margin: 0 auto;
    }
}