/* ====================================
   PRO DETAIL PAGE - MOBILE FIRST RESPONSIVE DESIGN
   ==================================== */

/* ====================================
   HERO SECTION
   ==================================== */

/* Mobile-first: Default styles for mobile */
.pro-detail-hero {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: calc(80px + var(--ap-spacing-xxl)) var(--ap-spacing-s) var(--ap-spacing-xxl) var(--ap-spacing-s);
    min-height: auto;
    position: relative;
}

.pro-detail-hero .ap-hero-content {
    max-width: none;
    text-align: left;
    position: relative;
    z-index: 2;
}

.pro-detail-hero h1 {
    font-size: var(--ap-font-h1-mobile-size);
    font-weight: var(--ap-font-h1-mobile-weight);
    line-height: var(--ap-font-h1-mobile-line-height);
    color: var(--ap-color-text-primary);
    margin-bottom: var(--ap-spacing-m);
}

.pro-detail-hero p {
    font-size: var(--ap-font-body-regular-size);
    line-height: var(--ap-font-body-regular-line-height);
    color: var(--ap-color-text-secondary);
    margin-bottom: var(--ap-spacing-m);
}

/* ====================================
   FEATURE SECTIONS
   ==================================== */

/* Mobile-first: Feature sections */
.pro-detail-section {
    padding: var(--ap-spacing-l) 0;
}

.pro-detail-section--dark {
    background-color: var(--ap-color-primary-surface);
}

.pro-detail-section .ap-container {
    padding: 0 var(--ap-spacing-s);
}

/* Mobile-first: Stack layout */
.pro-detail-feature {
    display: flex;
    flex-direction: column;
    gap: var(--ap-spacing-m);
    align-items: center;
    text-align: left;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.pro-detail-feature-image {
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: var(--ap-radius-l);
}

/* Specific aspect ratios */
.pro-detail-feature-image--setup { aspect-ratio: 1686/1324; }
.pro-detail-feature-image--booking { aspect-ratio: 2027/1466; }
.pro-detail-feature-image--proposals { aspect-ratio: 1828/1422; }
.pro-detail-feature-image--collaboration { aspect-ratio: 1644/1422; }
.pro-detail-feature-image--payments { aspect-ratio: 1536/1218; }

.pro-detail-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--ap-spacing-m);
}

.pro-detail-content h2 {
    font-size: var(--ap-font-h2-mobile-size);
    font-weight: var(--ap-font-h2-mobile-weight);
    line-height: var(--ap-font-h2-mobile-line-height);
    color: var(--ap-color-text-primary);
}

.pro-detail-content p {
    font-size: var(--ap-font-body-regular-size);
    line-height: var(--ap-font-body-regular-line-height);
    color: var(--ap-color-text-secondary);
}

/* ====================================
   FINAL CTA SECTION
   ==================================== */

.pro-detail-final-cta {
    background-color: var(--ap-color-primary-bg);
    padding: var(--ap-spacing-xxl) var(--ap-spacing-s);
}

.pro-detail-final-cta .pro-detail-content {
    text-align: center;
    align-items: center;
}

.pro-detail-final-cta h2 {
    text-align: center;
}

/* ====================================
   TABLET BREAKPOINT (min-width: 769px)
   ==================================== */

@media (min-width: 769px) {
    /* Hero adjustments for tablet+ */
    .pro-detail-hero {
        padding: calc(80px + var(--ap-spacing-xl)) var(--ap-spacing-m) var(--ap-spacing-xl) var(--ap-spacing-m);
        text-align: center;
    }
    
    .pro-detail-hero .ap-hero-content {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
    
    /* Feature sections for tablet+ */
    .pro-detail-section .ap-container {
        padding: 0 var(--ap-spacing-m);
    }
    
    /* Horizontal layout for features */
    .pro-detail-feature {
        flex-direction: row-reverse;
        gap: var(--ap-spacing-xl);
        text-align: left;
        align-items: center;
        max-width: none; /* Allow to expand beyond 1280px for larger images */
        width: 100%;
    }
    
    .pro-detail-feature-image {
        flex: 1;
        min-width: 400px;
        max-width: 100%;
        height: 350px;
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .pro-detail-content {
        flex: 0 0 450px;
        max-width: 450px;
    }
    
    /* Final CTA content should not be width-restricted */
    .pro-detail-final-cta .pro-detail-content {
        flex: 1;
        max-width: none;
    }
    
    /* Keep all sections with text left, image right - no alternating */
    /* Removed the nth-child(odd) rule to maintain consistent layout */
    
    /* Final CTA adjustments */
    .pro-detail-final-cta {
        padding: var(--ap-spacing-xxl) var(--ap-spacing-m);
    }
}

/* ====================================
   DESKTOP BREAKPOINT (min-width: 1024px)
   ==================================== */

@media (min-width: 1024px) {
    /* Desktop: Enhanced container padding */
    .pro-detail-hero {
        padding: calc(80px + var(--ap-spacing-xxl)) var(--ap-spacing-l) var(--ap-spacing-xxl) var(--ap-spacing-l);
    }
    
    .pro-detail-section .ap-container {
        padding: 0 var(--ap-spacing-l);
    }
    
    /* Larger images and spacing for desktop */
    .pro-detail-feature {
        gap: calc(var(--ap-spacing-xl) * 1.5);
    }
    
    .pro-detail-feature-image {
        min-width: 500px;
        height: 425px;
        background-size: contain;
    }
    
    .pro-detail-content {
        flex: 0 0 450px;
        max-width: 450px;
    }
    
    /* Final CTA content should not be width-restricted */
    .pro-detail-final-cta .pro-detail-content {
        flex: 1;
        max-width: none;
    }
    
    .pro-detail-final-cta {
        padding: var(--ap-spacing-xxl) var(--ap-spacing-l);
    }
}

/* ====================================
   LARGE DESKTOP BREAKPOINT (min-width: 1200px)
   ==================================== */

@media (min-width: 1200px) {
    .pro-detail-feature-image {
        min-width: 600px;
        height: 500px;
    }
    
    .pro-detail-feature {
        max-width: 1400px; /* Allow more space for larger images */
    }
}

/* ====================================
   EXTRA LARGE DESKTOP BREAKPOINT (min-width: 1440px)
   ==================================== */

@media (min-width: 1440px) {
    .pro-detail-feature-image {
        min-width: 700px;
        height: 580px;
    }
    
    .pro-detail-feature {
        max-width: 1600px; /* Even more space for extra large screens */
    }
}
