/* ===== Proxy Care Zagreb – minimal, clean, responsive (LIGHT) ===== */
:root{
  --bg:#f6f8fb;          /* page background */
  --panel:#ffffff;       /* cards */
  --panel2:#f1f4f9;      /* subtle alt background */
  --text:#0f172a;        /* main text */
  --muted:#475569;       /* secondary text */
  --line:#d9e2ef;        /* borders */
  --accent:#0284c7;      /* primary accent */
  --accent2:#059669;     /* secondary accent */
  --warning:#b45309;
  --shadow: 0 12px 30px rgba(2, 8, 23, .10);
  --radius: 18px;
  --radius2: 26px;
  --max: 1100px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--sans);
  background:
    radial-gradient(1200px 600px at 10% 10%, rgba(2,132,199,.10), transparent 60%),
    radial-gradient(1200px 600px at 90% 0%, rgba(5,150,105,.08), transparent 55%),
    radial-gradient(900px 500px at 60% 90%, rgba(180,83,9,.06), transparent 50%),
    var(--bg);
  color:var(--text);
  line-height:1.55;
}

a{color:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link{
  position:absolute; left:12px; top:12px; padding:10px 12px;
  background:var(--panel); border:1px solid var(--line); border-radius:12px;
  transform:translateY(-200%); transition:transform .2s ease;
  z-index:9999; text-decoration:none;
}
.skip-link:focus{transform:translateY(0)}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(246,248,251,.75);
  border-bottom: 1px solid rgba(217,226,239,.9);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
  gap:14px;
}
.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:44px; height:44px; border-radius:14px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(2,132,199,.18), rgba(5,150,105,.16));
  border:1px solid rgba(2,132,199,.18);
  box-shadow: var(--shadow);
  font-weight:800;
}
.logo.mini{width:38px; height:38px; border-radius:13px}
.brand-name{font-weight:800; letter-spacing:.2px}
.brand-tag{color:var(--muted); font-size:13px; margin-top:2px}

.nav{display:flex; gap:18px; align-items:center}
.nav a{color:var(--muted); text-decoration:none; font-size:14px}
.nav a:hover{color:var(--text)}
.menu-btn{
  display:none;
  background:transparent;
  border:1px solid var(--line);
  border-radius:14px;
  width:44px; height:44px;
  color:var(--text);
}
.menu-icon{
  display:block;
  width:18px; height:2px; background:var(--text);
  margin:0 auto; position:relative;
}
.menu-icon::before,.menu-icon::after{
  content:""; position:absolute; left:0;
  width:18px; height:2px; background:var(--text);
}
.menu-icon::before{top:-6px}
.menu-icon::after{top:6px}

.mobile-nav{
  border-top:1px solid rgba(217,226,239,.9);
  background: rgba(246,248,251,.92);
}
.mobile-nav-inner{
  display:flex; flex-direction:column; gap:12px;
  padding:12px 0 18px;
}
.mobile-nav a{color:var(--muted); text-decoration:none; padding:10px 12px; border-radius:12px}
.mobile-nav a:hover{background:rgba(2,8,23,.04); color:var(--text)}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(2,132,199,.95), rgba(5,150,105,.90));
  color:#ffffff;
  text-decoration:none;
  font-weight:800;
  border:1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 22px rgba(2, 8, 23, .12);
}
.btn:hover{filter:brightness(1.03)}
.btn:active{transform:translateY(1px)}
.btn-small{padding:10px 12px; border-radius:12px; font-weight:800}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-ghost:hover{background: rgba(2,8,23,.04)}
.w-100{width:100%}

/* Language switch */
.lang-switch{
  display:flex; align-items:center; gap:10px;
  padding:6px 10px;
  border:1px solid var(--line);
  border-radius:999px;
  background: rgba(255,255,255,.70);
}
.lang-switch a{
  color: var(--muted);
  text-decoration:none;
  font-size:13px;
  font-weight:800;
  padding:4px 8px;
  border-radius:999px;
}
.lang-switch a[aria-current="page"]{
  color: var(--text);
  background: rgba(2,132,199,.10);
  border:1px solid rgba(2,132,199,.18);
}

