:root {
  --yellow: #ffdc00;
  --blue: #3179ad;
  --blue-deep: #145a8e;
  --ink: #191919;
  --white: #ffffff;
  --soft-white: #f7f7f5;
  --muted: #646464;
  --font-display: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  --font-body: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-body);
  line-height: 1.55;
}
body, button, input, textarea, select { font-size: 16px; }
button, input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
svg { display: block; }
.shell { width: min(980px, calc(100% - 48px)); margin: 0 auto; }
.section-title {
  margin-bottom: 66px;
  color: var(--white);
  font: 400 clamp(2.25rem, 5vw, 3.6rem)/1 var(--font-display);
  letter-spacing: .02em;
  text-align: center;
  text-transform: uppercase;
}
.section-title--yellow { color: var(--yellow); }
.section-title--blue { color: var(--blue); }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: var(--yellow);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
}
.nav {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  font: 900 1.23rem/1 var(--font-display);
  letter-spacing: .19em;
  white-space: nowrap;
  text-transform: uppercase;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.brand-mark svg { width: 18px; height: 18px; }
.nav-links {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 35px;
  font: 400 .92rem/1 var(--font-display);
  letter-spacing: .035em;
  text-transform: uppercase;
}
.nav-links a, .header-cta { transition: opacity .2s ease; }
.nav-links a:hover, .header-cta:hover { opacity: .58; }
.header-cta {
  justify-self: end;
  font: 400 1rem/1 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-content: center;
  gap: 5px;
  padding: 9px;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  width: 26px;
  height: 2px;
  display: block;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle:focus-visible { outline-color: var(--ink); }

.hero {
  min-height: 630px;
  position: relative;
  display: grid;
  overflow: hidden;
  color: var(--white);
  background: url("assets/handyman-hero.webp") center / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 9, 10, .78) 0%, rgba(8, 9, 10, .54) 35%, rgba(8, 9, 10, .08) 67%, rgba(8, 9, 10, 0) 100%);
}
.hero-video {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-video.is-ready { opacity: 1; }
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 34px;
  padding-bottom: 58px;
}
.hero-copy { max-width: 610px; }
.hero-kicker {
  margin-bottom: 2px;
  font: 400 clamp(2.25rem, 5vw, 3.45rem)/1 var(--font-display);
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-subtitle {
  margin-bottom: 23px;
  font: 300 clamp(1.12rem, 2.5vw, 1.65rem)/1.05 var(--font-display);
  letter-spacing: .23em;
  text-transform: uppercase;
}
.hero-title {
  max-width: 600px;
  margin-bottom: 42px;
  color: var(--yellow);
  font: 300 clamp(2.2rem, 5vw, 3.7rem)/1.14 var(--font-display);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 32px;
  border: 0;
  border-radius: 0;
  color: var(--white);
  background: var(--blue);
  font: 500 1rem/1 var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.button:hover { color: var(--ink); background: var(--yellow); transform: translateY(-2px); }
.button--yellow { color: var(--ink); background: var(--yellow); }
.button--yellow:hover { color: var(--white); background: var(--blue); }
.scroll-cue {
  width: 38px;
  height: 38px;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 21px;
  border-right: 5px solid var(--yellow);
  border-bottom: 5px solid var(--yellow);
  transform: translateX(-50%) rotate(45deg);
}

.services { padding: 94px 0 104px; color: var(--white); background: var(--blue); }
.services-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; }
.service-card { min-width: 0; text-align: center; }
.service-icon {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border: 3px solid var(--white);
  border-radius: 50%;
}
.service-icon svg { width: 70px; height: 70px; }
.service-card h3 {
  min-height: 50px;
  margin-bottom: 12px;
  font: 600 1.05rem/1.2 var(--font-display);
}
.service-card p { min-height: 82px; margin-bottom: 18px; font-size: .76rem; line-height: 1.55; }
.service-link {
  color: var(--yellow);
  font: 400 .75rem/1 var(--font-display);
  letter-spacing: .02em;
}
.service-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.about {
  position: relative;
  padding: 105px 0 112px;
  color: var(--white);
  background-color: #4a3525;
  background-image:
    linear-gradient(rgba(17, 17, 17, .46), rgba(17, 17, 17, .46)),
    url("assets/wood-about.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: inset 0 18px 45px rgba(0, 0, 0, .35);
}
.about .shell { position: relative; }
.about-copy { max-width: 720px; margin: -12px auto 0; font-size: .99rem; line-height: 1.8; text-align: center; }
.about-points {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
  color: var(--yellow);
  font: 600 .82rem/1.35 var(--font-display);
  letter-spacing: .07em;
  text-transform: uppercase;
}

.reviews { min-height: 650px; padding: 102px 0 110px; background: var(--soft-white); }
.reviews-grid { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; gap: 82px; margin: 0 auto; }
.review { position: relative; padding: 46px 0 0 55px; color: #575757; font-size: .9rem; line-height: 1.75; }
.review > p:first-of-type { color: #000; font-weight: 700; }
.review:nth-child(2) { margin-top: 72px; }
.quote-mark {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--blue);
  font: 900 6.5rem/.8 Georgia, serif;
}
.review-name { margin: 18px 0 0; color: var(--blue); font-size: .78rem; text-align: right; }

.contact { padding: 96px 0 106px; color: var(--white); background: var(--blue-deep); }
.contact .section-title { color: #55b8e9; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 35px 38px; }
.contact-item h3, .form-heading {
  margin-bottom: 12px;
  font: 600 1rem/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-phone {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--yellow);
  font: 600 1.05rem/1.2 var(--font-display);
}
.contact-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-item p { margin-bottom: 0; color: #e5f1f8; font-size: .9rem; line-height: 1.65; }
.contact-item--wide { grid-column: 1 / -1; }
.contact-note { max-width: 320px; color: var(--white) !important; }
.form-heading { margin-bottom: 18px; text-align: center; }
.field { margin-bottom: 8px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
  outline: none;
}
.field input, .field select { min-height: 42px; padding: 0 15px; }
.phone-input { display: flex; align-items: center; min-height: 42px; border: 1px solid rgba(255, 255, 255, .32); background: var(--white); }
.phone-input span { padding-left: 15px; color: var(--ink); white-space: nowrap; }
.field .phone-input input { min-width: 0; min-height: 40px; padding-left: 6px; border: 0; }
.phone-input:focus-within { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 220, 0, .28); }
.field textarea { min-height: 118px; max-height: 240px; padding: 12px 15px; resize: vertical; }
.task-count { display: block; margin-top: 2px; color: #9fcce4; font-size: .66rem; text-align: right; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--yellow); box-shadow: 0 0 0 2px rgba(255, 220, 0, .28); }
.field .phone-input input:focus { box-shadow: none; }
.website-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cf-turnstile { max-width: 100%; min-height: 65px; margin: 16px 0; overflow: hidden; }
.form-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.form-consent { display: flex; max-width: 340px; margin-top: 10px; align-items: flex-start; gap: 8px; color: var(--white); font-size: .66rem; line-height: 1.45; cursor: pointer; }
.form-consent input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--yellow); }
.form-consent a, .footer-link { text-decoration: underline; text-underline-offset: 3px; }
.form-actions .button { min-width: 155px; min-height: 42px; padding-inline: 24px; }
.form-status { display: none; margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--yellow); color: #fff8bd; background: rgba(0, 0, 0, .16); font-size: .84rem; }
.form-status.visible { display: block; }
.form-status.success { border-left-color: #8cdb9b; color: #e3ffe8; }
.form-actions button:disabled { cursor: wait; opacity: .7; transform: none; }

.site-footer { padding: 24px 0; background: var(--white); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.footer-row p { margin: 0; color: #555; font-size: .72rem; }
.footer-link { color: #555; font-size: .72rem; }
.footer-row .brand { font-size: .76rem; letter-spacing: .14em; }
.footer-row .brand-mark { width: 24px; height: 24px; }
.footer-row .brand-mark svg { width: 13px; height: 13px; }

.static-page { min-height: 100vh; display: flex; flex-direction: column; }
.page-header-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.page-main { min-height: 420px; display: grid; flex: 1; place-items: center; padding: 80px 0; background: var(--soft-white); }
.page-content { text-align: center; }
.page-content h1 { margin-bottom: 0; color: var(--blue-deep); font: 400 clamp(2.25rem, 6vw, 4rem)/1.1 var(--font-display); text-transform: uppercase; }
.page-content--error p { max-width: 500px; margin: 22px auto 30px; color: var(--muted); }
.page-content--error .error-code { margin-bottom: 8px; color: var(--yellow); font: 900 clamp(5rem, 18vw, 10rem)/.8 var(--font-display); -webkit-text-stroke: 2px var(--ink); }
.policy-main { display: block; padding-block: 70px; }
.policy-content { max-width: 860px; text-align: left; }
.policy-content h1 { margin-bottom: 12px; text-align: center; }
.policy-updated { margin-bottom: 48px; color: var(--muted); text-align: center; }
.policy-content section { margin-top: 38px; }
.policy-content h2 { margin-bottom: 14px; color: var(--blue-deep); font: 600 1.35rem/1.3 var(--font-display); }
.policy-content p, .policy-content li { color: #404040; line-height: 1.7; }
.policy-content p { margin-bottom: 14px; }
.policy-content ul, .policy-content ol { margin: 0 0 16px 22px; }
.policy-content li + li { margin-top: 7px; }
.policy-content a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
.policy-todo { padding: 14px 16px; border-left: 4px solid var(--yellow); background: #fff7c7; }
.policy-todo ul { margin-bottom: 0; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

@media (max-width: 1100px) {
  .nav { position: relative; grid-template-columns: 1fr auto auto; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 14px;
    background: var(--yellow);
    box-shadow: 0 12px 18px rgba(0, 0, 0, .12);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 18px; }
  .menu-toggle { display: grid; }
  .services-grid { grid-template-columns: repeat(3, 1fr); row-gap: 58px; }
  .service-card p { min-height: auto; }
  .contact-grid { gap: 50px; }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 34px, 980px); }
  .nav { min-height: 66px; gap: 14px; }
  .page-header-row { min-height: 66px; }
  .brand { font-size: .93rem; letter-spacing: .11em; }
  .brand-mark { width: 27px; height: 27px; }
  .header-cta { font-size: .78rem; }
  .hero {
    min-height: 620px;
    background: url("assets/handyman-hero.webp") 57% center / cover no-repeat;
  }
  .hero::after { background: linear-gradient(90deg, rgba(8, 9, 10, .83) 0%, rgba(8, 9, 10, .6) 55%, rgba(8, 9, 10, .22) 100%); }
  .hero-video { object-position: 57% center; }
  .hero-inner { align-items: flex-end; padding-bottom: 92px; }
  .hero-copy { max-width: 510px; }
  .hero-kicker { font-size: 2.25rem; }
  .hero-subtitle { font-size: 1rem; line-height: 1.25; }
  .hero-title { max-width: 430px; font-size: clamp(2rem, 9vw, 3rem); }
  .section-title { margin-bottom: 52px; }
  .services { padding-block: 76px 82px; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 55px 30px; }
  .about { padding-block: 84px; }
  .about-points { flex-direction: column; align-items: center; gap: 12px; text-align: center; }
  .reviews { min-height: auto; padding-block: 80px; }
  .reviews-grid { grid-template-columns: 1fr; gap: 42px; }
  .review { max-width: 520px; }
  .review:nth-child(2) { margin: 0 0 0 auto; }
  .contact { padding-block: 80px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-note { max-width: 100%; }
}

@media (max-width: 560px) {
  .header-cta { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

@media (max-width: 470px) {
  .hero { min-height: 590px; }
  .hero-kicker { font-size: 1.85rem; }
  .hero-title { font-size: 1.85rem; }
  .services .section-title, .reviews .section-title { font-size: 1.7rem; letter-spacing: 0; }
  .button { width: 100%; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { max-width: 270px; margin: 0 auto; }
  .service-card h3 { min-height: auto; }
  .contact-info, .field-grid { grid-template-columns: 1fr; }
  .contact-item--wide { grid-column: auto; }
  .form-actions { flex-direction: column; }
  .form-actions .button { width: 100%; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 400px) {
  .site-header .brand { font-size: .78rem; letter-spacing: .06em; }
}

@media (max-width: 340px) {
  .shell { width: calc(100% - 20px); }
  .contact .shell { width: 100%; padding-inline: 2px; }
  .site-header .brand > span:last-child { max-width: 125px; line-height: 1.1; white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
