/* Главни бои и типографија */
:root {
    --primary: #e63946;
    --primary-dark: #c1121f;
    --dark: #111111;
    --dark-secondary: #1c1c1c;
    --dark-card: #2a2a2a;
    --light: #f5f5f5;
    --muted: #bdbdbd;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    --radius: 16px;
    --nav-height: 78px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    font-family: "Inter", sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.7;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: 90px 0;
}

.section-light {
    background: var(--light);
    color: var(--dark);
}

.section-dark {
    background: var(--dark-secondary);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 18px;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    background: var(--primary);
    margin-top: 12px;
}

.section-title.text-center::after {
    margin-left: auto;
    margin-right: auto;
}

.text-muted-custom {
    color: var(--muted);
}

/* Navbar */
.navbar {
    background: transparent;
    padding: 16px 0;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar.is-scrolled {
    background: rgba(17, 17, 17, 0.96);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    padding: 10px 0;
}

.navbar-brand {
    color: var(--white) !important;
    font-size: 1.15rem;
}

.navbar-brand span {
    color: var(--primary);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 4px;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    color: var(--muted);
}

.lang-btn {
    background: none;
    border: 0;
    color: var(--muted);
    font-weight: 700;
    padding: 0;
}

.lang-btn.is-active,
.lang-btn:hover {
    color: var(--primary);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background:
        linear-gradient(rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0.78)),
        url("https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?auto=format&fit=crop&w=1920&q=80") center / cover no-repeat;
}

.hero-content {
    max-width: 760px;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.05;
}

.hero .lead {
    font-size: 1.25rem;
    color: #ececec;
}

.btn-primary-custom,
.btn-outline-custom {
    border-radius: 999px;
    padding: 12px 26px;
    font-weight: 600;
    border: 2px solid var(--primary);
    transition: 0.25s ease;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white);
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--white);
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
}

/* About */
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 360px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-card strong {
    display: block;
    font-size: 2rem;
    color: var(--primary);
    font-family: "Oswald", sans-serif;
}

/* Services */
.service-card,
.why-card,
.team-card,
.news-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 28px;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
}

.service-card:hover,
.why-card:hover,
.team-card:hover,
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Team */
.team-photo {
    width: 168px;
    height: 168px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 50%;
    border: 4px solid var(--primary);
    display: block;
    margin: 0 auto 16px;
}

.team-photo-adnan {
    object-position: center 52%;
}

.team-photo-bobi {
    object-position: center 28%;
}

.team-role {
    color: var(--primary);
    font-weight: 600;
}

.social-links a {
    color: var(--white);
    margin: 0 8px;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--primary);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1rem;
}

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

.gallery-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.45);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.25s ease;
}

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

.modal-content {
    background: var(--dark-secondary);
    color: var(--white);
}

.modal-header,
.modal-footer {
    border-color: #3a3a3a;
}

#galleryModalImage {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
}

/* Hours */
.hours-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 40px;
    max-width: 720px;
    margin: 0 auto;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #3a3a3a;
}

.hours-row:last-child {
    border-bottom: 0;
}

.closed {
    color: var(--primary);
    font-weight: 700;
}

/* Contact */
.contact-info p {
    margin-bottom: 18px;
}

.contact-info i {
    color: var(--primary);
    width: 22px;
}

.contact-info a,
footer a[href^="tel"] {
    color: var(--white);
    text-decoration: none;
}

.contact-info a:hover,
footer a[href^="tel"]:hover {
    color: var(--primary);
}

.form-control {
    background: #171717;
    border: 1px solid #3a3a3a;
    color: var(--white);
    padding: 12px 14px;
}

.form-control:focus {
    background: #171717;
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(230, 57, 70, 0.2);
}

.form-control::placeholder {
    color: #8d8d8d;
}

.alert-success-custom {
    background: rgba(46, 160, 67, 0.18);
    border: 1px solid #2ea043;
    color: #d8f3dc;
}

.map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 380px;
}

.map-wrap iframe {
    width: 100%;
    height: 420px;
    border: 0;
}

/* Footer */
footer {
    background: #0b0b0b;
    padding: 60px 0 20px;
}

.footer-title {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.footer-links a,
footer a {
    color: #d0d0d0;
    text-decoration: none;
}

.footer-links a:hover,
footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #2a2a2a;
    margin-top: 32px;
    padding-top: 18px;
    color: #9a9a9a;
    font-size: 0.95rem;
}

/* Cookie consent — same dark / red identity as the main site */
.cookie-banner {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 1080;
    display: none;
    background: #171717;
    border: 1px solid #424242;
    border-radius: 14px;
    padding: 17px 20px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
}

.cookie-banner.is-visible { display: block; }

.cookie-layout {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.cookie-symbol {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(230, 57, 70, 0.14);
    color: var(--primary);
    font-size: 31px;
    position: relative;
}
.cookie-symbol::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: -17px;
    width: 2px;
    background: rgba(230, 57, 70, 0.68);
}

