/**
 * Offices Grid V2 Styles
 */

:root {
    --office-v2-orange: #e0650a;
    --office-v2-gray: #58595b;
    --office-v2-light-gray: #666666;
    --office-v2-black: #000000;
}

/* Grid Container - using flexbox for centered incomplete rows */
.offices-grid-v2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 45px;
    padding: 20px 0;
    max-width: 798px; /* 3 cards (236px) + 2 gaps (45px) = 798px */
    margin: 0 auto;
}

/* Office Card */
.office-card-v2 {
    flex: 0 0 236px;
    max-width: 236px;
    background: #ffffff;
    border-radius: 8px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.office-card-v2:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Logo */
.office-card-v2__logo {
    margin-bottom: 15px;
}

.office-card-v2__logo svg {
    width: 45px;
    height: auto;
}

/* City Name */
.office-card-v2__city {
    font-size: 32px;
    font-weight: 400;
    color: var(--office-v2-black);
    margin: 0 0 12px 0;
    padding: 0;
}

/* Address */
.office-card-v2__address {
    margin-bottom: 15px;
    line-height: 1.5;
}

.office-card-v2__street,
.office-card-v2__postal {
    display: block;
    font-size: 18px;
    color: var(--office-v2-black);
}

/* Address Placeholder - when no address is set */
.office-card-v2__address--placeholder {
    height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.office-card-v2__address--placeholder svg {
    flex-shrink: 0;
    stroke: var(--office-v2-gray);
}

.office-card-v2__address--placeholder span {
    font-size: 18px;
    color: var(--office-v2-black);
}

/* Links Container */
.office-card-v2__links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Phone Link */
.office-card-v2__phone,
.office-card-v2__directions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    color: var(--office-v2-orange);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.office-card-v2__phone:hover,
.office-card-v2__directions:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.office-card-v2__phone svg,
.office-card-v2__directions svg {
    flex-shrink: 0;
    stroke: var(--office-v2-orange);
}

/* Tablet */
@media (max-width: 980px) {
    .offices-grid-v2 {
        gap: 20px;
    }

    .office-card-v2 {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
    .offices-grid-v2 {
        gap: 30px;
    }

    .office-card-v2 {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 25px 20px;
        aspect-ratio: 5 / 6; /* 120% height */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .office-card-v2__city {
        font-size: 28px;
    }
}
