/* ============================================
   Ekotek v2 — Home Page Styles
   ============================================ */

/* ---- Hero Section ---- */
.home-top-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: center;
    background: #101a24;
}

.home-top-hero .container {
    max-width: 1500px;
}

.home-top-hero-bg {
    position: absolute;
    inset: 0px -6px 0 auto;
    width: 53%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
}

.home-top-hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
    padding: 90px 0;
    color: #fff;
}

.home-top-hero-title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.45rem, 4.2vw, 4.9rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.035em;
}

.home-top-hero-line {
    width: 560px;
    max-width: 100%;
    height: 1px;
    margin: 28px 0;
    background: rgba(255, 255, 255, 0.26);
    position: relative;
}

.home-top-hero-line::before {
    content: "";
    position: absolute;
    left: 0;
    top: -1px;
    width: 46px;
    height: 3px;
    background: #fff;
}

.home-top-hero-text {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.8;
    font-weight: 500;
}

.home-top-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 34px;
    padding: 0 28px;
    border-radius: 999px;
    background: #fff;
    color: #101a24;
    text-decoration: none;
    font-family: var(--font-base, 'Google Sans Flex', sans-serif);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.home-top-hero-button:hover {
    background: #f1562c;
    color: #fff;
}

/* ============================================
   Featured Products (3D Carousel)
   ============================================ */
.home-section-heading {
    text-align: center;
}
.home-title-reveal {
    display: inline-block;
    clip-path: inset(0 100% 0 0);
    opacity: 0.15;
    transition: clip-path 0.85s steps(22, end), opacity 0.25s ease;
    will-change: clip-path;
}
.home-section-heading.is-visible .home-title-reveal,
.home-about-content.is-visible .home-title-reveal,
.home-export-copy.is-visible .home-title-reveal,
.home-export-map-head.is-visible .home-title-reveal {
    clip-path: inset(0 0 0 0);
    opacity: 1;
}
.home-title-divider {
    position: relative;
    width: 245px;
    max-width: 72vw;
    height: 1px;
    margin: 24px auto 0;
    background: rgba(6, 20, 58, 0.16);
}
.home-title-divider::after {
    content: "";
    position: absolute;
    top: -1px;
    width: 105px;
    height: 3px;
    background: #101010;
    transform: translateX(-50%);
}
.home-about-content .home-title-divider, .home-export-copy .home-title-divider {
    margin-left: 0;
    margin-right: 0;
}
.home-about-content .home-title-divider::after, .home-export-section .home-title-divider::after, .home-export-copy .home-title-divider::after {
    left: 0;
    transform: none;
}
.home-featured-products {
    padding: 92px 0 110px;
    background: #f3f6fb;
    overflow: hidden;
}
.home-featured-head {
    max-width: 980px;
    margin: 0 auto 42px;
    text-align: center;
}
.home-featured-title {
    margin: 0;
    color: #06143a;
    font-family: var(--font-base);
    font-size: clamp(2rem, 3.2vw, 3.5rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.045em;
    border-bottom: 0px;
}
.home-product-tools {
    margin: 34px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.home-product-search {
    position: relative;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(6, 20, 58, 0.09);
    box-shadow: 0 14px 30px rgba(6, 20, 58, 0.06);
}
.home-product-search form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 6px;
}
.home-product-search input {
    width: 100%;
    min-height: 42px;
    border: 0;
    outline: 0;
    padding: 0 16px;
    background: transparent;
    color: #06143a;
    font-size: 15px;
    margin-bottom: 0px;
    margin-top: 0px;
}
.home-product-search button {
    width: 58px;
    height: 42px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 8px;
    background: #f1562c;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.home-product-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.home-products-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 22px;
    border-radius: 8px;
    background: #06143a;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 16px 36px rgba(6, 20, 58, 0.12);
    transition: background 0.2s ease, color 0.2s ease;
}
.home-products-link:hover {
    background: #f1562c;
    color: #fff;
}
.home-featured-text {
    max-width: 820px;
    margin: 18px auto 0;
    color: #5e6c84;
    font-size: 15px;
    line-height: 1.85;
    text-align: center;
}

.featured-stage {
    position: relative;
    max-width: 1240px;
    height: 430px;
    margin: 0 auto;
}
.featured-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(420px, 82vw);
    height: 430px;
    overflow: hidden;
    border-radius: 8px;
    color: #06143a;
    background: #fff;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(0.82);
    transition: transform 0.45s ease, opacity 0.35s ease, filter 0.35s ease;
    box-shadow: 0 26px 60px rgba(6, 20, 58, 0.12);
    isolation: isolate;
}
.featured-card img {
    position: static;
    width: 100%;
    height: 270px;
    object-fit: cover;
    display: block;
    z-index: -2;
}
.featured-card::after {
    display: none;
}
.featured-card-content {
    display: block;
    padding: 22px 24px 24px;
    text-align: center;
}
.featured-card-title {
    display: block;
    color: #06143a;
    font-size: 21px;
    line-height: 1.22;
    font-weight: 800;
}
.featured-card-label {
    display: block;
    margin-top: 10px;
    color: #f1562c;
    font-size: 14px;
    font-weight: 700;
}
.featured-card-desc {
    display: -webkit-box;
    margin-top: 16px;
    color: #5e6c84;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) scale(1);
    z-index: 3;
}
.featured-card.is-prev {
    opacity: 0.92;
    pointer-events: auto;
    transform: translateX(calc(-50% - 430px)) scale(0.92) perspective(900px) rotateY(10deg);
    z-index: 2;
    filter: brightness(0.78);
}
.featured-card.is-next {
    opacity: 0.92;
    pointer-events: auto;
    transform: translateX(calc(-50% + 430px)) scale(0.92) perspective(900px) rotateY(-10deg);
    z-index: 2;
    filter: brightness(0.78);
}
.featured-card:hover {
    color: #06143a;
}
.featured-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}
.featured-control {
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #06143a;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    box-shadow: 0 12px 28px rgba(6, 20, 58, 0.08);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.featured-control:hover {
    background: #f1562c;
    color: #fff;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 991px) {
    .home-top-hero-bg {
        width: 100%;
        opacity: 0.55;
    }
    .featured-stage {
        height: 390px;
    }
    .featured-card {
        height: 390px;
    }
    .featured-card img {
        height: 240px;
    }
    .featured-card.is-prev {
        transform: translateX(calc(-50% - 310px)) scale(0.88) perspective(900px) rotateY(10deg);
    }
    .featured-card.is-next {
        transform: translateX(calc(-50% + 310px)) scale(0.88) perspective(900px) rotateY(-10deg);
    }
}

