/* ASCEND VALET TEAM PAGE - PREMIUM STYLING */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Luxury Gold Palette - Matching Main Site */
    --primary-gold: #907D4E;
    --highlight-gold: #C3A96B;
    --shadow-gold: #594D3A;
    --luxury-gold: #D4AF37;
    --light-gold: #F4E4C1;
    --matte-gold: #B8976F;
    
    /* Neutral Colors */
    --charcoal: #2C3E50;
    --slate-grey: #5D6D7E;
    --matte-grey: #7F8C8D;
    --light-grey: #ECF0F1;
    --white: #FFFFFF;
    
    /* Section Backgrounds */
    --section-alt: #F8F9FA;
    
    /* Premium Depth System */
    --elevation-1: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(144, 125, 78, 0.06);
    --elevation-2: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(144, 125, 78, 0.1);
    --elevation-3: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(144, 125, 78, 0.12);
    --elevation-4: 0 16px 48px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(144, 125, 78, 0.15);
    --elevation-5: 0 24px 64px rgba(0, 0, 0, 0.20), 0 12px 32px rgba(144, 125, 78, 0.18);
    
    /* Spacing System */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: #000000 !important;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* GLOBAL TEXTURE OVERLAY */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="300" height="300" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #000000 !important;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-md);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    color: var(--primary-gold);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-sm);
}

p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #000000 !important;
    margin: 0 0 var(--space-md) 0;
    opacity: 1 !important;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* HEADER - EXACT MATCH TO MAIN SITE */
header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(195, 169, 107, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-gold);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-gold);
}

.btn-consultation {
    padding: 12px 24px;
    background: var(--primary-gold);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-consultation:hover {
    background: var(--shadow-gold);
    transform: translateY(-2px);
    box-shadow: var(--elevation-3);
}

/* HERO SECTION */
.team-hero {
    position: relative;
    padding: 120px 0 80px 0;
    background: linear-gradient(135deg, var(--white) 0%, var(--section-alt) 50%, var(--white) 100%);
    text-align: center;
    overflow: hidden;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(144, 125, 78, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.team-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.team-hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.team-hero-tagline {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--primary-gold);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.team-hero-description {
    font-size: 1.125rem;
    color: #000000 !important;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* TEAM SECTIONS */
.team-section {
    padding: 80px 0;
}

.team-section.alt-bg {
    background: var(--section-alt);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #000000 !important;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #000000 !important;
    margin-bottom: var(--space-3xl);
}

/* TEAM GRID LAYOUTS */
.team-grid-leadership {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-grid-executive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.team-grid-management {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* TEAM MEMBER CARD */
.team-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--elevation-2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    opacity: 0;
    transform: translateY(40px);
}

.team-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.team-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--elevation-5);
}

/* IMAGE CONTAINER */
.team-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-grey), var(--section-alt));
}

.team-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    transition: all 0.5s ease;
}

.team-card:hover .team-card-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* GOLD ACCENT BAR */
.team-card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-gold), var(--luxury-gold), var(--highlight-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-card:hover .team-card-accent {
    transform: scaleX(1);
}

/* CONTENT SECTION */
.team-card-content {
    padding: 30px;
}

.team-card-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000 !important;
    margin-bottom: var(--space-xs);
    opacity: 1 !important;
}

