/* =========================================================
   Dom Ruža Jelena — dizajn 2 „Spokoj"
   Dom za stare · svetlo zeleni, prirodan, topao
   Paleta: sage podloga, duboka zelena, maslinasti akcenti
   ========================================================= */

/* ---------- 1. Promenljive i reset ---------- */
:root {
  --bg: #f3f6f2;          /* sage podloga */
  --tint: #e9f0e6;        /* svetlija zelena zona sekcija */
  --white: #ffffff;
  --green: #2e6b4f;       /* primarna duboka zelena */
  --green-dark: #24543e;  /* hover / naglasci */
  --green-soft: #dcebe0;  /* kružići ikona */
  --olive: #7a8b6f;       /* sekundarna, dekorativna (samo ne-tekst) */
  --olive-deep: #5c6b52;  /* maslinasta za tekst (5.7:1 na belom, AA) */
  --ink: #253028;         /* glavni tekst */
  --muted: #47564b;       /* sekundarni tekst (AA na belom) */
  --line: #d5e0d1;        /* ivice */
  --footer-bg: #22382c;   /* tamnozeleni footer */
  --footer-ink: #dfe9dd;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(37, 48, 40, 0.07);
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 17px; /* pristupačnost: bazni font ≥ 17px */
  scroll-behavior: smooth;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

[hidden] { display: none !important; }

a { color: var(--green); }
a:hover { color: var(--green-dark); }

h1, h2, h3 { line-height: 1.25; color: var(--ink); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* vidljiv fokus za tastaturu */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

/* skip-link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

/* sidra ne beže pod lepljivo zaglavlje */
section[id] { scroll-margin-top: 84px; }

/* ---------- 2. Dugmad (CTA ≥ 48px) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-ghost:hover {
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-block { width: 100%; }

/* ---------- 3. Zaglavlje i navigacija ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-right: auto;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.brand-sub { font-size: 0.82rem; color: var(--muted); }

.nav { display: none; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 10px;
}
.nav a:hover { background: var(--tint); color: var(--green-dark); }

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 6px 16px;
  border: 2px solid var(--green);
  border-radius: var(--radius);
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.header-phone:hover { color: var(--green-dark); border-color: var(--green-dark); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 14px;
  background: var(--tint);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.menu-toggle:hover { background: var(--green-soft); }

@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-phone { display: inline-flex; }
  .menu-toggle { display: none; }
}

/* mobilni meni */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 16px;
}
.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 8px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 10px;
}
.mobile-nav a:hover { background: var(--tint); }
.mobile-nav .mobile-phone {
  margin-top: 8px;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-weight: 700;
}
.mobile-nav .mobile-phone:hover { background: var(--green-dark); color: #fff; }

@media (min-width: 1024px) {
  .mobile-nav { display: none; }
}

/* ---------- 4. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 50% -140px, #ffffff 0%, rgba(255, 255, 255, 0) 65%),
    var(--bg);
  padding: 64px 0 56px;
  text-align: center;
}

/* grane u uglovima — suptilan motiv lišća */
.hero-branch {
  position: absolute;
  width: 240px;
  height: 240px;
  color: var(--olive);
  opacity: 0.22;
  pointer-events: none;
}
.hero-branch-tl { top: -30px; left: -36px; }
.hero-branch-br {
  bottom: -30px;
  right: -36px;
  transform: rotate(180deg);
}

.hero-inner {
  position: relative;
  max-width: 780px; /* centriran hero */
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 8px 18px;
  margin-bottom: 22px;
}
.eyebrow-leaf { display: inline-flex; }

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 38px;
}

@media (min-width: 720px) {
  .hero { padding: 88px 0 72px; }
  .hero h1 { font-size: 2.55rem; }
  .hero-branch { width: 320px; height: 320px; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 2.8rem; }
}

/* trust-red */
.trust-bar {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 780px;
  margin: 0 auto;
}
.trust-bar li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  box-shadow: var(--shadow);
}
.trust-bar svg { color: var(--green); flex: none; }

@media (min-width: 720px) {
  .trust-bar { flex-direction: row; justify-content: center; flex-wrap: wrap; }
}

/* ---------- 5. Organski talasi (separatori) ---------- */
.wave { line-height: 0; }
.wave svg { display: block; width: 100%; height: 48px; }
.wave path { fill: currentColor; }

