/**
 * Businesses Page Stylesheet - Aberdeen Holdings
 * Dedicated CSS for the Businesses page & hero banner
 */

/* ===== Hero Banner Full-Width Section ===== */
.about-hero-fullwidth {
    position: relative;
    width: 100%;
    min-height: 82vh;
    display: flex;
    align-items: flex-end;
    padding-top: 180px;
    padding-bottom: 85px;
    overflow: hidden;
}

/* Background photo layer (slow zoom-out animation) */
.about-hero-fullwidth::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../assets/images/businesses-banner.jpg');
    background-size: cover;
    background-position: center 48%;
    background-repeat: no-repeat;
    z-index: 0;
    transform: scale(1.15);
    animation: heroZoom 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Vignette & High-Contrast Gradient Overlay */
.about-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(3 10 18 / 18%) 0%, rgba(3, 10, 18, 0.25) 38%, rgba(3, 10, 18, 0.45) 60%, rgb(3 10 18 / 7%) 100%), linear-gradient(90deg, rgb(3 10 18 / 48%) 0%, rgba(3, 10, 18, 0.2) 55%, rgba(3, 10, 18, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    animation: heroOverlayIn 1.4s ease 0.1s forwards;
}

/* Hero Content Container Alignment */
.about-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Banner Content Flex Layout */
.about-banner-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    width: 100%;
}

/* Left Column: Title & Subtitle */
.about-banner-left {
    width: 100%;
    position: relative;
}

.about-banner-title {
    font-size: clamp(34px, 4.5vw, 54px);
    color: #ffffff;
    letter-spacing: 0.5px;
    line-height: 1.12;
    margin: 0 0 16px 0;
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards;
    font-weight: 600;
}

.about-banner-desc {
    font-size: 17px;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    max-width: 680px;
    opacity: 0;
    animation: heroRise 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

/* Accent line under the description */
.about-banner-left::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    margin-top: 24px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.12) 65%, rgba(255, 255, 255, 0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    animation: heroLineGrow 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

/* Right Column: Action Button */
.about-banner-right {
    flex-shrink: 0;
    margin-bottom: 6px;
    opacity: 0;
    animation: heroBtnIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.about-banner-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 36px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--color-primary-dark, #014f6e) 0%, #036891 40%, var(--color-primary-cyan, #1bbfdd) 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(27, 191, 221, 0.5);
    box-shadow: 0 6px 22px rgba(27, 191, 221, 0.38), 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.about-banner-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(27, 191, 221, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, var(--color-primary-cyan, #1bbfdd) 0%, var(--color-primary-dark, #014f6e) 100%);
    border-color: rgba(255, 255, 255, 0.85);
    color: #ffffff;
}

.about-banner-right {
    opacity: 0;
    animation: heroBtnIn 1s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

.about-banner-cta-btn {
    position: relative;
    overflow: hidden;
}

.about-banner-cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%) skewX(-20deg);
    animation: heroBtnShine 3.6s ease-in-out 2.4s infinite;
    pointer-events: none;
}

/* ===== Banner Keyframe Animations ===== */
@keyframes heroZoom {
    from {
        transform: scale(1.15);
    }

    to {
        transform: scale(1);
    }
}

@keyframes heroOverlayIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(34px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes heroBtnIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.92);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes heroLineGrow {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

@keyframes heroBtnShine {
    0% {
        transform: translateX(-120%) skewX(-20deg);
    }

    60%,
    100% {
        transform: translateX(260%) skewX(-20deg);
    }
}

/* ===== Responsive Banner Queries ===== */
@media (max-width: 991px) {
    .about-hero-fullwidth {
        min-height: auto;
        padding-top: 140px;
        padding-bottom: 60px;
    }

    .about-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .about-hero-fullwidth::before,
    .about-banner-overlay,
    .about-banner-title,
    .about-banner-desc,
    .about-banner-left::after,
    .about-banner-right,
    .reveal-on-scroll,
    .highlight-circle-behind,
    .line-icon,
    .company-logo-badge,
    .company-badge-img {
        animation: none !important;
        transition: none !important;
    }

    .about-hero-fullwidth::before {
        transform: none;
    }

    .about-banner-overlay,
    .about-banner-title,
    .about-banner-desc,
    .about-banner-right,
    .reveal-on-scroll,
    .highlight-circle-behind,
    .line-icon,
    .company-logo-badge,
    .company-badge-img {
        opacity: 1 !important;
        transform: none !important;
    }

    .about-banner-left::after {
        transform: scaleX(1);
    }
}

/* ==========================================================================
   Operating Businesses / Company Listing Section
   ========================================================================== */

.businesses-section {
    padding: 75px 0 100px 0;
    background: #ffffff;
    position: relative;
}

/* Company Item Row */
.company-item-row {
    margin-top: 0;
}

.company-item-row:first-of-type {
    margin-top: 0;
}

.company-item-row+.company-item-row {
    margin-top: 90px;
}

/* Left: Image with Floating Logo Badge - Equal Height to Content */
.company-image-col {
    position: relative;
    display: flex;
    flex-direction: column;
}

.company-image-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100%;
    flex: 1 1 100%;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(11, 23, 39, 0.12);
}

.company-image-wrap .company-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
    transform: scale(1);
    will-change: transform;
}

.company-image-wrap:hover .company-image {
    transform: scale(1.07);
}

/* Gradient vignette over photo */
.company-image-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 10, 18, 0.06) 0%, rgba(3, 10, 18, 0.35) 100%);
    pointer-events: none;
}

/* Floating Logo Badge on the image with Zoom-In Animation */
.company-logo-badge {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.65) translateY(8px);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.65s ease,
        box-shadow 0.4s ease;
    will-change: transform, opacity;
}

