/* ============================================================
   INRESTO BYGG AB — Custom Design Overrides
   Aesthetic: Swedish industrial craftsmanship, refined modern
   Fonts: Syne (display) + DM Sans (body)
   Accent: #B85C2A (warm terracotta)
   ============================================================ */

:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --color-dark: #1a1b1f;
  --color-accent: #B85C2A;
  --color-accent-hover: #9E4D23;
  --color-bg-warm: #F8F6F3;
  --color-border: #E5DDD5;
  --color-text-muted: rgba(26, 27, 31, 0.55);
  --container-max: 980px;
  --transition-base: 0.25s ease;
}

/* ---- Base ---- */
body {
  font-family: var(--font-body) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, div, span, li, td, th, input, textarea, select, label {
  font-family: var(--font-body) !important;
}

/* ---- Container ---- */
.container {
  max-width: var(--container-max) !important;
}

.container-2 {
  max-width: var(--container-max) !important;
}

/* ---- Navigation ---- */
.navigation {
  padding: 22px 50px !important;
  transition: background-color 0.35s ease, box-shadow 0.35s ease !important;
}

.navigation.nav-scrolled {
  background-color: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 1px 0 var(--color-border) !important;
}

.navigation-item {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--color-dark) !important;
  opacity: 0.55 !important;
  transition: opacity var(--transition-base) !important;
}

.navigation-item:hover {
  opacity: 0.9 !important;
}

.navigation-item.w--current {
  opacity: 1 !important;
  color: var(--color-accent) !important;
  font-weight: 600 !important;
}

/* ---- All headings: Syne ---- */
h1, h2, h3, h4, h5, h6,
.heading-jumbo,
.heading-jumbo-small,
.heading-jumbo-tiny,
.heading-jumbo-2,
.section-heading,
.work-heading,
.blog-heading,
.contact-heading,
.project-name-link,
.blog-heading-link,
.team-member-name,
.business-article-heading {
  font-family: var(--font-display) !important;
}

/* ---- Hero heading ---- */
.heading-jumbo {
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ---- Motto / jumbo-small ---- */
.heading-jumbo-small {
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
}

.motto-wrap .heading-jumbo-small {
  font-weight: 400 !important;
  font-size: 26px !important;
  line-height: 42px !important;
  color: rgba(26, 27, 31, 0.7) !important;
}

/* ---- Paragraph sizes ---- */
.paragraph-bigger {
  font-size: 19px !important;
  line-height: 32px !important;
  font-weight: 400 !important;
}

.paragraph-light {
  color: var(--color-dark);
  opacity: 0.6 !important;
  line-height: 28px !important;
}

/* ---- Divider ---- */
.divider {
  background-color: var(--color-border) !important;
  height: 1px !important;
}

/* ---- Hero / Intro header ---- */
.intro-header {
  position: relative !important;
  background-position: 50% 78% !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
}

.intro-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.40) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.intro-content,
.intro-text {
  position: relative;
  z-index: 1;
}

/* ---- Scroll Hero ---- */
.scroll-hero {
  --scroll-hero-length: 340vh;
  --scroll-hero-progress: 0;
  position: relative;
  height: 100svh;
  margin-bottom: clamp(48px, 9vh, 96px);
}

.w-mod-js .scroll-hero {
  height: var(--scroll-hero-length);
}

.scroll-hero__pin {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint style;
  background: #101214;
  background-image: url("../images/hero-scroll-poster.jpg");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
}

.scroll-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: translateZ(0) scale(1.01);
  backface-visibility: hidden;
  will-change: opacity;
  opacity: 0;
  transition: opacity 0.32s ease;
  background: #101214;
}

.scroll-hero--media-ready .scroll-hero__video {
  opacity: 1;
}

.scroll-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(7, 10, 12, 0.16) 0%, rgba(7, 10, 12, 0.28) 42%, rgba(7, 10, 12, 0.70) 100%);
}

