/* FONTS */
@font-face {
    font-family: "Bitcount";
    src: url(fonts/Bitcount_Prop_Double/BitcountPropDouble-VariableFont_CRSV\,ELSH\,ELXP\,slnt\,wght.ttf)
}
@font-face {
    font-family: "Delius";
    src: url(fonts/Delius_Swash_Caps/DeliusSwashCaps-Regular.ttf)
}
@font-face {
    font-family: "IBM";
    src: url(fonts/IBM_Plex_Serif/IBMPlexSerif-Regular.ttf)
}
#logo h1, h2 {
    font-family: "Delius"
}
h2 {
    justify-content: center;
    display: flex;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

header {
    background: black;
    color: white;
    padding: 1rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images/hero.jpg') no-repeat center center;
    background-size: cover;
    height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

button {
    background: rgb(85, 201, 239);
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-radius: 5px;
    font-family: "Bitcount";
    font-size: 16px;
}
#services {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 2rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}
.card {
    min-width: 300px; 
    background: #f4f4f4;
    padding: 2rem;
    box-sizing: border-box; 
    text-align: center;
    border-bottom: 4px solid #0077be;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.calculator {
    padding: 2rem 5%;
    background: #eef7ff;
    text-align: center;
}
nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}
nav a:hover {
    text-decoration: underline;
}
#logo {
    display: flex;
    flex-direction: row;
    align-items: center;
}
#logo img {
    height: 48px;
    width: auto;
    margin-left: 0;
}
#logo h1 {
    font-size: 30px;
    margin-left: 10px;
}


@media (min-width: 768px) {
    header {
        flex-direction: row;
    }
    #services {
        grid-template-columns: repeat(3, 1fr); 
    }
}