/* Responsive overrides for www.fivetechsoft.com main site.
   Loaded LAST so it only overrides at small widths. Desktop (>980px) unchanged. */

/* hamburger button: hidden on desktop */
#nav-toggle { display: none; }

/* Tablet / narrow desktop: fluid container instead of fixed 980px */
@media (max-width: 980px) {
  #main { width: auto; max-width: 980px; }
  #tail-top-right { width: 30%; }
  img { max-width: 100%; height: auto; }
}

/* Mobile */
@media (max-width: 767px) {
  #main { font-size: 1em; }

  /* Collapse the 355px image header into a simple bar */
  #header {
    background: none;
    height: auto;
    overflow: visible;
    padding: 12px;
    text-align: center;
  }
  #logo {
    position: static;
    display: inline-block;
    max-width: 70%;
    height: auto;
  }
  #slogan,
  #header-title1, #header-title2, #header-title3, #header-title4 { display: none; }
  #tail-top-right { display: none; }
  #langs { top: 12px; right: 12px; }

  /* Hamburger toggle */
  #nav-toggle {
    display: inline-block;
    width: 100%;
    margin: 10px 0 0;
    padding: 12px;
    box-sizing: border-box;
    background: #333;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
  }

  /* Nav list: stacked, toggled */
  #header ul {
    position: static;
    width: 100%;
    left: auto; top: auto;
    overflow: visible;
    display: none;
    margin: 6px 0 0;
  }
  #header ul.open { display: block; }
  #header ul li {
    float: none;
    height: auto;
    padding: 0 !important;
    border-top: none !important;
  }
  #header ul li:hover, #header ul li.active { border-top: none; padding-top: 0; }
  #header ul li a {
    display: block;
    margin: 4px 0;
    padding: 12px;
  }

  /* Content + columns stack vertically */
  #content { padding: 16px; }
  .row-1, .row-3 { padding: 20px 0; }
  .col-1, .col-2, .col-3, .col-4 {
    float: none;
    width: auto !important;
    padding: 0 0 24px 0 !important;
  }
  .wrapper, .wrapper-1 { overflow: visible; }

  /* Remove pixel-positioned decorative vertical lines */
  .line-ver-1, .line-ver-2, .line-ver-3 { background: none !important; }

  /* Info boxes: fluid */
  .info-box {
    width: auto;
    height: auto;
    background-size: cover;
    padding: 20px;
  }
  .info-box ul, .info-box span { padding-left: 0; }

  .info-box-1, .info-box-2, .info-box-3 {
    background-position: 0 0;
    margin: 0;
    padding-left: 60px;
  }

  /* Contact form fluid */
  #contact-form,
  #contact-form input,
  #contact-form textarea {
    width: 100%;
    box-sizing: border-box;
    float: none;
  }
  #contact-form a { float: none; margin: 12px 0 0; }

  /* Footer */
  #footer { height: auto; }
  #footer ul { padding: 10px 0; text-align: center; }
  #footer ul li {
    float: none;
    display: inline-block;
    background: none;
  }
}
