/* ========== Vars & reset (shared) ========== */
:root {
    --fg: #111111;
    --muted: #555555;
    --primary: #e36acc;
    --gold: #d4af37;
    --gold-soft: #ffeeb5;
    --stroke: rgba(0, 0, 0, .1);
    --navH: 70px;
    --dividerH: 58px;
    --svc-pink: #e36acc;
    --svc-ink: #222;
    --svc-muted: #6b6b6b;
    --svc-paper: #fff;
    --svc-border: rgba(0, 0, 0, .08);
    --svc-radius: 16px;
    --svc-shadow: 0 6px 18px rgba(0, 0, 0, .06);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: var(--font-family, "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    font-weight: 400;
    line-height: 1.7;
    color: var(--fg);
    background: #fff;
    font-size: 16px;
}

main {
    flex: 1;
}

/* ========== Typography & Font Stacks ========== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading, "Playfair Display", Georgia, "Times New Roman", Times, serif);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: var(--primary) !important;
}

.hero-title,
.section-title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: .5px;
}

.hero-title .accent {
    color: var(--gold);
}

/* ========== Simple Hero Title Section ========== */
.hero-title-section {
    text-align: center;
    padding: calc(var(--navH, 60px) + 4rem) 1rem 3rem;
    background: linear-gradient(135deg, #fff8e7 0%, #ffffff 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
}

.hero-title-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-section .hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1rem;
}

.hero-title-section .hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.5px;
}

/* Base font sizes */
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h5 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h6 { font-size: clamp(1rem, 1.5vw, 1.25rem); }

/* Text elements */
p, li, td, th {
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
}

/* Button and form elements */
button, input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Accent font for special elements */
.accent-text {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: .5px;
}

/* sticky footer radi uvek */

/* Global font-size steps */
@media (min-width:480px) {
    html {
        font-size: 17px;
    }
}

@media (min-width:1024px) {
    html {
        font-size: 18px;
    }
}

@media (min-width:1280px) {
    html {
        font-size: 19px;
    }
}

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

/* ========== Layout / containers (shared) ========== */
.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

@media (min-width:640px) {
    .container {
        padding-inline: 1.25rem;
    }
}

@media (min-width:920px) {
    .container {
        padding-inline: 1rem;
    }
}

@media (min-width:1280px) {
    .container {
        max-width: 1280px;
    }
}


@media (min-width:920px) {
    .split {
        grid-template-columns: 1fr 1.1fr;
    }
}

.content {
    order: 1;
}

.media {
    order: 2;
}

/* ========== Buttons (shared) ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.1rem;
    border-radius: 14px;
    cursor: pointer;
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .8));
    transition: transform .12s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
}

.btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.btn.primary {
    background: linear-gradient(180deg, var(--primary), #d84fbf);
    border-color: var(--primary);
    color: #fff;
    font-weight: 700;
}

.btn.small {
    padding: .25rem .8rem;
    font-size: .9rem;
    border-radius: 6px;
}

.same-width {
    min-width: 130px;
}

/* ========== Navbar (shared) ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--stroke);
    overflow: visible;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Add padding to body to compensate for fixed navbar */
body {
    padding-top: 0;
}

/* First section after navbar compensation */
.navbar + section,
.navbar + header,
.navbar + main {
    padding-top: calc(var(--navH, 60px) + 1rem);
}

/* Hero sections have their own padding */
.navbar + header.hero {
    padding-top: calc(var(--navH, 60px) + 2rem);
}

/* ========== Hero Content Styling - ONLY for specific hero sections ========== */
.hero-title-section .content,
.hero-with-image .content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    font-family: "Manrope", sans-serif;
    letter-spacing: 0.5px;
}

