/* Override main-content padding for hero */
.main-content {
    padding: 0;
    max-width: 100%;
}

/* Hero Section with Header Overlay */
.hero-home {
    position: relative;
    height: 100vh;
    background: url("../images/home.png") no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin: 0 0 40px 0;
}

/* Hero untuk halaman lain (lebih pendek) */
.hero-home.hero-page {
    height: 40vh;
    /* min-height: 400px; */
}

.hero-home::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Blur */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    /* Gelap (overlay hitam transparan) */
    background: rgba(0, 0, 0, 0.45);

    z-index: 1;
}

/* Supaya teks berada di atas overlay */
.hero-home > * {
    position: relative;
    z-index: 2;
}

.hero-content {
    padding-top: 80px;
}

.hero-welcome {
    display: inline-block;
    font-size: 16px;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.85);
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.95;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-search {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
}

.hero-search-pill {
    display: flex;
    align-items: center;
    padding: 10px 10px 10px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #fff;
    outline: none;
    min-width: 0;
}

.hero-search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-search-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    margin-left: 10px;
    background: linear-gradient(135deg, #ffb347, #ff8c2c);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 132, 44, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 32px rgba(255, 132, 44, 0.55);
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hero content untuk halaman lain */
.hero-page .hero-content h1 {
    font-size: 42px;
}

.hero-page .hero-content p {
    font-size: 18px;
    margin-bottom: 0;
}

.hero-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.95);
    color: #2f2f42;
    padding: 18px 50px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-btn:hover {
    background: #fff;
    color: #1a1a2e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Container for sections below hero */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Section Styles */
.home-section {
    margin-bottom: 80px;
}

.lexicon-section {
    max-width: 1200px;
    margin: 0 auto 70px;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #1f1f1f;
    margin-bottom: 12px;
}

.section-header p {
    color: #5d6b63;
    line-height: 1.7;
}

.data-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
    padding: 35px 40px;
}

.table-intro {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
}

.table-intro h3 {
    margin: 8px 0;
    font-size: 24px;
    color: #1f1f1f;
}

.table-intro p {
    color: #6b7b72;
    line-height: 1.6;
}

.table-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #2f2f42;
}

.table-wrapper {
    overflow-x: auto;
}

.lexicon-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 700px;
}

.lexicon-table thead {
    background: #f5f7f6;
}

.lexicon-table th,
.lexicon-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lexicon-table th {
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #6d7b74;
}

.lexicon-table tbody tr:last-child td {
    border-bottom: none;
}

.lexicon-table tbody tr:hover {
    background: rgba(47, 47, 66, 0.05);
}

.lexicon-table.compact th,
.lexicon-table.compact td {
    padding: 14px 16px;
}

.table-note {
    color: #2f2f42;
    font-weight: 600;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    text-align: center;
}

.partners-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 50px 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.partners-header {
    max-width: 680px;
    margin: 0 auto 50px;
    text-align: center;
}

.partners-subtitle {
    color: #5f6676;
    line-height: 1.7;
    margin: 10px 0 0;
}

.partner-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 50px 60px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.partner-logo {
    width: 140px;
    height: 140px;
    object-fit: contain;
    /* filter: grayscale(100%); */
    transition: all 0.4s ease;
}

.partner-item:hover .partner-logo {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.partner-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    text-align: center;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
}

.partner-item:hover .partner-name {
    color: #8b4513;
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f6f5;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Best Selling Products */
.products-carousel {
    --products-visible: 3;
    --product-gap: 24px;
    position: relative;
    overflow: hidden;
    padding: 10px 0;
    margin-top: 30px;
}

.products-track {
    display: flex;
    gap: var(--product-gap);
    transition: transform 0.6s ease;
    will-change: transform;
}

.product-item {
    flex: 0 0
        calc(
            (100% - (var(--products-visible) - 1) * var(--product-gap)) /
                var(--products-visible)
        );
    min-width: 240px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.product-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: #2f2f42;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.product-details {
    padding: 20px;
}

.product-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.products-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #2f2f42;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.products-nav:hover {
    background: #2f2f42;
    color: #fff;
    transform: translateY(-50%) scale(1.05);
}

