/*
 * Contact Tabs - Frontend & Editor Shared Styles
 * Replicates the design from code.html faithfully
 */

/* ==============================
   CSS CUSTOM PROPERTIES
   ============================== */
:root {
    --wct-primary: #ea2a33;
    --wct-primary-hover: #c5222a;
    --wct-bg-light: #f8f6f6;
    --wct-bg-dark: #211111;
    --wct-text: #1b0e0e;
    --wct-text-muted: #9ca3af;
    --wct-text-light: #6b7280;
    --wct-border: #f3f4f6;
    --wct-white: #ffffff;
    --wct-sidebar-width: 320px;
    --wct-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --wct-radius: 0.25rem;
    --wct-radius-lg: 0.5rem;
    --wct-radius-xl: 0.75rem;
    --wct-radius-full: 9999px;
}

/* ==============================
   CONTAINER
   ============================== */
.wct-container {
    display: flex;
    flex-direction: row;
    min-height: calc(100vh - 80px);
    font-family: var(--wct-font);
    color: var(--wct-text);
    background: var(--wct-white);
    overflow: hidden;
    position: relative;
}

/* ==============================
   SIDEBAR
   ============================== */
.wct-sidebar {
    width: var(--wct-sidebar-width);
    background: var(--wct-white);
    border-right: 1px solid var(--wct-border);
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.wct-sidebar-header {
    margin-bottom: 40px;
}

.wct-sidebar-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--wct-text);
    line-height: 1.2;
}

.wct-sidebar-subtitle {
    font-size: 14px;
    color: var(--wct-text-muted);
    margin: 0;
    line-height: 1.5;
	text-align:left!important;
}

/* Sidebar Tab Items */
.wct-sidebar-tabs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wct-sidebar-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--wct-border);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.wct-sidebar-item:hover {
    background: #fafafa;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: var(--wct-radius);
}

.wct-sidebar-item-label {
    font-size: 18px;
    font-weight: 500;
    color: #9ca3af;
    transition: color 0.2s ease;
}

.wct-sidebar-item:hover .wct-sidebar-item-label {
    color: var(--wct-text);
}

.wct-sidebar-item-arrow {
    color: #d1d5db;
    opacity: 0;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.wct-sidebar-item:hover .wct-sidebar-item-arrow {
    opacity: 1;
}

/* Active Tab */
.wct-sidebar-item.wct-active {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.wct-sidebar-item.wct-active .wct-sidebar-item-label {
    font-weight: 700;
    color: var(--wct-primary);
    position: relative;
    display: inline-block;
}

.wct-sidebar-item.wct-active .wct-sidebar-item-label::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wct-primary);
}

.wct-sidebar-item.wct-active .wct-sidebar-item-arrow {
    opacity: 1;
    color: var(--wct-primary);
}

/* Sidebar Support Box */
.wct-sidebar-support {
    margin-top: auto;
    padding-top: 32px;
}

.wct-sidebar-support {
    background: rgba(234, 42, 51, 0.05);
    border: 1px solid rgba(234, 42, 51, 0.1);
    border-radius: var(--wct-radius-lg);
    padding: 16px;
}

.wct-support-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--wct-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 4px 0;
}

.wct-support-text {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--wct-text);
}

.wct-support-phone {
    font-size: 14px;
    color: var(--wct-text-light);
    text-decoration: underline;
    display: inline-block;
}

.wct-support-phone:hover {
    color: var(--wct-primary);
}

/* ==============================
   CONTENT AREA
   ============================== */
.wct-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--wct-white);
}

.wct-tab-panel {
    flex: 1;
}

.wct-tab-panel.wct-panel-active {
    display: block;
}

/* ==============================
   CONTENT ELEMENTS (used inside InnerBlocks)
   These classes can be used manually within each tab's content
   ============================== */

/* Office selector bar */
.wct-office-bar {
    background: #f9fafb;
    padding: 24px 32px;
    border-bottom: 1px solid var(--wct-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
}

.wct-office-bar-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #9ca3af;
    margin-right: 16px;
}

.wct-office-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--wct-radius-full);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    background: var(--wct-white);
    color: var(--wct-text-light);
    font-family: var(--wct-font);
}

.wct-office-btn:hover {
    border-color: rgba(234, 42, 51, 0.5);
}

