/* ==========================================================================
   Scandipartners ApS — Clean Self-Hosted Stylesheet
   ========================================================================== */

:root {
  --paragraphs: #535c62;
  --heading: #101b22;
  --accent: #afcb1f;
  --background: #f0f6f8;
  --white: #ffffff;
  --paragraphs-dark: #95a3b2;
  --info-text: #778697;
  --border: #101b2233;
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* ---------- Reset & Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: clip;
  background-color: var(--white);
  color: var(--paragraphs);
  font-family: "Barlow", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 170%;
  letter-spacing: 0.13px;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  margin-top: 0;
  font-weight: 500;
}

h1 {
  font-size: 70px;
  line-height: 100%;
  letter-spacing: -1.4px;
  margin-bottom: 28px;
}

h2 {
  font-size: 58px;
  line-height: 107%;
  letter-spacing: -1.4px;
  margin-bottom: 26px;
}

h3 {
  font-size: 46px;
  line-height: 110%;
  letter-spacing: -1.4px;
  margin-bottom: 22px;
}

h4 {
  font-size: 36px;
  line-height: 115%;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

h5 {
  font-size: 26px;
  line-height: 120%;
  letter-spacing: -0.8px;
  margin-bottom: 18px;
}

h6 {
  font-size: 18px;
  line-height: 130%;
  letter-spacing: -0.2px;
  margin-bottom: 16px;
}

p {
  margin-top: 0;
  margin-bottom: 28px;
}

a {
  color: var(--heading);
  text-decoration: underline;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 28px;
  padding-left: 34px;
}

li {
  padding-top: 3px;
  padding-bottom: 3px;
  padding-left: 7px;
}

img {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border: 0;
}

strong {
  color: var(--heading);
  font-weight: 500;
}

blockquote {
  border-left: 1px solid var(--accent);
  margin: 0 0 28px 15px;
  padding: 2px 24px;
  font-size: 20px;
  font-style: italic;
  line-height: 165%;
}

figure {
  margin: 36px 0;
}

figcaption {
  text-align: center;
  letter-spacing: 0.08px;
  margin-top: 12px;
  font-size: 16px;
  line-height: 160%;
}

/* ---------- Navigation ---------- */

.navbar {
  position: fixed;
  top: 28px;
  left: 28px;
  right: 28px;
  z-index: 1000;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 70px #101b2214;
  transition: transform 0.35s var(--ease-out);
}

.navbar.is-scrolled {
  transform: translateY(-14px);
}

.nav-block {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.nav-group {
  display: flex;
  justify-content: center;
  align-items: center;
}

.brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 18px;
  margin-right: 18px;
  padding: 10px;
  text-decoration: none;
}

.logo {
  width: 129px;
  height: auto;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 27px 20px;
  color: var(--heading);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
  transition: opacity 0.25s var(--ease-out);
}

.nav-link:hover {
  opacity: 0.65;
}

.nav-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 15px;
  padding: 27px 35px;
  background-color: var(--accent);
  color: var(--heading);
  text-decoration: none;
  transition: background-color 0.35s var(--ease-out);
}

.menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background-color: var(--accent);
  color: var(--heading);
  padding: 20px;
  line-height: 1;
  transition: color 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}

.menu-button svg {
  width: 22px;
  height: 22px;
  display: block;
}

.menu-button[aria-expanded="true"] {
  background-color: var(--heading);
  color: var(--white);
}

/* ---------- Buttons & Interactive Links ---------- */

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 23px 35px;
  background-color: var(--accent);
  color: var(--heading);
  text-decoration: none;
  transition: background-color 0.35s var(--ease-out);
}

.button--white {
  background-color: var(--white);
}

.button--dark {
  background-color: var(--heading);
}

