/* ═══════════════════════════════════════════════════════════════════════════
   Don Nerio — Public Site CSS
   Brand palette: Dark Brown #3d1c02 | Gold #d4880a | Light Gold #f5a623 | Cream #fdf4e3
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    --dn-brown:       #3d1c02;
    --dn-brown-mid:   #5c2c0a;
    --dn-gold:        #d4880a;
    --dn-gold-light:  #f5a623;
    --dn-gold-pale:   #fce8be;
    --dn-cream:       #fdf4e3;
    --dn-cream-dark:  #f5e6c8;
    --dn-text:        #2c1405;
    --dn-text-muted:  #7a5c40;
    --dn-white:       #ffffff;
    --dn-shadow:      rgba(61, 28, 2, 0.15);
    --radius-lg:      20px;
    --radius-md:      12px;
    --radius-sm:      8px;
}

/* ── Base ──────────────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    color: var(--dn-text);
    background: var(--dn-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.text-dn-gold { color: var(--dn-gold) !important; }
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }

/* ── Navbar ────────────────────────────────────────────────────────────── */
.dn-navbar {
    background: var(--dn-brown) !important;
    padding: 0.6rem 0;
    box-shadow: 0 2px 20px rgba(0,0,0,.3);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.dn-navbar .navbar-logo {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255,255,255,.12);
    padding: 4px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.dn-nav-link {
    color: rgba(255,255,255,.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-sm);
    transition: color .2s, background .2s;
}
.dn-nav-link:hover { color: var(--dn-gold-light) !important; background: rgba(255,255,255,.08); }

.btn-outline-dn-light {
    border-color: rgba(255,255,255,.4);
    color: rgba(255,255,255,.85);
    font-size: 0.8rem;
}
.btn-outline-dn-light:hover { background: rgba(255,255,255,.1); color: #fff; border-color: #fff; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-dn-primary {
    background: linear-gradient(135deg, var(--dn-gold) 0%, var(--dn-gold-light) 100%);
    color: var(--dn-brown) !important;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.6rem;
    box-shadow: 0 4px 16px rgba(212,136,10,.35);
    transition: transform .2s, box-shadow .2s;
}
.btn-dn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212,136,10,.45);
    background: linear-gradient(135deg, var(--dn-gold-light) 0%, #ffbb33 100%);
    color: var(--dn-brown) !important;
}

.btn-outline-dn {
    border: 2px solid var(--dn-gold);
    color: var(--dn-gold);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.6rem;
    transition: all .2s;
}
.btn-outline-dn:hover { background: var(--dn-gold); color: var(--dn-brown); }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--dn-brown) 0%, #5c2c0a 45%, #7a3c0e 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    background: rgba(245,166,35,.2);
    color: var(--dn-gold-light);
    border: 1px solid rgba(245,166,35,.4);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
}
.hero-accent { color: var(--dn-gold-light); }

.hero-subtitle {
    color: rgba(255,255,255,.8);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 520px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 1.6rem; font-weight: 800; color: var(--dn-gold-light); line-height: 1; }
.stat-label  { font-size: 0.75rem; color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

.hero-image-container {
    position: relative;
    display: inline-block;
}
.hero-img {
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    max-height: 480px;
    object-fit: cover;
    width: 100%;
}
.hero-img-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: #fff;
    border-radius: 50%;
    padding: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.hero-logo-badge { width: 84px; height: 84px; object-fit: contain; }

@@media (max-width: 575.98px) {
    .hero-img-badge { right: 8px; bottom: 8px; width: 72px; height: 72px; }
    .hero-logo-badge { width: 58px; height: 58px; }
}

/* ── Section typography ────────────────────────────────────────────────── */
.section-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--dn-gold);
    margin-bottom: 0.5rem;
}
.section-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--dn-brown);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
.section-subtitle {
    color: var(--dn-text-muted);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}
.lead-text { font-size: 1.1rem; color: var(--dn-text-muted); line-height: 1.75; }
.body-text  { color: var(--dn-text-muted); line-height: 1.75; }

/* ── Products section ──────────────────────────────────────────────────── */
.products-section { background: var(--dn-cream); }

.product-card-dn {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px var(--dn-shadow);
    transition: transform .3s, box-shadow .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card-dn:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(61,28,2,.2);
}

.product-img-wrap { position: relative; overflow: hidden; height: 260px; }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card-dn:hover .product-img { transform: scale(1.06); }

.product-price-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--dn-gold);
    color: var(--dn-brown);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 100px;
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.product-bestseller-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--dn-brown);
    color: var(--dn-gold-light);
    font-weight: 700;
    font-size: 0.78rem;
    border-radius: 100px;
    padding: 0.3rem 0.85rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    letter-spacing: 0.03em;
}

