/* ==========================================================================
   Responsive styles
   ========================================================================== */

/* Wide Screens */

@media (min-width: 1920px) and (max-width: 3840px) {
  .container {
    max-width: 1920px;
    margin: 0px auto;
  }
}

/* Desktop */
@media (max-width: 1600px) {
  h1 {
    font-size: 54px;
    line-height: 100%;
  }

  h2 {
    font-size: 48px;
    line-height: 100%;
  }

  h2 {
    font-size: 42px;
    line-height: 100%;
  }

  h4 {
    font-size: 32px;
    line-height: 100%;
  }

  h5 {
    font-size: 20px;
    line-height: 130%;
  }

  p,
  a {
    font-size: 15px;
  }

  .paragraph--large {
    font-size: 18px;
    line-height: 120%;
  }

  .text-large {
    font-size: 22px;
    line-height: 28px;
  }

  .ppc-hero .icon-grid {
    width: 90%;
  }

  .btn {
    padding: 15px 20px 15px 20px;
  }

  .google-review {
    padding: 20px;
    min-height: 250px;
  }

  .transilvania .headline,
  .check-item {
    width: 90%;
    box-sizing: border-box;
  }

  .ppc-quick-call .container-block {
    min-height: 300px;
  }

  .ppc-quick-call .column-half:first-child {
    padding: 2% 2%;
  }

  .accordion h5 {
    font-size: 15px;
  }
}

/* Desktop Small */

@media (max-width: 1400px) {
  .hero-label {
    font-size: 16px;
  }

  h1 {
    font-size: 42px;
    line-height: 100%;
  }

  h2 {
    font-size: 36px;
    line-height: 100%;
  }

  h3 {
    font-size: 32px;
    line-height: 100%;
  }

  h4 {
    font-size: 28px;
    line-height: 100%;
  }

  h5 {
    font-size: 20px;
    line-height: 130%;
  }

  .ppc-hero .icon-grid {
    width: 100%;
  }

  .ppc-hero .icon-grid p {
    font-size: 14px;
  }

  .btn {
    font-size: 13px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container {
    width: 95%;
  }

  .hero-label {
    margin-top: 15%;
  }

  h1 {
    font-size: 42px;
    line-height: 120%;
  }

  h2 {
    font-size: 36px;
    line-height: 100%;
  }

  h3 {
    font-size: 32px;
    line-height: 100%;
  }

  h4 {
    font-size: 28px;
    line-height: 100%;
  }

  h5 {
    font-size: 20px;
    line-height: 130%;
  }

  .dark-overlay {
    padding: 3% !important;
  }

  .dark-overlay .btn-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .dark-overlay .btn-container > .btn {
    margin-bottom: 10px;
  }

  .dark-overlay .btn-container .btn {
    min-width: 250px;
  }
}

/* Tablet Portrait */

@media (max-width: 980px) {
  .hide-mobile {
    display: none;
  }

  .mobile-column {
    flex-direction: column !important;
    align-items: center;
  }

  .mobile-column-reverse {
    flex-direction: column-reverse !important;
    align-items: center;
  }

  .column-half,
  .column-half.no-whitespace {
    width: 100%;
  }
}

/* Mobile Landscape */

@media (max-width: 768px), (orientation: landscape) and (max-height: 500px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }

  .mobile-f-dir-col {
    flex-direction: column;
  }

  .mobile-f-dir-col-rev {
    flex-direction: column-reverse;
  }

  .menu-container {
    width: 0px;
  }

  .menu-start {
    width: 100%;
  }

  .logo img {
    height: inherit;
    width: 240px;
  }

  #nav li:nth-child(3) {
    margin-right: auto;
  }

  .mobile-f-dir-col {
    flex-direction: column;
    align-items: center;
  }

  #footer {
    height: inherit;
    padding-bottom: 0px;
  }

  header .btn {
    display: none;
  }

  /* Hamburger Menu */

  .nav {
    justify-content: normal;
    padding: 0;
    flex-direction: column;
  }

  .nav::before {
    content: "";
    background: url("/wp-content/themes/mogovolt/assets/images/blue-orange-emblem.png") center / contain no-repeat;
    position: relative;
    width: 72px;
    height: 72px;
    display: block;
    margin-inline: auto;
    margin-bottom: 5%;
    margin-top: 10%;
  }

  header .nav::after {
    content: url("/wp-content/themes/mogovolt/assets/images/logo-outline.svg");
    position: absolute;
    width: 100%;
    bottom: -20%;
    display: block;
    left: -30%;
  }

  #nav-icon {
    display: block;
  }

  header .nav {
    position: fixed;
    right: -100vw;
    width: 100%;
    height: 100%;
    top: 0;
    background: var(--color-dark);
    transition: right 0.4s;
    padding-top: 0;
    z-index: 9;
    overflow: hidden;
  }

  header .nav.open {
    right: 0;
  }

  header .nav li {
    display: block;
    margin: 0px auto;
    text-align: center;
    width: 70%;
    padding: 5px 0;
    z-index: 999;
  }

  header .nav li a {
    display: block;
    padding: 15px;
    font-size: 20px;
    z-index: 9999;
    color: var(--color-white);
  }

  .cta-bar {
    display: none;
  }

  .btn-container {
    flex-direction: column;
  }

  .btn-container .btn:first-child {
    margin-right: 0px;
    margin-bottom: 10px;
  }

  .footer .f-grid-one-forth {
    grid-template-columns: 100%;
  }
}