.scroll-hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  min-height: 100%;
  padding: clamp(28px, 4.4vw, 68px);
  padding-bottom: clamp(108px, 17vh, 152px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 14px;
}

.scroll-hero__eyebrow {
  font-family: var(--font-body) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.scroll-hero__title {
  margin: 0;
  font-family: var(--font-display) !important;
  font-size: clamp(54px, 8vw, 110px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: #fff;
  text-wrap: balance;
}

.scroll-hero__subtitle {
  margin: 0;
  font-family: var(--font-body) !important;
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
}

.scroll-hero__body {
  max-width: 34rem;
  margin: 4px 0 6px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.scroll-hero__meta {
  position: absolute;
  left: clamp(28px, 4.4vw, 68px);
  right: clamp(28px, 4.4vw, 68px);
  bottom: clamp(28px, 4vw, 42px);
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.scroll-hero__hint {
  font-family: var(--font-body) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.scroll-hero__progress-track {
  flex: 0 0 auto;
  max-width: 280px;
  width: min(280px, 34vw);
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.scroll-hero__progress-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.scroll-hero--chrome .scroll-hero__video {
  transform: translateZ(0) scale(1.005);
}

.scroll-hero--fallback {
  height: 100svh !important;
}

.scroll-hero--fallback .scroll-hero__pin {
  position: relative;
}

.scroll-hero--fallback .scroll-hero__meta {
  display: none;
}

.scroll-hero--passive {
  height: 100svh !important;
}

.scroll-hero--passive .scroll-hero__pin {
  position: relative;
}

.scroll-hero--passive .scroll-hero__meta {
  display: none;
}

/* ---- Subpage hero ---- */
.intro-header.cc-subpage {
  background-color: #111 !important;
}

/* ---- Styleguide / projects header ---- */
.styleguide-header-wrap {
  background-position: 50% 35% !important;
  position: relative;
}

.styleguide-header-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
  z-index: 0;
}

.styleguide-header-wrap .heading-jumbo,
.styleguide-header-wrap .paragraph-bigger {
  position: relative;
  z-index: 1;
}

/* ---- Project overview headers ---- */
.project-overview-header {
  position: relative !important;
}

.project-overview-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
  z-index: 0;
}

.project-overview-header .intro-content {
  position: relative;
  z-index: 1;
}

/* ---- Buttons ---- */
.button {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.12em !important;
  border-radius: 2px !important;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease !important;
}

.button:hover {
  background-color: var(--color-accent) !important;
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
  background-color: var(--color-accent-hover) !important;
}

.button.cc-contact-us:hover {
  background-color: var(--color-accent) !important;
}

.button.cc-jumbo-button.cc-jumbo-white:hover {
  background-color: rgba(255, 255, 255, 0.92) !important;
  color: var(--color-dark) !important;
  transform: translateY(-1px);
}

/* ---- CTA section ---- */
.section.cc-cta {
  background-color: var(--color-bg-warm) !important;
  border-top: 1px solid var(--color-border) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

/* ---- Section heading wrap ---- */
.section-heading-wrap {
  margin-top: 70px !important;
  margin-bottom: 60px !important;
}

.section-heading-wrap h2 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 30px !important;
  position: relative;
  display: inline-block;
  padding-bottom: 16px;
}

.section-heading-wrap h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.section-heading-wrap .label {
  margin-top: 16px;
}

/* ---- Home section heading ---- */
.section-heading {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  letter-spacing: -0.01em !important;
}

/* ---- Home about grid images ---- */
.about-grid img {
  border-radius: 3px;
  display: block;
}

/* ---- Service cards (about page) ---- */
.our-services-grid > div {
  background-color: var(--color-bg-warm);
  border: 1px solid var(--color-border);
  padding: 36px 28px 32px;
  border-radius: 4px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.our-services-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(26, 27, 31, 0.07);
}

.service-icon {
  margin-bottom: 20px !important;
  opacity: 0.8;
}

.our-services-grid .paragraph-bigger {
  font-family: var(--font-display) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 24px !important;
  margin-bottom: 10px !important;
}

.our-services-grid .paragraph-light {
  font-size: 14px !important;
  line-height: 24px !important;
}

/* ---- About story ---- */
.about-story-wrap {
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.about-story-wrap .paragraph-light {
  font-size: 16px !important;
  line-height: 30px !important;
}

/* ---- Project cards (styleguide) ---- */
.project-cover-link {
  overflow: hidden !important;
  display: block !important;
  border-radius: 3px !important;
  opacity: 1 !important;
}

.project-cover-link img {
  transition: transform 0.45s ease !important;
  border-radius: 3px !important;
  display: block;
}

.project-cover-link:hover {
  opacity: 1 !important;
}

.project-cover-link:hover img {
  transform: scale(1.04) !important;
  opacity: 1 !important;
}

.project-name-link {
  font-family: var(--font-display) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  color: var(--color-dark) !important;
  text-decoration: none !important;
  transition: color var(--transition-base) !important;
}

.project-name-link:hover {
  color: var(--color-accent) !important;
  opacity: 1 !important;
}

/* ---- Labels ---- */
.label {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--color-accent) !important;
  opacity: 1 !important;
}

.label.cc-light {
  color: var(--color-dark) !important;
  opacity: 0.45 !important;
}

/* ---- Contact form ---- */
.contact-form-wrap {
  border: 1px solid var(--color-border) !important;
  border-radius: 4px !important;
  background-color: #fff !important;
}

.contact-heading {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  letter-spacing: -0.01em !important;
}

.text-field {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  line-height: 24px !important;
  border: 1px solid var(--color-border) !important;
  border-radius: 3px !important;
  padding: 14px 16px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
  background-color: #fff !important;
}

.text-field:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px rgba(184, 92, 42, 0.1) !important;
  outline: none !important;
}

.text-field:hover {
  border-color: #ccc !important;
}

.text-field::placeholder {
  color: rgba(26, 27, 31, 0.3) !important;
}

.text-field.cc-textarea {
  height: 160px !important;
  resize: vertical !important;
}

label {
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.09em !important;
  text-transform: uppercase !important;
  color: var(--color-text-muted) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.contact-email-link {
  font-family: var(--font-body) !important;
  font-size: 15px !important;
  color: var(--color-accent) !important;
  text-decoration: none !important;
  transition: opacity var(--transition-base) !important;
}

.contact-email-link:hover {
  opacity: 0.75 !important;
}

/* ---- Details / contact sidebar ---- */
.details-wrap {
  margin-bottom: 24px !important;
}

.details-wrap .paragraph-light {
  font-size: 15px !important;
  line-height: 26px !important;
}

.contact-form-grid.contact-info-only {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-column-gap: 0 !important;
  max-width: 760px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.contact-info-card {
  max-width: 760px;
}

.contact-info-list {
  display: grid;
  gap: 0;
}

.contact-info-item {
  border-top: 1px solid var(--color-border);
  padding: 22px 0;
}

.contact-info-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.contact-value-link {
  font-size: 20px !important;
  font-weight: 500 !important;
  color: var(--color-dark) !important;
  line-height: 30px !important;
  display: inline-block;
}

.contact-value-link:hover {
  color: var(--color-accent) !important;
  opacity: 1 !important;
}

.contact-address {
  font-size: 17px !important;
  line-height: 30px !important;
  opacity: 0.72 !important;
}

/* ---- Project detail images ---- */
.detail-image {
  border-radius: 3px !important;
  transition: opacity 0.25s ease !important;
}

/* ---- Project detail labels ---- */
.project-details-grid .label {
  font-size: 12px !important;
  margin-bottom: 12px !important;
  display: block !important;
}

/* ---- CTA text ---- */
.cta-text .heading-jumbo-small {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 0;
  font-family: var(--font-body) !important;
}

.site-footer .footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 48px;
}

.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
}

.site-footer .footer-brand-name {
  font-family: var(--font-display) !important;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.site-footer .footer-accent-line {
  width: 32px;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 18px;
}

.site-footer .footer-tagline {
  font-size: 14px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}

.site-footer .footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.site-footer .footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-social-link:hover {
  color: #fff;
  transform: translateY(-1px);
}

.site-footer .footer-social-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

.site-footer .footer-col-title {
  font-family: var(--font-body) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 18px;
  display: block;
}

.site-footer .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer .footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-family: var(--font-body) !important;
  transition: color 0.2s ease;
}

.site-footer .footer-links a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .footer-contact-item {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 8px;
  font-family: var(--font-body) !important;
}

.site-footer .footer-contact-item a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-family: var(--font-body) !important;
  transition: color 0.2s ease;
}

.site-footer .footer-contact-item a:hover {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer .footer-bottom {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 28px 50px;
  margin-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-footer .footer-copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  font-family: var(--font-body) !important;
}

.site-footer .footer-city {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: var(--font-body) !important;
}

/* ---- Status messages ---- */
.status-message.cc-success-message {
  background-color: #2a7a4b !important;
  border-radius: 3px !important;
}

.status-message.cc-error-message {
  background-color: #b83232 !important;
  border-radius: 3px !important;
}

/* ---- Scroll-reveal fade ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Responsive ---- */
@media screen and (max-width: 991px) {
  .scroll-hero {
    --scroll-hero-length: 280vh;
  }

  .scroll-hero__content {
    max-width: 640px;
    padding-bottom: 122px;
  }

  .scroll-hero__title {
    font-size: clamp(46px, 10vw, 88px);
  }

  .scroll-hero__meta {
    left: 30px;
    right: 30px;
  }

  .intro-header {
    background-position: 50% 68% !important;
  }

  .navigation {
    padding: 18px 30px !important;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
    padding: 0 30px;
  }

  .site-footer .footer-bottom {
    padding: 24px 30px;
  }
}

@media screen and (max-width: 767px) {
  .scroll-hero {
    --scroll-hero-length: 100svh;
    margin-bottom: 56px;
  }

  .scroll-hero__pin {
    min-height: 100svh;
    border-radius: 0;
  }

  .scroll-hero__content {
    padding: 24px 22px 112px;
    gap: 12px;
  }

  .scroll-hero__eyebrow,
  .scroll-hero__hint {
    font-size: 10px;
    letter-spacing: 0.16em;
  }

  .scroll-hero__title {
    font-size: clamp(38px, 12vw, 64px);
    line-height: 0.98;
  }

  .scroll-hero__subtitle {
    font-size: 15px;
  }

  .scroll-hero__body {
    font-size: 15px;
    line-height: 1.65;
  }

  .scroll-hero__meta {
    left: 22px;
    right: 22px;
    bottom: 24px;
    justify-content: flex-end;
  }

  .scroll-hero__progress-track {
    width: min(180px, 46vw);
  }

  .intro-header {
    background-position: 50% 58% !important;
  }

  .heading-jumbo {
    font-size: 42px !important;
    line-height: 52px !important;
  }

  .heading-jumbo-small {
    font-size: 26px !important;
    line-height: 38px !important;
  }

  .motto-wrap .heading-jumbo-small {
    font-size: 20px !important;
    line-height: 34px !important;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }

  .site-footer .footer-bottom {
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

@media screen and (max-width: 479px) {
  .scroll-hero {
    --scroll-hero-length: 100svh;
  }

  .scroll-hero__content {
    padding-bottom: 104px;
  }

  .heading-jumbo {
    font-size: 32px !important;
    line-height: 42px !important;
  }

  .site-footer {
    padding-top: 48px;
  }
}
