/* 87 Bygg AB — svart, guld och silver, 2026 */
:root {
  --carbon: #1a1a1a;
  --limestone: #d3d2d4;
  --chalk: #f6f3ee;
  --stone: #b0b0b0;
  --oak: #80671f;
  --bronze: #d4af37;
  --copper: #d4af37;
  --line: rgb(26 26 26 / 17%);
}

body { background: var(--chalk); }
body, body *, button, input, select, textarea { font-family: Manrope, Arial, sans-serif !important; }
main,
.site-footer {
  min-width: 0;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
}
main :where(h1, h2, h3),
.site-footer :where(h1, h2, h3) {
  max-width: 100%;
}
h1, h2, h3, .hero-index > span { font-weight: 600 !important; letter-spacing: -.045em; }
h1 em, h2 em { font: inherit; color: var(--oak); }
.hero h1 em, .page-hero h1 em, .gallery-hero h1 em, .project-detail-hero h1 em,
.site-footer h1 em, .site-footer h2 em, .portal-band h1 em, .portal-band h2 em { color: var(--stone); }
.site-header { background: rgb(246 243 238 / 96%); }
.brand-link {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  justify-content: center;
  overflow: hidden;
}
.brand-logo-desktop {
  width: 70px !important;
  height: 70px !important;
  max-width: 70px;
  max-height: 70px;
  object-fit: contain;
}
.brand-logo-mobile {
  width: 46px !important;
  height: 46px !important;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}
.button, .project-card, .service-card, .editorial-service, input, select, textarea { border-radius: 3px !important; }
.hero { background: var(--carbon); }
.hero-image { background: var(--chalk); }
.hero-image::after { background: linear-gradient(90deg, transparent 55%, rgb(43 37 34 / 22%)); }
.hero-image > picture { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image > picture > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}
.hero-copy::before { font-family: Manrope, Arial, sans-serif; font-weight: 700; }
.hero-index > span { color: var(--bronze); }
.page-hero, .gallery-hero { background: var(--carbon); color: var(--chalk); }
.page-hero h1, .gallery-hero h1, .project-detail-hero h1 { color: var(--chalk); }
.page-hero p, .gallery-hero > .container > p:last-child, .project-detail-hero > div > p { color: var(--limestone); }
.portal-band { background: var(--carbon); }
.site-footer { background: var(--carbon); }
.footer-brand img {
  width: clamp(180px, 18vw, 240px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.person-avatar {
  background: var(--carbon);
  border-radius: 3px;
}
.person-avatar img { object-fit: cover; }
.editorial-service.accent, .button-bronze { background: var(--copper); color: var(--chalk); }
.editorial-service.accent span { color: var(--chalk); }
.button-bronze:hover { background: var(--oak); }
.round-arrow { border-color: currentColor; }
.hero-image > img, .project-image-wrap img, .page-hero-image img, .material-image img { filter: saturate(.86) contrast(1.03); }

.gallery-hero { min-height: 32rem; display: grid; align-items: end; padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 7vw, 7rem); }
.gallery-hero h1 { margin: 0; max-width: 11ch; font-size: clamp(3.3rem, 7vw, 7rem); line-height: .92; }
.gallery-hero > .container > p:last-child { max-width: 48rem; margin: 2rem 0 0; font-size: clamp(1rem, 1.6vw, 1.25rem); }
.gallery-project-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(2rem, 5vw, 5.5rem) 1.5rem; }
.gallery-project-card { grid-column: span 6; display: grid; gap: 1.2rem; }
.gallery-project-card:nth-child(3n + 1) { grid-column: span 7; }
.gallery-project-card:nth-child(3n + 2) { grid-column: span 5; margin-top: 8rem; }
.gallery-project-card:nth-child(3n) { grid-column: 3 / span 8; }
.gallery-project-card figure { aspect-ratio: 4 / 5; overflow: hidden; margin: 0; position: relative; background: var(--limestone); }
.gallery-project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-project-card:hover img { transform: scale(1.025); }
.gallery-project-card figure span { position: absolute; top: 1rem; left: 1rem; background: var(--chalk); padding: .5rem .65rem; font-size: .7rem; letter-spacing: .14em; }
.gallery-project-card > div { display: grid; grid-template-columns: 1fr auto; gap: .2rem 1rem; align-items: end; }
.gallery-project-card p { grid-column: 1 / -1; margin: 0; color: var(--oak); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; }
.gallery-project-card h2 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2.3rem); line-height: 1.05; }
.gallery-project-card > div > span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }

