/* ==========================================================================
   Base Styles
   ========================================================================== */

body {
    font-family: 'futura-pt', sans-serif;
    margin: 0;
    font-size: 1.4rem;
    color: #4B4F54;
}

h2 {
    font-size: 2rem;
    text-align: center;
}

hr {
    border: none;
    border-top: 1px solid #58a7af;
}

p {
    font-size: 1.4rem;
}

/* ==========================================================================
   Header & Hero Section
   ========================================================================== */

.top-bar {
    background-color: #3F6C7D;
    color: white;
    padding: 1.5rem 0;
    text-align: center;
    background-image: url(color-bar.svg);
    background-position: top -2% center;
    background-size: 100%;
    background-repeat: no-repeat;
}

.hero {
    color: #FFF;
    text-align: center;
    font-style: normal;
    font-weight: 500;
    line-height: 78px;
}

.hero h1 {
    font-size: 3.5em;
    width: 90%;
    margin: .8em auto .3em;
    max-width: 800px;
    font-weight: 500;
    line-height: 1;
}

/* ==========================================================================
   Layout & Wrappers
   ========================================================================== */

.inner-wrapper {
    width: 90%;
    max-width: 1000px;
    margin: 3rem auto;
}

/* ==========================================================================
   Intro Section
   ========================================================================== */

.intro-text {
    text-align: center;
}

.intro-text h2 {
    color: #58A7AF;
}

/* ==========================================================================
   Agency Section
   ========================================================================== */

.agency {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 36px;
    color: #4B4F54;
    text-align: center;
}

.agency img {
    max-height: 14em;
}

.sim-logo {
    max-height: 9em;
}

/* ==========================================================================
   Agents Grid Section
   ========================================================================== */

.agents-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    row-gap: 0;
    max-width: 850px;
    margin: 50px auto 0;
}

.agent-card {
    display: flex;
    flex-direction: column;
    max-width: 228px;
    padding-right: 2rem;
    padding-bottom: 30px;
    border-right: 1px solid #ddd;
}

.agent-card:nth-child(3n) {
    border-right: none;
}

.agent-name {
    font-size: 1.25rem;
}

.team-members {
    color: #666;
    font-size: 1.25rem;
    line-height: 1.4;
}

.agent-button {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background-color: #58A7AF;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
    transition: background-color 0.3s;
}

.agent-button:hover {
    background-color: #3b7a81;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */

.footer-area {
    background-color: #EBEBEB;
    padding: 2rem;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-logo {
    height: 95px;
}

.footer-text {
    color: #333;
    margin: 0;
    font-size: 1rem;
}

.footer-text a {
    color: #58a7af;
    text-decoration: none;
}

.footer-text a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Media Queries - Mobile Styles
   ========================================================================== */

@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .inner-wrapper {
        margin: 1.5rem auto;
        padding: 1rem;
    }

    /* Hero */
    .hero h1 {
        font-size: 2em;
        line-height: 1.2;
    }

    /* Agency */
    .agency {
        flex-direction: column;
        gap: 1rem;
        font-size: 1.5rem;
    }

    .agency span {
        transform: translateY(-15px);
    }

    .agency img {
        max-height: 8em;
        max-width: 80%;
    }

    .sim-logo {
        max-height: 6em;
    }

    /* Agents Grid */
    .agents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .agent-card {
        max-width: 100%;
        padding-right: 0;
        padding-bottom: 1.5rem;
        border-right: none;
        border-bottom: 1px solid #ddd;
    }

    .agent-card:last-child {
        border-bottom: none;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 0 1rem;
    }

    .footer-logo {
        height: 60px;
    }

    .footer-text {
        text-align: center;
    }
}
