/*
Theme Name: EIPO
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A custom WordPress theme named EIPO.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: eipo
*/

* { box-sizing: border-box;}

:root {
    --background-color: #efeeee;
    --text-color: #111011;
    --container-max-width-sm: 540px;
    --container-max-width-md: 720px;
    --container-max-width-lg: 960px;
    --container-max-width-xl: 1140px;
    --container-max-width-xxl: 1320px;
    --container-max-width-xxxl: 1440px;
}

html { font-size: 16px; }

body {
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    font-family: "Red Hat Display", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: 1rem;
  padding-left: 1rem;

  @media (min-width: 576px) {
    max-width: var(--container-max-width-sm);
  }

  @media (min-width: 768px) {
    max-width: var(--container-max-width-md);
  }

  @media (min-width: 992px) {
    max-width: var(--container-max-width-lg);
  }

  @media (min-width: 1200px) {
    max-width: var(--container-max-width-xl);
  }

  @media (min-width: 1400px) {
    max-width: var(--container-max-width-xxl);
  }

  @media (min-width: 1600px) {
    max-width: var(--container-max-width-xxxl);
  }
}

:root {
    --first-padding: 10rem 0 5rem;
}

.home {
    /*--text-color: var(--background-color); */   
    --first-padding: 5rem 0;
}

header {
    position: fixed;
    width: 100%;
    top: 0px;
    left:0px;
    padding: 3rem 0;
    color: var(--text-color);
    z-index:1000;
    background-color: var(--background-color);
    transition: all .4s ease-out;

    > .container { flex-wrap: wrap; }

    nav {
      ul {
        padding: 0;
        list-style-type: none;
        display: flex;
        gap: 2rem;
        text-align: end;
        a {
            color: inherit;
            text-decoration: none;
        }
        li.current-lang {
            display: none;
        }
      }
      @media (max-width:768px) {
        display: none;
      }
    }

    &.open-menu {
      nav {
        display: flex;
        flex-basis: 100%;
        justify-content: end;
        ul {
          flex-direction: column;
        }
      }
      #burger-btn{ 
        display: flex; 
        span {
          width: 0;
          &:first-child {
            width: 100%;
            top: 9px;
            transform: rotate(45deg);
          }
          &:last-child {
            width: 100%;
            bottom: 9px;
            transform: rotate(-45deg);
          }
        }
      }
    }

    #burger-btn{
      background-color: transparent;
      border: 0;
      width: 20px;
      aspect-ratio: 1;
      position:relative;
      display: none;
      cursor: pointer;
      span {
        position: absolute;
        background-color: black;
        width: 100%;
        height: 2px;
        left: 0px;
        top: calc(50% - 1px);
        transition: .4s ease-out;
        &:first-child { top: 0px; }
        &:last-child { top: initial; bottom: 0px; }        
      }
      @media (max-width:768px) {
        display: flex;
      }
    }
}

.home header {
    color: var(--background-color);
    background-color: transparent;
    #burger-btn span {
        background-color: var(--background-color);
    }
    &.open-menu {
      background: var(--background-color);
      color: var(--text-color);
      #burger-btn span {
        background-color: var(--text-color);
      }
    }
}

.scrolled header {
    padding: 1rem 0;
    background-color: var(--background-color);
    color: var(--text-color);
    #burger-btn span {
          background-color: var(--text-color);
    }
}

section {
    &:not(.hero){
        padding: var(--first-padding);
    }
    &.hero {
        min-height: 100dvh;
        position: relative;
        color: var(--background-color);
        .background-image {
            width: 100%;
            height: 100%;
            position: absolute;
            z-index: -1;
            background-color: #CCCCCC;
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: bottom;
                mix-blend-mode: multiply;
            }
        }
        .container {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            flex: 1;
            height: 100dvh;
            padding-top: 5rem;
            padding-bottom: 5rem;
        }
    }
}

.flex-row {
    display: flex;
    gap: 6dvw;
    &.content > * {
        flex: 1;
    }
    &.flex-basis-50 > * {
        flex-basis: calc(50% - 1rem);
    }
    @media (max-width:992px) { 
      flex-wrap: wrap; 
      &.flex-basis-50 > * {
        flex-basis: 100%;
      }
    }
}

.flex-space-between {
    justify-content: space-between;
}
.flex-align-center {
    align-items: center;
}

.flex-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    img {
        max-width: 100%;
    }
}

.column {
    column-count: 2;
    font-size: 1rem;
    column-gap: 2rem;
    p { margin-top:0; break-inside: avoid-column;}
}

.margin-top-0 { margin-top: 0;}
.margin-0 { margin: 0; }

.image-footer {
    display: flex;
    flex-direction: column;
    max-width: 25em;
    gap: .5rem;
    font-size: .875rem;
    line-height: 1.6;
    text-wrap: balance;
}

a {
    color: inherit;
    text-decoration: none;
    &:hover {
        text-decoration: underline;
    }
}

.inverse-mobile {
  > .flex-row {
    @media (max-width:992px) { flex-wrap: wrap; }
    > .flex-col {
      order: 1;
      > h3, > div {
        max-width: 30rem;
        line-height: 1.6;
      }
      @media (max-width:992px) {
        &:first-child {
          order: 2;
        }
        &:last-child {
          flex-basis: 100%;
        }
      }
    }
  }
}

.legals {
    max-width: 35em; 
    text-wrap: balance;
    p { text-align: justify; text-wrap: initial; }
    a {
        color:inherit;
    }
}

h1, h2, h3 {
    font-weight: 400;
}

h1 {
    text-wrap: balance;
    max-width: 12em;
}

h1 {
    font-size: 3rem;
    line-height: 1.2;
}

h2 {
    font-size: 3rem;
    line-height: 1.2;
}

h3 {
    font-size: 2rem;
    line-height: 1.4;
}

.portfolio {
    gap: 1px;
    button {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        font-family: inherit;
        font-size: inherit;
        text-align:inherit;
        cursor: pointer;
    }
    img {
        max-width: 100%;
        aspect-ratio: 9 / 16;
        height: auto;
        object-fit: cover;
        object-position: center;
    }
}


footer {
    min-height: calc(50dvh - 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    a {
        color: inherit;
        text-decoration: none;
        &:hover {
            text-decoration:none;
        }
    }
    nav.legal-menu ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        li {
            display: inline;
            margin: 0;
            padding: 0;
            
            &:not(:last-child)::after {
                content: ', ';
            }
        }
    }
    @media (max-width:992px) {
      .container.flex-row {
        flex-direction: column;
      }
    }
}

.portfolio-grid {
  display: grid;
  
  .portfolio-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #ddd;
    align-items: start;
    gap: 2rem;

    &.header {
      font-weight: 400;
      text-transform: uppercase;
      font-size: .65rem;
      letter-spacing: .5px;
    }
    span {
      padding: 1rem 0;
      text-wrap: balance;
    }
    a {
      text-decoration: none;
      color: inherit;
    }

    .col-date {
        text-align: right;
    }
  }
  @media screen and (max-width: 992px) {
    gap:1rem;
    .portfolio-row {
      grid-template-columns: 1fr;
      gap:0;
      padding-bottom: 1rem;

      &.header { display: none;}

      span {
        padding: 0;
      }
      .col-date {
        text-align: start;
      }
    }
  }
}

.grecaptcha-badge {
    display: none !important;
}