.project-detail-hero { min-height: 46rem; display: grid; grid-template-columns: minmax(0, 56%) minmax(0, 44%); background: var(--carbon); color: var(--chalk); }
.project-detail-hero > img { width: 100%; height: 100%; min-height: 46rem; object-fit: cover; }
.project-detail-hero > div { padding: clamp(4rem, 8vw, 8rem) clamp(2rem, 6vw, 7rem); display: flex; flex-direction: column; justify-content: center; }
.project-detail-hero h1 { margin: 0 0 2rem; font-size: clamp(3rem, 5.8vw, 6.5rem); line-height: .92; }
.project-detail-hero .text-link { margin-top: 2rem; align-self: flex-start; }
.project-media-grid { columns: 2; column-gap: 1.5rem; }
.project-media-item { margin: 0 0 1.5rem; break-inside: avoid; background: var(--limestone); overflow: hidden; }
.project-media-item img, .project-media-item video { width: 100%; height: auto; display: block; }

@media (max-width: 820px) {
  .gallery-project-grid { display: grid; grid-template-columns: 1fr; }
  .gallery-project-card, .gallery-project-card:nth-child(n) { grid-column: 1; margin-top: 0; }
  .project-detail-hero { grid-template-columns: 1fr; }
  .project-detail-hero > img { min-height: 32rem; max-height: 72vh; }
  .project-media-grid { columns: 1; }
}

@media (max-width: 900px) {
  .hero-image { min-height: 0; aspect-ratio: 1386 / 1135; }
}

@media (max-width: 680px) {
  .hero-image { min-height: 0; aspect-ratio: 1240 / 1754; }
}

@media (max-width: 560px) {
  .gallery-hero { min-height: 27rem; }
  .gallery-project-card > div { grid-template-columns: 1fr; }
  .gallery-project-card > div > span { margin-top: .5rem; }
}

