/* =========================================================
   KONTAKTSIDE
========================================================= */

.contact-eyebrow {
  margin-bottom: 17px;
  color: var(--accent);
  font-family: var(--font-primary);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */

.contact-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(55px, 7vw, 110px);
  min-height: 680px;
  padding: 90px 8% 105px;
  overflow: hidden;
  background: var(--background);
  isolation: isolate;
}

.contact-hero__content,
.contact-hero__visual {
  position: relative;
  z-index: 2;
}

.contact-hero__content {
  max-width: 650px;
}

.contact-hero__title {
  color: var(--text);
  font-family: var(--font-primary);
  font-size: clamp(3.5rem, 5.4vw, 5.9rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.contact-hero__title span {
  display: block;
  color: var(--accent);

  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;

  font-size: 1.05em;
  line-height: 0.95;
}

.contact-hero__line {
  width: 48px;
  height: 1px;
  margin: 31px 0 27px;
  background: var(--accent);
}

.contact-hero__text {
  max-width: 580px;
  color: rgba(44, 35, 31, 0.8);
  font-size: 1.06rem;
  line-height: 1.8;
}

.contact-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-top: 31px;
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-decoration: none;
  text-transform: uppercase;
}

.contact-hero__scroll span:last-child {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 39px;
  height: 39px;
  background: var(--surface);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.05rem;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.contact-hero__scroll:hover span:last-child {
  background: var(--circle);
  transform: translateY(4px);
}

.contact-hero__visual {
  display: flex;
  justify-content: center;
}

.contact-hero__image-wrapper {
  width: min(100%, 520px);
  height: 560px;
  overflow: hidden;
  border-radius: 46% 54% 47% 53% / 38% 42% 58% 62%;
  box-shadow: 0 30px 65px rgba(44, 35, 31, 0.12);
  animation: contact-image-shape 12s ease-in-out infinite alternate;
}

.contact-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.7s ease;
}

.contact-hero__image-wrapper:hover .contact-hero__image {
  transform: scale(1.035);
}

.contact-hero__shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.contact-hero__shape--large {
  top: 55px;
  left: 2%;
  width: 260px;
  height: 260px;
  background: var(--circle);
  border-radius: 52% 48% 63% 37% / 45% 39% 61% 55%;
  opacity: 0.48;
  animation: contact-blob 11s ease-in-out infinite alternate;
}

.contact-hero__shape--small {
  right: 4%;
  bottom: 50px;
  width: 125px;
  height: 125px;
  background: var(--accent);
  border-radius: 57% 43% 41% 59% / 45% 58% 42% 55%;
  opacity: 0.1;
  animation: contact-blob 9s ease-in-out infinite alternate-reverse;
}

/* KONTAKTOPLYSNINGER */

.contact-details {
  padding: 80px 8%;
  background: var(--surface);
}

.contact-details__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1250px;
  margin: 0 auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(44, 35, 31, 0.05);
}

.contact-detail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 215px;
  padding: 31px 24px;
  color: var(--text);
  text-align: center;
  text-decoration: none;
  transition:
    transform 0.35s ease,
    background-color 0.35s ease;
}

.contact-detail:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 27px;
  right: 0;
  bottom: 27px;
  width: 1px;
  background: var(--border);
}

.contact-detail:hover {
  background: rgba(239, 228, 216, 0.45);

  transform: translateY(-5px);
}

.contact-detail__icon {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 62px;
  height: 62px;
  margin-bottom: 18px;

  background: #f6f2eb;
  border: 1px solid rgba(173, 91, 73, 0.14);
  border-radius: 50%;

  color: var(--accent);
  font-size: 1.65rem;
  font-weight: 700;

  transition:
    background-color 0.3s ease,
    transform 0.3s ease;
}

.contact-detail:hover .contact-detail__icon {
  background: var(--circle);
  transform: scale(1.06);
}

.contact-detail__icon--linkedin {
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
}

