﻿.home-main {
  padding-top: calc(var(--nav-h) - 2px);
}

.top-call-banner {
  width: 100%;
  margin: 0;
}

.top-call-banner__inner {
  width: 100%;
  margin: 0;
  min-height: 54px;
  border-radius: 0;
  border-top: 1px solid #2b3b47;
  border-bottom: 1px solid #2b3b47;
  border-left: 0;
  border-right: 0;
  background: linear-gradient(120deg, #0a1015, #121b22 55%, #0b131a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.top-call-banner__phone {
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
}

.top-call-banner__phone:hover {
  text-decoration: underline;
}

.top-call-banner__phones {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
}

.top-call-banner__sep {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  font-size: 1.05rem;
}

.top-call-banner__text {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-home {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 1px solid #355063;
  background:
    linear-gradient(120deg, rgba(8, 14, 18, 0.94), rgba(13, 22, 28, 0.9) 55%, rgba(19, 33, 43, 0.88)),
    url('../../images/roofing-bg.png') center/cover no-repeat;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.hero-home__content {
  width: min(1120px, 92vw);
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
}

.hero-home::before,
.hero-home::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.hero-home::before {
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(250, 218, 11, 0.9), transparent);
}

.hero-home::after {
  right: -65px;
  top: -65px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(250, 218, 11, 0.22);
}

.hero-home__left,
.hero-home__right {
  position: relative;
  z-index: 1;
  will-change: transform, opacity;
}

.hero-home__left {
  transform: translateY(18px);
  opacity: 0;
  animation: revealUp 0.8s ease forwards;
}

.hero-home__logo {
  width: min(260px, 74%);
  height: auto;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.35));
}

.hero-home__eyebrow {
  margin: 0;
  color: #fada0b;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-home h1 {
  width: 100%;
  max-width: none;
  margin: 10px 0 12px;
  line-height: 0.96;
}

.hero-home__title {
  text-transform: uppercase;
  font-family: 'Runner', 'Segoe UI', sans-serif;
  letter-spacing: 1px;
}

.hero-home__title-top,
.hero-home__title-bottom {
  display: block;
  width: 100%;
  font-size: clamp(1.25rem, 3.2vw, 2.55rem);
  font-weight: 800;
  text-shadow:
    0 1px 0 #0a0a0a,
    0 2px 0 #0a0a0a,
    0 0 12px rgba(0, 0, 0, 0.46);
}

.hero-home__title-top {
  color: #f3f5f7;
}

.hero-home__title-bottom {
  color: #fada0b;
  margin-top: 4px;
}

.hero-home__subtitle {
  margin: 0;
  color: #dae5ec;
  font-size: 1.02rem;
}

.hero-home__points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.hero-home__points li {
  position: relative;
  padding-left: 20px;
  color: #d8e0e6;
}

.hero-home__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 2px;
  background: #fada0b;
  box-shadow: 0 0 8px rgba(250, 218, 11, 0.42);
}

.hero-home__right {
  transform: translateY(18px);
  opacity: 0;
  animation: revealUp 0.8s ease 0.18s forwards;
}

.hero-home.is-live::before {
  animation: heroSweep 5.2s linear infinite;
}

.hero-home.is-live .form-shell {
  animation: formFloat 5s ease-in-out infinite;
}

.form-shell {
  position: relative;
  background: rgba(11, 18, 23, 0.9);
  border: 1px solid #3a5163;
  border-radius: 16px;
  padding: 20px;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, Verdana, Arial, sans-serif;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.form-shell::before,
.form-shell::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.form-shell::before {
  top: -1px;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(250, 218, 11, 0.92), transparent);
}

.form-shell::after {
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(84, 114, 132, 0.8), transparent);
}

.form-shell h2 {
  margin: 0;
  font-size: 1.3rem;
  font-family: 'Runner', 'Segoe UI', sans-serif;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  color: #f5f9fd;
}

.form-shell > p {
  margin: 8px 0 16px;
  color: #b5c2cc;
  font-size: 0.94rem;
  line-height: 1.45;
}

.hero-form {
  display: grid;
  gap: 12px;
}

.hero-form__row {
  display: grid;
  gap: 6px;
}

.hero-form label {
  color: #dce6ec;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.48px;
  text-transform: uppercase;
}

