/* Contact page – light theme, layout like reference image */

.contact-page {
    background: #fff;
    color: #000;
}

.contact-header {
    position: relative;
}

.contact-header .hero-nav {
    background: #fff;
    color: #000;
}

.nav-logo-wrap {
    display: inline-flex;
    align-items: center;
}

.contact-main {
    padding: 0;
}

/* Body text: BMW Regular (from fonti.css); titles stay Bold */
.contact-address,
.contact-phone,
.contact-phone a,
.contact-link-row,
.contact-link-row a,
.contact-hours-row,
.contact-hours-inline,
.contact-map-address,
.contact-map-legal,
.contact-about-left,
.contact-about-left p,
.contact-about-left a {
    font-family: "BMWMotorradW01-Regular", Arial, sans-serif;
    font-weight: normal;
}

/* 1. Title section – white, left-aligned, bigger title than subtitle (same top margin as modelet) */
.contact-title-section {
    background: #fff;
    padding: 190px 24px 80px;
}

.contact-title-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: left;
}

.contact-title {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 64px;
    font-weight: 700;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
    line-height: 1.1;
}

.contact-subtitle {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #000;
}

/* 2. Delta Motors section – light grey, two columns */
.contact-dealer-section {
    background: #f2f2f2;
    padding: 56px 24px 56px;
}

.contact-dealer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-dealer-heading {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 32px;
    color: #000;
}

.contact-dealer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-dealer-left {
    color: #000;
}

/* Two columns: Kontakt | Radno vreme inline */
.contact-dealer-left-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-block {
    margin-bottom: 0;
}

.contact-info-block + .contact-info-block {
    margin-bottom: 0;
}

.contact-block-label {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #000;
}

.contact-address {
    font-style: normal;
    font-size: 15px;
    font-weight: normal;
    line-height: 1.6;
    margin: 0 0 12px;
    color: #000;
}

.contact-phone,
.contact-link-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 15px;
}

.contact-phone a,
.contact-link-row a {
    color: #000;
    text-decoration: none;
}

.contact-phone a:hover,
.contact-link-row a:hover {
    text-decoration: underline;
}

/* Inline SVG icons */
.contact-icon-svg {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.contact-icon-svg svg {
    width: 20px;
    height: 20px;
    display: block;
}

.contact-hours .contact-block-label {
    margin-bottom: 12px;
}

.contact-hours-row {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.5;
    margin: 0 0 10px;
    color: #000;
}

.contact-hours-row strong {
    display: inline;
    margin-right: 0.25em;
}

.contact-hours-inline {
    font-weight: normal;
}

/* Dealer right – slideshow */
.contact-dealer-right {
    position: relative;
}

.contact-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 6/3.9;
    background: #ddd;
    overflow: hidden;
}

.contact-slideshow-inner {
    position: absolute;
    inset: 0;
}

.contact-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.contact-slide-img.is-visible {
    opacity: 1;
    z-index: 1;
}

.contact-slide-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.contact-slide-arrow:hover {
    background: #fff;
}

.contact-slide-prev {
    left: 0;
}

.contact-slide-next {
    right: 0;
}

.contact-slide-arrow-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

.contact-slide-counter {
    position: absolute;
    bottom: 12px;
    right: 16px;
    z-index: 2;
    font-size: 14px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

/* 3. Map section */
.contact-map-section {
    background: #fff;
    padding: 56px 24px 56px;
}

.contact-map-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.contact-map-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 0;
    align-items: stretch;
}

.contact-map-left {
    position: relative;
    aspect-ratio: 6/4;
    min-height: 280px;
}

.contact-map-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-map-embed iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-map-right {
    padding: 40px 32px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #000;
}

