/*
Theme Name: Parsen
Theme URI: https://parsen.local
Author: Parsen
Description: A minimal block theme for Parsen Design and Parsen Bygg.
Version: 1.1.1
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: parsen
*/

:root {
  --parsen-ink: #17191a;
  --parsen-soft: #e8e8e8;
  --parsen-mid: #8d8d8d;
  --parsen-yellow: #ffd800;
  --parsen-blue: #8fcbee;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--parsen-ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 400;
}

a { color: inherit; }

a:focus-visible {
  outline: 3px solid var(--parsen-yellow);
  outline-offset: 5px;
  border-radius: 2px;
}

.parsen-shell {
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.parsen-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  pointer-events: none;
}

.parsen-quick-nav {
  display: flex;
  gap: 13px;
  left: clamp(74px, 5.5vw, 88px);
  position: absolute;
  top: 36px;
  pointer-events: auto;
}

.parsen-quick-link {
  width: 38px;
  height: 38px;
  background: var(--parsen-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  color: #4f5254;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.parsen-quick-link--home span[aria-hidden="true"] { font-size: 25px; transform: translateY(-1px); }
.parsen-quick-link--about span[aria-hidden="true"] { font-family: Georgia, serif; font-size: 23px; }
.parsen-quick-link--contact span[aria-hidden="true"] { font-size: 19px; transform: translateY(-1px); }

.parsen-quick-link:hover,
.parsen-quick-link:focus-visible { background: var(--parsen-blue); color: var(--parsen-ink); transform: translateY(-2px); }
.parsen-quick-link[aria-current="page"] { background: var(--parsen-yellow); color: var(--parsen-ink); }

.parsen-quick-link::after {
  content: attr(data-label);
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--parsen-ink);
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}

.parsen-quick-link:hover::after,
.parsen-quick-link:focus-visible::after { opacity: 1; }

.home .parsen-quick-link:first-child,
.parsen-page-about .parsen-quick-link:nth-child(2),
.parsen-page-contact .parsen-quick-link:nth-child(3) { background: var(--parsen-yellow); color: var(--parsen-ink); }

.parsen-header__logo {
  position: absolute;
  right: clamp(38px, 5vw, 76px);
  top: 34px;
  width: 145px;
  pointer-events: auto;
}

.parsen-header__logo img { display: block; width: 100%; height: auto; }

.home .parsen-header__logo { display: none; }

.parsen-home {
  min-height: 100vh;
  padding: 52px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parsen-home__logo {
  width: 270px;
  margin: 0 auto 42px !important;
}

.parsen-home__logo img,
.parsen-home__icon img { display: block; width: 100%; height: auto; }

.parsen-home__choices {
  display: flex !important;
  gap: 220px;
  align-items: flex-start !important;
  justify-content: center !important;
  width: min(720px, 100%);
}

.parsen-home__choice { width: 180px; margin: 0 !important; }
.parsen-home__icon { height: 166px; margin: 0 auto 18px !important; display: flex; align-items: center; justify-content: center; }
.parsen-home__icon--design { width: 112px; }
.parsen-home__icon--bygg { width: 168px; }
.parsen-home__icon a { display: block; width: 100%; transition: transform 160ms ease; }
.parsen-home__icon a:hover { transform: translateY(-3px); }
.parsen-home__label { font-size: 24px; margin: 0 !important; white-space: nowrap; }
.parsen-home__label a { text-decoration: none; }
.parsen-home__label a:hover { text-decoration: underline; text-decoration-color: var(--parsen-yellow); text-underline-offset: 6px; }

.service-page {
  min-height: 100vh;
  position: relative;
  padding: 210px 5vw 70px;
}

.service-page__identity {
  position: absolute;
  left: 42px;
  top: 305px;
  width: 190px;
  text-align: center;
}

.service-page__identity-icon {
  width: 106px;
  height: 135px;
  margin: 0 auto 22px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-page__identity-icon--bygg { width: 155px; }
.service-page__identity-icon img { width: 100%; height: auto; display: block; }

.service-page__identity h1 {
  font-size: 23px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  white-space: nowrap;
}

.service-page__content {
  border-left: 2px solid #303234;
  min-height: 555px;
  margin-left: 213px;
  position: relative;
  padding: 112px 0 40px 57px;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.service-list li {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.service-list li::before {
  content: "";
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  background: var(--parsen-soft);
}

.service-list a { text-decoration: none; }
.service-list a:hover { text-decoration: underline; text-decoration-color: var(--parsen-yellow); text-underline-offset: 4px; }
.service-list--categories { width: 240px; }
.service-list--categories li { min-height: 77px; }

.circle-art {
  position: absolute;
  background: var(--parsen-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
}

.circle-art p { margin: 0; }
.circle-art::before,
.circle-art::after { content: ""; position: absolute; border-radius: 50%; background: var(--parsen-soft); }

.circle-art--overview {
  width: 290px;
  height: 290px;
  left: min(49vw, 505px);
  top: 10px;
}
.circle-art--overview::before { width: 60px; height: 60px; left: -29px; bottom: -8px; }
.circle-art--overview::after { width: 21px; height: 21px; left: -54px; bottom: -21px; }

.service-page__intro {
  position: absolute;
  left: 143px;
  top: 345px;
  width: 470px;
  font-size: 13px;
  line-height: 1.35;
}
.service-page__intro p { margin: 0 0 22px; }

.product-detail .service-page__content { padding-top: 132px; }
.product-detail__copy { width: 250px; margin: 0 !important; }
.product-detail__copy h2 { font-size: 15px; font-weight: 400; margin: 0 0 34px; }
.product-detail__list { list-style: none; padding: 0 0 0 33px; margin: 0; line-height: 1.62; }

.circle-art--detail {
  width: 326px;
  height: 326px;
  left: min(43vw, 478px);
  top: 63px;
}

.circle-art--detail::before,
.circle-art--detail::after { box-shadow: none; }
.circle-art--detail::before {
  width: 119px; height: 119px; left: 47px; top: -128px;
  box-shadow: 206px 38px 0 0 var(--parsen-soft), 295px 227px 0 0 var(--parsen-soft), 207px 423px 0 0 var(--parsen-soft), -12px 459px 0 0 var(--parsen-soft), -164px 320px 0 0 var(--parsen-soft), -154px 128px 0 0 var(--parsen-soft);
}
.circle-art--detail::after { width: 0; height: 0; }

.bygg-overview .service-page__content { padding-top: 122px; }
.service-list--bygg { width: 290px; }
.service-list--bygg li { min-height: 43px; }

.circle-art--bygg {
  width: 326px;
  height: 326px;
  left: min(46vw, 547px);
  top: 11px;
}
.circle-art--bygg::before { width: 67px; height: 67px; left: -31px; bottom: -10px; }
.circle-art--bygg::after { width: 24px; height: 24px; left: -64px; bottom: -32px; }
.service-page__intro--bygg { left: 162px; top: 395px; width: 380px; font-size: 14px; }

.standard-page {
  min-height: 100vh;
  overflow: hidden;
  padding: 185px 28px 90px;
  position: relative;
}

.standard-page::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -105px;
  bottom: -80px;
  border-radius: 50%;
  background: var(--parsen-soft);
  opacity: .58;
  pointer-events: none;
}

.standard-page__inner {
  width: min(780px, 100%);
  margin: 0 auto !important;
  position: relative;
  z-index: 1;
}

.standard-page h1 {
  margin: 0 0 28px;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.08;
}

.standard-page h2 {
  margin: 34px 0 12px;
  font-size: 21px;
  font-weight: 600;
}

.standard-page p { line-height: 1.65; }
.standard-page__lead { max-width: 680px; margin: 0 0 42px !important; font-size: 18px; }
.about-page__columns { gap: 48px; margin: 0 0 34px !important; }
.about-page__columns h2 { margin-top: 0; }

.parsen-button .wp-block-button__link,
.contact-form__submit {
  border: 0;
  border-radius: 0;
  background: var(--parsen-yellow);
  color: var(--parsen-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 13px 24px;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.parsen-button .wp-block-button__link:hover,
.contact-form__submit:hover { background: var(--parsen-blue); transform: translateY(-2px); }

.contact-form { margin-top: 36px; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px; }
.contact-form__field { margin: 0 !important; }
.contact-form__field--wide { grid-column: 1 / -1; }
.contact-form__field label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid #a8aaac;
  border-radius: 0;
  background: #fff;
  color: var(--parsen-ink);
  font: inherit;
  padding: 12px 13px;
}

.contact-form__field input:focus,
.contact-form__field textarea:focus { border-color: var(--parsen-ink); outline: 3px solid rgba(255, 216, 0, .55); outline-offset: 1px; }
.contact-form__required { margin: 13px 0 18px !important; color: #555; font-size: 12px; }

.contact-form__notice {
  margin: 0 0 25px;
  border-left: 5px solid var(--parsen-blue);
  background: #f2f7fa;
  padding: 14px 16px;
  line-height: 1.45;
}
.contact-form__notice--success { border-color: #4a9b68; background: #f0f8f2; }
.contact-form__notice--warning { border-color: var(--parsen-yellow); background: #fffbed; }
.contact-form__notice--error { border-color: #b33b3b; background: #fff3f3; }

.contact-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

@media (max-width: 900px) {
  .parsen-header__logo { width: 112px; right: 28px; top: 26px; }
  .parsen-quick-nav { left: 28px; top: 28px; gap: 10px; }
  .parsen-quick-link { width: 34px; height: 34px; font-size: 18px; }
  .parsen-home__choices { gap: 90px; }

  .service-page { padding: 155px 28px 55px; }
  .service-page__identity { left: 20px; top: 190px; width: 170px; }
  .service-page__content { margin-left: 170px; padding-left: 40px; }
  .circle-art--overview,
  .circle-art--detail,
  .circle-art--bygg { left: 48%; transform: scale(.82); transform-origin: top left; }
  .service-page__intro { left: 55px; width: 390px; }
}

@media (max-width: 680px) {
  .parsen-shell { overflow: visible; }
  .parsen-header { position: relative; height: 100px; }
  .parsen-header__logo { width: 92px; right: 20px; top: 18px; }
  .parsen-quick-nav { left: 20px; top: 24px; gap: 8px; }
  .parsen-quick-link { width: 32px; height: 32px; font-size: 17px; }
  .parsen-quick-link--home span[aria-hidden="true"] { font-size: 22px; }
  .parsen-quick-link--about span[aria-hidden="true"] { font-size: 20px; }
  .parsen-quick-link--contact span[aria-hidden="true"] { font-size: 17px; }
  .parsen-quick-link::after { display: none; }

  .parsen-home { min-height: calc(100vh - 100px); padding: 0 24px 56px; }
  .home .parsen-header { position: absolute; height: auto; }
  .parsen-home__logo { width: 210px; margin-top: 42px !important; margin-bottom: 35px !important; }
  .parsen-home__choices { flex-direction: column; gap: 38px; align-items: center !important; }
  .parsen-home__choice { width: 170px; }
  .parsen-home__icon { height: 115px; }
  .parsen-home__icon--design { width: 86px; }
  .parsen-home__icon--bygg { width: 130px; }
  .parsen-home__label { font-size: 21px; }

  .service-page { min-height: auto; padding: 28px 22px 60px; }
  .service-page__identity { position: static; width: 100%; display: flex; align-items: center; justify-content: flex-start; gap: 22px; text-align: left; margin-bottom: 30px; }
  .service-page__identity-icon { width: 74px; height: 82px; margin: 0 !important; }
  .service-page__identity-icon--bygg { width: 108px; }
  .service-page__identity h1 { font-size: 22px; }
  .service-page__content { border-left: 0; border-top: 1px solid #303234; min-height: 0; margin: 0; padding: 34px 0 0 !important; display: flex; flex-direction: column; }
  .service-list--categories,
  .service-list--bygg,
  .product-detail__copy { width: 100%; }
  .service-list--categories li { min-height: 58px; }

  .circle-art--overview,
  .circle-art--detail,
  .circle-art--bygg { position: relative; left: auto; top: auto; transform: none; width: min(72vw, 290px); height: min(72vw, 290px); margin: 42px auto 68px !important; flex: 0 0 auto; }
  .circle-art--detail::before {
    width: 78px;
    height: 78px;
    left: 66px;
    top: -42px;
    box-shadow: 127px 24px 0 0 var(--parsen-soft), 183px 141px 0 0 var(--parsen-soft), 127px 264px 0 0 var(--parsen-soft), -13px 284px 0 0 var(--parsen-soft), -106px 199px 0 0 var(--parsen-soft), -101px 80px 0 0 var(--parsen-soft);
  }
  .service-page__intro { position: static; width: 100%; font-size: 14px; order: 3; }
  .service-page__intro--bygg { width: 100%; }
  .product-detail__copy h2 { margin-bottom: 22px; }

  .standard-page { min-height: auto; padding: 38px 22px 70px; }
  .standard-page::before { width: 210px; height: 210px; right: -100px; bottom: -55px; }
  .standard-page h1 { font-size: 36px; }
  .standard-page__lead { margin-bottom: 32px !important; font-size: 17px; }
  .about-page__columns { display: block; }
  .about-page__columns .wp-block-column + .wp-block-column { margin-top: 34px; }
  .contact-form__grid { grid-template-columns: 1fr; gap: 18px; }
  .contact-form__field--wide { grid-column: auto; }
  .contact-form__submit { width: 100%; min-height: 48px; }
}

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