/* ==========================================================================
   BETI — Zdravstvena ustanova
   Dizajn: spoj kliničke preciznosti (puls/EKG) i prirodnog liječenja (vitica)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  /* Boje */
  --ink: #1B2E28;
  --ink-soft: #3C4F47;
  --paper: #F5F4EE;
  --paper-alt: #ECE8DB;
  --paper-deep: #E4DECC;
  --sage: #6E8F73;
  --sage-deep: #45604A;
  --sage-pale: #DCE5DC;
  --honey: #C6923F;
  --honey-deep: #A87527;
  --line: #D8D2BF;
  --white: #FFFFFF;

  /* Tipografija */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  /* Layout */
  --max-width: 1160px;
  --radius: 4px;
  --shadow-soft: 0 12px 32px -16px rgba(27, 46, 40, 0.18);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

em { font-style: italic; color: var(--sage-deep); }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--honey-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--honey-deep);
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--sage-deep);
  color: var(--white);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-group { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 244, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink);
}

.logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 400;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: var(--radius);
  color: var(--ink-soft);
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--ink); background: var(--paper-alt); }
.main-nav a.active { color: var(--sage-deep); }

.header-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 84px 0 100px;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero h1 { margin-bottom: 24px; }
.hero .lede { margin-bottom: 36px; }

.hero-art { position: relative; }
.pulse-vine { width: 100%; height: auto; }
.pulse-vine .draw {
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw-line 2.4s ease forwards 0.3s;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  .pulse-vine .draw { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Sekcije ---------- */
section { padding: 96px 0; }
.section-alt { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

/* Potpisni razdjelnik med sekcijama */
.divider {
  width: 100%;
  height: 28px;
  margin: 0 auto;
  display: block;
  opacity: 0.55;
}

/* ---------- Kartice / grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.card:hover { box-shadow: var(--shadow-soft); transform: translateY(-3px); }

.card .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--sage-deep);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* Usluga kartica sa brojem (stvarni redoslijed usluga) */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  margin-bottom: 24px;
  align-items: start;
}
.service-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--sage);
  line-height: 1;
}
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); }
.service-illustration {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--sage-pale), var(--paper-alt));
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-illustration svg { width: 46%; height: 46%; color: var(--sage-deep); }

/* ---------- Tim ---------- */
.team-card { text-align: center; }
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--sage-deep);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 auto 20px;
  border: 3px solid var(--paper-deep);
}
.team-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.team-role { color: var(--sage-deep); font-weight: 600; font-size: 0.88rem; margin-bottom: 12px; }
.team-detail { color: var(--ink-soft); font-size: 0.92rem; text-align: left; }

/* ---------- Cjenik ---------- */
.price-group { margin-bottom: 48px; }
.price-group h2 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.price-group h2 span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 400;
}
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  gap: 20px;
}
.price-row:last-child { border-bottom: none; }
.price-row .name { color: var(--ink); }
.price-row .amount {
  font-family: var(--font-mono);
  color: var(--honey-deep);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- Koraci (online savjetovanje) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px 0; }
.step .step-number {
  font-family: var(--font-mono);
  color: var(--sage);
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.duration-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.duration-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.duration-card .minutes { font-family: var(--font-mono); color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 6px; }
.duration-card .price { font-family: var(--font-display); font-size: 2.2rem; color: var(--sage-deep); margin-bottom: 12px; }
.duration-card p { font-size: 0.9rem; color: var(--ink-soft); }

.notice {
  background: var(--sage-pale);
  border-left: 3px solid var(--sage-deep);
  padding: 22px 26px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 36px;
}
.notice strong { color: var(--ink); }

/* ---------- Kontakt info ---------- */
.contact-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-bottom: 56px; }
.contact-info-item .eyebrow { margin-bottom: 10px; }
.contact-info-item p, .contact-info-item a { font-size: 1.05rem; }

.map-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 64px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Forme ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px;
}
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.form-row .req { color: var(--honey-deep); }
.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row input[type="file"],
.form-row textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--sage);
  outline-offset: 1px;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-item, .radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 400;
}
.checkbox-item input, .radio-item input { width: 17px; height: 17px; accent-color: var(--sage-deep); }
.radio-group { display: flex; gap: 24px; flex-wrap: wrap; }

.consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 32px 0;
}
.consent-row input { margin-top: 4px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--sage-deep); }

.form-status {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: var(--sage-pale); color: var(--sage-deep); }
.form-status.error { background: #F5DCD3; color: #8A3B22; border-left: 3px solid #B54A2A; }

/* Honeypot anti-spam polje — nevidljivo ljudima, "vidljivo" botovima koji sve popunjavaju */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* ---------- CTA traka ---------- */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0;
}
.cta-band h2 { color: var(--white); margin-bottom: 14px; }
.cta-band p { color: #B9C4BE; max-width: 520px; margin-bottom: 32px; }
.cta-band .btn-primary { background: var(--honey); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--honey-deep); color: var(--white); }
.cta-band .btn-outline { border-color: #4B5C55; color: var(--paper); }
.cta-band .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--paper-deep);
  padding: 72px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; max-width: 320px; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  color: var(--ink-soft);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col li { font-size: 0.92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--sage-deep); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.footer-legal { max-width: 700px; }
.footer-legal p { margin-bottom: 6px; }

/* ---------- Utility ---------- */
.mt-lg { margin-top: 48px; }
.text-center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Reveal na scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .steps, .duration-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-cta .btn-outline.desktop-only { display: none; }
  .grid-4, .grid-3, .grid-2, .contact-info-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .service-card { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .form-card { padding: 28px; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-nav a { width: 100%; padding: 14px 8px; }
}
