/* ========== VARIÁVEIS GLOBAIS ========== */
:root {
    /* Tons dourados e neutros */
    --gold: #D4AF37;        /* dourado principal */
    --gold-dark: #b58f2c;   /* variação escura do dourado */
    --gold-light: #FFECB3;  /* dourado claro */
    --hero-overlay: rgba(6, 6, 6, 0.38);
    --text-contrast: #ffffff;
    --black-modern: #1A1A1A;
    --white-clean: #F8F8F8;
    --dl-bege: #fcf3d9;
}

/* ========== BASE ========== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--dl-bege);
    color: var(--black-modern);
    font-family: 'Plus Jakarta Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== CABEÇALHO ========== */
#header-nav {
    background-color: var(--black-modern);
    color: var(--white-clean);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar-brand, .nav-link {
    color: var(--gold) !important;
    font-weight: 600;
    transition: color 0.25s ease;
}

.navbar-brand:hover, .nav-link:hover {
    color: var(--gold-light) !important;
}

/* ========== BOTÕES ========== */
/* botão dourado principal */
.btn-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    border: 1px solid rgba(255,255,255,0.08);
    color: #111;
    font-weight: 700;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(181,143,44,0.12);
    transition: transform .18s ease, box-shadow .18s ease;
    padding: .55rem 1rem;
    display: inline-block;
    text-align: center;
}

.btn-gold:hover,
.btn-gold:focus {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(181,143,44,0.22);
    outline: none;
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.95);
    background: transparent;
}

/* ========== TIPOGRAFIA ========== */
h1, h2, h3 {
    color: var(--gold-dark);
    font-weight: 700;
}

.lead {
    color: var(--text-contrast);
    max-width: 640px;
}

/* sombra sutil em títulos sobre imagens */
h1, .lead {
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

/* ========== CARTÕES ========== */
.card {
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid var(--gold-light);
}

/* ========== FORMULÁRIOS ========== */
.form-control {
    border-color: var(--gold-light);
    border-radius: 6px;
    transition: box-shadow .15s ease, border-color .15s ease;
}

.form-control:focus {
    border-color: var(--gold-dark);
    box-shadow: 0 0 0 0.25rem rgba(181,143,44,0.12);
    outline: none;
}

/* ========== ÍCONES DO CARRINHO ========== */
.cart-icon {
    font-size: 1.5rem;
    color: var(--gold);
    cursor: pointer;
    transition: color 0.2s ease;
}

.cart-icon:hover {
    color: var(--gold-light);
}

/* ========== HERO ========== */
#hero-jewelry {
    position: relative;
    min-height: 72vh;
    display: flex;
    align-items: center;
    color: var(--text-contrast);
    overflow: hidden;
}

#hero-jewelry .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero.png");
    background-size: cover;
    background-position: center center;
    filter: saturate(0.95) contrast(0.95) brightness(0.9);
    z-index: 0;
}

/* leve gradiente escuro para legibilidade */
#hero-jewelry::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.28) 0%, rgba(0,0,0,0.48) 100%);
    z-index: 1;
}

#hero-jewelry .container {
    position: relative;
    z-index: 2;
}

/* ========== FOOTER ========== */
footer {
    background-color: var(--black-modern);
    color: var(--gold-light);
    border-top: 2px solid var(--gold-dark);
}

/* acessibilidade - foco visível em elementos interativos do footer */
footer{
    color: var(--gold-light )!important;
}
footer a:focus,
footer button:focus,
footer .btn:focus {
    outline: 3px solid rgba(181,143,44,0.15);
    outline-offset: 2px;
}

/* ========== AÇÕES ADMIN ========== */
.btn-admin {
    transition: opacity 0.3s ease;
}

.btn-admin:hover {
    opacity: 0.8;
}

/* ========== RESPONSIVIDADE ========== */
@media (max-width: 767.98px) {
    #hero-jewelry {
        min-height: 60vh;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .lead {
        max-width: 100%;
    }

    .img-fluid {
        max-width: 240px;
        opacity: 0.96;
        filter: drop-shadow(0 6px 18px rgba(0,0,0,0.22));
    }

    /* cartões menos altos em mobile */
    .card-img-top {
        height: 160px;
    }
}

/* utilitário de texto dourado */
.text-gold {
    color: var(--gold) !important;
}
