/* ============================================================
   ProVizija – Coming Soon stranica
   Standalone CSS (ne zavisi od style.css)
   Fontovi: Playfair Display + DM Sans (isti kao sajt)
   Boje: identične CSS varijable kao style.css
   ============================================================ */

/* ===== CSS VARIJABLE ===== */
:root {
    --primary:       #0F172A;
    --primary-light: #1E3A8A;
    --accent:        #C9A227;
    --accent-dark:   #a68620;
    --text-dark:     #1a1a2e;
    --text-light:    #6B7280;
    --bg-light:      #F3F4F6;
    --white:         #FFFFFF;
    --shadow:        rgba(15, 23, 42, 0.08);
    --shadow-lg:     rgba(15, 23, 42, 0.15);
    --border:        #e5e7eb;
}

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

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* ===== ANIMATED BACKGROUND ===== */
.cs-bg {
    position: fixed;
    top: -2px;
    left: -2px;
    right: -2px;
    /* lvh = large viewport height (URL bar hidden = max height)
       Sizing to lvh means the element never resizes when URL bar shows/hides,
       so the gradient never redraws and never shifts. */
    height: calc(100lvh + 84px);
    z-index: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    overflow: hidden;
    transform: translateZ(0); /* GPU compositing layer */
    pointer-events: none;
}

.cs-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 40%, rgba(201,162,39,.13) 0%, transparent 55%),
        radial-gradient(circle at 85% 70%, rgba(30,58,138,.35) 0%, transparent 55%);
    animation: bgPulse 8s ease-in-out infinite alternate;
}

.cs-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, var(--white) 35px, var(--white) 70px);
    pointer-events: none;
}

@keyframes bgPulse {
    from { opacity: .8; }
    to   { opacity: 1; }
}

/* ===== LAYOUT ===== */
.cs-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    isolation: isolate; /* keeps z-index stacking self-contained */
}

.cs-main {
    flex: 1;
    padding: 60px 0 80px;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Full-width hero above grid */
.cs-hero-top {
    margin-bottom: 40px;
}

/* CSS Grid – replaces float columns */
.cs-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
}

/* Accessibility */
.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* ===== SEO CONTENT SECTION ===== */
.cs-seo-section {
    margin-bottom: 0;
    animation: fadeInUp .7s ease .35s both;
}

.cs-h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--white);
    margin: 36px 0 16px;
    letter-spacing: -.5px;
}

.cs-h3 {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--accent);
    margin: 50px 0 14px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cs-seo-text {
    font-size: 1.05rem;
    color: rgba(255,255,255,.7);
    line-height: 1.9;
    margin-bottom: 16px;
}

/* Form error state */
.fc-err {
    border-color: #ef4444 !important;
}

/* ===== LOGO / HEADER ===== */
.cs-logo-bar {
    padding: 32px 0 24px;
    position: relative;
    z-index: 1;
}

.cs-logo {
    height: 48px;
    width: auto;
}

.cs-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.cs-logo-text span {
    color: var(--accent);
}

/* ===== HERO BLOCK ===== */
.cs-hero {
    padding: 20px 0 56px;
}

.cs-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(201,162,39,.15);
    border: 1px solid rgba(201,162,39,.35);
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 10px 24px;
    border-radius: 100px;
    margin-bottom: 28px;
    float: right;
    animation: fadeInUp .7s ease .1s both;
}

.cs-badge i { font-size: 14px; }

.cs-brand-h2 {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 12px;
    animation: fadeInUp .7s ease .1s both;
}

.cs-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 24px;
    animation: fadeInUp .7s ease .2s both;
}

.cs-title em {
    font-style: normal;
    color: var(--accent);
}

.cs-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,.78);
    line-height: 1.75;
    margin-bottom: 0;
    animation: fadeInUp .7s ease .3s both;
}

/* ===== USLUGE ===== */
.cs-services {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 52px;
    animation: fadeInUp .7s ease .4s both;
}

.cs-services-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,.5);
    margin-bottom: 4px;
}

.cs-service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.88);
    font-size: 1rem;
}

.cs-service-icon {
    width: 36px;
    height: 36px;
    background: rgba(201,162,39,.15);
    border: 1px solid rgba(201,162,39,.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== KONTAKT INFO ===== */
.cs-contact-section {
    margin-bottom: 24px;
}

#usluge-naslov  { animation: fadeInUp .7s ease .35s both; }
#kontakt-naslov { animation: fadeInUp .7s ease .45s both; }

.cs-contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeInUp .7s ease .5s both;
}

.cs-contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cs-contact-icon {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 18px;
    flex-shrink: 0;
}

.cs-contact-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,.45);
    line-height: 1;
    margin-bottom: 3px;
}

.cs-contact-value {
    font-size: 0.95rem;
    color: var(--white);
    font-weight: 500;
}

.cs-contact-value a {
    color: var(--white);
    transition: color .25s;
}

.cs-contact-value a:hover {
    color: var(--accent);
}

/* ===== DESNA KOLONA – KARTICA ===== */
.cs-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
    overflow: hidden;
    animation: fadeInUp .7s ease .35s both;
}

/* ----- Kontakt forma ----- */
.cs-form-wrap {
    padding: 36px 36px 28px;
}

.cs-form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.cs-form-subtitle {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 28px;
}

.form-group-cs {
    margin-bottom: 14px;
}

.form-group-cs label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form-group-cs .fc {
    width: 100%;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color .25s, box-shadow .25s;
}

.form-group-cs .fc:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(201,162,39,.12);
}

.form-group-cs textarea.fc {
    resize: none;
    height: 110px;
}

.form-group-cs select.fc {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-row-half {
    display: flex;
    gap: 12px;
}

.form-row-half .form-group-cs { flex: 1; }

.btn-cs-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: background .3s, box-shadow .3s;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cs-submit:hover {
    background: var(--accent-dark);
    box-shadow: 0 8px 24px rgba(201,162,39,.35);
}

/* ----- Mapa ----- */
.cs-map {
    height: 240px;
    overflow: hidden;
}

.cs-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ===== FOOTER ===== */
.cs-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 0;
    text-align: center;
}

.cs-footer p {
    font-size: 13px;
    color: rgba(255,255,255,.4);
}

.cs-footer a {
    color: var(--accent);
    transition: opacity .2s;
}

.cs-footer a:hover { opacity: .75; }

/* ===== SUCCESS MESSAGE ===== */
.cs-success {
    display: none;
    text-align: center;
    padding: 32px 16px;
}

.cs-success-icon {
    width: 64px;
    height: 64px;
    background: rgba(201,162,39,.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
    font-size: 28px;
}

.cs-success h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.cs-success p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 991px) {
    .cs-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Card comes after text on tablet/mobile */
    .cs-col-right { order: 2; }
    .cs-col-left  { order: 1; }

    .cs-title { font-size: 2.6rem; }
    .cs-hero-top { margin-bottom: 32px; }
    .cs-main { padding: 40px 0 60px; }
}

@media (max-width: 767px) {
    .cs-title { font-size: 2rem; letter-spacing: -1px; }
    .cs-desc  { font-size: 1rem; }
    .cs-form-wrap { padding: 24px 20px 20px; }
    .form-row-half { flex-direction: column; gap: 0; }
    .cs-map { height: 200px; }
    .cs-main { padding: 28px 0 48px; }
    .cs-logo-bar { padding: 24px 0 16px; }
    .cs-h2 { font-size: 1.2rem; }
}
