/* =========================================================
   Emajliranje Kada & Bojler Servis — stylesheet
   ========================================================= */

:root {
  --navy-900: #0b2036;
  --navy-800: #123252;
  --navy-700: #1a4066;
  --teal-500: #14b8a6;
  --teal-600: #0f9488;
  --teal-100: #e6f9f6;
  --white: #ffffff;
  --bg: #f6f8fa;
  --text: #1a2733;
  --text-muted: #5b6b7a;
  --border: #e3e8ed;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(11, 32, 54, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 32, 54, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 32, 54, 0.16);

  --container: 1180px;
  --font: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 78px;
  --mobile-bar-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-500);
  color: var(--navy-900);
  padding: 10px 16px;
  z-index: 1000;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--teal-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--teal-600); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}
.btn-secondary:hover { background: var(--navy-900); color: var(--white); }
.btn-secondary--onDark {
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-secondary--onDark:hover { background: var(--white); color: var(--navy-900); }
.btn-call {
  font-size: 1rem;
  padding: 12px 22px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-call:hover { background: var(--navy-700); }

.icon-phone::before { content: "\260E"; }
.icon-insta::before { content: "\1F4F7"; }
.icon-pin::before { content: "\1F4CD"; }
.icon-camera::before { content: "\1F4F8"; }
.icon-message::before { content: "\1F4AC"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: var(--header-h);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
}
.brand-line {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}
.brand-line--accent { color: var(--teal-600); }
.brand-amp { display: none; }
.brand-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin: 0 auto;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav ul {
  display: flex;
  gap: 24px;
}
.primary-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy-800);
  padding: 8px 0;
  position: relative;
}
.primary-nav a:hover { color: var(--teal-600); }
.primary-nav a.btn-call,
.primary-nav a.btn-call:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 65%, var(--navy-700));
  color: var(--white);
  padding: 64px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  color: var(--teal-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.hero-lead {
  margin-top: 16px;
  font-size: 1.15rem;
  color: #cfe0ec;
  font-weight: 500;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.hero-visual-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}
.hero-visual-frame img { width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }
.hero-visual-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 6px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: var(--teal-500);
  border-radius: 999px;
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--white); }
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.015em;
}
.section-subtitle {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.subsection-title {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-800);
}

/* ---------- Usluge ---------- */
.services-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  border-top: 4px solid var(--teal-500);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.service-icon {
  font-size: 2.25rem;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--teal-100), #ffffff);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
}
.service-card h3 { font-size: 1.55rem; font-weight: 800; color: var(--navy-900); margin-bottom: 12px; letter-spacing: -0.01em; }
.service-card p { color: var(--text-muted); font-size: 1rem; }
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 10px 0;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--teal-600);
}
.link-more:hover { text-decoration: underline; }

/* ---------- Problemi ---------- */
.problems-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.problem-card h3 { color: var(--navy-900); font-size: 1.15rem; font-weight: 700; margin-bottom: 16px; }
.problem-list li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text);
}
.problem-list li:last-child { border-bottom: none; }
.problem-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-500);
}
.problems-note {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Before/After slider ---------- */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}
.ba-slider-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 6/5;
  border: 1px solid var(--border);
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-clip {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
}
.ba-clip .ba-img { width: 100%; height: 100%; }
.ba-tag {
  position: absolute;
  top: 18px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 999px;
  background: rgba(11,32,54,0.8);
  color: var(--white);
  z-index: 2;
}
.ba-tag--before { left: 18px; }
.ba-tag--after { right: 18px; }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(11,32,54,0.15);
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
}
.ba-handle::after {
  content: "\21C6";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}
