/* --------------------------------------------------
    HEDENGREN AGENCY
    MAIN CSS
    VERSION: 0.6.4
    AUTHOR: Thord D. Hedengren thord@hedengren.agency
----------------------------------------------------- */



/* --------------------------------------------------
   01. SETUP
----------------------------------------------------- */

/* Fonts */

@font-face {
    font-family: 'Satoshi-Variable';
    src: url('../fonts/satoshi/Satoshi-Variable.woff2') format('woff2'),
         url('../fonts/satoshi/Satoshi-Variable.woff') format('woff'),
         url('../fonts/satoshi/Satoshi-Variable.ttf') format('truetype');
         font-weight: 300 900;
         font-display: swap;
         font-style: normal;
}

@font-face {
    font-family: 'Satoshi-VariableItalic';
    src: url('../fonts/satoshi/Satoshi-VariableItalic.woff2') format('woff2'),
         url('../fonts/Satoshi-VariableItalic.woff') format('woff'),
         url('../fonts/satoshi/Satoshi-VariableItalic.ttf') format('truetype');
         font-weight: 300 900;
         font-display: swap;
         font-style: italic;
}

@font-face {
    font-family: 'Ivar Text';
    src: url('../fonts/ivarcomplete/IvarText-Regular.woff2') format('woff2'),
         url('../fonts/ivarcomplete/IvarText-Regular.woff') format('woff');
         font-weight: 400;
         font-display: swap;
         font-style: normal;
}

@font-face {
    font-family: 'Ivar Text';
    src: url('../fonts/ivarcomplete/IvarText-Italic.woff2') format('woff2'),
         url('../fonts/ivarcomplete/IvarText-Italic.woff') format('woff');
         font-weight: 400;
         font-display: swap;
         font-style: italic;
}

@font-face {
    font-family: 'Ivar Text';
    src: url('../fonts/ivarcomplete/IvarText-MediumItalic.woff2') format('woff2'),
         url('../fonts/ivarcomplete/IvarText-MediumItalic.woff') format('woff');
         font-weight: 500;
         font-display: swap;
         font-style: italic;
}

/* Variables */

:root {
    --white: #fff;
    --black: #000;
    --grey: #666;
    --background: #fff;
    --foreground: #0E0E0E;

    --font-size-default: 1.5rem;
    --font-size-tiny: 0.875rem;
    --font-size-small: 1.25rem;
    --font-size-large: 2.25rem;
    --font-size-xl: 3rem;

    --font-family-serif: 'Ivar Text', Georgia, 'Times New Roman', Times, serif;
    --font-family-sans-serif: 'Satoshi-Variable', 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --space-default: 1.5rem;
    --space-small: 0.75rem;
    --space-large: 3rem;
    --space-xl: 4.5rem;
    --space-huge: 6rem;
    --space-gigantic: 7.5rem;
}

@media screen and ( max-width:700px ) {
    html {
        font-size: 75%;
    }
    :root {
        --font-size-tiny: 0.9rem;
    }
}

/* Reset */

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

* {
    margin: 0;    
}

html {
    scroll-behavior: smooth;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}


/* --------------------------------------------------
   02. ELEMENTS
----------------------------------------------------- */

/* Basics */

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-family-serif);
    padding: 0;
}

/* Typography */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-sans-serif);
    font-weight: 900;
    line-height: 1;
    margin-bottom: var(--space-default);
}

h1 {
    font-size: var(--font-size-large);
}

h2 {
    font-size: var(--font-size-large);
}

p, li {
    color: var(--foreground);
    font-size: var(--font-size-default);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: var(--space-default);
}

small {
    font-size: var(--font-size-tiny);
}

/* Lists */

.column > li {
    list-style: none;
    margin-top: var(--space-small) 0;
}

/* Helpers */

.ha {
    color: var(--black);
    font-style: italic;
    font-weight: 500;
}

.desktop-only {
    display: none;
}

.color-foreground, .color-foreground > * {
    color: var(--foreground);
}

.color-background, .color-background > * {
    color: var(--background);
}

.center {
    text-align: center;
}

.columns {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 0;
    justify-content: space-between;
}

.clients-column-3 {
    gap: var(--space-large);
}

.note {
    color: var(--grey);
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-tiny);
}

.footnote {
    color: var(--grey);
    font-family: var(--font-family-sans-serif);
    font-size: inherit;
}

