/* Simple reset and base styles */
*,
html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

h1,
h2,
p {
    margin-bottom: 1em;
}

/* CSS Grid Layout for Header Section */
header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* Default content styling relying on pading for spacing */
.header-content {
    padding: 30px 60px;
    text-align: left;
}

/* Control image with object-fit and focal point with object-position */
img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: bottom right;
    /* needs a setting in admin */
}

/* Optimize for larger screens */
@media screen and (min-width: 1200px) {

    body {
        font-size: 1.4rem;
    }

    .header-content {
        padding: 60px 120px;
    }

    img {
        height: 800px;
    }
}

/* Optimize for medium screens with smaller fonts and less padding for better presentation */
@media screen and (max-width: 768px) {

    body {
        font-size: 0.9rem;
    }

    .header-content {
        padding: 20px 30px;
    }

    /* Reduce image height for medium screens */
    img {
        height: 400px;
    }
}

/* Optimize for small screens: stack layout and further reduce font size and padding */
@media screen and (max-width: 576px) {

    body {
        font-size: 0.8rem;
    }

    header {
        grid-template-columns: 1fr;
    }

    img {
        height: 200px;
    }

    .header-cotent {
        padding: 10px 20px;
    }
}

/* mockups - irrelevant for demo */
.menu-bar {
    display: flex;
    justify-content: space-evenly;
    padding: 20px 0;
    background-color: #fff;
    color: white;
}

button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}