/* Component Styles */

/* Image Text Alternating */
.alternating-image {
    max-height: 280px;
    object-fit: cover;
    border-radius: 2rem;
}

/* Small mobile (480px+) */
@media (min-width: 480px) {
    .alternating-image {
        max-height: 320px;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) and (max-width: 991px) {
    .alternating-image {
        max-height: 320px;
    }
}

/* iPad Pro Landscape (1024px - 1400px) */
@media (min-width: 992px) and (max-width: 1400px) and (orientation: landscape) {
    .alternating-image {
        max-height: 460px;
    }
}

.alternating-section h2 {
    margin-bottom: 30px;
}

/* Control gap between text and image on mobile */
.alternating-section .row.g-3 > .d-md-flex {
    margin-top: 30px;
}

@media (min-width: 768px) {
    .alternating-section .row.g-3 > .d-md-flex {
        margin-top: 0;
    }
}

.alternating-text-padding {
    padding-top: 36px;
}

@media (min-width: 768px) {
    .alternating-text-padding {
        padding-top: 60px;
    }
}

/* Icon Grid */
.icon-grid .d-flex.align-items-start {
    margin-bottom: 12px;
}

/* Grid item spacing - 36px on mobile, 16px (1rem) on tablet, used by IconGrid and ImageGrid */
.grid-spacing-mobile {
    row-gap: 36px;
}

@media (min-width: 769px) {
    .grid-spacing-mobile {
        row-gap: 1rem;
    }
}

/* Image Grid */
.image-grid .image-container {
    margin-bottom: 30px;
}

.image-grid h4 {
    margin-bottom: 12px;
}

.image-grid .section-subtitle,
.image-grid p {
    color: var(--color-text-light);
}

/* Hero Banner Image - Full Width with Phone Overlays */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-top: -2rem;
}

.hero-image {
    width: 100%;
    height: auto;
    min-height: 500px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.hero-buttons-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding-top: 1.5rem;
}

.hero-phones {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.25rem;
    padding: 0 1rem;
    z-index: 1;
}

.hero-phone {
    height: auto;
    width: auto;
}

/* Mobile (default - up to 768px) */
.hero-phone-left,
.hero-phone-right {
    display: none !important;
}

.hero-phone-center {
    max-width: 290px;
    width: 100%;
    transform: translateX(-12px);
}

/* Tablet (769px+) */
@media (min-width: 769px) {
    .hero-image {
        max-height: 450px;
    }
    
    .hero-phones {
        gap: 0.5rem;
    }
    
    .hero-phone-left,
    .hero-phone-right {
        display: block !important;
        max-width: 250px;
        width: 100%;
        transform: translateX(-12px);
    }
    
    .hero-phone-center {
        max-width: 260px;
        width: 100%;
        transform: translateX(-12px);
    }
}

/* Desktop (1025px+) */
@media (min-width: 1025px) {
    .hero-image {
        max-height: 500px;
    }
    
    .hero-phones {
        gap: 1rem;
    }
    
    .hero-phone-left,
    .hero-phone-right {
        max-width: 290px;
        transform: translateX(-12px);
    }
    
    .hero-phone-center {
        max-width: 300px;
        transform: translateX(-12px);
    }
}

/* Skeleton Loader Styles */
.skeleton-loader {
    animation: skeleton-loading 1.5s infinite;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-nav {
    height: 60px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}

.skeleton-logo {
    width: 120px;
    height: 32px;
    border-radius: 4px;
}

.skeleton-hero {
    height: 400px;
    background: white;
    padding: 3rem 1rem;
}

.skeleton-title {
    height: 48px;
    width: 60%;
    margin: 0 auto 1rem;
    border-radius: 8px;
}

.skeleton-subtitle {
    height: 24px;
    width: 80%;
    margin: 0 auto 2rem;
    border-radius: 4px;
}

.skeleton-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.skeleton-button {
    width: 180px;
    height: 50px;
    border-radius: 4px;
}

.skeleton-content {
    padding: 3rem 1rem;
}

.skeleton-section {
    max-width: 1140px;
    margin: 0 auto 2rem;
    height: 100px;
    border-radius: 8px;
}

#app:not(:empty) ~ #skeleton {
    display: none;
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    transition: bottom 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 50px;
    height: 50px;
    background-color: var(--color-secondary);
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: all 0.3s ease;
    color: white;
}

.cookie-settings-btn .oi {
    font-size: 20px;
}