.ba-label {
  display: block;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Range input covers the whole photo so dragging works directly on the image,
   not just on a thin strip below it. Visuals come from .ba-tag/.ba-handle;
   the input itself stays transparent but is the real, focusable control. */
.ba-range {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  cursor: ew-resize;
  z-index: 4;
}
.ba-range::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  background: transparent;
  height: 100%;
}
.ba-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.ba-range::-moz-range-track {
  background: transparent;
  height: 100%;
  border: none;
}
.ba-range::-moz-range-thumb {
  width: 44px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: ew-resize;
}
.ba-range:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: -6px;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--navy-900);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.gallery-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.gallery-card img { aspect-ratio: 4/5; object-fit: cover; }
.gallery-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 18px 16px;
  background: linear-gradient(180deg, transparent, rgba(11,32,54,0.85) 55%);
}
.gallery-card figcaption strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.gallery-card figcaption span {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #dbe6ee;
  line-height: 1.4;
}
.gallery-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Kako radimo ---------- */
.steps-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step-number {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--teal-500);
  margin-bottom: 12px;
}
.step-card h3 { color: var(--navy-900); font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ---------- Zasto mi ---------- */
.why-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 24px;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  color: var(--navy-900);
  list-style: none;
  position: relative;
  padding-right: 30px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 16px;
  font-size: 1.4rem;
  color: var(--teal-600);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 20px; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.final-cta {
  background: linear-gradient(135deg, var(--teal-600), var(--navy-900));
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.final-cta-inner h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
.final-cta-inner p { margin-top: 14px; font-size: 1.1rem; color: #e5f5f2; }
.final-cta .hero-actions { justify-content: center; margin-top: 32px; }

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.kontakt-info p { color: var(--text-muted); margin-top: 14px; }
.kontakt-details { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.kontakt-details li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-800); }
.kontakt-details a:hover { color: var(--teal-600); }

.kontakt-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.kontakt-cta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.kontakt-cta-lead {
  color: var(--navy-800);
  font-size: 1.1rem;
  font-weight: 600;
  max-width: 26ch;
}
.kontakt-cta-card .hero-actions { margin-top: 0; }
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 8px; color: var(--navy-900); font-size: 0.92rem; }
.form-row .optional { color: var(--text-muted); font-weight: 400; }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="file"],
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  background: var(--bg);
  color: var(--text);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.18);
}
.form-row textarea { resize: vertical; }
.btn-submit { width: 100%; margin-top: 8px; }
.form-status { min-height: 20px; font-weight: 600; font-size: 0.92rem; }
.form-status[data-state="ok"] { color: var(--teal-600); }
.form-status[data-state="error"] { color: #c0392b; }

/* Honeypot - hidden from real users, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #cfe0ec;
  padding: 48px 0 96px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand { font-weight: 700; color: var(--white); }
.footer-contact p { margin-top: 8px; }
.footer-contact a:hover { color: var(--teal-500); }
.footer-copy { color: #7d93a6; font-size: 0.85rem; align-self: end; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-bar-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 600;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(11,32,54,0.18);
}
.mobile-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}
.mobile-bar-btn .icon-phone,
.mobile-bar-btn .icon-camera { font-size: 1.15rem; }
.mobile-bar-btn--call { background: var(--navy-900); color: var(--white); }
.mobile-bar-btn--photo { background: var(--teal-500); color: var(--navy-900); }

/* =========================================================
   Responsive
   ========================================================= */

/* Tablet */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .services-grid,
  .problems-grid,
  .ba-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .kontakt-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .footer-copy { align-self: start; margin-top: 12px; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 18px 28px;
    box-shadow: var(--shadow-md);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .btn-call--nav { margin-top: 16px; justify-content: center; }
  .nav-toggle { display: flex; }

  .brand-line { font-size: 1rem; }
  .brand-sub { font-size: 0.62rem; }

  .hero { padding: 40px 0 56px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .section { padding: 56px 0; }

  .gallery-grid { grid-template-columns: 1fr; gap: 16px; }
  .ba-slider-frame { aspect-ratio: 4/3.2; }
  .steps-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }

  .final-cta .hero-actions { flex-direction: column; }
  .final-cta .hero-actions .btn { width: 100%; }

  .kontakt-form { padding: 24px; }
  .kontakt-cta-card { padding: 32px 24px; }
  .kontakt-cta-card .hero-actions { flex-direction: column; width: 100%; }
  .kontakt-cta-card .hero-actions .btn { width: 100%; }

  /* Reveal sticky mobile action bar; add body padding so content isn't hidden behind it */
  .mobile-bar { display: flex; }
  .mobile-bar-btn {
    font-size: 0.78rem;
    gap: 6px;
    padding: 0 6px;
    white-space: nowrap;
  }
  .mobile-bar-btn .icon-phone,
  .mobile-bar-btn .icon-camera { font-size: 1rem; }
  body { padding-bottom: var(--mobile-bar-h); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card { transition: none; }
}
