/* Media queries for responsive design */

/* Tablet landscape and smaller */
@media only screen and (max-width: 1023px) {
  body {
    font-size: 18px;
  }

  section {
    width: 90%;
    padding: 60px 0;
  }

  .content {
    width: 90%;
  }

  .header {
    width: 90%;
  }

  .row {
    max-width: 100%;
    padding: 0 2%;
  }
}

/* Mobile landscape and smaller */
@media only screen and (max-width: 767px) {
  body {
    font-size: 16px;
  }

  section {
    width: 95%;
    padding: 40px 0;
  }

  .content {
    width: 95%;
  }

  .header {
    width: 100%;
    padding: 10px;
    height: auto;
  }

  .header > div {
    width: 95% !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .header > div > div[style*="float: left"] {
    float: none !important;
    order: 1;
  }

  .header > div > .header-socials {
    order: 2;
  }

  .header > div > .header-menu {
    order: 3;
  }

  h1 {
    font-size: 180%;
  }

  h2 {
    font-size: 150%;
  }

  .long-copy {
    width: 100%;
    margin-left: 0;
    padding: 0 5%;
  }

  /* Make columns stack on mobile */
  .col {
    width: 100%;
    margin: 0 0 4% 0;
  }

  /* Projects - full width on mobile */
  .project .preview-image {
    text-align: center;
    margin-bottom: 20px;
  }

  .project img {
    width: 100%;
    height: auto;
    max-width: 400px;
  }

  .project .col {
    width: 100%;
  }

  /* Header adjustments */
  .header img {
      /* height: 60px; */
    display: block;
    margin: 0 auto;
    padding: 10px 0;
  }

  .header-socials {
    width: 100%;
    float: none;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header-socials ion-icon {
    font-size: 28px;
    padding: 5px;
  }

  .header-socials .lang-button {
    float: none;
    padding: 5px 8px;
    font-size: 90%;
  }

  /* Mobile menu */
  .header-menu {
    float: none;
    clear: both;
    width: 100%;
    height: auto;
    padding: 10px 0;
    text-align: center;
  }

  .header-menu ul {
    display: none;
    padding: 0;
    margin: 0;
    background-color: #387071;
  }

  .header-menu.nav-open ul {
    display: block;
  }

  .header-menu li {
    display: block;
    padding: 10px 0;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .header-menu li:last-child {
    border-bottom: none;
  }

  .header-menu A {
    font-size: 110%;
  }

  .mobile-nav-icon {
    display: block !important;
  }

  /* Contact page */
  .contact-form {
    width: 90%;
  }

  .city-feature {
    padding-left: 10%;
  }

  .box img {
    width: 80%;
  }

  .portrait {
    max-width: 200px;
  }

  /* Slider / bx-wrapper fix for mobile */
  .slider {
    width: 100%;
    overflow: hidden;
  }

  .bx-wrapper {
    max-width: 100% !important;
    margin: 0 auto;
    background: #387071;
  }

  .bx-wrapper img {
    width: 100%;
    height: auto;
  }
}

/* Small mobile portrait */
@media only screen and (max-width: 480px) {
  section {
    padding: 30px 0;
  }

  .project img {
    max-width: 100%;
  }

  .header-socials ion-icon {
    font-size: 24px;
    padding: 3px;
  }

  .header-socials .lang-button {
    padding: 3px 5px;
    font-size: 85%;
  }

  .city-feature {
    padding-left: 5%;
  }
}

/* Tablet and larger - always show menu, hide hamburger */
@media only screen and (min-width: 768px) {
  .mobile-nav-icon {
    display: none !important;
  }

  .header-menu ul {
    display: inline-block !important;
  }
}

/* Tablet portrait and smaller - show hamburger, collapsible menu */
@media only screen and (max-width: 767px) {
  /* Hamburger menu styles */
  .mobile-nav-icon {
    display: block !important;
    cursor: pointer;
    color: #e6dab2;
    font-size: 32px;
    padding: 10px;
  }

  .mobile-nav-icon ion-icon {
    font-size: 32px;
  }
}
