/* About Fresh Page Styles */

/* Hero Section */
.about-hero {
    position: relative;
    height: 600px;
    background-color: var(--bg-dark);
}

.about-hero .hero-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.about-hero .hero-placeholder {
    background-color: #404040;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.about-hero .hero-content-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 0 3rem 0;
}

.about-hero .hero-info-card {
    background-color: transparent;
    backdrop-filter: none;
    padding: 0;
    max-width: 1280px;
}

.about-hero .hero-info-card h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.about-hero .hero-subtitle {
    color: #ffffff;
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 400;
}

@media (max-width: 767px) {
    .about-hero {
        height: 400px;
    }

    .about-hero .hero-info-card h1 {
        font-size: 1.5rem;
    }
}

/* Company Overview Section */
.company-overview-section {
    padding: 0 0 2rem 0;
}

#company-overview .container {
    padding: 0;
}

.company-overview-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.company-overview-section .section-header h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.company-overview-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

/* ACF Overview Cards Grid */
.overview-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

/* Overview Card - News Card Style Layout */
.overview-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    min-height: 300px;
}

/* ACF Overview Card Background Image */
.overview-card .overview-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ACF Overview Badge */
.overview-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    z-index: 1;
}

/* ACF Overview Card Content positioned over image */
.overview-cards-grid .overview-card-content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-top: auto;
    z-index: 1;
}

.overview-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

/* Overview Card Image Area */
.overview-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* Overview Card Title Overlay */
.overview-card-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
}

.overview-card-title h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Light color text needs dark text */
.overview-card[data-color="var(--brand-light-blue-gray)"] .overview-card-title h3 {
    color: var(--text-primary);
}

.overview-card-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.overview-card:hover .overview-card-image img {
    transform: scale(1.05);
}

/* Placeholder for when no image is set */
.overview-card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    font-size: 4rem;
    color: #9ca3af;
}

