@font-face {
    font-display: swap;
    font-family:"Optima Regular";
    font-style: normal;
    font-weight: normal;
    src:url("./Optima-Regular.woff") format("woff"),
    url("./Optima-Regular.ttf") format("truetype");
}

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

body {
    display: grid;
    overflow-x: hidden;
    width: 100%;
}

/* Top Navigation Band */
.top_nav {
    align-items: center;
    background: #233c56;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    padding: 15px 50px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top_nav_logo {
    flex-shrink: 0;
    height: 60px;
    width: auto;
}

.top_nav_text {
    color: #f5f5f5;
    font-family: 'Lexend';
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

/* Hero Section */
.bg_1_wrapper {
    display: inline-grid;
    justify-items: center;
    position: relative;
    width: 100%;
}

.bg_img_1 {
    border: 0;
    height: auto;
    margin: 0px 0px 20px 0px;
    max-height: 600px;
    object-fit: cover;
    width: 100%;
}

.hero_text_wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    left: 0;
    padding: 20px;
    position: absolute;
    top: 0;
    width: 100%;
}

.hero_text_h1 {
    color: #f5f5f5;
    font-family: 'Optima';
    font-size: 66px;
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero_text_h2 {
    color: #f5f5f5;
    font-family: 'Optima';
    font-size: 26px;
    font-weight: 400;
    line-height: 1.2;
    margin-top: 10px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

/* About Section */
.about_wrapper {
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 0px 20px 20px 0px;
    box-sizing: border-box;
    display: grid;
    gap: 20px;
    grid-template-areas:
        "about_img about"
        "about_img about_wording";
    grid-template-columns: auto 1fr;
    grid-template-rows: auto min-content;
    justify-self: center;
    margin: 20px clamp(20px, 5vw, 100px);
    max-width: 1400px;
}

.about_img {
    align-self: baseline;
    grid-area: about_img;
    height: auto;
    justify-self: center;
    max-width: 600px;
    width: 100%;
}

.about {
    color: #233c56;
    font-family: 'Optima Regular';
    font-size: 33px;
    font-style: normal;
    font-weight: 400;
    grid-area: about;
    justify-self: left;
    line-height: 40px;
    padding: 10px 0 0 20px;
}

.about_wording {
    align-self: baseline;
    color: #233c56;
    font-family: 'Poppins';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    grid-area: about_wording;
    line-height: 30px;
    padding: 0 30px 0 30px;
    width: auto;
}

/* Our Services Section */
.our_services_wrapper {
    align-items: center;
    background: #233c56;
    border-radius: 20px 0px 0px 20px;
    box-sizing: border-box;
    display: grid;
    gap: 20px;
    grid-template-areas:
        "our_services our_services_image"
        "our_services_wording our_services_image";
    grid-template-columns: 1fr auto;
    grid-template-rows: auto min-content;
    justify-self: center;
    margin: 20px clamp(20px, 5vw, 100px);
    max-width: 1400px;
}

.our_services_image {
    align-self: baseline;
    grid-area: our_services_image;
    height: auto;
    justify-self: center;
    max-height: 100%;
    max-width: 600px;
    width: 100%;
}

.our_services {
    color: #f5f5f5;
    font-family: 'Optima Regular';
    font-size: 33px;
    font-style: normal;
    font-weight: 400;
    grid-area: our_services;
    justify-self: left;
    line-height: 40px;
    padding: 10px 0 0 20px;
}

.our_services_wording {
    align-self: baseline;
    color: #f5f5f5;
    font-family: 'Poppins';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    grid-area: our_services_wording;
    line-height: 32px;
    padding: 0 30px 0 30px;
    width: auto;
}

.our_services_wording_list {
    margin-left: 20px;
}

.our_services_wording_list li {
    margin: 0px;
}

/* Contact Section */
.contact_us_wrapper {
    align-items: start;
    background-color: #f5f5f5;
    box-sizing: border-box;
    display: grid;
    gap: 20px;
    grid-template-areas:
        "contact_us_name contact_us_contact"
        "contact_us_name contact_us_details_grid"
        "contact_divider contact_divider"
        "contact_us_footer contact_us_footer";
    grid-template-columns: 1.25fr 0.75fr;
    grid-template-rows: auto auto auto auto;
    margin: 20px 0px 0px 0px;
    padding: 60px clamp(20px, 15.5vw, 500px);
    width: 100%;
}

.contact_us_name {
    align-self: start;
    color: #233c56;
    font-family: 'Lexend';
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    grid-area: contact_us_name;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center;
}

.contact_us_contact {
    align-self: start;
    color: #233c56;
    font-family: 'Optima Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    grid-area: contact_us_contact;
    line-height: 1.2;
    margin-bottom: 10px;
    text-align: left;
}

.contact_details_grid {
    align-items: start;
    display: grid;
    gap: 15px 20px;
    grid-area: contact_us_details_grid;
    grid-template-columns: auto 1fr;
}

.contact_us_icon {
    height: 24px;
    justify-self: center;
    width: 24px;
}

.contact_us_details {
    color: #233c56;
    font-family: 'Optima Regular';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
}

.contact_divider {
    background: #233c56;
    grid-area: contact_divider;
    height: 2px;
    justify-self: center;
    margin: 0px;
    width: 100%;
}

.contact_us_footer {
    color: #233c56;
    font-family: 'Optima Regular';
    font-size: 14px;
    font-weight: 400;
    grid-area: contact_us_footer;
    opacity: 0.8;
    text-align: center;
}

@media (width <= 720px) {
    .top_nav {
        padding: 10px 20px;
        position: sticky;
    }
    
    .top_nav_logo {
        height: 50px;
    }
    
    .top_nav_text {
        font-size: 16px;
    }
}

@media (width <= 720px) {
    .hero_text {
        font-size: 32px;
    }
    
    .bg_img_1 {
        max-height: 400px;
    }
}

/* ============================================
             MOBILE RESPONSIVE STYLES
   ============================================ */

/* Tablet: 768px and below */
@media (max-width: 768px) {
    .top_nav {
        padding: 12px 30px;
    }
    
    .top_nav_logo {
        height: 50px;
    }
    
    .top_nav_text {
        font-size: 18px;
    }
    
    .hero_text_h1 {
        font-size: 48px;
    }
    
    .hero_text_h2 {
        font-size: 22px;
    }
    
    .about_wrapper {
        grid-template-areas:
            "about"
            "about_img"
            "about_wording";
        grid-template-columns: 1fr;
        padding: 20px;
        margin: 20px;
        border-radius: 20px;
    }
    
    .about {
        font-size: 28px;
        padding: 0;
        text-align: center;
        justify-self: center;
    }
    
    .about_img {
        max-width: 100%;
    }
    
    .about_wording {
        padding: 0 10px;
    }
    
    .our_services_wrapper {
        grid-template-areas:
            "our_services"
            "our_services_image"
            "our_services_wording";
        grid-template-columns: 1fr;
        padding: 20px;
        margin: 20px;
        border-radius: 20px;
    }
    
    .our_services {
        font-size: 28px;
        padding: 0;
        text-align: center;
        justify-self: center;
    }
    
    .our_services_image {
        max-width: 100%;
    }
    
    .our_services_wording {
        padding: 0 10px;
    }
    
    .contact_us_wrapper {
        grid-template-areas:
            "contact_us_name"
            "contact_us_contact"
            "contact_us_details_grid"
            "contact_divider"
            "contact_us_footer";
        grid-template-columns: 1fr;
        padding: 40px 30px;
    }
    
    .contact_us_name {
        text-align: center;
    }
    
    .contact_us_contact {
        text-align: center;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 20px;
    }
}

/* Mobile: 480px and below (changed to 483 as the top-nav 
Flagstone Condominium Services was breaking up */
@media (max-width: 483px) {
    .top_nav {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .top_nav_logo {
        height: 40px;
    }
    
    .top_nav_text {
        font-size: 14px;
        text-align: center;
    }
    
    .bg_img_1 {
        max-height: 300px;
    }
    
    .hero_text_wrapper {
        padding: 15px;
    }
    
    .hero_text_h1 {
        font-size: 28px;
    }
    
    .hero_text_h2 {
        font-size: 16px;
    }
    
    .about_wrapper {
        margin: 15px 10px;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .about {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .about_wording {
        font-size: 14px;
        line-height: 26px;
        padding: 0 5px;
    }
    
    .our_services_wrapper {
        margin: 15px 10px;
        padding: 20px 15px;
        gap: 15px;
    }
    
    .our_services {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .our_services_wording {
        font-size: 14px;
        line-height: 28px;
        padding: 0 5px;
    }
    
    .our_services_wording_list {
        margin-left: 15px;
    }
    
    .contact_us_wrapper {
        padding: 30px 15px;
        gap: 15px;
    }
    
    .contact_us_name {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .contact_us_name img {
        height: 60px !important;
    }
    
    .contact_us_contact {
        font-size: 16px;
    }
    
    .contact_details_grid {
        gap: 12px 15px;
    }
    
    .contact_us_icon {
        height: 20px;
        width: 20px;
    }
    
    .contact_us_details {
        font-size: 14px;
        line-height: 20px;
    }
    
    .contact_divider {
        margin: 15px 0;
    }
    
    .contact_us_footer {
        font-size: 12px;
    }
}

/* Extra small devices: 360px and below */
@media (max-width: 360px) {
    .top_nav_text {
        font-size: 12px;
    }
    
    .hero_text_h1 {
        font-size: 24px;
    }
    
    .hero_text_h2 {
        font-size: 14px;
    }
    
    .about {
        font-size: 20px;
    }
    
    .our_services {
        font-size: 20px;
    }
    
    .contact_us_name {
        font-size: 16px;
    }
}