/* =========================================================
   SECTION-2400
   GLOBAL BRANCHES PAGE - PREMIUM DIRECTORY
   UK MARRIAGE BUREAU
========================================================= */

/* =========================================================
   SECTION-2401
   HERO SECTION
========================================================= */

.branches-hero {
    background: linear-gradient(135deg, #0a1a2a 0%, #0d635e 100%);
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.branches-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/assets/images/pattern-map.png') center/cover no-repeat;
    opacity: 0.05;
}

.branches-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.branches-hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.branches-hero-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================
   SECTION-2402
   STATISTICS SECTION - PREMIUM UPGRADE
========================================================= */

.branches-stats {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* --- Premium Stats Grid --- */
.premium-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

/* --- Premium Stat Card --- */
.premium-stat-card {
    background: #0a1a2a;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    border: 1px solid rgba(213, 178, 91, 0.2);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                box-shadow 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.premium-stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(213, 178, 91, 0.5);
}

/* --- Icon --- */
.premium-stat-icon {
    font-size: 2.4rem;
    color: #d5b25b;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* --- Number --- */
.premium-stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 0.1rem;
    line-height: 1.1;
}

/* --- Label --- */
.premium-stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

/* --- Gold line --- */
.premium-stat-line {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #d5b25b, #f4d789);
    border-radius: 2px;
    margin-top: 0.25rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.premium-stat-card:hover .premium-stat-line {
    opacity: 1;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .premium-stats-grid {
        gap: 1.5rem;
    }
    .premium-stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 992px) {
    .premium-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .premium-stat-card {
        min-height: 160px;
        padding: 1.75rem 1rem;
    }
    .premium-stat-number {
        font-size: 2.6rem;
    }
}

@media (max-width: 576px) {
    .premium-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        max-width: 360px;
        margin: 0 auto;
    }
    .premium-stat-card {
        min-height: 140px;
        padding: 1.5rem 1rem;
    }
    .premium-stat-number {
        font-size: 2.4rem;
    }
    .premium-stat-icon {
        font-size: 2rem;
    }
}

/* =========================================================
   SECTION-2499
   END
========================================================= */

/* =========================================================
   SECTION-2403
   NETWORK INTRODUCTION
========================================================= */

.branches-network {
    padding: 4rem 0 2rem;
    background: #f8fafc;
}

.branches-network .section-header {
    text-align: center;
}

.branches-network .section-header h2 {
    color: #0a1a2a;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.branches-network .section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #d5b25b, #f4d789);
    margin: 0 auto 1.25rem;
    border-radius: 2px;
}

.branches-network .section-header p {
    color: #4a5568;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================================
   SECTION-2404
   IMPORTANT NOTICE
========================================================= */

.branches-notice {
    padding: 1.5rem 0 3rem;
    background: #f8fafc;
}

.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: #fff8ec;
    border-left: 4px solid #d5b25b;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.notice-icon {
    font-size: 1.5rem;
    color: #d5b25b;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.notice-content h4 {
    color: #0a1a2a;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.notice-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================================
   SECTION-2405
   BRANCHES GRID
========================================================= */

.branches-grid-section {
    padding: 3rem 0 4rem;
    background: #ffffff;
}

.branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

/* =========================================================
   SECTION-2406
   BRANCH CARD
========================================================= */

.branch-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-card-inner {
    position: relative;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1),
                box-shadow 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.branch-card:hover .branch-card-inner {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.10);
}

.featured-branch {
    border: 1px solid rgba(213, 178, 91, 0.3);
    box-shadow: 0 4px 24px rgba(213, 178, 91, 0.08);
}

.featured-branch:hover {
    border-color: rgba(213, 178, 91, 0.5);
    box-shadow: 0 16px 44px rgba(213, 178, 91, 0.12);
}

/* =========================================================
   SECTION-2407
   TOP LINE
========================================================= */

.branch-top-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d5b25b, #f4d789, #d5b25b);
    opacity: 0.4;
    z-index: 5;
    transition: opacity 0.35s ease;
}

.branch-card:hover .branch-top-line {
    opacity: 1;
}

.featured-branch .branch-top-line {
    height: 4px;
    opacity: 1;
    box-shadow: 0 0 20px rgba(213, 178, 91, 0.15);
}

/* =========================================================
   SECTION-2408
   BADGE
========================================================= */

.branch-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(10, 26, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.featured-branch .branch-badge {
    background: rgba(213, 178, 91, 0.9);
    color: #0a1a2a;
}

/* =========================================================
   SECTION-2409
   COVER IMAGE
========================================================= */

.branch-cover-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.branch-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.branch-card:hover .branch-cover-img {
    transform: scale(1.02);
}

/* =========================================================
   SECTION-2410
   AVAILABILITY BADGE
========================================================= */

.branch-availability-badge {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.branch-availability-badge.available {
    background: rgba(13, 99, 94, 0.9);
    color: #ffffff;
}

.branch-availability-badge.coming-soon {
    background: rgba(213, 178, 91, 0.9);
    color: #0a1a2a;
}

/* =========================================================
   SECTION-2411
   FLAG
========================================================= */

.branch-flag-wrapper {
    position: relative;
    margin-top: -2rem;
    padding: 0 1.5rem;
    z-index: 3;
}

.branch-flag-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

/* =========================================================
   SECTION-2412
   CARD HEADER
========================================================= */

.branch-card-header {
    padding: 0.75rem 1.5rem 0.5rem;
    text-align: center;
}

.branch-card-title {
    margin: 0 0 0.15rem;
    color: #0a1a2a;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.branch-card-subtitle {
    margin: 0;
    color: #6b7a8a;
    font-size: 0.85rem;
    font-weight: 400;
}

/* =========================================================
   SECTION-2413
   CONSULTANT PROFILE
========================================================= */

.branch-profile-box {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1.5rem;
    margin: 0.5rem 1.5rem;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid rgba(213, 178, 91, 0.08);
}

.branch-profile-img-wrap {
    width: 52px;
    height: 52px;
    min-width: 52px;
    overflow: hidden;
    border-radius: 50%;
    border: 2px solid #d5b25b;
}

.profile-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-profile-details {
    flex: 1;
    min-width: 0;
}

.profile-role {
    display: block;
    color: #0d635e;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0.1rem;
}

.profile-name {
    margin: 0;
    color: #0a1a2a;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* =========================================================
   SECTION-2414
   CONTACT INFORMATION
========================================================= */

.branch-info-rows {
    flex: 1;
    padding: 0.75rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-row-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.info-row-icon {
    min-width: 20px;
    color: #d5b25b;
    font-size: 0.8rem;
    text-align: center;
}

.info-row-text {
    color: #4a5a6a;
    font-size: 0.8rem;
    line-height: 1.5;
    word-break: break-word;
}

/* =========================================================
   SECTION-2415
   CTA BUTTON
========================================================= */

.branch-card-footer {
    padding: 0.75rem 1.5rem 1.5rem;
    margin-top: auto;
}

.btn-contact-branch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: #0a1a2a;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.btn-contact-branch:hover {
    background: #0d635e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 99, 94, 0.25);
}

.featured-branch .btn-contact-branch {
    background: linear-gradient(95deg, #d5b25b, #f4d789);
    color: #0a1a2a;
}

.featured-branch .btn-contact-branch:hover {
    box-shadow: 0 6px 20px rgba(213, 178, 91, 0.35);
    transform: translateY(-2px);
}

/* =========================================================
   SECTION-2416
   BOTTOM CTA
========================================================= */

.branches-bottom-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0a1a2a 0%, #0d635e 100%);
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    background: linear-gradient(95deg, #d5b25b, #f4d789);
    color: #0a1a2a;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(213, 178, 91, 0.3);
}

.btn-outline-gold {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(213, 178, 91, 0.4);
    transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.btn-outline-gold:hover {
    border-color: #d5b25b;
    background: rgba(213, 178, 91, 0.1);
    transform: translateY(-2px);
}

/* =========================================================
   SECTION-2417
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 992px) {
    .branches-hero-content h1 {
        font-size: 2.8rem;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .branches-hero {
        padding: 3.5rem 0;
    }
    
    .branches-hero-content h1 {
        font-size: 2.2rem;
    }
    
    .branches-hero-content p {
        font-size: 1rem;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .branches-network .section-header h2 {
        font-size: 2rem;
    }
    
    .notice-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.25rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-gold,
    .btn-outline-gold {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .branches-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .branches-hero {
        padding: 2.5rem 0;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .branch-card-inner {
        border-radius: 16px;
    }
    
    .branch-cover-wrapper {
        height: 140px;
    }
    
    .branch-card-title {
        font-size: 1.2rem;
    }
    
    .branch-profile-box {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .branch-profile-img-wrap {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
}

/* =========================================================
   SECTION-2499
   END
========================================================= */