/* ===================================
   Auto Servis Page Styles - Gumex Webshop
   (mirrors the design system used by Home/Index.css and AboutUs/Index.css)
   =================================== */

:root {
    --home-amber: #ffbb34;
    --home-amber-strong: #f0a800;
    --home-amber-soft: rgba(255, 187, 52, 0.12);
    --home-amber-glow: rgba(255, 187, 52, 0.35);
    --home-ink: #111827;
    --home-ink-2: #1f2937;
    --home-text: #475467;
    --home-muted: #6c757d;
    --home-surface: #ffffff;
    --home-surface-soft: #f7f8fa;
    --home-surface-tint: #fcf9f2;
    --home-border: #e6e8eb;
}

/* Light canvas, identical to home */
html {
    background: #ffffff;
}

body {
    background: transparent !important;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(60% 70% at 12% 8%, rgba(255, 187, 52, 0.16) 0%, transparent 55%),
        radial-gradient(55% 65% at 88% 92%, rgba(255, 187, 52, 0.12) 0%, transparent 55%),
        radial-gradient(45% 55% at 95% 12%, rgba(40, 80, 160, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, #f7f8fa 0%, #ffffff 50%, #fcf9f2 100%);
}

@media (min-width: 992px) and (hover: hover) {
    body::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background-image:
            repeating-linear-gradient(125deg, rgba(17, 24, 39, 0.018) 0 1px, transparent 1px 14px),
            radial-gradient(circle at center, rgba(17, 24, 39, 0.045) 0.8px, transparent 1.3px);
        background-size: auto, 22px 22px;
    }
}

.wrap-width {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-container {
    padding-bottom: 88px;
}

/* ===== Hero Section ===== */
.servis-hero-section {
    position: relative;
    min-height: 460px;
    background-image: url('/images/gumex-landing.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
    contain: layout style;
}

.servis-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 90% at 100% 100%, var(--home-amber-glow) 0%, transparent 60%),
        linear-gradient(95deg, rgba(8, 12, 20, 0.92) 0%, rgba(8, 12, 20, 0.78) 40%, rgba(8, 12, 20, 0.5) 75%, rgba(8, 12, 20, 0.35) 100%);
    z-index: 1;
}

.servis-hero-overlay::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--home-amber) 0%, var(--home-amber-strong) 100%);
}

.servis-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 88px 20px;
}

.servis-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 14px 6px 12px;
    margin-bottom: 1.25rem;
    background: var(--home-amber-soft);
    border: 1px solid rgba(255, 187, 52, 0.5);
    color: var(--home-amber);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.servis-hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--home-amber);
    box-shadow: 0 0 0 4px var(--home-amber-soft);
}

.servis-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
    animation: fadeInUp 0.8s ease-out;
    max-width: 820px;
}

.servis-hero-title .accent {
    color: var(--home-amber);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.servis-hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 660px;
    line-height: 1.55;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.servis-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.servis-hero-actions .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.servis-hero-actions .btn-primary {
    background: linear-gradient(140deg, var(--home-amber) 0%, var(--home-amber-strong) 100%) !important;
    border: none !important;
    color: #4a2f00 !important;
    box-shadow: 0 14px 30px -14px rgba(240, 168, 0, 0.7);
}

.servis-hero-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -14px rgba(240, 168, 0, 0.85);
    color: #4a2f00 !important;
}

.servis-hero-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.servis-hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Breadcrumb styling is provided by the site-wide rules in _Layout.less */

/* ===== Intro Section ===== */
.servis-intro-section {
    margin: 16px 0 32px;
}

.servis-intro-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
}

.servis-intro-header-left {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.servis-intro-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--home-ink-2);
}

.servis-intro-eyebrow-line {
    width: 28px;
    height: 2px;
    background: var(--home-ink-2);
    border-radius: 2px;
}

.servis-intro-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--home-ink);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0;
}

.servis-intro-header-right {
    display: flex;
    align-items: end;
    padding-bottom: 8px;
}

.servis-intro-text {
    font-size: 1.05rem;
    color: var(--home-text);
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}

/* ===== Service Blocks (one full-width section per service) ===== */
.servis-blocks {
    margin-bottom: 80px;
}

.servis-block {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 48px 0;
    border-top: 1px solid var(--home-border);
}

.servis-block:first-child {
    border-top: none;
    padding-top: 24px;
}

/* Alternate media side for visual rhythm.
   Swap BOTH the column widths and the item order so the narrow media
   column and wide body column follow the media to the right side. */
.servis-block:nth-child(even) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
}