@media (max-width: 767px) {
    .home-top-hero {
        min-height: 560px;
    }
    .home-top-hero-content {
        padding: 70px 0;
    }
    .home-top-hero-title {
        font-size: clamp(2rem, 6vw, 2.45rem);
    }
    .home-featured-products {
        padding: 64px 0 78px;
    }
    .featured-stage {
        height: 350px;
    }
    .featured-card {
        width: min(330px, 88vw);
        height: 380px;
    }
    .featured-card img {
        height: 230px;
    }
    .featured-card.is-prev,
    .featured-card.is-next {
        opacity: 0;
        pointer-events: none;
        transform: translateX(-50%) scale(0.82);
    }
    .home-products-link {
        width: 100%;
    }
}

/* ============================================
   About Section
   ============================================ */
.home-about-section {
    background: #fff;
    padding: 0;
}
.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 520px;
}
.home-about-media {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: #dbe4ef;
}
.home-about-media img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    display: block;
}
.home-about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 78px clamp(34px, 6vw, 96px);
}
.home-about-kicker {
    margin-bottom: 18px;
    color: #06143a;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.32em;
    text-transform: uppercase;
}
.home-about-title {
    margin: 0;
    color: #06143a;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.045em;
    border-bottom: 0px;
}
.home-about-text {
    max-width: 760px;
    margin: 28px 0 0;
    color: #40506b;
    font-size: 15px;
    line-height: 1.9;
}
.home-about-button {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    margin-top: 30px;
    padding: 0 26px;
    border-radius: 999px;
    background: #101a29;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    transition: 0.2s ease;
}
.home-about-button:hover {
    background: #f1562c;
    color: #fff;
}
@media (max-width: 991px) {
    .home-about-grid {
        grid-template-columns: 1fr;
    }
    .home-about-content {
        padding: 54px 24px;
    }
}
@media (max-width: 767px) {
    .home-about-media,
    .home-about-media img {
        min-height: 360px;
    }
}