.contact-detail__label {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-detail__value {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* FOKUS */

.contact-focus {
  display: grid;
  grid-template-columns: 160px minmax(0, 620px);
  justify-content: center;
  align-items: center;
  gap: 55px;
  padding: 80px 8%;
  background: var(--background);
}

.contact-focus__decoration {
  position: relative;
  z-index: 1;

  display: flex;
  justify-content: center;
  align-items: center;

  width: 145px;
  height: 145px;

  background-color: #f6f2eb;

  border-radius: 46% 54% 61% 39% / 43% 38% 62% 57%;

  color: var(--accent);
  font-size: 2.2rem;

  animation: contact-blob 10s ease-in-out infinite alternate;
}

.contact-focus__content h2 {
  margin-bottom: 17px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: clamp(2.2rem, 3.5vw, 3.45rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.contact-focus__content > p:not(.contact-eyebrow) {
  color: rgba(44, 35, 31, 0.8);
  font-size: 1.03rem;
  line-height: 1.8;
}

/* FORMULAR */

.contact-form-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(55px, 8vw, 120px);
  padding: 105px 8%;
  background: var(--surface);
}

.contact-form-section__intro {
  max-width: 500px;
}

.contact-form-section__intro h2 {
  margin-bottom: 23px;
  color: var(--text);
  font-family: var(--font-primary);
  font-size: clamp(2.8rem, 4.4vw, 4.7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}

.contact-form-section__intro > p:not(.contact-eyebrow) {
  color: rgba(44, 35, 31, 0.78);
  font-size: 1.02rem;
  line-height: 1.8;
}

.contact-form-section__arrow {
  margin-top: 29px;
  color: var(--accent);
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  transform: rotate(9deg);
}

.contact-form {
  padding: 38px;
  background: rgba(255, 255, 255, 0.43);
  border: 1px solid var(--border);
  border-radius: 25px;
  box-shadow: 0 22px 50px rgba(44, 35, 31, 0.06);
}

.contact-form__field {
  margin-bottom: 22px;
}

.contact-form label {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 17px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--text);
  border: 1px solid rgba(173, 91, 73, 0.18);
  border-radius: 12px;
  outline: none;
  font: inherit;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(44, 35, 31, 0.43);
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(173, 91, 73, 0.08);
}

.contact-form__button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition:
    background-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contact-form__button:hover {
  background: var(--accent-dark);
  box-shadow: 0 14px 30px rgba(44, 35, 31, 0.12);
  transform: translateY(-3px);
}

/* ANIMATIONER */

@keyframes contact-blob {
  from {
    transform: rotate(-3deg) scale(1);
  }

  to {
    transform: rotate(4deg) scale(1.04);
  }
}

@keyframes contact-image-shape {
  from {
    border-radius: 46% 54% 47% 53% / 38% 42% 58% 62%;
  }

  to {
    border-radius: 54% 46% 58% 42% / 45% 57% 43% 55%;
  }
}

/* TABLET */

@media (max-width: 1000px) {
  .contact-hero {
    grid-template-columns: 1fr;
  }

  .contact-hero__content {
    max-width: 760px;
    text-align: center;
  }

  .contact-hero__line,
  .contact-hero__text {
    margin-inline: auto;
  }

  .contact-details__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-detail:nth-child(2)::after {
    display: none;
  }

  .contact-detail:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .contact-focus {
    grid-template-columns: 130px minmax(0, 620px);
  }

  .contact-form-section {
    grid-template-columns: 1fr;
  }

  .contact-form-section__intro {
    max-width: 700px;
  }

  .contact-form-section__arrow {
    display: none;
  }
}

/* MOBIL */

@media (max-width: 650px) {
  .contact-hero,
  .contact-form-section {
    padding: 75px 24px;
  }

  .contact-hero {
    min-height: auto;
  }

  .contact-hero__title {
    font-size: clamp(3.2rem, 15vw, 5rem);
  }

  .contact-hero__image-wrapper {
    height: 440px;
  }

  .contact-details {
    padding: 0 24px 75px;
  }

  .contact-details__grid {
    grid-template-columns: 1fr;
  }

  .contact-detail {
    min-height: 190px;
  }

  .contact-detail:not(:last-child)::after {
    top: auto;
    right: 24px;
    bottom: 0;
    left: 24px;
    width: auto;
    height: 1px;
  }

  .contact-detail:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .contact-focus {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 75px 24px;
  }

  .contact-focus__decoration {
    width: 115px;
    height: 115px;
  }

  .contact-form {
    padding: 27px 22px;
  }

  .contact-closing {
    padding: 85px 24px;
  }

  .contact-closing__shape {
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .contact-hero__shape,
  .contact-focus__decoration,
  .contact-hero__image-wrapper {
    animation: none;
  }
}