.hero{padding:56px 0 28px}
.hero-grid{
  display:grid; grid-template-columns: 1.25fr .9fr; gap:28px; align-items:start;
}
.eyebrow{
  color: var(--accent2);
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
  margin:0 0 10px;
}
h1{margin:0 0 12px; font-size:44px; line-height:1.08; letter-spacing:-.02em}
.lead{color:var(--muted); font-size:18px; margin:0 0 18px}
.lead strong{color:var(--text)}
.cta-row{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 18px}

.trust{
  display:grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.trust-item{
  padding:12px 14px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.70);
}
.trust-kpi{font-weight:900; font-size:18px}
.trust-label{color:var(--muted); font-size:12px; margin-top:2px}

.section{padding:44px 0}
.section.alt{background: var(--panel2); border-top:1px solid var(--line); border-bottom:1px solid var(--line)}
.section-head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; flex-wrap:wrap}
h2{font-size:28px; margin:0 0 10px}
h3{margin:0 0 8px; font-size:18px}
.lead-2{color:var(--muted); font-size:16px; margin:0 0 18px}
.muted{color:var(--muted)}
.tiny{font-size:12px}
.mono{font-family:var(--mono)}

.card{
  border-radius: var(--radius2);
  background: var(--panel);
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  padding:18px;
}
.hero-card .card{position:sticky; top:88px}
.divider{height:1px; background:var(--line); margin:14px 0}

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

.checklist{margin:10px 0 0; padding:0; list-style:none}
.checklist li{
  padding-left:28px; margin:10px 0; position:relative; color:var(--muted)
}
.checklist li::before{
  content:"";
  position:absolute; left:0; top:6px;
  width:16px; height:16px; border-radius:6px;
  background: rgba(5,150,105,.12);
  border:1px solid rgba(5,150,105,.25);
}
.checklist li::after{
  content:"";
  position:absolute; left:4px; top:10px;
  width:8px; height:4px;
  border-left:2px solid rgba(5,150,105,.95);
  border-bottom:2px solid rgba(5,150,105,.95);
  transform: rotate(-45deg);
}

.pricing{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:10px;
}
.price-card{
  border-radius: var(--radius2);
  background: rgba(255,255,255,.78);
  border:1px solid var(--line);
  padding:18px;
  position:relative;
}
.price-card.featured{
  background: linear-gradient(180deg, rgba(2,132,199,.08), rgba(255,255,255,.78));
  border-color: rgba(2,132,199,.25);
}
.badge{
  position:absolute;
  top:14px; left:14px;
  right:auto;
  background: rgba(180,83,9,.10);
  border:1px solid rgba(180,83,9,.20);
  color: #7a3b08;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  z-index:2;
}
.price-top{
  padding-top:18px;
  display:flex; align-items:flex-end; justify-content:space-between; gap:10px;
  margin-bottom:12px;
}
.price{
  font-size:30px;
  font-weight:900;
  letter-spacing:-.02em;
}
.price span{font-size:14px; color:var(--muted); font-weight:700; margin-left:6px}

.bullets{margin:0; padding-left:18px; color:var(--muted)}
.bullets li{margin:8px 0}

.extras{margin-top:14px}
.extras-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-top:10px;
}
.strong{font-weight:900; color:var(--text)}

.steps{
  display:grid; gap:12px; margin-top:14px;
}
.step{
  display:grid;
  grid-template-columns: 40px 1fr;
  gap:12px;
  align-items:start;
  padding:14px 16px;
  border-radius: var(--radius2);
  border:1px solid var(--line);
  background: rgba(255,255,255,.72);
}
.step-num{
  width:34px; height:34px; border-radius:14px;
  display:grid; place-items:center;
  font-weight:900;
  background: rgba(2,132,199,.10);
  border:1px solid rgba(2,132,199,.22);
}
.note{margin-top:14px}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
.contact-lines{display:grid; gap:8px; margin:6px 0 0}

