/* ===================================
   HAPPY PLACE PAGE STYLES
   Organized by Element IDs for Easy Editing
   =================================== */

/* Mobile: Force all elements to be visible immediately */
@media (max-width: 767px) {
    /* Hero content - must be visible at page load */
    #hp-hero-content,
    #hp-hero-content.gsap-fade-up {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    /* Intro text - must be visible immediately */
    #hp-intro-text,
    #hp-intro-text.gsap-fade-up {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    /* Gallery section and all children - FORCE VISIBLE */
    #hp-gallery,
    #hp-gallery-container,
    #hp-gallery-grid,
    .hp-gallery-item,
    .hp-gallery-item img {
        opacity: 1 !important;
        transform: none !important;
        scale: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    #hp-gallery-grid {
        display: grid !important;
    }
}

/* ===================================
   HERO SECTION
   =================================== */

/* #hp-hero */
#hp-hero {
    background-color: #13001A;
}

/* #hp-hero-container */
#hp-hero-container {
    position: relative;
    overflow: hidden;
}

@media (max-width: 767px) {
    #hp-hero-container {
        height: 450px !important;
        padding: 20px !important;
        justify-content: flex-end !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hp-hero-container {
        height: 500px !important;
        padding: 40px !important;
    }
}

@media (min-width: 1024px) {
    #hp-hero-container {
        height: 550px !important;
        padding: 60px !important;
    }
}

@media (min-width: 1440px) {
    #hp-hero-container {
       
        margin-left: auto;
        margin-right: auto;
    }
}

/* #hp-hero-bg */
#hp-hero-bg {
    z-index: 0;
    background-image: linear-gradient(-88deg, rgba(0, 0, 0, 0) 48%, rgb(0 0 0 / 81%) 86%), url(../images/happy-place/hp-hero-bg-73ad59.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 767px) {
    #hp-hero-bg {
        background-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 70%), url('../images/happy-place/hp-hero-bg-73ad59.jpg');
    }
}

#hp-hero-bg-mobile {
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%), url(../images/happy-place/happy-place-bg-mobile.jpg);
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: absolute;
    inset: 0;
    z-index: 1;
    transform: scale(1.2);
}

/* #hp-hero-content */
#hp-hero-content {
    /* GSAP animation applied */
}

/* #hp-hero-text-wrapper */
#hp-hero-text-wrapper {
    /* Flexbox wrapper for text alignment */
    align-items: flex-start;
}

@media (max-width: 767px) {
    #hp-hero-text-wrapper {
        align-items: flex-start !important;
    }
}

/* #hp-hero-title */
#hp-hero-title {
    /* Inherits from text-h2 class */
}

@media (max-width: 767px) {
    #hp-hero-title {
        font-size: 36px !important;
        max-width: 100% !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hp-hero-title {
        font-size: 40px !important;
    }
}

/* #hp-hero-description */
#hp-hero-description {
    /* Inherits from text-p1 class */
    text-align: left;
}

@media (max-width: 767px) {
    #hp-hero-description {
        max-width: 100% !important;
    }
}

/* #hp-hero-credit */
#hp-hero-credit {
    /* Inherits from text-p3 class */
    text-align: left;
}

@media (max-width: 767px) {
    #hp-hero-credit {
        max-width: 100% !important;
    }
}

/* ===================================
   INTRO TEXT SECTION
   =================================== */

/* #hp-intro */
#hp-intro {
    background-color: #13001A;
}

/* #hp-intro-container */
#hp-intro-container {
    /* Flexbox layout from Tailwind classes */
}

@media (max-width: 767px) {
    #hp-intro-container {
        padding: 40px 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hp-intro-container {
        padding: 48px 40px !important;
    }
}

@media (min-width: 1024px) {
    #hp-intro-container {
        padding: 60px !important;
    }
}

@media (min-width: 1440px) {
    #hp-intro-container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* #hp-intro-content */
#hp-intro-content {
    /* Content wrapper */
}

/* #hp-intro-text */
#hp-intro-text {
    color: #906E9F;
}

@media (max-width: 767px) {
    #hp-intro-text {
        font-size: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hp-intro-text {
        font-size: 28px !important;
    }
}

@media (min-width: 1024px) {
    #hp-intro-text {
        font-size: 32px !important;
    }
}

/* ===================================
   GALLERY SECTION
   =================================== */

/* #hp-gallery */
#hp-gallery {
    background-color: #13001A;
    padding-bottom: 50px;
}

/* #hp-gallery-container */
#hp-gallery-container {
    /* Gallery container */
}

@media (max-width: 767px) {
    #hp-gallery-container {
        padding: 20px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hp-gallery-container {
        padding: 32px 40px !important;
    }
}

@media (min-width: 1024px) {
    #hp-gallery-container {
        padding: 32px 60px !important;
    }
}

@media (min-width: 1440px) {
    #hp-gallery-container {
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* #hp-gallery-grid */
#hp-gallery-grid {
    /* Grid layout from Tailwind classes */
}

@media (max-width: 767px) {
    #hp-gallery-grid {
        gap: 16px !important;
    }
}

/* Gallery items */
.hp-gallery-item {
    min-height: 300px;
    max-height: 500px;
    opacity: 1;
    visibility: visible;
}

@media (max-width: 767px) {
    .hp-gallery-item {
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
    }
}

@media (min-width: 768px) {
    .hp-gallery-item {
        min-height: 400px;
        max-height: 500px;
    }
}

@media (min-width: 1024px) {
    .hp-gallery-item {
        min-height: 400px;
        max-height: 500px;
    }
}

/* ===================================
   RESPONSIVE IMAGE STYLES
   =================================== */

/* Ensure all gallery images cover their containers properly */
.hp-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1;
    visibility: visible;
}

/* ===================================
   ACCESSIBILITY STYLES
   =================================== */

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #ABEBF0;
    outline-offset: 4px;
}

/* ===================================
   UTILITY STYLES
   =================================== */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
    background-color: #ABEBF0;
    color: #13001A;
}

::-moz-selection {
    background-color: #ABEBF0;
    color: #13001A;
}

/* Print Styles */
@media print {
    #hp-hero-bg {
        display: none;
    }
    
    #hp-gallery-1,
    #hp-gallery-2,
    #hp-gallery-3 {
        page-break-inside: avoid;
    }
}

