/* ==========================================================================
  Stylesheet for Doccle Data Collector marketing website

  @author Johan Ronsse
  @date 24-04-23
   ========================================================================== */

/* Custom properties
   ========================================================================== */

:root {
    --semantic-divider: #D9D9D9;
    --semantic-primary-bg: #E76E38;
    --semantic-body-text: #4D4D4D;
    --semantic-muted-text: #8C8C8C;
    --blue-700: #082F79;
    --blue-500: #1F51AF;
}

/* Reset
   ========================================================================== */

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

html, body {
    margin: 0;
    padding: 0;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
}

/* Base
   ========================================================================== */

body {
    font-size: 1rem;
    font-family: "proxima-nova", Arial, sans-serif;
    background: #FFF;
    line-height: 1.5;
    color: var(--semantic-body-text);
}


h1, h2, h3 {
    font-family: "proxima-soft", "proxima-nova", Arial, sans-serif;
    font-weight: 700;
    color: var(--blue-700);
    line-height: 1.15;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

a {
    color: var(--blue-500);
}

.content ul {
  list-style: disc;
  padding: 0 0 0 1rem;
}

.content ol {
  list-style: decimal;
  padding: 0 0 0 2rem;
}

/* Background on hero part
   ========================================================================== */

#background-wrapper {
    background: var(--semantic-primary-bg) url(./images/scribble-opaque.png) no-repeat center center;
    background-size: cover;
}

@media (min-width: 1140px) {

    #background-wrapper {
        background-size: auto;
        background-position: 130% center;
    }

}

@media (min-width: 2560px) {

    #background-wrapper {
        background-position: 100% center;
    }

}

@media (min-width: 3840px) {

    #background-wrapper {
        background-position: 70% center;
    }

}

/* General max width across horizontal sections
   ========================================================================== */

#header > .inner,
#hero .inner,
#footer .inner,
#main .inner {
    max-width: 1140px;
    margin: 0 auto;
}

/* Specific max width for readability 
   ========================================================================== */

#main .inner.text-max-width {
  max-width: 740px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Header
   ========================================================================== */

#header {
    color: #FFF;
    padding: 1rem;
}


@media (max-width: 320px) {
    #header h1 {
        transform: scale(0.75);
    }
}

#header h1 a {
    color: #FFF;
    text-decoration: none;
    font-size: 2rem;
    display: inline-flex;
}

@media (min-width: 900px) {
    #header h1 a {
        width: 145px;
        font-size: 2.4rem;
        position: relative;
        bottom: .3rem;
    }
}

#header h1 span {
    margin: 0;
    gap: 12px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

#header img {
    display: block;
    width: 110px;
    height: auto;
}

@media (min-width: 900px) {
    #header img {
        width: 145px;
    }
}

/* Hero
   ========================================================================== */

#hero {
    color: #FFF;
    padding: 2rem 1.5rem 6rem;
}

#hero-content h2 {
    font-size: clamp(1rem, 2.5rem, 2.5rem);
    margin: 0;
}

#hero-content {
    font-size: 1.25rem;
    color: #FFEFDC;
}

#hero > .inner {
    max-width: 1140px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    #hero .inner {
        display: flex;
        flex-direction: row-reverse;
        align-items: center;
        gap: 2rem;
    }
}

#hero h2 {
    color: #FFF;
}

/* Image composition
   ========================================================================== */

#image-composition {
    flex: 0 0 auto;
    margin: 0 auto 5rem;
    position: relative;
    max-width: 80%;
}

@media (min-width: 900px) {
    #image-composition {
        width: auto;
        margin: 0;
    }
}

#man-smiling #app-icon {
    position: absolute;
    bottom: -15%;
    left: -15%;
    max-width: 130px;
    max-width: clamp(60px, 100px, 130px);
}

#man-smiling {
    margin: 0 auto;
    position: relative;
    max-width: clamp(200px, 80%, 328px);
}

#man-smiling img {
    border-radius: 0 10% 0 10%;
    height: auto;
    display: block;
}

/* Stores
   ========================================================================== */

#stores {
    display: flex;
    gap: 1rem;
}

#stores img {
    display: block;
}

#stores a:active img {
    transform: scale(0.96);
}

/* Main
   ========================================================================== */

#main h2 {
    margin: 0;
}

#main {
    margin: 3rem 0;
}

/* Steps
   ========================================================================== */

#steps {
    padding: 1.5rem;
}

@media (min-width: 900px) {
    #steps ul {
        display: flex;
    }
}

#steps img {
    width: 75%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

#steps h3 {
    margin: 0;
    padding-bottom: 0;
    font-weight: 500;
}

#steps p {
    margin-top: .5rem;
}

#steps li {
    flex: 0 0 25%;
}

#steps li:nth-child(2) {
    margin-left: 4%;
}

/* Which data?
   ========================================================================== */

#which-data {
    padding: 1.5rem;
}

#which-data h2 {
    margin-bottom: .5rem;
}

#which-data p.intro {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {

    #which-data ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

}

#which-data li {
    display: flex;
    gap: 1rem;
    flex: 0 0 calc(33% - 1rem);
    margin: .5rem 0;
}

@media (min-width: 900px) {

    #which-data li {
      margin: .5rem;
    }

}

#which-data h3 {
    margin: 0 0 0.75rem;
    font-weight: 500;
}

#which-data p {
    margin: 0 0 0.75rem;
}

/* Image holder
   ========================================================================== */

.image-holder {
  width: 64px;
  height: 64px;
  border: 1px solid #D9D9D9;
  border-radius: 100%;
  display: grid;
  flex-shrink: 0;
}

@media (min-width: 900px) {

  .image-holder {
    width: 80px;
    height: 80px;
  }

}

.image-holder img {
  margin: auto;
  max-width: 66%;
  max-height: 66%;
}


/* Advantages
   ========================================================================== */

#advantages {
    padding: 1.5rem;
}

.advantages-box {
    border-radius: 0 34px 0 34px;
    background: #FFE6DA;
    padding: 1.5rem 1rem;
    max-width: 700px;
    margin: 0 auto;

}

#advantages ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

@media (min-width: 600px) {
    #advantages ul {
        flex-direction: row;
    }
}

#advantages li {
    background: url('./images/check-orange.svg') no-repeat;
    padding-left: 32px;
    line-height: 24px;
    background-size: 24px 24px;
}

/* Footer
   ========================================================================== */

#footer {
    border-top: 1px solid var(--semantic-divider);
    padding: 2rem 1rem;
    margin: 0 auto 1.5rem;
    color: var(--semantic-muted-text);
}

#footer ul {
    display: flex;
    gap: 16px;
    justify-content: center;
}

#footer ul a {
    color: var(--semantic-muted-text);
}