.contact-map-label {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-map-label .contact-icon-pin svg {
    width: 28px;
    height: 28px;
    fill: #000;
}

.contact-map-address {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 24px;
    color: #000;
}

.contact-btn-directions.hero-button {
    margin-bottom: 24px;
    background: transparent;
    color: #000;
    border: 3px solid #000;
}

.contact-btn-directions.hero-button:hover {
    background: #0062ff;
    color: #fff;
    border-color: #0062ff;
}

.contact-map-legal {
    font-size: 11px;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

/* 4. O nama section – white, two columns, paragraph not bold, good grid */
.contact-about-section {
    background: #fff;
    padding: 56px 24px 80px;
}

.contact-about-heading {
    font-family: "BMWMotorradW01-Bold", Arial, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 32px;
    color: #000;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px 0;
}

.contact-about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    padding: 0 24px;
}

.contact-about-left {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.7;
    color: #000;
}

.contact-about-left p {
    margin: 0 0 16px;
    font-weight: normal;
}

.contact-about-left a {
    color: #000;
    text-decoration: underline;
}

.contact-about-left a:hover {
    text-decoration: none;
}

.contact-about-right {
    width: 100%;
}

.contact-about-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Footer: no overrides – uses same style as index.php (style.css) */

/* Mobile */
@media (max-width: 900px) {
    .contact-map-section {
        padding: 40px 24px 40px;
    }

    .contact-map-grid {
        grid-template-columns: 1fr;
    }

    .contact-map-left {
        aspect-ratio: 6/4;
        min-height: 220px;
    }

    .contact-map-right {
        padding: 24px 24px 24px 24px;
    }
}

@media (max-width: 640px) {
    /* Mobile only: no horizontal scroll, edge-to-edge slideshow/map, more title margin */
    html.contact-page,
    body.contact-page {
        overflow-x: hidden;
        max-width: 100%;
    }

    .contact-main {
        overflow-x: hidden;
        max-width: 100%;
    }

    /* Title section – same top margin as modelet (mobile) */
    .contact-title-section {
        padding: 120px 20px 48px;
    }

    .contact-title-wrap {
        margin: 0;
        max-width: none;
        text-align: left;
        padding: 0 20px;
    }

    .contact-title {
        font-size: 48px;
        margin: 0 0 12px;
    }

    .contact-subtitle {
        font-size: 18px;
    }

    .contact-dealer-section {
        padding: 40px 0 40px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .contact-dealer-inner {
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .contact-dealer-heading {
        padding: 0 20px 0;
        margin-bottom: 24px;
        font-size: 18px;
    }

    /* Slideshow above info on mobile: reorder so .contact-dealer-right (slideshow) comes first */
    .contact-dealer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }

    .contact-dealer-right {
        order: -1;
        width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    /* Slideshow full width, more height on mobile */
    .contact-slideshow {
        width: 100%;
        aspect-ratio: 16/10;
        min-height: 260px;
    }

    .contact-dealer-left {
        padding: 32px 20px 0;
    }

    .contact-dealer-left-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Map section: Adresa content before map, map edge-to-edge full width, ~20% taller */
    .contact-map-section {
        padding: 40px 0 40px;
        overflow-x: hidden;
        max-width: 100%;
    }

    .contact-map-inner {
        max-width: none;
        width: 100%;
        padding: 0;
    }

    .contact-map-grid {
        grid-template-columns: 1fr;
        gap: 0;
        max-width: 100%;
    }

    .contact-map-right {
        order: -1;
        padding: 0 20px 24px 20px;
    }

    .contact-map-left {
        width: 100%;
        min-height: 650px;
        aspect-ratio: 4/3.5;
        min-width: 0;
        overflow: hidden;
    }

    .contact-map-embed,
    .contact-map-embed iframe {
        max-width: 100%;
    }

    .contact-about-section {
        padding: 40px 20px 60px;
    }

    .contact-about-heading {
        padding: 0 20px 0;
        margin-bottom: 24px;
        font-size: 18px;
    }

    .contact-about-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
}

/* Fade-in animations on load */
@keyframes contactFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-fade-in {
    opacity: 0;
    animation: contactFadeIn 0.6s ease-out forwards;
}

.contact-title-section.contact-fade-in {
    animation-delay: 0s;
}

.contact-dealer-section.contact-fade-in {
    animation-delay: 0.15s;
}

.contact-map-section.contact-fade-in {
    animation-delay: 0.3s;
}

.contact-about-section.contact-fade-in {
    animation-delay: 0.45s;
}
