/**
 * T1 Pro Landing Page Styles
 *
 * @package Laifen_Russia
 */

/* ==========================================================================
   T1 Pro Landing Page Global Styles
   ========================================================================== */

/* 防止水平溢出 - 放在 body 层级避免破坏 position: sticky（部分安卓/鸿蒙浏览器不支持 overflow-x: clip，会回退为 hidden 导致 sticky 失效） */
body.page-template-template-t1-pro-landing {
    overflow-x: clip;
}

.t1-pro-landing {
    background-color: #ffffff;
    max-width: 100%;
}


/* Gradient Text Utility - T1 Pro Theme */
.t1-gradient-text,
.t1-pro-landing .p3-pro-gradient-text,
.t1-pro-landing .p3-pro-clean-shave__heading,
.t1-pro-landing .p3-pro-video-banner__heading,
.t1-pro-landing .cnc-machining__main-title,
.t1-pro-landing .product-showcase-vertical__heading,
.t1-pro-landing .pls__heading,
.t1-pro-landing .battery-features__heading,
.t1-pro-landing .quality-tested__heading,
.t1-pro-landing .more-to-come__title,
.t1-pro-landing .accessories-section__title,
.t1-pro-landing .microscopic-precision__heading,
.t1-pro-landing .clean-shave-comparison__title {
    background: linear-gradient(90deg, #072a45 0%, #5684a7 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Common Section Spacing */
.t1-pro-landing section {
    position: relative;
}

/* Hide/Show utilities for responsive */
.hide-on-mobile {
    display: block;
}

.hide-on-desktop {
    display: none;
}

@media only screen and (max-width: 767px) {
    .hide-on-mobile {
        display: none;
    }

    .hide-on-desktop {
        display: block;
    }
}

/* ==========================================================================
   Video Elements
   ========================================================================== */

video {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Swiper Overrides for T1 Pro
   ========================================================================== */

.t1-pro-landing .swiper-button-next,
.t1-pro-landing .swiper-button-prev {
    color: #4a9eff;
    width: 44px;
    height: 44px;
}

.t1-pro-landing .swiper-button-next:after,
.t1-pro-landing .swiper-button-prev:after {
    font-size: 24px;
}

.t1-pro-landing .swiper-button-next:hover,
.t1-pro-landing .swiper-button-prev:hover {
    color: #2d7fd9;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media only screen and (max-width: 767px) {
    .t1-pro-landing h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .t1-pro-landing h2 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }

    .t1-pro-landing h3 {
        font-size: clamp(1.2rem, 3vw, 2rem);
    }

    .t1-pro-landing p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
}

/* ==========================================================================
   Animation Utilities
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(30px);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Fade animations - Shopify style */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-out-down {
    animation: fadeOutDown 0.3s ease-out forwards;
}

/* Fade element - initial hidden state */
.fade-element,
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-element.animate,
.fade-in-element.animate,
.fade-element.fade-in,
.fade-in-element.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .fade-element,
    .fade-in-element,
    .fade-in-up,
    .fade-out-down,
    .animate-fade-in {
        animation: none;
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   Button Styles
   ========================================================================== */

.t1-pro-landing .button,
.t1-pro-landing .btn {
    display: inline-block;
    padding: 12px 32px;
    background: #4a9eff;
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.t1-pro-landing .button:hover,
.t1-pro-landing .btn:hover {
    background: #2d7fd9;
    transform: none;
    color: #ffffff !important;
}

.t1-pro-landing .button--outline {
    background: transparent;
    border: 2px solid #4a9eff;
    color: #4a9eff;
}

.t1-pro-landing .button--outline:hover {
    background: #4a9eff;
    color: #ffffff;
}

/* ==========================================================================
   Image Optimization
   ========================================================================== */

.t1-pro-landing img {
    max-width: 100%;
    height: auto;
}

/* 
 * 图片懒加载动画 - 通过 JavaScript 控制
 * 图片默认可见，JS 在页面加载时添加动画类
 */
.t1-pro-landing img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

.t1-pro-landing img[loading="lazy"].lazy-animate {
    opacity: 0;
}

.t1-pro-landing img[loading="lazy"].lazy-animate.loaded {
    opacity: 1;
}

/* ==========================================================================
   Section Backgrounds
   ========================================================================== */

.t1-pro-landing .section-light {
    background-color: #ffffff;
}

.t1-pro-landing .section-dark {
    background-color: #000000;
    color: #ffffff;
}

.t1-pro-landing .section-gray {
    background-color: #f6f6f6;
}

/* ==========================================================================
   Responsive Container
   ========================================================================== */

.t1-pro-landing .container-fluid {
    width: 100%;
    padding-right: 20px;
    padding-left: 20px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .t1-pro-landing .container-fluid {
        max-width: 1400px;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.t1-pro-landing .loading {
    position: relative;
    overflow: hidden;
}

.t1-pro-landing .loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    to {
        left: 100%;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.t1-pro-landing .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .t1-pro-landing video,
    .t1-pro-landing .swiper-button-next,
    .t1-pro-landing .swiper-button-prev {
        display: none;
    }
}

/* ==========================================================================
   Video Banner Section (ins-video-banner)
   ========================================================================== */

.p3-pro-video-banner,
.ins-video-banner__section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
}

.p3-pro-video-banner__container,
.ins-video-banner__container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
    padding: clamp(2.5rem, -0.4rem + 12.4vw, 14.5rem) 20px;
}

.p3-pro-video-banner__header,
.ins-video-banner__header {
    text-align: center;
    max-width: 65rem;
    margin-bottom: clamp(2.5rem, 1.5rem + 4.5vw, 6.875rem);
    padding: 0 20px;
}

.p3-pro-video-banner__heading,
.ins-video-banner__heading {
    font-size: clamp(2rem, 1.5rem + 2.3vw, 4.2rem);
    font-weight: 700;
    margin-bottom: 0;
    line-height: 130%;
}

.p3-pro-video-banner__paragraph,
.ins-video-banner__paragraph {
    font-size: clamp(0.6rem, 0.46rem + 0.62vw, 1.2rem);
    line-height: 130%;
    color: #000000;
    margin-top: clamp(0.625rem, 0.29rem + 1.42vw, 2rem);
}

.p3-pro-video-banner__paragraph p,
.ins-video-banner__paragraph p {
    margin-bottom: 0;
}

.p3-pro-video-banner__video-wrapper,
.ins-video-banner__video-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    background-color: #f5f5f5;
}

.p3-pro-video-banner__video-wrapper--full-bleed,
.ins-video-banner__content--full-bleed .ins-video-banner__video-wrapper {
    border-radius: 0;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.p3-pro-video-banner__video,
.ins-video-banner__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

.p3-pro-video-banner__video-wrapper--full-bleed .p3-pro-video-banner__video,
.ins-video-banner__content--full-bleed .ins-video-banner__video {
    border-radius: 0;
}

.p3-pro-video-banner__video--desktop,
.ins-video-banner__video.desktop {
    display: block;
}

.p3-pro-video-banner__video--mobile,
.ins-video-banner__video.mobile {
    display: none;
}

@media (max-width: 768px) {
    .p3-pro-video-banner__video--desktop,
    .ins-video-banner__video.desktop {
        display: none;
    }
    
    .p3-pro-video-banner__video--mobile,
    .ins-video-banner__video.mobile {
        display: block;
    }
    
    .p3-pro-video-banner__header,
    .ins-video-banner__header {
        padding: 0 20px;
    }
}

/* Video Play Control */
.ins-video-banner__play-control,
.p3-pro-video-banner__play-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: #333;
}

.ins-video-banner__play-control:hover,
.p3-pro-video-banner__play-control:hover {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%);
}

.ins-video-banner__play-control--playing .ins-video-banner__pause-icon,
.p3-pro-video-banner__play-control--playing .p3-pro-video-banner__pause-icon {
    display: block;
}

.ins-video-banner__play-control--playing .ins-video-banner__play-icon,
.p3-pro-video-banner__play-control--playing .p3-pro-video-banner__play-icon {
    display: none;
}

.ins-video-banner__play-control--paused .ins-video-banner__play-icon,
.p3-pro-video-banner__play-control--paused .p3-pro-video-banner__play-icon {
    display: block;
}

.ins-video-banner__play-control--paused .ins-video-banner__pause-icon,
.p3-pro-video-banner__play-control--paused .p3-pro-video-banner__pause-icon {
    display: none;
}

.ins-video-banner__play-icon,
.ins-video-banner__pause-icon,
.p3-pro-video-banner__play-icon,
.p3-pro-video-banner__pause-icon {
    width: 32px;
    height: 32px;
    display: none;
}

.ins-video-banner__play-control[data-style="minimal"],
.p3-pro-video-banner__play-control[data-style="minimal"] {
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

.ins-video-banner__play-control[data-style="minimal"]:hover,
.p3-pro-video-banner__play-control[data-style="minimal"]:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .ins-video-banner__play-control,
    .p3-pro-video-banner__play-control {
        width: 60px;
        height: 60px;
    }
    
    .ins-video-banner__play-icon,
    .ins-video-banner__pause-icon,
    .p3-pro-video-banner__play-icon,
    .p3-pro-video-banner__pause-icon {
        width: 24px;
        height: 24px;
    }
}

/* Mobile header below video */
@media (max-width: 768px) {
    .ins-video-banner__container--mobile-below,
    .p3-pro-video-banner__container--mobile-below {
        display: flex;
        flex-direction: column;
        padding-top: 0;
    }

    .ins-video-banner__container--mobile-below .ins-video-banner__content,
    .p3-pro-video-banner__container--mobile-below .p3-pro-video-banner__video-wrapper {
        order: 1;
    }

    .ins-video-banner__container--mobile-below .ins-video-banner__header,
    .p3-pro-video-banner__container--mobile-below .p3-pro-video-banner__header {
        order: 2;
        margin-top: 30px;
        margin-bottom: 30px !important;
        text-align: left;
        width: 100%;
    }
}

/* ==========================================================================
   Early Bird Product Section
   ========================================================================== */

.early-bird-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.early-bird-section.dark {
    background-color: #000;
    color: #FFF;
}

.early-bird-container {
    max-width: 1400px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 97px;
    align-items: center;
    border-radius: 20px;
}

.early-bird-container.image-right {
    grid-template-columns: 1fr 1fr;
}

.early-bird-container.image-right .early-bird-media {
    order: 2;
}

.early-bird-container.image-right .early-bird-content {
    order: 1;
}

.early-bird-section.dark .early-bird-container {
    background-color: #3F3F3F;
}

.early-bird-media {
    flex: 1;
    display: flex;
}

.early-bird-media-inner {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.early-bird-section.dark .early-bird-media-inner {
    background-color: #D0D0D0;
}

.early-bird-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 20px;
}

.early-bird-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.early-bird-content-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.early-bird-label {
    width: fit-content;
    padding: 9px 18px;
    color: #FFF;
    border-radius: 4px;
    background: #364564;
    font-size: 14px;
    font-weight: 700;
    line-height: 100%;
    border: 1px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.early-bird-heading {
    margin: 0;
    font-size: clamp(1.44rem, 1.249rem + 0.813vw, 2.225rem);
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.early-bird-subheading {
    color: rgba(0, 0, 0, 0.60);
    font-size: clamp(0.603rem, 0.461rem + 0.605vw, 1.187rem);
    line-height: 1.4;
    margin-bottom: 0;
}

.early-bird-section.dark .early-bird-subheading {
    color: rgba(255, 255, 255, 0.80);
}

.early-bird-prices {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 900;
    line-height: 100%;
}

.early-bird-current-price {
    font-size: clamp(1.071rem, 0.947rem + 0.529vw, 1.583rem);
    color: #F26A17;
}

.early-bird-compare-price {
    font-size: 16px;
    color: #9F9F9F;
    font-weight: 400;
    text-decoration: line-through;
}

.early-bird-section.dark .early-bird-compare-price {
    color: #FFF;
}

.early-bird-features {
    margin-top: 5px;
}

.early-bird-features-list {
    list-style: disc outside;
    margin: 0;
    padding-left: 1.25rem;
}

.early-bird-features-list li {
    list-style: disc outside !important;
    margin-bottom: 4px;
    display: list-item;
    font-size: clamp(0.603rem, 0.457rem + 0.619vw, 1.2rem);
    line-height: 1.4;
    color: #111213;
    padding: 0;
}

.early-bird-features-list li::marker {
    color: currentColor;
    margin-right: 6px;
}

.early-bird-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.early-bird-btn {
    position: relative;
    padding: 13px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.early-bird-btn--primary {
    background: linear-gradient(90deg, #072A45 0%, #5684A7 100%);
    color: #FFFFFF;
    padding: 12px 22px;
    border-radius: 28px;
}

.early-bird-btn--primary:hover {
    color: #FFFFFF;
    transform: none;
    box-shadow: none;
}

.early-bird-btn--secondary {
    background: transparent;
    border: 1px solid rgba(31, 70, 101, 0.2);
    color: inherit;
    padding: 10px 20px;
    border-radius: 28px;
}

.early-bird-btn--secondary:hover {
    transform: none;
    box-shadow: none;
}

.early-bird-section.theme-style-boxed {
    background: #373737;
    color: #e6e6e6;
    border-radius: 12px;
    padding: 28px;
}

.early-bird-section.theme-style-boxed .early-bird-container {
    background: transparent;
}

.early-bird-section.theme-style-boxed .early-bird-heading {
    color: #ffffff;
    font-weight: 700;
}

.early-bird-section.theme-style-boxed .feature-text {
    color: #A6A6A6;
}

.early-bird-section.theme-style-boxed .early-bird-btn--secondary {
    color: #ffffff;
    border-color: #ffffff;
}

.early-bird-section.theme-style-hero {
    background: #f6f6f6;
    color: #111213;
    border-radius: 12px;
    padding: 28px;
}

.early-bird-section.theme-style-hero .early-bird-media-inner {
    border-radius: 12px;
}

@media screen and (max-width: 1200px) {
    .early-bird-container {
        max-width: 1200px;
        gap: 60px;
    }
}

@media screen and (max-width: 1024px) {
    .early-bird-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .early-bird-container.image-right .early-bird-media,
    .early-bird-container.image-right .early-bird-content {
        order: initial;
    }
    
    .early-bird-content-inner {
        gap: 15px;
    }
}

@media screen and (max-width: 768px) {
    .early-bird-container {
        gap: 20px;
    }
    
    .early-bird-section.theme-style-hero,
    .early-bird-section.theme-style-boxed {
        padding: 0 !important;
        background-color: transparent !important;
    }
    
    .early-bird-content-inner {
        gap: 12px;
    }
    
    .early-bird-compare-price {
        font-size: 14px;
    }
    
    .early-bird-media-inner {
        min-height: 220px;
    }
    
    .early-bird-image {
        object-fit: cover;
    }
    
    .early-bird-buttons {
        gap: 10px;
    }
    
    .early-bird-btn {
        font-size: 14px;
        padding: 12px 16px;
    }
}

@media screen and (max-width: 480px) {
    .early-bird-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .early-bird-container {
        gap: 14px;
    }
    
    .early-bird-btn--secondary {
        margin-left: 0;
    }
    
    .early-bird-media-inner {
        min-height: 180px;
    }
    
    .early-bird-image {
        object-fit: cover;
    }
    
    .early-bird-btn {
        font-size: 13px;
        padding: 10px 12px;
        white-space: nowrap;
    }
}