.wct-office-btn.wct-office-active {
    background: var(--wct-primary);
    color: var(--wct-white);
    border-color: var(--wct-primary);
    font-weight: 700;
    box-shadow: 0 4px 6px rgba(234, 42, 51, 0.25);
}



/* Hero Banner */
.wct-hero {
    position: relative;
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.wct-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.8));
}

.wct-hero-content {
    position: absolute;
    bottom: 48px;
    left: 32px;
    z-index: 2;
}

.wct-hero-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.wct-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.wct-badge-primary {
    background: var(--wct-primary);
    color: var(--wct-white);
}

.wct-badge-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    color: var(--wct-white);
}

.wct-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--wct-white);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.wct-hero-title-light {
    font-weight: 300;
    opacity: 0.8;
}

.wct-hero-desc {
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    font-size: 18px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

/* Contact + Map Split */
.wct-detail-row {
    display: flex;
    flex-direction: row;
}

.wct-contact-col {
    width: 450px;
    border-right: 1px solid var(--wct-border);
    flex-shrink: 0;
}

.wct-contact-inner {
    padding: 32px 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.wct-contact-item {
    display: flex;
    gap: 24px;
}

.wct-contact-item svg {
    width: 30px;
    height: 30px;
    color: var(--wct-primary);
    flex-shrink: 0;
}

.wct-contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #9ca3af;
    margin: 0 0 8px 0;
}

.wct-contact-value {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

.wct-contact-phone {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--wct-primary);
    margin: 0;
}

.wct-contact-open {
    font-size: 12px;
    color: var(--wct-text-muted);
    margin: 8px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.wct-contact-open .wct-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
}

.wct-contact-email {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.wct-contact-response {
    font-size: 14px;
    color: #9ca3af;
    margin: 4px 0 0 0;
}

.wct-contact-cta {
    padding-top: 24px;
}

.wct-btn-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    background: #18181b;
    color: var(--wct-white);
    padding: 16px;
    border-radius: var(--wct-radius);
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    font-family: var(--wct-font);
    transition: background 0.2s ease;
}

.wct-btn-dark:hover {
    background: #000;
}



/* Map Area */
.wct-map-col {
    flex: 1;
    position: relative;
    min-height: 500px;
    background: #f9fafb;
    overflow: hidden;
}

.wct-map-bg {
    position: absolute;
    inset: 0;
    filter: grayscale(1) contrast(1.25);
    opacity: 0.4;
    mix-blend-mode: multiply;
    background-size: cover;
    background-position: center;
}

.wct-map-pin-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wct-map-pin-pulse {
    width: 64px;
    height: 64px;
    background: rgba(234, 42, 51, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wct-ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    position: absolute;
}

.wct-map-pin {
    width: 56px;
    height: 56px;
    background: var(--wct-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.wct-map-pin svg {
    color: var(--wct-white);
    width: 24px;
    height: 24px;
}

.wct-map-pin-label {
    background: var(--wct-white);
    padding: 12px 20px;
    border-radius: var(--wct-radius-lg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    margin-top: 16px;
    border: 1px solid var(--wct-border);
    text-align: center;
}

.wct-map-pin-name {
    font-weight: 900;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    margin: 0;
}

.wct-map-pin-sub {
    font-size: 10px;
    color: var(--wct-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin: 2px 0 0 0;
}

/* Coordinates */
.wct-map-coords {
    position: absolute;
    top: 24px;
    left: 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: var(--wct-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wct-map-coords-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--wct-text-muted);
    margin: 0 0 4px 0;
}

.wct-map-coords-value {
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Map Controls */
.wct-map-controls {
    position: absolute;
    bottom: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wct-map-zoom {
    display: flex;
    flex-direction: column;
    background: var(--wct-white);
    border-radius: var(--wct-radius-lg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid var(--wct-border);
}

.wct-map-zoom button {
    padding: 12px;
    background: var(--wct-white);
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    font-family: var(--wct-font);
}

.wct-map-zoom button:first-child {
    border-bottom: 1px solid var(--wct-border);
}

.wct-map-zoom button:hover {
    color: var(--wct-primary);
}

.wct-btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--wct-primary);
    color: var(--wct-white);
    padding: 16px 28px;
    border-radius: var(--wct-radius-full);
    box-shadow: 0 25px 50px rgba(234, 42, 51, 0.3);
    font-weight: 900;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: none;
    cursor: pointer;
    font-family: var(--wct-font);
    transition: transform 0.2s ease;
    margin-top: 8px;
    text-decoration: none;
}

.wct-btn-maps:hover {
    transform: scale(1.05);
    color: var(--wct-white);
}



/* ==============================
   EXPERTS / TEAM SECTION
   ============================== */
.wct-experts-section {
    padding: 32px 48px;
    background: var(--wct-bg-light);
}

.wct-experts-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    border-left: 4px solid var(--wct-primary);
    padding-left: 24px;
}

.wct-experts-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.wct-experts-subtitle {
    font-size: 18px;
    color: var(--wct-text-muted);
    max-width: 448px;
    margin: 0;
}

.wct-experts-link {
    color: var(--wct-primary);
    font-weight: 700;
    border-bottom: 2px solid var(--wct-primary);
    padding-bottom: 4px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: gap 0.2s ease;
    white-space: nowrap;
}

.wct-experts-link:hover {
    gap: 16px;
    color: var(--wct-primary);
}

.wct-experts-link svg {
    width: 14px;
    height: 14px;
}

/* Expert Cards Grid */
.wct-experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
}

.wct-expert-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.wct-expert-card:hover .wct-expert-avatar-ring {
    transform: scale(1.1);
}

.wct-expert-card:hover .wct-expert-avatar-border {
    border-color: var(--wct-primary);
}

.wct-expert-card:hover .wct-expert-img {
    filter: grayscale(0);
}

.wct-expert-avatar {
    position: relative;
    width: 96px;
    height: 96px;
}

.wct-expert-avatar-ring {
    position: absolute;
    inset: 0;
    background: rgba(234, 42, 51, 0.2);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.wct-expert-avatar-border {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #e5e7eb;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    position: relative;
    z-index: 10;
}

.wct-expert-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.5s ease;
}

.wct-expert-name {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: -0.02em;
    margin: 0 0 4px 0;
}

.wct-expert-role {
    font-size: 11px;
    color: var(--wct-primary);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 12px 0;
}

.wct-expert-bio {
    font-size: 14px;
    color: var(--wct-text-muted);
    line-height: 1.6;
    font-weight: 500;
    margin: 0;
}

/* ==============================
   ANIMATIONS
   ============================== */
@keyframes wct-ping {

    75%,
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ==============================
   RESPONSIVE — matches original design behavior
   On mobile/tablet: sidebar stacks above content, no toggle button
   ============================== */
@media (max-width: 1024px) {
    .wct-container {
        flex-direction: column;
        min-height: auto;
    }

    .wct-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--wct-border);
        padding: 32px;
    }

    .wct-content-area {
        min-height: auto;
    }

    .wct-hero {
        height: 300px;
    }

    .wct-hero-title {
        font-size: 36px;
    }

    .wct-hero-desc {
        font-size: 15px;
    }

    .wct-detail-row {
        flex-direction: column;
    }

    .wct-contact-col {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--wct-border);
    }

    .wct-contact-inner {
        padding: 24px;
        gap: 32px;
    }

    .wct-map-col {
        min-height: 400px;
    }

    .wct-experts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wct-experts-section {
        padding: 32px 24px;
    }

    .wct-experts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .wct-sidebar {
        padding: 24px;
    }

    .wct-sidebar-header {
        margin-bottom: 24px;
    }

    .wct-sidebar-title {
        font-size: 20px;
    }

    .wct-office-bar {
        padding: 16px 20px;
        gap: 8px;
    }

    .wct-office-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .wct-experts-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wct-experts-title {
        font-size: 24px;
    }

    .wct-hero-content {
        left: 20px;
        bottom: 32px;
    }

    .wct-hero-title {
        font-size: 28px;
    }

    .wct-map-controls {
        right: 16px;
        bottom: 16px;
    }

    .wct-btn-maps {
        padding: 12px 20px;
        font-size: 10px;
    }

    .wct-contact-inner {
        padding: 20px;
        gap: 24px;
    }

    .wct-contact-phone {
        font-size: 20px;
    }
}

/* ==============================
   CUSTOM SCROLLBAR
   ============================== */
.wct-sidebar::-webkit-scrollbar {
    width: 4px;
}

.wct-sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.wct-sidebar::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 10px;
}