/* Custom styles for public pages */
/* Import Inter and Outfit fonts to ensure public pages match home.html */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* Global overflow fix for mobile */
html {
    overflow-x: hidden;
}

body {
    padding-top: 56px; /* Adjust if your navbar height changes */
    /* Ensure all public pages use Inter (home font) as primary */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.6;
    color: #1e293b;
    overflow-x: hidden;
    max-width: 100vw;
}

/* ============================================
   HEADING STYLES - Match home.html
   Using Outfit font for all headings
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: #0f172a;
}

.display-3,
.display-4,
.display-5 {
    line-height: 1.2;
    font-weight: 800;
}

.lead {
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.7;
    color: #475569;
}

p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
}

/* Enhanced Hero Section */
.hero-section {
    /* Background is set via inline styles on each page */
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
}

.hero-section .content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: block;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-left: 0;
    margin-right: auto;
    text-align: left;
    min-width: 300px;
    max-width: min(500px, 90vw);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 991.98px) {
    .hero-section .content-box {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        min-width: unset;
        max-width: min(100%, 450px);
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* When a mobile menu is open on one navbar, hide all other navbars/collapses on small screens */
@media (max-width: 991.98px) {
    body.mobile-nav-open .navbar:not(.mobile-active) {
        display: none !important;
    }
    body.mobile-nav-open .navbar-collapse:not(.mobile-active-collapse) {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    .hero-section .content-box {
        max-width: 95%;
        padding: 1.5rem 1rem;
    }
}

/* Animated floating elements */
.hero-section::after {
    /* content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border-radius: 50%;
    top: 10%;
    right: 10%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
    z-index: 1; */
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Enhanced Cards */
.pea-item, .card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* PEA section: tabs (stacked) on left + content on right for desktop; accordion on mobile */
.pea-feature-wrap .pea-tabs {
    gap: 0.5rem;
}
.pea-header {
    border: none;
    background: transparent;
    padding: 14px 12px;
    font-weight: 600;
    color: #495057;
    font-size: 1.05rem;
    text-align: left;
    position: relative;
    cursor: pointer;
}
.pea-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 6px;
    height: 3px;
    width: 0;
    background: linear-gradient(45deg, #007fdb, #fea525);
    transition: width 0.32s ease;
}
.pea-header:hover::after {
    width: 100%;
}
.pea-header.active::after {
    width: 100%;
}

.pea-content .pea-panel { display: none; }
.pea-content .pea-panel.active { display: block; }

/* On desktop show text and image side-by-side */
@media (min-width: 768px) {
    /* Only show the active panel on desktop */
    .pea-content .pea-panel.active { display: flex; gap: 2rem; align-items: center; }
    .pea-content .pea-panel .pea-image { flex: 0 0 40%; }
    .pea-content .pea-panel .pea-image img { width: 100%; height: auto; object-fit: cover; }
    .pea-content .pea-panel h4, .pea-content .pea-panel p { flex: 1 1 auto; }
}

/* Mobile/Tablet: behave like an accordion, each header is tappable and opens below */
@media (max-width: 767.98px) {
    .pea-tabs { display: block; }
    .pea-header { 
        width: 100%; 
        border-radius: 8px; 
        padding: 12px 40px 12px 14px; 
        background: #fff; 
        margin-bottom: 8px; 
        position: relative;
    }
    
    /* Chevron icon for mobile accordion */
    .pea-header::before {
        content: '\276F'; /* Right chevron */
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%) rotate(0deg);
        font-size: 0.85rem;
        font-weight: 600;
        color: #495057;
        transition: transform 0.3s ease, color 0.3s ease;
    }
    
    .pea-header.active::before {
        transform: translateY(-50%) rotate(90deg);
        color: #FF6B00;
    }
    
    /* Gradient underline on active header */
    .pea-header::after {
        left: 14px;
        bottom: 8px;
        width: 0;
    }
    
    .pea-header.active::after {
        width: calc(100% - 54px); /* Accounts for left padding + right chevron space */
    }
    
    .pea-content .pea-panel { 
        display: none; 
        padding: 12px 14px; 
        background: #fff; 
        border-radius: 8px; 
        margin-bottom: 12px; 
    }
    .pea-content .pea-panel.active { display: block; }
    .pea-content .pea-panel.open { display: block; }
    .pea-header.active, .pea-header.open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
}

/* Small stylistic tune */
.pea-header:focus { outline: none; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

/* End: page title inline logo rules removed, favicons handled via head link tags */


.pea-item:hover, .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modern Button Styles */
.btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background: transparent;
}

.btn-outline-primary:hover {
    background: linear-gradient(45deg, #007bff, #0056b3);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.3);
}

/* Enhanced Section Backgrounds */
.bg-light {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.about-cdot-section {
    position: relative;
    overflow: hidden;
}

.about-cdot-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
}

/* Text Animations */
.display-5, .display-4 {
    position: relative;
    overflow: hidden;
}

.display-5::after, .display-4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(45deg, #007bff, #ffc107);
    transition: width 0.5s ease;
}

.display-5:hover::after, .display-4:hover::after {
    width: 100%;
}

/* Full-screen mobile menu */
@media (max-width: 991.98px) {
    .navbar-collapse.fullscreen {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95); /* Adjust background color and opacity */
        z-index: 1050; /* Ensure it's above other content */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow-y: auto;
    }
    .navbar-collapse.fullscreen .navbar-nav {
        width: 100%;
        text-align: center;
    }
    .navbar-collapse.fullscreen .navbar-nav .nav-item {
        margin-bottom: 1rem;
    }
    .navbar-collapse.fullscreen .btn-close-fullscreen {
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2rem;
        color: #333;
        background: none;
        border: none;
    }
}

/* Styles for the digital journey link */
.digital-journey-link {
    color: inherit; /* Inherit color from parent */
    transition: color 0.3s ease;
}

.digital-journey-link:hover {
    color: #007bff; /* Change to desired hover color, e.g., Bootstrap primary blue */
    text-decoration: underline;
}

.digital-journey-link .text-black-50 {
    transition: color 0.3s ease;
}

.digital-journey-link:hover .text-black-50 {
    color: #0056b3 !important; /* Darker shade for the 'Start Your Digital' part on hover */
}

/* -----------------------------------
   Video player resize adjustments
   Make embedded mp4 / video-js players full width
   with automatic height across devices
   ----------------------------------- */
/* Targets generated Video.js internal id (mp4Player_html5_api), other video tags, chat videos, and embedded iframes */
#mp4Player_html5_api,
video#mp4Player_html5_api,
.mp4-player,
.video-js .vjs-tech,
.message-video,
.video-section iframe,
.sp-embed-player iframe,
.video-wrapper iframe,
video {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    display: block;
}

/* Make poster thumbnails and player poster images scale with the same rules */
.video-js .vjs-poster,
.vjs-poster img,
.sp-embed-player img,
.video-section img,
.video-wrapper img,
.mp4-thumbnail,
.video-poster img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: cover !important; /* ensures fill without distortion */
    display: block;
}

/* If using Video.js, the actual <video> tag can be targeted with .vjs-tech */
.video-js .vjs-tech,
#mp4Player_html5_api {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
}

/* If Bootstrap ratio is used for aspect ratio, unset the fixed padding-based height */
.ratio iframe, .ratio video, .ratio .vjs-poster, .ratio .vjs-tech {
    height: auto !important;
    padding-top: 0 !important;
}

/* If the video is inside a ratio container, allow it to break the fixed aspect ratio so it can grow vertically */
.ratio iframe, .ratio video {
    height: auto !important;
}

/* Provide a sensible default minimum height for large-screen hero/video sections */
.video-section iframe,
.sp-embed-player iframe,
.video-wrapper iframe {
    min-height: 320px;
}

/* Mobile-specific: allow the video to scale responsively and not overflow page */
@media (max-width: 767.98px) {
    #mp4Player_html5_api,
    video#mp4Player_html5_api,
    .message-video,
    .sp-embed-player iframe,
    .video-section iframe,
    .video-wrapper iframe,
    video {
        width: 100% !important;
        height: auto !important;
        min-height: 180px;
    }
}

/* ============================================
   UNIFIED STORE OWNER SECTION STYLES
   Consistent styling across all pages
   ============================================ */
.store-owner-section {
    background-color: #f8f9fa;
}

.store-owner-content h2 {
    color: #2d3748;
    font-weight: 700;
}

.store-owner-content .lead {
    color: #6c757d;
}

.contact-form-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: #ffffff;
}

/* Unified Avatar Group Styles */
.avatar-group {
    display: flex;
    align-items: center;
}

.avatar-group img {
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.avatar-group img:hover {
    transform: scale(1.1);
    z-index: 10;
}

.avatar-group img:first-child {
    margin-left: 0;
}

/* Reviews Section Styling */
.reviews-section .stars i {
    font-size: 1.1rem;
}

.reviews-section .text-muted {
    font-size: 14px;
}

.reviewer-avatars {
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .store-owner-section .row {
        text-align: center;
    }

    .avatar-group {
        justify-content: center;
        margin-bottom: 1rem;
    }
    
    .reviewer-avatars {
        justify-content: center;
        overflow: hidden;
    }
    
    .reviewer-avatars .ms-3,
    .reviewer-avatars .ms-4 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        text-align: center;
        width: 100%;
    }

    .contact-form-card {
        margin-top: 2rem;
    }
}