@media screen and (min-width: 700px) {
    .columns {
        flex-direction: row;
        gap: var(--space-small);
    }
    .desktop-only {
        display: inherit;
    }
    .mobile-only {
        display: none;
    }
}

/* Links */

a {
    color: var(--black);
    text-decoration: underline;
    text-decoration-color: rgb(0, 0, 0, 0.3);
}

a:hover {
    text-decoration-color: rgb(0, 0, 0, 1);
    transition: 0.5s;
}

.link-button-background, .link-button-foreground {
    align-items: center;
    display: flex;
    font-family: var(--font-family-sans-serif);
    font-size: var(--font-size-small);
    font-weight: 700;
    justify-content: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: .3s;
}

.link-button-background {
    border: 1px solid var(--background);
    color: var(--background);
}

.link-button-foreground {
    border: 1px solid var(--foreground);
    color: var(--foreground);
}

.link-button-background:hover {
    background-color: var(--background);
    border: 1px solid var(--background);
    color: var(--foreground);
    transition: .3s;
}

.link-button-foreground:hover {
    background-color: var(--foreground);
    border: 1px solid var(--foreground);
    color: var(--background);
    transition: .3s;
}

footer p a {
    align-items: center;
    display: flex;
    gap: var(--space-small);
    text-decoration: none;
}

footer p a svg {
    display: inline;
}

footer p a:hover svg {
    rotate: 5deg;
    transform: scale(1.05);
    transition: .3s;
}

/* Forms */

button, input, textarea {
    font-weight: 400;
}

button {
    cursor: pointer;
}

button:hover {
    background-color: var(--black);
    color: var(--white);
    transition: 0.3s;
}


/* --------------------------------------------------
   03. LAYOUT
----------------------------------------------------- */

header, footer, section {
    padding-left: var(--space-default);
    padding-right: var(--space-default);
}

section {
    overflow: hidden;
}

/* Header */

.header {
    margin: 0 auto;
    padding-top: var(--space-default);
    max-width: 64rem;
}

.header-callout {
    text-align: center;
}

.header-callout > p {
    font-size: var(--font-size-tiny);
    margin: 0;
}

.arrow {
    margin: var(--space-large) auto;
    line-height: 1.5;
}

.arrow > img {
    margin: 0 auto;
}

.site-logo:hover {
    transform: scale(1.05);
    transition: .3s;
}

/* Language */

.language {
    bottom: 1rem;
    font-size: var(--font-size-tiny);
    font-family: var(--font-family-sans-serif);
    position: fixed;
    right: 1rem;
    z-index: 9999;
}

.language a {
    color: var(--foreground);
    -webkit-filter: invert(50%);
    filter: invert(50%);
}

/* Main */

main {
    margin-top: var(--space-gigantic);
}

/* Section */

main > section {
    margin: var(--space-xl) auto;
    max-width: 64rem;
}

/* Section: Intro */

section.intro > p {
    font-size: var(--font-size-large);
}

/* Section: Clients */

