/* ============================================================
   stdjdn.css — Stojadinović d.o.o. custom overrides
   MSD standard: prodajni centar, Majilovac / Požarevac
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
    --stdjdn-gold: #c8a84b;
    --stdjdn-gold-dark: #a88a38;
    --stdjdn-dark: #111111;
    --stdjdn-text: #444444;
    --stdjdn-light: #f9f9f9;
    --stdjdn-card-radius: 8px;
    --stdjdn-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    --stdjdn-transition: 0.28s ease;
}

/* ---------- Global color override ---------- */
.id-color {
    color: var(--stdjdn-gold) !important;
}

.bg-color {
    background: var(--stdjdn-gold) !important;
}

.separator-line-thick {
    width: 60px;
    height: 3px;
    display: block;
}

/* ---------- Overlay helper ---------- */
.overlay-dark-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 100%);
    z-index: 1;
}

/* ---------- Header ---------- */
header .info {
    background: var(--stdjdn-dark);
}

header .info .column {
    color: #ccc;
    font-size: 0.85rem;
}

#logo img.logo {
    max-height: 34px;
    width: auto;
}

/* Aktivan nav link (scroll-spy) — samo gold boja */
#mainmenu>li>a.current {
    color: var(--stdjdn-gold) !important;
}

#mainmenu>li>a.current::after,
#mainmenu>li>a.current::before {
    display: none !important;
}

/* ---------- Hero ---------- */
.stdjdn-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stdjdn-hero .btn-slider {
    display: inline-block;
    padding: 14px 36px;
    background: var(--stdjdn-gold);
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.88rem;
    border-radius: 3px;
    border: 2px solid var(--stdjdn-gold);
    transition: var(--stdjdn-transition);
    text-decoration: none;
    margin: 0.4rem;
}

.stdjdn-hero .btn-slider:hover {
    background: transparent;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.8);
}

/* ---------- Services ---------- */
#section-services {
    padding: 80px 0;
}

.stdjdn-service-card {
    background: #fff;
    border-radius: var(--stdjdn-card-radius);
    padding: 2.2rem 1.8rem;
    border: 1px solid #ebebeb;
    box-shadow: var(--stdjdn-shadow);
    transition: var(--stdjdn-transition);
    text-align: center;
}

.stdjdn-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(200, 168, 75, 0.16);
    border-color: var(--stdjdn-gold);
}

.stdjdn-service-icon {
    width: 81px;
    height: 81px;
    background: rgba(200, 168, 75, 0.10);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem auto;
    transition: var(--stdjdn-transition);
}

.stdjdn-service-card:hover .stdjdn-service-icon {
    background: var(--stdjdn-gold);
}

.stdjdn-service-card:hover .stdjdn-service-icon i {
    color: #fff !important;
}

.stdjdn-service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stdjdn-service-card p {
    font-size: 0.92rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Why Choose Us ---------- */
.stdjdn-why-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--stdjdn-card-radius);
    padding: 2rem 1.6rem;
    transition: var(--stdjdn-transition);
    height: 100%;
}

.stdjdn-why-card:hover {
    background: rgba(200, 168, 75, 0.12);
    border-color: var(--stdjdn-gold);
    transform: translateY(-4px);
}

.stdjdn-why-num {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.8rem;
    letter-spacing: -1px;
}

.stdjdn-why-card h4 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    color: #fff;
}

.stdjdn-why-card p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    margin: 0;
}

/* ---------- Typing bar ---------- */
#section-typing-bar {
    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

/* ---------- Partners ---------- */
.stdjdn-partner-card {
    background: #fff;
    border-radius: var(--stdjdn-card-radius);
    padding: 1.8rem 1.6rem;
    border: 1px solid #ebebeb;
    box-shadow: var(--stdjdn-shadow);
    text-align: center;
    transition: var(--stdjdn-transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stdjdn-partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(200, 168, 75, 0.14);
    border-color: var(--stdjdn-gold);
}

.stdjdn-partner-cat {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--stdjdn-gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.stdjdn-partner-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    margin-bottom: 1.2rem;
}

.stdjdn-partner-card p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ---------- Gallery ---------- */
.stdjdn-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}

