/* Henessy Park - Cisco Partner Program Case Study - Unique Design */

/* ========================================
   HERO SECTION - Split Screen: Content Left, Image Right (Desktop)
   ======================================== */

.henessy-hero {
    position: relative;
    min-height: 80vh;
    padding: 0;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
}

/* Mobile Hero Section - Hidden by default, shown only on mobile */
.henessy-hero-mobile {
    display: none;
}

/* Ensure desktop hero is visible on desktop */
.henessy-hero-desktop {
    display: flex;
}

.henessy-hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    width: 100%;
    position: relative;
}

.henessy-hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    background: linear-gradient(135deg, #19365f 0%, #142a4a 50%, #0d1f35 100%);
    position: relative;
    z-index: 2;
}

.henessy-hero-content {
    max-width: 600px;
    color: #ffffff;
    text-align: left;
}

.henessy-hero-right {
    position: relative;
    overflow: hidden;
    background: #000;
    height: 100%;
}

.henessy-hero-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.henessy-hero-image img {
    width: 100%;
    height: 950px;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.henessy-category {
    display: inline-block;
    background: rgba(251, 194, 19, 0.2);
    color: #fbc213;
    padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 25px;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(251, 194, 19, 0.3);
    backdrop-filter: blur(10px);
}

.henessy-hero-title {
    font-size: clamp(3rem, 8vw, 3rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.henessy-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   CONTENT SECTION
   ======================================== */

.henessy-content {
    padding: 5rem 0;
    background: #ffffff;
}

.henessy-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.henessy-services-section {
    margin-bottom: 4rem;
}

.henessy-section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #19365f;
    margin: 0 0 2rem 0;
    text-align: center;
}

.henessy-services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.henessy-service-item {
    background: linear-gradient(135deg, #19365f 0%, #142a4a 100%);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(25, 54, 95, 0.2);
}

.henessy-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(25, 54, 95, 0.3);
}

.henessy-service-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    display: block;
}

.henessy-description-section {
    max-width: 900px;
    margin: 0 auto;
}

.henessy-description-text {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: #333;
    margin: 0;
    text-align: center;
}

/* ========================================
   GALLERY SECTION - Masonry Layout (Desktop) / Slider (Mobile)
   ======================================== */

.henessy-gallery {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Desktop: Masonry Grid */
.henessy-gallery-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.henessy-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.henessy-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.henessy-gallery-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.henessy-gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.henessy-gallery-item:hover .henessy-gallery-image img {
    transform: scale(1.08);
}

/* Mobile: Slider Layout */
.henessy-gallery-mobile {
    display: none;
}

.henessy-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

.henessy-slider-track {
    display: flex;
    overflow: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.henessy-slider-slide {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    background: #000;
}

.henessy-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.henessy-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.henessy-slider-btn:hover {
    background: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.henessy-slider-btn i {
    font-size: 1.2rem;
    color: #19365f;
}

.henessy-slider-prev {
    left: 1rem;
}

.henessy-slider-next {
    right: 1rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1280px) {
    .henessy-hero-container {
        min-height: 70vh;
    }

    .henessy-hero-left {
        padding: 3rem;
    }

    .henessy-gallery-image {
        height: 350px;
    }
}

@media (max-width: 1024px) {
    .henessy-hero-container {
        min-height: 60vh;
    }

    .henessy-hero-left {
        padding: 2.5rem;
    }

    .henessy-content {
        padding: 4rem 0;
    }

    .henessy-gallery-image {
        height: 320px;
    }
}

@media (max-width: 768px) {
    /* Hide desktop hero on mobile */
    .henessy-hero-desktop {
        display: none;
    }

    /* Show mobile hero on mobile */
    .henessy-hero-mobile {
        display: block;
        position: relative;
        min-height: 70vh;
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        background-image: url('../images/HENESSY/Henessy1.jpeg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .henessy-hero-mobile::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(180deg, rgba(25, 54, 95, 0.4) 0%, rgba(20, 42, 74, 0.5) 100%);
        z-index: 1;
    }

    .henessy-hero-mobile-container {
        position: relative;
        min-height: 70vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem 1.5rem;
        z-index: 2;
    }

    .henessy-hero-mobile-content {
        max-width: 100%;
        color: #ffffff;
        text-align: center;
    }

    .henessy-hero-mobile-content .henessy-category {
        display: inline-block;
        background: rgba(251, 194, 19, 0.2);
        color: #fbc213;
        padding: clamp(0.4rem, 2vw, 0.5rem) clamp(1rem, 4vw, 1.5rem);
        border-radius: 25px;
        font-size: clamp(0.8rem, 2.5vw, 0.9rem);
        font-weight: 600;
        margin-bottom: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        border: 1px solid rgba(251, 194, 19, 0.3);
        backdrop-filter: blur(10px);
    }

    .henessy-hero-mobile-content .henessy-hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        font-weight: 700;
        margin: 0 0 1rem 0;
        line-height: 1.2;
        color: #ffffff;
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }

    .henessy-hero-mobile-content .henessy-hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
        font-weight: 400;
        color: rgba(255, 255, 255, 0.95);
        margin: 0;
        font-style: italic;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    }

    .henessy-content {
        padding: 2rem 0;
    }

    .henessy-services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .henessy-gallery {
        padding: 2rem 0;
    }

    /* Hide desktop layout, show mobile slider */
    .henessy-gallery-desktop {
        display: none;
    }

    .henessy-gallery-mobile {
        display: block;
    }

    .henessy-slider-slide {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .henessy-hero-mobile {
        min-height: 60vh;
    }

    .henessy-hero-mobile-container {
        min-height: 60vh;
        padding: 1.5rem 1rem;
    }

    .henessy-hero-mobile-content .henessy-hero-title {
        font-size: clamp(1.8rem, 8vw, 2rem);
    }

    .henessy-hero-mobile-content .henessy-hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.1rem);
    }

    .henessy-content {
        padding: 2rem 0;
    }

    .henessy-gallery {
        padding: 2rem 0;
    }

    .henessy-slider-slide {
        height: 350px;
    }
}

@media (max-width: 360px) {
    .henessy-hero-mobile {
        min-height: 55vh;
    }

    .henessy-hero-mobile-container {
        min-height: 55vh;
        padding: 1rem;
    }

    .henessy-hero-mobile-content .henessy-hero-title {
        font-size: clamp(1.5rem, 8vw, 1.8rem);
    }

    .henessy-hero-mobile-content .henessy-hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1rem);
    }

    .henessy-slider-slide {
        height: 300px;
    }
}

