/* ============================================================
   our-offices.css
   Place in: wwwroot/css/our-offices.css
   ============================================================ */

:root {
    --ts-primary: #036286;
    --ts-primary-dark: #024d69;
    --ts-primary-light: #047aa6;
    --ts-secondary: #8c9199;
    --ts-secondary-light: #b0b5bc;
    --ts-white: #ffffff;
    --ts-off-white: #f5f6f8;
    --ts-text-muted: #8c9199;
    --ts-border: #dde2ec;
}

/* ── HERO ── */
.ts-offices-hero {
    background: linear-gradient(135deg, #024d69 0%, #047aa6 100%);
    padding: 80px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: 'Plus Jakarta Sans';
}

.ts-offices-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.ts-hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans';
}

.ts-offices-hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: var(--ts-white);
    line-height: 1.2;
    margin-bottom: 16px;
    font-family: 'Plus Jakarta Sans';
}

.ts-offices-hero h1 span {
    color: rgba(255, 255, 255, 0.75);
}

.ts-offices-hero p {
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.75);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
    font-family: 'Plus Jakarta Sans';
}

.ts-hero-divider {
    width: 50px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    margin: 24px auto 0;
    border-radius: 2px;
}

/* ── OFFICES SECTION ── */
.ts-offices-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 64px 24px;
}

.ts-offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

/* ── OFFICE CARD ── */
.ts-office-card {
    background: var(--ts-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--ts-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: 'Plus Jakarta Sans';
}

.ts-office-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(3, 98, 134, 0.12);
}

.ts-map-wrap {
    position: relative;
    height: 240px;
    background: #e8ecf3;
}

.ts-map-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.ts-office-number {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--ts-primary);
    color: var(--ts-white);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
    font-family: 'Plus Jakarta Sans';
}

.ts-office-body {
    padding: 24px 24px 28px;
}

.ts-office-body h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--ts-primary-dark);
    margin-bottom: 6px;
    font-family: 'Plus Jakarta Sans';
}

.ts-subtitle {
    font-size: 13px;
    color: var(--ts-primary);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-family: 'Plus Jakarta Sans';
}

.ts-office-divider {
    height: 1px;
    background: var(--ts-border);
    margin-bottom: 20px;
}

/* ── INFO ROWS ── */
.ts-info-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.ts-info-row:last-of-type {
    margin-bottom: 0;
}

.ts-info-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(3, 98, 134, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ts-info-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--ts-primary);
}

.ts-info-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ts-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--ts-secondary);
    margin-bottom: 2px;
    font-family: 'Plus Jakarta Sans';
}

.ts-value {
    font-size: 14px;
    font-weight: 500;
    color: #2f2f2f;
    font-family: 'Plus Jakarta Sans';
}

.ts-value.ts-muted {
    color: var(--ts-secondary);
}

.ts-info-text a.ts-value {
    color: #2f2f2f;
    text-decoration: none;
    transition: color 0.2s;
}

.ts-info-text a.ts-value:hover {
    color: var(--ts-primary);
}

/* ── CARD ACTIONS ── */
.ts-card-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ts-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--ts-primary);
    color: var(--ts-white);
    font-family: 'Plus Jakarta Sans';
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.ts-directions-btn:hover {
    background: var(--ts-primary-dark);
    color: var(--ts-white);
    transform: translateY(-1px);
    text-decoration: none;
}

.ts-directions-btn svg {
    width: 14px;
    height: 14px;
    fill: rgba(255, 255, 255, 0.8);
}

/* ── PLACEHOLDER CARD ── */
.ts-office-card.ts-placeholder .ts-map-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    background: #eef0f5;
}

.ts-office-card.ts-placeholder .ts-map-wrap svg {
    width: 40px;
    height: 40px;
    fill: var(--ts-secondary-light);
}

.ts-office-card.ts-placeholder .ts-map-wrap span {
    font-size: 13px;
    color: var(--ts-secondary-light);
    font-weight: 500;
    font-family: 'Plus Jakarta Sans';
}

/* ── CONTACT BANNER ── */
.ts-contact-banner {
    background: var(--ts-primary-dark);
    padding: 48px 24px;
    text-align: center;
    font-family: 'Plus Jakarta Sans';
}

.ts-contact-banner h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--ts-white);
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans';
}

.ts-contact-banner p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 24px;
}

.ts-contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.ts-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans';
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.ts-btn-gold {
    background: var(--ts-white);
    color: var(--ts-primary);
}

.ts-btn-gold:hover {
    background: #e8f4f8;
    color: var(--ts-primary-dark);
    text-decoration: none;
}

.ts-btn-outline {
    background: transparent;
    color: var(--ts-white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.ts-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--ts-white);
    text-decoration: none;
}

.ts-contact-links svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
    .ts-offices-grid {
        grid-template-columns: 1fr;
    }

    .ts-offices-hero {
        padding: 60px 20px 48px;
    }
}