section.clients {
    background: var(--foreground);
    color: var(--white);
    max-width: 100%;
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

section.clients > h2,
section.clients > .columns {
    margin-right: auto;
    margin-left: auto;
    max-width: 76rem;
}

.clients-column p {
    margin-top: var(--space-default);
    margin-bottom: 0;
}

.clients-column-3 {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Section: Duo */

section.duo {
    margin-top: var(--space-huge);
    max-width: 76rem;
}

section.duo > p {
    font-size: var(--font-size-large);
    margin: var(--space-huge) auto var(--space-default) auto;
    max-width: 64rem;
}

section.duo > .columns {
    align-items: center;
    gap: var(--space-default);
}

section.duo > .columns > .column {
    width: 100%;
}

.photo {
    margin-top: var(--space-huge);
    margin-bottom: var(--space-huge);
}

.photo span {
    background-color: var(--foreground);
    border-radius: 2px;
    color: var(--white);
    font-family: var(--font-family-sans-serif);
    left: 10px;
    padding: 6px 7px;
    position: relative;
    font-size: var(--font-size-tiny);
    font-weight: 700;
    text-align: center;
    top: -35px;
}

.photo-row {
    display: flex;
    flex-direction: row;
    margin-top: var(--space-default);
}

.photo-row .photo {
    margin-top: 0;
    margin-bottom: 0;
}

@media screen and (min-width: 700px) {
    section.duo > .columns {
        gap: var(--space-large);
    }
    section.duo > .columns > .column {
        width: 50%;
    }
}

/* Section: CTA */

section.cta {
    max-width: 26rem;
}

section.cta > p {
    margin-bottom: 0;
}

/* Section: References */

.references {
    display: flex;
    flex-direction: column;
    gap: var(--space-large);
    margin-top: var(--space-huge);
    max-width: 75rem;
}

.reference {
    align-items: center;
    border: 1px solid var(--foreground);
    display: flex;
    flex-direction: column;
    gap: var(--space-large);
    padding: var(--space-large);
}

.reference-logo {
    display: inline-flex;
    justify-content: center;
    width: 250px;
}

.reference-logo img {
    max-width: 50%;
}

@media screen and ( min-width: 700px ) {
    .reference {
        flex-direction: row;
    }
    .reference-logo {
        width: 20%;
    }
    .reference-logo img {
        max-height: 100px;
        max-width: 100%;
    }
    .reference-text {
        width: 80%;
    }
}

blockquote {
    font-style: italic;
}

cite {
    font-family: var(--font-family-sans-serif);
    font-style: normal;
}

cite strong {
    color: var(--foreground);
    font-weight: 800;
}

/* Footer */

.footer {
    background: var(--black);
    color: var(--white);
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer .site-logo {
    margin: 0 auto;
    max-width: 20rem;
}

.footer a,
.footer p {
    color: var(--white);
}

.footer a {
    text-decoration: underline;
    text-decoration-color: rgb(255, 255, 255, 0.3);
}

.footer a:hover {
    text-decoration-color: rgb(255, 255, 255, 1);
}

.footer > .columns {
    gap: var(--space-large);
    margin: var(--space-xl) auto 0 auto;
    max-width: 40rem;
}

.footer > .columns > .column {
    align-items: center;
    display: inline-flex;
    flex-direction: column;
    gap: var(--space-default);
    justify-content: space-between;
}

.footer > .columns > .column > p {
    margin-bottom: 0;
    text-align: center;
}

@media screen and (min-width: 700px) {
    .footer > .columns {
        gap: var(--space-large);
    }
    .footer > .columns > .column {
        align-items: flex-start;
        gap: var(--space-default);
    }
    .footer > .columns > .column > p {
        text-align: left;
    }
}

/* --------------------------------------------------
   04. ANIMATIONS
----------------------------------------------------- */

.bounce-top {
	-webkit-animation: bounce-top 0.9s 0.2s both;
	        animation: bounce-top 0.9s 0.2s both;
}

@-webkit-keyframes bounce-top {
    0% {
      -webkit-transform: translateY(-45px);
              transform: translateY(-45px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
      opacity: 1;
    }
    24% {
      opacity: 1;
    }
    40% {
      -webkit-transform: translateY(-24px);
              transform: translateY(-24px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    65% {
      -webkit-transform: translateY(-12px);
              transform: translateY(-12px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    82% {
      -webkit-transform: translateY(-6px);
              transform: translateY(-6px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    93% {
      -webkit-transform: translateY(-4px);
              transform: translateY(-4px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    25%,
    55%,
    75%,
    87% {
      -webkit-transform: translateY(0px);
              transform: translateY(0px);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
    100% {
      -webkit-transform: translateY(0px);
              transform: translateY(0px);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
      opacity: 1;
    }
  }
  @keyframes bounce-top {
    0% {
      -webkit-transform: translateY(-45px);
              transform: translateY(-45px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
      opacity: 1;
    }
    24% {
      opacity: 1;
    }
    40% {
      -webkit-transform: translateY(-24px);
              transform: translateY(-24px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    65% {
      -webkit-transform: translateY(-12px);
              transform: translateY(-12px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    82% {
      -webkit-transform: translateY(-6px);
              transform: translateY(-6px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    93% {
      -webkit-transform: translateY(-4px);
              transform: translateY(-4px);
      -webkit-animation-timing-function: ease-in;
              animation-timing-function: ease-in;
    }
    25%,
    55%,
    75%,
    87% {
      -webkit-transform: translateY(0px);
              transform: translateY(0px);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
    }
    100% {
      -webkit-transform: translateY(0px);
              transform: translateY(0px);
      -webkit-animation-timing-function: ease-out;
              animation-timing-function: ease-out;
      opacity: 1;
    }
}
