@import url(variables.css);

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

            /*** Main body styles ***/
   /* Sets up a centered column layout with custom background */

   body {
    background: var(--color-1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

            /** Header section ***/
   /* Contains title, description and CTA button */

header {
    /* Layout properties */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    
    /* Dimensions and spacing */
    width: 80%;
    max-width: 700px;
    margin-top: 30px;
}

.header h1 {
    color: var(--color-2);
    font-family: "Avenir-Heavy";
    font-size: 3.5vw; /* Responsive font size */
}
.header p {
    color: var(--color-2);
    font-family: "Avenir-Roman";
    font-size: 1.5vw;
    opacity: 80%;
    margin-top: 24px;
}
.header button {
    /* Button dimensions and appearance */
    width: 160px;
    height: 54px;
    background: var(--color-2);
    border: none;
    border-radius: 18px;
    
    /* Spacing and interaction */
    margin-top: 24px;
    cursor: pointer;
}
.header button a {
    /* Text styling */
    font-family: "Avenir-Roman";
    font-size: 18px;
    color: var(--color-1);
    text-decoration: none;
    
    /* Center text within button */
    display: block;
    text-align: center;
    line-height: 54px;
}

            /*** Sections ***/
    /* Contains image grid layout */

section {
    /* Layout and dimensions */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin-top: 50px;
}

.row1, .row2 {
    /* Flexbox layout for image grid */
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.row1 img, .row2 img {
    /* Responsive image sizing */
    width: calc(25% - 20px);
    max-width: 250px;
    height: auto;
    border-radius: 10px;
}

            /*** Desktop ***/
    /* Applies when screen width is 1400px or larger */
    
@media (min-width: 1400px) {
    /* Fixed font sizes for larger screens */
    .header h1 {
        font-size: 48px;
    }

    .header p {
        font-size: 24px;
    }

    /* Larger maximum image size */
    .row1 img, .row2 img {
        max-width: 300px;
    }
}