/* Zoom-in entrance when section scrolls into view */
.reveal-on-scroll.is-visible .company-logo-badge {
    opacity: 1;
    transform: scale(1) translateY(0);
    transition-delay: 0.25s;
}

/* Hover Zoom-in on Logo Badge & Image */
.company-image-wrap:hover .company-logo-badge {
    transform: translateY(-4px) scale(1.08) !important;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    transition-delay: 0s !important;
    transition-duration: 0.35s !important;
}

.company-badge-img {
    max-height: 55px;
    max-width: 150px;
    object-fit: contain;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}


/* Content Column */
.company-content-col {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 30px;
}

.company-content-col.company-content-left {
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 12px;
    padding-right: 30px;
}

.company-content-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.company-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: #014f6e;
    background: rgba(27, 191, 221, 0.12);
    padding: 6px 16px;
    border-radius: 30px;
    width: fit-content;
    margin-bottom: 14px;
    border: 1px solid rgba(27, 191, 221, 0.28);
}

.company-title {
    font-family: 'Archivo', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #063649;
    margin-bottom: 10px;
    line-height: 1.25;
}

.company-desc {
    font-size: 16px;
    line-height: 1.9;
    color: #556980;
    margin-bottom: 26px;
}

/* Key Highlights: Circular Icon Left, Content Right (Matching Screenshot Style) */
.company-highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    margin-bottom: 28px;
    padding: 20px 0;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
}

.company-highlight-item {
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.company-highlight-item:hover {
    transform: translateX(4px);
}

.highlight-item-wide {
    grid-column: 1 / -1;
}

/* Icon container with offset light circle behind */
.highlight-icon-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Light color circle behind the icon, shifted to side (Blue Theme) with Smooth Entrance */
.highlight-circle-behind {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e0f2fe;
    /* soft light pastel blue circle */
    top: 0px;
    left: 0px;
    z-index: 1;
    opacity: 0;
    transform: scale(0.25) translate(-10px, -10px);
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.65s ease,
        background-color 0.3s ease;
    will-change: transform, opacity;
}

/* Clean Line Icon in front (Blue Theme) */
.line-icon {
    position: relative;
    z-index: 2;
    width: 32px;
    height: 32px;
    color: #014f6e;
    /* deep corporate blue stroke */
    stroke: currentColor;
    margin-left: 8px;
    margin-top: 6px;
    display: block;
    opacity: 0;
    transform: scale(0.85);
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.5s ease,
        color 0.3s ease;
    will-change: transform, opacity;
}

/* Staggered Smooth Entrance when Section is Loaded / Visible */
.reveal-on-scroll.is-visible .highlight-circle-behind {
    opacity: 1;
    transform: scale(1) translate(0, 0);
}

.reveal-on-scroll.is-visible .line-icon {
    opacity: 1;
    transform: scale(1);
}

.reveal-on-scroll.is-visible .company-highlight-item:nth-child(1) .highlight-circle-behind {
    transition-delay: 0.35s;
}

.reveal-on-scroll.is-visible .company-highlight-item:nth-child(1) .line-icon {
    transition-delay: 0.45s;
}

.reveal-on-scroll.is-visible .company-highlight-item:nth-child(2) .highlight-circle-behind {
    transition-delay: 0.52s;
}

.reveal-on-scroll.is-visible .company-highlight-item:nth-child(2) .line-icon {
    transition-delay: 0.62s;
}

.reveal-on-scroll.is-visible .company-highlight-item:nth-child(3) .highlight-circle-behind {
    transition-delay: 0.68s;
}

.reveal-on-scroll.is-visible .company-highlight-item:nth-child(3) .line-icon {
    transition-delay: 0.78s;
}

/* Interactive Hover States (overrides entrance delay) */
.company-highlight-item:hover .highlight-circle-behind {
    transform: scale(1.14) !important;
    background: #bae6fd !important;
    transition-delay: 0s !important;
    transition-duration: 0.3s !important;
}

.company-highlight-item:hover .line-icon {
    transform: scale(1.06) translate(1px, 1px) !important;
    color: #0284c7 !important;
    transition-delay: 0s !important;
    transition-duration: 0.3s !important;
}

.highlight-content {
    display: flex;
    flex-direction: column;
}

.highlight-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: #02739e;
    line-height: 1.25;
    margin-bottom: 4px;
}

.highlight-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
}

/* Official Website Button */
.company-action {
    margin-top: 14px;
}

.company-action .homeAbout-btn {
    width: fit-content;
    display: inline-flex;
    font-family: 'Archivo', sans-serif;
    text-decoration: none;
}


/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .company-item-row {
        padding: 24px;
    }

    .company-content-col,
    .company-content-col.company-content-left {
        padding-left: 12px;
        padding-right: 12px;
        margin-top: 32px;
    }

    .company-image-wrap {
        height: 360px;
        min-height: 360px;
    }

    .company-highlights-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .businesses-section {
        padding: 60px 0 80px 0;
    }

    .company-item-row {
        padding: 18px;
        border-radius: 18px;
    }

    .company-item-row+.company-item-row {
        margin-top: 60px;
    }

    .company-image-wrap {
        height: 260px;
        min-height: 260px;
        border-radius: 14px;
    }

    .company-logo-badge {
        top: 14px;
        left: 14px;
        padding: 8px 16px;
        border-radius: 10px;
    }

    .company-badge-img {
        max-height: 36px;
        max-width: 110px;
    }

    .company-title {
        font-size: 24px;
    }
}


.company-item-row {
    scroll-margin-top: 110px;
}