/* ============================================================
   MCOM Sales — Apple-style minimal stylesheet
   Palette: white background, grey/charcoal type, monochrome accents
   ============================================================ */

:root {
  --white: #ffffff;
  --bg-alt: #f5f5f7;          /* Apple light grey section */
  --ink: #1d1d1f;             /* near-black text */
  --grey: #6e6e73;            /* secondary text */
  --grey-light: #86868b;      /* muted */
  --heading: #515154;         /* grey headings (matches logo) */
  --line: #d2d2d7;            /* hairline borders */
  --accent: #1d1d1f;          /* monochrome CTA */
  --accent-hover: #000000;
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--white);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 720px; }

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { height: 22px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav__links a {
  font-size: 15px;
  color: var(--grey);
  font-weight: 400;
  transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }

.nav__cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 980px;
  font-weight: 500;
}
.nav__cta:hover { background: var(--accent-hover); }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 180px 0 120px;
  text-align: center;
}
.hero__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero__eyebrow {
  font-size: 15px;
  font-weight: 500;
  color: var(--grey-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--heading);
  margin-bottom: 28px;
}
.hero__lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: var(--grey);
  font-weight: 400;
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.45;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 980px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn--ghost { color: var(--ink); border-color: var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--block { width: 100%; padding: 16px; font-size: 17px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }

.section__label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-light);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 28px;
  max-width: 760px;
}
.section__text {
  font-size: 1.15rem;
  color: var(--grey);
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 18px;
}
.section__text strong { color: var(--ink); font-weight: 600; }

/* ===== Cards (Zakaj MCOM) ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__icon {
  font-size: 28px;
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt);
  border-radius: 14px;
  margin-bottom: 22px;
  color: var(--heading);
}
.card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.card__text { font-size: 1rem; color: var(--grey); line-height: 1.55; }

/* ===== Steps (Kako poteka) ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px 32px;
  margin-top: 56px;
}
.step { position: relative; }
.step__num {
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-light);
  letter-spacing: 0.05em;
  display: block;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.step__title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.step__text { color: var(--grey); font-size: 1rem; line-height: 1.55; }

/* ===== Form ===== */
.form { margin-top: 44px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.req { color: #c0392b; }
.opt { color: var(--grey-light); font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236e6e73' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(29, 29, 31, 0.08);
}
.field input.is-invalid,
.field select.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.10);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.5;
  margin: 8px 0 28px;
  cursor: pointer;
}
.checkbox input {
  width: 18px; height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.checkbox a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.checkbox a:hover { color: var(--ink); }

.form__status {
  margin-top: 18px;
  font-size: 15px;
  text-align: center;
  min-height: 1.2em;
}
.form__status.is-success { color: #1e7e34; }
.form__status.is-error { color: #c0392b; }

/* Honeypot — hidden from humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ===== Footer ===== */
.footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 72px 0 36px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__logo { height: 24px; margin-bottom: 16px; }
.footer__tagline { color: var(--grey); font-size: 0.95rem; max-width: 240px; }
.footer__col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-light);
  margin-bottom: 14px;
}
.footer__col p { font-size: 0.95rem; color: var(--grey); margin-bottom: 8px; }
.footer__col a { transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--grey-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.footer__legal a { transition: color 0.2s var(--ease); }
.footer__legal a:hover { color: var(--ink); }

/* ===== Legal pages (zasebnost, piškotki, pogoji) ===== */
.legal { padding: 150px 0 100px; }
.legal__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--heading);
  line-height: 1.1;
  margin-bottom: 12px;
}
.legal__meta {
  font-size: 0.95rem;
  color: var(--grey-light);
  margin-bottom: 48px;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 44px 0 14px;
}
.legal p {
  font-size: 1.05rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 14px;
}
.legal ul {
  margin: 0 0 16px;
  padding-left: 22px;
}
.legal li {
  font-size: 1.05rem;
  color: var(--grey);
  line-height: 1.65;
  margin-bottom: 6px;
}
.legal strong { color: var(--ink); font-weight: 600; }
.legal a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s var(--ease);
}
.legal a:hover { text-decoration-color: var(--ink); }

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.35s var(--ease);
    visibility: hidden;
  }
  .nav__links.is-open { transform: translateY(0); visibility: visible; }
  .nav__links a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav__cta { text-align: center; margin-top: 12px; border: none; }
  .nav__cta:last-child { border-bottom: none; }
  .nav__toggle { display: flex; }

  .hero { padding: 130px 0 80px; }
  .section { padding: 72px 0; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