/* Mobile Large */

@media (max-width: 642px) {
  html {
    margin-top: 0px !important;
  }

  .section-block {
    padding: 5vh 0;
  }

  h1 {
    font-size: 44px;
    line-height: 120%;
  }

  h2 {
    font-size: 32px;
    line-height: 120%;
  }

  h3 {
    font-size: 28px;
    line-height: 120%;
  }

  h5 {
    font-size: 22px;
    line-height: 120%;
    margin: 0px;
  }

  .paragraph--large {
    font-size: 16px;
    line-height: 120%;
    margin: 5px 0px;
  }

  .hero-label {
    margin-bottom: 5px;
  }

  .icon-grid--3 {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 20px;
  }

  .image-wrapper {
    margin-top: 50px;
  }

  .accordion h5 {
    line-height: 140%;
  }

  .hide-desktop {
    display: flex;
  }

  .gallery-block {
    grid-template-columns: 49% 49%;
    gap: 2px;
  }

  .form-row {
    flex-direction: column;
  }

  .main-hero .paragraph {
    line-height: 140%;
  }

  .main-hero .banner-block {
    background-repeat: no-repeat;
    background-position: bottom right;
  }

  .ups-container .container-block {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
    margin-bottom: 28px;
    padding: 8px 0 16px;
  }

  .ups-container .column-fifth {
    flex: 0 0 280px;
    width: 280px;
    margin: 0;
    padding: 0 16px 0 0;
    scroll-snap-align: start;
  }

  .ups-container .column-fifth figure {
    flex: 0 0 44px;
    width: 44px;
    margin: 0 10px 0 0;
  }

  .ups-container .column-fifth figure img {
    width: 44px;
    height: 44px;
    object-fit: contain;
  }

  .ups-container .column-fifth .column-full {
    min-width: 0;
    flex: 1;
  }

  .ups-container .container-block:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
  }

  .ups-container {
    flex-direction: column;
    align-items: center;
  }


  .column-fifth {
    width: 100%;
  }

  .solution-card {
    width: 100%;
    margin-bottom: 25px;
  }

  .why-mogovolt .banner-block {
    background-size: 165%;
    background-repeat: no-repeat;
    background-position: bottom left;
  }

  .how-it .banner-block {
    background-size: 165%;
    background-repeat: no-repeat;
    background-position: bottom right;
  }

  .hvac-estimator {
    flex-direction: column;
  }

  .hvac-estimator > div {
    width: 100%;
  }

  .estimate-results {
    text-align: center;
  }

  .hvac-estimator .btn {
    width: 100%;
  }

  .calculator .banner-block {
    background-size: 165%;
    background-repeat: no-repeat;
    background-position: bottom left;
  }

  .calculator .no-whitespace {
    padding-bottom: 48vh;
  }

  .ready-cta {
    background-position: bottom center;
    background-size: 160%;
  }

  .ready-content {
    padding-bottom: 10vh;
  }

  .mobile-right-flex {
    align-items: flex-start !important;
  }

  .banner-block {
    height: auto;
  }

  .card-item {
    width: 100%;
    box-sizing: border-box;
  }

  .about-why-mogovolt .banner-block {
    background-size: 180%;
    background-position: bottom right;
    background-repeat: no-repeat;
  }

  .about-why-mogovolt .bulletpoint-container {
    padding-bottom: 50vh !important;
  }

  .featured-project {
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
  }
}

