/* =====================================================
   ROOT
===================================================== */

:root {

    --primary: #00BCD4;
    --primary-dark: #0097A7;

    --dark: #0F172A;
    --dark-2: #1E293B;

    --text: #1F2937;
    --muted: #64748B;

    --background: #F8FAFC;
    --white: #FFFFFF;

    --border: #E2E8F0;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-sm: 0 4px 15px rgba(15, 23, 42, .05);
    --shadow-md: 0 12px 35px rgba(15, 23, 42, .08);

    --transition: .5s ease;
}


/* =====================================================
   RESET
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family: "Estedad", sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.8;

    overflow-x: hidden;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =====================================================
   NAVBAR
===================================================== */

.main-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    /*background: rgba(255, 255, 255, .92);*/

    backdrop-filter: blur(18px);

    background: #F2F2F2;

    background: linear-gradient(90deg,
    rgba(242, 242, 242, 1) 0%,
    rgba(242, 242, 242, 0.69) 50%,
    rgba(242, 242, 242, 1) 100%);

    border-bottom: 1px solid var(--border);
}


.main-header .navbar {

    min-height: 78px;
}


.navbar-nav {

    gap: 8px;
}


.nav-link {

    color: #475569 !important;

    font-size: 14px;

    font-weight: 500;

    padding: 10px 15px !important;

    border-radius: 8px;

    transition: var(--transition);
}


.nav-link:hover {

    color: var(--primary-dark) !important;

    background: #F1F5F9;
}


.nav-link.active {

    color: var(--primary-dark) !important;

    font-weight: 700;
}


.navbar-toggler {

    border: none !important;

    box-shadow: none !important;

    font-size: 25px;
}


/* =====================================================
   HERO
===================================================== */

.hero {

    min-height: 650px;

    position: relative;

    display: flex;

    align-items: center;

    background-image: url("../yarn/hero.jpg");

    background-size: cover;

    background-position: center;

    color: white;
}


.hero-overlay {

    position: absolute;

    inset: 0;

    background: linear-gradient(
            90deg,
            rgba(15, 23, 42, .94),
            rgba(15, 23, 42, .65),
            rgba(15, 23, 42, .18)
    );
}


.hero-content {

    position: relative;

    z-index: 2;

    max-width: 720px;

    padding: 80px 0;
}


.hero-label {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: #B6F6FC;

    font-size: 14px;

    margin-bottom: 20px;
}


.hero-label span {

    width: 30px;

    height: 2px;

    background: var(--primary);

    display: block;
}


.hero h1 {

    font-size: clamp(38px, 5vw, 66px);

    line-height: 1.35;

    font-weight: 800;

    margin-bottom: 25px;
}


.hero p {

    max-width: 650px;

    font-size: 17px;

    line-height: 2;

    color: #E2E8F0;

    margin-bottom: 35px;
}


.hero-buttons {

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}


.btn-primary-custom {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    background: var(--primary);

    color: #062B30;

    padding: 13px 22px;

    border-radius: 10px;

    font-weight: 700;

    transition: var(--transition);
}


.btn-primary-custom:hover {

    background: #fff;

    color: var(--dark);

    transform: translateY(-2px);
}


.btn-outline-custom {

    display: inline-flex;

    align-items: center;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, .4);

    color: #fff;

    border-radius: 10px;

    transition: var(--transition);
}


.btn-outline-custom:hover {

    background: #fff;

    color: var(--dark);
}


/* =====================================================
   STATS
===================================================== */

.stats-section {

    position: relative;

    margin-top: -45px;

    z-index: 5;
}


.stats-box {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 18px;

    box-shadow: var(--shadow-md);

    display: grid;

    grid-template-columns:repeat(4, 1fr);

    padding: 25px;
}


.stat {

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 10px 25px;

    border-left: 1px solid var(--border);
}


.stat:last-child {

    border-left: none;
}


.stat i {

    width: 45px;

    height: 45px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #ECFEFF;

    color: var(--primary-dark);

    font-size: 20px;
}


.stat strong {

    display: block;

    font-size: 14px;
}


.stat span {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-top: 3px;
}


