/*

DIGITAL TREND

*/
  
  /* Bangers (SIL Open Font License), hosted here so no visitor data goes to Google */
  @font-face {
      font-family: 'Bangers';
      src: url('../fonts/Bangers-latin.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
      unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }

  @font-face {
      font-family: 'Bangers';
      src: url('../fonts/Bangers-latin-ext.woff2') format('woff2');
      font-weight: 400;
      font-style: normal;
      font-display: swap;
      unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }

  @font-face {
      font-family: 'Plain-Regular';
      src: url('../fonts/Plain-Regular.woff2') format('woff2'),
          url('../fonts/Plain-Regular.woff') format('woff');
      font-weight: normal;
      font-style: normal;
  }

  @font-face {
      font-family: 'Plain-Light';
      src: url('../fonts/Plain-Light.woff2') format('woff2'),
          url('../fonts/Plain-Light.woff') format('woff');
      font-weight: bold;
      font-style: normal;
  }

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

  :root {
    --primary-color:        #057a8d;
    --secondary-color:      #f1c111;
    --white-color:          #ffffff;
    --dark-color:           #171819;
    --project-bg:           #f0f8ff;
    --menu-bg:              #0c8195;

    --title-color:          #15141a;
    --gray-color:           #909090;
    --link-color:           #404040;
    --p-color:              #666262;

    --base-font-family:     'Plain-Light', sans-serif;
    --title-font-family:    'Plain-Regular', sans-serif;
    --font-bold-family:     'Plain-Bold', sans-serif;
    --font-weight-bold:     bold;

    --h1-font-size:         42px;
    --h2-font-size:         32px;
    --h3-font-size:         24px;
    --p-font-size:          18px;
    --base-font-size:       16px;
    --menu-font-size:       20px;
    --display-font-family:  'Bangers', 'Plain-Bold', sans-serif;
    --menu-font-family:     var(--display-font-family);

    --border-radius-large:  100px;
    --border-radius-small:  5px;
  }

  body {
    background: var(--white-color);
    font-family: var(--base-font-family);
  }


  /*---------------------------------------
     TYPOGRAPHY              
  -----------------------------------------*/

  h1,h2,h3,h4,h5,h6 {
    font-family: var(--title-font-family);
    line-height: inherit;
  }

  h1 {
    color: var(--title-color);
    font-size: var(--h1-font-size);
  }

  h2 {
    font-size: var(--h2-font-size);
    font-weight: 100;
  }

  h3 {
    font-size: var(--h3-font-size);
    font-weight: 100;
    margin-bottom: 0;
  }

  h4 {
    color: var(--gray-color);
    font-family: var(--base-font-family);
    font-size: var(--p-font-size);
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  p {
    color: var(--p-color);
    font-size: var(--p-font-size);
    line-height: 1.5em;
  }

  b, 
  strong {
    letter-spacing: 0;
    color: var(--secondary-color);
  }


  /*  BLOCKQUOTES */
  .quote {
    position: relative;
    margin: 0;
  }

  .quote::after {
    content: "“";
    position: absolute;
    bottom: -80px;
    left: 20px;
    font-family: times;
    color: var(--gray-color);
    font-weight: var(--font-weight-bold);
    font-size: 14em;
    line-height: 0;
    opacity: 0.10;
  }

  blockquote {
    border-left: 5px solid rgba(0,0,0,0.05);
    display: block;
    margin: 42px 0;
    padding: 14px 22px;
    color: rgba(0,0,0,0.5);
  }


  /* BUTTON */
  .custom-btn {
    background: transparent;
    border: 2px solid var(--dark-color);
    border-radius: var(--border-radius-large);
    padding: 12px 26px 14px 26px;
    color: var(--dark-color);
    font-family: var(--title-font-family);
    font-size: var(--p-font-size);
    white-space: nowrap;
  }

  .custom-btn.btn-bg {
    background: var(--white-color);
    color: var(--primary-color);
    border-color: transparent;
	transition: all .3s ease;
  }
  
  .custom-btn:hover,
  .custom-btn:focus {
    background: var(--dark-color);
    color: var(--white-color);
    border-color: transparent;
  }


  /*---------------------------------------
     GENERAL               
  -----------------------------------------*/

  * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
  }

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

  a {
    color: var(--link-color);
    font-weight: normal;
    text-decoration: none;
  }

  a:hover, 
  a:active, 
  a:focus {
    color: var(--secondary-color);
    outline: none;
    text-decoration: none;
  }

  ::selection {
    background: var(--secondary-color);
    color: var(--white-color);
  }

  .section-padding {
    padding: 8em 0;
  }
  .section-padding-half {
    padding: 4em 0;
  }

  .google-map iframe {
    display: block;
    width: 100%;
  }



  /*---------------------------------------
    MENU             
  -----------------------------------------*/

  .navbar {
    background: var(--menu-bg);
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    padding: 1.5em;
  }

  .navbar-brand {
    color: var(--white-color);
    font-size: var(--h2-font-size);
  }

  .navbar-brand img {
    max-width: 60vw;
    height: auto;
  }

  .nav-link {
    color: var(--white-color);
    font-family: var(--menu-font-family);
    font-size: var(--menu-font-size);
    line-height: 1.2;
    letter-spacing: .08em;
    margin: 0 1.6em;
    padding: 0.6em;
  }

  .nav-link.active,
  .nav-link:hover {
    color: var(--secondary-color);
  }

  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
  }

  .navbar-expand-lg .navbar-nav .nav-link.contact {
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius-large);
    color: var(--secondary-color);
    padding: 0.4em 1.4em 0.25em;
  }

  .navbar-expand-lg .navbar-nav .nav-link.contact:hover,
  .navbar-expand-lg .navbar-nav .nav-link.contact.active {
    background: var(--secondary-color);
    color: var(--white-color);
  }

  /* language flags: next to the menu button on phones, after the menu on desktop */
  .lang-switch {
    display: flex;
    gap: 8px;
    margin: 0 16px 0 auto;
    padding: 0;
    list-style: none;
  }

  .lang-switch a {
    display: block;
    width: 32px;
    height: 32px;
    border: 3px solid transparent;
    border-radius: 50%;
    opacity: .6;
    transition: opacity .2s, transform .2s, border-color .2s;
  }

  .lang-switch a:hover,
  .lang-switch a:focus-visible,
  .lang-switch a[aria-current="true"] {
    opacity: 1;
  }

  .lang-switch a:hover,
  .lang-switch a:focus-visible {
    transform: scale(1.1);
  }

  .lang-switch a[aria-current="true"] {
    border-color: var(--secondary-color);
  }

  .lang-switch img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
  }

  @media (min-width: 992px) {
    .lang-switch {
      order: 3;
      margin: 0 0 0 8px;
    }
  }

  /* phones: logo, flags and menu button on one line */
  @media (max-width: 991px) {
    .navbar-brand {
      margin-right: 8px;
    }

    .navbar-brand img {
      max-width: 48vw;
    }

    .lang-switch {
      gap: 6px;
      margin-right: 12px;
    }

    .lang-switch a {
      width: 30px;
      height: 30px;
    }
  }

  .navbar-nav .navbar-toggler-icon {
    background: none;
  }

  .navbar-toggler {
    border: 0;
    padding: 0;
    cursor: pointer;
    margin: 0 10px 0 0;
    width: 30px;
    height: 35px;
    outline: none;
  }

  .navbar-toggler:focus {
    outline: none;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background: transparent;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before,
  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transition: top 300ms 50ms ease, -webkit-transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease;
    transition: top 300ms 50ms ease, transform 300ms 350ms ease, -webkit-transform 300ms 350ms ease;
    top: 0;
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
    transform: rotate(45deg);
  }

  .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
    transform: rotate(-45deg);
  }

  .navbar-toggler .navbar-toggler-icon {
    background: var(--white-color);
    transition: background 10ms 300ms ease;
    display: block;
    width: 30px;
    height: 2px;
    position: relative;
  }

  .navbar-toggler .navbar-toggler-icon::before,
  .navbar-toggler .navbar-toggler-icon::after {
    transition: top 300ms 350ms ease, -webkit-transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease;
    transition: top 300ms 350ms ease, transform 300ms 50ms ease, -webkit-transform 300ms 50ms ease;
    position: absolute;
    right: 0;
    left: 0;
    background: var(--white-color);
    width: 30px;
    height: 2px;
    content: '';
  }

  .navbar-toggler .navbar-toggler-icon::before {
    top: -8px;
  }

  .navbar-toggler .navbar-toggler-icon::after {
    top: 8px;
  }



  /*---------------------------------------
     HERO              
  -----------------------------------------*/

  .hero {
    position: relative;
    padding: 5em 0;
    overflow: hidden;
  }

  .hero-bg {
    /* 1px blend instead of a hard stop, so the diagonal edge is anti-aliased */
    background: linear-gradient(170deg, var(--primary-color) 64%, var(--white-color) calc(64% + 1px));
  }

  .hero-image {
    position: relative;
    top: 2em;
  }



  /*---------------------------------------
     PROJECT              
  -----------------------------------------*/

  .project {
    background: var(--project-bg);
  }

  .project-wrapper {
    position: relative;
  }

  .project-wrapper img {
    border-radius: var(--border-radius-small);
  }

  .project-info {
    background: var(--white-color);
    border-radius: var(--border-radius-small);
    position: absolute;
    bottom: 32px;
    right: 32px;
    left: 32px;
    width: 90%;
    padding: 32px;
  }

  .project-info small {
    font-family: Plain-Bold;
    color: var(--gray-color);
    position: relative;
    top: 2px;
  }

  .project-info a {
    color: var(--primary-color);
  }

  .project-info .project-icon {
    background: var(--primary-color);
  }

  .project-icon {
    position: absolute;
    right: 30px;
    top: 40px;
    background: var(--dark-color);
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    font-size: var(--h2-font-size);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    padding-left: 5px;
  }

  .owl-theme .owl-dots .owl-dot {
    outline: none;
  }

  .owl-theme .owl-dots .owl-dot span {
    background: var(--gray-color);
    width: 50px;
    height: 3px;
    margin:  35px 5px;
  }

  .owl-theme .owl-dots .owl-dot.active span, 
  .owl-theme .owl-dots .owl-dot:hover span {
    background: var(--secondary-color);
  }

  .list-detail {
    margin-left: 1em;
    padding-left: 1em;
    position: relative;
  }

  .list-detail li {
    display: block;
    list-style: none;
    margin: 0.6em 0 0 0.8em;
  }

  .list-detail li::before {
    content: "";
    width: 0;
    height: 0;
    border-width: 0 16px 16px 0;
    border-color: transparent var(--secondary-color) transparent transparent;
    border-style: solid;
    position: absolute;
    left: 0;
  }

  .list-detail span {
    position: relative;
    bottom: 5px;
  }

  .client-info img {
    width: 100px;
    margin-right: 1em;
  }



  /*---------------------------------------
      ABOUT            
  -----------------------------------------*/

  .about {
    position: relative;
    overflow: hidden;
  }

  .about-image img {
    display: block;
    margin: 0 auto;
  }



  /*---------------------------------------
      BLOG            
  -----------------------------------------*/

  .blog-header {
    border-radius: var(--border-radius-small);
    position: relative;
    overflow: hidden;
  }

  .blog-header img {
    border-radius: var(--border-radius-small);
    display: block;
  }

  .blog-header-info {
    background: linear-gradient(transparent,rgba(0,0,0,0.95));
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding: 2em;
  }

  .blog-header-info h3 {
    max-width: 80%;
  }

  .blog-header-info a {
    color: var(--white-color);
  }

  .blog-header-info a:hover {
    color: var(--secondary-color);
  }

  .blog-sidebar img {
    border-radius: var(--border-radius-small);
    width: 159px;
    margin-right: 22px;
  }

  .blog-sidebar h3 {
    font-size: 18px;
  }



  /*---------------------------------------
     CONTACT              
  -----------------------------------------*/

  .newsletter-form .form-control,
  .contact-form .form-control {
    box-shadow: none;
    background: var(--project-bg);
    border: 0;
    padding: 1.7em 1.3em;
    margin: 14px 0;
  }

  .newsletter-form button,
  .contact-form #submit-button {
    background: var(--primary-color);
    border-radius: var(--border-radius-large);
    color: var(--white-color);
    cursor: pointer;
    font-size: var(--p-font-size);
    line-height: 0px;
    padding: 1.5em 1.3em;
  }

  .newsletter-form button {
    background: var(--secondary-color);
  }



  /*---------------------------------------
     FOOTER              
  -----------------------------------------*/

  .site-footer {
    position: relative;
    background:
      linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 40px,
      linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px) 0 0 / 40px 40px,
      #0b1220;
    border-top: 5px solid var(--secondary-color);
    box-shadow: inset 0 5px 0 #0b1220, inset 0 10px 0 #e63946;
    padding: 7em 0 6em 0;
  }

  .site-footer h1 {
    font-family: var(--display-font-family);
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1;
    letter-spacing: .03em;
    text-shadow: 4px 4px 0 var(--primary-color);
    transform: rotate(-3deg);
  }

  .site-footer h1 strong {
    color: var(--secondary-color);
    text-shadow: 4px 4px 0 #e63946;
  }

  .site-footer h4 {
    font-family: var(--display-font-family);
    font-size: 26px;
    letter-spacing: .08em;
    color: var(--secondary-color);
  }

  .site-footer p {
    color: rgba(255,255,255,.75);
  }

  .site-footer a {
    color: rgba(255,255,255,.75);
  }

  .site-footer a:hover,
  .footer-icon {
    color: var(--secondary-color);
  }

  .copyright-text {
    font-family: var(--display-font-family);
    font-size: 18px;
    letter-spacing: .1em;
  }

  .footer-link li {
    display: inline-block;
    list-style: none;
    margin: 0 10px;
  }

  .footer-link a {
    font-family: var(--display-font-family);
    font-size: 22px;
    letter-spacing: .08em;
    color: var(--white-color);
  }

  .footer-link a:hover,
  .footer-link a:focus {
    color: var(--secondary-color);
    text-decoration: none;
  }

  .copyright-text,
  .footer-link,
  .site-footer .social-icon {
    margin-top: 6em;
  }

  .copyright-text {
    margin-top: 5.3em;
  }



  /*---------------------------------------
     SOCIAL ICON              
  -----------------------------------------*/

  .social-icon {
    position: relative;
    padding: 0;
    margin: 4em 0 0 0;
  }

  .social-icon li {
    display: inline-block;
    list-style: none;
  }

  .social-icon li a {
    text-decoration: none;
    display: inline-block;
    font-size: var(--base-font-size);
    margin: 10px;
    text-align: center;
  }

  .site-footer .social-icon li a {
    width: 44px;
    height: 44px;
    margin: 6px;
    font-size: 20px;
    line-height: 38px;
    color: #0b1220;
    background: var(--secondary-color);
    border: 3px solid var(--white-color);
    border-radius: 12px;
    box-shadow: 4px 4px 0 #e63946;
    transition: transform .15s, box-shadow .15s;
  }

  .site-footer .social-icon li a:hover,
  .site-footer .social-icon li a:focus {
    color: #0b1220;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #e63946;
  }



  /*---------------------------------------
     RESPONSIVE STYLES              
  -----------------------------------------*/

  @media screen and (min-width: 1200px) {

    .about-info h2 {
      max-width: 70%;
    }
  }

  @media screen and (min-width: 991px) {

    .project h2 {
      max-width: 32%;
      margin: 0 auto;
    }
  }

  @media screen and (max-width: 991px) {

    .hero {
      padding-top: 14em;
    }

    .hero-text {
      bottom: 2em;
    }

    .navbar {
      padding: 1em;
    }

    .navbar-collapse {
      text-align: center;
      padding: 2.5em 0;
    }

    .nav-link {
      display: inline-block;
    }

    .navbar-expand-lg .navbar-nav .nav-link.contact {
      margin: 1em 0;
    }

    .copyright-text, 
    .footer-link, 
    .site-footer .social-icon {
      margin-top: 3em;
      padding: 0;
      text-align: left;
    }
  }

  @media screen and (max-width: 767px) {

    h1 {
      font-size: 36px;
    }

    h2 {
      font-size: 28px;
    }

    h3 {
      font-size: 22px;
    }

    .project-info {
      right: 0;
      left: 0;
      margin: 0 auto;
    }

    .footer-link, 
    .site-footer .social-icon {
      margin-top: 1em;
    }

    .copyright-text {
      margin: 2.5em 0 1em 0;
    }

    .footer-link li {
      margin-left: 0;
    }
  }