/* Mobile Small */

@media (max-width: 320px) {
}

/* Hotspot Image block ----------------------------------------------------- */

@media (max-width: 768px) {
  /* Fit the header, hero and announcement row in the opening phone viewport. */
  .home header,
  .home header .navigation {
    height: 64px;
    box-sizing: border-box;
  }

  .home .content {
    margin-top: 0;
    padding-top: 76px;
  }

  .home .main-video {
    --mobile-hero-photo-height: clamp(230px, 65vw, 310px);
    background: #1f1f1f;
    height: auto;
    min-height: calc(100vh - 300px);
    min-height: calc(100svh - 300px);
    margin: 0 auto 16px !important;
    overflow: hidden;
    isolation: isolate;
    border-radius: 20px;
  }

  .home .main-video > .container-block:not(.video-container) {
    min-height: inherit;
    width: 100%;
    box-sizing: border-box;
    padding-top: calc(var(--mobile-hero-photo-height) - 84px);
    align-items: flex-end;
  }

  .home .main-video .hero-content {
    width: 100%;
    box-sizing: border-box;
    padding: 20px !important;
  }

  .home .main-video h1 {
    font-size: clamp(28px, 8vw, 34px);
    line-height: 1.13;
    margin: 0 0 18px;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
  }

  .home .main-video .paragraph {
    font-size: clamp(14px, 1.9svh, 16px);
  }

  .home .ups-container {
    min-height: 108px;
    box-sizing: border-box;
  }

  .home .ups-container .container-block {
    margin-bottom: 0;
    padding: 8px 0;
  }

  .home .ups-container .column-full {
    margin: 0;
    padding: 0;
  }

  .home .ups-container p {
    font-size: 14px;
    line-height: 1.35;
  }

  .home .main-video .video-container {
    inset: 0;
    height: var(--mobile-hero-photo-height);
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 98%);
  }

  .home .main-video .hero-background-image {
    object-position: 75% center;
  }

  .home .main-video .video-block::after {
    background: linear-gradient(180deg, transparent 50%, #1f1f1f 95%);
  }

  /* Overlaying a panel on a phone leaves no room for the image, so the active
     panel drops below it and the points stay as the picker. */
  .hotspot-image {
    min-height: 0 !important;
    display: flex;
    flex-direction: column;
    background-position: top center;
    background-size: contain;
    height: auto;
  }

  .hotspot-image__points {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 210px;
  }

  .hotspot-panel {
    border: 1px solid var(--color-black);
    overflow: hidden;
  }

  .hotspot-panel p {
    line-height: 150%;
  }

  /* Stacked below the image, opaque so the background doesn't bleed through
     behind the text. */
  .hotspot-image__intro,
  .hotspot-panel.is-active {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 100%;
  }

  .hotspot-panel {
    border-radius: 0px 0px 20px 20px !important;
  }

  .hotspot-image__intro {
    padding: 28px 20px;
    background: #101010;
  }

  .hotspot-point {
    width: 26px;
    height: 26px;
  }

  .hotspot-panel .column-half {
    justify-content: center;
  }

  .hotspot-panel .inverted-text .headline {
    font-size: 20px;
  }

  .main-video .container-block {
    align-items: flex-end !important;
  }

  .feature-title .column-half:first-child {
    width: 100%;
  }

  .inverted-bg {
    background: var(--color-surface-light);
  }

  .how-it .container-block {
    flex-direction: column;
  }

  .how-it .container-block .max-600 {
    width: 80%;
    padding: 5vh 0;
  }

  .numbered::before {
    left: 5px;
  }

  .about .banner-block {
    background: none !important;
  }
}