.servis-block:nth-child(even) .servis-block-media {
    order: 2;
}

.servis-block:nth-child(even) .servis-block-body {
    order: 1;
}

.servis-block-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border-radius: 20px;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 187, 52, 0.16) 0%, transparent 60%),
        var(--home-surface-tint);
    border: 1px solid rgba(255, 187, 52, 0.22);
    overflow: hidden;
    isolation: isolate;
}

.servis-block-num {
    position: absolute;
    top: 10px;
    left: 22px;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(240, 168, 0, 0.16);
    z-index: -1;
    user-select: none;
}

.servis-block-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: linear-gradient(140deg, #ffce5e 0%, var(--home-amber-strong) 100%);
    color: #4a2f00;
    font-size: 2.4rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 16px 30px -14px rgba(240, 168, 0, 0.6);
    position: relative;
}

.servis-block-icon::after {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 30px;
    background: var(--home-amber);
    opacity: 0.18;
    filter: blur(16px);
    z-index: -1;
}

.servis-block-body {
    max-width: 640px;
}

.servis-block-title {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--home-ink);
    margin: 0 0 0.9rem;
    letter-spacing: -0.015em;
    line-height: 1.15;
}

.servis-block-text {
    color: var(--home-text);
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
}

/* Highlighted "other faults / contact us" block */
.servis-block--accent .servis-block-media {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 187, 52, 0.3) 0%, transparent 60%),
        linear-gradient(155deg, #fffaf0 0%, #fdf2d8 100%);
    border-color: rgba(255, 187, 52, 0.5);
}

.servis-block-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1.3rem;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #4a2f00;
    background: linear-gradient(140deg, var(--home-amber) 0%, var(--home-amber-strong) 100%);
    box-shadow: 0 12px 24px -14px rgba(240, 168, 0, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.servis-block-link:hover {
    transform: translateY(-2px);
    color: #4a2f00;
    box-shadow: 0 16px 30px -14px rgba(240, 168, 0, 0.85);
}

/* ===== CTA Section ===== */
.servis-cta-section {
    margin-bottom: 0;
}

.servis-cta-card {
    background: linear-gradient(155deg, #1f2937 0%, #0b121f 100%);
    border-radius: 22px;
    padding: 48px 44px;
    color: #fff;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 36px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 24px 50px -28px rgba(17, 24, 39, 0.5);
}

.servis-cta-card::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--home-amber-glow) 0%, transparent 65%);
    z-index: -1;
    pointer-events: none;
}

.servis-cta-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--home-amber);
    margin-bottom: 14px;
}

.servis-cta-title {
    font-size: clamp(1.8rem, 2.8vw, 2.4rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.servis-cta-text {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 440px;
}

.servis-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.servis-cta-actions .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 12px;
    letter-spacing: 0.01em;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.servis-cta-actions .btn-primary {
    background: linear-gradient(140deg, var(--home-amber) 0%, var(--home-amber-strong) 100%) !important;
    border: none !important;
    color: #4a2f00 !important;
    box-shadow: 0 14px 30px -14px rgba(240, 168, 0, 0.7);
}

.servis-cta-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -14px rgba(240, 168, 0, 0.85);
    color: #4a2f00 !important;
}

.servis-cta-actions .btn-outline-dark {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
    backdrop-filter: blur(4px);
}

.servis-cta-actions .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .servis-hero-title {
        font-size: 2.5rem;
    }

    .servis-hero-subtitle {
        font-size: 1.1rem;
    }

    .servis-intro-header {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: start;
    }

    .servis-intro-header-right {
        padding-bottom: 0;
    }

    .servis-block {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 36px 0;
        text-align: center;
    }

    /* keep media above body on mobile regardless of alternation.
       Override the higher-specificity even-child rule that would otherwise
       keep a two-column layout (media stuck in a 300px column, not full width). */
    .servis-block:nth-child(even) {
        grid-template-columns: 1fr;
    }

    .servis-block:nth-child(even) .servis-block-media,
    .servis-block:nth-child(even) .servis-block-body {
        order: initial;
    }

    .servis-block-media {
        min-height: 150px;
    }

    .servis-block-body {
        max-width: none;
        margin: 0 auto;
    }

    .servis-cta-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 32px;
    }

    .servis-cta-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .servis-cta-actions .btn {
        flex: 1 1 240px;
    }
}

