/* oneplusone Theme */
:root {
    --color-navy: #0A1C2E;
    --color-gold: #D4AF37;
    --color-cream: #F8F7F2;
    --announcement-h: 40px;
    --header-h: 64px;
}

body.no-announcement {
    --announcement-h: 0px;
}

body.page-inner {
    padding-top: calc(var(--announcement-h) + var(--header-h));
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Announcement bar */
.announcement-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: var(--announcement-h);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0 2.5rem;
    text-align: center;
}
.announcement-bar__link {
    color: var(--color-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    white-space: nowrap;
}
.announcement-bar__link:hover {
    text-decoration: underline;
}
.announcement-bar__close {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.25rem;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
}
.announcement-bar__close:hover {
    color: #fff;
}

/* Site header */
.site-header,
#site-header {
    top: var(--announcement-h);
    background: transparent;
}
.site-header .site-logo,
#site-header .site-logo,
.site-wordmark .site-logo {
    display: block;
    height: 2.125rem;
    width: auto;
    min-width: 7.25rem;
    max-width: 12rem;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
@media (min-width: 1024px) {
    .site-header .site-logo,
    #site-header .site-logo,
    .site-wordmark .site-logo {
        height: 2.375rem;
        min-width: 8rem;
    }
}
#site-header.scrolled,
.site-header.scrolled {
    background: rgba(10, 28, 46, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}
body.page-inner #site-header,
body.page-inner .site-header {
    background: rgba(10, 28, 46, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Nav dropdown mega menu */
.nav-dropdown__panel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.5rem;
    z-index: 40;
}

/* Trust strip */
.trust-strip {
    padding: 2rem 0;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.trust-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}
.trust-strip__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-strip__label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #4b5563;
    line-height: 1.4;
    max-width: 10rem;
}

/* Product image with brand badge */
.product-image {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f3f4f6;
}
.product-image__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-image__brand {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    z-index: 5;
    padding: 0.375rem 0.625rem;
    background: rgba(10, 28, 46, 0.78);
    border-radius: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.product-image__logo {
    height: 0.875rem;
    width: auto;
    min-width: 4.5rem;
    display: block;
}
@media (min-width: 768px) {
    .product-image__brand {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.4375rem 0.75rem;
    }
    .product-image__logo {
        height: 1rem;
        min-width: 5rem;
    }
}
.product-image--thumb .product-image__brand {
    top: 0.25rem;
    left: 0.25rem;
    padding: 0.2rem 0.35rem;
}
.product-image--thumb .product-image__logo {
    height: 0.5rem;
    min-width: 2.5rem;
}

/* Tufina-style product card */
.product-classic {
    display: flex;
    flex-direction: column;
}
.product-classic img {
    transition: transform 0.5s ease;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: var(--color-gold);
    color: var(--color-navy);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: background-color 0.2s;
}
.btn-primary:hover {
    background-color: #c4a030;
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border: 1px solid var(--color-navy);
    color: var(--color-navy);
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: var(--color-navy);
    color: white;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    font-size: 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s;
}
.btn-outline-white:hover {
    background: white;
    color: var(--color-navy);
}

.form-input, .form-select {
    width: 100%;
    padding: 0.625rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: white;
    transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.strap-btn.active {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--color-gold), var(--color-navy));
}
.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}
.timeline-dot {
    position: absolute;
    left: -1.625rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid white;
    box-shadow: 0 0 0 2px var(--color-gold);
}
.timeline-content {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Article prose */
.article-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    color: var(--color-navy);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}
.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--color-navy);
    margin-top: 2rem;
    margin-bottom: 1rem;
}
.article-content p {
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 1rem;
}
.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--color-navy);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    overflow-x: auto;
    display: block;
}
.article-content th,
.article-content td {
    border: 1px solid #e5e7eb;
    padding: 0.625rem 0.875rem;
    text-align: left;
    vertical-align: top;
}
.article-content th {
    background: #f8f7f2;
    font-weight: 600;
    color: var(--color-navy);
}
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem auto;
    display: block;
}
.article-content .faq-block {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(212, 175, 55, 0.35);
}
.article-content ul, .article-content ol {
    color: #4b5563;
    line-height: 1.8;
    margin: 1rem 0 1rem 1.25rem;
}

/* Compare table */
#compare-table th, #compare-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    vertical-align: top;
}
#compare-table th:first-child,
#compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #6b7280;
    background: #fafafa;
    position: sticky;
    left: 0;
    z-index: 1;
}
#compare-table thead th {
    background: var(--color-navy);
    color: white;
    font-family: 'Playfair Display', serif;
}

#global-modal.flex {
    display: flex;
}

/* Home Banner Carousel */
body.page-home .home-banner {
    margin-top: calc(-1 * (var(--announcement-h) + var(--header-h)));
}
.home-banner {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 360px;
    overflow: hidden;
    background: var(--color-navy);
}
@media (min-width: 768px) {
    .home-banner {
        height: 80vh;
        min-height: 480px;
    }
}
.home-banner__track {
    position: relative;
    width: 100%;
    height: 100%;
}
.home-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}
.home-banner__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.home-banner__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    transition: transform 6s ease-out;
}
.home-banner__slide.is-active .home-banner__bg {
    transform: scale(1.03);
}
.home-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}
.home-banner__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    color: #fff;
}
.home-banner__title {
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.15;
    margin-bottom: 1rem;
    max-width: 48rem;
}
.home-banner__subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 36rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}
.home-banner__cta {
    min-width: 10rem;
}
.home-banner__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.home-banner__arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}
.home-banner__arrow--prev { left: 1rem; }
.home-banner__arrow--next { right: 1rem; }
@media (min-width: 768px) {
    .home-banner__arrow--prev { left: 2rem; }
    .home-banner__arrow--next { right: 2rem; }
}
.home-banner__dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
}
.home-banner__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
    cursor: pointer;
}
.home-banner__dot.is-active {
    background: var(--color-gold);
    transform: scale(1.2);
}
