:root {
  --mint: #90cfbf;
  --mint-deep: #78bfad;
  --ink: #123f38;
  --cream: #f4f5df;
  --line: rgba(242, 248, 229, 0.6);
}

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

html {
  min-width: 320px;
  background: var(--mint);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Raleway", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(112deg, #9bd7c7 0%, var(--mint) 55%, #4bbeb5 120%);
}

.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 auto;
  width: min(59vw, 1050px);
  background: url("assets/fysiomint-background.png") right center / auto 100% no-repeat;
  opacity: 0.72;
  content: "";
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.82) 38%, #000 70%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.82) 38%, #000 70%);
}

.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  opacity: 0.11;
  content: "";
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero__inner {
  width: min(100% - 48px, 1240px);
  min-height: 100vh;
  min-height: 100svh;
  margin-inline: auto;
  padding-block: clamp(30px, 5vh, 58px) 26px;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.brand {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(158px, 14vw, 196px);
  height: auto;
}

.hero__content {
  align-self: center;
  width: min(100%, 610px);
  padding-block: clamp(38px, 7vh, 84px);
  animation: reveal 800ms cubic-bezier(0.22, 1, 0.36, 1) 100ms both;
}

h1 {
  max-width: 11ch;
  margin: 0 0 26px;
  font-size: clamp(2.7rem, 5.25vw, 4.8rem);
  font-weight: 300;
  line-height: 0.99;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.intro,
.contact-copy {
  max-width: 57ch;
  margin: 0;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem);
  line-height: 1.68;
}

.promise {
  max-width: 36ch;
  margin: 25px 0;
  color: var(--cream);
  font-size: clamp(1.12rem, 1.45vw, 1.32rem);
  font-weight: 500;
  line-height: 1.45;
}

.contact {
  margin-top: 31px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.button,
.phone {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.button {
  min-height: 52px;
  padding: 14px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #f8f8ea;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.phone {
  padding-block: 10px;
  border-bottom: 1px solid rgba(18, 63, 56, 0.4);
  font-variant-numeric: lining-nums;
  letter-spacing: 0.03em;
  transition: border-color 180ms ease;
}

.phone:hover {
  border-color: currentColor;
}

.button:focus-visible,
.phone:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 4px;
}

footer {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.77;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .hero::before {
    width: 100%;
    background-position: center;
    background-size: cover;
    opacity: 0.64;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.2) 25%, transparent 52%, rgba(0, 0, 0, 0.18) 76%, #000 100%);
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.2) 25%, transparent 52%, rgba(0, 0, 0, 0.18) 76%, #000 100%);
  }

  .hero__inner {
    width: min(100% - 44px, 610px);
    padding-block: 28px 22px;
  }

  .brand {
    width: 164px;
  }

  .hero__content {
    align-self: center;
    padding-block: 42px 34px;
  }

  h1 {
    margin-bottom: 23px;
    font-size: clamp(2.55rem, 12vw, 3.15rem);
    line-height: 1.02;
  }

  .intro,
  .contact-copy {
    font-size: 0.96rem;
    line-height: 1.58;
  }

  .promise {
    margin-block: 20px;
    font-size: 1.09rem;
  }

  .contact {
    margin-top: 27px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .button {
    width: 100%;
  }

  .phone {
    align-self: center;
  }

}

@media (max-width: 370px), (max-height: 730px) {
  .hero__inner {
    padding-block: 22px 18px;
  }

  .hero__content {
    padding-block: 28px 22px;
  }

  h1 {
    margin-bottom: 18px;
    font-size: 2.42rem;
  }

  .promise {
    margin-block: 15px;
  }

  .contact {
    margin-top: 20px;
  }
}

@media (min-width: 1500px) {
  .hero__inner {
    width: min(100% - 96px, 1480px);
  }

  .hero__content {
    width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