/* =====================================================
   SECTION
===================================================== */

.products-section,
.articles-section {

    padding: 110px 0;
}


.section-heading {

    text-align: center;

    max-width: 650px;

    margin: 0 auto 50px;
}


.section-heading span,
.section-label {

    color: var(--primary-dark);

    font-size: 13px;

    font-weight: 700;
}


.section-heading h2 {

    font-size: 38px;

    font-weight: 800;

    color: var(--dark);

    margin-top: 8px;
}


.section-heading p {

    color: var(--muted);

    font-size: 15px;

    margin-top: 10px;
}


/* =====================================================
   PRODUCT CARD
===================================================== */

.product-card {

    display: block;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    height: 100%;

    transition: var(--transition);
}


.product-card:hover {

    transform: translateY(-6px);

    border-color: #BFEFF4;

    box-shadow: var(--shadow-md);
}


.product-image {

    height: 250px;

    position: relative;

    overflow: hidden;

    background: #F1F5F9;
}


.product-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition: .5s ease;
}


.product-card:hover .product-image img {

    transform: scale(1.04);
}


.product-arrow {

    position: absolute;

    top: 15px;

    left: 15px;

    width: 38px;

    height: 38px;

    border-radius: 50%;

    background: #fff;

    color: var(--dark);

    display: flex;

    align-items: center;

    justify-content: center;

    opacity: 0;

    transform: translateY(5px);

    transition: var(--transition);
}


.product-card:hover .product-arrow {

    opacity: 1;

    transform: translateY(0);
}


.product-info {

    padding: 20px;

}


.product-info span {

    font-size: 11px;

    color: var(--muted);
}


.product-info h3 {

    font-size: 18px;

    font-weight: 700;

    color: var(--dark);

    margin: 5px 0;
}


.product-info p {

    font-size: 12px;

    color: var(--primary-dark);

    margin: 0;
}


/* =====================================================
   ABOUT
===================================================== */

.about-section {

    background: #fff;

    padding: 110px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);
}


.about-image {

    position: relative;

    padding: 20px;
}


.about-image img {

    width: 561px;

    height: 561px;

    object-fit: cover;

    border-radius: 20px;
}


.experience-box {

    position: absolute;

    bottom: 0;

    left: 0;

    background: #0F172A;
    background: linear-gradient(10deg,
    rgba(15, 23, 42, 1) 5%,
    rgba(100, 116, 139, 1) 70%,
    rgba(226, 232, 240, 1) 100%);

    color: #fff;

    padding: 20px 25px;

    border-radius: 14px;
}


.experience-box strong {

    display: block;

    font-size: 18px;
}


.experience-box span {

    font-size: 11px;

    color: #CBD5E1;
}


.about-content {

    padding: 20px;
}


.about-content h2 {

    font-size: 42px;

    line-height: 1.5;

    font-weight: 800;

    margin: 10px 0 25px;

    color: var(--dark);
}


.about-content p {

    color: var(--muted);

    font-size: 15px;

    margin-bottom: 15px;
}


.text-link {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color: var(--primary-dark);

    font-weight: 700;

    margin-top: 15px;
}


/* =====================================================
   ARTICLES
===================================================== */

.article-card {

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

    height: 100%;

    transition: var(--transition);
}


.article-card:hover {

    transform: translateY(-5px);

    box-shadow: var(--shadow-md);
}


.article-card > img {

    width: 100%;

    height: auto;

    object-fit: cover;
}


.article-content {

    padding: 22px;
}


.article-content span {

    color: var(--primary-dark);

    font-size: 11px;

    font-weight: 700;
}


.article-content h3 {

    font-size: 18px;

    line-height: 1.7;

    color: var(--dark);

    margin: 8px 0 20px;
}


.article-content a {

    color: var(--primary-dark);

    font-size: 13px;

    font-weight: 700;

    display: inline-flex;

    gap: 8px;
}


/* =====================================================
   CTA
===================================================== */

.contact-cta {

    padding: 40px 0 100px;
}


