/**
 * Ultra-Form Mfg. - Discover Us Page Styles (Phase 3: Premium Visual Refinement)
 * Color Palette:
 *   --uf-navy-primary: #08264B
 *   --uf-navy-deep:    #061B35
 *   --uf-blue-corp:    #1976B9
 *   --uf-blue-hover:   #135e96
 *   --uf-blue-light:   #EAF3FA
 *   --uf-white:        #FFFFFF
 *   --uf-text-body:    #172B45
 *   --uf-border:       #DCE5ED
 */

:root {
    --uf-navy-primary: #08264B;
    --uf-navy-deep: #061B35;
    --uf-blue-corp: #1976B9;
    --uf-blue-hover: #135e96;
    --uf-blue-light: #EAF3FA;
    --uf-white: #FFFFFF;
    --uf-text-body: #172B45;
    --uf-text-muted: #5A6D82;
    --uf-border: #DCE5ED;
    --uf-shadow-sm: 0 4px 15px rgba(8, 38, 75, 0.05);
    --uf-shadow-md: 0 10px 35px rgba(8, 38, 75, 0.09);
    --uf-shadow-lg: 0 20px 50px rgba(8, 38, 75, 0.15);
    --uf-radius-card: 22px;
    --uf-radius-btn: 50px;
    --uf-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Hero Section (Cinematic Precision Manufacturing Imagery)
   ========================================================================== */

.discover-hero {
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 10%;
    overflow: hidden;
}

/* Single perfectly balanced cinematic overlay */
.discover-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 38, 75, 0.88) 0%, rgba(8, 38, 75, 0.65) 55%, rgba(6, 27, 53, 0.85) 100%);
    z-index: 1;
}

.discover-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.discover-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2.2px;
    color: #6bbcf2;
    background: rgba(25, 118, 185, 0.30);
    border: 1px solid rgba(107, 188, 242, 0.40);
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    backdrop-filter: blur(4px);
    animation: ufFadeSlideDown 0.7s var(--uf-ease) both;
}

.discover-hero__title {
    font-weight: 900;
    font-size: 58px;
    line-height: 1.15;
    color: var(--uf-white);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    animation: ufFadeSlideDown 0.8s 0.1s var(--uf-ease) both;
}

.discover-hero__breadcrumb {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    animation: ufFadeSlideUp 0.8s 0.25s var(--uf-ease) both;
}

.discover-hero__breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.discover-hero__breadcrumb li + li::before {
    content: '/';
    margin: 0 10px;
    color: #6bbcf2;
    font-weight: 700;
}

.discover-hero__breadcrumb a {
    color: var(--uf-blue-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.discover-hero__breadcrumb a:hover {
    color: var(--uf-white);
    text-decoration: underline;
}

@keyframes ufFadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.discover-container {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ==========================================================================
   Introduction Section
   ========================================================================== */

.discover-intro {
    background: var(--uf-white);
    padding: 65px 0 25px 0;
}

.discover-intro__content {
    max-width: 920px;
}

.discover-intro__accent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.discover-intro__accent {
    width: 5px;
    height: 48px;
    background: var(--uf-blue-corp);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 6px;
}

.discover-intro__eyebrow {
    display: block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--uf-blue-corp);
    margin-bottom: 6px;
}

.discover-intro__title {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--uf-navy-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.discover-intro__desc {
    font-size: 18px;
    line-height: 1.65;
    color: var(--uf-text-body);
    margin: 0;
    padding-left: 23px;
}

/* ==========================================================================
   Showcase Carousel Section (Enlarged +25% Size)
   ========================================================================== */

.discover-showcase-section {
    background: var(--uf-white);
    padding: 20px 0 70px 0;
}

.showcase-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FBFE 100%);
    border: 1px solid var(--uf-border);
    border-radius: var(--uf-radius-card);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1.18fr 1fr;
    gap: 48px;
    align-items: center;
    box-shadow: var(--uf-shadow-md);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.showcase-card:hover {
    box-shadow: var(--uf-shadow-lg);
    border-color: #cbd9e5;
}

/* Left: Media Presentation (Height enlarged to 640px) */
.showcase-media {
    position: relative;
}

.showcase-pedestal {
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E1E8EE;
    border-radius: 18px;
    padding: 18px;
    height: 640px;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 6px rgba(255, 255, 255, 0.8), 0 12px 35px rgba(8, 38, 75, 0.06);
    overflow: hidden;
}

.showcase-pedestal::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(234, 243, 250, 0.7) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-slide {
    position: absolute;
    inset: 0;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(35px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.65s var(--uf-ease), transform 0.65s var(--uf-ease);
}

.showcase-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
    z-index: 2;
}

/* Brochure Image: Enlarged to max 580px height (+23.4%) */
.showcase-img {
    max-height: 580px;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    filter: drop-shadow(0 20px 40px rgba(8, 38, 75, 0.18)) drop-shadow(0 4px 10px rgba(8, 38, 75, 0.08));
    transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-slide.is-active .showcase-img {
    transform: scale(1.02);
}

/* Right: Content & Controls */
.showcase-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.showcase-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--uf-blue-corp);
    background: var(--uf-blue-light);
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #d2e4f2;
}

.showcase-counter {
    font-size: 15px;
    font-weight: 600;
    color: var(--uf-text-muted);
}

.showcase-counter strong {
    font-size: 22px;
    font-weight: 900;
    color: var(--uf-blue-corp);
}

/* Text Panes */
.showcase-text-wrap {
    position: relative;
    min-height: 250px;
}

.showcase-pane {
    display: none;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.showcase-pane.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.showcase-title {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.25;
    color: var(--uf-navy-primary);
    margin: 0 0 14px 0;
    letter-spacing: -0.4px;
}

.showcase-desc {
    font-size: 17px;
    line-height: 1.6;
    color: var(--uf-text-body);
    margin: 0 0 24px 0;
}

.showcase-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.showcase-highlights li {
    font-size: 15px;
    color: var(--uf-text-muted);
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.showcase-highlights li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--uf-blue-corp);
    flex-shrink: 0;
}

/* Rotation Progress Bar (5.0s timing) */
.showcase-progress {
    height: 4px;
    background: #e2ecf4;
    border-radius: 4px;
    overflow: hidden;
    margin: 32px 0 22px 0;
    width: 100%;
}

.showcase-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--uf-blue-corp) 0%, #3ca0e7 100%);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Controls Bar */
.showcase-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.showcase-nav-btns {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--uf-border);
    background: var(--uf-white);
    color: var(--uf-navy-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(8, 38, 75, 0.05);
}

