@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;800&display=swap");

:root {
  --bg: #e5eaee;
  --surface: #f0f4f7;
  --surface-soft: #dde4ea;
  --text: #1d2733;
  --muted: #465463;
  --border: #c3cdd6;
  --brand: #1e5a6b;
  --brand-dark: #174654;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(23, 48, 69, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", "Calibri", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, #e1e7ec 0%, var(--bg) 220px, var(--bg) 100%);
}

h1,
h2,
h3 {
  margin: 0 0 0.6rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 3.25rem 0;
}

.section-alt {
  background: var(--surface-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#services.section-alt {
  background: #ffffff;
}

#testimonials.section-alt {
  background: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-family: "Poppins", "Century Gothic", "Avenir Next", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: 0.002em;
  line-height: 1;
  color: var(--text);
}

.brand-seq {
  font-weight: 800;
}

.brand-handyman {
  font-weight: 400;
}

.header-phone {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  line-height: 1;
  letter-spacing: 0.01em;
  color: var(--text);
}

.phone-digit {
  display: inline-block;
  animation: phone-wave 5s ease-in-out infinite;
  animation-delay: calc(var(--wave-index) * 80ms);
  transform-origin: 50% 100%;
}

.phone-gap {
  width: 0.32em;
}

@keyframes phone-wave {
  0%,
  6%,
  100% {
    transform: translateY(0);
  }

  8% {
    transform: translateY(-0.22em);
  }

  12% {
    transform: translateY(0.06em);
  }

  16% {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-digit {
    animation: none;
  }
}

.hero {
  padding-top: 0;
  padding-bottom: 0;
}

.hero .container {
  width: 100%;
  max-width: none;
}

.hero-stage {
  border: 0;
  border-radius: 0;
  background: url("images/hero-image.jpg") center center / cover no-repeat;
  padding: clamp(1.4rem, 3vw, 2.7rem);
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-content {
  background: rgba(239, 244, 247, 0.76);
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(23, 48, 69, 0.14);
  padding: clamp(1rem, 1.8vw, 1.45rem);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  width: min(620px, 100%);
}

.hero-copy {
  max-width: 62ch;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.26rem 0.65rem;
  border-radius: 999px;
  background: #e6eef2;
  color: #204f5f;
  font-weight: 600;
  font-size: 0.82rem;
}

.hero h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.75rem);
  max-width: 19ch;
}

.lead {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.68rem 1.15rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid rgba(30, 90, 107, 0.24);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(30, 90, 107, 0.22);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #eef3f6;
  border-color: #afbec9;
  color: var(--brand-dark);
}

.btn-secondary:hover {
  border-color: #95a9b6;
  background: #e5edf2;
}

.section-heading {
  margin-bottom: 1.3rem;
}

.section-heading p {
  color: var(--muted);
  max-width: 62ch;
}

.card-grid {
  display: grid;
  gap: 0.85rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1rem 1.05rem;
}

.card h3 {
  font-size: 1rem;
  margin: 0;
}

.trust-grid {
  display: grid;
  gap: 0.95rem;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem;
}

.trust-card p {
  color: var(--muted);
}

.testimonial-grid {
  display: grid;
  gap: 0.95rem;
}

.testimonial-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem;
}

.testimonial-card blockquote {
  margin: 0 0 0.8rem;
  color: #273341;
  font-weight: 500;
}

.testimonial-card figcaption {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.area-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.area-list li {
  background: #ebf1f5;
  border: 1px solid #b8c5ce;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-weight: 600;
  color: #2a4554;
}

.contact-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.quote-form {
  margin-top: 0.9rem;
}

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-bottom: 0.8rem;
  padding: 0.6rem 0.72rem;
  border-radius: 8px;
  border: 1px solid #86b8c7;
  background: #dff1f7;
  color: #1a4d5d;
  font-weight: 600;
}

.form-note {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 0.8rem;
}

.form-field {
  display: grid;
  gap: 0.36rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: #283443;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #adbcc8;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  padding: 0.66rem 0.75rem;
  font: inherit;
  font-weight: 500;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid rgba(30, 90, 107, 0.2);
  outline-offset: 1px;
  border-color: #7e9dad;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.message-shell {
  border: 1px solid #adbcc8;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.message-shell:focus-within {
  outline: 3px solid rgba(30, 90, 107, 0.2);
  outline-offset: 1px;
  border-color: #7e9dad;
}

.message-shell textarea {
  border: 0;
  border-bottom: 1px solid #d0dbe3;
  border-radius: 0;
  margin: 0;
  min-height: 108px;
}

.message-shell textarea:focus-visible {
  outline: 0;
}

.message-tags-wrap {
  padding: 0.62rem 0.72rem 0.75rem;
  background: #f6f9fb;
}

.message-tags-title {
  margin: 0 0 0.48rem;
  color: #4a5866;
  font-size: 0.85rem;
  font-weight: 700;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.tag-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-option span {
  display: inline-flex;
  align-items: center;
  border: 1px solid #aebdc8;
  background: #eef3f6;
  color: #2a3a4a;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.tag-option input:checked + span {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: #ffffff;
}

.contact-links {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-footer {
  background: #1b2832;
  color: #d9e2ec;
  padding: 1.25rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.45rem 1.2rem;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .section {
    padding: 4.2rem 0;
  }

  .hero.section {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero-stage {
    min-height: 620px;
  }

  .hero-content {
    margin-left: auto;
    margin-right: clamp(0.4rem, 2.2vw, 2rem);
  }

  .card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
