/* =============================================
   CUSTOM PROPERTIES
   ============================================= */
:root {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --gold: #f59e0b;
    --light: #f8fafc;
    --white: #ffffff;
    --muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--light);
    color: var(--primary);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* =============================================
   LAYOUT
   ============================================= */
.section {
    padding: 90px 0;
}

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 14px;
    text-align: center;
}

/* Left-aligned variant (replaces inline style="text-align:left") */
.section-title--left {
    text-align: left;
    margin-bottom: 18px;
}

.section-subtitle {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
}

/* Box headings (replaces inline style="margin-bottom:14px") */
.box-heading {
    margin-bottom: 14px;
}

/* Muted subtitle inside location box (replaces inline color:var(--muted)) */
.box-subtitle {
    color: var(--muted);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 999px;
    font-weight: 700;
    border: 2px solid transparent;
    transition: 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* =============================================
   HEADER / NAV
   ============================================= */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrapper {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    color: var(--white);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.nav-links a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    width: 44px;
    height: 44px;
    position: relative;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: 0.3s ease;
}

.menu-toggle span {
    top: 21px;
}

.menu-toggle::before {
    top: 14px;
}

.menu-toggle::after {
    top: 28px;
}

/* =============================================
   HERO
   ============================================= */
.hero {
    background:
        linear-gradient(rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.9)),
        url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    color: var(--white);
    padding: 110px 0 90px;
}

.hero-badge {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
    font-size: 0.95rem;
    font-weight: 700;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.08rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 14px;
    text-align: center;
    font-size: 0.95rem;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 28px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-card h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.quick-info {
    display: grid;
    gap: 16px;
}

.quick-info-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 16px;
}

.quick-info-item small {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

/* =============================================
   KURSNA LISTA
   ============================================= */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.rates-table {
    width: 100%;
    border-collapse: collapse;
}

.rates-table thead {
    background: var(--primary);
    color: var(--white);
}

.rates-table th,
.rates-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.rates-table tbody tr:hover {
    background: #f8fafc;
}

.rate-note {
    padding: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.highlight-box {
    padding: 28px;
}

.highlight-box h3 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.highlight-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.highlight-list li {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid var(--border);
    font-weight: 600;
}

/* =============================================
   O NAMA
   ============================================= */
.about-content p {
    color: var(--muted);
    margin-bottom: 16px;
}

.stat-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-box strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 6px;
}

/* =============================================
   PARTNERI
   ============================================= */
.partners-section {
    background: #ffffff;
}

.partner-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
    min-height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
}

.partner-card:hover {
    transform: translateY(-5px);
}

.partner-card img {
    max-width: 180px;
    max-height: 80px;
    object-fit: contain;
}

/* =============================================
   USLUGE
   ============================================= */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 26px;
    box-shadow: var(--shadow);
    transition: 0.3s ease;
    cursor: pointer;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(34, 197, 94, 0.12);
    color: var(--accent-dark);
    font-size: 1.4rem;
    font-weight: 900;
    margin-bottom: 16px;
}

.service-card h3 {
    margin-bottom: 10px;
}

.service-card p {
    color: var(--muted);
}

/* =============================================
   LOKACIJA & KONTAKT
   ============================================= */
.location-box,
.contact-card,
.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-card p {
    color: var(--muted);
    margin-bottom: 16px;
}

.location-list,
.contact-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.location-list li,
.contact-list li {
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--border);
}

.map-placeholder {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-placeholder iframe {
    display: block;
    width: 100%;
    border: 0;
}

/* =============================================
   FORM
   ============================================= */
form {
    display: grid;
    gap: 14px;
}

input,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    outline: none;
    font: inherit;
    background: #fff;
}

input:focus,
textarea:focus {
    border-color: var(--accent);
}

textarea {
    min-height: 140px;
    resize: vertical;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.9);
    padding: 26px 0;
    margin-top: 30px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.footer-content span {
    color: var(--gold);
}

.footer-content p {
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    border-radius: 18px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 15px;
    border: none;
    background: none;
    font-size: 28px;
    cursor: pointer;
}

/* =============================================
   REFRESH INDICATOR
   ============================================= */
.refresh-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 700;
    flex-wrap: wrap;
    gap: 8px;
}

.refreshing {
    animation: pulse 1s ease;
}

@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.3; }
    100% { opacity: 1; }
}

/* =============================================
   MOBILE NAV (custom toggle, not Bootstrap navbar)
   ============================================= */
@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px 28px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        padding: 85px 0 70px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    /* Responsive table on mobile */
    .rates-table thead {
        display: none;
    }

    .rates-table,
    .rates-table tbody,
    .rates-table tr,
    .rates-table td {
        display: block;
        width: 100%;
    }

    .rates-table tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
    }

    .rates-table td {
        padding: 10px 18px;
        border-bottom: none;
    }

    .rates-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.85rem;
        color: var(--muted);
        margin-bottom: 4px;
        font-weight: 700;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-title--left {
        text-align: center;
    }
}
