/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face{
    font-family: CoHeadline;
    src: url('./co-headline/Co\ Headline.otf');
    font-display: swap;  
}

@font-face{
    font-family: CoHeadlineBold;
    src: url('./co-headline/Co\ Headline-Bold.otf');
    font-weight: bold;
    font-display: swap;  
}

@font-face{
    font-family: CoHeadlineLight;
    src: url('./co-headline/Co\ Headline\ Light.otf');
    font-weight: 300;
    font-display: swap;  
}

body {
    font-family: 'CoHeadline', 'Cairo', sans-serif !important;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Banner Section */
.banner {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('images/BannerBackground.png');
    background-size: cover;
    background-position: center;
}

/* Breadcrumb styles in banner */
.banner .breadcrumb {
    --bs-breadcrumb-divider: "/";
    background: transparent;
    padding: 0;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: flex-start; /* RTL: align to the right */
}

.banner .breadcrumb .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.banner .breadcrumb .breadcrumb-item a:hover {
    text-decoration: underline;
}

.banner .breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.75);
}

.banner .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
    float: right;
    padding-left: 0.5rem;
    padding-right: 0;
    margin-right: 0.5rem; /* space between "/" and previous item in RTL */
}

/* Subpage banner: align content to top instead of center */
.banner.sub-banner {
    height: auto;
    min-height: 40vh;
    align-items: flex-start;
    padding: 40px 0;
}

.banner .container-fluid {
    position: relative;
    z-index: 2;
    width: 100%;
}

.banner .col-lg-6 {
    color: white;
    padding: 2rem;
}

.banner .col-lg-6 div:last-child {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: 'CoHeadlineBold', 'Cairo', sans-serif;
}

.banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.banner-text {
    color: white;
}

.banner-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    }

.highlight {
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-download:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-download img {
    width: 24px;
    height: 24px;
}

.download-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-text .small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.download-text .large {
    font-size: 1rem;
    font-weight: 600;
}

/* Phone Mockups */
.banner-phones {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: absolute;
    width: 180px;
    height: 360px;
    transition: transform 0.3s ease;
}

.phone-mockup img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phone-1 {
    z-index: 4;
    transform: translateX(-60px) translateY(-20px) rotate(-5deg);
}

.phone-2 {
    z-index: 3;
    transform: translateX(60px) translateY(-10px) rotate(5deg);
}

.phone-3 {
    z-index: 2;
    transform: translateX(-120px) translateY(40px) rotate(-10deg);
    opacity: 0.8;
}

.phone-4 {
    z-index: 1;
    transform: translateX(120px) translateY(50px) rotate(10deg);
    opacity: 0.8;
}

.phone-mockup:hover {
    transform: translateY(-10px) scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* On small screens, remove banner image and use solid color */
    .banner {
        background-image: none !important;
        background-color: #0A4C5C !important; /* brand solid background */
    }
    .banner.sub-banner {
        background-image: none !important;
        background-color: #0A4C5C !important;
    }
    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .banner-text h1 {
        font-size: 2rem;
    }
    
    .banner-text p {
        font-size: 1rem;
    }
    
    .banner-phones {
        height: 300px;
    }
    
    .phone-mockup {
        width: 120px;
        height: 240px;
    }
    
    .phone-1 {
        transform: translateX(-30px) translateY(-10px) rotate(-5deg);
    }
    
    .phone-2 {
        transform: translateX(30px) translateY(-5px) rotate(5deg);
    }
    
    .phone-3 {
        transform: translateX(-80px) translateY(20px) rotate(-10deg);
    }
    
    .phone-4 {
        transform: translateX(80px) translateY(25px) rotate(10deg);
    }
    
    .download-buttons {
        justify-content: center;
    }
}

/* Also remove banner image on tablets/smaller laptops */
@media (max-width: 992px) {
    .banner {
        background: #0A4C5C !important; /* shorthand to fully reset on iOS */
    }
    .banner.sub-banner {
        background: #0A4C5C !important; /* shorthand to fully reset on iOS */
    }
}

/* Ensure on touch devices (iPhone/Android) the image is removed */
@media (hover: none) and (pointer: coarse) {
    .banner,
    .banner.sub-banner {
        background: #0A4C5C !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .banner-text h1 {
        font-size: 1.8rem;
    }
    
    .btn-download {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .phone-mockup {
        width: 100px;
        height: 200px;
    }
}

/* Animation for smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Fixed footer */
.site-footer-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Reserve space for fixed footer */
body.has-fixed-footer {
    padding-bottom: 80px; /* approximate footer height */
}

/* Loading animation for images */
img {
    transition: opacity 0.3s ease;
}

img:not([src]) {
    opacity: 0;
}

/* Hover effects for interactive elements */
a, button {
    transition: all 0.3s ease;
}

/* Focus styles for accessibility */
a:focus, button:focus {
    outline: 2px solid #2d9596;
    outline-offset: 2px;
}

