/* Handyman Professional Services LLC — site styles
   Hand-written, no framework, no build step. Edit this file directly. */

:root {
  --blue: #004F71;
  --blue-dark: #00374F;
  --blue-deep: #002A3D;
  --green: #1C9B4B;
  --green-dark: #17843F;
  --ink: #16212B;
  --body: #46545F;
  --muted: #6D7B86;
  --line: #DFE6EB;
  --soft: #F3F7F9;
  --white: #fff;
  --wrap: 1140px;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 42, 61, .07);
  --shadow-lg: 0 10px 30px rgba(0, 42, 61, .12);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); letter-spacing: -.015em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--soft { background: var(--soft); }
.section--blue { background: var(--blue); color: #D8E7EE; }
.section--blue h2, .section--blue h3 { color: #fff; }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--green); margin: 0 0 .6rem;
}
.section--blue .eyebrow { color: #7FD4A0; }
.lede { font-size: 1.08rem; max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 6px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-dark); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); }
.btn--ghost { border-color: currentColor; color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Top bar + header */
.topbar {
  background: var(--blue-deep); color: #B9D2DE;
  font-size: .87rem; padding: .45rem 0;
}
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; align-items: center; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar .spacer { margin-left: auto; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 74px; }
.logo img { height: 46px; width: auto; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 1.35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .97rem;
  padding: .4rem 0; display: inline-block; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--green); }
.has-sub { position: relative; }
.has-sub > ul {
  position: absolute; top: 100%; left: -1rem; display: none;
  background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius);
  padding: .6rem; min-width: 250px; flex-direction: column; gap: 0;
}
.has-sub:hover > ul, .has-sub:focus-within > ul { display: flex; }
.has-sub > ul a { padding: .5rem .8rem; border-radius: 6px; border: 0; display: block; }
.has-sub > ul a:hover { background: var(--soft); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); cursor: pointer; padding: .3rem .5rem; }

/* Hero */
.hero { background: linear-gradient(120deg, var(--blue-deep), var(--blue) 65%); color: #D9E8EF; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.1rem; max-width: 52ch; }
.hero-points { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; gap: .55rem; }
.hero-points li { padding-left: 1.8rem; position: relative; color: #CFE3EC; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: .7rem; height: .38rem; border-left: 3px solid #7FD4A0;
  border-bottom: 3px solid #7FD4A0; transform: rotate(-45deg);
}

/* Estimate form card */
.form-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-lg); color: var(--body); }
.form-card h2 { font-size: 1.4rem; }
.form-card p { font-size: .95rem; color: var(--muted); }
.field { margin-bottom: .85rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .7rem .85rem; border: 1px solid var(--line);
  border-radius: 6px; font: inherit; font-size: .97rem; color: var(--ink); background: #fff;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
.form-note { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }

/* Trust strip */
.trust { background: var(--ink); color: #C9D4DC; padding: 1.1rem 0; }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.trust strong { color: #fff; }

/* Cards */
.grid { display: grid; gap: 1.4rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .97rem; margin-bottom: .9rem; }
.card .more { margin-top: auto; font-weight: 700; text-decoration: none; font-size: .95rem; }
.card .more::after { content: " →"; }

/* Before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba figure { margin: 0; }
.ba img { border-radius: 8px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ba figcaption { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .45rem; }
.ba-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.ba-item h3 { font-size: 1.05rem; margin: .9rem 0 .2rem; }
.ba-item p { font-size: .93rem; margin: 0; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; font-size: 1.6rem; font-weight: 700;
  color: var(--green); border-bottom: 3px solid var(--green); padding-bottom: .2rem;
}
.section--blue .step p { color: #C6DCE6; }

/* Areas */
.areas { display: flex; flex-wrap: wrap; gap: .7rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.areas a {
  display: inline-block; padding: .6rem 1.1rem; border: 1px solid var(--line);
  border-radius: 100px; background: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
}
.areas a:hover { border-color: var(--blue); }

/* Footer */
.site-footer { background: var(--blue-deep); color: #A9C5D3; font-size: .95rem; padding: 3rem 0 1.5rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 .8rem; }
.site-footer a { color: #D6E7EF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer img { height: 62px; width: auto; margin-bottom: 1rem; }
.legal { border-top: 1px solid rgba(255,255,255,.14); margin-top: 2.2rem; padding-top: 1.2rem; font-size: .85rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Article pages */
.article { max-width: 46rem; }
.article h2 { margin-top: 2rem; }
.article h3 { margin-top: 1.5rem; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.3rem; }
.article li { margin-bottom: .4em; }
.page-head { background: var(--soft); border-bottom: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.4rem) 0; }
.page-head h1 { margin-bottom: .3rem; }
.crumb { font-size: .87rem; color: var(--muted); }
.crumb a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid--3, .steps, .site-footer .cols { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: var(--shadow-lg); padding: 1rem 1.25rem; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .2rem; }
  .has-sub > ul { position: static; display: flex; box-shadow: none; padding: .2rem 0 .2rem 1rem; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .grid--3, .grid--2, .steps, .site-footer .cols { grid-template-columns: 1fr; }
  .topbar .wrap { justify-content: center; }
  .topbar .spacer { margin-left: 0; }
}