.cookie-settings-btn:hover {
    background-color: var(--color-primary);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.cookie-settings-btn:active {
    transform: scale(0.95);
}

.cookie-settings-btn.banner-visible {
    bottom: 20px;
}

/* Hide cookie button when mobile menu is open (mobile + tablet) */
@media (max-width: 1024px) {
    body:has(.navbar-collapse.show) .cookie-settings-btn {
        display: none !important;
    }
    
    body:has(.navbar-collapse.show) .sticky-download-banner {
        display: none !important;
    }
}

/* Sticky Download Banner - Slides down from top */
.sticky-download-banner {
    position: relative;
    width: 100%;
    background-color: var(--color-text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-download-banner.show {
    max-height: 200px;
}

/* Image Text Section - Responsive image overlap */
/* Mobile (default) - Minimal or no overlap to prevent covering text */
.image-text-section .phone-overlap-image {
    max-height: 350px;
    margin-top: 0;
    margin-bottom: 0;
    max-width: none;
}

/* Small tablets (576px+) - Very subtle overlap */
@media (min-width: 576px) {
    .image-text-section .phone-overlap-image {
        max-height: 400px;
        margin-top: -30px;
    }
}

/* Tablet (769px+) - More pronounced overlap */
@media (min-width: 769px) {
    .image-text-section .phone-overlap-image {
        max-height: 500px;
        margin-top: -100px;
        margin-bottom: 0;
    }
}

/* Desktop (1025px+) - Full overlap effect */
@media (min-width: 1025px) {
    .image-text-section .phone-overlap-image {
        max-height: 500px;
        margin-top: -100px;
        margin-bottom: 0;
    }
}

/* iPad Air Portrait (820px) - Reduce image size to prevent text wrapping */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .image-text-section .phone-overlap-image {
        max-height: 400px;
        margin-top: -60px;
    }
    
    .image-text-section [class*="col-md-5"] {
        padding-left: 6rem !important;
    }
}

/* iPad Air Landscape (1180px) - Reduce image size to prevent text wrapping */
@media (min-width: 1024px) and (max-width: 1194px) and (orientation: landscape) {
    .image-text-section .phone-overlap-image {
        max-height: 480px;
        margin-top: -80px;
    }
}

/* iPad Pro Landscape (1366px) - Reduce image size to prevent text wrapping */
@media (min-width: 1195px) and (max-width: 1400px) and (orientation: landscape) {
    .image-text-section .phone-overlap-image {
        max-height: 460px;
        margin-top: -80px;
    }
}

/* Image Text Section - Additional Styles */
.image-text-section {
    scroll-margin-top: 80px;
}

/* Image Grid - Add extra top margin to 4th, 5th, 6th items on tablet and desktop */
@media (min-width: 769px) {
    .image-grid .row.g-5 > .col-md-4:nth-child(n+4) {
        margin-top: 80px;
    }
}

.image-text-section .row {
    gap: 2.5rem 0;
}

/* Remove bottom padding from text column on mobile to reduce gap */
.image-text-section [class*="col-md-7"] {
    padding-bottom: 0 !important;
}

@media (min-width: 768px) {
    .image-text-section [class*="col-md-7"] {
        padding-bottom: 3rem !important;
    }
}

.image-text-section h2 {
    margin-bottom: 2.5rem;
}

@media (min-width: 1025px) {
    .image-text-section h2 {
        white-space: nowrap;
    }
}

.image-text-section .subtitle-text,
.image-text-section .body-text {
    color: var(--color-text-light) !important;
}

.image-text-section .text-default {
    color: var(--color-text) !important;
}

.image-text-section .subtitle-text {
    margin-bottom: 1rem;
}

/* Spacing for text elements before buttons */
.image-text-section .subtitle-text:last-of-type,
.image-text-section .body-text {
    margin-bottom: 32px;
}

@media (min-width: 1025px) {
    .image-text-section .subtitle-text:last-of-type,
    .image-text-section .body-text {
        margin-bottom: 40px;
    }
}

.image-text-section .store-badge {
    max-width: 140px;
    height: auto;
}

/* Hero Banner */
/* Mobile (default) - 60px top padding */
.hero-banner {
    padding-top: 60px;
}

/* Tablet (769px+) - 112px top padding */
@media (min-width: 769px) {
    .hero-banner {
        padding-top: 112px;
    }
}

/* Desktop (1025px+) - 120px top padding */
@media (min-width: 1025px) {
    .hero-banner {
        padding-top: 120px;
    }
}

/* Hero Banner Internal - For internal pages */
.hero-banner-internal {
    background-color: var(--color-heading);
    border-radius: 0 0 2rem 2rem;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-internal-subtitle {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

/* Mobile (default) - 60px top and bottom padding */
.hero-banner-internal {
    padding-top: 60px;
    padding-bottom: 60px;
}

/* Tablet (769px+) - 112px top padding, taller banner */
@media (min-width: 769px) {
    .hero-banner-internal {
        padding-top: 112px;
        padding-bottom: 128px;
        min-height: 350px;
    }
}

/* Desktop (1025px+) - 120px top padding, taller banner */
@media (min-width: 1025px) {
    .hero-banner-internal {
        padding-top: 120px;
        min-height: 400px;
    }
}

.hero-banner h1 {
    max-width: 860px;
}

.hero-banner .mobile-buttons {
    padding-bottom: 3rem !important;
}

.hero-banner .store-badge {
    max-width: 140px;
    height: auto;
}

/* Spacing for subtitle before buttons */
.hero-banner .section-subtitle {
    margin-bottom: 32px;
}

@media (min-width: 1025px) {
    .hero-banner .section-subtitle {
        margin-bottom: 40px;
    }
}

/* Icon Grid - Primary Color */
.icon-grid .oi {
    color: var(--color-primary);
}

/* Image Icon Grid */
.image-icon-grid-image {
    height: 100%;
}

/* Remove bottom margin from last icon grid item on mobile */
.image-icon-grid-section .col-md-7 .row > div:last-child {
    margin-bottom: 0 !important;
}

@media (min-width: 768px) {
    .image-icon-grid-section .col-md-7 .row > div:last-child {
        margin-bottom: 1.5rem !important;
    }
}

/* Pricing Section */
.pricing-section .subtitle {
    max-width: 700px;
}

.pricing-section .toggle-wrapper {
    background-color: var(--color-light);
    border-radius: 50px;
    border: 1px solid var(--color-light);
}

.pricing-section .card {
    border-radius: 1.5rem;
}

.pricing-section hr {
    border-top: 1px dashed #dee2e6;
    margin: 1.5rem 0;
}

/* Testimonial */
.testimonial-section .subtitle {
    max-width: 700px;
}

.testimonial-section .quote {
    max-width: 700px;
    font-size: 20px;
    line-height: 158%;
}

@media (min-width: 769px) {
    .testimonial-section .quote {
        line-height: normal;
    }
}

.testimonial-section .avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

/* Video Section */
.video-section .video-container {
    border-radius: 1.5rem;
}

.video-section .youtube-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    text-align: center;
}

.video-section .youtube-placeholder svg:first-of-type {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.video-section .youtube-placeholder h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.video-section .youtube-placeholder p:first-of-type {
    margin-bottom: 0.5rem;
    opacity: 0.95;
    max-width: 450px;
}

.video-section .youtube-placeholder p:last-of-type {
    opacity: 0.85;
    font-size: 0.9rem;
    max-width: 450px;
}

.video-section .youtube-placeholder svg.inline-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* Image CTA */
.image-cta {
    background-size: cover;
    background-position: center;
    position: relative;
}

.image-cta-margin-negative {
    margin-top: -30px;
}

.image-cta-margin-negative .image-cta-content {
    padding-top: calc(60px + 30px);
}

@media (min-width: 769px) {
    .image-cta-margin-negative .image-cta-content {
        padding-top: 90px;
    }
}

@media (min-width: 1025px) {
    .image-cta-margin-negative .image-cta-content {
        padding-top: 120px;
    }
}

.image-cta-border-radius {
    border-radius: 2rem;
}

.image-cta-border-radius-bottom {
    border-radius: 0 0 2rem 2rem;
}

.image-cta-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0 0 2rem 2rem;
    z-index: -1;
}

.image-cta-content {
    position: relative;
    z-index: 10;
}

.image-cta .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.image-cta .overlay-opacity-50 {
    opacity: 0.5;
}

/* Spacing for subtitle before buttons */
.image-cta .section-subtitle {
    margin-bottom: 32px;
}

@media (min-width: 1025px) {
    .image-cta .section-subtitle {
        margin-bottom: 40px;
    }
}

/* Footer Store Badges */
footer .store-badge {
    max-width: 110px;
    height: auto;
}

/* NavMenu - Buy Me a Coffee Button */
.nav-btn img {
    height: 38px;
    width: auto;
    max-width: 100%;
}

/* Contact Page */
.no-banner-page-padding {
    padding-top: 2.5rem;
}

@media (min-width: 768px) {
    .no-banner-page-padding {
        padding-top: 3.5rem;
    }
}

/* Contact page column layout - keep stacked on iPad Pro (until burger menu is hidden at 1025px) */
@media (min-width: 992px) and (max-width: 1024px) {
    /* Override Bootstrap col-lg-6 to keep columns full width on tablets with burger menu */
    .row:has(.contact-image-column) .col-lg-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.contact-image-column {
    min-height: 500px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .contact-image-column {
        min-height: 300px;
        height: auto;
    }
}

.contact-background-image {
    object-fit: cover;
    object-position: right center;
    border-radius: 1.5rem;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .contact-background-image {
        max-height: 300px;
    }
}

.contact-text-overlay {
    inset: 4rem 4.5rem auto auto;
}
