/* Spletnica — tokens extracted from the design comp (Spletnica.dc.html).
   Take every colour, size and rule from these variables. */

:root {
  --bg:            #faf7f2;
  --bg-alt:        #f4efe7;
  --ink:           #221e1a;
  --ink-soft:      #453f38;
  --muted:         #5c5349;
  --muted-light:   #857a6e;
  --rule:          #e7e0d6;
  --rule-strong:   #ded5c6;
  --accent:        #8c6a4f;
  --accent-dark:   #6d5137;

  /* vnosna polja */
  --field-bg:      #fffdf9;
  --accent-ring:   rgba(140, 106, 79, .18);
  --radius:        10px;

  --font-display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --font-body:    Manrope, system-ui, -apple-system, sans-serif;

  --measure: 1200px;
  --gutter: clamp(20px, 6vw, 80px);
  --section-y: clamp(56px, 8vw, 80px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; }

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.rule-top { border-top: 1px solid var(--rule); }

.kicker {
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 26px;
  padding-bottom: 26px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: .06em;
  color: var(--ink);
  text-decoration: none;
}

/* Logotip je razmerja 245:60 — višino nastavlja CSS, width/height v HTML
   sta samo rezervacija prostora, da stran ob nalaganju ne poskoči. */
.brand-logo {
  display: flex;
  align-items: center;
  flex: none;
}

.brand-logo img {
  display: block;
  height: 48px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  color: var(--muted);
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a:hover { color: var(--ink); }

.site-nav .note { color: var(--muted-light); }

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(36px, 8vw, 58px);
}

.hero h1 {
  font-size: clamp(38px, 7.4vw, 72px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  max-width: 15ch;
}

.hero .lede {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.75;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 48ch;
}

.fineprint {
  font-size: 15px;
  color: var(--muted-light);
  margin-top: 16px;
}

.fineprint a {
  color: var(--muted-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fineprint a:hover { color: var(--accent-dark); }

/* ---------- lead form ---------- */

.lead {
  max-width: 440px;
}

.lead-row {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--field-bg);
}

/* Fokus se pokaže na celem okvirju, ne na vnosnem polju znotraj njega,
   sicer bi se obroba in obris podvojila. */
.lead-row:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.lead input {
  font-family: var(--font-body);
  font-size: 17px;
  padding: 13px 16px;
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  outline: none;
}

.lead input::placeholder { color: var(--muted-light); }

.lead button {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  border: 0;
  border-left: 1px solid var(--rule-strong);
  cursor: pointer;
  background: transparent;
  color: var(--accent);
  padding: 13px 18px;
  white-space: nowrap;
}

.lead button:hover { color: var(--accent-dark); }
.lead button[disabled] { opacity: .45; cursor: default; }

.lead-field {
  margin-bottom: 22px;
}

.lead-field label {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 8px;
}

.lead-field .optional { color: var(--muted-light); }

.lead textarea {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--field-bg);
  color: var(--ink);
  resize: vertical;
  min-height: 62px;
  outline: none;
}

.lead textarea::placeholder { color: var(--muted-light); }

.lead textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.lead-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted-light);
  margin: 12px 0 0;
}

.lead-note a {
  color: var(--muted-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-note a:hover { color: var(--accent-dark); }

.lead-done {
  font-size: 17px;
  color: var(--accent-dark);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--field-bg);
  padding: 13px 16px;
}

.lead-error {
  font-size: 15px;
  color: var(--accent-dark);
  margin-top: 10px;
}

/* ---------- steps ---------- */

.steps {
  padding-bottom: clamp(56px, 8vw, 96px);
  padding-top: clamp(20px, 8vw, 30px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px);
}

.steps .num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted-light);
  margin-bottom: 10px;
}

.steps h3 {
  font-weight: 500;
  font-size: 21px;
  margin: 0 0 8px;
}

.steps p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* ---------- about ---------- */

.about {
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
}

.about-grid {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.portrait {
  border-radius: 16px;
  overflow: hidden;
  height: 320px;
  background: repeating-linear-gradient(135deg, #eae2d6 0 10px, #e0d7c9 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait .placeholder {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: var(--bg);
  padding: 5px 9px;
  border-radius: 6px;
}

.about h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.2;
  margin: 0 0 22px;
  max-width: 22ch;
}

.about p {
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.8;
  color: var(--ink-soft);
  margin: 0 0 18px;
  max-width: 60ch;
}

.about p:last-of-type { margin-bottom: 32px; }

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--rule-strong);
}

.credentials dt {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 4px;
}

.credentials dd {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
}

/* ---------- included / comparison ---------- */

.columns {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
}

.rows {
  display: grid;
  font-size: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rows li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}

.rows li:last-child { border-bottom: 0; }

.rows.compare li {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.rows.compare .was { color: var(--muted); }

/* ---------- pricing ---------- */

.pricing {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

.pricing-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.pricing .kicker { margin-bottom: 22px; }

.price {
  font-family: var(--font-display);
  font-size: clamp(44px, 7vw, 64px);
  line-height: 1;
  margin-bottom: 10px;
}

.pricing .terms {
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 6px;
  max-width: 44ch;
}

.pricing .terms-small {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted-light);
  margin: 0;
  max-width: 44ch;
}

.pricing .lead { width: 400px; max-width: 100%; }

/* ---------- faq ---------- */

.faq {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 5vw, 64px);
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

.faq details:last-child { border-bottom: 0; }

.faq summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 21px);
}

.faq summary::-webkit-details-marker { display: none; }

.faq p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 64ch;
}

/* ---------- closing cta ---------- */

.closing {
  padding-top: clamp(48px, 6vw, 64px);
  padding-bottom: clamp(48px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.closing h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.2;
  margin: 0 0 8px;
  max-width: 22ch;
}

.closing p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}

.btn-outline {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 15px 28px;
  border-radius: 999px;
  flex: none;
  text-decoration: none;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- pravna besedila ---------- */

.legal {
  padding-top: clamp(48px, 7vw, 80px);
  padding-bottom: clamp(48px, 7vw, 80px);
  max-width: 760px;
}

.legal h1 {
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 24px;
}

.legal .lede {
  font-size: 19px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 48px;
}

.legal h2 {
  font-size: 22px;
  line-height: 1.3;
  margin: 40px 0 12px;
}

.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}

.legal p { margin: 0 0 14px; }

.legal ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.legal li { margin-bottom: 6px; }

.legal strong { color: var(--ink); font-weight: 600; }

.legal-updated {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  color: var(--muted-light);
}

/* ---------- footer ---------- */

.site-footer {
  padding-top: 32px;
  padding-bottom: 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--muted-light);
}

.footer-logo {
  display: block;
  height: 30px;
  width: auto;
  flex: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .steps,
  .columns,
  .credentials { grid-template-columns: 1fr; }

  .about-grid,
  .faq { grid-template-columns: 1fr; }

  .portrait { height: 260px; max-width: 280px; }

  .credentials { gap: 20px; }

  .pricing-inner { align-items: flex-start; }
}

@media (max-width: 620px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  .brand-logo img { height: 38px; }
  .footer-logo { height: 26px; }
  .site-nav { gap: 18px; font-size: 14px; }
  .site-nav .note { display: none; }
  .closing { align-items: flex-start; }
}
