/* Final homepage override: a bright sky-and-white composition, structurally matching the supplied mobile reference. */

.light-reference-hero {
  position: relative;
  height: 458px;
  overflow: hidden;
  background: linear-gradient(155deg, #fafdff 0%, #dff3ff 63%, #ccecff 100%);
  isolation: isolate;
}

.boryeong-backdrop {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -3px;
  width: 100%;
  height: 62%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.43;
  filter: saturate(0.85) contrast(0.92) brightness(1.16);
}

.hero-cloud-wash {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 10%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.8) 30%, transparent 57%),
    linear-gradient(180deg, rgba(255,255,255,.77) 0%, rgba(234,249,255,.25) 50%, rgba(232,248,255,.06) 100%);
}

.light-hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

.light-hero-copy {
  position: absolute;
  z-index: 3;
  top: 92px;
  left: max(24px, calc((100vw - 1160px) / 2));
  color: #06488f;
}

.light-hero-copy p {
  margin: 0 0 9px;
  color: #17599f;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -1.2px;
}

.light-hero-copy h1,
.light-hero-copy h2 {
  margin: 0;
  color: #074487;
  font-weight: 900;
  line-height: 1.09;
  text-shadow: 0 2px 0 rgba(255,255,255,.82);
}

.light-hero-copy h1 {
  font-size: clamp(65px, 7.2vw, 105px);
  letter-spacing: -7px;
}

.light-hero-copy h2 {
  margin-top: 5px;
  font-size: clamp(31px, 3.6vw, 54px);
  letter-spacing: -3.3px;
}

.hero-technician {
  position: absolute;
  z-index: 2;
  right: max(5%, calc((100vw - 1160px) / 2));
  bottom: -14px;
  width: min(390px, 37vw);
  height: auto;
  max-height: 424px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(8px 10px 12px rgba(13, 77, 127, .18));
}

.light-emergency-badge {
  position: absolute;
  z-index: 5;
  bottom: 35px;
  left: 50%;
  min-width: 292px;
  padding: 11px 28px;
  transform: translateX(-50%);
  color: #fff;
  background: #0871dc;
  border: 3px solid rgba(255,255,255,.92);
  border-radius: 999px;
  box-shadow: 0 7px 16px rgba(3, 77, 154, .24);
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.25;
  text-align: center;
}

.light-service-strip {
  position: relative;
  z-index: 6;
  padding: 0 0 34px;
  background: #fff;
}

.light-service-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: -28px;
}

.light-service-cards a {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0b4d99;
  background: #fff;
  border: 2px solid #dbe5f0;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(8, 49, 106, .16);
  text-decoration: none;
  transition: transform 160ms cubic-bezier(.23,1,.32,1), box-shadow 160ms cubic-bezier(.23,1,.32,1);
}

.light-service-cards a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(8, 49, 106, .2);
}

.light-service-cards b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #0874dc;
}

.light-service-cards svg {
  width: 34px;
  height: 34px;
}

.light-service-cards span {
  color: #0a3979;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.8px;
}

