/* Offices Hero Section */
.offices-hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
    padding: 4rem 0;
}

.offices-hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    min-width: 100%;
    min-height: 100%;
    background: #000;
}

.offices-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.offices-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.offices-hero__title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.offices-hero__title-line1 {
    color: #ffffff; /* White for visibility on video */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.offices-hero__title-line2 {
    color: #ffffff; /* White for visibility on video */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.offices-hero__description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding: 0 1rem;
}

.offices-hero__dropdown {
    max-width: 300px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.offices-select {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: #374151;
    background: rgba(255, 255, 255, 0.95);
}

.offices-select:focus {
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
    background: #ffffff;
}

/* Offices Content Section */
.offices-content {
    background: #f9fafb;
    padding: 3rem 0;
}

/* Chicago HQ Card */
.office-hq {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.office-hq__image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.office-hq__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.office-hq__content {
    background: #000000;
    color: #ffffff;
    padding: 2rem;
}

.office-hq__title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.office-hq__location {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.office-hq__address {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.office-hq__address p {
    margin: 0;
}

.office-hq__phone {
    margin-bottom: 1.5rem;
}

.office-hq__phone a {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
}

.office-hq__phone a:hover {
    text-decoration: underline;
}

.office-hq__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.office-hq__actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

.office-hq__actions .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #ffffff;
    background: transparent;
}

.office-hq__actions .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.office-hq__actions .btn-light {
    background: #ffffff;
    color: #000000;
    border: 1px solid #ffffff;
}

.office-hq__actions .btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Offices Grid */
.offices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.office-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.office-card__header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.office-card__flag {
    flex-shrink: 0;
    line-height: 1;
}

.flag-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: block;
}

.office-card__country {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.office-card__city {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.office-card__address {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.office-card__address p {
    margin: 0;
}

.office-card__phone {
    margin-bottom: 1rem;
}

.office-card__phone a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b46c1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.office-card__phone a:hover {
    color: #5b21b6;
    text-decoration: underline;
}

.office-card__directions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
    margin-top: auto;
}

.office-card__directions i {
    font-size: 1rem;
}

.office-card__directions:hover {
    color: #6b46c1;
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991.98px) {
    .offices-hero {
        min-height: 75vh;
        padding: 3rem 0 2rem;
    }

    .offices-hero__title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .offices-content {
        padding: 2.5rem 0;
    }

    .offices-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .office-hq__image {
        height: 250px;
    }

    .office-hq__content {
        padding: 1.75rem;
    }
}

@media (max-width: 767.98px) {
    .offices-hero {
        min-height: 70vh;
        padding: 2.5rem 1rem 1.5rem;
    }
    
    .offices-hero__video {
        min-height: 70vh;
    }

    .offices-hero__title {
        font-size: clamp(1.75rem, 8vw, 3rem);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .offices-hero__description {
        font-size: clamp(0.875rem, 2.5vw, 1rem);
        line-height: 1.6;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .offices-hero__dropdown {
        padding: 0 0.5rem;
        max-width: 100%;
    }
    
    .offices-select {
        width: 100%;
        max-width: 100%;
        font-size: 0.95rem;
    }

    .offices-content {
        padding: 2rem 0;
    }

    .offices-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .office-card {
        padding: 1.25rem;
    }

    .office-hq__image {
        height: 200px;
    }

    .office-hq__content {
        padding: 1.5rem;
    }

    .office-hq__actions {
        flex-direction: column;
    }

    .office-hq__actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .offices-hero {
        min-height: 60vh;
        padding: 1.5rem 0.75rem 1rem;
    }
    
    .offices-hero__video {
        min-height: 60vh;
    }

    .offices-hero__title {
        font-size: clamp(1.5rem, 9vw, 2.5rem);
        margin-bottom: 1.25rem;
        gap: 0.25rem;
        padding: 0;
    }
    
    .offices-hero__description {
        font-size: clamp(0.8125rem, 3vw, 0.9375rem);
        line-height: 1.5;
        margin-bottom: 1.75rem;
        padding: 0;
    }
    
    .offices-hero__dropdown {
        padding: 0;
        max-width: 100%;
    }
    
    .offices-select {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }

    .offices-content {
        padding: 1.5rem 0;
    }

    .office-card {
        padding: 1rem;
    }

    .office-card__city {
        font-size: 1.125rem;
    }
}

@media (max-width: 400px) {
    .offices-hero {
        min-height: 55vh;
        padding: 1.25rem 0.5rem 0.75rem;
    }
    
    .offices-hero__video {
        min-height: 55vh;
    }

    .offices-hero__title {
        font-size: clamp(1.25rem, 10vw, 2rem);
        margin-bottom: 1rem;
    }
    
    .offices-hero__description {
        font-size: clamp(0.75rem, 3.5vw, 0.875rem);
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }
    
    .offices-select {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}
