/*
Theme Name: Skanska Prosjekt
Theme URI: https://prosjekt.skanska.no
Author: Fjellvann AS
Author URI: https://fjellvann.no
Description: A custom WordPress Classic theme for Skanskas project blog.
Version: 1.0
Text Domain: skanska-prosjekt
*/

/* Colors */
:root {
  --skanska-blue: #143275;
  --skanska-grey: #ececec;
  --skanska-black: #000000;
  --skanska-white: #ffffff;
  --skanska-dim-white: #f5f5f5;
  --skanska-dim-black: #333333;
  --skanska-active-green: #3ece7b;
  --skanska-red: #af3149;
}

/* Register Shape Sans from /fonts/ */
@font-face {
  font-family: "Shape Sans";
  src: url("fonts/ShapeSans-Regular.woff2") format("woff2"),
    url("fonts/ShapeSans-Regular.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Shape Sans";
  src: url("fonts/ShapeSans-Bold.woff2") format("woff2"),
    url("fonts/ShapeSans-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Shape Sans";
  src: url("fonts/ShapeSans-Italic.woff2") format("woff2"),
    url("fonts/ShapeSans-Italic.woff") format("woff");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Shape Sans";
  src: url("fonts/ShapeSans-BoldItalic.woff2") format("woff2"),
    url("fonts/ShapeSans-BoldItalic.woff") format("woff");
  font-weight: bold;
  font-style: italic;
}

/* Typography */
html {
  font-size: 16px;
  height: 100%;
}

.single-page {
  flex: 1;
}

.site{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p {
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Shape Sans", sans-serif;
  line-height: 1.1em;
  margin: 0;
  margin-bottom: 0.3em;
}

h1 {
  font-size: clamp(2rem, 1.468vw + 1.679rem, 3rem);
}

h2 {
  font-size: clamp(1.875rem, 0.55vw + 1.755rem, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 0.367vw + 1.17rem, 1.5rem);
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.display {
  font-size: clamp(2.5rem, 2.883vw + 1.905rem, 4.5rem);
}

.subheading {
  font-size: clamp(1.125rem, 0.541vw + 1.014rem, 1.5rem);
  margin: 0;
  line-height: 1.4em;
}

body {
  margin: 0;
  font-family: "Shape Sans", sans-serif;
}

.site-header {
  position: sticky;
  top: 0;
  background-color: var(--skanska-white);
  z-index: 10;
  padding: 40px 24px;
}

.site-header > div {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1440px;
}

.site-branding {
  width: 180px;
}

.mw-960 {
  max-width: 960px;
}

.m-auto {
  margin: auto;
}

section.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--skanska-blue);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

section.hero.with-image:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  max-width: 1440px;
  margin: auto;
  padding: 240px 24px;
  z-index: 2;
  position: relative;
}

.hero-content p {
  max-width: 960px;
}

.section {
  max-width: 1440px;
  padding: 80px 24px;
  margin: auto;
}

.section-heading {
  margin: 0;
  margin-bottom: 24px;
}

.three-col-grid {
  display: flex;
  gap: 48px 2%;
  flex-wrap: wrap;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.card-heading {
  font-size: clamp(1.125rem, 0.55vw + 1.005rem, 1.5rem);
  font-weight: bold;
  color: var(--skanska-blue);
  text-decoration: none;
}

.card-heading:hover {
  text-decoration: underline;
}

.card-subheading {
  font-size: 18px;
  font-weight: 400;
  color: var(--skanska-dim-black);
  margin: 0;
}

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

.text-black {
  color: var(--skanska-black);
}

.text-grey {
  color: var(--skanska-grey);
}

.text-blue {
  color: var(--skanska-blue);
}

.text-red {
  color: var(--skanska-red);
}

section.section.newsletter {
  max-width: 100%;
  background: var(--skanska-grey);
  padding: 0;
  width: 100%;
}

.newsletter-content {
  max-width: 800px;
  margin: auto;
  padding: 80px 24px;
}

html {
  scroll-behavior: smooth;
}

@media screen and (min-width: 769px){
  .card {
    width: 48%;
  }
}

@media screen and (min-width: 1024px){
  .card {
    width: 32%;
  }
}

/* CONTACT PAGE */
.contact__personslist h2 {
  font-size: clamp(1.5rem, 0.727vw + 1.345rem, 2rem);
  padding-bottom: 32px;
}

.contact__personslist-item {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 32px;
}

.contact__personslist .contact__personslist-item-details h3 {
  font-size: clamp(1.25rem, 0.364vw + 1.173rem, 1.5rem);
  margin-bottom: 10px;
}

.contact__personslist .contact__personslist-item-details {
  padding-left: 24px;
  border-left: 8px solid var(--skanska-blue);
}

.contact__personslist .contact__personslist-item-details p {
  margin: 0;
}

.contact__personslist .contact__personslist-item-details p:not(:last-child) {
  margin-bottom: 4px;
}

.contact__personslist .contact__personslist-item-details p a {
  color: var(--skanska-black);
}

.contact__personslist
  .contact__personslist-item-details
  p.contact__personslist-phone
  a {
  text-decoration: none;
}

@media screen and (min-width: 769px) {
  .contact__personslist-item {
    gap: 48px 12px;
  }
  .contact__personslist .contact__personslist-item-info {
    width: calc(33% - 12px);
  }
}

@media screen and (max-width: 768px) {
  .contact__personslist-item {
    gap: 48px 12px;
  }
  .contact__personslist .contact__personslist-item-info {
    width: 100%;
  }
}

/* END CONTACT PAGE */

/* PAGES */
.page__not-index .hero {
  display: flex;
  align-items: flex-end;
}

.page__not-index .preheading,
.page__not-index .preheading a {
  margin-top: 0;
  font-size: 20px;
  font-weight: bold;
  color: inherit !important;
}

.page__not-index .hero-content {
  padding-top: 32px;
  padding-bottom: 32px;
  width: 100%;
  margin: 0 auto;
}

.page__not-index .page__contents p {
  font-size: 16px;
}

@media screen and (min-width: 769px) {
  .page__not-index .hero {
    height: 580px;
  }

  .page__not-index .page__contents p {
    font-size: 20px;
  }
}
/* END PAGES */

/* PROJECT HOMEPAGE */
.project__homepage .hero {
  display: flex;
  align-items: flex-end;
}

.project__homepage .preheading,
.project__homepage .preheading a {
  margin-top: 0;
  font-size: 20px;
  font-weight: bold;
  color: inherit !important;
}

.project__homepage .hero-content {
  padding-top: 32px;
  padding-bottom: 32px;
  width: 100%;
  margin: 0 auto;
}

@media screen and (min-width: 769px) {
  .project__homepage .hero {
    height: 580px;
  }
}
/* END PROJECT HOMEPAGE */

/* ABOUT US SECTION */
.aboutus__section-container:not(.aboutus__sectionnoimage) {
  display: flex;
  flex-wrap: wrap;
}

.aboutus__section-container img {
  display: block;
  width: 100%;
  max-width: 100%;
}

.aboutus__section-column-inner h3 {
  font-size: clamp(1.25rem, 1.101vw + 1.009rem, 2rem);
}

.aboutus__section-column-inner {
  padding-top: 24px;
}

.aboutus__section-column-inner p {
  line-height: 1.5;
  font-size: 18px;
  margin-top:16px;
  margin-bottom:40px;
}

.aboutus__cta {
  padding: 16px 24px;
  text-decoration: none;
  background-color: var(--skanska-blue);
  color: var(--skanska-white);
  border: 1px solid var(--skanska-blue);
  transition: all 0.3s ease-in-out;
  border-radius:8px;
  font-size: 1.25rem;

}

.aboutus__cta:hover {
  color: var(--skanska-blue);
  background-color: transparent;
}

.aboutus__section-column-two-thirds,
.aboutus__section-column-one-third{
  width: 100%;
}

@media screen and (min-width: 769px) {
  .aboutus__section-column-two-thirds {
    width: 60%;
  }

  .aboutus__section-column-one-third {
    width: 40%;
    display: flex;
    align-items: center;
  }

  .aboutus__section-column-inner {
    padding-left: 48px;
    padding-top: 0;
  }
}
/* END ABOUT US SECTION */

p.card-short-description {
  font-size: 20px;
  line-height: 1.4em;
}

p.card-author {
  margin-top: 8px;
}


.mw-720 {
  max-width: 720px;
}

.m-auto {
  margin: auto;
}

.alignnone, .wp-caption {
  max-width: 100%;
}

.single .post-meta {
  margin-top: 16px;
  margin-bottom: 48px;
}

.single p.card-short-description {
  font-size: 24px;
  margin-top: 8px;
}

