/* ============================================
 * Front Page Styles
 * Only loaded on the homepage
 * ============================================ */

/* ============================================
 * Section Spacing
 * ============================================ */
/* --- section spacing, mobile base --- */
.fp-first-pt   { padding-top: 4rem; }
.fp-section-pt { padding-top: 2.5rem; }
.fp-section-pb { padding-bottom: 2.5rem; }

.fp-pt-8 { padding-top: 4rem; }
.fp-pt-6 { padding-top: 3rem; }
.fp-pt-2 { padding-top: 2rem; }
.fp-pb-6 { padding-bottom: 3rem; }
.fp-pb-8 { padding-bottom: 4rem; }

.fp-title-gap { margin-bottom: 1.25rem; }
@media (min-width: 1024px) {
    .fp-first-pt   { padding-top: 8rem; }
    .fp-section-pt { padding-top: 4rem; }
    .fp-section-pb { padding-bottom: 4rem; }

    .fp-pt-8 { padding-top: 8rem; }
    .fp-pt-6 { padding-top: 6rem; }
    .fp-pb-6 { padding-bottom: 6rem; }
    .fp-pb-8 { padding-bottom: 8rem; }

    .fp-title-gap { margin-bottom: 2rem; }
}

/* ============================================
 * Banner
 * ============================================ */
.fp-banner-h { height: 65vh; }
@media (min-width: 1024px) {
    .fp-banner-h { height: 85vh; }
}

/* ============================================
 * Card Spacing
 * ============================================ */
.fp-card-gap     { margin-top: 1rem; }
.fp-card-sub-gap { margin-bottom: 0.5rem; }
@media (min-width: 1024px) {
    .fp-card-gap     { margin-top: 1.25rem; }
    .fp-card-sub-gap { margin-bottom: 0.625rem; }
}

/* ============================================
 * Banner Title — keep Montserrat
 * ============================================ */
.fp-banner-title {
    font-family: 'Montserrat', sans-serif;
}

.fp-hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.75rem, 2.3vw, 3rem);
    line-height: 1.05;
}

.fp-banner-copy {
    width: min(100%, 42rem);
}

