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

html, body {
    font-family: 'Open Sans', sans-serif;
    color: #2b2b2b;
    background-color: #ffffff;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

/* Sections */
.section {
    padding: 4rem 0;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1c1c1c;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #004e8a;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: #555;
}

/* Hero section */
.hero {
    position: relative;
    min-height: 80vh;
    background-image: url('images/hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Slightly darker overlay to improve contrast against the hero image */
    background: rgba(0, 0, 0, 0.65);
}

.hero-content {
    position: relative;
    text-align: center;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 3rem;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: #ffffff; /* override global heading color for hero */
}

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #e5e5e5; /* light colour for subtitle */
}

.hero-content p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    color: #dcdcdc;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
    margin-top: 0;
}

.card p {
    font-size: 0.95rem;
    color: #555;
}

/* Contact section */
.btn {
    display: inline-block;
    background-color: #004e8a;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #006bbf;
    color: #ffffff;
}

.contact .btn {
    margin-top: 1rem;
}

/* Footer */
.footer {
    background-color: #f0f0f0;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive typography */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
    .hero-content h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content h2 {
        font-size: 1rem;
    }
    .cards {
        grid-template-columns: 1fr;
    }
}