/* ===========================================
   Brian's Tech Services
   Responsive Stylesheet
   =========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f4f6f8;
}

/* =======================
   Header
   ======================= */

header {
    background: #0A3161;
    color: #fff;
    text-align: center;
    padding: 25px;
}

header h1 {
    font-size: 2.5rem;
}

header p {
    margin-top: 10px;
}

/* ======================
   Navigation
   ====================== */

nav {
    background: #9B1C31;
    border-top: 2px solid #d84b68;
    border-bottom: 2px solid #8b1534;
}

nav ul {
    list-style: none;

    display: flex;

    justify-content: center;

    align-items: center;

    max-width: 1200px;

    margin: 0 auto;

    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;

    color: white;

    text-decoration: none;

    font-weight: bold;

    font-size: 1rem;

    padding: 16px 28px;

    transition: background-color .2s ease;
}

nav a:hover {
    background: rgba(255,255,255,.15);
}

nav a:active {
    background: rgba(255,255,255,.25);
}
/* =======================
   Hero
   ======================= */

#hero {

    width:100%;

    min-height:70vh;

    background-image:url("images/heroimage_b.png");

    background-size:cover;

    background-position:center center;

    background-repeat:no-repeat;

    display:flex;

    align-items:center;

    padding-left:8%;

    padding-right:8%;
}
.hero-content {
    background: rgba(10,49,97,.70);

    color: white;

    max-width: 550px;

    padding: 40px;

    border-radius: 10px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

.hero-button {
    display: inline-block;

    background: #B31942;

    color: white;

    padding: 14px 28px;

    text-decoration: none;

    border-radius: 6px;
}

.hero-button:hover {
    background: #922037;
}

/* =======================
   Main Content
   ======================= */

main {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 40px 0;
}

section {
    margin-bottom: 50px;
}

.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    flex: 1 1 300px;

    background: white;

    border-left: 5px solid #B31942;

    padding: 25px;

    border-radius: 8px;

    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* =======================
   Tables
   ======================= */

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #0A3161;
    color: white;
}

th,
td {
    padding: 12px;
    border: 1px solid #ddd;
}

/* =======================
   Footer
   ======================= */

footer {
    background: #0A3161;
    color: white;
    text-align: center;
    padding: 25px;
}

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 900px) {

    #hero {
        min-height: 500px;
        padding: 40px;
    }

    .hero-content h2 {
        font-size: 2.3rem;
    }

}

@media (max-width: 768px) {

    nav ul {
        flex-direction: column;
    }

    nav li {
        text-align: center;
        border-top: 1px solid rgba(255,255,255,.2);
    }

    #hero {
        justify-content: center;
        text-align: center;
        padding: 25px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .services {
        flex-direction: column;
    }

}

@media (max-width: 480px) {

    header h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.7rem;
    }

    .hero-button {
        display: block;
        width: 100%;
        text-align: center;
    }

}