/* =========================================================
   ULEX — Premium ALU vhodna vrata
   Stilska predloga (design tokens + komponente)
   ========================================================= */

:root {
  /* Barve */
  --ink:            #14161A;
  --ink-hover:      #2C3038;
  --text-muted:     #4B5563;
  --text-subtle:    #6B7280;
  --text-footer:    #374151;
  --on-dark:        #C7CBD1;
  --surface:        #F5F6F7;
  --white:          #FFFFFF;
  --line:           #EDEEF0;
  --line-strong:    #DFE1E5;
  --line-stronger:  #C9CDD3;

  /* Postavitev */
  --maxw:           1240px;
  --maxw-narrow:    900px;
  --gutter:         24px;

  /* Radiji */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   18px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-pill: 999px;

  /* Senca */
  --shadow-card: 0 18px 40px rgba(20, 22, 26, 0.08);
  --shadow-fab:  0 10px 26px rgba(20, 22, 26, 0.12);
  --shadow-fab-strong: 0 12px 30px rgba(20, 22, 26, 0.22);

  /* Gibanje */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---------------------------- Osnove ---------------------------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--text-muted); }

img { max-width: 100%; }

summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.page { background: var(--white); overflow-x: clip; }

.container { max-width: var(--maxw); margin: 0 auto; }
.container--narrow { max-width: var(--maxw-narrow); }

.stack-28 { display: flex; flex-direction: column; gap: 28px; }
.stack-36 { display: flex; flex-direction: column; gap: 36px; }
.stack-40 { display: flex; flex-direction: column; gap: 40px; }
.stack-56 { display: flex; flex-direction: column; gap: 56px; }

.section          { padding: 96px var(--gutter) 0; }
.section--hero    { padding-top: 56px; }
.section--strip   { padding-top: 72px; }
.section--last    { padding-bottom: 112px; }

/* Ikone (iconify-icon) */
.ico { flex: none; line-height: 1; }
.ico--16 { font-size: 16px; }
.ico--17 { font-size: 17px; }
.ico--18 { font-size: 18px; }
.ico--19 { font-size: 19px; }
.ico--20 { font-size: 20px; }
.ico--22 { font-size: 22px; }
.ico--26 { font-size: 26px; }
.ico--ink { color: var(--ink); }
.ico--muted { color: var(--text-subtle); }

/* ------------------------- Preskoči na vsebino ------------------------- */

.skip-link {
  position: fixed;
  left: -9999px;
  top: 12px;
  z-index: 120;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { left: 16px; color: var(--white); }

/* ---------------------------- Tipografija ---------------------------- */

.display {
  margin: 0;
  font-size: clamp(2.5rem, 5.6vw, 4.25rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h2 {
  margin: 0;
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.h2--sm {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
}
.h2--flat { text-wrap: initial; }
.h2--center { text-align: center; text-wrap: initial; }

.h3 { margin: 8px 0 0; font-size: 18px; line-height: 25px; font-weight: 600; }
.h3--tight { margin: 0; }

.lede {
  margin: 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 29px;
  color: var(--text-muted);
  text-wrap: pretty;
}

.body {
  margin: 0;
  max-width: 52ch;
  font-size: 17px;
  line-height: 27px;
  color: var(--text-muted);
  text-wrap: pretty;
}
.body--wide { max-width: 54ch; line-height: 28px; }

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.note { font-size: 14px; line-height: 21px; color: var(--text-subtle); }

.inline-link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inline-link:hover { color: var(--text-muted); }

.pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--r-pill);
}

/* ------------------------------ Gumbi ------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  padding: 17px 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease,
              color 200ms ease, transform 200ms ease;
}
.btn:active { transform: scale(0.97); }

.btn--sm { font-size: 15px; gap: 8px; padding: 12px 18px; }

.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-hover); color: var(--white); transform: translateY(-2px); }
.btn--sm.btn--dark:hover { transform: translateY(-1px); }

.btn--ghost { padding: 17px 24px; border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface); border-color: var(--line-stronger); color: var(--ink); }

.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--line); color: var(--ink); transform: translateY(-2px); }

.btn--outline-light { padding: 17px 24px; color: var(--white); border-color: rgba(255, 255, 255, 0.28); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}

/* ------------------------------ Glava ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 54px; width: auto; display: block; }

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

.nav__link {
  display: inline-flex;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  transition: background 180ms ease, color 180ms ease;
}
.nav__link:hover { background: var(--surface); color: var(--ink); }

/* ------------------------------- Hero ------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__copy { display: flex; flex-direction: column; gap: 24px; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 4px;
}

.checklist {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

.hero__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  aspect-ratio: 4 / 5;
  max-height: 640px;
}
.hero__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* -------------------------- Konfigurator strip -------------------------- */

.configurator {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: center;
}
.configurator__copy { display: flex; flex-direction: column; gap: 10px; }
.configurator__copy .body { max-width: 56ch; }
.configurator__cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-self: end;
  align-items: flex-start;
}

/* ----------------------------- O podjetju ----------------------------- */

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 56px;
  align-items: center;
}

