/* Acquisition Block (Förvärv) */

.wp-block-propcomm-acquisition-block {
  width: 100%;
  /* One viewport-height token so the fixed hero and the body offset always
     match. dvh (where supported) tracks the mobile URL bar cleanly. */
  --acq-vh: 100vh;
}

@supports (height: 100dvh) {
  .wp-block-propcomm-acquisition-block {
    --acq-vh: 100dvh;
  }
}

/* ── Hero (fixed full-width background) ── */
.acq__hero {
  width: 100vw;
  height: var(--acq-vh);
  background: #E8DFD3;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  opacity: 0;
  animation: acq-bg-fade-in 1.2s ease-out forwards;
}

@keyframes acq-bg-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Soft scrim for text legibility over the photo */
.acq__hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0) 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.acq__hero-eyebrow {
  position: relative;
  z-index: 2;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 22px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(30px);
  animation: acq-fade-up 1s ease-out 0.35s forwards;
}

.acq__hero-heading {
  position: relative;
  z-index: 2;
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1.03;
  color: #fff;
  text-align: center;
  margin: 0;
  max-width: 16ch;
  padding: 0 24px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(40px);
  animation: acq-fade-up 1s ease-out 0.5s forwards;
}

@keyframes acq-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.acq__hero-scroll {
  position: absolute;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: -moz-fit-content;
  width: fit-content;
  bottom: clamp(24px, 4vw, 44px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #fff;
  opacity: 0;
  animation: acq-fade-up 0.8s ease-out 1.8s forwards;
}

.acq__hero-scroll-label {
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.acq__hero-scroll-icon { filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35)); }
.acq__hero-scroll-icon--mouse { display: inline-flex; }
.acq__hero-scroll-icon--touch { display: none; }
.acq__hero-scroll-icon--mouse svg { width: 26px; height: 44px; display: block; }

