/* ==========================================================================
   Purus landing page
   Figma: Početna stranica (desktop 1920, container 1440)
   ========================================================================== */

:root {
  --ink: #1f242a;
  --ink-2: #353a3f;
  --slate: #314254;
  --accent: #83cad2;
  --card: #f0f1f1;
  --card-2: #f6f7f9;
  --white: #fff;
  --black: #000;

  --font-display: "Helvetica Neue", Helvetica, Arimo, Arial, sans-serif;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1440px;
  --gutter: clamp(20px, 4vw, 48px);
  --section-gap: clamp(96px, 19vw, 365px);
  --radius: 10px;

  --fs-h2: clamp(2.25rem, 1.35rem + 2.9vw, 4.0625rem);   /* 65px */
  --fs-h3: clamp(1.625rem, 1.2rem + 1.1vw, 2.5rem);      /* 40px */
  --fs-lead: clamp(1rem, 0.93rem + 0.3vw, 1.1875rem);    /* 19px */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.34;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Mamac za botove u formi — van ekrana i za čitače ekrana. */
.field-trap {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

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

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { margin-top: var(--section-gap); }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.01;
  color: var(--ink);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.01;
  color: var(--ink);
}
.muted {
  font-family: var(--font-display);
  font-size: var(--fs-lead);
  line-height: 1.2;
  color: var(--ink);
  opacity: 0.6;
}
.accent { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 23px;
  min-height: 52px;
  padding: 8px 11px 8px 26px;
  border: 0;
  border-radius: 54px;
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.017;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.btn__icon { flex: none; width: 36px; height: 36px; }
.btn__icon img { width: 36px; height: 36px; transform: rotate(-90deg); transition: transform .25s ease; }
.btn:hover .btn__icon img { transform: rotate(-90deg) translateY(3px); }
.btn:active { transform: scale(.98); }

.btn--dark { background: var(--black); color: var(--white); }
.btn--dark:hover { background: #222; }
.btn--ink { background: var(--ink); color: #f8f8f8; }
.btn--ink:hover { background: #2c333b; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #eef0f2; }
.btn--block { display: flex; width: 100%; justify-content: space-between; padding-left: 23px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(760px, 63.55vw, 1220px);
  background: #dcdcdf;
  overflow: hidden;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../img/hero-product.webp") 50% 100% / auto 121.6% no-repeat;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: inherit;
  padding-top: 40px;
  padding-bottom: clamp(32px, 2.6vw, 50px);
}

/* Nav */
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  border-block: 0.5px solid var(--black);
}
.nav__logo { transform: translateY(4px); }
.nav__logo img { width: 105px; height: auto; }
.nav__cta { gap: 24px; }

/* Hero content */
.hero__content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(48px, 6.7vw, 129px);
}
.hero__title {
  max-width: 518px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 0.97;
  color: var(--black);
}
.hero__aside {
  width: 400px;
  flex: none;
}
.hero__aside p {
  max-width: 388px;
  font-size: 16px;
  line-height: 1.34;
  color: var(--black);
}
.hero__aside .btn { margin-top: 31px; }

/* Stats */
.stats {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: auto;
}
.stat { display: flex; align-items: flex-start; gap: 17px; }
.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--slate);
  white-space: nowrap;
  padding-top: 3px;
}
.stat__label {
  max-width: 108px;
  font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1.125rem);
  line-height: 1.21;
  color: var(--black);
}


/* ==========================================================================
   Features
   ========================================================================== */
.features__title { max-width: 1111px; }
.features__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(48px, 5.4vw, 103px);
}
.card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-radius: var(--radius);
}
.feature { display: flex; flex-direction: column; }
.feature .muted { margin-top: 19px; }

.feature--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 497px;
}
.feature--wide .feature__img--carpet {
  width: calc(100% - 21px);
  max-width: 700px;
  margin-left: 21px;
  align-self: start;
  aspect-ratio: 700 / 466;
  object-fit: contain;
}
.feature--wide .feature__body { align-self: end; padding: 0 55px 65px 76px; max-width: 586px; }

.feature--tall { grid-row: span 2; min-height: 924px; }
.feature--tall .feature__img--motor {
  width: 91.5%;
  max-width: 650px;
  margin: 116px 0 0 10px;
}
.feature--tall .feature__body { margin-top: auto; padding: 0 57px 51px; max-width: 580px; }