/* ============================================
   Applications Section
   ============================================ */
.home-applications-section {
    padding: 92px 0 108px;
    background: #fff;
}
.home-applications-head {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}
.home-applications-title {
    margin: 0;
    color: #101a29;
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.04em;
    border-bottom: 0px;
}
.home-applications-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px 16px;
}
.home-application-card {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border-radius: 32px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    isolation: isolate;
}
.home-application-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 0.3s ease;
}
.home-application-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(6, 20, 58, 0.48);
    z-index: -1;
}
.home-application-content {
    padding: 22px;
}
.home-application-title {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}
.home-application-card:hover {
    color: #fff;
}
.home-application-card:hover img {
    transform: scale(1.05);
}
@media (max-width: 1199px) {
    .home-applications-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}
@media (max-width: 767px) {
    .home-applications-section {
        padding: 64px 0 78px;
    }
    .home-applications-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Export Section
   ============================================ */
.home-export-section {
    padding: 92px 0 60px;
    background: #fff;
    overflow: hidden;
}
.home-export-grid {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 64px;
    align-items: center;
}
.home-export-title {
    margin: 0;
    color: #06143a;
    font-size: clamp(2rem, 3.3vw, 4rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.055em;
    border-bottom: 0px;
}
.home-export-title span {
    display: block;
    font-weight: 400;
    letter-spacing: -0.05em;
}
.home-export-text {
    max-width: 560px;
    margin: 34px 0 0;
    color: #5e6c84;
    font-size: 15px;
    line-height: 1.9;
}
.home-export-contact {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    color: #06143a;
    font-weight: 800;
    text-decoration: none;
}
.home-export-contact-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f6fb;
    color: #06143a;
    font-size: 18px;
}
.home-export-map {
    justify-items: right;
}
.home-export-map img {
    width: 80%;
    height: auto;
    display: block;
    opacity: 1;
}
@media (max-width: 991px) {
    .home-export-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}
@media (max-width: 767px) {
    .home-export-section {
        padding: 64px 0 0;
    }
}

/* ============================================
   Export Map Section
   ============================================ */
.home-export-map-section {
    padding: 26px 0 96px;
    background: #fff;
    overflow: hidden;
}
.home-export-map-card {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    border: 0;
    box-shadow: none;
    padding: 0 clamp(18px, 4vw, 42px) clamp(24px, 4vw, 42px);
}
.home-export-map-head {
    position: relative;
    z-index: 2;
    max-width: 880px;
    margin: 0 auto 10px;
    text-align: center;
}
.home-export-map-title {
    margin: 0;
    color: #202328;
    font-size: clamp(2.1rem, 5vw, 3.25rem);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    border-bottom: 0;
}
.home-export-map-title span {
    display: block;
}
.home-export-map-title strong {
    color: #f1562c;
    font-weight: 900;
}
.home-export-map-title::after {
    content: "";
    display: block;
    width: 300px;
    max-width: 72vw;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, transparent, #f1562c 16%, #f1562c 84%, transparent);
}
.home-export-map-head p {
    margin: 12px 0 0;
    color: #3f4754;
    font-size: clamp(1.05rem, 2vw, 1.55rem);
    line-height: 1.45;
    font-weight: 500;
}
.home-export-map-visual {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
}
.home-export-map-visual img {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
}

.home-export-country-card {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: -16px auto 0;
    padding: 24px clamp(22px, 4vw, 44px) 18px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(6, 20, 58, 0.08);
    box-shadow: 0 14px 36px rgba(6, 20, 58, 0.14);
}
.home-export-country-card ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home-export-country-card li {
    position: relative;
    padding-left: 22px;
    color: #272b31;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 600;
}
.home-export-country-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #08732f;
    box-shadow: 0 0 0 4px rgba(8, 115, 47, 0.1);
}
.home-export-country-card span {
    display: block;
    width: fit-content;
    min-width: 260px;
    margin: 18px auto 0;
    padding: 8px 26px;
    border: 2px solid #08732f;
    border-radius: 999px;
    color: #08732f;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 900;
    text-align: center;
}
@media (max-width: 991px) {
    .home-export-country-card ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .home-export-map-section {
        padding: 18px 0 64px;
    }
    .home-export-map-card {
        padding: 0;
    }
    .home-export-country-card {
        margin-top: 8px;
    }
    .home-export-country-card ul {
        grid-template-columns: 1fr;
    }
    .home-export-country-card span {
        min-width: 0;
        width: 100%;
    }
}