/* Overview Card Content Area */
.overview-card-content {
    position: relative;
    /* background-color: #ffffff; */
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.overview-card-content p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Overview Grid */
@media (max-width: 1024px) {
    .overview-grid,
    .overview-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .overview-card-title {
        padding: 1.25rem;
    }

    .overview-card-title h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .overview-grid,
    .overview-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .overview-card-image {
        height: 200px;
    }

    .overview-card-title {
        padding: 1.5rem 1rem;
    }

    .overview-card-title h3 {
        font-size: 1.5rem;
    }

    .overview-card-content {
        padding: 1.5rem;
    }

    .overview-card-content p {
        font-size: 1.125rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .overview-grid,
    .overview-cards-grid {
        grid-template-columns: 1fr;
    }

    .overview-card-image {
        height: 220px;
    }

    .overview-card-title {
        padding: 2rem 1.25rem;
    }

    .overview-card-title h3 {
        font-size: 1.75rem;
    }

    .overview-card-content {
        padding: 1.75rem;
    }

    .overview-card-content p {
        font-size: 1.25rem;
        line-height: 1.7;
    }
}

/* Innovation/Technology Section */
.innovation-technology-section {
    padding: 5rem 0;
    background-color: white;
}

.innovation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .innovation-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.innovation-content h2 {
    font-size: 1.875rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.innovation-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.innovation-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.innovation-features > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: none;
    padding: 0;
    background-color: transparent;
}

.innovation-features > div i {
    color: var(--brand-primary-blue);
    font-size: 1.125rem;
}

.innovation-features > div span {
    color: #404040;
}

.innovation-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-placeholder-main {
    height: 20rem;
    max-height: 20rem;
    background-color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.tech-placeholder-main .placeholder-content {
    text-align: center;
    color: white;
}

.tech-placeholder-main i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tech-placeholder-main p {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

/* Make images fill entire container */
.tech-placeholder-main figure,
.tech-placeholder-main .wp-block-image {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
}

.tech-placeholder-main img,
.tech-placeholder-main figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 20rem;
    flex: 1;
}

.tech-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tech-placeholder-small {
    height: 8rem;
    max-height: 8rem;
    background-color: var(--text-tertiary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.tech-placeholder-small i {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tech-placeholder-small p {
    font-size: 0.75rem;
    margin: 0;
}

/* Make small images fill entire container */
.tech-placeholder-small figure,
.tech-placeholder-small .wp-block-image {
    width: 100%;
    height: 100%;
    margin: 0;
    display: flex;
}

.tech-placeholder-small img,
.tech-placeholder-small figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 8rem;
    flex: 1;
}

/* Market Presence Section */
.market-presence-section {
    padding: 5rem 0;
    background-color: var(--brand-light-blue-gray);
}

.market-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .market-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.market-column h2 {
    font-size: 1.875rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

.presence-map-container {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.map-container {
    width: 100%;
    border: 1px solid #d4d4d4;
}

.client-portfolio {
    margin-top: 2rem;
}

.client-portfolio h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Client Logos Looped Carousel */
.clients-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 2rem;
}

.clients-carousel-track-container {
    overflow: hidden;
    position: relative;
}

.clients-carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content; /* Required for translateX(-50%) to work correctly */
    /* Use CSS variable for dynamic duration - JS calculates based on content width */
    animation: clientsScroll var(--carousel-duration, 30s) linear infinite;
    will-change: transform;
}

/* Only pause on hover for devices with true hover capability (desktop) */
@media (hover: hover) and (pointer: fine) {
    .clients-carousel-track:hover {
        animation-play-state: paused;
    }
}

@keyframes clientsScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.clients-carousel .client-logo {
    flex: 0 0 auto;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.75rem;
    min-height: 80px;
}

/* Consistent logo image sizing for both Portfolio and International sections */
.clients-carousel .client-logo img {
    max-height: 60px;
    min-height: 40px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clients-carousel .client-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 767px) {
    .clients-carousel .client-logo {
        min-width: 120px;
        padding: 0 0.5rem;
    }

    .clients-carousel .client-logo img {
        max-height: 50px;
        min-height: 30px;
        max-width: 120px;
    }
}

.client-logo-placeholder {
    height: 6rem;
    background-color: #e5e5e5;
    border: 1px solid #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.portfolio-link {
    text-align: center;
}

.portfolio-link a {
    display: inline-block;
    background-color: var(--brand-primary-orange);
    color: white;
    padding: 0.75rem 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.portfolio-link a:hover {
    background-color: #c46f3a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 127, 69, 0.3);
}

/* Timeline */
.timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--brand-primary-blue);
}

.timeline-year {
    background-color: var(--brand-primary-blue);
    color: white;
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.timeline h3 {
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.timeline p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* International Section */
.international-section {
    padding: 5rem 0;
    background-color: #fafafa;
}

.international-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.international-section .section-header h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.international-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.international-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 1024px) {
    .international-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.international-column h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 600;
}

/* International Client Logos Slider */
.intl-logos-slider {
    position: relative;
    overflow: hidden;
}

.intl-logos-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.intl-logos-slide.active {
    display: block;
    opacity: 1;
}

.intl-logos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 1.5rem 0;
}

.intl-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    min-height: 80px;
}

.intl-logo-item img {
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Slider Dots for International Clients */
.intl-slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.intl-slider-dots .slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.intl-slider-dots .slider-dot.active {
    background-color: var(--brand-primary-blue);
    width: 12px;
    height: 12px;
}

.intl-slider-dots .slider-dot:hover {
    background-color: #9ca3af;
}

/* Video Container with Aspect Ratio */
.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    overflow: hidden;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container .placeholder-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #9ca3af;
}

.video-container .placeholder-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.video-container .placeholder-content p {
    font-size: 0.875rem;
    margin: 0;
}

/* Ensure both US and International sections use same max-width */
.client-portfolio,
.international-column {
    max-width: 100%;
}

.client-logos-slider-wrapper {
    width: 100%;
}

/* Global Regions */
.global-regions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.global-regions div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
}

.global-regions i {
    color: var(--brand-primary-blue);
}

/* Leadership Section */
.leadership-section {
    padding: 5rem 0;
    background-color: white;
}

.leadership-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.leadership-section .section-header h2 {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.leadership-section .section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

.leadership-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .leadership-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.leader-card {
    background-color: var(--brand-light-blue-gray);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: none;
}

.leader-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.leader-photo {
    position: relative;
    margin-bottom: 1.5rem;
}

.leader-photo img {
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    border: 4px solid #e5e5e5;
    object-fit: cover;
    transition: border-color 0.3s ease;
}

.leader-card:hover .leader-photo img {
    border-color: #a3a3a3;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0);
    transition: background-color 0.3s ease;
}

.leader-card:hover .photo-overlay {
    background-color: rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
    width: 12rem;
    height: 12rem;
    margin: 0 auto;
    background-color: #e5e5e5;
    border: 4px solid #d4d4d4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.photo-placeholder i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.leader-card h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.leader-title {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.leader-bio {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding: 0 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .intl-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .global-regions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .video-container {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 480px) {
    .intl-logos-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Mobile Override for Overview Cards - Loads LAST to override ACF block styles
   ========================================================================== */

@media (max-width: 768px) {
    /* Badge - height dictated by font size + padding */
    .overview-card-title {
        height: auto !important;
        padding: 10px 0 !important;
    }

    /* Badge title */
    .overview-card h3,
    .overview-card-title h3 {
        font-size: 0.8rem !important;
    }

    /* Description text */
    .overview-card p,
    .overview-card-content p {
        font-size: 1.2rem !important;
        line-height: 1.5 !important;
    }

    /* Horizontal padding for cards */
    .overview-grid {
        padding: 0 20px !important;
    }
}