.team-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-gold);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-card-subtitle {
    color: var(--luxury-gold);
    font-size: 0.9rem;
    font-weight: 600;
    font-style: italic;
    margin-bottom: var(--space-md);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.95;
    background: linear-gradient(135deg, var(--primary-gold), var(--luxury-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-card-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #000000 !important;
    margin-bottom: var(--space-md);
}

.team-card-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: #000000 !important;
    padding: var(--space-md);
    background: var(--section-alt);
    border-left: 3px solid var(--primary-gold);
    border-radius: 4px;
    margin-top: var(--space-md);
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
}

.team-card:hover .team-card-quote {
    opacity: 1;
    transform: translateX(0);
}


/* FOOTER - BLACK BACKGROUND WITH WHITE TEXT */
footer {
    background: #000000;
    color: #FFFFFF !important;
    padding: 40px 0 30px;
    text-align: center;
    border-top: 1px solid rgba(195, 169, 107, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.footer-copyright {
    color: #FFFFFF !important;
    font-size: 0.95rem;
    margin-bottom: 12px;
    opacity: 1 !important;
}

.footer-buildai {
    font-size: 0.9rem;
    color: #FFFFFF !important;
    opacity: 1 !important;
}

.footer-buildai a {
    color: #FF6B35 !important;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-buildai a:hover {
    color: #FF8C5A !important;
    text-decoration: underline;
}

/* ANIMATION STAGGER */
.team-card:nth-child(1) { transition-delay: 0.1s; }
.team-card:nth-child(2) { transition-delay: 0.2s; }
.team-card:nth-child(3) { transition-delay: 0.3s; }
.team-card:nth-child(4) { transition-delay: 0.4s; }
.team-card:nth-child(5) { transition-delay: 0.5s; }
.team-card:nth-child(6) { transition-delay: 0.6s; }

/* RESPONSIVE BREAKPOINTS */

/* Tablet (768px-1199px) */
@media (max-width: 1199px) {
    .team-grid-leadership {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .team-grid-management {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}


/* Mobile (<768px) */
@media (max-width: 767px) {
    .team-hero {
        padding: 80px 0 60px 0;
    }

    .team-section {
        padding: 60px 0;
    }

    .team-grid-leadership,
    .team-grid-executive {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .team-grid-management {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* IMPROVED MOBILE CARD LAYOUT - More thick and boxed appearance */
    .team-card {
        /* Use flex layout instead of image padding-bottom for better control */
        display: flex;
        flex-direction: row;
        align-items: stretch;
        height: 240px;
        overflow: hidden;
    }
    
    .team-card-image {
        /* Fixed width instead of full width for more compact appearance */
        width: 120px;
        min-width: 120px;
        padding-bottom: 0;
        position: relative;
    }
    
    .team-card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .team-card-content {
        flex: 1;
        padding: 16px;
        /* Make entire content area scrollable for consistency */
        overflow-y: auto;
        overflow-x: hidden;
        scroll-behavior: smooth;
        /* Custom scrollbar styling */
        scrollbar-width: thin;
        scrollbar-color: var(--primary-gold) rgba(0, 0, 0, 0.1);
    }
    
    /* Webkit scrollbar styling for content */
    .team-card-content::-webkit-scrollbar {
        width: 4px;
    }
    
    .team-card-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.05);
        border-radius: 2px;
    }
    
    .team-card-content::-webkit-scrollbar-thumb {
        background: var(--primary-gold);
        border-radius: 2px;
    }
    
    .team-card-content::-webkit-scrollbar-thumb:hover {
        background: var(--shadow-gold);
    }
    
    .team-card-name {
        font-size: 1.1rem;
        margin-bottom: 4px;
    }

    .team-card-title {
        font-size: 0.8rem;
        margin-bottom: 8px;
    }
    
    .team-card-subtitle {
        font-size: 0.75rem;
        margin-bottom: 8px;
    }

    .team-card-bio {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 8px;
    }
    
    .team-card-quote {
        font-size: 0.8rem;
        padding: 8px;
        margin-top: 8px;
        /* Make quotes always visible on mobile (no hover on touch devices) */
        opacity: 1 !important;
        transform: translateX(0) !important;
    }

    nav {
        flex-wrap: wrap;
        padding: 8px 0;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
        font-size: 1.2rem;
    }
    
    .nav-links {
        width: 100%;
        display: flex !important;
        flex-direction: row;
        justify-content: space-around;
        gap: 0;
        padding: 0;
    }
    
    .nav-links li {
        flex: 1;
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 10px 4px;
        font-size: 0.75rem;
        color: var(--charcoal) !important;
        white-space: nowrap;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .team-cta {
        padding: 60px 0;
    }
}