/* Startsida — helbildshero med ett lugnt urval av färdiga projekt */
.home-page .utility-bar { display: none; }
.home-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  color: var(--chalk);
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    color .24s ease,
    background-color .24s ease,
    border-color .24s ease,
    box-shadow .24s ease,
    -webkit-backdrop-filter .24s ease,
    backdrop-filter .24s ease;
}
.home-page .site-header:not(.is-scrolled) .brand-logo {
  filter: none;
}
.home-page .site-header:not(.is-scrolled) .mobile-menu summary {
  color: var(--chalk);
  border-color: rgb(246 243 238 / 45%);
  background: rgb(43 37 34 / 16%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.home-page .site-header.is-scrolled {
  color: var(--carbon);
  border-bottom-color: var(--line);
  background: rgb(246 243 238 / 96%);
  box-shadow: 0 10px 32px rgb(43 37 34 / 8%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.home-page .mobile-menu nav { color: var(--carbon); }
.utility-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.utility-admin,
.desktop-admin { color: var(--oak); }
.home-page .header-inner { height: 82px; }
.home-page .brand-link { width: 68px; height: 68px; flex-basis: 68px; }
.home-page .brand-logo-desktop {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px;
  max-height: 64px;
}
.home-page .desktop-nav { gap: clamp(.9rem, 1.7vw, 1.75rem); }
.home-page .desktop-portal { color: var(--oak); }
.home-page .mobile-menu nav { top: 82px; }

/* På stora skärmar ligger menyn över hero-bilden och får en ljus yta först vid scroll. */
@media (min-width: 1121px) {
  .home-page .site-header:not(.is-scrolled) .desktop-admin,
  .slideshow-page .site-header:not(.is-scrolled) .desktop-admin {
    color: var(--chalk);
  }

  .home-page .site-header:not(.is-scrolled) .desktop-nav {
    text-shadow: 0 1px 18px rgb(24 20 18 / 72%);
  }

  .home-page .site-header:not(.is-scrolled) .desktop-nav a::after {
    background: var(--chalk);
  }

  .home-page .site-header:not(.is-scrolled) .desktop-portal {
    color: var(--chalk);
  }

  .home-page .site-header:not(.is-scrolled) .header-cta {
    color: var(--carbon);
    border-color: rgb(246 243 238 / 72%);
    background: rgb(246 243 238 / 94%);
  }

  .home-page .site-header:not(.is-scrolled) .header-cta:hover {
    background: var(--chalk);
  }

  .home-page .site-header.is-scrolled .desktop-portal {
    color: var(--oak);
  }
}

/* Undersidor med samma helbildshero som startsidan, men med sidans egen text. */
.slideshow-page .utility-bar { display: none; }
.slideshow-page .site-header {
  position: fixed;
  inset: 0 0 auto;
  color: var(--chalk);
  border-bottom-color: transparent;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition:
    color .24s ease,
    background-color .24s ease,
    border-color .24s ease,
    box-shadow .24s ease,
    -webkit-backdrop-filter .24s ease,
    backdrop-filter .24s ease;
}
.slideshow-page .site-header:not(.is-scrolled) .brand-logo {
  filter: none;
}
.slideshow-page .site-header:not(.is-scrolled) .mobile-menu summary {
  color: var(--chalk);
  border-color: rgb(246 243 238 / 45%);
  background: rgb(43 37 34 / 16%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.slideshow-page .site-header.is-scrolled {
  color: var(--carbon);
  border-bottom-color: var(--line);
  background: rgb(246 243 238 / 96%);
  box-shadow: 0 10px 32px rgb(43 37 34 / 8%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.slideshow-page .mobile-menu nav { top: 82px; color: var(--carbon); }
.slideshow-page .header-inner { height: 82px; }
.slideshow-page .brand-link { width: 68px; height: 68px; flex-basis: 68px; }
.slideshow-page .brand-logo-desktop {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px;
  max-height: 64px;
}
.slideshow-page .desktop-nav { gap: clamp(.9rem, 1.7vw, 1.75rem); }
.slideshow-page .desktop-portal { color: var(--oak); }

.slideshow-page .hero.hero-slideshow h1 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: -.025em;
  line-height: 1.08;
}
.slideshow-page .hero.hero-slideshow h1 em {
  color: var(--chalk);
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal;
  letter-spacing: inherit;
}

@media (min-width: 1121px) {
  .slideshow-page .site-header:not(.is-scrolled) .desktop-nav {
    text-shadow: 0 1px 18px rgb(24 20 18 / 72%);
  }
  .slideshow-page .site-header:not(.is-scrolled) .desktop-nav a::after {
    background: var(--chalk);
  }
  .slideshow-page .site-header:not(.is-scrolled) .desktop-portal {
    color: var(--chalk);
  }
  .slideshow-page .site-header:not(.is-scrolled) .header-cta {
    color: var(--carbon);
    border-color: rgb(246 243 238 / 72%);
    background: rgb(246 243 238 / 94%);
  }
  .slideshow-page .site-header:not(.is-scrolled) .header-cta:hover {
    background: var(--chalk);
  }
  .slideshow-page .site-header.is-scrolled .desktop-portal {
    color: var(--oak);
  }
}

.hero.hero-slideshow {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  min-height: clamp(680px, calc(100vh - 82px), 860px);
  min-height: clamp(680px, calc(100svh - 82px), 860px);
  overflow: hidden;
  background: var(--carbon);
  touch-action: pan-y;
}

/* Den gamla sidans klassiska rubrikstil, kombinerad med Manrope i meny och brödtext. */
.home-page main h1,
.home-page main h2,
.home-page main h3 {
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 400 !important;
  letter-spacing: -.025em;
}

.home-page .hero.hero-slideshow h1 {
  line-height: 1.08;
}

.home-page .hero.hero-slideshow h1 em {
  color: var(--chalk);
  font-family: inherit !important;
  font-weight: inherit !important;
  font-style: normal;
  letter-spacing: inherit;
}

@media (min-width: 1121px) {
  .hero.hero-slideshow {
    min-height: clamp(680px, 100vh, 900px);
    min-height: clamp(680px, 100svh, 900px);
  }
}

.hero.hero-slideshow .hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  background: var(--carbon);
}

.hero.hero-slideshow .hero-image::after {
  z-index: 2;
  background: rgb(0 0 0 / 36%);
}

.hero.hero-slideshow .hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.25s ease-in-out;
}

.hero.hero-slideshow .hero-slide.is-active { opacity: 1; }

.hero.hero-slideshow .hero-slide > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: none;
}

.hero.hero-slideshow .hero-copy {
  z-index: 3;
  align-items: center;
  justify-content: center;
  width: min(100%, 980px);
  min-width: 0;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(5rem, 9vw, 8.5rem) 1.5rem 8rem;
  text-align: center;
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear 0s;
}

/* Logotypbilden får tala för sig själv utan rubrik eller knappar ovanpå. */
.hero.hero-slideshow.is-brand-wall .hero-copy {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition-delay: 0s, 0s, .45s;
}

.hero.hero-slideshow.is-brand-wall .hero-image::after {
  background: rgb(0 0 0 / 10%);
}

.hero.hero-slideshow .hero-copy::before,
.hero.hero-slideshow .hero-index { display: none; }

.hero.hero-slideshow h1 {
  width: 100%;
  max-width: 10em;
  color: var(--chalk);
  font-size: clamp(3.8rem, 5vw, 5.7rem);
  line-height: .92;
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
  text-wrap: balance;
  text-shadow: 0 2px 28px rgb(0 0 0 / 26%);
}

.hero.hero-slideshow .eyebrow { text-shadow: 0 1px 12px rgb(0 0 0 / 36%); }

.hero.hero-slideshow .hero-lead {
  max-width: 47rem;
  color: rgb(246 243 238 / 90%);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.72;
  text-shadow: 0 1px 16px rgb(0 0 0 / 38%);
}

.hero.hero-slideshow .hero-actions { justify-content: center; }

.hero-slide-controls {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: min(calc(100% - 3rem), 760px);
  transform: translateX(50%);
}

.hero-dots {
  display: flex;
  flex: 1;
  align-items: center;
  gap: .65rem;
}

.hero-dot,
.hero-arrow,
.hero-pause {
  appearance: none;
  border: 0;
  color: var(--chalk);
  cursor: pointer;
}

.hero-dot {
  position: relative;
  flex: 1;
  height: 44px;
  padding: 0;
  background: transparent;
}

.hero-dot > span {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: rgb(246 243 238 / 36%);
  transform: translateY(-50%);
}

.hero-dot > span::after {
  position: absolute;
  inset: 0;
  content: "";
  background: var(--chalk);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot.is-active > span::after { animation: hero-progress 6.5s linear forwards; }
.hero-slideshow.is-paused .hero-dot.is-active > span::after { animation-play-state: paused; }

.hero-arrow,
.hero-pause {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgb(246 243 238 / 42%);
  border-radius: 50% !important;
  background: rgb(43 37 34 / 32%);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  place-items: center;
  transition: border-color .18s ease, background .18s ease;
}

.hero-pause { font-size: .84rem; }
.hero-arrow { font-size: 1rem; }
.hero-arrow:hover,
.hero-pause:hover { border-color: var(--chalk); background: rgb(43 37 34 / 58%); }

.hero-dot:focus-visible,
.hero-arrow:focus-visible,
.hero-pause:focus-visible {
  outline: 2px solid var(--chalk);
  outline-offset: 3px;
}

@keyframes hero-progress { to { transform: scaleX(1); } }

@media (max-width: 900px) {
  .home-page .header-inner { height: 74px; }
  .home-page .brand-link { width: 58px; height: 58px; flex-basis: 58px; }
  .home-page .brand-logo-desktop {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px;
    max-height: 56px;
  }
  .home-page .mobile-menu nav { top: 74px; }
  .slideshow-page .header-inner { height: 74px; }
  .slideshow-page .brand-link { width: 58px; height: 58px; flex-basis: 58px; }
  .slideshow-page .brand-logo-desktop {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px;
    max-height: 56px;
  }
  .slideshow-page .mobile-menu nav { top: 74px; }
  .hero.hero-slideshow {
    min-height: max(650px, calc(100vh - 74px));
    min-height: max(650px, calc(100svh - 74px));
  }
  .hero.hero-slideshow .hero-image,
  .hero.hero-slideshow .hero-copy { min-height: 0; aspect-ratio: auto; }
}

@media (max-width: 680px) {
  .home-page .header-inner { height: 68px; }
  .home-page .mobile-menu nav { top: 68px; }
  .home-page .brand-link { width: 46px; height: 46px; flex-basis: 46px; }
  .home-page .brand-logo-mobile {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px;
    max-height: 44px;
  }
  .slideshow-page .header-inner { height: 68px; }
  .slideshow-page .mobile-menu nav { top: 68px; }
  .slideshow-page .brand-link { width: 46px; height: 46px; flex-basis: 46px; }
  .slideshow-page .brand-logo-mobile {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px;
    max-height: 44px;
  }
  .hero.hero-slideshow {
    min-height: max(620px, calc(100vh - 68px));
    min-height: max(620px, calc(100svh - 68px));
  }
  .hero.hero-slideshow .hero-image { min-height: 0; aspect-ratio: auto; }
  .hero.hero-slideshow .hero-image::after {
    background: rgb(0 0 0 / 36%);
  }
  .hero.hero-slideshow .hero-copy {
    align-items: flex-start;
    justify-content: flex-end;
    padding: 5.5rem 1.25rem 7.25rem;
    text-align: left;
  }
  .hero.hero-slideshow h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11vw, 3.5rem);
    line-height: 1.02;
  }
  .hero.hero-slideshow .hero-lead { max-width: 34rem; font-size: .94rem; line-height: 1.65; }
  .hero.hero-slideshow .hero-actions { justify-content: flex-start; }
  .hero-slide-controls { bottom: .9rem; width: calc(100% - 2rem); gap: .65rem; }
  .hero-arrow { display: none; }
  .hero-dot { height: 38px; }
  .hero-pause { flex-basis: 38px; width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero.hero-slideshow .hero-slide { transition: none; }
  .hero-dot.is-active > span::after { animation: none; transform: scaleX(1); }
  .hero-pause { display: none; }
}


/* Kontaktsidan behåller den gamla sidans tydliga karta, i den nya profilen. */
.contact-map-section {
  border-top: 1px solid var(--line);
  background: var(--limestone);
}
.contact-map-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.contact-map-frame iframe {
  display: block;
  width: 100%;
  height: clamp(420px, 46vw, 620px);
  border: 0;
  filter: saturate(.72) contrast(1.02);
}
.contact-map-address {
  position: absolute;
  top: clamp(1rem, 3vw, 2.25rem);
  left: max(1rem, calc((100vw - var(--max)) / 2));
  display: grid;
  min-width: min(320px, calc(100% - 2rem));
  padding: 1.25rem 1.4rem;
  color: var(--carbon);
  background: rgb(246 243 238 / 96%);
  border: 1px solid rgb(43 37 34 / 15%);
  box-shadow: 0 16px 42px rgb(43 37 34 / 15%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.contact-map-address strong {
  font-size: 1rem;
}
.contact-map-address span {
  color: var(--oak);
  font-size: .8rem;
}
.contact-map-address small {
  margin-top: .8rem;
  color: var(--oak);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .contact-map-frame { min-height: 390px; }
  .contact-map-frame iframe { height: 480px; }
  .contact-map-address {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    min-width: 0;
  }
}

/* Vanlig offertförfrågan — direkt och endast till 87 Bygg. */
#offertformular {
  scroll-margin-top: 96px;
}

.quote-form-heading {
  display: grid;
  gap: .55rem;
  padding-bottom: .4rem;
}

.quote-form-heading .eyebrow {
  margin-bottom: .2rem;
}

.quote-form-heading h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4.5vw, 4.6rem);
  line-height: .96;
}

.quote-form-heading > p:last-child {
  margin: .4rem 0 0;
  color: var(--oak);
  font-size: .78rem;
}

.quote-form textarea {
  min-height: 190px;
}

.form-status {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--chalk);
  font-size: .82rem;
  font-weight: 700;
}

.form-status.is-error {
  color: #6e1d13;
  border-color: rgb(110 29 19 / 42%);
  background: #fff3ef;
}

.form-delivery-note {
  margin: -.35rem 0 0;
  color: var(--oak);
  font-size: .72rem;
  text-align: center;
}

.quote-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: .72;
  transform: none !important;
}

.quote-vision-option {
  padding-block: var(--section);
  color: var(--chalk);
  background: var(--carbon);
}

.quote-vision-option-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
}