.showcase-arrow:hover {
    background: var(--uf-blue-corp);
    color: var(--uf-white);
    border-color: var(--uf-blue-corp);
    transform: scale(1.05);
    box-shadow: 0 4px 14px rgba(25, 118, 185, 0.3);
}

.showcase-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.showcase-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #cad7e2;
    cursor: pointer;
    transition: all 0.35s var(--uf-ease);
    padding: 0;
}

.showcase-dot.is-active {
    width: 32px;
    border-radius: 12px;
    background: var(--uf-blue-corp);
    box-shadow: 0 2px 10px rgba(25, 118, 185, 0.4);
}

.showcase-dot:hover:not(.is-active) {
    background: #9ab4cb;
}

.showcase-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--uf-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: ufPulse 2s infinite;
}

@keyframes ufPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .showcase-slide,
    .showcase-pane {
        transition: none !important;
        transform: none !important;
    }
    .discover-hero__title,
    .discover-hero__breadcrumb,
    .discover-hero__badge,
    .status-pulse {
        animation: none !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media screen and (max-width: 1120px) {
    .showcase-card {
        grid-template-columns: 1fr;
        padding: 36px;
        gap: 36px;
    }

    .showcase-pedestal {
        height: 520px;
        min-height: 520px;
    }

    .showcase-img {
        max-height: 480px;
    }

    .showcase-title {
        font-size: 30px;
    }
}

@media screen and (max-width: 768px) {
    .discover-hero {
        padding: 50px 6%;
        min-height: 320px;
    }

    .discover-hero__title {
        font-size: 42px;
    }

    .discover-intro__title {
        font-size: 32px;
    }

    .showcase-card {
        padding: 26px 20px;
        border-radius: 16px;
    }

    .showcase-pedestal {
        height: 440px;
        min-height: 440px;
        padding: 14px;
    }

    .showcase-img {
        max-height: 400px;
    }

    .showcase-title {
        font-size: 24px;
    }

    .showcase-desc {
        font-size: 15px;
    }

    .showcase-highlights li {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .discover-hero {
        padding: 40px 6%;
        min-height: 270px;
    }

    .discover-hero__badge {
        font-size: 10px;
        padding: 5px 12px;
    }

    .discover-hero__title {
        font-size: 32px;
    }

    .discover-intro__title {
        font-size: 26px;
    }

    .showcase-pedestal {
        height: 340px;
        min-height: 340px;
    }

    .showcase-img {
        max-height: 310px;
    }

    .showcase-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .showcase-nav-btns {
        width: 100%;
        justify-content: space-between;
    }
}