/* ============================================
   Updates Section
   ============================================ */
.home-updates-section {
    padding: 96px 0 112px;
    background: #f3f6fb;
}
.home-updates-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 24px;
    align-items: start;
}
.home-works-panel {
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(6,20,58,0.08);
    box-shadow: 0 18px 44px rgba(6,20,58,0.06);
}
.home-works-panel h2,
.home-updates-panel h2 {
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(6,20,58,0.12);
    color: #06143a;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    text-transform: uppercase;
}
.home-works-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.home-work-card {
    overflow: hidden;
    border-radius: 8px;
    background: #f7f9fc;
    color: #06143a;
    text-decoration: none;
    border: 1px solid rgba(6,20,58,0.06);
    transition: 0.2s ease;
}
.home-work-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.home-work-card span {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
}
.home-work-card:hover {
    background: #fff;
    border-color: rgba(6,20,58,0.12);
    box-shadow: 0 8px 20px rgba(6,20,58,0.08);
}
.home-updates-side {
    display: grid;
    gap: 18px;
}
.home-updates-panel {
    padding: 26px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(6,20,58,0.08);
    box-shadow: 0 18px 44px rgba(6,20,58,0.06);
}
.home-updates-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.home-updates-list a {
    display: flex;
    gap: 10px;
    padding: 13px 14px;
    border-radius: 8px;
    background: #f7f9fc;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}
.home-updates-list a::before {
    content: ">";
    width: 12px;
    flex: 0 0 auto;
    margin-top: 1px;
    color: #06143a;
    font-size: 12px;
    line-height: 1.45;
}
.home-updates-list a:hover {
    background: #fff0eb;
    color: #f1562c;
}
.home-updates-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 18px;
    padding: 0 20px;
    border-radius: 8px;
    background: #06143a;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}
.home-updates-more::after {
    content: ">";
    font-size: 13px;
    line-height: 1;
}
.home-updates-more:hover {
    background: #f1562c;
    color: #fff;
    transform: translateY(-2px);
}
@media (max-width: 991px) {
    .home-updates-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 767px) {
    .home-updates-section {
        padding: 64px 0 78px;
    }
}

/* ---- Home Slider ---- */
.home-slider-section {
    width: 100%;
    background: #101a24;
}
.home-slider {
    position: relative;
    width: 100%;
    height: 580px;
    overflow: hidden;
}
.home-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
    z-index: 1;
}
.home-slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.home-slider-link {
    display: block;
    width: 100%;
    height: 100%;
}
.home-slider-link picture,
.home-slider-link img,
.home-slider-slide picture,
.home-slider-slide img {
    display: block;
    width: 100%;
    height: 100%;
}
.home-slider-image {
    object-fit: cover;
    object-position: center;
}
.home-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    color: #101a24;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s ease;
}
.home-slider-arrow:hover {
    background: #fff;
    color: #f1562c;
}
.home-slider-prev { left: 24px; }
.home-slider-next { right: 24px; }
.home-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 10px;
}
.home-slider-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.2s ease;
}
.home-slider-dot.active,
.home-slider-dot:hover {
    background: #fff;
}
@media (max-width: 991px) {
    .home-slider {
        height: 460px;
    }
}
@media (max-width: 767px) {
    .home-slider {
        height: 380px;
    }
    .home-slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .home-slider-prev { left: 12px; }
    .home-slider-next { right: 12px; }
}
@media (max-width: 480px) {
    .home-slider {
        height: 300px;
    }
}