.hero-desc {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 2rem 0;
    font-family: "Manrope", sans-serif;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-actions .btn {
    min-width: 160px;
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Hero with image layout - ONLY for pages that use it specifically */
.hero-with-image .container {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 920px) {
    .hero-with-image .container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
    
    .hero-with-image .content {
        text-align: left;
        max-width: none;
        padding: 0;
    }
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Responsive hero content - ONLY for hero-with-image */
@media (max-width: 768px) {
    .hero-with-image .content {
        padding: 1.5rem 1rem;
    }
    
    .hero-with-image .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-with-image .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-with-image .container {
        gap: 2rem;
    }
}

/* ========== Template Header Navigation Styles ========== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 1001;
    position: relative;
}

.nav-logo h1 {
    font-size: 1.5rem;
    color: #e36acc;
    margin: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.2rem;
}

.nav-links li a:hover {
    color: #e36acc;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    z-index: 1002;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
}

@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        padding: 80px 30px;
        gap: 30px;
        transform: translateX(100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        z-index: 1000;
    }

    .nav-links.show {
        transform: translateX(0);
        opacity: 1;
    }

    .hamburger {
        display: flex;
    }
}

.nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--navH);
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    color: var(--primary);
}

.brand .wordmark {
    display: block;
    font-family: 'Great Vibes', cursive;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: 1.5px;
    font-weight: 600;
    line-height: 1.25;
    padding-top: 6px;
    background: linear-gradient(90deg, var(--primary), #d84fbf, var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    cursor: pointer;
    background-size: 200% 100%;
    transition: background-position 1s ease;
}

.brand .wordmark:hover {
    background-position: 100% 0;
}

.nav-links {
    display: none;
    gap: .5rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .95rem;
    padding: .5rem .8rem;
    border-radius: 10px;
    color: var(--muted);
    border: 1px solid transparent;
}

.nav-links a:hover {
    border-color: var(--stroke);
    color: var(--fg);
}

.nav-links a.active {
    border-color: var(--stroke);
    color: var(--fg);
    background: linear-gradient(180deg, #fff, #f8f8f8);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    transform: translateX(-100%);
    transition: transform .4s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: translateX(0);
}

.burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    cursor: pointer;
    background: 0 0;
    border: 0;
    padding: 0;
    z-index: 110;
}

.burger span {
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    transition: transform .35s ease, opacity .2s ease, background .3s ease;
}

.burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--navH);
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(6px);
    border-top: 1px solid var(--stroke);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    z-index: 1100;
}

.mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--muted);
    border-bottom: 1px solid var(--stroke);
}

@media (min-width:920px) {
    .nav-links {
        display: inline-flex;
    }

    .burger,
    .mobile-menu {
        display: none;
    }
}

/* Mobile wordmark fallback */
@media (max-width:480px) {
    :root {
        --navH: 64px; /* Ažuriraj --navH da odgovara stvarnoj visini navigacije na mobilnim */
    }
    
    .nav-row {
        min-height: 64px;
    }

    .brand {
        gap: .5rem;
    }

    .brand .wordmark {
        font-size: 34px;
        padding-top: 6px;
        -webkit-text-fill-color: initial;
        background: none;
        color: var(--primary);
        text-shadow: 0 0 1px rgba(0, 0, 0, .18), 0 1px 0 rgba(255, 255, 255, .7);
    }
}

/* ========== Footer (shared) ========== */
footer {
    background: linear-gradient(180deg, #fff8e7, #f7f7f7);
    border-top: 1px solid var(--stroke);
    color: var(--muted);
    text-align: center;
    padding: 2rem 1rem;
    font-size: .95rem;
}

footer p {
    margin: .4rem 0;
}

footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

footer .links {
    margin-top: .6rem;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    align-items: center;
}

footer .links .links-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1rem;
    justify-content: center;
    align-items: center;
}

/* ========== Utilities (shared) ========== */
[id] {
    scroll-margin-top: calc(var(--navH));
}

.reveal-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .5s ease, transform .5s ease;
    will-change: opacity, transform;
}

.reveal-up.in {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Sections (shared) ========== */
/* ========== Sections (shared) ========== */
section {
    width: 100%;
    background: #fff;
}

.section-inner {
    max-width: 1200px;
    /* dodatno, uz postojeći padding gore */
    margin-inline: auto;
    padding: 4rem 1.25rem;
}

@media (min-width: 768px) {
    .section-inner {
        padding: 6rem 2rem;
    }
}

/* Naslovi sekcija */
.section-title {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    letter-spacing: .5px;
    color: var(--primary);
    text-align: center;
    margin: 0 0 2rem;
    line-height: 1.15;
    font-size: clamp(2.2rem, 5vw, 3rem);
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
    margin: 1rem auto 0;
    transform-origin: center;
    transform: scaleX(.6);
    transition: transform .4s ease;
}

.section-title:hover::after {
    transform: scaleX(1);
}

/* Tekst uvoda u sekciji */
.lead {
    color: var(--muted) !important;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.lead.center {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 2rem;
}

.lead-justify {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
}

@media (max-width: 720px) {
    .lead-justify {
        text-align: left;
    }

    .section-inner {
        padding: 2rem 1.25rem;
    }
}

/* Dvokolonski raspored (slika/tekst) */
.split {
    display: grid;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 920px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }
}

/* Obrnuti raspored */
.split.reverse {
    direction: rtl;
}

.split.reverse>* {
    direction: ltr;
}

/* Full-bleed dekor pozadine (opciono primeni na section/header) */
.full-bleed {
    position: relative;
    isolation: isolate;
}

.full-bleed::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 60% at 10% 0%, #fff2da 0%, transparent 60%),
        radial-gradient(1200px 60% at 90% 100%, #ffe7f8 0%, transparent 60%),
        linear-gradient(to bottom, #f7f7f7 0%, #fff8e7 100%);
}

/* Delilac talas/triangl između sekcija (opciono) */
.divider {
    display: block;
    height: var(--dividerH);
}

.divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ilustracije sa blagim “float” efektom (opciono) */
.illustration {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    will-change: transform;
    animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
    0% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-6px) rotate(-.3deg);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .illustration {
        animation: none;
    }
}

/* Sticky footer – helper (već imaš body/main flex),
   ovo je samo zaštita za starije layout-e gde main nedostaje */
.page-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrap>main {
    flex: 1;
}

.nowrap { white-space: nowrap; }
.muted  { color: var(--muted); font-weight: 600; }

/* ========== Contact Icons (Social Media Buttons) ========== */
.contact-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.contact-item {
  display: flex;
  align-items: center;
  transition: transform .25s ease;
}

.contact-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.contact-item .ci {
  width: 48px;
  height: 48px;
  transition: transform .25s ease, filter .25s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
}

.contact-item:hover .ci {
  filter: drop-shadow(0 8px 16px rgba(17, 24, 39, .18));
  transform: scale(1.05);
}

/* ========== Contact Template Specific Styles ========== */
/* Form grid layout */
form.grid {
  display: grid;
  gap: .8rem;
}

form.grid input,
form.grid textarea {
  width: 100%;
  padding: .9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, .9);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

form.grid input:focus,
form.grid textarea:focus {
  outline: none;
  border-color: var(--primary);
}

form.grid textarea {
  min-height: 130px;
  resize: vertical;
}

/* Accent triangles decoration */
.accent-tris {
  position: relative;
}

.accent-tris::before,
.accent-tris::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
  opacity: .25;
}

.accent-tris::before {
  top: -12px;
  left: -12px;
  border-width: 0 26px 26px 0;
  border-color: transparent var(--gold-soft) transparent transparent;
}

.accent-tris::after {
  bottom: -12px;
  right: -12px;
  border-width: 26px 0 0 26px;
  border-color: transparent transparent transparent var(--gold-soft);
}

/* Illustration styles */
.illustration {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  will-change: transform;
  animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .illustration {
    animation: none;
  }
}

@media (max-width: 640px) {
  .illustration {
    margin-left: .25rem;
    margin-right: .25rem;
  }
}

/* ========== Service tracker bubble ========== */
.service-tracker-bubble {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2.75rem);
  bottom: clamp(1rem, 2.5vw, 2.75rem);
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.15rem 1rem 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(227, 106, 204, 0.18);
  transform-origin: bottom right;
  transform: translate3d(0, 40px, 0) scale(0.9);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.45s cubic-bezier(.22, 1, .36, 1), box-shadow 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.45s;
  z-index: 11000;
  cursor: pointer;
  max-width: min(340px, calc(100vw - 2rem));
  color: var(--svc-ink, #1f2937);
}

.service-tracker-bubble.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
  transition: transform 0.55s cubic-bezier(.22, 1, .36, 1), box-shadow 0.3s ease, opacity 0.3s ease;
}

.service-tracker-bubble.is-active {
  transform: translate3d(0, -18px, 0) scale(1.05);
  box-shadow: 0 28px 58px rgba(15, 23, 42, 0.28);
}

.service-tracker-bubble.is-floating .service-tracker-orb {
  animation: serviceTrackerFloat 6s ease-in-out infinite;
}

.service-tracker-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  color: var(--svc-muted, #666);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.service-tracker-close span {
  font-size: 1.25rem;
  line-height: 1;
  pointer-events: none;
}

.service-tracker-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: var(--primary);
  transform: scale(1.05);
}