.feature--light { min-height: 452px; }
.feature--light .feature__img--light {
  position: absolute;
  top: 0;
  right: 28px;
  width: 347px;
  height: 235px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.feature--light .feature__body { margin-top: auto; padding: 0 69px 60px; max-width: 610px; position: relative; }

.feature--water { min-height: 452px; }
.feature--water .feature__body { padding: 60px 69px 0; max-width: 660px; position: relative; z-index: 1; }
.feature--water .feature__img--water {
  position: absolute;
  right: 4px;
  top: 236px;
  width: 343px;
  height: 313px;
  object-fit: cover;
}

.feature--icon {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 311px;
  padding: 62px 54px 50px 55px;
}
.feature--icon .feature__body { max-width: 403px; align-self: flex-start; }
.feature--icon .h3 { max-width: 280px; }
.feature__icon { flex: none; }
.feature__icon--clock { width: 198px; height: 181px; object-fit: cover; mix-blend-mode: multiply; }
.feature__icon--drops { position: relative; width: 204px; height: 176px; overflow: hidden; }
.feature__icon--drops img { position: absolute; left: 0; top: -5.43%; width: 100%; height: 105.49%; max-width: none; }

/* ==========================================================================
   Powerbrush
   ========================================================================== */
.powerbrush__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.powerbrush__title { max-width: 903px; line-height: 0.9; }
.powerbrush__text {
  max-width: 813px;
  margin-top: clamp(24px, 1.8vw, 34px);
  font-size: var(--fs-lead);
  line-height: 1.2;
}
.powerbrush__img {
  width: 100%;
  max-width: 697px;
  aspect-ratio: 697 / 692;
  object-fit: contain;
  margin-top: 34px;
}

/* ==========================================================================
   Banner
   ========================================================================== */
.banner {
  position: relative;
  min-height: 627px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.banner__media {
  position: absolute;
  z-index: -1;
  left: -1.5625%;
  top: -22.65%;
  width: 141.6%;
  aspect-ratio: 2719 / 924;
}
.banner__media img:first-child { width: 100%; height: 100%; object-fit: cover; }
.banner__dot {
  position: absolute;
  left: 56.49%;
  top: 64.29%;
  width: 0.772%;
  height: auto;
}
.banner__inner { padding-top: 189px; padding-bottom: 188px; }
.banner__title {
  max-width: 668px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  text-transform: uppercase;
}
.banner__text {
  max-width: 439px;
  margin-top: 26px;
  font-size: var(--fs-lead);
  line-height: 1.2;
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.reviews__title { max-width: 1099px; line-height: 1.17; }
.reviews__nav { display: flex; gap: 13px; margin-top: 12px; margin-right: -5px; }
.slider-btn {
  display: grid;
  place-items: center;
  width: 56px;
  height: 53px;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  transition: opacity .2s, background-color .2s;
}
.slider-btn img { width: 40px; height: 40px; }
.slider-btn--prev img { transform: scaleX(-1); }
.slider-btn--next { background: var(--ink); }

.reviews__track {
  --track-start: calc(max(var(--gutter), (100vw - var(--container)) / 2) + 4px);
  display: flex;
  gap: 15px;
  margin-top: clamp(32px, 3.3vw, 63px);
  padding-inline: var(--track-start) var(--gutter);
  scroll-padding-inline: var(--track-start);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  /* loop clones sit to the left too; keep the left edge aligned to the container like the design */
  clip-path: inset(-20px -20px -20px calc(var(--track-start) - 4px));
}
.reviews__track::-webkit-scrollbar { display: none; }
.reviews__track:focus-visible { outline-offset: -2px; }

.review {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: min(442px, 82vw);
  min-height: 647px;
  padding: 34px 32px 33px;
  border-radius: 18px;
  background: var(--card-2);
  scroll-snap-align: start;
}
.review__avatar {
  position: relative;
  display: block;
  width: 91px;
  height: 91px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--white);
}
.review__avatar img { position: absolute; max-width: none; object-fit: cover; }
.review__quote { width: 46px; height: auto; margin-top: 98px; }
.review__text {
  max-width: 377px;
  margin-top: 40px;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.4375rem);
  font-weight: 500;
  line-height: 1.34;
}
.review__name {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.625rem);
  line-height: 1.214;
}

/* ==========================================================================
   Booking form
   ========================================================================== */