.about__media {
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  aspect-ratio: 4 / 3;
}
.about__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.about__copy { display: flex; flex-direction: column; gap: 20px; }

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.value { display: flex; flex-direction: column; gap: 8px; }
.value__text {
  margin: 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ------------------------------ Storitve ------------------------------ */

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  align-items: end;
}
.section-head__title { display: flex; flex-direction: column; gap: 14px; }
.section-head__title--narrow { max-width: 52ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 320ms var(--ease-out), box-shadow 320ms ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.card__media { overflow: hidden; background: var(--surface); aspect-ratio: 4 / 3; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card__title { margin: 0; font-size: 20px; line-height: 27px; font-weight: 600; }
.card__text {
  margin: 0;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* -------------------------------- Potek -------------------------------- */

.steps { position: relative; display: flex; flex-direction: column; gap: 20px; }

.steps__track {
  position: relative;
  height: 2px;
  background: var(--line);
  border-radius: 2px;
}
.steps__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
}
.steps__dot {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border-radius: 16px;
}
.step__num { font-size: 14px; font-weight: 700; color: var(--text-subtle); }
.step__text {
  margin: 0;
  font-size: 15px;
  line-height: 24px;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ------------------------------- Mnenja ------------------------------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.testimonial blockquote {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  text-wrap: pretty;
}
.testimonial figcaption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.testimonial figcaption img {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  object-fit: cover;
}
.testimonial figcaption span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* --------------------------------- FAQ --------------------------------- */

.faq { display: flex; flex-direction: column; gap: 12px; }

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 22px;
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
}
.faq__item p {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 25px;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ---------------------------- Zaključni CTA ---------------------------- */

.cta {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-2xl);
  padding: clamp(36px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
}
.cta__title {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.cta__text {
  margin: 0;
  max-width: 52ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--on-dark);
  text-wrap: pretty;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 6px;
}

/* -------------------------- Plavajoči kontakt -------------------------- */

.fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 110;
  max-width: calc(100vw - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.fab.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.fab__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--white);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-fab);
  transition: background 200ms ease, transform 200ms var(--ease-out);
}
.fab__icon:hover { background: var(--surface); transform: translateY(-2px); color: var(--ink); }
.fab__icon:active { transform: scale(0.97); }

.fab__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 22px;
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-fab-strong);
  transition: background 200ms ease, transform 200ms var(--ease-out);
}
.fab__cta:hover { background: var(--ink-hover); color: var(--white); transform: translateY(-2px); }
.fab__cta:active { transform: scale(0.97); }

.fab__label-short { display: none; }

/* -------------------------------- Noga -------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px var(--gutter) 36px;
  background: var(--white);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 8px; }
.site-footer__col:first-child { gap: 12px; }

.site-footer__logo { height: 64px; width: auto; align-self: flex-start; }
.site-footer__address { margin: 0; font-size: 15px; line-height: 23px; color: var(--text-subtle); }

.site-footer__heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.site-footer__link { font-size: 15px; line-height: 24px; color: var(--text-footer); }
.site-footer__copy { font-size: 14px; line-height: 22px; color: var(--text-subtle); margin-top: 10px; }

/* ------------------------------ Odzivnost ------------------------------ */

/* Navigacijske povezave skrijemo, ko v vrstici zmanjka prostora. */
@media (max-width: 999px) {
  .nav__link { display: none; }
}

@media (max-width: 860px) {
  .configurator__cta { justify-self: start; }
}

@media (max-width: 620px) {
  .brand img { height: 38px; }
  .site-footer__logo { height: 48px; }
  .fab__label-full { display: none; }
  .fab__label-short { display: inline; }
}

/* ----------------------- Dostopnost / tiskanje ----------------------- */

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

@media print {
  [data-r] { opacity: 1 !important; transform: none !important; }
  .fab, .skip-link { display: none !important; }
}