.fp-banner-subtitle {
    font-size: 0.75rem;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

/* ============================================
 * Banner text horizontal padding
 * ============================================ */
.fp-banner-pad {
    padding-inline: calc(var(--spacing) * 8);
    padding-bottom: 4rem;
}
@media (min-width: 1024px) {
    .fp-banner-pad {
        padding-inline: 6.5vw;
        padding-bottom: 5.5rem;
    }

    .fp-banner-copy {
        max-width: 42rem;
    }

    /* CTA section — match banner text + button sizing */
    .fp-cta-section p.text-sm {
        font-size: 1.25rem;
    }
    .fp-cta-section a.px-6.py-3 {
        font-size: 1.2rem;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* CTA section — base height (mobile) */
.fp-cta-section {
    height: 480px;
}
@media (min-width: 1024px) {
    .fp-cta-section {
        height: 720px;
    }
}

/* Mobile: Banner buttons — smaller, no wrap */
@media (max-width: 1023px) {
    .fp-banner-pad a.px-6.py-3 {
        font-size: 0.75rem;
        white-space: nowrap;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .fp-view-all-link {
        font-size: 0.75rem;
        white-space: nowrap;
    }
}

@media (max-width: 499px) {
    .fp-banner-h {
        height: auto;
        min-height: 0;
    }

    .fp-banner-picture {
        position: static;
        display: block;
        height: auto;
    }

    .fp-banner-picture img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .fp-banner-pad {
        position: absolute;
        inset: 0;
        height: auto;
        align-items: flex-end;
        padding: 0 clamp(1.45rem, 5.5vw, 2.6rem) clamp(2rem, 7vw, 3rem);
    }

    .fp-banner-copy {
        max-width: 88%;
    }

    .fp-hero-title {
        font-size: clamp(1.35rem, 6.2vw, 2rem);
        line-height: 1.08;
    }

    .fp-banner-subtitle {
        font-size: clamp(0.58rem, 2.6vw, 0.75rem);
        margin-bottom: clamp(0.45rem, 2vw, 0.65rem);
    }

    .fp-banner-pad p.text-sm {
        max-width: clamp(16.25rem, 64vw, 18.25rem);
        margin-bottom: clamp(0.85rem, 3.5vw, 1.35rem);
        font-size: clamp(0.88rem, 3.4vw, 1rem);
        line-height: 1.45;
    }

    .fp-banner-pad .flex.gap-4 {
        position: absolute;
        left: clamp(1.45rem, 5.5vw, 2.6rem);
        bottom: clamp(2rem, 6vw, 2.6rem);
        width: auto;
        flex-direction: column;
        align-items: flex-start;
        gap: clamp(0.75rem, 2.4vw, 1rem);
    }

    .fp-banner-pad a.px-6.py-3 {
        width: clamp(11.8rem, 48vw, 13.8rem);
        min-height: clamp(2rem, 6.4vw, 2.45rem);
        padding: 0.48rem 1rem;
        font-size: clamp(0.84rem, 2.75vw, 0.95rem);
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

}

/* ============================================
 * Lighting Applications & Projects — Image break-out
 * Image extends to left viewport edge on desktop
 * ============================================ */
.fp-projects-section {
    width: 96%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 1024px) {
    .fp-projects-section {
        display: grid;
        grid-template-columns: 55fr 45fr;
        gap: 6rem;
        align-items: center;
        width: 100%;
        max-width: none;
        padding: 0;
    }
    .fp-projects-image-wrap {
        padding-left: 0;
    }
    .fp-projects-image {
        height: 550px;
    }
}
.fp-projects-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    min-height: 200px;
}
@media (min-width: 1024px) {
    .fp-projects-image {
        aspect-ratio: auto;
        height: 82vh;
    }
}

/* Projects carousel — silent slide */
.fp-projects-carousel-wrap {
    width: 100%;
    overflow: hidden;
    position: relative;
}
.fp-projects-carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.fp-projects-carousel-track .fp-projects-slide {
    flex-shrink: 0;
    width: 100%;
}
.fp-projects-carousel-track .fp-projects-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
@media (min-width: 1024px) {
    .fp-projects-carousel-track .fp-projects-image {
        aspect-ratio: auto;
        height: 82vh;
    }
}
.fp-projects-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
}
.fp-projects-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease;
}
.fp-projects-dot.active,
.fp-projects-dot:hover {
    background: rgba(255,255,255,0.8);
}

/* ============================================
 * One-Stop Solutions — Stack cards vertically
 * ============================================ */
.fp-solution-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.fp-solution-text {
    width: 100%;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    flex-shrink: 0;
}
.fp-solution-image {
    width: 100%;
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    flex: 1;
    min-height: 80px;
}
@media (min-width: 1024px) {
    .fp-solution-image {
        min-height: 120px;
    }
}

/* One-Stop Solutions — image zoom on card hover */
.fp-solution-zoom img {
    transition: transform 0.6s ease;
}
.fp-solution-zoom:hover img {
    transform: scale(1.05);
}

/* One-Stop Solutions — card border & overlay */
.fp-card-bordered {
    border: 1px solid #000;
}
.fp-mass-overlay {
    background-color: rgba(0, 0, 0, 0.5);
}
.fp-mass-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
}
.fp-design-arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
}

/* One-Stop Solutions — card min-height + desktop full height */
.fp-solution-card { min-height: 12rem; }
.fp-mass-card { height: 14rem; }
@media (max-width: 1023px) {
    .fp-solutions-right > .flex-1 { flex: none; }
}
@media (min-width: 1024px) {
    .fp-h-full-desktop { height: 100%; }
    .fp-mass-card { height: 100%; }
}

/* One-Stop Solutions — card typography */
.fp-solution-title {
    font-weight: 500;
    font-size: 1rem;
}
@media (min-width: 1024px) {
    .fp-solution-title {
        font-size: 1.7rem;
    }
}
.fp-solution-desc {
    font-weight: 500;
    font-size: 0.875rem;
}
@media (min-width: 1024px) {
    .fp-solution-desc {
        font-size: 1.2rem;
    }
}
.fp-solution-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
 * Card hover image zoom — GPU-accelerated, no jump
 * ============================================ */
.fp-card-img {
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* ============================================
 * Carousel Dots Indicator
 * Ring-style dots — reference: hanya.test banner
 * ============================================ */
.fp-carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 0.5em;
    z-index: 20;
}
.carousel-dot {
    width: 1em;
    height: 1em;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50%;
    position: relative;
    transition: all 0.5s;
    flex-shrink: 0;
    padding: 0;
}
.carousel-dot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0.3em;
    height: 0.3em;
    background: #fff;
    border-radius: 50%;
}
.carousel-dot.active {
    border-color: #fff;
    background: transparent;
    transform: none;
}
.carousel-dot.active::after {
    display: none;
}
.carousel-dot:not(.active) {
    background: transparent;
}
.carousel-dot:not(.active):hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: transparent;
}

