/*================================================
Compact header for tablet and mobile
Loaded after responsive.css on every page. Desktop (992px+) is unchanged.
=================================================*/
@media only screen and (max-width: 991px) {
  /* Top bar: one slim row, contact on the left, social icons on the right */
  .top-header-area {
    padding-top: 7px;
    padding-bottom: 7px;
  }
  .top-header-area .row {
    flex-wrap: nowrap;
    justify-content: space-between;
  }
  .top-header-area .row > [class*="col-"] {
    width: auto;
    flex: 0 1 auto;
    min-width: 0;
  }
  .top-header-area .row > .col-lg-8 {
    flex: 1 1 auto;
  }
  .top-header-information,
  .top-header-optional {
    text-align: left;
    margin-top: 0;
  }
  .top-header-optional {
    text-align: right;
    white-space: nowrap;
  }
  .top-header-information li {
    font-size: 13px;
    font-weight: 500;
    margin-right: 12px;
    padding-left: 20px;
    line-height: 1.4;
  }
  .top-header-information li i {
    top: 1px;
    font-size: 15px;
  }
  .top-header-optional li a {
    margin: 0 1px;
  }
  .top-header-optional li a i {
    height: 26px;
    width: 26px;
    line-height: 26px;
    font-size: 14px;
  }

  /* Middle header: logo is already in the menu bar, so show only a compact call / hours strip */
  .middle-header-area {
    padding-top: 8px;
    padding-bottom: 8px;
    background: #fdf6fa;
    border-bottom: 1px solid #f0dde8;
  }
  .middle-header-area .row > .col-lg-4 {
    display: none;
  }
  .middle-header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 22px;
    text-align: center;
  }
  .middle-header-content li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding-left: 0;
    font-size: 0; /* hides the "Call Today" / "Open Hour" labels; icon and value keep their own size */
    line-height: 1.3;
  }
  .middle-header-content li i {
    position: static;
    transform: none;
    display: inline-block;
    font-size: 22px;
    line-height: 1;
  }
  .middle-header-content li i::before {
    font-size: 22px;
    margin-left: 0;
  }
  .middle-header-content li span {
    display: inline;
    margin-top: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #222;
  }
}

@media only screen and (max-width: 575px) {
  /* Phones: the address is long and is shown in the footer and on the contact page */
  .top-header-information li:first-child {
    display: none;
  }
  .top-header-information li {
    margin-right: 0;
  }
  .middle-header-content {
    gap: 4px 16px;
  }
  .middle-header-content li span {
    font-size: 13.5px;
  }
  .middle-header-content li i,
  .middle-header-content li i::before {
    font-size: 19px;
  }
}

@media only screen and (max-width: 389px) {
  /* Keep call and hours on one line on narrow phones */
  .middle-header-content {
    gap: 4px 10px;
  }
  .middle-header-content li {
    gap: 5px;
  }
  .middle-header-content li span {
    font-size: 12.5px;
  }
  .middle-header-content li i,
  .middle-header-content li i::before {
    font-size: 17px;
  }
}

@media only screen and (max-width: 359px) {
  .top-header-optional li a i {
    height: 24px;
    width: 24px;
    line-height: 24px;
    font-size: 13px;
  }
  .top-header-information li {
    font-size: 12px;
  }
}
