/* Cistoca — glavni stylesheet (self-hosted, brez zunanjih CDN-jev) */

@import url("fonts.css");

:root {
  --bg: oklch(0.98 0.004 230);
  --text: oklch(0.24 0.015 230);
  --text-2: oklch(0.35 0.02 230);
  --text-3: oklch(0.4 0.02 230);
  --muted: oklch(0.48 0.012 230);
  --muted-2: oklch(0.55 0.012 230);
  --nav-inactive: oklch(0.35 0.015 230);
  --primary: oklch(0.52 0.09 195);
  --primary-dark: oklch(0.4 0.08 195);
  --primary-darker: oklch(0.35 0.07 195);
  --primary-light: oklch(0.94 0.03 195);
  --primary-lighter: oklch(0.98 0.02 195);
  --primary-border: oklch(0.88 0.02 195);
  --border: oklch(0.9 0.006 230);
  --border-light: oklch(0.93 0.006 230);
  --input-border: oklch(0.85 0.01 230);
  --danger: oklch(0.5 0.1 30);
  --star: oklch(0.6 0.1 60);
  --surface: oklch(0.995 0.002 230);
  --white: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .font-display {
  font-family: 'Manrope', Arial, sans-serif;
}

a { color: var(--primary); }

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

button { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.995 0.002 230 / 0.97);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-decoration: none;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  flex-shrink: 0;
}
.brand-name {
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}
.nav-link {
  background: none;
  border: none;
  color: var(--nav-inactive);
  cursor: pointer;
  padding: 0;
  font: inherit;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  display: inline-block;
  line-height: 1.6;
}
.nav-link:hover { color: var(--primary); }
.nav-link.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.phone-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
  white-space: nowrap;
}
.cart-toggle {
  position: relative;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-count {
  background: white;
  color: var(--primary-dark);
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 12px;
}

.cart-popover {
  display: none;
  max-width: 420px;
  width: calc(100% - 48px);
  margin: 0 24px 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px oklch(0.2 0.02 230 / 0.15);
  padding: 18px;
  position: absolute;
  right: 24px;
  top: 64px;
}
.cart-popover.open { display: block; }
.cart-popover-title {
  font-family: 'Manrope', Arial, sans-serif;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 10px;
}
.cart-empty-msg { font-size: 14px; color: var(--muted); }

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}
.cart-line-name { font-size: 13px; flex: 1; }
.cart-line-meta { color: var(--muted); font-size: 12px; }
.cart-line-actions { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: white;
  cursor: pointer;
  line-height: 1;
}
.qty-value { font-size: 13px; width: 20px; text-align: center; display: inline-block; }
.remove-btn {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 12px;
  margin-left: 4px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0 6px;
  font-weight: 800;
  font-family: 'Manrope', Arial, sans-serif;
}
.cart-success {
  background: var(--primary-light);
  color: var(--primary-darker);
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
  margin-top: 6px;
}
.cart-submit-btn {
  width: 100%;
  margin-top: 8px;
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 10px;
  padding: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  padding: 14px 24px;
  text-decoration: none;
  text-align: center;
}
.btn-primary { background: var(--primary); color: white; }
.btn-outline { background: white; color: var(--text); border: 1px solid var(--input-border); }
.btn-white { background: white; color: var(--primary-dark); }
.btn-small { padding: 10px 18px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 40px;
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,0.9fr);
  gap: 48px;
  align-items: center;
}
.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 {
  font-weight: 800;
  font-size: 44px;
  line-height: 1.12;
  margin: 0 0 18px;
}
.hero p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-3);
  max-width: 520px;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 36px; }
.hero-stat-value {
  font-weight: 800;
  font-size: 24px;
  color: var(--primary);
}
.hero-stat-label { font-size: 13px; color: var(--muted); }
.hero-photo {
  height: 380px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--primary-border);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 56px 24px; }
.section-tight { padding-top: 20px; padding-bottom: 60px; }
.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 24px;
}
.section-alt.no-bottom-border { border-bottom: none; }
.section-title {
  font-weight: 800;
  font-size: 28px;
  text-align: center;
  margin: 0 0 8px;
}
.section-subtitle { text-align: center; color: var(--muted); margin: 0 0 32px; }

.page-title { font-weight: 800; font-size: 36px; margin: 0 0 12px; }
.page-lede { color: var(--muted); font-size: 16px; max-width: 640px; margin: 0 0 40px; }

.grid { display: grid; gap: 20px; }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.grid-auto-team { grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); }
.grid-gap-24 { gap: 24px; }

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
}
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-light);
  margin-bottom: 14px;
}
.card-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.card-text { font-size: 14px; color: var(--muted); line-height: 1.55; }

.value-card-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--primary);
}
.value-card-text { font-size: 14px; color: var(--text-3); line-height: 1.55; }

.step { text-align: center; }
.step-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin: 0 auto 12px;
}
.step-title { font-weight: 700; margin-bottom: 6px; }
.step-text { font-size: 13px; color: var(--muted); }