.acq__hero-scroll-wheel {
  animation: acq-mouse-wheel 1.8s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes acq-mouse-wheel {
  0% { transform: translateY(0); opacity: 0; }
  25% { opacity: 1; }
  70%, 100% { transform: translateY(9px); opacity: 0; }
}

.acq__hero-scroll-icon--touch svg {
  width: 40px; height: 40px; display: block;
  animation: acq-touch-bob 1.8s ease-in-out infinite;
}

@keyframes acq-touch-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Body (scrolls over fixed hero) ── */
.acq__body {
  position: relative;
  z-index: 100;
  margin-top: var(--acq-vh);
}

/* Intro — keyhole portal reveal */
.acq__intro {
  min-height: var(--acq-vh);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f2ea;
  padding: clamp(60px, 10vw, 120px) max(var(--content-pad), calc((100% - var(--content-inner)) / 2));
}

.acq__intro-inner {
  width: 100%;
  max-width: var(--content-max);
  text-align: center;
}

.acq__intro-eyebrow {
  display: block;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: clamp(0.72rem, 1.2vw, 0.85rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(6, 72, 36, 0.6);
  margin-bottom: 28px;
}

.acq__intro-text {
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0;
}

.acq__intro-text strong { font-weight: 400; color: #064824; }

.acq__intro-note {
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 400;
  line-height: 1.35;
  color: #1a1a1a;
  margin: clamp(44px, 6vw, 84px) 0 0;
}

.acq__intro-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: #064824;
  padding: 16px 34px;
  border-radius: 4px;
  transition: gap 0.25s, opacity 0.2s;
}

.acq__intro-cta:hover {
  gap: 18px;
  opacity: 0.9;
  color: #fff;
}

.acq__intro-cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.acq__mark {
  position: relative;
  display: inline-block;
  color: #064824;
  white-space: nowrap;
}

.acq__mark-line {
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: -0.22em;
  width: 102%;
  height: 0.42em;
  overflow: visible;
  pointer-events: none;
  /* --draw: 100% = hidden, 0% = fully drawn. Defaults to drawn for no-JS. */
  clip-path: inset(-50% var(--draw, 0%) -50% 0);
}

.acq__mark-line path {
  fill: none;
  stroke: #064824;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Keyhole mask — only active once JS enables it (desktop). Without JS the
   intro shows normally. The mask grows from a small keyhole to full-screen. */
.acq__intro--portal.acq__is-portal {
  --k: 0px;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23fff'/%3E%3Cpath d='M44,48L56,48L62,74L38,74Z' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='30' r='20' fill='%23fff'/%3E%3Cpath d='M44,48L56,48L62,74L38,74Z' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 50% 30%;
  mask-position: 50% 30%;
  -webkit-mask-size: var(--k) var(--k);
  mask-size: var(--k) var(--k);
}

/* Solid content that covers the hero after the portal reveal */
.acq__sections {
  position: relative;
  z-index: 1;
  background: #f7f2ea;
}

/* ── Offerings (wide alternating rows) ── */
.acq__offers {
  /* Full content-max on desktop; on narrower screens it shrinks with a
     --content-pad gutter so it never touches the edges. */
  width: min(var(--content-max), calc(100% - var(--content-pad) * 2));
  margin: 0 auto;
  /* 82px on desktop, eased down on small screens. */
  padding: clamp(48px, 6vw, 82px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(64px, 7vw, 110px);
}

.acq__offer {
  display: grid;
  /* Same equal columns + fixed gap as the om oss esb grid. */
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Alternate the second row: content left, image right */
.acq__offer:nth-child(even) .acq__offer-media {
  order: 2;
}

.acq__offer-media {
  overflow: hidden;
  border-radius: 4px;
}

/* Thumbnail ratio (4/3), fills its column width. */
.acq__offer-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}


.acq__offer-img--empty {
  aspect-ratio: 5 / 4;
  background: rgba(6, 72, 36, 0.08);
}

.acq__offer-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.acq__offer-title {
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: #1a1a1a;
  margin: 0 0 24px;
}

.acq__offer-text {
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.72);
  margin: 0;
  max-width: 52ch;
}

.acq__offer-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #064824;
  text-decoration: none;
  border-bottom: 1px solid rgba(6, 72, 36, 0.3);
  padding-bottom: 5px;
  transition: gap 0.25s, border-color 0.25s;
}

.acq__offer-link:hover {
  gap: 18px;
  border-color: #064824;
}

.acq__offer-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ── Listings (light cream, centered) ── */
.acq__listings {
  background: #f7f2ea;
  padding: clamp(80px, 10vw, 140px) max(var(--content-pad), calc((100% - var(--content-inner)) / 2));
}

.acq__listing-group { max-width: var(--content-max); margin: 0 auto; }
.acq__listing-group + .acq__listing-group { margin-top: clamp(64px, 8vw, 110px); }

.acq__listing-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.acq__listing-eyebrow {
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #064824;
}

.acq__listing-eyebrow .acq__mark {
  color: #064824;
}

.acq__listing-eyebrow .acq__mark-line {
  bottom: -0.35em;
  height: 0.35em;
}

.acq__listing-title {
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.1;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acq__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.3);
  padding-bottom: 4px;
  transition: gap 0.25s, border-color 0.25s;
}

.acq__link:hover { gap: 16px; border-color: #1a1a1a; }
.acq__link svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.acq__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.acq__card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.acq__card-media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4 / 3;
}

.acq__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.acq__card-img--empty { background: rgba(26, 26, 26, 0.06); }
.acq__card:hover .acq__card-img { transform: scale(1.06); }

/* Bottom-to-top gradient so the overlaid caption stays legible. */
.acq__card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(10, 22, 15, 0.88) 0%, rgba(10, 22, 15, 0.5) 34%, rgba(10, 22, 15, 0) 68%);
}