.booking {
  position: relative;
  min-height: 880px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.booking__media {
  position: absolute;
  z-index: -1;
  top: -1px;
  left: calc(50% - 960px - 410px);
  width: 2740px;
  height: 881px;
}
.booking__media img { width: 100%; height: 100%; object-fit: cover; }
.booking__inner {
  display: flex;
  justify-content: flex-end;
  padding-top: 177px;
  padding-bottom: 120px;
}
.booking__form {
  width: 504px;
  margin-right: calc(1440px - 833px - 504px);
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.017;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--accent); }
.booking__title {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.46rem);
  line-height: 1.02;
}
.booking__form .field:first-of-type { margin-top: 35px; }
.field { position: relative; margin-top: 13px; }
.field input,
.field select {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 20px 0 28px;
  border: 1px solid transparent;
  border-radius: 7.5px;
  background: rgba(124, 124, 127, 0.24);
  color: var(--white);
  font-size: 16px;
  line-height: 1.017;
  outline: none;
  transition: border-color .2s, background-color .2s;
  appearance: none;
}
.field input::placeholder { color: rgba(255, 255, 255, .8); opacity: 1; }
.field input:focus,
.field select:focus { border-color: var(--accent); background: rgba(124, 124, 127, 0.34); }
.field select { cursor: pointer; }
.field select:invalid { color: rgba(255, 255, 255, .8); }
.field select option { color: var(--ink); }
.field--select::after {
  content: "";
  position: absolute;
  right: 22px;
  top: 22px;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(255, 255, 255, .8);
  border-bottom: 1.5px solid rgba(255, 255, 255, .8);
  transform: rotate(45deg);
  pointer-events: none;
}
.field.is-invalid input,
.field.is-invalid select { border-color: #e07a7a; }
.field__error { display: block; font-size: 13px; color: #f0a0a0; }
.field__error:empty { display: none; }
.field__error:not(:empty) { margin-top: 6px; }
.booking__form .btn { margin-top: 34px; }
.booking__status { margin-top: 16px; font-size: 15px; color: var(--accent); }
.booking__status:empty { display: none; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  margin-top: clamp(48px, 5.5vw, 103px);
}
.qa {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 555px;
  padding: 57px 54px 55px;
}
.qa--wide { grid-column: span 3; min-height: 452px; padding-top: 48px; }
.qa__media {
  display: flex;
  align-items: flex-end;
  height: 182px;
}
.qa--wide .qa__media { height: 160px; margin-left: -12px; }
.qa__media img { height: auto; max-height: 100%; object-fit: contain; }
.qa__badge {
  margin-left: -9px;
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: 1.01;
  letter-spacing: -0.01em;
}
.qa .h3 { margin-top: auto; padding-top: 44px; max-width: 420px; letter-spacing: -0.01em; }
.qa .muted { margin-top: 17px; max-width: 409px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  margin-top: var(--section-gap);
  padding-top: 98px;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.footer__heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.05rem + 0.55vw, 1.625rem);
  line-height: 1.01;
  text-transform: uppercase;
  opacity: 0.6;
}
.footer__heading--plain { text-transform: none; }
.footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.footer__cta .btn { color: #3a3a3a; }

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 160px;
  padding: 24px 34px;
  border-radius: 46px;
  background: var(--ink-2);
}
.footer__bar p {
  font-family: var(--font-display);
  font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.625rem);
  line-height: 1.01;
}

.footer__wordmark {
  width: 100%;
  max-width: 1442px;
  height: auto;
  margin-top: 147px;
  margin-bottom: -1px;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

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

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1280px) {
  .feature--wide .feature__body { padding-left: 40px; }
  .feature--tall { min-height: 0; }
  .feature--light .feature__img--light { width: 52%; height: auto; right: 16px; }
  .feature--water .feature__img--water { width: 48%; height: auto; top: auto; bottom: -20%; }
  .feature--icon { padding: 44px 36px; }
  .feature__icon--clock { width: 150px; height: auto; }
  .feature__icon--drops { width: 154px; height: 133px; }
  .qa { padding-inline: 40px; }
  .booking__form { margin-right: 0; }
}