.service-tracker-orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary, #764ba2));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 14px 34px rgba(227, 106, 204, 0.45);
}

.service-tracker-copy {
  display: grid;
  gap: 0.25rem;
  align-content: start;
}

.service-tracker-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
}


.service-tracker-date {
  font-size: 0.85rem;
  color: var(--svc-muted, #6b7280);
}

.service-tracker-date {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.service-tracker-date::before {
  content: "📅";
}

.service-tracker-action {
  margin-top: 0.45rem;
  justify-self: start;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--gold, #764ba2));
  color: #fff !important;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(227, 106, 204, 0.38);
}

.service-tracker-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(227, 106, 204, 0.42);
}

.service-tracker-action:active {
  transform: translateY(0);
  box-shadow: 0 10px 20px rgba(227, 106, 204, 0.3);
}

.service-tracker-bubble.is-left {
  right: auto;
  left: clamp(1rem, 5vw, 1.5rem);
}

.service-tracker-bubble.is-left.is-minimized {
  left: clamp(0.85rem, 4vw, 1.25rem);
}

.service-tracker-bubble.is-minimized {
  padding: 0.65rem;
  grid-template-columns: auto;
  gap: 0;
  cursor: pointer;
}

.service-tracker-bubble.is-minimized .service-tracker-copy,
.service-tracker-bubble.is-minimized .service-tracker-close {
  display: none;
}

.service-tracker-bubble.is-minimized .service-tracker-orb {
  width: 48px;
  height: 48px;
  font-size: 1.35rem;
  box-shadow: 0 12px 24px rgba(227, 106, 204, 0.3);
}

body.has-floating-image .service-tracker-bubble {
  right: clamp(5.75rem, 14vw, 8.5rem);
}

body.has-floating-image .service-tracker-bubble.is-minimized {
  padding: 0.65rem 0.9rem;
}

body.has-floating-image .service-tracker-bubble.is-left {
  left: clamp(1.75rem, 8vw, 2.3rem);
  right: auto;
}

body.has-floating-image .service-tracker-bubble.is-left.is-minimized {
  left: clamp(1.5rem, 7vw, 2.05rem);
}

@keyframes serviceTrackerFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .service-tracker-bubble {
    right: clamp(0.75rem, 5vw, 1.5rem);
    bottom: 3.75rem;
    grid-template-columns: minmax(52px, auto);
    justify-items: center;
    text-align: center;
    padding: 1.1rem 1rem 1.2rem;
  }

  .service-tracker-copy {
    justify-items: center;
  }

  .service-tracker-action {
    width: 100%;
    justify-content: center;
  }

  .service-tracker-close {
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
  }

  body.has-sticky-cta .service-tracker-bubble {
    bottom: 8.5rem !important;
  }

  body.has-floating-image .service-tracker-bubble {
    right: clamp(3.75rem, 22vw, 6.25rem);
    bottom: 6.5rem;
  }

  .service-tracker-bubble.is-left {
    left: clamp(1.3rem, 8vw, 2.2rem);
    right: auto;
  }

  .service-tracker-bubble.is-left.is-minimized {
    left: clamp(1.15rem, 7vw, 1.95rem);
  }

  body.has-floating-image .service-tracker-bubble.is-left {
    left: clamp(2.5rem, 16vw, 3.5rem);
    right: auto;
  }

  body.has-floating-image .service-tracker-bubble.is-left.is-minimized {
    left: clamp(2.15rem, 14vw, 3.1rem);
  }

  body.has-sticky-cta.has-floating-image .service-tracker-bubble {
    bottom: 12.5rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-tracker-bubble,
  .service-tracker-orb {
    animation: none !important;
    transition: none !important;
  }
}

body.has-sticky-cta .service-tracker-bubble {
  bottom: 7.5rem !important;
}

body.has-sticky-cta.has-floating-image .service-tracker-bubble {
  bottom: 11rem !important;
}

/* ========== Sticky CTA (Pozovi/Poruci buttons) ========== */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .4rem;
    padding: .4rem .7rem;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--stroke);
    backdrop-filter: blur(8px);
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
    z-index: 1300;
    --ctaH: 52px;
    padding-bottom: calc(env(safe-area-inset-bottom) + .4rem);
}

.sticky-cta.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta .btn {
    justify-content: center;
    text-align: center;
    padding: .5rem .8rem;
    font-size: .9rem;
    min-height: auto;
}

.sticky-cta-close {
    position: absolute;
    left: 50%;
    top: -.3rem;
    transform: translateX(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    transition: transform .2s ease, background .2s ease, color .2s ease;
    z-index: 10;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

.sticky-cta-close svg {
    width: 12px;
    height: 12px;
}

.sticky-cta-close:hover {
    background: #d0d0d0;
    color: #555;
    transform: translateX(-50%) scale(1.1);
}

.sticky-cta-close:active {
    transform: translateX(-50%) scale(0.95);
    background: #c0c0c0;
}

@media (min-width: 920px) {
    .sticky-cta {
        display: none;
    }
}

body.has-sticky-cta {
    padding-bottom: calc(var(--ctaH) + env(safe-area-inset-bottom));
}

@media (min-width: 920px) {
    body.has-sticky-cta {
        padding-bottom: 0;
    }
}

/* ========== Loading & Error States (shared) ========== */
.loading-placeholder {
    background: white;
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.error-placeholder {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
    color: #c53030;
}