/* ==========================================================================
   handiers.com — static site
   Migrated off Wix. Design tokens mirror the original site's computed styles.
   ========================================================================== */

:root {
  --bg: #efefef;
  --bg-alt: #f0f0f0;
  --card: #f8f8f8;
  --ink: #212121;
  --ink-strong: #000;
  --white: #fff;
  --brand-green: #0a4d3d;
  --watermark: #dcdcdc;
  --footer-bg: #212121;

  /* 1248 - 2*24 gutter = 1200px of content, matching the original grid */
  --container: 1248px;
  --gutter: 24px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Fluid type: min at 360px viewport, max at 1440px */
  --fs-display: clamp(2.25rem, 1.05rem + 5.33vw, 4.375rem); /* 36 -> 70 */
  --fs-h3: clamp(1.375rem, 1.09rem + 1.27vw, 1.895rem); /* 22 -> 30.3 */
  --fs-eyebrow: clamp(1rem, 0.93rem + 0.31vw, 1.25rem); /* 16 -> 20 */
  --fs-body: clamp(0.9375rem, 0.91rem + 0.12vw, 1.0106rem); /* 15 -> 16.17 */
  --fs-body-sm: 0.9474rem; /* 15.16 */
  --fs-lead: clamp(1rem, 0.93rem + 0.31vw, 1.125rem); /* 16 -> 18 */
  --fs-nav: 1rem;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 0;
}

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

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

.display {
  font-size: var(--fs-display);
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.eyebrow {
  font-size: var(--fs-eyebrow);
  line-height: 1.1;
  font-weight: 400;
  color: var(--ink);
}

/* Arrow button ------------------------------------------------------------ */

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: var(--fs-eyebrow);
  line-height: 1.3;
}

.arrow-link:hover {
  text-decoration: none;
}

.arrow-link:hover .arrow-link__text {
  text-decoration: underline;
}

.arrow-link__icon {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  transition: transform 0.25s ease;
}

.arrow-link:hover .arrow-link__icon {
  transform: translateY(3px);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(var(--gutter), 3.33vw, 48px);
  background: var(--bg);
}

.site-header__logo img {
  width: 150px;
  height: auto;
}

.site-nav {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  font-size: var(--fs-nav);
  line-height: 1.2;
  color: var(--ink-strong);
}

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