.wave-a { background: var(--bg); color: var(--white); }      /* hero → o domu */
.wave-b { background: var(--white); color: var(--tint); }    /* belo → tint */
.wave-c { background: var(--tint); color: var(--white); }    /* tint → belo */
.wave-f { background: var(--white); color: var(--footer-bg); } /* kontakt → footer */

@media (min-width: 720px) {
  .wave svg { height: 64px; }
}

/* ---------- 6. Sekcije i naslovi ---------- */
.section { padding: 56px 0; }

@media (min-width: 720px) {
  .section { padding: 72px 0; }
}

.about, .contact { background: var(--white); }
.services, .faq { background: var(--tint); }
.process { background: var(--white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.head-leaf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  margin-bottom: 12px;
}

.section-tag {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}

.section-head h2 {
  font-size: 1.7rem;
  font-weight: 800;
}

@media (min-width: 720px) {
  .section-head h2 { font-size: 2.1rem; }
}

/* ---------- 7. O domu ---------- */
.about-body {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}
.about-body p {
  font-size: 1.08rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.about-body p:last-child { margin-bottom: 0; }

.fact-cards {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 980px;
  margin: 0 auto;
}
.fact-cards li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.fact-cards h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}
.fact-cards p { color: var(--muted); font-size: 0.98rem; }

@media (min-width: 720px) {
  .fact-cards { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .fact-cards { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- 8. Usluge (2×4, ikona levo — tekst desno) ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease;
}
.service-card:hover { transform: translateY(-3px); }

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  flex: none;
}

.service-body h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.service-body > p {
  color: var(--muted);
  font-size: 0.99rem;
  margin-bottom: 12px;
}

.service-list { list-style: none; }
.service-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
  font-size: 0.96rem;
  margin-bottom: 6px;
}
.service-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--olive);
  font-weight: 700;
}
.service-list li:last-child { margin-bottom: 0; }

@media (min-width: 720px) {
  .services-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
}

/* ---------- 9. Kako do smeštaja (vertikalni timeline) ---------- */
.steps {
  list-style: none;
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--line);
}

.step-item {
  position: relative;
  display: flex;
  gap: 22px;
  padding: 0 0 34px;
}
.step-item:last-child { padding-bottom: 0; }

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  flex: none;
  box-shadow: 0 0 0 6px var(--white);
}

.step-body { padding-top: 6px; }
.step-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 1rem; max-width: 520px; }

/* ---------- 10. Česta pitanja (accordion, jedna kolona) ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 22px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--green-dark); }

.faq-item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 1rem;
  max-width: 660px;
}

/* ---------- 11. Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  max-width: 1020px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 48px; }
}

.info-list { list-style: none; margin-bottom: 24px; }
.info-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.info-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--olive-deep);
}
.info-value { font-size: 1.08rem; font-weight: 600; }
.info-value a {
  color: var(--green);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.info-value a:hover { color: var(--green-dark); text-decoration: underline; }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.map-wrap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}
.map-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 8px;
  font-weight: 700;
  color: var(--green);
}
.map-link:hover { color: var(--green-dark); }

/* forma */
.contact-form-wrap form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.35rem;
  margin-bottom: 18px;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid #77897a; /* ≥3:1 na belom i na sage podlozi (WCAG 1.4.11) */
  border-radius: 10px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.field ::placeholder { color: #6b7a6e; opacity: 1; }

/* honeypot — van ekrana, NE display:none */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-ok {
  margin-top: 16px;
  background: var(--green-soft);
  border: 1px solid var(--green);
  border-radius: 10px;
  padding: 14px 16px;
}
.form-ok p { color: var(--green-dark); font-weight: 600; }

.form-note {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- 12. Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  padding: 44px 0 36px;
}

.footer-inner { text-align: center; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.brand-mark-footer {
  background: rgba(255, 255, 255, 0.12);
  color: var(--footer-ink);
}
.footer-name { font-weight: 700; font-size: 1.15rem; }

.site-footer p { margin-bottom: 8px; font-size: 0.98rem; }
.site-footer a { color: #bcd8c4; }
.site-footer a:hover { color: #fff; }

.footer-phone a {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-note { opacity: 0.85; }
.footer-copy { margin-top: 14px; font-size: 0.9rem; opacity: 0.8; }
.footer-made { white-space: nowrap; }

/* ---------- 13. Reveal animacija (samo transform/opacity) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- 14. Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .service-card,
  .faq-item summary::after,
  .btn { transition: none; }
  .service-card:hover { transform: none; }
}