.hero-form input,
.hero-form textarea {
  width: 100%;
  background: #101920;
  color: #f4f6f8;
  border: 1px solid #3e5667;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, Verdana, Arial, sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-form input::placeholder,
.hero-form textarea::placeholder {
  color: #90a2af;
  font-weight: 500;
  opacity: 1;
}

.hero-form textarea {
  min-height: 104px;
  resize: vertical;
}

.hero-form input:focus,
.hero-form textarea:focus {
  border-color: #fada0b;
  box-shadow: 0 0 0 3px rgba(250, 218, 11, 0.2);
}

.hero-form__captcha {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.captcha-box {
  min-width: 92px;
  text-align: center;
  border: 1px solid #4f697c;
  border-radius: 10px;
  padding: 10px 8px;
  font-family: 'Courier New', monospace;
  letter-spacing: 1.3px;
  color: #fada0b;
  background: #0c141a;
}

.captcha-reload {
  border: 1px solid #fada0b;
  color: #fada0b;
  background: transparent;
  border-radius: 9px;
  padding: 10px 10px;
  font-family: 'Trebuchet MS', 'Segoe UI', Tahoma, Verdana, Arial, sans-serif;
  font-weight: 700;
  cursor: pointer;
}

.captcha-reload:hover {
  background: rgba(250, 218, 11, 0.12);
}

.hero-form__submit {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #fada0b, #d7b500);
  color: #14191d;
  font-family: 'Runner', 'Segoe UI', sans-serif;
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  padding: 12px;
  cursor: pointer;
}

.hero-form__submit:hover {
  filter: brightness(1.04);
}

.hero-form__status {
  min-height: 1.1em;
  margin: 0;
  font-size: 0.86rem;
}

.hero-form__status.ok {
  color: #75e3a4;
}

.hero-form__status.err {
  color: #ff9a9a;
}

@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes formFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes heroSweep {
  0% {
    transform: translate3d(-32%, 0, 0);
    opacity: 0.4;
  }
  50% {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  100% {
    transform: translate3d(32%, 0, 0);
    opacity: 0.4;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-home__left,
  .hero-home__right,
  .hero-home.is-live::before,
  .hero-home.is-live .form-shell {
    animation: none !important;
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .top-call-banner__inner {
    min-height: 50px;
  }

  .top-call-banner__phone {
    font-size: 1.12rem;
  }

  .top-call-banner__text {
    font-size: 1.02rem;
  }

  .hero-home__content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 0;
  }

  .hero-home h1 {
    line-height: 1;
  }

  .hero-home__title-top,
  .hero-home__title-bottom {
    font-size: clamp(1.1rem, 6.2vw, 2rem);
  }
}

@media (max-width: 620px) {
  .top-call-banner__inner {
    width: 100%;
    min-height: 48px;
    border-radius: 0;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    padding: 8px 10px;
  }

  .top-call-banner__phone {
    font-size: 1rem;
  }

  .top-call-banner__phones {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .top-call-banner__sep {
    display: none;
  }

  .top-call-banner__text {
    font-size: 0.92rem;
  }

  .hero-home__content {
    width: min(1120px, 94vw);
    padding: 18px 0;
  }

  .hero-home__left {
    text-align: center;
  }

  .hero-home__logo {
    width: min(210px, 84%);
    margin-left: auto;
    margin-right: auto;
  }

  .hero-home__points {
    justify-items: start;
    text-align: left;
  }

  .hero-home__points li {
    width: 100%;
    max-width: none;
    text-align: left;
  }

  .hero-form__captcha {
    grid-template-columns: 1fr;
  }

  .captcha-box,
  .captcha-reload {
    width: 100%;
  }
}

.verified-reviews {
  padding: 34px 0 12px;
  background: #f8f8f8;
}

.verified-reviews .section-title {
  text-align: center;
  margin-bottom: 20px;
  color: #1a2e63;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.verified-reviews .carousel-container {
  width: 1260px;
  overflow: hidden;
  margin: auto;
  position: relative;
  padding-bottom: 30px;
}

.verified-reviews .carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.verified-reviews .testimonial-card {
  min-width: 400px;
  max-width: 400px;
  margin: 0 10px;
  background: #fff;
  border-radius: 10px;
  border: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.verified-reviews .testimonial-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.verified-reviews .tag {
  position: absolute;
  background: #222;
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  top: 12px;
  left: 12px;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.verified-reviews .tag:empty {
  display: none;
}

.verified-reviews .stars {
  color: #ffc107;
  font-size: 16px;
}

.verified-reviews .user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px;
}

.verified-reviews .avatar {
  background: #555;
  color: #fff;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.verified-reviews .avatar.blue { background: #1e88e5; }
.verified-reviews .avatar.green { background: #43a047; }
.verified-reviews .avatar.orange { background: #fb8c00; }
.verified-reviews .avatar.red { background: #e53935; }
.verified-reviews .avatar.purple { background: #8e24aa; }

.verified-reviews .testimonial-card p,
.verified-reviews .testimonial-card strong,
.verified-reviews .testimonial-card em {
  color: #222;
}

.verified-reviews .testimonial-card p {
  padding: 0 15px 20px;
  font-size: 14px;
  line-height: 1.45;
}

.home-videos {
  width: 100%;
  padding: 24px 0 30px;
  background:
    linear-gradient(135deg, #0f151a 0%, #111a22 55%, #182531 100%);
  border-top: 1px solid #233240;
  border-bottom: 1px solid #22313e;
}

.featured-video {
  width: 100%;
  padding: 14px 0 12px;
  background:
    radial-gradient(circle at 80% 18%, rgba(250, 218, 11, 0.16) 0%, rgba(250, 218, 11, 0) 42%),
    linear-gradient(135deg, #090d12 0%, #0f1720 54%, #121f2a 100%);
  border-top: 1px solid #243241;
  border-bottom: 1px solid #22303d;
}

.featured-video__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  text-align: center;
}

.featured-video__eyebrow {
  margin: 0 0 4px;
  color: #fada0b;
  font-size: 0.83rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 700;
}

.featured-video__title {
  margin: 0 0 4px;
  color: #f4f8fc;
  font-size: clamp(1.55rem, 3.2vw, 2.6rem);
  line-height: 1.06;
  font-family: 'Runner', 'Segoe UI', sans-serif;
  text-align: center;
}

.featured-video__subtitle {
  margin: 0 0 8px;
  color: #b7c5d0;
  font-size: 0.92rem;
}

.featured-video__frame {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  max-height: min(46svh, 420px);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #334758;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(250, 218, 11, 0.18) inset;
  background: #070b10;
  margin: 0 auto;
}

.featured-video__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-video__loading {
  margin: 0;
  color: #c4d0d8;
  padding: 12px;
}

.featured-video__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #fada0b 0%, #d9b700 100%);
  color: #10161b;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.featured-video__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.home-videos__head {
  width: min(1120px, 92vw);
  margin: 0 auto 16px;
}

.home-videos__head .section-title {
  margin: 0 0 6px;
  color: #f4f7fb;
  text-align: left;
}

.home-videos__head p {
  margin: 0;
  color: #b8c5cf;
  font-size: 0.95rem;
}

.home-videos__track {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  gap: 14px;
  align-items: stretch;
  justify-content: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 6px 2px 8px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.home-videos__loading,
.home-videos__empty {
  color: #c4d0d8;
  font-size: 0.92rem;
  padding: 8px 2px;
}

.home-videos .videoitem {
  flex: 0 0 auto;
  width: 250px;
  height: 420px;
  border: 1px solid #324657;
  border-radius: 16px;
  background: #0d1318;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-videos .videoitem:hover {
  transform: translateY(-3px);
  border-color: #fada0b;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.34);
}

.home-videos .videoitem video,
.home-videos .videoitem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-videos__track::-webkit-scrollbar {
  height: 8px;
}

.home-videos__track::-webkit-scrollbar-thumb {
  background: #3b5467;
  border-radius: 99px;
}

@media (max-width: 1260px) {
  .verified-reviews .carousel-container {
    width: 840px;
  }
}

@media (max-width: 860px) {
  .verified-reviews .carousel-container {
    width: 420px;
  }
}

@media (max-width: 480px) {
  .verified-reviews .carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 0 16px 35px;
  }

  .verified-reviews .carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .verified-reviews .testimonial-card {
    min-width: calc(100% - 32px);
    max-width: calc(100% - 32px);
    margin: 0 16px;
    box-sizing: border-box;
  }

  .home-videos .videoitem {
    width: 210px;
    height: 350px;
  }

  .featured-video__frame {
    max-width: 100%;
  }
}