/* Caption block (meta + title) overlaid bottom-left, above the gradient. */
.acq__card-caption {
  position: absolute;
  left: clamp(16px, 2vw, 22px);
  right: clamp(16px, 2vw, 22px);
  bottom: clamp(16px, 2vw, 22px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acq__card-name {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 400;
  line-height: 1.15;
  color: #fff;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
}

.acq__card-name-arrow {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  transition: transform 0.25s cubic-bezier(.16, 1, .3, 1);
}

.acq__card:hover .acq__card-name-arrow {
  transform: translateX(5px);
}

.acq__card-name-arrow svg {
  width: 0.8em;
  height: 0.8em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
}

.acq__card-meta {
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* "Visa alla" — green pill button centered below the grid (matches om oss). */
.acq__listing-more {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 60px);
}

.acq__more-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: var(--color-primary-green);
  padding: 13px 26px;
  border-radius: 4px;
  transition: gap 0.2s, opacity 0.15s;
}

.acq__more-link:hover {
  gap: 16px;
  opacity: 0.9;
  color: #fff;
}

.acq__more-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

/* ── FAQ (light green band) ── */
.acq__faq {
  position: relative;
  overflow: hidden;
  background: #DCE6D3;
  padding: clamp(90px, 11vw, 160px) max(var(--content-pad), calc((100% - var(--content-inner)) / 2));
}

.acq__faq-img {
  position: absolute;
  z-index: 0;
width: clamp(240px, 30vw, 480px);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.acq__faq-img--tr {
  top: clamp(-96px, -16vw, -256px);
  right: clamp(-96px, -16vw, -288px);
}

.acq__faq-img--bl {
  bottom: clamp(-96px, -16vw, -256px);
  left: clamp(-96px, -16vw, -288px);
}

.acq__faq-head,
.acq__faq-list {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.acq__faq-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }

.acq__faq-eyebrow {
  display: block;
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(26, 26, 26, 0.5);
  margin-bottom: 20px;
}

.acq__faq-title {
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.05;
  color: #1a1a1a;
  margin: 0 0 22px;
}

.acq__faq-intro {
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgb(26, 26, 26);
  margin: 0 auto;
  max-width: 560px;
}

.acq__faq-item { border-top: 1px solid rgba(26, 26, 26, 0.14); }
.acq__faq-item:last-child { border-bottom: 1px solid rgba(26, 26, 26, 0.14); }

.acq__faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 3vw, 34px) 0;
  text-align: left;
  font-family: "ConcretteXL", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.3;
  color: #1a1a1a;
}

.acq__faq-toggle {
  position: relative;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.acq__faq-toggle::before,
.acq__faq-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 1.5px;
  background: #064824;
  transform: translate(-50%, -50%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.acq__faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.acq__faq-item.is-open .acq__faq-toggle::after { transform: translate(-50%, -50%) rotate(0deg); }

.acq__faq-a {
  overflow: hidden;
  height: 0;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.acq__faq-a p {
  font-family: "SeasonSans", system-ui, sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
  color: rgba(26, 26, 26, 0.72);
  margin: 0;
  padding: 0 0 clamp(26px, 3vw, 36px);
  max-width: 680px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .acq__cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .acq__hero-scroll-icon--mouse { display: none; }
  .acq__hero-scroll-icon--touch { display: inline-flex; }

  /* Portal is off on phone — let the intro size to its content (avoids clipping
     long copy inside a forced full-screen box) with comfortable padding. */
  .acq__intro {
    min-height: auto;
    padding-top: clamp(80px, 18vw, 120px);
    padding-bottom: clamp(80px, 18vw, 120px);
  }

  .acq__offer {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Image always on top when stacked */
  .acq__offer:nth-child(even) .acq__offer-media {
    order: 0;
  }
}

@media (max-width: 1080px) {
  .acq__faq-img { display: none; }
}

@media (max-width: 600px) {
  .acq__cards { grid-template-columns: 1fr; gap: 48px; }
}
