/* Highlight Products Section Styles */

/* Hero Section */
.leaf-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.leaf-hero-video {
    position: absolute;
    right: 0;
    top: 0;
    width: 70%;
    height: 100%;
}

.leaf-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leaf-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 50%;
}

.leaf-hero-content h1 {
    font-size: 4rem;
    color: var(--blue-1, #0757a9);
    line-height: 1.2;
}

.leaf-hero-content h1 sup {
    font-size: 1.5rem;
    vertical-align: super;
}

/* Highlight Sections */
.highlight-section {
    /* Keep vertical spacing between sections <= 150px (75px top + 75px bottom) */
    padding: 25px
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.highlight-grid.two-cols-equal {
    align-items: flex-start;
}

.highlight-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.highlight-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.highlight-text h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.highlight-text p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.highlight-text ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.highlight-text ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.highlight-text .italic {
    font-style: italic;
}

.highlight-text .font-semibold {
    font-weight: 600;
}

.highlight-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.highlight-media img,
.highlight-media video {
    max-width: 100%;
    border-radius: 8px;

}

/* Blue color utility */
.blue {
    color: var(--blue-1, #0757a9);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.product-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 200ms ease, background-color 200ms ease;
    text-decoration: none;
    display: block;
    background: #fff;
}

.product-card:hover {
    background-color: #fff;
    border-color: transparent;
    box-shadow: 0 0 0 1px var(--card-border, #214ecd);
}

.product-card:focus-visible {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(24, 99, 255, 0.35);
}

.product-card-image {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: #f9fafb;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-card-name {
    padding: 0.75rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--blue-1, #0757a9);
    font-weight: 700;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* CTA Section */
.leaf-cta {
    background-color: #eff6ff;
    /* Keep vertical spacing between sections <= 150px */
    padding: min(4rem, 75px) 0;
    margin-top: 0;
    border-top: 1px solid #dbeafe;
    text-align: center;
}

.leaf-cta h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .leaf-hero-content h1 {
        font-size: 3rem;
    }

    .highlight-grid {
        gap: 2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

@media (max-width: 768px) {
    .leaf-hero {
        height: auto;
        flex-direction: column;
    }

    .leaf-hero-video {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .leaf-hero-content {
        max-width: 100%;
        text-align: center;
        padding: 2rem 1rem;
    }

    .leaf-hero-content h1 {
        font-size: 2.5rem;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
    }

    .highlight-grid.two-cols-equal {
        grid-template-columns: 1fr;
    }

    .highlight-media {
        order: -1;
    }

    .highlight-text h2 {
        font-size: 1.5rem;
    }

    .highlight-text h3 {
        font-size: 1.25rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .leaf-hero-content h1 {
        font-size: 2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* ======================= */
/* POP Page Specific Styles */
/* ======================= */

/* POP Hero Section */
.pop-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.pop-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.pop-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pop-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 50%;
}

.pop-hero-content h1 {
    font-size: 6rem;
    color: var(--blue-1, #0757a9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pop-hero-content h1 sup {
    font-size: 2rem;
    vertical-align: super;
}

.pop-hero-content h2 {
    font-size: 3rem;
    color: var(--blue-1, #0757a9);
    font-weight: 400;
}

/* Carousel */
.carousel-container {
    position: relative;
    width: 80%;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-slides {
    width: 70%;
    aspect-ratio: 1 / 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--blue-1, #0757a9);
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #fff;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-dot.active,
.carousel-dot:hover {
    background: var(--blue-1, #0757a9);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Products Grid Large */
.products-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* POP Responsive */
@media (max-width: 768px) {
    .pop-hero {
        height: auto;
        min-height: 50vh;
    }

    .pop-hero-content {
        max-width: 100%;
        text-align: left;
        padding: 2rem 1rem;
    }

    .pop-hero-content h1 {
        font-size: 4rem;
    }

    .pop-hero-content h2 {
        font-size: 2rem;
    }

    .products-grid-large {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .pop-hero-content h1 {
        font-size: 3rem;
    }

    .pop-hero-content h2 {
        font-size: 1.5rem;
    }

    .products-grid-large {
        grid-template-columns: 1fr;
    }
}

/* ========================== */
/* F1000Plus Page Styles */
/* ========================== */

/* F1000 Hero Section */
.f1000-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.f1000-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.f1000-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.f1000-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 50%;
}

.f1000-hero-content h1 {
    font-size: 5rem;
    color: var(--blue-1, #0757a9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.f1000-hero-content h2 {
    font-size: 2.5rem;
    color: var(--blue-1, #0757a9);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.f1000-hero-content .tagline {
    font-size: 1.5rem;
    color: var(--blue-1, #0757a9);
    font-style: italic;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.feature-card:hover {
    background-color: #eff6ff;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    line-height: 1.6;
    margin: 0;
}

.feature-image {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* F1000 Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .f1000-hero-content h1 {
        font-size: 4rem;
    }

    .f1000-hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .f1000-hero {
        height: auto;
        min-height: 50vh;
    }

    .f1000-hero-content {
        max-width: 100%;
        text-align: left;
        padding: 2rem 1rem;
    }

    .f1000-hero-content h1 {
        font-size: 3rem;
    }

    .f1000-hero-content h2 {
        font-size: 1.5rem;
    }

    .f1000-hero-content .tagline {
        font-size: 1.125rem;
    }

    .feature-card {
        flex-direction: column;
    }

    .feature-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .f1000-hero-content h1 {
        font-size: 2.5rem;
    }

    .f1000-hero-content h2 {
        font-size: 1.25rem;
    }
}

/* ========================== */
/* Interactive SL Page Styles */
/* ========================== */

/* Interactive Hero Section */
.interactive-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.interactive-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.interactive-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.interactive-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 50%;
}

.interactive-hero-content h1 {
    font-size: 5rem;
    color: var(--blue-1, #0757a9);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.interactive-hero-content h2 {
    font-size: 2.5rem;
    color: var(--blue-1, #0757a9);
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.interactive-hero-content .tagline {
    font-size: 1.5rem;
    color: var(--blue-1, #0757a9);
    font-style: italic;
}

/* Phases Grid */
.phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.phase-card {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.phase-image {
    width: 100%;
    height: 150px;
    margin-bottom: 1rem;
}

.phase-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.phase-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.phase-card p {
    line-height: 1.6;
    margin: 0;
}

/* Open/Close Cards */
.openclose-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
}

.openclose-content {
    flex: 1;
}

.openclose-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.openclose-content p {
    line-height: 1.6;
    margin: 0;
}

.openclose-image {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.openclose-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Text utilities */
.text-sm {
    font-size: 0.875rem;
}

.text-center {
    text-align: left;
}

.mb-4 {
    margin-bottom: 1rem;
}

/* Interactive Responsive */
@media (max-width: 1024px) {
    .phases-grid {
        grid-template-columns: 1fr;
    }

    .interactive-hero-content h1 {
        font-size: 4rem;
    }

    .interactive-hero-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .interactive-hero {
        height: auto;
        min-height: 50vh;
    }

    .interactive-hero-content {
        max-width: 100%;
        text-align: left;
        padding: 2rem 1rem;
    }

    .interactive-hero-content h1 {
        font-size: 3rem;
    }

    .interactive-hero-content h2 {
        font-size: 1.5rem;
    }

    .interactive-hero-content .tagline {
        font-size: 1.125rem;
    }

    .openclose-card {
        flex-direction: column;
        text-align: center;
    }

    .openclose-image {
        width: 100%;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .interactive-hero-content h1 {
        font-size: 2.5rem;
    }

    .interactive-hero-content h2 {
        font-size: 1.25rem;
    }
}

/* ========================== */
/* CAD-CAM Page Styles */
/* ========================== */

/* CAD-CAM Hero Section */
.cadcam-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.cadcam-hero-video {
    position: absolute;
    right: 0;
    top: 0;
    width: 80%;
    height: 100%;
}

.cadcam-hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cadcam-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 60%;
}

.cadcam-hero-content h1 {
    font-size: 5rem;
    line-height: 1.1;
}

.cadcam-hero-content h1 sup {
    font-size: 2rem;
    vertical-align: super;
}

/* Gradient text effect */
.gradient-text {
    background: linear-gradient(to right, #1d4ed8, #14b8a6, #84cc16);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* CAD-CAM CTA */
.cadcam-cta {
    text-align: center;
    padding: 2rem;
    background: #f9fafb;
    border-radius: 8px;
}

.cadcam-cta p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0;
}

.text-lg {
    font-size: 1.125rem;
}

/* CAD-CAM Responsive */
@media (max-width: 1024px) {
    .cadcam-hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .cadcam-hero {
        height: auto;
        min-height: 50vh;
        flex-direction: column;
    }

    .cadcam-hero-video {
        position: relative;
        width: 100%;
        height: 50vh;
    }

    .cadcam-hero-content {
        max-width: 100%;
        text-align: center;
        padding: 2rem 1rem;
    }

    .cadcam-hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .cadcam-hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ========================== */
/* Sleep Apnea Page Styles */
/* ========================== */

/* Sleep Hero Section */
.sleep-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sleep-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.sleep-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.sleep-hero-content {
    position: relative;
    z-index: 10;
    padding-block: 2rem;
    max-width: 50%;
    color: var(--blue-1, #0757a9);
}

.sleep-hero-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sleep-hero-content h1 {
    font-size: 6rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.sleep-hero-content h1.font-bold {
    font-weight: 700;
}

/* Sleep Responsive */
@media (max-width: 1024px) {
    .sleep-hero-content h1 {
        font-size: 5rem;
    }

    .sleep-hero-content h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .sleep-hero {
        height: auto;
        min-height: 50vh;
    }

    .sleep-hero-content {
        max-width: 100%;
        text-align: left;
        padding-block: 2rem;
    }

    .sleep-hero-content h1 {
        font-size: 4rem;
    }

    .sleep-hero-content h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .sleep-hero-content h1 {
        font-size: 3rem;
    }
}

/* ========================== */
/* 3DLeone Designer Page Styles */
/* ========================== */

/* Designer Hero Section */
.designer-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.designer-hero-image {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.designer-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.designer-hero-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    max-width: 50%;
    color: #fff;
}

.designer-hero-content h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.designer-hero-content h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.designer-hero-content h1.font-bold {
    font-weight: 700;
}

/* Designer Features Grid */
.designer-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.designer-feature {
    display: flex;
    flex-direction: column;
}

.designer-feature img {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.designer-feature span {
    font-size: 1rem;
}

/* Designer Responsive */
@media (max-width: 1024px) {
    .designer-hero-content h1 {
        font-size: 3rem;
    }

    .designer-hero-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .designer-hero {
        height: auto;
        min-height: 50vh;
    }

    .designer-hero-content {
        max-width: 100%;
        text-align: left;
        padding: 2rem 1rem;
    }

    .designer-hero-content h1 {
        font-size: 2.5rem;
    }

    .designer-hero-content h3 {
        font-size: 1.25rem;
    }

    .designer-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .designer-hero-content h1 {
        font-size: 2rem;
    }

    .designer-features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================== */
/* Skeleton Loader Styles */
/* ========================== */

.product-card.skeleton {
    pointer-events: none;
}

.skeleton-image,
.skeleton-text {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    width: 80%;
    margin: 0.75rem auto;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
