/* ========================================
   V3 Homepage Styles
   Video Background + Transparent Header
   Rosendin-style Design
======================================== */

/* Video Hero Section */
.video-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 2;
}

/* Utility Bar */
.utility-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 10px 0;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-content {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
}

.utility-links {
    display: flex;
    gap: 25px;
}

.utility-links span {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.utility-links span i {
    margin-right: 6px;
    color: #C41E3A;
}

/* Transparent Header */
.header-transparent {
    position: absolute;
    top: 45px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    transition: all 0.3s ease;
}

/* Sticky Header State */
.header-transparent.sticky {
    position: fixed;
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-transparent.sticky .site-logo img {
    height: 50px;
    filter: none;
    /* Use original logo colors */
}

.header-transparent.sticky .main-navigation ul li a {
    color: #1A1F3C;
    /* Dark navy text */
}

.header-transparent.sticky .main-navigation ul li a:hover {
    color: #C41E3A;
    /* Red accent on hover */
}

.header-transparent.sticky .menu-toggle span {
    background: #1A1F3C;
    /* Dark hamburger icon */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    width: 100%;
}

.site-logo img {
    height: 70px;
    width: auto;
    /* Using original colored logo */
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

/* Hide mobile contact row on desktop */
.mobile-contact-row {
    display: none;
}

.main-navigation ul li a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.main-navigation ul li a:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* When menu is open, keep X icon white (visible over dark overlay) */
.menu-toggle.active span {
    background: #fff !important;
}

/* Hero Overlay Text */
.hero-overlay-text {
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-overlay-text h1 {
    margin: 0;
    padding: 0;
}

.hero-overlay-text h1 .line {
    display: block;
    font-family: var(--font-heading);
    font-size: 60px;
    font-weight: 900;
    font-style: italic;
    color: #fff;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-overlay-text h1 .line.accent {
    color: #C41E3A;
}

/* Vertical Explore Text */
.explore-vertical {
    position: absolute;
    left: 20px;
    top: 40%;
    bottom: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.explore-vertical span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-bottom: 15px;
}

.explore-line {
    width: 1px;
    height: 150vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 50%, transparent 100%);
}

/* Hero Bottom */
.hero-bottom {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.scroll-down:hover {
    opacity: 0.7;
}

.scroll-down span {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down i {
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(6px);
    }

    60% {
        transform: translateY(3px);
    }
}

/* ========================================
   Responsive Styles for V3
======================================== */

@media (max-width: 1200px) {
    .hero-overlay-text h1 .line {
        font-size: 50px;
    }

    .hero-overlay-text {
        left: 40px;
    }
}

@media (max-width: 992px) {
    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 31, 60, 0.98);
        display: flex;
        flex-direction: column;
        /* Stack ul and contact row vertically */
        justify-content: flex-start;
        align-items: center;
        /* Align to top */
        padding-top: 100px;
        /* Space for header + some padding */
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 150;
    }

    .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .main-navigation ul li a {
        font-size: 20px;
        padding: 15px 30px;
        color: #fff !important;
        /* White text in mobile menu */
    }

    .main-navigation ul li a:hover {
        color: #C41E3A !important;
    }

    .menu-toggle {
        display: flex;
        z-index: 200;
        /* Above the mobile menu overlay */
    }

    /* Mobile Contact Row - Hidden on desktop, visible on mobile */
    .mobile-contact-row {
        display: flex;
        justify-content: space-between;
        width: 100%;
        max-width: 320px;
        margin-top: 30px;
        padding: 0 10px;
    }

    .mobile-contact-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: #fff;
        text-decoration: none;
        font-size: 12px;
        transition: color 0.3s ease;
    }

    .mobile-contact-item i {
        font-size: 20px;
        color: #C41E3A;
    }

    .mobile-contact-item span {
        color: rgba(255, 255, 255, 0.85);
    }

    .mobile-contact-item:hover span {
        color: #C41E3A;
    }

    .utility-links {
        gap: 15px;
    }

    .utility-links span {
        font-size: 11px;
    }

    .hero-overlay-text h1 .line {
        font-size: 42px;
    }

    .hero-overlay-text {
        left: 30px;
    }

    .explore-vertical {
        display: none;
    }
}

@media (max-width: 768px) {
    .utility-bar {
        display: none;
    }

    .header-transparent {
        top: 0;
        padding: 15px 0;
    }

    .site-logo img {
        height: 45px;
    }

    .hero-overlay-text {
        left: 20px;
        right: 20px;
    }

    .hero-overlay-text h1 .line {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .hero-bottom {
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .hero-overlay-text h1 .line {
        font-size: 26px;
    }

    .site-logo img {
        height: 40px;
    }
}

/* ========================================
   Inner Pages Header Styles
======================================== */

/* Inner Pages Utility Bar */
.utility-bar-inner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    padding: 10px 0;
    background: #1A1F3C;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-bar-inner .utility-content {
    display: flex;
    justify-content: flex-end;
    padding-right: 60px;
}

.utility-bar-inner .utility-links {
    display: flex;
    gap: 25px;
}

.utility-bar-inner .utility-links span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.utility-bar-inner .utility-links span i {
    margin-right: 6px;
    color: #C41E3A;
}

/* Inner Pages Header - Same as homepage sticky */
.header-inner-pages {
    position: fixed !important;
    top: 42px !important;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-inner-pages .site-logo img {
    filter: none;
    /* Use original logo colors */
    height: 50px;
}

.header-inner-pages .main-navigation ul li a {
    color: #1A1F3C;
    /* Dark navy text */
}

.header-inner-pages .main-navigation ul li a:hover {
    color: #C41E3A;
    /* Red accent on hover */
}

.header-inner-pages .menu-toggle span {
    background: #1A1F3C;
    /* Dark hamburger icon */
}

/* Page banner adjustment for fixed header + utility bar */
body:has(.header-inner-pages) .page-banner {
    padding-top: 160px;
}

/* ========================================
   Responsive for Inner Pages
======================================== */

/* Tablet - show ribbon but smaller */
@media (max-width: 992px) {
    .utility-bar-inner .utility-links {
        gap: 15px;
    }

    .utility-bar-inner .utility-links span {
        font-size: 10px;
    }

    .utility-bar-inner .utility-content {
        padding-right: 20px;
    }

    /* Mobile menu overlay for inner pages - white text */
    .header-inner-pages .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 31, 60, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 100px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 150;
    }

    .header-inner-pages .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    .header-inner-pages .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .header-inner-pages .main-navigation ul li a {
        font-size: 20px;
        padding: 15px 30px;
        color: #fff !important;
        /* White text in mobile menu */
    }

    .header-inner-pages .main-navigation ul li a:hover {
        color: #C41E3A !important;
    }
}

/* Mobile - hide ribbon */
@media (max-width: 768px) {
    .utility-bar-inner {
        display: none;
    }

    .header-inner-pages {
        top: 0 !important;
        padding: 12px 0;
    }

    .header-inner-pages .header-inner {
        padding: 0 20px;
    }

    .header-inner-pages .site-logo img {
        height: 40px;
    }

    body:has(.header-inner-pages) .page-banner {
        padding-top: 100px;
    }
}

/* Homepage sticky header responsive fixes */
@media (max-width: 992px) {
    .header-transparent.sticky .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(26, 31, 60, 0.98);
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding-top: 100px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 150;
    }

    .header-transparent.sticky .main-navigation.active {
        opacity: 1;
        visibility: visible;
    }

    .header-transparent.sticky .main-navigation ul {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        margin: 0;
        padding: 0;
    }

    .header-transparent.sticky .main-navigation ul li a {
        color: #fff !important;
    }

    .header-transparent.sticky .menu-toggle span {
        background: #1A1F3C;
    }
}

@media (max-width: 768px) {
    .header-transparent.sticky {
        padding: 10px 0;
    }

    .header-transparent.sticky .site-logo img {
        height: 40px;
    }

    .header-transparent.sticky .header-inner {
        padding: 0 20px;
    }
}

/* ========================================
   Testimonials Section - Carousel
======================================== */
.testimonials-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: hidden;
}

.testimonials-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 50px;
    padding-bottom: 20px;
}

.testimonials-scroller::-webkit-scrollbar {
    display: none;
}

.testimonials-track {
    display: flex;
    gap: 30px;
    padding: 10px 0;
}

.testimonials-track .testimonial-card {
    flex: 0 0 400px;
    min-width: 350px;
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.testimonials-track .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-quote i {
    font-size: 40px;
    color: #C41E3A;
    opacity: 0.3;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.author-info h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-primary, #1a1f3c);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 13px;
    color: #888;
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #1a1f3c;
    background: transparent;
    color: #1a1f3c;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background: #1a1f3c;
    color: white;
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-track .testimonial-card {
        flex: 0 0 300px;
        min-width: 280px;
        padding: 30px 20px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
    }
}

/* Active Page Navigation for V3 Header */
.header-transparent .main-navigation ul li a.active,
.header-transparent.sticky .main-navigation ul li a.active {
    color: #C41E3A;
    /* Red accent */
    font-weight: 700;
}