.testimonial-stars { color: var(--star); font-size: 14px; margin-bottom: 10px; }
.testimonial-quote { font-size: 14px; line-height: 1.55; color: oklch(0.3 0.02 230); margin-bottom: 12px; }
.testimonial-name { font-size: 13px; font-weight: 700; }

.cta-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px;
}
.cta-inner {
  background: var(--primary);
  border-radius: 20px;
  padding: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-title { font-weight: 800; font-size: 26px; color: white; margin-bottom: 8px; }
.cta-text { color: oklch(0.94 0.02 195); font-size: 15px; }

/* ---------- Detailed services ---------- */
.service-detail {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(220px,0.6fr);
  gap: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  align-items: center;
}
.service-detail-name { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.service-detail-desc { font-size: 14px; color: var(--text-3); line-height: 1.6; margin-bottom: 14px; }
.service-detail-includes-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.service-detail-list { margin: 0 0 16px; padding-left: 18px; font-size: 13px; color: var(--text-3); line-height: 1.7; }
.service-detail-price { font-weight: 800; font-size: 18px; color: var(--primary); }
.service-detail-photo {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--primary-border);
}
.service-detail-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-detail-photo { order: -1; height: 200px; }
}

/* ---------- Shop / order ---------- */
.package-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.package-name { font-weight: 700; font-size: 16px; }
.package-desc { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }
.package-price { font-weight: 800; font-size: 18px; color: var(--primary); }

.order-box {
  margin-top: 48px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.order-box-title { font-weight: 800; font-size: 20px; margin-bottom: 16px; }
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}
.order-line-name { font-size: 14px; flex: 1; }
.order-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  background: white;
  cursor: pointer;
}
.order-total-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 0 8px;
  font-weight: 800;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 18px;
}
.order-contact-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 14px;
  margin: 16px 0;
}

/* ---------- About ---------- */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,0.7fr);
  gap: 32px;
  margin-bottom: 48px;
  align-items: center;
}
.about-intro p { font-size: 15px; line-height: 1.7; color: var(--text-2); }
.about-photo {
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--primary-border);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 680px) { .about-intro { grid-template-columns: 1fr; } }

.team-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}
.team-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 12px;
  background: var(--primary-light);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-weight: 700; }
.team-role { font-size: 12px; color: var(--primary); margin-bottom: 8px; }
.team-bio { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* ---------- Blog ---------- */
.blog-list { display: flex; flex-direction: column; gap: 20px; }
.blog-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.blog-date { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.blog-title { font-weight: 800; font-size: 19px; margin-bottom: 10px; }
.blog-text { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.blog-full { display: none; }
.blog-card.open .blog-excerpt { display: none; }
.blog-card.open .blog-full { display: block; }
.blog-toggle {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 10px 0 0;
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: white; border: 1px solid var(--border); border-radius: 12px; padding: 18px 22px; }
.faq-question {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.faq-sign { color: var(--primary); font-size: 18px; }
.faq-answer { display: none; font-size: 14px; color: var(--text-3); line-height: 1.6; margin-top: 12px; }
.faq-item.open .faq-answer { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,0.7fr); gap: 32px; }
.contact-form-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 14px; }
.form-input, .form-select, .form-textarea {
  padding: 12px 14px;
  border: 1px solid var(--input-border);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  width: 100%;
  background: white;
}
.form-textarea { resize: vertical; }
.form-check {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.form-check input { margin-top: 2px; }
.form-success { background: var(--primary-light); color: var(--primary-darker); border-radius: 10px; padding: 18px; font-size: 15px; }
.form-error { background: oklch(0.95 0.03 30); color: oklch(0.4 0.12 30); border-radius: 10px; padding: 14px; font-size: 14px; margin-bottom: 14px; }

.contact-info-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 22px; font-size: 14px; line-height: 1.8; }
.contact-info-title { font-weight: 700; margin-bottom: 6px; }
.contact-hours { margin-top: 8px; color: var(--muted); }
.contact-map {
  height: 220px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--primary-border);
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 56px 24px; font-size: 15px; line-height: 1.7; color: oklch(0.3 0.02 230); }
.legal-page.narrow { max-width: 640px; }
.legal-title { font-weight: 800; font-size: 32px; margin: 0 0 8px; color: var(--text); }
.legal-updated { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.legal-page h3 { font-family: 'Manrope', Arial, sans-serif; margin-top: 28px; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-table th, .legal-table td { padding: 10px; border: 1px solid var(--border); }
.legal-table th { background: var(--surface); text-align: left; }
.impressum-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 28px; }
.impressum-card p { margin: 0 0 10px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px oklch(0.2 0.02 230 / 0.1);
  padding: 16px 24px;
  z-index: 60;
}
.cookie-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-text { font-size: 13px; color: var(--text-3); max-width: 640px; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px;
  margin-top: auto;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 32px;
}
.footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer-brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--primary); }
.footer-brand-name { font-weight: 800; font-size: 17px; }
.footer-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.footer-col-title { font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-links a, .footer-links button {
  background: none;
  border: none;
  color: var(--text-3);
  text-align: left;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font: inherit;
}
.footer-links a:hover, .footer-links button:hover { color: var(--primary); }
.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: white;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-photo { height: 260px; }
}