.light-primary-call {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  color: #fff;
  background: linear-gradient(135deg, #087dec, #0656c2);
  border-radius: 11px;
  box-shadow: 0 9px 20px rgba(4, 86, 190, .22);
  text-decoration: none;
}

.light-primary-call span {
  font-size: 31px;
  line-height: 1;
}

.light-primary-call strong {
  font-size: 32px;
  letter-spacing: -1.7px;
}

.light-primary-call small {
  font-size: 14px;
  font-weight: 800;
}

.light-primary-call i {
  margin-left: auto;
  padding-right: 23px;
  font-size: 42px;
  font-style: normal;
  font-weight: 300;
  line-height: 1;
}

/* Existing dark photo hero is intentionally not used on this home first screen. */
.home-hero,
.home-service-tabs {
  display: none;
}

@media (max-width: 700px) {
  .site-header {
    position: relative;
    box-shadow: 0 2px 8px rgba(10, 58, 125, .07);
  }

  .header-inner {
    height: 64px;
  }

  .brand {
    gap: 6px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-mark svg {
    width: 30px;
    height: 30px;
  }

  .brand-copy b {
    font-size: 18px;
    letter-spacing: -1.2px;
  }

  .brand-copy small {
    display: block;
    font-size: 7.5px;
    letter-spacing: -0.45px;
  }

  .header-call {
    min-width: 132px;
    padding: 8px 7px 8px 29px;
    border-radius: 8px;
  }

  .header-call::before {
    margin-left: -101px;
    margin-top: 8px;
    font-size: 19px;
  }

  .header-call span {
    font-size: 7.5px;
  }

  .header-call strong {
    font-size: 17px;
  }

  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid #e3eaf1;
  }

  .mobile-nav .nav-link {
    height: 38px;
    min-width: 0;
    color: #16457c;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: -0.7px;
  }

  .mobile-nav .nav-link:last-child {
    color: #03a64a;
  }

  .light-reference-hero {
    height: 344px;
  }

  .boryeong-backdrop {
    height: 58%;
    opacity: .41;
    object-position: 50% bottom;
  }

  .hero-cloud-wash {
    background:
      radial-gradient(ellipse at 6% 5%, rgba(255,255,255,.98) 0%, rgba(255,255,255,.78) 42%, transparent 72%),
      linear-gradient(180deg, rgba(255,255,255,.59) 0%, rgba(235,249,255,.22) 74%, rgba(232,248,255,.12) 100%);
  }

  .light-hero-copy {
    top: 42px;
    left: 20px;
    width: 56%;
  }

  .light-hero-copy p {
    margin-bottom: 7px;
    font-size: 16px;
    letter-spacing: -1px;
  }

  .light-hero-copy h1 {
    font-size: 50px;
    letter-spacing: -4.3px;
    white-space: nowrap;
  }

  .light-hero-copy h2 {
    margin-top: 3px;
    font-size: 24px;
    letter-spacing: -2px;
    white-space: nowrap;
  }

  .hero-technician {
    right: -3px;
    bottom: -8px;
    width: 53%;
    max-height: 310px;
  }

  .light-emergency-badge {
    bottom: 14px;
    min-width: 0;
    padding: 9px 18px;
    border-width: 2px;
    font-size: 17px;
    letter-spacing: -1px;
  }

  .light-service-strip {
    padding: 0 0 20px;
  }

  .light-service-cards {
    width: calc(100% - 22px);
    gap: 4px;
    margin-top: 0;
  }

  .light-service-cards a {
    min-height: 87px;
    gap: 4px;
    border-width: 1px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(8, 49, 106, .13);
  }

  .light-service-cards b {
    width: 26px;
    height: 26px;
  }

  .light-service-cards svg {
    width: 26px;
    height: 26px;
  }

  .light-service-cards span {
    font-size: 10px;
    letter-spacing: -0.65px;
    white-space: nowrap;
  }

  .light-primary-call {
    min-height: 57px;
    margin-top: 10px;
    border-radius: 8px;
  }

  .light-primary-call span {
    font-size: 26px;
  }

  .light-primary-call strong {
    font-size: 27px;
    letter-spacing: -1.45px;
  }

  .light-primary-call small {
    font-size: 11px;
  }

  .light-primary-call i {
    padding-right: 12px;
    font-size: 35px;
  }

  .home-quick {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand-copy small { display: none; }
  .header-call { min-width: 120px; }
  .header-call strong { font-size: 16px; }
  .mobile-nav .nav-link { font-size: 9px; }
  .light-reference-hero { height: 328px; }
  .light-hero-copy h1 { font-size: 46px; }
  .light-hero-copy h2 { font-size: 22px; }
  .light-service-cards span { font-size: 9px; }
}