/*---------------------------------------
     APP PROJECT PAGES
  -----------------------------------------*/

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

  /* keep "iOS" readable; template h4 is uppercase */
  .app-header h4 {
    text-transform: none;
    letter-spacing: 0.5px;
  }

  .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 27px;
    box-shadow: 0 10px 30px rgba(23, 24, 25, 0.15);
    margin-bottom: 1.5em;
  }

  .app-tagline {
    font-size: 1.25em;
    margin: 1em auto 2em auto;
    max-width: 640px;
  }

  .app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
  }

  .app-store-badge:hover,
  .app-store-badge:focus {
    transform: translateY(-2px);
  }

  .app-store-badge img {
    height: 54px;
    width: auto;
  }

  .app-coming-soon {
    display: inline-block;
    border: 2px solid var(--dark-color);
    border-radius: var(--border-radius-large);
    color: var(--dark-color);
    padding: 0.7em 1.6em;
  }

  .app-hero-image img {
    border-radius: var(--border-radius-small);
  }

  .app-screens {
    background: var(--project-bg);
  }

  .screens {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 1em 0 2em 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .screens img {
    flex: 0 0 auto;
    height: 520px;
    width: auto;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(23, 24, 25, 0.12);
    scroll-snap-align: start;
  }

  .screens-device {
    margin: 0.5em 0 0;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
  }

  .app-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5em;
    margin: 0;
  }

  .app-facts dt {
    color: var(--p-color);
    font-weight: normal;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .app-facts dd {
    color: var(--dark-color);
    font-size: 1.1em;
    margin: 0.3em 0 0 0;
  }

  .app-cta {
    text-align: center;
  }

  .app-cta .app-links {
    margin-top: 2em;
  }

  .app-cta .app-links a {
    margin: 0 1em;
  }

  @media screen and (max-width: 767px) {
    .screens img {
      height: 400px;
    }

    .app-icon {
      width: 96px;
      height: 96px;
      border-radius: 22px;
    }
  }

/* COOKIE CONSENT (js/consent.js): an arcade "save" dialog */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1080;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.consent[hidden] {
  display: none;
}

.consent__box {
  pointer-events: auto;
  width: 100%;
  max-width: 640px;
  padding: 22px 26px 20px;
  color: var(--white-color);
  background: #0b1220;
  border: 3px solid var(--secondary-color);
  border-radius: 18px;
  box-shadow: 0 0 0 4px #0b1220, 8px 8px 0 4px #e63946;
  animation: consent-in .35s ease-out;
}

.consent__title {
  margin: 0 0 6px;
  font-family: var(--display-font-family);
  font-size: 30px;
  letter-spacing: .05em;
  line-height: 1.1;
  color: var(--secondary-color);
}

.consent__body {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,.88);
}

.consent__body a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.consent__buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

/* both choices equally easy to pick */
.consent__btn {
  min-width: 130px;
  padding: 8px 20px 4px;
  font-family: var(--display-font-family);
  font-size: 22px;
  letter-spacing: .06em;
  color: #0b1220;
  background: var(--secondary-color);
  border: 3px solid var(--white-color);
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease;
}

.consent__btn--reject {
  color: var(--white-color);
  background: #e63946;
}

.consent__btn:hover,
.consent__btn:focus-visible {
  transform: translateY(-2px);
}

.consent__btn:focus-visible {
  outline: 3px solid var(--white-color);
  outline-offset: 3px;
}

@keyframes consent-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 575px) {
  .consent__buttons {
    flex-direction: column-reverse;
  }

  .consent__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .consent__box {
    animation: none;
  }
}
