/* ========================================
   TEAM PAGE STYLES
   Backroads Traveler - Our Team
======================================== */

/* ===== TEAM HERO SECTION ===== */
.team-hero {
    height: 100vh;
    background-image: url('../images/ourteam-hero-lnd.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 120px 20px 80px;
}

.team-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.team-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-eyebrow {
    display: inline-block;
    color: var(--primary-coral);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    background: rgba(217, 119, 87, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(217, 119, 87, 0.3);
}

.team-hero .hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 25px;
    line-height: 1.2;
}

.team-hero .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-decoration {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 87, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    bottom: -200px;
    right: -100px;
    z-index: 0;
    animation: floatSlow 20s infinite ease-in-out;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -30px) scale(1.1); }
}

/* ===== TEAM INTRODUCTION ===== */
.team-intro {
    padding: 80px 0 40px 0;
    background: #e9ecef;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content .section-title {
    font-size: 2.5rem;
    color: var(--primary-navy);
    margin-bottom: 25px;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--medium-gray);
    line-height: 1.8;
    margin-bottom: 50px;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.stat-box {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(217, 119, 87, 0.2);
}

.stat-box i {
    font-size: 2.5rem;
    color: var(--primary-coral);
    margin-bottom: 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== INTERACTIVE TEAM PILLS SECTION ===== */
.team-members-interactive {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #e9ecef;
    padding-top: 20px;
}

.team-pills-container {
    display: flex;
    height: 100%;
    width: 100%;
    gap: 10px;
    padding: 20px;
}

.team-pill {
    position: relative;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    width: 100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.team-pill.active {
    width: calc(100% - 440px);
    cursor: default;
}

.pill-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.6s ease, opacity 0.6s ease, visibility 0.6s ease;
}

.team-pill:hover .pill-background {
    transform: scale(1.05);
}

.team-pill.active .pill-background {
    opacity: 0;
    visibility: hidden;
}

.team-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    z-index: 1;
    transition: opacity 0.6s ease;
}

.team-pill.active::before {
    opacity: 0;
}

/* Collapsed State */
.pill-collapsed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.team-pill.active .pill-collapsed {
    opacity: 0;
    pointer-events: none;
}

.pill-name {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Expanded State - Split Layout */
.pill-expanded {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
    overflow: hidden;
    display: grid;
    grid-template-columns: 45% 55%;
}

.team-pill.active .pill-expanded {
    opacity: 1;
    pointer-events: auto;
}

/* Left side - Image */
.expanded-image {
    grid-column: 1;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    position: relative;
}

.expanded-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
}

/* Right side - Content area */
.expanded-content {
    grid-column: 2;
    padding: 50px 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: var(--primary-navy);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    position: relative;
}

.member-badge {
    position: absolute;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary-coral) 0%, #c5653f 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 20px rgba(217, 119, 87, 0.4);
}

.member-badge i {
    font-size: 14px;
}

.member-header {
    margin-bottom: 15px;
}

.member-role {
    display: inline-block;
    color: var(--primary-coral);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 8px;
    background: rgba(217, 119, 87, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    width: fit-content;
}

.member-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 12px;
    line-height: 1.2;
}

.member-tagline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--medium-gray);
    line-height: 1.5;
    border-left: 3px solid var(--primary-coral);
    padding-left: 15px;
    margin-bottom: 20px;
}

.member-bio {
    margin-bottom: 20px;
}

.member-bio p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

.member-specialties {
    margin-bottom: 20px;
}

.member-specialties h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.specialty-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.specialty-tags .tag {
    background: white;
    color: var(--primary-navy);
    padding: 6px 12px;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(30, 58, 95, 0.1);
    transition: all 0.3s ease;
}

.specialty-tags .tag i {
    color: var(--primary-coral);
    font-size: 12px;
}

.specialty-tags .tag:hover {
    background: var(--primary-coral);
    color: white;
    border-color: var(--primary-coral);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 87, 0.4);
}

