/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fffaf6;
    color: #55312b;
    font-family: "DM Sans", sans-serif;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    width: 100%;
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 15px 6%;

    background: rgba(255, 250, 246, 0.96);

    border-bottom: 1px solid rgba(113, 50, 39, 0.08);

    position: sticky;
    top: 0;
    z-index: 1000;

    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #5c2c24;
}

.brand img {
    width: 47px;
    height: 47px;

    object-fit: contain;
}

.brand h1 {
    font-family: "Playfair Display", serif;
    font-size: 25px;
    line-height: 1;
}

.brand span {
    display: block;

    margin-top: 6px;

    font-size: 10px;
    letter-spacing: 1.3px;

    color: #94766f;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-menu a {
    position: relative;

    color: #5d342d;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition: 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #8a4134;
}

.nav-menu a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -9px;

    height: 2px;

    background: #8a4134;

    border-radius: 10px;
}


/* =========================
   HERO
========================= */

.catalog-hero {
    padding: 95px 20px 65px;

    text-align: center;

    background:
        radial-gradient(
            circle at top,
            rgba(215, 178, 157, 0.20),
            transparent 48%
        );
}

.mini-title {
    display: inline-block;

    margin-bottom: 14px;

    color: #9c655a;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 3px;
    text-transform: uppercase;
}

.catalog-hero h2 {
    max-width: 750px;

    margin: auto;

    color: #522b24;

    font-family: "Playfair Display", serif;

    font-size: clamp(38px, 6vw, 62px);

    line-height: 1.08;
}

.catalog-hero h2 span {
    font-style: italic;
    font-weight: 500;

    color: #9a5d50;
}

.catalog-hero p {
    max-width: 620px;

    margin: 22px auto 0;

    color: #846d67;

    font-size: 15px;
    line-height: 1.8;
}


/* =========================
   CATALOG
========================= */

.catalog-section {
    width: 100%;

    padding: 20px 6% 100px;
}


/* =========================
   FILTER
========================= */

.filter-wrapper {
    max-width: 780px;

    margin: 0 auto 28px;

    display: flex;
    justify-content: center;
    align-items: center;

    flex-wrap: wrap;

    gap: 10px;
}

.filter-btn {
    padding: 11px 22px;

    background: transparent;

    border: 1px solid #74372d;

    border-radius: 100px;

    color: #74372d;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.filter-btn:hover {
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #74372d;
    color: #ffffff;
}


/* =========================
   CATALOG INFO
========================= */

.catalog-info {
    max-width: 1120px;

    margin: 0 auto 22px;
}

.catalog-info p {
    color: #9a8580;

    font-size: 13px;
}

.catalog-info strong {
    color: #713227;
}


/* =========================
   TEMPLATE GRID
========================= */

.template-grid {
    width: 100%;
    max-width: 1120px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 26px;
}


/* =========================
   CARD
========================= */

.template-card {
    overflow: hidden;

    background: #ffffff;

    border:
        1px solid
        rgba(105, 56, 47, 0.09);

    border-radius: 21px;

    box-shadow:
        0 12px 35px
        rgba(87, 52, 44, 0.08);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.25s ease;
}

.template-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 22px 50px
        rgba(87, 52, 44, 0.13);
}


/* =========================
   IMAGE
========================= */

.template-image {
    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 5;
}

.template-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.template-card:hover
.template-image img {
    transform: scale(1.035);
}


/* =========================
   BADGE
========================= */

.badge {
    position: absolute;

    top: 15px;
    left: 15px;

    padding: 7px 13px;

    background:
        rgba(105, 54, 44, 0.90);

    color: #ffffff;

    border-radius: 50px;

    font-size: 11px;
    font-weight: 600;

    backdrop-filter: blur(5px);
}

.badge-adat {
    background:
        rgba(111, 76, 49, 0.92);
}


/* =========================
   CARD CONTENT
========================= */

.template-content {
    padding: 22px;
}

.template-code {
    display: block;

    margin-bottom: 7px;

    color: #ae938c;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.6px;
}

