/* Root variables for colours and fonts */
:root {
    --primary-color: #006d77; /* teal */
    --accent-color: #f7a100; /* warm amber */
    --light-bg: #f8f9fa; /* light neutral background */
    --text-color: #333; /* primary text */
    --card-bg: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin: 0 0 0.5rem 0;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }

/* Hero section */
.hero {
    background-image: url('images/hero_bg.png');
    background-size: cover;
    background-position: center;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem;
    border-radius: var(--border-radius);
}

.hero p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* General section styling */
section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Info (article) section */
.info p {
    margin-bottom: 1rem;
    text-align: justify;
}

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

.course {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 4px 8px var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.course h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.course p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.course .price {
    font-weight: 600;
    color: var(--accent-color);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px var(--shadow);
}

/* Contact section */
.contact form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin-top: 1rem;
}

.contact .form-group {
    display: flex;
    flex-direction: column;
}

.contact label {
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact input,
.contact textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
}

.contact textarea {
    resize: vertical;
}

.contact .checkbox {
    grid-column: span 2;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.contact .checkbox input {
    margin-right: 0.5rem;
}

.btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

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

/* Reviews */
.reviews ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.reviews li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px var(--shadow);
    margin-bottom: 1rem;
}

.reviews li strong {
    color: var(--primary-color);
}

.reviews form {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reviews form input,
.reviews form textarea {
    padding: 0.6rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

.reviews form textarea {
    resize: vertical;
}

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

.popup .popup-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 1.5rem 1rem;
    text-align: center;
}

footer a {
    color: #fff;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.6rem;
    }
    .contact form {
        grid-template-columns: 1fr;
    }
    .contact .checkbox {
        grid-column: 1;
    }
}