.specialty-tags .tag:hover i {
    color: white;
}

.member-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary-team {
    background: linear-gradient(135deg, var(--primary-coral) 0%, #c5653f 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(217, 119, 87, 0.3);
}

.btn-primary-team:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(217, 119, 87, 0.5);
}

.btn-primary-team i {
    transition: transform 0.3s ease;
}

.btn-primary-team:hover i {
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 38px;
    height: 38px;
    background: white;
    border: 2px solid rgba(30, 58, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-navy);
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--primary-coral);
    border-color: var(--primary-coral);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(217, 119, 87, 0.4);
}

/* Scrollbar for content area */
.expanded-content::-webkit-scrollbar {
    width: 6px;
}

.expanded-content::-webkit-scrollbar-track {
    background: rgba(30, 58, 95, 0.05);
    border-radius: 10px;
}

.expanded-content::-webkit-scrollbar-thumb {
    background: rgba(217, 119, 87, 0.4);
    border-radius: 10px;
}

.expanded-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-coral);
}

/* ===== TEAM CTA SECTION ===== */
.cta-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 0;
    object-fit: cover;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.4) 0%, 
        rgba(0, 0, 0, 0.2) 50%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 1;
}

.team-cta {
    background: linear-gradient(135deg, #1a1d23 0%, #2d3748 100%);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.team-cta .cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.team-cta h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.team-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.team-cta .btn {
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.team-cta .btn-primary {
    background: var(--primary-coral);
    color: white;
    border: 2px solid var(--primary-coral);
}

.team-cta .btn-primary:hover {
    background: #c5653f;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(217, 119, 87, 0.4);
}

.team-cta .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.team-cta .btn-secondary:hover {
    background: white;
    color: var(--primary-navy);
}

/* ===== WHY CHOOSE BACKROADS SECTION ===== */
.why-choose {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.why-choose-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    color: var(--primary-coral);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    background: rgba(217, 119, 87, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    border: 1px solid rgba(217, 119, 87, 0.2);
}

.why-choose-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 50px;
    line-height: 1.3;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.why-choose-text {
    text-align: left;
}

.intro-paragraph {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--dark-gray);
    margin-bottom: 40px;
    text-align: center;
}

.text-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.text-column p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--medium-gray);
}

.closing-statement {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-gray);
    text-align: center;
    font-style: italic;
    padding: 30px 0;
    border-top: 2px solid rgba(217, 119, 87, 0.2);
    border-bottom: 2px solid rgba(217, 119, 87, 0.2);
    margin-top: 20px;
}

.closing-statement strong {
    color: var(--primary-coral);
    font-weight: 700;
    font-style: normal;
}

/* Three Pillars within Why Choose */
.pillars-section {
    margin-top: 80px;
}

.pillars-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--primary-navy);
    text-align: center;
    margin-bottom: 50px;
    line-height: 1.4;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.pillar-card {
    background: white;
    border: 2px solid rgba(30, 58, 95, 0.08);
    border-radius: 20px;
    padding: 35px 25px;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(217, 119, 87, 0.3);
    box-shadow: 0 15px 40px rgba(217, 119, 87, 0.15);
}

.pillar-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 3.5rem;
    font-weight: 800;
    color: rgba(217, 119, 87, 0.1);
    line-height: 1;
}

.pillar-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary-coral) 0%, #c5653f 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(217, 119, 87, 0.25);
}

.pillar-icon i {
    font-size: 1.75rem;
    color: white;
}

.pillar-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-navy);
    margin-bottom: 15px;
    line-height: 1.3;
}

.pillar-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--medium-gray);
}

.boutique-statement {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-gray);
    text-align: center;
    max-width: 750px;
    margin: 0 auto;
    padding: 35px 0;
    border-top: 2px solid rgba(217, 119, 87, 0.2);
}

.boutique-statement strong {
    color: var(--primary-coral);
    font-weight: 700;
}