.template-content h3 {
    margin-bottom: 8px;

    color: #572d26;

    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;
}

.template-content p {
    min-height: 43px;

    color: #8a7470;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================
   BUTTON CARD
========================= */

.template-buttons {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 20px;
}

.btn-demo,
.btn-order {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 12px;

    border-radius: 50px;

    font-size: 12px;
    font-weight: 600;

    text-align: center;
    text-decoration: none;

    transition: 0.25s ease;
}

.btn-demo {
    border: 1px solid #713227;

    color: #713227;

    background: transparent;
}

.btn-demo:hover {
    background: #713227;
    color: #ffffff;
}

.btn-order {
    background: #713227;

    color: #ffffff;

    border: 1px solid #713227;
}

.btn-order:hover {
    background: #55251e;

    border-color: #55251e;
}


/* =========================
   FILTER ANIMATION
========================= */

.template-card.hide {
    display: none;
}

.template-card.show-card {
    animation: showTemplate 0.35s ease;
}

@keyframes showTemplate {

    from {
        opacity: 0;
        transform:
            translateY(15px)
            scale(0.98);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }

}


/* =========================
   FOOTER
========================= */

footer {
    padding: 60px 20px;

    background: #582b24;

    color: #ffffff;

    text-align: center;
}

footer h2 {
    margin-bottom: 8px;

    font-family:
        "Playfair Display",
        serif;

    font-size: 30px;
}

footer p {
    margin-bottom: 18px;

    color: #e9d8d4;

    font-size: 13px;
}

footer span {
    color: #cbb0aa;

    font-size: 11px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 900px) {

    .template-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================
   MOBILE
========================= */

@media (max-width: 700px) {

    .navbar {
        min-height: 75px;

        padding:
            11px 20px;
    }

    .brand img {
        width: 39px;
        height: 39px;
    }

    .brand h1 {
        font-size: 21px;
    }

    .brand span {
        font-size: 8px;
    }

    .nav-menu {
        display: none;
    }

    .catalog-hero {
        padding:
            70px 20px
            48px;
    }

    .catalog-hero p {
        font-size: 14px;
    }

    .catalog-section {
        padding:
            10px 18px
            70px;
    }

    .filter-wrapper {
        justify-content:
            flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        padding-bottom: 8px;

        scrollbar-width: none;
    }

    .filter-wrapper::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .template-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .template-card {
        border-radius: 15px;
    }

    .template-content {
        padding: 15px 13px;
    }

    .template-content h3 {
        font-size: 18px;
    }

    .template-content p {
        min-height: auto;

        font-size: 11px;
    }

    .template-buttons {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .btn-demo,
    .btn-order {
        min-height: 37px;

        padding: 8px;

        font-size: 10px;
    }

}


/* =========================
   HP KECIL
========================= */

@media (max-width: 700px) {

    .template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .template-card {
        border-radius: 12px;
    }

    .template-content {
        padding: 12px 10px;
    }

    .template-content h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }

    .template-content p {
        font-size: 10px;
        line-height: 1.4;
    }

    .template-code {
        font-size: 8px;
    }

    .template-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
        margin-top: 12px;
    }

    .btn-demo,
    .btn-order {
        min-height: 34px;
        padding: 7px 5px;
        font-size: 9px;
    }

    .badge {
        top: 8px;
        left: 8px;
        padding: 5px 8px;
        font-size: 8px;
    }

    .discount-badge {
        top: 8px;
        right: 8px;
        width: 43px;
        height: 43px;
        font-size: 12px;
        border-width: 2px;
    }

    .discount-badge small {
        font-size: 6px;
        margin-bottom: 2px;
    }

}

.discount-badge {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 58px;
    height: 58px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background: #8c3026;
    color: #fff;

    border: 3px solid #fff;
    border-radius: 50%;

    font-size: 16px;
    font-weight: 700;
    line-height: 1;

    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.18);

    transform: rotate(8deg);

    z-index: 5;
}

.discount-badge small {
    margin-bottom: 4px;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 1px;
}


@media (max-width: 700px) {

    .template-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .template-card {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }

}