.button__text {
  color: var(--heading);
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
  transition: transform 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.button--dark .button__text {
  color: var(--white);
}

.button__icon {
  object-fit: contain;
  width: 4px;
  max-width: none;
  height: 8px;
  margin-left: 8px;
  transition: transform 0.35s var(--ease-out), opacity 0.35s var(--ease-out);
}

.button:hover,
.nav-button:hover {
  background-color: var(--heading);
}

.button:hover .button__text,
.nav-button:hover .button__text {
  color: var(--white);
  transform: translateX(7px);
}

.button:hover .button__icon,
.nav-button:hover .button__icon {
  transform: translateX(16px);
  opacity: 0;
}

.button--dark:hover {
  background-color: var(--accent);
}

.button--dark:hover .button__text {
  color: var(--heading);
  transform: translateX(7px);
}

/* Animated arrow + underline link blocks */

.line-block {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 3px;
}

.line-1px {
  width: 100%;
  height: 1px;
  background-color: var(--heading);
}

.line-1px--opacity {
  opacity: 0.2;
}

.line-full {
  position: absolute;
  inset: 0;
  width: 0%;
  background-color: var(--heading);
  transition: width 0.3s var(--ease-out);
}

.icon-arrow {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 10px;
  height: 10px;
  margin-left: 12px;
  overflow: hidden;
}

.icon-arrow-a,
.icon-arrow-b {
  width: 10px;
  max-width: none;
  height: 10px;
  transition: transform 0.3s var(--ease-out);
}

.icon-arrow-a {
  transform: translate3d(120%, -120%, 0);
}

.icon-arrow-b {
  position: absolute;
  transform: translate3d(0%, 0%, 0);
}

.link-block-project:hover .line-full,
.link-block-services:hover .line-full,
.link-contact:hover .line-full {
  width: 100%;
}

.link-block-project:hover .icon-arrow-a,
.link-block-services:hover .icon-arrow-a,
.link-contact:hover .icon-arrow-a {
  transform: translate3d(0%, 0%, 0);
}

.link-block-project:hover .icon-arrow-b,
.link-block-services:hover .icon-arrow-b,
.link-contact:hover .icon-arrow-b {
  transform: translate3d(-120%, 120%, 0);
}

/* ---------- Shared Section & Typography Primitives ---------- */

.content {
  width: 100%;
  max-width: 1200px;
}

.content--slim {
  max-width: 800px;
}

.section {
  width: 100%;
  margin-bottom: 14px;
  padding: 110px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.section--bg {
  background-color: var(--background);
}

.section--featured {
  background-color: var(--background);
  padding-top: 40px;
  padding-bottom: 60px;
}

.section--article {
  padding-top: 30px;
  padding-bottom: 20px;
}

.section-top {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-bottom: 14px;
  padding: 150px 50px 110px;
  background-color: var(--background);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
}

.section-full {
  width: 100%;
  margin-bottom: 14px;
}

.subtitle {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
}

.line-subtitle {
  width: 27px;
  height: 1px;
  background-color: var(--heading);
}

.line-subtitle--white {
  background-color: var(--white);
}

.text-subtitle {
  margin-left: 12px;
  color: var(--heading);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
}

.text-subtitle--white {
  color: var(--white);
}

.heading {
  letter-spacing: 0;
}

.heading--narrow {
  max-width: 700px;
}

.heading-hero {
  max-width: 730px;
  color: var(--white);
}

.heading-hero--dark {
  max-width: 100%;
  color: var(--heading);
}

.block-heading {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.block-heading--top {
  margin-bottom: 40px;
}

.block-heading--end {
  align-items: flex-end;
  margin-bottom: 24px;
}

.block-heading-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.block-heading-button {
  margin-bottom: 30px;
  margin-left: 25px;
  flex-shrink: 0;
}

.paragraph {
  max-width: 500px;
  margin-bottom: 36px;
}

.icon {
  object-fit: contain;
  width: 24px;
  height: 24px;
  display: block;
}

/* ---------- Home Hero ---------- */

.section-hero {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 85vh;
  margin-bottom: 14px;
  overflow: hidden;
  background-color: var(--background);
  background-image: url("/assets/images/lindsay-martin-qYB1OOh-iGw-unsplash.jpg");
  background-position: 50% 100%;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.block-hero {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 140px 50px 50px;
  background-image: linear-gradient(#0000, #000c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-inner {
  position: absolute;
  z-index: 20;
  width: 100%;
  max-width: 1200px;
  min-height: 100%;
  bottom: 40%;
  left: 5%;
  padding-right: 50px;
}

/* ---------- Stats & About Grid (Home) ---------- */

.grid-2-columns {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.grid-stats {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  place-items: stretch center;
}

.stats-card {
  width: 100%;
  padding: 10px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.stats-card--wide {
  grid-column: span 2;
}

.icon-stats-block {
  background-color: var(--background);
  margin-bottom: auto;
  margin-left: auto;
  padding: 14px;
}

.stats-block {
  margin: 18px;
  position: relative;
  bottom: 25%;
}

.numbers-stats {
  color: var(--heading);
  text-align: center;
  letter-spacing: -1.4px;
  margin-bottom: 12px;
  font-size: 58px;
  font-weight: 500;
  line-height: 100%;
}

.heading-stats {
  text-align: center;
  max-width: 220px;
  margin-bottom: 0;
}

.block-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 45px 3% 45px 10%;
}

/* ---------- Expertise Grid (Home) ---------- */

.grid-4-columns {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.expertise-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.icon-expertise-block {
  background-color: var(--background);
  margin-bottom: 22px;
  padding: 14px;
}

.heading-expertise {
  max-width: 210px;
}

.paragraph-expertise {
  max-width: 270px;
  margin-bottom: 0;
}

/* ---------- Project & Related-Service Cards ---------- */

.collection-list-project {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 30px;
  row-gap: 55px;
}

.collection-list-project-page {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 30px;
  row-gap: 80px;
}

.link-image-project {
  display: block;
  width: 100%;
  margin-bottom: 25px;
  transition: opacity 0.35s var(--ease-out);
}

.link-image-project:hover {
  opacity: 0.8;
}

.link-image-project img {
  width: 100%;
  display: block;
}

.project-thumb--grid {
  height: 400px;
  object-fit: cover;
  object-position: 40% 50%;
}

.service-thumb {
  height: 300px;
  object-fit: cover;
  object-position: 100% 50%;
}

.link-block-project {
  display: block;
  width: 100%;
  text-decoration: none;
}

.block-project {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
}

.heading-project {
  max-width: 310px;
  margin-bottom: -5px;
}

.heading-project--large {
  max-width: 480px;
}

.text-project-type {
  color: var(--info-text);
  letter-spacing: 0;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 130%;
}

/* ---------- Services Overview Grid (/tjenester) ---------- */

.grid-services {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.services-card {
  width: 100%;
  min-height: 700px;
  padding: 10% 12%;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
}

.text-services-page {
  width: 100%;
}

.link-block-services {
  display: block;
  width: 100%;
  text-decoration: none;
}

.block-services-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.text-service-page {
  color: var(--heading);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
}

/* ---------- Service Detail Hero & Rich Text ---------- */

.section-top-img {
  position: relative;
  z-index: 10;
  width: 100%;
  min-height: 70vh;
  margin-bottom: 14px;
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.block-top-img {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 140px 50px 50px;
  background-image: linear-gradient(#0000, #000c);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.background-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.rich-text {
  width: 100%;
  max-width: 800px;
}

.rich-text figure {
  width: 100%;
  max-width: 100%;
  margin: 36px auto;
  text-align: center;
}

.rich-text figure img {
  width: 100%;
  height: auto;
  display: block;
}

.rich-text a {
  box-shadow: inset 0 -1px 0 0 var(--heading);
  color: var(--heading);
  text-decoration: none;
  transition: box-shadow 0.25s var(--ease-out);
}

.rich-text a:hover {
  box-shadow: inset 0 -30px var(--accent);
}

/* Embedded PDF Presentation Card (Metalsvejsning) */

.pdf-card {
  margin: 36px 0;
  border: 1px solid var(--border);
  background-color: var(--background);
  overflow: hidden;
}

.pdf-card__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.pdf-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--heading);
}

.pdf-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pdf-card__link {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background-color: var(--accent);
  color: var(--heading);
  text-decoration: none;
  box-shadow: none !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out);
}

.pdf-card__link:hover {
  background-color: var(--heading);
  color: var(--white);
}

.pdf-card__frame {
  width: 100%;
  height: 620px;
  border: 0;
  display: block;
  background-color: #e6ecef;
}

.pdf-card__fallback {
  padding: 40px 24px;
  text-align: center;
  color: var(--paragraphs);
}

/* ---------- Project Detail Split Layout (/projekter/*) ---------- */

.grid-project-page {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1.5fr;
  gap: 14px;
  margin-bottom: 14px;
}

.image-project-page {
  position: sticky;
  top: 14px;
  width: 100%;
  height: 98vh;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

.project-content {
  padding: 200px 17% 0;
}

.project-banner-cell {
  grid-area: 2 / 2 / 3 / 3;
}

/* ---------- CTA Banner ---------- */

.grid-2-columns-full {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.block-banner {
  background-color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 80px 17%;
}

.block-banner--full {
  grid-column: span 2;
}

.contact-image-block {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.heading-banner {
  text-align: center;
  max-width: 700px;
  margin-bottom: 38px;
}

/* ---------- Contact Page (/kontakt) ---------- */

.form-block {
  margin-top: 5px;
  margin-bottom: 5px;
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.text-field {
  width: 100%;
  height: 52px;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid var(--white);
  background-color: var(--white);
  color: var(--heading);
  font-family: inherit;
  font-size: 18px;
  line-height: 130%;
  outline: none;
  transition: border-color 0.35s var(--ease-out);
}

.text-field:focus {
  border-bottom-color: var(--accent);
}

.text-field::placeholder {
  color: #101b2280;
}

.textarea {
  grid-column: span 2;
  width: 100%;
  min-height: 150px;
  max-height: 350px;
  margin-bottom: 14px;
  padding: 12px 20px;
  border: 0;
  border-bottom: 1px solid var(--white);
  background-color: var(--white);
  color: var(--heading);
  font-family: inherit;
  font-size: 18px;
  line-height: 130%;
  resize: vertical;
  outline: none;
  transition: border-color 0.35s var(--ease-out);
}

.textarea:focus {
  border-bottom-color: var(--accent);
}

.textarea::placeholder {
  color: #101b2280;
}

.submit-button {
  grid-column: span 2;
  border: 0;
  cursor: pointer;
  background-color: var(--heading);
  color: var(--white);
  text-align: center;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 23px 35px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
  transition: color 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}

.submit-button:hover:not(:disabled) {
  background-color: var(--accent);
  color: var(--heading);
}

.submit-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  display: none;
  margin-top: 16px;
  padding: 22px 24px;
  text-align: center;
  color: var(--heading);
  font-size: 16px;
  line-height: 140%;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background-color: #95daaa;
}

.form-status--error {
  background-color: #ffaeae;
}

.block-accent {
  grid-column: span 2;
  background-color: var(--accent);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 160px 17%;
}

.block-accent .subtitle,
.block-accent .heading {
  align-self: flex-start;
}

.grid-contacts {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr;
  row-gap: 20px;
}

.link-contact {
  display: block;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.info-contact {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.icon-contact {
  width: 18px;
  max-width: none;
  height: 18px;
  margin-right: 8px;
}

.text-contact {
  margin-left: auto;
  text-align: right;
  font-size: 18px;
  font-weight: 500;
  line-height: 130%;
  color: var(--heading);
}

/* ---------- 404 Utility Page ---------- */

.utility-page-wrap {
  width: 100%;
  min-height: 60vh;
  margin-bottom: 14px;
  padding: 200px 50px 110px;
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
}

.utility-page-content {
  width: 100%;
  max-width: 340px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Footer ---------- */

.section-footer {
  width: 100%;
  margin-top: auto;
  padding: 110px 50px 82px;
  background-color: var(--heading);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grid-footer {
  display: grid;
  width: 100%;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  column-gap: 24px;
  row-gap: 20px;
}

.block-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.logo-footer {
  width: 80px;
  height: auto;
  margin-bottom: 32px;
  display: block;
}

.paragraph-footer {
  color: var(--paragraphs-dark);
  text-align: left;
  max-width: 350px;
}

.heading-footer {
  color: var(--white);
  text-align: left;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  margin-bottom: 32px;
  font-size: 14px;
  font-weight: 600;
  line-height: 130%;
}

.heading-footer--text {
  color: var(--paragraphs-dark);
  letter-spacing: 1.2px;
  text-transform: capitalize;
  font-size: 16px;
  font-weight: 600;
  transition: color 0.25s;
}

.heading-footer--text:hover {
  color: var(--white);
}

.link-footer {
  color: var(--paragraphs-dark);
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 18px;
  font-weight: 500;
  line-height: 130%;
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.link-footer:hover {
  color: var(--white);
}

.footer-down-block {
  border-top: 1px solid #2e404b;
  margin-top: 60px;
  padding-top: 26px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.footer-down {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.text-footer-down {
  color: var(--paragraphs-dark);
  font-size: 16px;
  line-height: 130%;
}

/* ---------- Scroll Reveal Animations ---------- */

.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.75s ease, transform 0.75s var(--ease-out);
}

.js-ready [data-reveal="hero"] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.85s ease, transform 0.9s var(--ease-out);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js-ready [data-reveal],
  .js-ready [data-reveal="hero"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Large Desktop Breakpoints ---------- */

@media screen and (min-width: 1280px) {
  .brand[aria-current="page"] {
    margin-left: 26px;
    padding: 0;
  }
}

@media screen and (min-width: 1440px) {
  .hero-inner {
    left: 10%;
  }
}

@media screen and (min-width: 1920px) {
  .hero-inner {
    left: 20%;
  }

  .content--slim {
    max-width: 1200px;
  }

  .service-thumb {
    height: 250px;
  }
}

/* ---------- Tablet Breakpoint (<= 991px) ---------- */

@media screen and (max-width: 991px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 48px;
  }

  h3 {
    font-size: 38px;
  }

  h4 {
    font-size: 30px;
  }

  h5 {
    font-size: 24px;
  }

  .brand {
    margin-left: 10px;
    margin-right: 10px;
  }

  .menu-button {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--background);
    box-shadow: 0 20px 40px #101b221a;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link {
    padding: 20px 10px;
  }

  .nav-button {
    margin-left: 0;
    padding: 20px 10px;
  }

  .section-hero,
  .section,
  .section-full,
  .section-top,
  .section-top-img,
  .grid-project-page,
  .utility-page-wrap {
    margin-bottom: 10px;
  }

  .section {
    padding: 90px 30px;
  }

  .section--article {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .section-top {
    padding: 180px 30px 90px;
  }

  .section-top-img {
    min-height: 50vh;
  }

  .block-hero {
    padding-bottom: 30px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-inner {
    left: 0;
    padding-left: 30px;
    padding-right: 30px;
  }

  .block-top-img {
    padding-bottom: 15px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .block-heading--top {
    margin-bottom: 30px;
  }

  .grid-2-columns {
    gap: 20px;
  }

  .grid-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-card--wide {
    grid-column: auto;
  }

  .stats-block {
    bottom: 20%;
  }

  .numbers-stats {
    font-size: 48px;
  }

  .grid-4-columns {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 60px;
  }

  .collection-list-project {
    column-gap: 20px;
  }

  .collection-list-project-page {
    column-gap: 20px;
    row-gap: 60px;
  }

  .grid-services {
    gap: 10px;
  }

  .grid-2-columns-full {
    gap: 10px;
  }

  .block-banner {
    padding: 70px 14%;
  }

  .block-accent {
    padding: 120px 14%;
  }

  .grid-project-page {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .image-project-page {
    position: static;
    height: 80vh;
  }

  .project-content {
    padding: 90px 14% 55px;
  }

  .project-banner-cell {
    grid-area: auto;
  }

  .utility-page-wrap {
    min-height: 70vh;
    padding: 180px 30px 90px;
  }

  .section-footer {
    padding-top: 90px;
    padding-bottom: 62px;
  }

  .service-thumb {
    object-position: 75% 50%;
  }
}

/* ---------- Mobile Landscape Breakpoint (<= 767px) ---------- */

@media screen and (max-width: 767px) {
  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 32px;
  }

  h4 {
    font-size: 26px;
  }

  h5 {
    font-size: 22px;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .section--article {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .section-top {
    padding-top: 170px;
    padding-bottom: 70px;
  }

  .grid-2-columns {
    grid-template-columns: 1fr;
    row-gap: 60px;
  }

  .block-right {
    padding: 0 7%;
  }

  .grid-stats {
    gap: 10px;
  }

  .stats-block {
    padding-top: 30px;
    bottom: 10%;
  }

  .block-heading,
  .block-heading--end {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .block-heading-button {
    margin-left: 0;
  }

  .collection-list-project,
  .collection-list-project-page {
    grid-template-columns: 1fr;
  }

  .collection-list-project-page {
    row-gap: 55px;
  }

  .link-image-project {
    margin-bottom: 20px;
  }

  .heading-project {
    max-width: none;
  }

  .text-project-type {
    margin-bottom: 6px;
  }

  .grid-2-columns-full {
    grid-template-columns: 1fr;
  }

  .block-banner--full,
  .block-accent {
    grid-column: auto;
  }

  .block-banner {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .block-accent {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .grid-services {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .services-card {
    min-height: 550px;
  }

  .form {
    grid-template-columns: 1fr;
  }

  .textarea,
  .submit-button {
    grid-column: auto;
  }

  .grid-contacts {
    row-gap: 30px;
  }

  .project-content {
    padding-top: 70px;
    padding-bottom: 40px;
  }

  .utility-page-wrap {
    padding-top: 170px;
    padding-bottom: 70px;
  }

  .grid-footer {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }

  .section-footer {
    padding: 70px 14% 50px;
  }

  .heading-footer {
    margin-bottom: 16px;
  }

  .footer-down-block {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .footer-down {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .pdf-card__frame {
    height: 460px;
  }
}

/* ---------- Mobile Portrait Breakpoint (<= 479px) ---------- */

@media screen and (max-width: 479px) {
  body {
    padding: 6px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 28px;
  }

  h4 {
    font-size: 23px;
  }

  h5 {
    font-size: 20px;
  }

  h6 {
    font-size: 17px;
  }

  .navbar {
    top: 24px;
    left: 22px;
    right: 22px;
  }

  .section-hero {
    background-position: 35%;
    margin-bottom: 6px;
  }

  .hero-inner {
    left: 0;
    padding: 0 16px;
    bottom: 24%;
  }

  .heading-hero {
    font-size: 38px;
    line-height: 108%;
  }

  .contact-row {
    flex-wrap: wrap;
    gap: 6px;
  }

  .section,
  .section-full,
  .section-top,
  .section-top-img,
  .grid-project-page,
  .utility-page-wrap {
    margin-bottom: 6px;
  }

  .section {
    padding: 55px 16px;
  }

  .section--article {
    padding-top: 25px;
    padding-bottom: 25px;
  }

  .section-top {
    padding-bottom: 55px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .block-top-img {
    padding-bottom: 6px;
    padding-left: 30px;
    padding-right: 30px;
  }

  .block-heading--top {
    margin-bottom: 20px;
  }

  .grid-4-columns {
    grid-template-columns: 1fr;
    row-gap: 50px;
  }

  .heading-expertise,
  .paragraph-expertise {
    max-width: none;
  }

  .grid-2-columns-full,
  .grid-project-page,
  .grid-stats {
    gap: 6px;
  }

  .grid-services {
    row-gap: 16px;
  }

  .block-accent {
    padding-top: 65px;
    padding-bottom: 65px;
  }

  .text-contact {
    font-size: 16px;
  }

  .project-content {
    padding: 55px 8% 20px;
  }

  .image-project-page {
    height: 70vh;
  }

  .utility-page-wrap {
    padding: 150px 16px 55px;
  }

  .numbers-stats {
    font-size: 40px;
  }

  .footer-down-block {
    margin-top: 50px;
  }

  .paragraph-footer {
    margin-bottom: 10px;
  }

  .section-footer {
    padding-top: 55px;
    padding-bottom: 30px;
  }
}
