@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Roboto:wght@400;500&display=swap');

/* Base styles */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem; /* 16px */
    line-height: 1.6;
}

/* Font families */
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

/* Color variables */
:root {
    --navy: #0F1C44; /* Navy blue from logo background */
    --red: #E63946; /* Red from logo's "C" shape */
    --soft-gray: #E5E7EB; /* Replacing light pink with a professional soft gray */
    --white: #FFFFFF;
}

/* Navbar */
.navbar {
    background-color: var(--navy);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.nav-link {
    color: var(--white) !important;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--white) !important;
    border-bottom: 2px solid var(--red);
}

.navbar-toggler {
    border-color: var(--white);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-outline-red {
    border-color: var(--red) !important;
    color: var(--white) !important;
    font-size: 0.875rem;
}

.btn-outline-red:hover {
    background-color: var(--red) !important;
    color: var(--white) !important;
    border-color: var(--red) !important;
}

.navbar-brand img {
    height: 55px;
    width: 160px;
}

/* Ensure navbar-collapse is visible on larger screens */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
        flex-grow: 1;
    }

    .navbar-nav {
        flex-grow: 1;
        justify-content: center;
    }

    .btn-outline-red {
        margin-left: auto;
    }
}

/* Hero Section */
.bg-hero {
    background-image: url('images/home-image.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Headings */
h1 {
    font-size: 2.5rem; /* 40px */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--white);
}

h2 {
    font-size: 2rem; /* 32px */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

h3 {
    font-size: 1.5rem; /* 24px */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

h4 {
    font-size: 1.25rem; /* 20px */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--navy);
}

h5 {
    font-size: 1.25rem; /* 20px */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--white);
}

section.bg-navy h1,
section.bg-navy h2,
section.bg-navy h3,
section.bg-navy h4,
section.bg-navy h5 {
    color: var(--white);
}

section.bg-navy p {
    color: var(--white);
}

/* Buttons */
.btn-red {
    background-color: var(--red);
    border-color: var(--red);
    color: var(--white);
    font-size: 1rem;
    border-radius: 8px;
}

.btn-red:hover {
    background-color: var(--soft-gray);
    border-color: var(--red);
    color: var(--navy);
    box-shadow: 0 0 10px var(--red);
}

/* Cards */
.card {
    transition: all 0.3s ease;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    color: var(--navy);
    border: 2px solid var(--red);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.card:hover {
    background: var(--soft-gray) !important;
    color: var(--navy) !important;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
    transform: scale(1.05);
}

section.bg-soft-gray .card {
    background: linear-gradient(145deg, #E5E7EB, #D1D5DB);
}

section.bg-soft-gray .card:hover {
    background: var(--white) !important;
}

.card h5,
.card p {
    color: var(--navy);
}

section.bg-navy .card {
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
}



section.bg-navy .card h5,
section.bg-navy .card p {
    color: var(--navy);
}

/* Sections */
section {
    padding: 4rem 0;
}

.bg-navy {
    background-color: var(--navy);
}

.bg-soft-gray {
    background-color: var(--soft-gray);
}

/* Footer */
footer {
    background: linear-gradient(145deg, var(--navy), #0a1536);
    border-top: 4px solid var(--red);
}

footer a {
    color: var(--soft-gray);
    font-size: 0.9rem;
    text-decoration: none;
}

footer a:hover {
    color: var(--red) !important;
}

footer p {
    font-size: 0.875rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--soft-gray);
    color: var(--navy);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--red);
    color: var(--white);
}

/* Form inputs */
.form-control {
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--red);
    color: var(--navy);
}

.form-control:focus {
    border-color: var(--red);
    box-shadow: 0 0 5px var(--red);
}

textarea.form-control {
    resize: vertical;
}

/* Social media icons */
footer .text-2xl {
    font-size: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }

    .nav-link {
        padding: 0.5rem 0;
    }

    .btn-outline-red {
        margin: 1rem auto;
        display: block;
        width: fit-content;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2rem; /* 32px */
    }

    h2 {
        font-size: 1.75rem; /* 28px */
    }

    h3 {
        font-size: 1.25rem; /* 20px */
    }

    h4, h5 {
        font-size: 1.125rem; /* 18px */
    }

    .navbar-brand img {
        height: 40px;
    }

    .card {
        margin: 0 auto;
        max-width: 300px;
    }

    footer .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .navbar-brand img {
        height: 60px;
        width: 170px;
    }
}