@media (max-width: 1024px) {
  .hero { min-height: 1000px; }
  .hero__media {
    background-size: auto 58%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 42%, #000 54%);
            mask-image: linear-gradient(to bottom, transparent 42%, #000 54%);
  }
  .stats {
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
  }
  .hero__content { flex-direction: column; gap: 24px; }
  .hero__aside { width: auto; max-width: 420px; }

  .features__grid { grid-template-columns: 1fr; }
  .feature--wide { grid-template-columns: 1fr; min-height: 0; }
  .feature--wide .feature__img--carpet { margin: 0 auto; width: 90%; }
  .feature--wide .feature__body { padding: 8px 40px 44px; max-width: none; }
  .feature--tall { grid-row: auto; }
  .feature--tall .feature__img--motor { margin: 40px auto 0; width: 80%; }
  .feature--tall .feature__body { padding: 32px 40px 44px; }
  .feature--light, .feature--water { min-height: 0; }
  .feature--light .feature__img--light { position: static; width: 60%; margin: 0 0 0 auto; }
  .feature--light .feature__body { padding: 8px 40px 44px; }
  .feature--water .feature__body { padding: 44px 40px 0; }
  .feature--water .feature__img--water { position: static; width: 55%; margin: 16px 0 -4px auto; }

  .faq__grid { grid-template-columns: 1fr 1fr; }
  .qa, .qa--wide { grid-column: auto; min-height: 0; padding: 40px; }
  .qa .h3 { padding-top: 32px; }

  .footer__bar { margin-top: 72px; }
  .footer__wordmark { margin-top: 72px; }

  /* Banner: copy on top, product image below */
  .banner { min-height: 0; }
  .banner__media {
    position: relative;
    left: 50%;
    top: auto;
    width: 210%;
    transform: translateX(-48.5%);
    margin-top: -12%;
    margin-bottom: -10%;
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 88%);
            mask-image: linear-gradient(to bottom, #000 70%, transparent 88%);
  }
  .banner__inner { padding-top: 80px; padding-bottom: 80px; }

  /* Booking: door image on top, form below */
  .booking { min-height: 0; }
  .booking__media {
    position: relative;
    left: 50%;
    width: 175%;
    height: auto;
    aspect-ratio: 2740 / 881;
    transform: translateX(-34.5%);
  }
  .booking__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, var(--ink));
  }
  .booking__inner { justify-content: flex-start; padding-top: 8px; padding-bottom: 80px; }
  .booking__form { width: 100%; max-width: 560px; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .btn { font-size: 16px; gap: 16px; min-height: 48px; padding: 6px 7px 6px 20px; }
  .btn__icon, .btn__icon img { width: 34px; height: 34px; }

  .hero { min-height: max(780px, 100svh); }
  .hero__media {
    background-size: auto 62%;
    -webkit-mask-image: linear-gradient(to bottom, transparent 38%, #000 50%);
            mask-image: linear-gradient(to bottom, transparent 38%, #000 50%);
  }
  .stats { padding: 14px; gap: 10px; }
  .hero__inner { padding-top: 16px; padding-bottom: 28px; }
  .nav { height: 64px; }
  .hero__content { margin-top: 36px; }
  .hero__aside p { font-size: 15px; }
  .hero__aside .btn { margin-top: 22px; }
  .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stat { flex-direction: column; gap: 6px; }
  .stat__value { padding-top: 0; font-size: 1.5rem; }
  .stat__label { font-size: 12.5px; }

  .feature--wide .feature__body,
  .feature--tall .feature__body,
  .feature--light .feature__body { padding: 8px 24px 32px; }
  .feature--water .feature__body { padding: 32px 24px 0; }
  .feature--tall .feature__body { padding-top: 24px; }
  .feature--icon { flex-direction: column-reverse; align-items: flex-start; padding: 32px 24px; }
  .feature__icon--clock, .feature__icon--drops { width: 110px; height: auto; }
  .feature__icon--drops { height: 95px; }
  .feature .muted { margin-top: 14px; }

  .powerbrush__img { margin-top: 16px; }

  .reviews__head { flex-direction: column; }
  .reviews__nav { margin-top: 0; }
  .review { min-height: 520px; padding: 28px 24px; }
  .review__quote { margin-top: 64px; }
  .review__text { margin-top: 28px; }

  .banner__inner { padding-top: 56px; padding-bottom: 64px; }

  .faq__grid { grid-template-columns: 1fr; gap: 14px; }
  .qa, .qa--wide { padding: 32px 24px; }
  .qa__media { height: 150px; }
  .qa--wide .qa__media { height: 140px; margin-left: 0; }

  .footer { padding-top: 64px; }
  .footer__cta { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__bar { flex-direction: column; align-items: flex-start; padding: 22px 24px; border-radius: 24px; margin-top: 64px; }
  .footer__wordmark { margin-top: 48px; }
}