/* ============================================
 * Product Categories — Typography & Hover
 * ============================================ */
.fp-product-subtitle {
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 400;
    font-size: 0.9rem;
}

/* View All Products — red hover */
.fp-view-all-link {
    transition: color 0.2s ease, border-color 0.2s ease;
}
.fp-view-all-link:hover {
    color: #dc2626;
    border-color: #dc2626;
}

/* Section "View All" links — larger on desktop */
@media (min-width: 1024px) {
    a.text-sm.tracking-wide.border-b {
        font-size: 1.3rem;
    }
}

.fp-product-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}
@media (min-width: 1024px) {
    .fp-product-heading {
        font-size: 2.9rem;
    }
}
.fp-category-title {
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 400;
    font-size: 1.15rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s;
}
@media (min-width: 1024px) {
    .fp-category-title {
        font-size: 1.6rem;
    }
}

/* Hover on parent card — Product Categories */
div.fp-category-card:hover > a.fp-category-title {
    color: #dc2626;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Image zoom — only on image wrapper hover, NOT on title hover */
.fp-img-zoom:hover .fp-card-img {
    transform: scale(1.05);
}

/* Project & News cards — hover anywhere on card triggers title/desc */
.group:hover .fp-category-title {
    color: #dc2626;
}
a.group:hover > span.fp-category-title,
a.group:hover > h3.fp-category-title {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* News cards — description joins the hover effect */
.group:hover .fp-news-desc {
    color: #dc2626;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* Direct hover on any fp-category-title (fallback) */
a.fp-category-title:hover,
span.fp-category-title:hover,
h3.fp-category-title:hover {
    color: #dc2626;
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

/* News card — unified GoogleSansFlex */
.fp-news-category,
.fp-news-desc {
    font-family: 'Google Sans Flex', sans-serif;
    transition: color 0.3s;
}
@media (min-width: 1024px) {
    .fp-news-category,
    .fp-news-desc {
        font-size: 1rem;
    }
}

/* ============================================
 * Section Description — +0.2rem on desktop
 * ============================================ */
.fp-section-desc {
    font-size: 0.875rem;
}
@media (min-width: 1024px) {
    .fp-section-desc {
        font-size: 1.15rem;
    }
}

/* ============================================
 * Section Headings — 3.1rem
 * ============================================ */
.fp-section-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.775rem;
    font-weight: 500;
    line-height: 1.9rem;
}
@media (min-width: 1024px) {
    .fp-section-heading {
        font-size: 4.1rem;
        line-height: 4.4rem;
    }
}

/* ============================================
 * Section Buttons — sweep fill effect (GPU-accelerated)
 * ============================================ */
.fp-section-btn {
    text-transform: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.7s ease, border-color 0.7s ease;
}
.fp-section-btn::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    background: #b71c1c;
    border-radius: inherit;
    transition: transform 0.7s ease;
}
.fp-section-btn:hover {
    color: #fff;
    border-color: #b71c1c;
}
.fp-section-btn:hover::before {
    transform: scaleX(1);
}

/* Dark variant for black background section */
.fp-section-btn-dark {
    text-transform: none;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: color 0.7s ease, border-color 0.7s ease;
}
.fp-section-btn-dark::before {
    content: '';
    position: absolute;
    inset: -1px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left center;
    background: #b71c1c;
    border-radius: inherit;
    transition: transform 0.7s ease;
}
.fp-section-btn-dark::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: #fff;
    border-radius: inherit;
}
.fp-section-btn-dark-outline::after {
    background: transparent;
}
.fp-section-btn-dark:hover {
    color: #fff;
    border-color: #b71c1c;
}
.fp-section-btn-dark:hover::before {
    transform: scaleX(1);
}

/* ============================================
 * Lighting Applications & Projects — mobile spacing
 * ============================================ */
.fp-projects-text {
    padding-top: 2rem;
}
@media (min-width: 1024px) {
    .fp-projects-text {
        padding-top: 0;
    }
}

/* ============================================
 * Projects Section — description width constraint
 * ============================================ */
.fp-projects-desc {
    max-width: 36rem;
}

/* ============================================
 * Lighting Expertise & Design — Desktop fixed height
 * ============================================ */
@media (min-width: 1024px) {
    .fp-lighting-img {
        aspect-ratio: auto;
        height: 650px;
    }
}

@media (max-width: 499px) {
    .fp-carousel-dots {
        display: none;
    }
}
