/* ===== About Us Page Styles ===== */

/* General */
.about-us-page {
    font-family: var(--font-sans, Arial, sans-serif);
    color: #222;
    line-height: 1.6;
}

.about-us-page h1,
.about-us-page h2,
.about-us-page h3 {
    margin-bottom: 0.5em;
}

.about-us-page p {
    margin-bottom: 1em;
}

/* Containers */
.about-us-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Section */
.about-header img {
    width: 100%;
}

.about-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
}

.about-company {
    border-bottom: 1px #000 solid;
    padding: 75px 0;
}

/* About Company Section */
.about-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 60px 0;
}

.about-image img {
    max-width: 100%;
    border-radius: 12px;
}

.about-contact{
    
    padding: 60px 0;
    border-bottom: 1px #000 solid ;
}

.about-contact h1 {
    font-size: 4.5rem;
    font-weight: 700;
}

/* Unified Values + Team Section */
.about-values-team {
    background: linear-gradient(to bottom, #f9f9f9, #eef2f7);
    padding: 80px 0;
    background-size: cover;
    border-top: 1px #000 solid;
    border-bottom: 1px #000 solid   ;
}

/* Values Section */
.values-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
}

.value-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.value-items {
    display: flex;
    gap: 30px;
}

.value-item {
    background: #1e3a8a !important;
    color: #fff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.value-item img {
    margin-bottom: 15px;
    max-width: 200px;
    width: 200px;
    max-height: 200px;
    height: 200px;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.our-services-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
}

.services-btn {
    background-color: #1e3a8a;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 40px;
    width: 250px;
    text-align: center;
}

/* Team Section */
.team-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.team-title-quote {
    text-align: right;
}

.team-title-quote h2 {
    font-size: 2rem;
    margin: 0 0 10px 0;
}

.team-quote {
    font-style: italic;
    max-width: 400px;
    margin: 0;
    color: #555;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.team-photo {
    background: #1e3a8a;
    border-radius: 87px;
    padding: 10px;
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.team-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ddd;
}

.team-info h3 {
    margin: 0 0 5px;
    font-size: 1.25rem;
}

.team-info .role {
    display: block;
    font-weight: bold;
    color: #555;
    margin-bottom: 8px;
}


/* Contact Section */
.about-contact form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.about-contact input,
.about-contact textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

.about-contact button {
    padding: 10px 20px;
    background: #1e3a8a;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 6px;
}

.success-msg {
    color: green;
    font-weight: bold;
    margin-bottom: 15px;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 15px;
}


/* Responsive */
@media (max-width: 768px) {
    .about-two-column {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Mobile-Friendly Adjustments ===== */
@media (max-width: 768px) {

    .services-btn {

        font-size: 1rem;
        width: 150px;
    }

    /* General spacing */
    .about-us-page .container {
        padding: 0 15px;
    }

    /* Header */
    .about-header h1 {
        font-size: 1.8rem;
        text-align: center;
    }

    /* Company Section */
    .about-two-column {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0;
    }


    .about-contact h1 {
        font-size: 2rem;
        text-align: center;
    }

    /* Values Section */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }

    .value-heading {
        text-align: center;
    }

    .value-item {
        padding: 20px 15px;
    }

    /* Team Section */
    .team-header {
        justify-content: center;
        text-align: center;
    }

    .team-title-quote {
        text-align: center;
    }

    .team-title-quote h2 {
        font-size: 1.6rem;
    }

    .team-quote {
        max-width: 100%;
        font-size: 0.95rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-member {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .team-photo {
        margin-bottom: 15px;
        width: 100px;
        height: 100px;
        padding: 5px;
    }

    .team-photo img {
        width: 90px;
        height: 90px;
    }

    /* Contact Form */
    .about-contact form {
        max-width: 100%;
        padding: 0 10px;
    }

    .about-contact button {
        width: 100%;
        padding: 12px;
    }
}

/* Extra small screens (phones under 480px) */
@media (max-width: 480px) {
    .about-header h1 {
        font-size: 1.5rem;
    }

    .team-title-quote h2 {
        font-size: 1.4rem;
    }

    .value-item h3 {
        font-size: 1.2rem;
    }

    .team-info h3 {
        font-size: 1.1rem;
    }
}


@media (max-width: 768px) {

    .about-image {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .about-image img {
        max-width: 50%;
        border-radius: 12px;
    }

    .about-text {
        text-align: center;
    }

    .values-grid {
        display: grid;
        grid-template-columns: repeat(1fr);
        gap: 30px;
        margin-bottom: 60px;
    }

    .value-items {
        gap: 10px;
    }

    .value-item {
        padding: 15px 10px;
        /* smaller box */
        max-width: 115px;
        width: 115px;
    }

    .value-item img {
        max-width: 75px;
        max-height: 75px;
        /* smaller image */
        margin-bottom: 10px;
    }

    .value-item h3 {
        font-size: 1rem;
        /* slightly smaller heading */
    }

    .value-item p {
        font-size: 0.7rem;
        /* smaller paragraph text */
    }
}


.amc-values-grid .value-item{
  background: #313e93 !important;
}

.scanbake-values-grid .value-item{
  background: #ffb846 !important;
}

.compass-values-grid .value-item{
  background: #ff914d !important;
}