/* =========================================================
   ruluERP
   PUBLIC WEBSITE STYLES
   Black + Gold + White
   ========================================================= */

:root {
    --gold: hsl(51, 89%, 42%);
    --gold-dark: hsl(51, 89%, 34%);
    --gold-soft: hsl(51, 89%, 94%);

    --black: #111111;
    --black-soft: #181818;

    --white: #ffffff;
    --light: #f7f7f5;
    --text: #202020;
    --muted: #6b6b6b;

    --border: #e8e8e5;
    --border-dark: #292929;

    --container: 1180px;
    --radius: 12px;

    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 14px 35px rgba(0, 0, 0, 0.08);

    --transition: 180ms ease;
}


/* =========================================================
   RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.container {
    width: min(
        var(--container),
        calc(100% - 40px)
    );

    margin-inline: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    background: #000000;
    border-bottom: 1px solid var(--gold);
}

.header-inner {
    min-height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* Brand */

.site-header .brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.site-header .brand-logo {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    object-fit: cover;

    border: 2px solid var(--gold);
    border-radius: 50%;
    padding: 2px;

    background: #000000;
}

.site-header .brand-name {
    color: var(--gold);

    font-size: 22px;
    font-weight: 800;

    line-height: 1;
    letter-spacing: -0.5px;
}


/* Navigation */

.site-header .main-nav {
    display: flex;
    align-items: center;

    gap: 26px;
}

.site-header .nav-link {
    color: var(--gold);

    font-size: 14px;
    font-weight: 600;

    transition:
        color var(--transition),
        opacity var(--transition);
}

.site-header .nav-link:hover {
    color: var(--white);
}


/* Login button */

.site-header .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 0 18px;

    border: 1px solid var(--gold);
    border-radius: 7px;

    background: var(--gold);
    color: #000000;

    font-size: 14px;
    font-weight: 800;

    transition:
        background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.site-header .nav-button:hover {
    background: var(--white);
    border-color: var(--white);

    transform: translateY(-1px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    padding: 105px 0 110px;

    background:
        linear-gradient(
            135deg,
            #f7f7f5 0%,
            #ffffff 100%
        );

    border-bottom: 1px solid var(--border);
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.section-eyebrow {
    display: inline-block;

    color: var(--gold-dark);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 780px;

    margin: 0;

    color: var(--black);

    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;

    letter-spacing: -2.8px;
}

.hero h1 span {
    color: var(--gold-dark);
}

.hero p {
    max-width: 650px;

    margin: 25px 0 0;

    color: var(--muted);

    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 22px;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 800;

    transition:
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        transform var(--transition);
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    background: var(--gold);
    border: 1px solid var(--gold);

    color: #111111;
}

.button-primary:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
}

.button-outline {
    background: transparent;
    border: 1px solid #cfcfc9;

    color: var(--black);
}

.button-outline:hover {
    background: var(--white);
    border-color: var(--gold);
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-section {
    padding: 90px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 40px;
}

.section-eyebrow {
    margin-bottom: 8px;
}

.section-heading h2,
.about-section h2 {
    margin: 0;

    color: var(--black);

    font-size: 38px;
    line-height: 1.15;

    letter-spacing: -1.2px;
}

.section-heading > p {
    max-width: 420px;

    margin: 0;

    color: var(--muted);

    text-align: right;
}


/* Product grid */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* Product card */

.product-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--white);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);

    border-color: #d8d8d1;

    box-shadow: var(--shadow-md);
}


/* Product image */

.product-image {
    width: 100%;
    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #eeeeeb;
}

.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 350ms ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.no-image {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #999999;

    font-size: 14px;
}


/* Product content */

.product-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 22px;
}

.product-category {
    display: inline-block;

    margin-bottom: 7px;

    color: var(--gold-dark);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1px;
    text-transform: uppercase;
}

.product-content h3 {
    margin: 0;

    color: var(--black);

    font-size: 21px;
    line-height: 1.25;
}