.cookie-copy { min-width: 0; }
.cookie-heading {
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 3px;
    color: #fff;
}
.cookie-description {
    color: #d1d1d1;
    font-size: 0.86rem;
    line-height: 1.5;
    margin: 0;
    max-width: 690px;
}
.cookie-policy-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ff6470;
    background: transparent;
    border: 0;
    padding: 3px 0 0;
    font-size: 0.85rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-policy-link:hover, .cookie-policy-link:focus-visible {
    color: #ff9aa1;
}
.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}
.cookie-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid #eee;
    background: transparent;
    color: #fff;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.2;
    min-height: 46px;
    padding: 11px 19px;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.cookie-action-primary {
    background: var(--primary);
    border-color: var(--primary);
}
.cookie-action-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.cookie-action-secondary:hover { background: #333; border-color: #fff; }
.cookie-action:focus-visible, .cookie-close:focus-visible, .footer-cookie-settings:focus-visible {
    outline: 3px solid #ff8a92;
    outline-offset: 3px;
}

/* Details and change-of-mind settings dialog */
.cookie-preferences[hidden] { display: none !important; }
.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center;
    padding: 18px;
}
.cookie-preferences-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.78); }
.cookie-preferences-dialog {
    position: relative;
    width: min(100%, 625px);
    max-height: min(90vh, 730px);
    overflow-y: auto;
    background: #1b1b1b;
    border: 1px solid #444;
    border-radius: 17px;
    box-shadow: 0 20px 65px rgba(0,0,0,0.65);
    color: #fff;
}
.cookie-preferences-header {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid #373737;
    padding: 21px 24px;
}
.cookie-preferences-mark {
    width: 41px;
    height: 41px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(230,57,70,0.15);
    color: var(--primary);
    font-size: 21px;
    flex-shrink: 0;
}
.cookie-preferences-header h2 {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 1.18rem;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    flex: 1;
}
.cookie-close {
    border: 0;
    color: #ddd;
    background: transparent;
    font-size: 1.25rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
}
.cookie-close:hover { background: #303030; }
.cookie-preferences-content { padding: 23px 24px 14px; }
.cookie-preferences-content > p { color: #c9c9c9; font-size: 0.9rem; line-height: 1.55; }
.cookie-preference-item {
    border: 1px solid #414141;
    border-radius: 12px;
    padding: 17px 18px 12px;
    margin: 17px 0;
    background: #232323;
}
.cookie-preference-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cookie-preference-title-row h3 { margin: 0; font: 600 0.95rem "Inter", sans-serif; letter-spacing: 0; text-transform: none; }
.cookie-always-active, .cookie-inactive { font-size: 0.77rem; font-weight: 600; color: #e9e9e9; background: #363636; border-radius: 20px; padding: 4px 9px; }
.cookie-always-active { color: #ff8790; background: rgba(230,57,70,0.13); }
.cookie-preference-item p { margin: 10px 0 0; color: #bbb; font-size: 0.85rem; line-height: 1.55; }
.cookie-preferences-content .cookie-external-note { font-size: 0.78rem; color: #a9a9a9; }
.cookie-preferences-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 17px 24px 22px;
    border-top: 1px solid #373737;
}
.footer-cookie-settings {
    display: inline;
    background: transparent;
    border: 0;
    padding: 0 0 0 12px;
    margin-left: 9px;
    border-left: 1px solid #666;
    color: #ff7881;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.83rem;
}
.footer-cookie-settings:hover { color: #ffb0b5; }
body.cookie-settings-open { overflow: hidden; }

@media (max-width: 1250px) {
    .cookie-layout { grid-template-columns: 65px minmax(0, 1fr); gap: 18px; }
    .cookie-symbol { width: 60px; height: 60px; font-size: 26px; }
    .cookie-symbol::after { right: -11px; }
    .cookie-actions { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 575.98px) {
    .cookie-banner { left: 9px; right: 9px; bottom: 9px; padding: 16px; }
    .cookie-layout { grid-template-columns: 1fr; gap: 10px; }
    .cookie-symbol { display: none; }
    .cookie-heading { font-size: 1.07rem; }
    .cookie-description { font-size: 0.81rem; }
    .cookie-actions { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .cookie-actions .cookie-action { font-size: 0.76rem; white-space: normal; padding: 10px 9px; min-height: 43px; }
    #cookieSettings { grid-column: 1 / -1; }
    .cookie-preferences-header, .cookie-preferences-content { padding: 16px; }
    .cookie-preferences-footer { padding: 15px 16px; }
    .cookie-preferences-footer .cookie-action { flex: 1; white-space: normal; font-size: 0.78rem; padding: 9px 8px; }
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: none;
    z-index: 1070;
}

.scroll-top.is-visible {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner.is-visible ~ .scroll-top {
    display: none;
}

.scroll-top:hover {
    background: var(--primary-dark);
}

/* Fade-in */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(17, 17, 17, 0.98);
        padding: 16px;
        border-radius: 12px;
        margin-top: 10px;
    }

    .lang-switch {
        margin: 12px 0 0;
    }

    .hero {
        text-align: center;
    }

    .hours-row {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 575.98px) {
    section {
        padding: 70px 0;
    }

}

/* Existing portrait stays intact; crop centers the face in the circular team photo. */
.gallery-item {
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    display: block;
    color: inherit;
}
.gallery-item:focus-visible {
    outline: 3px solid #ff8790;
    outline-offset: 4px;
}
.form-delivery-note { color: #c3c3c3; font-size: 0.86rem; line-height: 1.5; }
.alert-info-custom { color: #eff6ff; background: rgba(38, 124, 199, 0.14); border: 1px solid #6ca7db; }
.map-placeholder {
    min-height: 380px;
    padding: 34px 24px;
    background: #242424;
    color: #f4f4f4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}
.map-placeholder[hidden], #businessMap[hidden] { display: none !important; }
.map-placeholder p { max-width: 500px; margin: 0; }
.map-placeholder-icon { font-size: 3rem; color: var(--primary); }