.product-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }

.product-name {
    font-family: "Playfair Display", serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dn-brown);
    margin-bottom: 0.75rem;
}
.product-desc { color: var(--dn-text-muted); font-size: 0.95rem; line-height: 1.65; flex: 1; }

.product-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}
.product-features li {
    color: var(--dn-text-muted);
    font-size: 0.875rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--dn-cream-dark);
}
.product-features li:last-child { border-bottom: none; }

/* ── Showcase strip ───────────────────────────────────────────────────── */
.showcase-strip {
    background: #fdf6ec;
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid #e8d5b0;
    border-bottom: 1px solid #e8d5b0;
}
.showcase-item { padding: 0 1rem; }
.showcase-img {
    width: 100%;
    max-width: 200px;
    filter: drop-shadow(0 10px 28px rgba(61,28,2,.18));
    transition: transform .35s ease, filter .35s ease;
}
.showcase-img:hover {
    transform: translateY(-8px) scale(1.04);
    filter: drop-shadow(0 18px 36px rgba(61,28,2,.28));
}
.showcase-label {
    margin-top: .75rem;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #3d1c02;
}

/* ── About section ─────────────────────────────────────────────────────── */
.about-section { background: var(--dn-white); }

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.value-item {
    background: var(--dn-cream);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 3px solid var(--dn-gold);
}
.value-icon { font-size: 1.5rem; line-height: 1; }

/* ── Contact section ───────────────────────────────────────────────────── */
.contact-section { background: var(--dn-cream); }
.contact-hero { background: var(--dn-cream); padding-top: 3rem; }

.contact-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px var(--dn-shadow);
}

.contact-info-card {
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px var(--dn-shadow);
}

.form-control {
    border-radius: var(--radius-sm);
    border: 1.5px solid #e0d0b8;
    padding: 0.65rem 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
    border-color: var(--dn-gold);
    box-shadow: 0 0 0 3px rgba(212,136,10,.15);
    outline: none;
}

/* ── CTA section ───────────────────────────────────────────────────────── */
.cta-section { background: var(--dn-brown); }
.cta-card { padding: 3rem 2rem; }
.cta-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #fff;
}
.cta-subtitle { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.dn-footer { background: var(--dn-brown); color: rgba(255,255,255,.7); }
.dn-footer .text-muted { color: rgba(255,255,255,.5) !important; }
.footer-tagline { font-style: italic; color: var(--dn-gold-light); font-size: 1rem; }
.footer-heading { color: var(--dn-gold); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.75rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 0.9rem; transition: color .2s; }
.footer-links a:hover { color: var(--dn-gold-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.25rem 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,.4); }
.footer-bottom strong { color: var(--dn-gold-light); }

/* ═══ Dark Mode ═══════════════════════════════════════════════════════════ */
[data-theme="dark"] body {
    background: #1a0f05;
    color: #f0e6d6;
}
[data-theme="dark"] .products-section,
[data-theme="dark"] .contact-section,
[data-theme="dark"] .contact-hero   { background: #120b03; }
[data-theme="dark"] .about-section  { background: #1a0f05; }
[data-theme="dark"] .product-card-dn,
[data-theme="dark"] .contact-card,
[data-theme="dark"] .contact-info-card { background: #2a1505; border-color: #4a2a0a; }
[data-theme="dark"] .product-name,
[data-theme="dark"] .section-title  { color: #f5e6c8; }
[data-theme="dark"] .product-desc,
[data-theme="dark"] .product-features li,
[data-theme="dark"] .section-subtitle,
[data-theme="dark"] .lead-text,
[data-theme="dark"] .body-text      { color: #c4a882; }
[data-theme="dark"] .product-features li { border-color: #3d2010; }
[data-theme="dark"] .form-control   { background: #2a1505; color: #f0e6d6; border-color: #5c3010; }
[data-theme="dark"] .form-control::placeholder { color: #8a6040; }
[data-theme="dark"] .form-control:focus { border-color: var(--dn-gold); }
[data-theme="dark"] .value-item     { background: #2a1505; }
[data-theme="dark"] .dropdown-menu  { background: #2a1505; border-color: #5c3010; }
[data-theme="dark"] .dropdown-item  { color: #f0e6d6; }
[data-theme="dark"] .dropdown-item:hover { background: #3d2010; }
[data-theme="dark"] .text-muted     { color: #8a6040 !important; }
[data-theme="dark"] .dn-navbar .dropdown-menu { background: #3d1c02; }