.hero {
  position: relative;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__media .container {
  position: relative;
  height: 100%;
}

.hero__watermark {
  position: absolute;
  top: clamp(8px, 2.08vw, 30px);
  left: var(--gutter);
  width: calc(100% - 2 * var(--gutter));
  height: auto;
  aspect-ratio: 121.464 / 15.482;
  opacity: 0.1;
  user-select: none;
}

/* Orb: 468x478, right edge 142px inside the container.
   Top tracks the wordmark's bottom edge + 10px so the HANDIERS watermark is
   never covered. The wordmark is (container - 2*gutter) wide at a 121.464:15.482
   ratio, so its bottom sits at 14.83vw - 6px until the container caps at 1248px,
   and at a flat 183px beyond that. */
.hero__orb {
  position: absolute;
  top: min(calc(14.83vw + 4px), 193px);
  right: 11.38%;
  width: 37.5%;
  aspect-ratio: 468 / 478;
  object-fit: contain;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: clamp(180px, 29.72vw, 428px);
  padding-bottom: clamp(64px, 10.07vw, 145px);
}

.hero__title {
  max-width: 12ch;
}

.hero__lead {
  margin-top: 15px;
  font-size: var(--fs-lead);
  line-height: 1.1;
  max-width: 46ch;
}

.hero__cta {
  margin-top: 65px;
}

/* --------------------------------------------------------------------------
   Full-bleed image band
   -------------------------------------------------------------------------- */

.band {
  padding-block: 80px;
}

.band__media {
  width: min(1278px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
  aspect-ratio: 1278 / 752;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   "Why Handiers Exists"
   -------------------------------------------------------------------------- */

.why {
  position: relative;
  padding-block: 140px 111px;
}

.why__head {
  max-width: 903px;
}

.why__title {
  margin-top: 24px;
}

/* Column offsets are percentages of the 1200px content grid so the
   composition holds at any width: figure A at 136px, the right stack at 668px. */
.why__grid {
  display: grid;
  grid-template-columns: 11.33% 27.67% 16.67% 35.08%;
  align-items: start;
  margin-top: 11.08%;
}

.why__figure--a {
  grid-column: 2;
  aspect-ratio: 332 / 411;
  object-fit: cover;
}

.why__right {
  grid-column: 4;
  padding-top: 23.75%;
}

.why__copy {
  width: 74.3%;
  margin-left: 12.8%;
  line-height: 1.3;
}

.why__figure--b {
  margin-top: 28.5%;
  width: 100%;
  aspect-ratio: 421 / 522;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   Statement over the hand image
   -------------------------------------------------------------------------- */

/* The hand is a 2x-viewport-wide image that starts well above this section,
   so its fingertips reach up into the heading. Sized in vw to stay proportional. */
.statement {
  position: relative;
  display: grid;
  place-items: start center;
  min-height: min(90.07vw, 1297px);
  padding-top: min(15.97vw, 230px);
  overflow: hidden;
}

.statement__bg {
  position: absolute;
  left: 50%;
  top: clamp(-1063px, -73.8vw, -260px);
  width: min(200vw, 2880px);
  max-width: none;
  height: auto;
  aspect-ratio: 2880 / 2594;
  object-fit: cover;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.statement__title {
  position: relative;
  z-index: 1;
  max-width: 1128px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services {
  padding-bottom: 97px;
}

.services-head {
  padding-block: 161px 90px;
}

.services-head__title {
  margin-top: 24px;
  max-width: 903px;
}

.service {
  padding-top: 98px;
}

.service + .service {
  padding-top: 170px;
}

.service__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
  padding-bottom: 55px;
}

.service__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.service__logo--nextpros {
  width: 250px;
}

.service__logo--handiers {
  width: 242px;
}

.service__tagline {
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  max-width: 30ch;
}

.service__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 18px;
}

.service__legal {
  display: flex;
  gap: 22px;
  font-size: 0.8842rem;
  line-height: 1.6;
  color: var(--ink-strong);
}

.service__stores {
  display: flex;
  gap: 8px;
}

.service__stores img {
  width: 133px;
  height: auto;
}

.service__media {
  display: grid;
  place-items: center;
  padding: 31px;
  background: var(--card);
}

.service__media--dark {
  background: var(--ink-strong);
  min-height: 542px;
  padding: 0;
  overflow: hidden;
}

.service__media img {
  width: min(905px, 100%);
  aspect-ratio: 905 / 506;
  object-fit: cover;
}

.service__media video {
  width: min(286px, 70%);
  aspect-ratio: 286 / 546;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   "Beyond software" — gradient section
   -------------------------------------------------------------------------- */

.beyond {
  background: linear-gradient(0deg, #000 0%, var(--bg) 100%);
  color: var(--white);
  padding-block: 262px 186px;
  text-align: center;
}

.beyond__title {
  max-width: 1029px;
  margin-inline: auto;
}

.beyond__lead {
  max-width: 464px;
  margin: 39px auto 0;
  line-height: 1.3;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 962px;
  margin: 85px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 460px;
  padding: 44px 34px 40px;
  text-align: left;
}

.pillar + .pillar {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.pillar__icon {
  width: 61px;
  height: 55px;
  margin-bottom: auto;
}

.pillar__title {
  font-size: 1.2632rem;
  line-height: 1.3;
  font-weight: 700;
}

.pillar__body {
  font-size: var(--fs-body-sm);
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  padding-block: 118px 157px;
  text-align: center;
  overflow: hidden;
}

.contact__watermark {
  font-size: clamp(3.5rem, 7.3px + 13.52vw, 12.63rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--watermark);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.contact__title {
  margin: -8.5% auto 0;
  max-width: 922px;
  position: relative;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.contact__cta {
  margin-top: 45px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  background: var(--footer-bg);
  color: var(--white);
  padding-block: 92px 146px;
  overflow: hidden;
}

.site-footer__mark {
  position: absolute;
  right: -60px;
  bottom: -120px;
  width: 778px;
  max-width: 60%;
  pointer-events: none;
  user-select: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.site-footer__logo {
  width: 283px;
}

.site-footer__tagline {
  font-size: 1.6875rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-size: 1.0119rem;
  line-height: 1.3;
  min-width: 200px;
}

.site-footer__links span {
  color: rgba(255, 255, 255, 0.75);
}

.site-footer__legal {
  position: relative;
  z-index: 1;
  margin-top: 140px;
  font-size: 1.0119rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.legal {
  padding-block: 90px 140px;
}

.legal__title {
  font-size: clamp(2.5rem, 1.3rem + 5.3vw, 4.5625rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.legal__updated {
  margin-top: 20px;
  font-size: 0.9375rem;
  color: #5a5a5a;
}

.legal__intro {
  margin-top: 32px;
  max-width: 78ch;
}

.legal__intro p + p {
  margin-top: 14px;
}

.legal__body {
  margin-top: 64px;
  max-width: 78ch;
}

.legal__body h2 {
  font-size: clamp(1.5rem, 1.05rem + 2vw, 2.375rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-top: 64px;
}

.legal__body h2:first-child {
  margin-top: 0;
}

.legal__body p {
  margin-top: 16px;
  font-size: 1.125rem;
  line-height: 1.55;
}

.legal__body ul {
  margin: 16px 0 0;
  padding-left: 24px;
  font-size: 1.125rem;
  line-height: 1.55;
}

.legal__body li {
  margin-top: 8px;
}

.legal__body a {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.notfound {
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 160px 200px;
}

.notfound__code {
  font-size: clamp(4rem, 2rem + 9vw, 9rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: var(--watermark);
}

.notfound__title {
  margin-top: 16px;
}

.notfound__cta {
  margin-top: 40px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .why__grid {
    grid-template-columns: 4% 34% 8% 44%;
  }
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
  }

  .hero__media {
    position: static;
    height: auto;
  }

  .hero__media .container {
    height: auto;
    padding-block: 8px 24px;
  }

  .hero__watermark {
    position: static;
    width: 100%;
  }

  .hero__orb {
    position: static;
    width: min(440px, 82%);
    margin: -6% auto 0;
  }

  .hero__inner {
    padding-top: 32px;
    padding-bottom: 64px;
  }

  .hero__title {
    max-width: none;
  }

  .hero__lead {
    margin-top: 14px;
  }

  .hero__cta {
    margin-top: 40px;
  }

  .why {
    padding-block: 90px 20px;
  }

  .why__grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
  }

  .why__right {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 0;
  }

  .why__copy {
    width: 100%;
    margin-left: 0;
    max-width: 46ch;
  }

  .why__figure--b {
    margin-top: 0;
  }

  .statement {
    min-height: 560px;
    padding-block: 90px;
  }

  .services-head {
    padding-block: 100px 40px;
  }

  .service__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .service__aside {
    align-items: flex-start;
  }

  .service__media {
    padding: 20px;
  }

  .beyond {
    padding-block: 140px 110px;
  }

  .pillars {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }

  .pillar + .pillar {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
  }

  .pillar__icon {
    margin-bottom: 24px;
  }

  .contact {
    padding-block: 80px 100px;
  }

  .contact__title {
    margin-top: -0.2em;
  }

  .site-footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer__logo {
    width: 220px;
  }

  .site-footer__legal {
    margin-top: 64px;
  }

  .band {
    padding-block: 48px;
  }
}

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

  .arrow-link__icon {
    transition: none;
  }
}
