:root {
  --navy: #071a3d;
  --navy-2: #0b2a5b;
  --blue: #075bd8;
  --yellow: #f7b801;
  --yellow-2: #ffd24a;
  --white: #ffffff;
  --paper: #f7f9fd;
  --ink: #071a3d;
  --muted: #5d6b82;
  --line: #dfe6f1;
  --shadow: 0 24px 70px rgba(7, 26, 61, 0.18);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg,
iframe {
  max-width: 100%;
}

img {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section-pad {
  padding: 86px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
  padding: 12px max(20px, calc((100vw - var(--container)) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 230, 241, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  min-width: max-content;
  color: var(--navy);
}

.brand img {
  display: block;
  width: clamp(190px, 21vw, 292px);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.6vw, 32px);
  font-size: 0.93rem;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 14px 2px;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  background: var(--yellow);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.phone-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
  color: var(--navy);
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.phone-cta span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--blue);
  border: 2px solid currentColor;
  border-radius: 50%;
}

.phone-cta svg {
  width: 18px;
  height: 18px;
}

.phone-cta:hover,
.phone-cta:focus-visible {
  color: var(--blue);
  border-color: var(--line);
  box-shadow: 0 10px 28px rgba(7, 26, 61, 0.1);
}

.hero {
  position: relative;
  min-height: 760px;
  padding-top: 46px;
  padding-bottom: 52px;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 38%, rgba(255, 255, 255, 0.36) 62%, rgba(255, 255, 255, 0.78) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 58%, rgba(7, 26, 61, 0.9) 100%),
    url("/images/hero-handyman.png") center / cover no-repeat,
    radial-gradient(circle at 68% 28%, #f5d38e 0 12%, transparent 32%),
    linear-gradient(135deg, #f8fbff, #e8eef8 45%, #f8e7bd);
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 160px;
  background: linear-gradient(180deg, rgba(7, 26, 61, 0), rgba(7, 26, 61, 0.1));
  content: "";
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 440px);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
}

.hero-copy {
  max-width: 665px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow span {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(247, 184, 1, 0.15);
}

.eyebrow.compact {
  margin-bottom: 6px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  max-width: 680px;
  font-size: clamp(3.05rem, 7vw, 6.1rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 800;
}

h3 {
  font-size: 1.06rem;
  font-weight: 800;
}

.hero-lede {
  max-width: 580px;
  margin: 28px 0;
  color: #1a2b4f;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 640px;
  padding: 0;
  margin: 34px 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 108px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(7, 26, 61, 0.08);
  font-weight: 800;
}

.trust-list svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 15px 24px;
  border: 0;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button svg {
  width: 20px;
  height: 20px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #061635;
  background: linear-gradient(180deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 14px 32px rgba(247, 184, 1, 0.32);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 18px 44px rgba(247, 184, 1, 0.42);
}

.form-card {
  width: 100%;
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-card h2 {
  margin-bottom: 18px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.form-card iframe {
  display: block;
  width: 100%;
  min-height: 640px;
}

.trust-strip {
  color: var(--white);
  background: linear-gradient(90deg, #061532, var(--navy-2), #061532);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.trust-strip-grid div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 110px;
  padding: 22px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 800;
}

.trust-strip-grid div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-strip svg {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  color: var(--yellow);
}

.services {
  position: relative;
  background:
    radial-gradient(circle at 92% 18%, rgba(247, 184, 1, 0.18) 0 9%, transparent 25%),
    radial-gradient(circle at 2% 74%, rgba(7, 91, 216, 0.11) 0 11%, transparent 28%),
    var(--white);
  overflow: hidden;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(290px, 420px) 1fr;
  align-items: center;
  gap: clamp(38px, 6vw, 70px);
}

.service-photo-wrap {
  position: relative;
}

.service-photo {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(7, 26, 61, 0.08), rgba(247, 184, 1, 0.2)),
    url("/images/services-handyman.png") center / cover no-repeat,
    #e9eef6;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.rating-card {
  position: absolute;
  right: -22px;
  bottom: 28px;
  width: min(230px, calc(100% - 34px));
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 26, 61, 0.16);
}

.stars {
  display: block;
  color: var(--yellow);
  letter-spacing: 0;
}

.service-content > p:not(.eyebrow) {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.service-cards article {
  min-height: 156px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(7, 26, 61, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-cards article:hover {
  border-color: rgba(7, 91, 216, 0.35);
  box-shadow: 0 20px 44px rgba(7, 26, 61, 0.12);
  transform: translateY(-3px);
}

.service-cards svg {
  width: 34px;
  height: 34px;
  color: var(--blue);
}

.service-cards h3 {
  margin-top: 16px;
  font-size: 0.98rem;
}

.service-cards p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.steps {
  position: relative;
  color: var(--white);
  background: var(--navy);
  isolation: isolate;
}

.steps-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(7, 26, 61, 0.97), rgba(7, 26, 61, 0.84) 58%, rgba(7, 26, 61, 0.54)),
    url("/images/how-it-works.png") right center / cover no-repeat,
    radial-gradient(circle at 82% 42%, #183c7c, transparent 30%),
    var(--navy);
}

.centered {
  max-width: 730px;
  margin: 0 auto 42px;
  text-align: center;
}

.steps .eyebrow {
  color: var(--yellow);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.steps-grid article {
  position: relative;
  min-height: 230px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.steps-grid span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 26px;
  color: var(--white);
  background: var(--blue);
  border: 4px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}

.steps-grid p {
  color: rgba(255, 255, 255, 0.78);
}

.reviews {
  background: var(--paper);
}

.section-heading.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: 34px;
  margin-bottom: 34px;
}

.section-heading.split > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-grid article {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 15px 35px rgba(7, 26, 61, 0.06);
}

.review-grid p {
  color: #243653;
  font-size: 1.02rem;
}

.review-grid strong,
.review-grid small {
  display: block;
}

.review-grid small {
  color: var(--muted);
}

.areas {
  background:
    linear-gradient(90deg, rgba(7, 26, 61, 0.97), rgba(11, 42, 91, 0.94)),
    radial-gradient(circle at 76% 34%, rgba(247, 184, 1, 0.16), transparent 28%);
  color: var(--white);
}

.areas .eyebrow,
.final-cta .eyebrow {
  color: var(--yellow);
}

.area-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: 46px;
}

.area-grid p {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
}

.area-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.area-card ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0 0 24px;
  list-style: none;
  font-weight: 800;
}

.area-card li {
  padding-left: 18px;
  border-left: 3px solid var(--yellow);
}

.final-cta {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 61, 0.98), rgba(7, 26, 61, 0.8)),
    url("/images/hero-handyman.png") center bottom / cover no-repeat,
    var(--navy);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer {
  padding: 48px 0 22px;
  color: rgba(255, 255, 255, 0.82);
  background: #041126;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 38px;
}

.footer-brand {
  display: inline-flex;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 8px;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 0.95rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--yellow);
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.socials a {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: background 180ms ease, border-color 180ms ease;
}

.socials a:hover,
.socials a:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

:focus-visible {
  outline: 3px solid rgba(247, 184, 1, 0.78);
  outline-offset: 3px;
}

@media (max-width: 1040px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand {
    margin-right: auto;
  }

  .phone-cta {
    margin-left: auto;
  }

  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .hero-grid,
  .service-layout,
  .area-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .form-card {
    max-width: 560px;
  }

  .trust-strip-grid,
  .service-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip-grid div:nth-child(odd),
  .trust-strip-grid div:nth-child(even) {
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .steps-grid,
  .review-grid,
  .section-heading.split,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section-pad {
    padding: 58px 0;
  }

  .site-header {
    min-height: auto;
    padding: 10px 12px;
  }

  .brand {
    min-height: 44px;
  }

  .brand img {
    width: clamp(158px, 50vw, 210px);
  }

  .phone-cta {
    padding: 6px;
  }

  .phone-cta strong {
    display: none;
  }

  .hero {
    padding-top: 34px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.88) 55%, rgba(7, 26, 61, 0.08)),
      url("/images/hero-handyman.png") center top / cover no-repeat,
      linear-gradient(135deg, #f8fbff, #f5e8c9);
  }

  .trust-list,
  .trust-strip-grid,
  .service-cards,
  .steps-grid,
  .review-grid,
  .area-card ul {
    grid-template-columns: 1fr;
  }

  .trust-list li {
    min-height: auto;
    grid-template-columns: 30px 1fr;
    align-items: center;
  }

  .form-card {
    padding: 16px;
  }

  .form-card iframe {
    min-height: 640px;
  }

  .trust-strip-grid div {
    min-height: 76px;
    padding: 18px 4px;
  }

  .rating-card {
    right: 14px;
    bottom: 14px;
  }

  .steps-grid article {
    min-height: auto;
  }

  .final-cta-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