.product-description {
    min-height: 48px;

    margin: 11px 0 0;

    color: var(--muted);

    font-size: 14px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;
}


/* Product meta */

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: auto;
    padding-top: 22px;
}

.product-price {
    color: var(--black);

    font-size: 19px;
    font-weight: 800;
}

.product-price span {
    color: var(--muted);

    font-size: 12px;
    font-weight: 600;
}

.product-stock {
    color: #4f6f45;

    font-size: 12px;
    font-weight: 700;
}


/* Product WhatsApp */

.product-button {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    margin-top: 18px;

    border: 1px solid var(--gold);
    border-radius: 7px;

    background: var(--gold);
    color: #111111;

    font-size: 13px;
    font-weight: 800;

    transition:
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

.product-button:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);

    transform: translateY(-1px);
}


/* =========================================================
   EMPTY PRODUCTS
   ========================================================= */

.empty-state {
    padding: 70px 20px;

    text-align: center;

    background: var(--light);

    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.empty-icon {
    margin-bottom: 12px;

    color: var(--gold-dark);

    font-size: 30px;
    font-weight: 700;
}

.empty-state h3 {
    margin: 0 0 8px;

    color: var(--black);
}

.empty-state p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   ABOUT
   ========================================================= */

.about-section {
    padding: 90px 0;

    background: var(--light);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: start;
}

.about-section h2 {
    max-width: 540px;
}

.about-grid p {
    max-width: 560px;

    margin: 0 0 20px;

    color: var(--muted);

    font-size: 17px;
}

.text-link {
    color: var(--gold-dark);

    font-size: 14px;
    font-weight: 800;
}

.text-link:hover {
    text-decoration: underline;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    width: 100%;

    padding: 42px 0;

    background: #000000;
    color: var(--white);

    border-top: 1px solid var(--gold);
}

.footer-inner {
    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    gap: 30px;

    align-items: center;
}

.site-footer .brand,
.site-footer .footer-brand-link {
    display: inline-flex;
    align-items: center;

    gap: 10px;
}

.site-footer .brand-logo {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    object-fit: cover;

    border: 2px solid var(--gold);
    border-radius: 50%;
    padding: 2px;

    background: #000000;
}

.site-footer .brand-name {
    color: var(--gold);

    font-size: 20px;
    font-weight: 800;
}

.footer-brand p {
    margin: 10px 0 0;

    color: #aaaaaa;

    font-size: 13px;
}

.footer-contact {
    display: flex;
    flex-direction: column;

    gap: 4px;

    font-size: 13px;
}

.footer-contact a {
    color: var(--gold);
}

.footer-copy {
    color: #999999;

    font-size: 12px;

    text-align: right;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer-copy {
        grid-column: 1 / -1;
        text-align: left;
    }
}


@media (max-width: 680px) {

    .container {
        width: min(
            var(--container),
            calc(100% - 28px)
        );
    }

    .header-inner {
        min-height: auto;

        padding: 14px 0;

        flex-direction: column;

        gap: 14px;
    }

    .site-header .brand-logo {
        width: 38px;
        height: 38px;

        flex-basis: 38px;
    }

    .site-header .brand-name {
        font-size: 20px;
    }

    .site-header .main-nav {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 10px 18px;
    }

    .hero {
        padding: 70px 0 75px;
    }

    .hero h1 {
        font-size: clamp(38px, 12vw, 54px);
        letter-spacing: -1.8px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-heading > p {
        text-align: left;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .products-section,
    .about-section {
        padding: 65px 0;
    }

    .section-heading h2,
    .about-section h2 {
        font-size: 32px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-copy {
        grid-column: auto;
        text-align: left;
    }
}


@media (max-width: 420px) {

    .site-header .main-nav {
        gap: 8px 12px;
    }

    .site-header .nav-link {
        font-size: 13px;
    }

    .site-header .nav-button {
        min-height: 40px;

        padding: 0 14px;

        font-size: 13px;
    }

    .product-content {
        padding: 18px;
    }
}