/* Static global styles for the site */

@font-face {
    font-family: 'IranSans';
    src: url('../fonts/iransans/IRANSansWeb(FaNum).woff2') format('woff2'),
         url('../fonts/iransans/IRANSansWeb(FaNum).woff') format('woff');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html, body {
    direction: rtl;
    font-family: 'IranSans', 'Vazirmatn', sans-serif;
}

/* Product intro video cards */
.product-video-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.25rem 2.5rem rgba(15, 23, 42, 0.08);
}
.product-video-card .card-body {
    padding: 1.35rem;
}
.product-video-card .card-title {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}
.product-video-card .card-text {
    min-height: 3.5rem;
    color: #5f636d;
}
.product-video-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.product-video-card .product-video-link {
    display: block;
    color: inherit;
}
.product-video-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-left: auto;
    margin-right: auto;
    background: #000;
    border-radius: 0.75rem;
    overflow: hidden;
}
.product-video-wrapper img,
.product-video-wrapper .video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.video-placeholder {
    background: rgba(0, 0, 0, 0.55);
}
.video-open-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex-direction: column;
    text-align: center;
}
.video-open-overlay:hover {
    background: rgba(0, 0, 0, 0.65);
}
.video-open-icon,
.video-open-text {
    color: #fff;
}
.video-open-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.28);
}
.video-open-icon::before {
    content: '\f04b';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 2.4rem;
    color: #ffffff;
}
.video-open-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.product-video-card {
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
}
.portrait-video-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}
.portrait-video-wrapper video,
.portrait-video-wrapper iframe {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    background: #000;
}
@media (max-width: 991.98px) {
    .product-video-card,
    .product-video-wrapper {
        max-width: 100%;
    }
}
@media (max-width: 767.98px) {
    .product-video-card {
        margin-left: 0;
        margin-right: 0;
    }
    .product-video-wrapper {
        max-width: none;
    }
    .portrait-video-wrapper {
        min-height: 220px;
        max-height: none;
    }
    .video-open-overlay {
        padding: 0.75rem;
    }
    .video-open-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    .video-open-text {
        font-size: 1rem;
    }
}
.product-video-card video,
.product-video-card iframe,
.ratio video,
.ratio iframe {
    border: none;
    width: 100%;
    height: auto;
    min-height: auto;
    object-fit: contain;
}

/* Mobile-like video control sizing */
video::-webkit-media-controls-panel,
video::-webkit-media-controls-enclosure {
    min-height: 48px !important;
    height: 48px !important;
}
video::-webkit-media-controls-timeline,
video::-webkit-media-controls-timeline-container {
    height: 6px !important;
    border-radius: 999px !important;
}
video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider,
video::-webkit-media-controls-mute-button,
video::-webkit-media-controls-fullscreen-button {
    width: 40px !important;
    height: 40px !important;
}
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display,
video::-webkit-media-controls-time-remaining-display {
    font-size: 0.85rem !important;
}

.product-video-wrapper {
    position: relative;
}
.video-cover,
.product-video-cover {
    background: rgba(0, 0, 0, 0.25);
    transition: background-color 0.25s ease, opacity 0.25s ease;
    z-index: 2;
    cursor: pointer;
}
.video-cover:hover,
.product-video-cover:hover {
    background: rgba(0, 0, 0, 0.45);
}
.video-cover-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.75rem 1.5rem rgba(15, 23, 42, 0.18);
}
.video-cover-icon::before {
    content: '';
    display: inline-block;
    margin-left: 5px;
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent #0d6efd;
}
.product-video-card.video-playing .video-cover {
    display: none;
}

.testimonial-card {
    position: relative;
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 0.75rem 2rem rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2.25rem rgba(15, 23, 42, 0.12);
}
.testimonial-card .testimonial-quote-mark {
    position: absolute;
    top: 0.9rem;
    left: 1rem;
    font-size: 2.5rem;
    line-height: 1;
    color: #cfe2ff;
    font-family: serif;
}
.testimonial-card .text-secondary {
    color: #5f636d !important;
    line-height: 1.9;
}

/* Footer styles */
.site-footer {
    background: linear-gradient(180deg, #0b1220 0%, #0d1b2a 100%);
}
.site-footer .footer-links a {
    color: #cfe3ff;
    text-decoration: none;
}
.site-footer .footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer .social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: #cfe3ff;
}
.site-footer .social-icons a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.site-footer .subscribe-form .form-control {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: #e9f2ff;
}
.site-footer .subscribe-form .btn-primary {
    background: #0d6efd;
    border-color: #0d6efd;
}
.site-footer address {
    font-style: normal;
}