/* Update mobile styles */
@media (max-width: 1024px) {
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .pillars-section {
        margin-top: 50px;
    }
    
    .pillars-subtitle {
        font-size: 1.4rem;
        margin-bottom: 35px;
    }
    
    .pillar-card {
        padding: 30px 20px;
    }
    
    .pillar-number {
        font-size: 2.8rem;
        top: 15px;
        right: 15px;
    }
    
    .pillar-icon {
        width: 55px;
        height: 55px;
        margin-bottom: 18px;
    }
    
    .pillar-icon i {
        font-size: 1.5rem;
    }
    
    .pillar-heading {
        font-size: 1.2rem;
        margin-bottom: 12px;
    }
    
    .pillar-text {
        font-size: 0.9rem;
    }
    
    .boutique-statement {
        font-size: 1rem;
        padding: 25px 0;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .why-choose {
        padding: 60px 0;
    }
    
    .why-choose-title {
        font-size: 1.75rem;
        margin-bottom: 30px;
    }
    
    .intro-paragraph {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .text-columns {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 30px;
    }
    
    .text-column p {
        font-size: 0.95rem;
    }
    
    .closing-statement {
        font-size: 1rem;
        padding: 20px 0;
    }
}

/* ===== MOBILE RESPONSIVE ===== */

@media (max-width: 1024px) {
    .intro-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .team-pills-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .team-pill {
        width: 100%;
        height: 80px;
        border-radius: 20px;
    }
    
    .team-pill.active {
        width: 100%;
        height: calc(100vh - 380px);
    }
    
    .pill-name {
        writing-mode: horizontal-tb;
        text-orientation: upright;
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
    
    .pill-expanded {
        grid-template-columns: 1fr;
        grid-template-rows: 200px 1fr;
    }
    
    .expanded-image {
        grid-column: 1;
        grid-row: 1;
    }
    
    .expanded-content {
        grid-column: 1;
        grid-row: 2;
        padding: 40px 30px;
    }
    
    .member-name {
        font-size: 2.2rem;
    }
    
    .member-tagline {
        font-size: 1rem;
    }
    
    .member-bio p {
        font-size: 0.9rem;
    }
    
    .specialty-tags .tag {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
}

@media (max-width: 768px) {
    .team-hero {
        min-height: 50vh;
        padding: 100px 20px 60px;
    }
    
    .team-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .team-hero .hero-subtitle {
        font-size: 1rem;
    }
    
    .team-intro {
        padding: 60px 0;
    }
    
    .intro-content .section-title {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .team-pill {
        height: 60px;
    }
    
    .team-pill.active {
        height: calc(100vh - 300px);
    }
    
    .pill-expanded {
        grid-template-rows: 150px 1fr;
    }
    
    .expanded-content {
        padding: 30px 20px;
    }
    
    .member-name {
        font-size: 1.8rem;
    }
    
    .member-badge {
        top: 20px;
        right: 20px;
        font-size: 10px;
        padding: 6px 14px;
    }
    
    .member-tagline {
        font-size: 1rem;
    }
    
    .specialty-tags {
        gap: 8px;
    }
    
    .specialty-tags .tag {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .member-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-primary-team {
        width: 100%;
        justify-content: center;
    }
    
    .social-links {
        width: 100%;
        justify-content: center;
    }
    
    .team-cta {
        padding: 60px 0;
    }
    
    .team-cta h2 {
        font-size: 2rem;
    }
    
    .team-cta p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .team-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .team-hero .hero-title {
        font-size: 2rem;
    }
    
    .hero-eyebrow {
        font-size: 12px;
        padding: 6px 15px;
    }
    
    .intro-content .section-title {
        font-size: 1.75rem;
    }
    
    .member-name {
        font-size: 1.8rem;
    }
    
    .member-tagline {
        font-size: 0.95rem;
        padding-left: 15px;
    }
    
    .member-bio p {
        font-size: 0.95rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .stat-box {
        padding: 25px 15px;
    }
    
    .stat-box i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .team-cta h2 {
        font-size: 1.75rem;
    }
}