.form{display:grid; gap:12px}
.form-row{display:grid; gap:6px}
label{font-weight:800; font-size:13px; color:var(--text)}
input, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.90);
  color: var(--text);
  outline:none;
}
input:focus, textarea:focus{border-color: rgba(2,132,199,.45); box-shadow: 0 0 0 4px rgba(2,132,199,.10)}
textarea{resize:vertical}

.result{margin-top:10px}
.result-head{display:flex; justify-content:space-between; align-items:center; gap:12px}
.result-box{
  margin:10px 0 0;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.95);
  color: var(--text);
  overflow:auto;
  max-height: 260px;
  font-family: var(--mono);
  font-size: 12px;
  white-space: pre-wrap;
}

.footer{
  border-top:1px solid rgba(217,226,239,.9);
  padding:22px 0;
  background: rgba(246,248,251,.75);
}
.footer-inner{display:flex; justify-content:space-between; align-items:center; gap:14px; flex-wrap:wrap}
.brand-mini{display:flex; align-items:center; gap:10px}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns: 1fr; }
  .hero-card .card{position:relative; top:auto}
  .pricing{grid-template-columns: 1fr; }
  .grid-3{grid-template-columns: 1fr}
  .grid-2{grid-template-columns: 1fr}
  .contact-grid{grid-template-columns: 1fr}
  h1{font-size:36px}
}
@media (max-width: 780px){
  .nav{display:none}
  .menu-btn{display:inline-grid; place-items:center}
  .trust{grid-template-columns: 1fr}
  .lang-switch{display:none}
}




/* ===== Anchor offset for sticky header (responsive) ===== */
:root{ --header-offset: 76px; }
section[id]{ scroll-margin-top: var(--header-offset); }

@media (max-width: 980px){ :root{ --header-offset: 68px; } }
@media (max-width: 780px){ :root{ --header-offset: 60px; } }

/* ===== Smooth anchor highlight ===== */
.anchor-flash{
  animation: anchorFlash 1.1s ease-out 1;
}
@keyframes anchorFlash{
  0%{
    box-shadow: 0 0 0 0 rgba(2,132,199,.0), 0 0 0 0 rgba(2,132,199,.0);
    border-color: var(--line);
  }
  15%{
    box-shadow: 0 0 0 6px rgba(2,132,199,.10), 0 0 0 1px rgba(2,132,199,.25);
    border-color: rgba(2,132,199,.35);
  }
  100%{
    box-shadow: 0 0 0 0 rgba(2,132,199,.0), 0 0 0 0 rgba(2,132,199,.0);
    border-color: var(--line);
  }
}

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


/* ===== Active nav item while scrolling ===== */
.nav a.is-active,
.mobile-nav a.is-active{
  color: var(--text);
}
.nav a.is-active{
  position: relative;
}
.nav a.is-active::after{
  content:"";
  position:absolute;
  left:0; right:0;
  bottom:-10px;
  height:3px;
  border-radius:999px;
  background: linear-gradient(90deg, rgba(2,132,199,.65), rgba(5,150,105,.55));
}

/* ===== Subtle title fade on anchor navigation ===== */
.anchor-fade{
  animation: anchorFade 520ms ease-out 1;
}
@keyframes anchorFade{
  0%{ opacity: .15; transform: translateY(-6px); }
  100%{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .anchor-fade{ animation:none; }
}


/* ===== Spacing fix: boundaries section last card ===== */
#granice .grid-2{ margin-bottom: 14px; }

/* Hide section top border when reached via anchor */
section:target{
  scroll-margin-top: calc(var(--header-offset) - 6px);
}


/* WhatsApp button spacing (inside contact form) */
#contactForm #waBtn{ margin-top: 8px; }
#contactForm #waNote{ margin: 6px 0 0; }


/* Contact CTA card */
.cta-card{ display:flex; flex-direction:column; gap:10px; }
.contact-cta h3{ margin:0; font-size:1.05rem; }
.contact-cta .btn{ width:fit-content; }
.contact-note{ margin:0; line-height:1.35; }
@media (max-width: 860px){
  .contact-cta .btn{ width:100%; }
}