.cta-box {

    background: var(--dark);

    color: #fff;

    border-radius: 20px;

    padding: 45px 50px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.cta-box h2 {

    font-size: 28px;

    margin-top: 8px;

    font-weight: 700;
}


.cta-button {

    white-space: nowrap;

    background: var(--primary);

    color: #062B30;

    padding: 13px 22px;

    border-radius: 10px;

    font-weight: 700;

    display: inline-flex;

    gap: 10px;

    align-items: center;
}


/* =====================================================
   FOOTER
===================================================== */

.footer {

    background: #0B1220;

    color: #fff;

    padding: 80px 0 25px;
}


.footer-brand h3 {

    font-size: 25px;

    margin-bottom: 15px;
}


.footer-brand p {

    color: #94A3B8;

    font-size: 13px;

    max-width: 350px;
}


.footer h4 {

    font-size: 15px;

    margin-bottom: 20px;
}


.footer ul {

    list-style: none;

    padding: 0;

    margin: 0;
}


.footer li {

    margin-bottom: 10px;
}


.footer li a {

    color: #94A3B8;

    font-size: 13px;

    transition: var(--transition);
}


.footer li a:hover {

    color: #67E8F9;
}


.footer-contact {

    color: #94A3B8;

    font-size: 13px;
}


.footer-contact i {

    color: var(--primary);

    margin-left: 8px;
}


.footer-bottom {

    border-top: 1px solid rgba(255, 255, 255, .08);

    margin-top: 50px;

    padding-top: 20px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    color: #64748B;

    font-size: 11px;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 991px) {

    .navbar-nav {

        padding: 20px 0;

    }

    .header-btn {

        display: inline-flex;

        margin-bottom: 15px;

    }

    .stats-box {

        grid-template-columns:repeat(2, 1fr);

    }

    .stat {

        border-left: none;

        border-bottom: 1px solid var(--border);

        padding: 18px;

    }

}


@media (max-width: 768px) {

    .hero {

        min-height: 650px;

    }

    .hero-content {

        padding: 60px 15px;

    }

    .hero h1 {

        font-size: 38px;

    }

    .hero p {

        font-size: 14px;

    }

    .stats-section {

        margin-top: -25px;

    }

    .stats-box {

        grid-template-columns:1fr;

        padding: 15px;

    }

    .stat {

        border-bottom: 1px solid var(--border);

    }

    .stat:last-child {

        border-bottom: none;

    }

    .products-section,
    .articles-section,
    .about-section {

        padding: 75px 0;

    }

    .section-heading h2 {

        font-size: 30px;

    }

    .product-image {

        height: 240px;

    }

    .about-image img {

        height: 350px;

    }

    .about-content h2 {

        font-size: 32px;

    }

    .cta-box {

        flex-direction: column;

        align-items: flex-start;

        padding: 30px;

    }

    .cta-box h2 {

        font-size: 23px;

    }

    .footer-bottom {

        flex-direction: column;

    }

}

/* =========================
   PAGE LOADER
========================= */

#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #F8FAFC;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity .6s ease, visibility .6s ease;
}

#page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.loader-content img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: loaderLogo 2s ease-in-out infinite;
}

.loader-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(0, 188, 212, .15);
    border-top-color: #00BCD4;
    border-radius: 50%;
    animation: loaderSpin .8s linear infinite;
}

.loader-content span {
    font-family: "Estedad", sans-serif;
    font-size: 14px;
    color: #64748B;
}

@keyframes loaderLogo {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

/*=======================
out of stock
==================*/

.product-image {
    display: flex;
}

.out-stock {
    position: relative;
    display: flex;
    width: 100%;
}

.out-stock img {
    filter: blur(3px);
}

.title-out {
    position: absolute;
    bottom: -5%;
    right: 5%;
    color: #515151;
    background: #ffffff;
    padding: 5px;
    border-radius: 10px 10px 0 0;
    border: 1px solid #b6b6b6;
    border-bottom: none;
    font-size: 13px;
    box-shadow: var(--shadow-md);
}

.about{
    margin-top: 4vh;
    width: 100%;
    height: 4vh;
    display: flex;
    /*justify-content: space-evenly;*/
    align-items: center;
    justify-content: center;
    gap: 20px;
}