/* Daylight theme — sections. Split from daylight.css (see docs/adr/0002). */

/* ---------- "Vad är företagsboende?" (v2 5/7 grid) ----------
   Left: condensed intro + the long-form SEO copy collapsed under "Läs mer"
   (in the DOM for SEO/check-copy, visually quiet). Right: numbered fördelar. */
.whatis-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.whatis-grid .sec-head {
  margin-bottom: 16px;
}

.perks-head {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.num-list > div {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--c-line-soft);
}

.num-list > div:first-child {
  border-top-color: var(--c-line);
}

.num-list > div:last-child {
  border-bottom: 1px solid var(--c-line);
}

.num-list i {
  flex: 0 0 34px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--c-gran);
}

.num-list h3 {
  margin: 0 0 4px;
  font-size: 1.08rem;
}

.num-list p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--tx-muted);
}

/* On the spruce band (fastighetsagare fördelar) the ink hairlines and the
   spruce numerals would vanish — flip them to the on-gran set */
.sec--gran .num-list > div,
.sec--gran .num-list > div:first-child {
  border-top-color: var(--line);
}

.sec--gran .num-list > div:last-child {
  border-bottom-color: var(--line);
}

.sec--gran .num-list i {
  color: var(--text-on-gran);
}

/* CTA sub-block anchoring the intro column of a 5/7 numbered-list section
   (har-finns-vi varför oss, fastighetsagare fördelar) */
.why-sub {
  margin-top: 26px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-sub-text {
  margin-top: 8px;
  color: var(--tx-muted);
  max-width: 46ch;
}

.why-cta {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .whatis-grid {
    grid-template-columns: 1fr;
  }
}

/* On white offer sections the form card flips to daylight so it still reads
   as a card (v2 subpage spec) */
.offer-sec .form-card {
  background: var(--c-dagsljus);
  box-shadow: none;
}

/* ---------- Quiet mid CTA band (homepage 2a): one line on mint ---------- */
.cta-band {
  border-top: 1px solid var(--c-line-soft);
  background: var(--c-dis);
}

.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  padding-block: 26px;
}

.cta-band p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--tx);
}

.cta-band .btn {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .cta-band .container {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Compact steps band right under a content-page hero */
.steps-band {
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--c-line-soft);
}

.steps-band .process-rail h3 {
  font-size: 0.98rem;
  margin-bottom: 2px;
}

.steps-band .process-rail p {
  font-size: 0.88rem;
}

/* ---------- Offer section (form split) ---------- */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.offer-intro .sec-head {
  margin-bottom: 22px;
}

.offer-intro .feature-list {
  margin-block: 22px 26px;
}

@media (max-width: 900px) {
  .offer {
    grid-template-columns: 1fr;
  }
}

/* ---------- Split sections (photo + copy, city/service pages) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.split > img,
.split > .photo-mat {
  border-radius: var(--r-lg);
}

.split > img {
  background: var(--c-vit);
  padding: 8px;
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
}

.split--flip > img,
.split--flip > .photo-mat {
  order: 2;
}

/* On white bands the mat tints to daylight so the frame still reads */
.sec--white .split > .photo-mat {
  background: var(--c-dagsljus);
  border: 1px solid var(--c-line-soft);
  box-shadow: none;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }

  .split--flip > img,
  .split--flip > .photo-mat {
    order: 0;
  }
}
