/**
 * Our Team Section Block Styles
 * 
 * Colors:
 * - Primary Green: #006a3c
 * - Text Dark: #252525
 * - White: #ffffff
 * 
 * Fonts:
 * - Roboto Bold
 * - Roboto Regular
 */

/* ============================================
   Block Container
   ============================================ */
.our-team-section-block {
    padding: 80px 0;
    background-color: #ffffff;
    width: 100%;
}

.ots-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Section Title & Description
   ============================================ */
.ots-section-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #252525;
    text-align: center;
    margin: 0 0 20px 0;
}

.ots-section-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #252525;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* ============================================
   Team Grid
   ============================================ */
.ots-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

/* ============================================
   Team Card
   ============================================ */
.ots-team-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ots-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Team Member Image
   ============================================ */
.ots-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.ots-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Card Content
   ============================================ */
.ots-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

/* ============================================
   Member Name
   ============================================ */
.ots-member-name {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: #252525;
    margin: 0;
}

/* ============================================
   Job Title
   ============================================ */
.ots-job-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: #006a3c;
    margin: 0 0 8px 0;
}

/* ============================================
   Contact Items
   ============================================ */
.ots-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.ots-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.ots-email,
.ots-phone {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: #252525;
    text-decoration: none;
    word-break: break-word;
    transition: color 0.3s ease;
}

.ots-email:hover,
.ots-phone:hover {
    color: #006a3c;
    text-decoration: underline;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Large Desktop */
@media (min-width: 1400px) {
    .ots-container {
        max-width: var(--theme-normal-container-max-width, 1290px);
        width: var(--theme-container-width, 100%);
    }
}   

/* Desktop - 2 columns */
@media (max-width: 1200px) {
    .ots-container {
        width: var(--theme-container-width, 100%);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .our-team-section-block {
        padding: 60px 0;
    }
    
    .ots-section-title {
        font-size: 40px;
        margin-bottom: 18px;
    }
    
    .ots-section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .ots-team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .ots-member-name {
        font-size: 20px;
    }
    
    .ots-job-title {
        font-size: 15px;
    }
    
    .ots-email,
    .ots-phone {
        font-size: 15px;
    }
}

/* Small Tablets */
@media (max-width: 768px) {
    .our-team-section-block {
        padding: 50px 0;
    }

    .awc-container {
        width: 100%;
        padding: 0 20px;
    }
    
    .ots-section-title {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .ots-section-description {
        font-size: 15px;
        margin-bottom: 35px;
    }
    
    .ots-team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        max-width: 500px;
    }
    
    .ots-team-card {
        padding: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .our-team-section-block {
        padding: 40px 0;
    }
    
    .ots-container {
        padding: 0 15px;
    }
    
    .ots-section-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    
    .ots-section-description {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    .ots-team-grid {
        gap: 20px;
    }
    
    .ots-card-content {
        gap: 10px;
    }
    
    .ots-member-name {
        font-size: 18px;
    }
    
    .ots-job-title {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .ots-contact-item {
        gap: 8px;
    }
    
    .ots-icon {
        width: 18px;
        height: 18px;
    }
    
    .ots-email,
    .ots-phone {
        font-size: 14px;
    }
}

/* ============================================
   Gutenberg Editor Specific Styles
   ============================================ */
.block-editor-block-list__block[data-type="acf/our-team-section"] {
    margin: 20px 0;
}

.block-editor-block-list__block[data-type="acf/our-team-section"] .our-team-section-block {
    padding: 40px 0;
}

/* ============================================
   Alignment Support
   ============================================ */
.our-team-section-block.alignwide .ots-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
}

.our-team-section-block.alignfull {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}


/* ============================================
   Accessibility
   ============================================ */
.ots-team-card:focus-within {
    outline: 2px solid #006a3c;
    outline-offset: 2px;
}

/* Ensure proper contrast for all text */
@media (prefers-contrast: high) {
    .ots-section-description,
    .ots-email,
    .ots-phone {
        color: #000000;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ots-team-card {
        transition: none;
    }
    
    .ots-team-card:hover {
        transform: none;
    }
    
    .ots-email,
    .ots-phone {
        transition: none;
    }
}

