/* =========================================
   FAJAR INTERNATIONAL
   GLOBAL RESPONSIVE STYLES
========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
}

img,
video,
iframe {
    max-width: 100%;
}

img {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    overflow-wrap: break-word;
}

.container,
.section-container {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

section {
    min-width: 0;
}

.section-heading {
    max-width: 750px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.2;
}

.section-heading p {
    margin: 0;
    line-height: 1.7;
}

button,
.btn,
.button {
    cursor: pointer;
}

input,
select,
textarea {
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
}

.page-content {
    min-height: 50vh;
    padding-block: 40px 70px;
}

.page-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.page-description {
    max-width: 750px;
    line-height: 1.8;
}

/* Product and category grids */

.products-grid,
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.products-grid > *,
.categories-grid > * {
    min-width: 0;
}

/* Forms */

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #dedede;
    border-radius: 5px;
    background: #fff;
    color: #171717;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #c7a45d;
    outline-offset: 1px;
}

/* General content images */

.content-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tablet */

@media (max-width: 1024px) {
    .container,
    .section-container {
        width: calc(100% - 32px);
    }

    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .page-content {
        padding-block: 32px 55px;
    }
}

/* Mobile landscape and small tablets */

@media (max-width: 768px) {
    .container,
    .section-container {
        width: calc(100% - 28px);
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .page-content {
        padding-block: 28px 45px;
    }

    .page-description {
        font-size: 14px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Small mobile */

@media (max-width: 480px) {
    .container,
    .section-container {
        width: calc(100% - 24px);
    }

    .products-grid,
    .categories-grid {
        gap: 10px;
    }

    .section-heading {
        margin-bottom: 20px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .page-content {
        padding-block: 24px 35px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
}

/* Accessibility */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}