@media (max-width: 768px) {
    .servis-hero-section {
        min-height: 380px;
    }

    .servis-hero-content {
        padding: 60px 20px;
    }

    .servis-hero-title {
        font-size: 2rem;
    }

    .servis-hero-subtitle {
        font-size: 1rem;
    }

    .servis-intro-section {
        margin: 16px 0 24px;
    }

    .servis-blocks {
        margin-bottom: 56px;
    }

    .servis-block {
        padding: 30px 0;
    }

    .servis-block-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .servis-block-num {
        font-size: 4.5rem;
    }

    .servis-cta-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .servis-cta-actions .btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 576px) {
    .servis-hero-title {
        font-size: 1.8rem;
    }

    .servis-hero-eyebrow {
        font-size: 0.7rem;
        padding: 5px 12px;
    }

    .servis-hero-subtitle {
        font-size: 0.95rem;
    }

    .servis-hero-actions .btn {
        flex: 1 1 100%;
    }

    .servis-block-text {
        font-size: 1rem;
    }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    .servis-hero-title,
    .servis-hero-subtitle,
    .servis-hero-actions {
        animation: none !important;
    }

    .scroll-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .servis-block-link,
    .servis-cta-actions .btn,
    .servis-hero-actions .btn {
        transition: none;
    }
}

/* ===================================
   Overview: linked media + title + "Saznaj više"
   =================================== */
a.servis-block-media {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

a.servis-block-media:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 187, 52, 0.55);
    box-shadow: 0 18px 34px -22px rgba(240, 168, 0, 0.5);
}

.servis-block-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.servis-block-title a:hover {
    color: var(--home-amber-strong);
}

.servis-block-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 1.1rem;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--home-amber-strong);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.servis-block-more svg {
    width: 18px;
    height: 18px;
}

.servis-block-more:hover {
    gap: 12px;
    color: #4a2f00;
}

/* ===================================
   Detail page
   =================================== */
.servis-hero-section--detail {
    min-height: 340px;
}

.servis-detail-intro {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin: 24px 0 48px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 2.25rem 2.25rem;
    box-shadow: 0 24px 50px -30px rgba(17, 24, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.servis-detail-intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--home-amber) 0%, var(--home-amber-strong) 100%);
}

.servis-detail-icon {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    background: linear-gradient(140deg, #ffce5e 0%, var(--home-amber-strong) 100%);
    color: #4a2f00;
    font-size: 1.9rem;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.3),
        0 14px 26px -14px rgba(240, 168, 0, 0.6);
}

.servis-detail-lead {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--home-text);
}

.servis-detail-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 72px;
}

.servis-detail-card {
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    border-radius: 18px;
    padding: 2rem 2rem;
    box-shadow: 0 24px 50px -32px rgba(17, 24, 39, 0.18);
}

.servis-detail-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.01em;
    margin: 0 0 1.25rem;
}

.servis-detail-card-title i {
    color: var(--home-amber-strong);
    font-size: 1.15rem;
}

.servis-detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.servis-detail-list li {
    position: relative;
    padding: 0.55rem 0 0.55rem 2rem;
    color: var(--home-text);
    font-size: 1.02rem;
    line-height: 1.55;
    border-top: 1px solid var(--home-border);
}

.servis-detail-list li:first-child {
    border-top: none;
}

.servis-detail-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid var(--home-amber-strong);
    border-bottom: 2.5px solid var(--home-amber-strong);
    transform: rotate(-45deg);
}

/* ===== Related services ===== */
.servis-related {
    margin-bottom: 0;
}

.servis-related-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--home-ink);
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
    text-align: center;
}

.servis-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.servis-related-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--home-surface);
    border: 1px solid var(--home-border);
    text-decoration: none;
    color: var(--home-ink);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.servis-related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 187, 52, 0.55);
    box-shadow: 0 16px 30px -22px rgba(240, 168, 0, 0.45);
    color: var(--home-ink);
}

.servis-related-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--home-surface-tint);
    border: 1px solid rgba(255, 187, 52, 0.25);
    color: var(--home-amber-strong);
    font-size: 1.1rem;
}

.servis-related-name {
    flex: 1 1 auto;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
}

.servis-related-arrow {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--home-muted);
    transition: transform 0.25s ease, color 0.25s ease;
}

.servis-related-card:hover .servis-related-arrow {
    transform: translateX(3px);
    color: var(--home-amber-strong);
}

@media (max-width: 992px) {
    .servis-detail-cols {
        grid-template-columns: 1fr;
    }

    .servis-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .servis-detail-intro {
        flex-direction: column;
        gap: 18px;
        padding: 1.75rem 1.5rem;
    }

    .servis-detail-card {
        padding: 1.5rem 1.5rem;
    }

    .servis-related-grid {
        grid-template-columns: 1fr;
    }
}