.quote-vision-option h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: .94;
}

.quote-vision-option-grid > div:last-child > p {
  max-width: 60ch;
  margin: 0;
  color: rgb(246 243 238 / 72%);
  line-height: 1.85;
}

.quote-vision-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* Nystartade sociala kanaler — med lagom mycket självdistans. */
.social-band {
  padding-block: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid var(--line);
  background: var(--chalk);
}

.social-band-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: end;
  gap: clamp(3rem, 8vw, 9rem);
}

.social-band h2 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.4rem);
  line-height: .95;
}

.social-band-copy > p {
  max-width: 62ch;
  margin: 0;
  color: var(--oak);
  line-height: 1.85;
}

.social-band-copy > p + p {
  margin-top: 1rem;
}

.social-band-copy > p strong {
  color: var(--carbon);
}

.social-band-copy > p a {
  color: var(--carbon);
  border-bottom: 1px solid var(--bronze);
  font-weight: 700;
}

.social-band-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}

.social-band-actions > .social-channel-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.social-channel-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: .85rem;
  min-width: 0;
  min-height: 68px;
  padding: .75rem .9rem;
  color: var(--carbon);
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 38%);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.social-channel-card:hover {
  border-color: var(--bronze);
  background: rgb(255 255 255 / 72%);
  transform: translateY(-2px);
}