.stdjdn-gallery-item img {
    transition: transform 0.4s ease;
    display: block;
}

.stdjdn-gallery-item:hover img {
    transform: scale(1.07);
}

.stdjdn-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(200, 168, 75, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stdjdn-gallery-item:hover .stdjdn-gallery-overlay {
    opacity: 1;
}

/* ---------- Contact ---------- */
.stdjdn-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--stdjdn-text);
    transition: var(--stdjdn-transition);
    outline: none;
    font-family: inherit;
}

.stdjdn-input:focus {
    border-color: var(--stdjdn-gold);
    box-shadow: 0 0 0 3px rgba(200, 168, 75, 0.15);
}

textarea.stdjdn-input {
    resize: vertical;
    min-height: 160px;
}

.stdjdn-submit-btn {
    background: var(--stdjdn-gold) !important;
    border-color: var(--stdjdn-gold) !important;
    color: #fff !important;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 13px 36px;
    border-radius: 4px;
    transition: var(--stdjdn-transition);
    text-transform: uppercase;
    font-size: 0.88rem;
    cursor: pointer;
    border: 2px solid;
}

.stdjdn-submit-btn:hover {
    background: var(--stdjdn-gold-dark) !important;
    border-color: var(--stdjdn-gold-dark) !important;
    transform: translateY(-2px);
}

.stdjdn-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.stdjdn-contact-row {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--stdjdn-text);
}

.stdjdn-contact-row a {
    color: var(--stdjdn-gold);
    text-decoration: none;
}

.stdjdn-contact-row a:hover {
    text-decoration: underline;
}

/* ---------- Footer ---------- */
footer {
    background: #111;
    color: #ccc;
    padding: 60px 0 0 0;
}

footer h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.4rem;
}

footer address span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
}

footer address a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}

footer address a:hover {
    color: var(--stdjdn-gold);
}

footer .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer .widget ul li {
    margin-bottom: 0.5rem;
}

footer .widget ul li a {
    color: #aaa;
    font-size: 0.88rem;
    text-decoration: none;
    transition: color 0.2s;
}

footer .widget ul li a:hover {
    color: var(--stdjdn-gold);
}

footer .logo-small {
    max-height: 23px;
    width: auto;
    opacity: 1;
}

.subfooter {
    background: #0a0a0a;
    padding: 1.4rem 0;
    margin-top: 3rem;
    color: #666;
    font-size: 0.82rem;
}

.subfooter a {
    color: var(--stdjdn-gold);
    text-decoration: none;
}

.social-icons a {
    color: #666;
    margin-left: 12px;
    font-size: 1rem;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: var(--stdjdn-gold);
}

/* ---------- Lightbox (GrafArt pattern) ---------- */
.stdjdn-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.93);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 1rem;
}

.stdjdn-lightbox-overlay.active {
    display: flex;
}

.stdjdn-lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--stdjdn-gold) #222;
}

.stdjdn-lb-content img {
    max-width: 88vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

.stdjdn-lb-caption {
    margin-top: 0.8rem;
    text-align: center;
}

.stdjdn-lb-caption p {
    color: #ccc;
    font-size: 0.9rem;
    margin: 0;
}

.stdjdn-lb-close {
    position: fixed;
    top: 1.2rem;
    right: 1.8rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.stdjdn-lb-close:hover {
    opacity: 1;
}

.stdjdn-lb-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(200, 168, 75, 0.15);
    border: 2px solid rgba(200, 168, 75, 0.4);
    color: #fff;
    font-size: 2.8rem;
    line-height: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s;
    z-index: 10;
}

.stdjdn-lb-nav:hover {
    background: rgba(200, 168, 75, 0.5);
}

.stdjdn-lb-prev {
    left: 1rem;
}

.stdjdn-lb-next {
    right: 1rem;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width: 768px) {
    .stdjdn-hero .btn-slider {
        display: block;
        margin: 0.5rem auto;
        max-width: 260px;
    }

    #section-partner-grid .col-lg-4 {
        margin-bottom: 1rem;
    }
}