.products-nav.prev {
    left: 10px;
}

.products-nav.next {
    right: 10px;
}

.product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    color: #2f2f42;
    font-size: 20px;
    font-weight: 700;
}

.add-to-cart-btn {
    background: #2f2f42;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background: #1a1a2e;
    transform: scale(1.1);
}

/* Experience Section */
.experience-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.experience-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
}

.experience-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.experience-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* Materials Section */
.materials-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Materials slider: two tracks that move horizontally in sync */
.materials-slider {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.materials-left,
.materials-right {
    flex: 1 1 50%;
    overflow: hidden;
    position: relative;
}

.materials-content-track,
.materials-grid-track {
    display: flex;
    width: 100%;
    transition: transform 0.8s ease-in-out;
    will-change: transform;
}

.materials-content-slide,
.materials-grid-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding-right: 24px;
}

.materials-content {
    /* ensure consistent spacing inside slides */
    padding: 10px 20px;
    background: transparent;
}

/* Different animation characteristics for right track (subtle parallax) */
.materials-grid-track {
    transition-timing-function: cubic-bezier(0.22, 0.9, 0.36, 1);
}

/* Make images cover area nicely */
.materials-right .material-img {
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

/* small screens: stack */
@media (max-width: 768px) {
    .materials-slider {
        flex-direction: column;
    }
    .materials-right .material-img {
        height: 220px;
    }
}

.materials-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #2f2f42;
    margin-bottom: 12px;
}

.materials-content p {
    color: #666;
    line-height: 1.8;
}

.link-more-info {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-weight: 700;
    color: white;
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
    box-shadow: 0 8px 28px rgba(47, 47, 66, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.link-more-info .link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-size: 18px;
}

.link-more-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(47, 47, 66, 0.26);
}

.link-more-info::after {
    content: "";
}

.features-grid .link-more-info {
    margin-left: auto;
    margin-right: auto;
    margin-top: 25px;
    justify-content: center;
}
.materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    grid-auto-rows: 170px;
    grid-auto-flow: dense;
    gap: 18px;
}

.material-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    background: linear-gradient(135deg, #ccc, #999);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.material-img.large {
    grid-row: span 2;
    grid-column: span 2;
}

/* Reviews Section */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.review-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2f2f42, #2f2f42);
}

.review-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.review-role {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.review-stars {
    color: #ffc107;
    margin-bottom: 15px;
}

.review-text {
    color: #666;
    line-height: 1.6;
    font-style: italic;
}

/* Responsive */
@media (max-width: 992px) {
    .products-carousel {
        --products-visible: 2;
    }
}

@media (max-width: 768px) {
    .hero-home {
        height: 70vh;
        margin: 0;
    }

    .hero-home.hero-page {
        height: 40vh;
        min-height: 300px;
    }

    .hero-content {
        padding-top: 60px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-welcome {
        font-size: 14px;
        letter-spacing: 3px;
    }

    .hero-page .hero-content h1 {
        font-size: 28px;
    }

    .section-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-page .hero-content p {
        font-size: 16px;
    }

    .lexicon-section {
        margin-bottom: 50px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .data-card {
        padding: 25px;
    }

    .table-intro {
        flex-direction: column;
    }

    .hero-search {
        padding: 0 16px;
    }

    .hero-search-pill {
        padding: 10px 10px 10px 20px;
    }

    .hero-search-input {
        font-size: 16px;
    }

    .hero-search-button {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .hero-btn {
        padding: 14px 35px;
        font-size: 14px;
    }

    .experience-section,
    .materials-section {
        grid-template-columns: 1fr;
    }

    .materials-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .material-img,
    .material-img.large {
        grid-column: auto;
        grid-row: auto;
        height: 220px;
    }

    .products-carousel {
        --products-visible: 1;
    }

    .partner-logos {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 35px 40px;
    }

    .partner-logo {
        width: 100px;
        height: 100px;
    }

    .partner-name {
        font-size: 14px;
    }

    .partner-name {
        font-size: 13px;
    }
}

/* Location Section */
.location-item {
    margin-bottom: 50px;
}

.location-item:last-child {
    margin-bottom: 0;
}

.location-name {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.location-address {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
}