.social-channel-card svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: #fff;
  border-radius: 999px;
}

.social-channel-card span,
.social-channel-card strong,
.social-channel-card small {
  display: block;
  min-width: 0;
}

.social-channel-card strong {
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .7rem;
}

.social-channel-card small {
  overflow-wrap: anywhere;
  margin-top: .1rem;
  color: var(--oak);
  font-size: .68rem;
}

.social-channel-card.social-facebook svg { background: #1877f2; }
.social-channel-card.social-instagram svg { background: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fcb045 100%); }
.social-channel-card.social-tiktok svg {
  background: #080808;
  box-shadow: inset 2px 0 #25f4ee, inset -2px 0 #fe2c55;
}
.social-channel-card.social-pinterest svg { background: #e60023; }
.social-channel-card.social-linkedin svg { background: #0a66c2; }
.social-channel-card.social-youtube svg { background: #ff0000; }

/* Små varumärkesfärgade ikoner, nedtonade till 87 Byggs mörka premiumfooter. */
.footer-social-heading {
  margin-top: .35rem;
  color: rgb(246 243 238 / 88%);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .68rem;
  font-weight: 700;
}

.footer-social-note {
  max-width: 31ch;
  color: rgb(246 243 238 / 58%);
  font-size: .7rem;
  line-height: 1.55;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: .1rem;
  padding-top: .9rem;
  border-top: 1px solid rgb(246 243 238 / 14%);
}

.site-footer .footer-socials a.footer-social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgb(0 0 0 / 18%);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.site-footer .footer-socials a.footer-social-link:hover {
  border-color: var(--bronze);
  box-shadow: 0 10px 24px rgb(0 0 0 / 28%), 0 0 0 2px rgb(183 121 5 / 26%);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link.social-facebook { background: #1877f2; }
.footer-social-link.social-instagram { background: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #fcb045 100%); }
.footer-social-link.social-tiktok {
  background: #080808;
  box-shadow: inset 2px 0 #25f4ee, inset -2px 0 #fe2c55, 0 8px 18px rgb(0 0 0 / 18%);
}
.footer-social-link.social-pinterest { background: #e60023; }
.footer-social-link.social-linkedin { background: #0a66c2; }
.footer-social-link.social-youtube { background: #ff0000; }
.footer-social-link.social-google-maps {
  background: linear-gradient(135deg, #34a853 0 35%, #fbbc04 35% 56%, #ea4335 56% 72%, #4285f4 72% 100%);
}

.footer-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 5rem);
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid rgb(246 243 238 / 14%);
  border-bottom: 1px solid rgb(246 243 238 / 14%);
}

.footer-review > div {
  max-width: 660px;
}

.footer-review .footer-label {
  margin: 0 0 .35rem;
}

.footer-review p:last-child {
  margin: 0;
  color: rgb(246 243 238 / 62%);
  font-size: .8rem;
  line-height: 1.65;
}

.site-footer a.footer-review-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  margin: 0;
  padding: .75rem 1rem;
  color: var(--carbon);
  border: 1px solid rgb(255 255 255 / 24%);
  background: #fff;
  box-shadow: 0 10px 28px rgb(0 0 0 / 20%);
  letter-spacing: .025em;
  font-size: .76rem;
  font-weight: 750;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.site-footer a.footer-review-link:hover {
  color: var(--carbon);
  border-color: var(--bronze);
  box-shadow: 0 12px 32px rgb(0 0 0 / 28%), 0 0 0 2px rgb(183 121 5 / 22%);
  transform: translateY(-2px);
}

.footer-review-link svg {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.footer-social-link:focus-visible,
.footer-review-link:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .quote-vision-option-grid,
  .social-band-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .quote-vision-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-vision-actions .button,
  .quote-vision-actions .text-link {
    width: 100%;
  }

  .social-band-actions {
    grid-template-columns: 1fr;
  }

  .social-band-actions > .social-channel-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .site-footer .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-brand {
    grid-column: auto;
  }

  .footer-social-note {
    max-width: 42ch;
  }

  .footer-review {
    align-items: stretch;
    flex-direction: column;
  }

  .site-footer a.footer-review-link {
    width: 100%;
  }
}

.quote-vision-panel {
  align-content: start;
  gap: 1.4rem;
  padding: clamp(1.75rem, 4vw, 3.75rem);
}

.quote-vision-panel h2 {
  max-width: 13ch;
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  font-size: clamp(2.35rem, 4.2vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.quote-vision-panel > p:not(.eyebrow) {
  max-width: 60ch;
  margin: 0;
  color: var(--oak);
}

.quote-vision-panel > .button {
  width: fit-content;
  margin-top: .35rem;
}

.quote-contact-alternative {
  display: grid;
  gap: .9rem;
  margin-top: 1.1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}

.quote-contact-alternative > span {
  color: var(--oak);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.quote-contact-alternative > p {
  max-width: 62ch;
  margin: 0;
}

.quote-contact-alternative > div {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
}

.quote-contact-alternative a {
  border-bottom: 1px solid currentColor;
  font-size: .84rem;
  font-weight: 700;
}

@media (max-width: 680px) {
  .quote-vision-panel > .button {
    width: 100%;
  }

  .quote-contact-alternative > div {
    display: grid;
  }
}

/* Kontaktens yttre tvåkolumnslayout ska, precis som övriga gridar, staplas på mobil. */
@media (max-width: 900px) {
  .contact-section .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-section .contact-grid > * {
    min-width: 0;
  }
}

/* Startsidan använder kundens originaltexter från den tidigare webbplatsen. */
.home-page .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 9rem);
}

.home-about-copy {
  display: grid;
  gap: 1.35rem;
  color: var(--oak);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.85;
}

.home-about-copy p { margin: 0; }

.home-about-copy blockquote {
  margin: clamp(1.1rem, 3vw, 2.2rem) 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-left: 4px solid var(--bronze);
  background: var(--carbon);
  color: var(--chalk);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
}

.home-services {
  border-block: 1px solid var(--line);
  background: var(--limestone);
}

.home-services-grid { margin-top: clamp(3rem, 6vw, 5.5rem); }
.home-services-grid .service-card { background: rgb(246 243 238 / 58%); }
.home-services-grid .service-card:hover { background: var(--carbon); }
.home-services-grid .service-card h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(2rem, 2.8vw, 3rem);
}
.home-services-grid .service-card i { margin-top: auto; }

@media (max-width: 900px) {
  .home-page .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .home-page .proof-grid { grid-template-columns: 1fr; }
  .home-about-copy blockquote { font-size: 1.25rem; }

  .process-list li {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .process-list li > div,
  .service-card,
  .related-grid a {
    min-width: 0;
  }

  .related-grid a {
    overflow-wrap: anywhere;
    font-size: 1.2rem;
  }

  .related-grid a > span {
    flex: none;
  }
}

/*
 * Lead-CTA — offert ska vara sidans tydligaste handling.
 * Den mättade guldfärgen används bara för offertvägen, så att premiumkänslan
 * bevaras samtidigt som knappen syns mot både ljusa ytor och projektbilder.
 */
:root {
  --lead-cta: #b77905;
  --lead-cta-hover: #ad7100;
  --lead-cta-text: #18130a;
  --lead-cta-border: #6b4700;
}

.button[data-quote-request] {
  color: var(--lead-cta-text) !important;
  border: 1px solid var(--lead-cta-border) !important;
  background: var(--lead-cta) !important;
  box-shadow: 0 8px 22px rgb(68 44 5 / 18%);
  transition:
    color .16s ease-out,
    background-color .16s ease-out,
    border-color .16s ease-out,
    box-shadow .16s ease-out,
    transform .16s ease-out;
}

.button[data-quote-request]:hover {
  color: var(--lead-cta-text) !important;
  border-color: var(--lead-cta-border) !important;
  background: var(--lead-cta-hover) !important;
  box-shadow: 0 11px 26px rgb(68 44 5 / 24%);
  transform: translateY(-1px);
}

.button[data-quote-request]:active {
  box-shadow: 0 5px 14px rgb(68 44 5 / 18%);
  transform: translateY(0);
}

.button[data-quote-request]:focus-visible,
.mobile-menu nav a[data-quote-request]:focus-visible,
.mobile-lead-cta:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px #1a1814;
}

.home-page .site-header:not(.is-scrolled) .header-cta[data-quote-request],
.slideshow-page .site-header:not(.is-scrolled) .header-cta[data-quote-request] {
  color: var(--lead-cta-text) !important;
  border-color: var(--lead-cta-border) !important;
  background: var(--lead-cta) !important;
  text-shadow: none;
}

.home-page .site-header:not(.is-scrolled) .header-cta[data-quote-request]:hover,
.slideshow-page .site-header:not(.is-scrolled) .header-cta[data-quote-request]:hover {
  background: var(--lead-cta-hover) !important;
}

.mobile-menu nav a[data-quote-request] {
  min-height: 54px;
  margin-top: .75rem;
  padding: .8rem 1rem;
  color: var(--lead-cta-text);
  border: 1px solid var(--lead-cta-border);
  background: var(--lead-cta);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.hero-cta-note {
  z-index: 1;
  position: relative;
  margin: .85rem 0 0;
  color: rgb(246 243 238 / 86%);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero.hero-slideshow h1 {
  overflow-wrap: anywhere;
  -webkit-hyphens: auto;
  hyphens: auto;
  word-break: normal;
}

.hero.hero-slideshow .hero-lead {
  overflow-wrap: normal;
  -webkit-hyphens: none;
  hyphens: none;
  word-break: normal;
}

.final-cta {
  color: var(--chalk);
  background: var(--carbon);
}

.final-cta .eyebrow {
  color: var(--bronze);
}

.final-cta-grid > div:last-child > p {
  color: rgb(246 243 238 / 76%);
}

.final-cta .text-link {
  color: var(--chalk);
}

.mobile-lead-cta {
  display: none;
}

/* Startsida: två separata statiska kontaktprofiler */
.team-grid {
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
  align-items: start;
}

.team-cards-grid {
  min-width: 0;
  display: grid;
  gap: 1.15rem;
}

.team-cards-grid .person-card {
  grid-template-columns: clamp(132px, 15vw, 176px) minmax(0, 1fr);
  min-height: 0;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
}

.team-cards-grid .person-avatar {
  width: 100%;
  max-width: none;
  min-height: 100%;
}

.team-cards-grid .person-copy {
  min-width: 0;
  align-self: center;
}

.team-cards-grid .person-copy h3 {
  overflow-wrap: anywhere;
  font-size: clamp(2.35rem, 4vw, 3.35rem);
  line-height: 1;
}

.team-cards-grid .person-copy > .person-role {
  margin-bottom: .85rem;
}

.person-languages {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem .65rem;
  margin: 0 0 1rem !important;
}

.person-languages span {
  color: var(--carbon);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.person-languages strong {
  color: var(--oak);
  font-size: .78rem;
}

.person-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
  border-top: 1px solid var(--line);
}

.person-contacts a {
  min-width: 0;
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: .1rem;
  padding: .6rem 0;
}

.person-contacts a:hover strong {
  color: var(--bronze);
}

.person-contacts small {
  color: var(--oak);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.person-contacts strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: .72rem;
  line-height: 1.35;
}

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

@media (max-width: 680px) {
  .team-cards-grid .person-card {
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: start;
    gap: 1rem;
    padding: 1rem;
  }

  .team-cards-grid .person-avatar {
    min-height: 0;
  }

  .team-cards-grid .person-copy h3 {
    font-size: clamp(2rem, 11vw, 2.65rem);
  }

  .person-contacts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1120px) {
  body.has-mobile-lead-cta {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-lead-cta {
    z-index: 90;
    position: fixed;
    right: 1rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    left: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: .85rem 1.1rem;
    color: var(--lead-cta-text);
    border: 1px solid var(--lead-cta-border);
    border-radius: 3px;
    background: var(--lead-cta);
    box-shadow: 0 12px 30px rgb(24 19 10 / 30%);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    transition: opacity .16s ease-out, transform .16s ease-out;
  }

  .mobile-lead-cta:hover {
    color: var(--lead-cta-text);
    background: var(--lead-cta-hover);
  }

  .mobile-lead-cta.is-hidden {
    pointer-events: none;
    opacity: 0;
    transform: translateY(calc(100% + 2rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-quote-request],
  .mobile-lead-cta {
    transition: none;
  }
}
