/* Hoffmann Services website: placeholder colors until final branding arrives */
:root {
  --navy: #13283b;
  --navy-2: #1d3a54;
  --accent: #e8a317;
  --accent-dark: #b97f0a;
  --ink: #1c2530;
  --muted: #5b6774;
  --line: #dde3e9;
  --bg: #ffffff;
  --bg-soft: #f4f6f8;
  --radius: 10px;
  --wrap: 1120px;
  --head: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; scroll-margin-top: 70px; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  font-family: var(--head);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: .5em;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--navy); }
.btn-primary:hover { background: #f2b53a; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--navy);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 70px;
}
.logo { text-decoration: none; line-height: 1.1; }
.logo strong { display: block; font-family: var(--head); font-size: 1.35rem; letter-spacing: .04em; }
.logo span { font-size: .8rem; color: #b9c6d3; letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; font-weight: 500; color: #dfe6ec; }
.nav a:hover { color: #fff; }
.nav .btn { padding: 10px 16px; color: var(--navy); }
.menu-btn {
  display: none;
  background: none; border: 1px solid rgba(255,255,255,.4); color: #fff;
  border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer;
}

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 64px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero .lead { color: #c9d4de; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-area { margin-top: 28px; font-size: .95rem; color: #b9c6d3; }

/* Photo placeholders (swap for real project photos) */
.photo {
  background: repeating-linear-gradient(135deg, #24425e 0 14px, #203c56 14px 28px);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #9fb3c6; font-size: .9rem; text-align: center; padding: 16px;
  aspect-ratio: 4 / 3;
}
.section .photo { background: repeating-linear-gradient(135deg, #e6ebf0 0 14px, #edf1f4 14px 28px); color: var(--muted); }

/* Services */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); flex: 1; }
.card a.more { font-weight: 600; text-decoration: none; color: var(--accent-dark); }
.card a.more:hover { text-decoration: underline; }
.icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #fdf3df; color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.icon svg { width: 24px; height: 24px; }

/* Why us */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 32px; }
.why h3 { font-size: 1.1rem; }
.why p { color: var(--muted); font-size: .97rem; }

/* Split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.note { font-size: .95rem; color: var(--muted); margin-top: 20px; }

/* Builder band */
.band { background: var(--navy-2); color: #fff; padding: 56px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.band p { color: #c9d4de; max-width: 620px; margin: 0; }

/* Membership teaser */
.member {
  border: 2px dashed var(--accent);
  border-radius: 14px;
  padding: 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: #fffaf0;
}
.member p { margin: 0; color: var(--muted); max-width: 640px; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; background: var(--navy); color: #fff;
  padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}

/* Area list */
.towns { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.towns li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 500; }

/* Final CTA + footer */
.cta { text-align: center; }
.cta .lead { margin: 0 auto 28px; }
.site-footer { background: var(--navy); color: #b9c6d3; padding: 48px 0 28px; font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-family: var(--head); font-size: 1.05rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 18px; font-size: .85rem; }

/* Owner-to-fill placeholders: highlighted so they are easy to spot in drafts */
.fill {
  background: #fff3c4; color: #6b4e00;
  border: 1px dashed #d6a600; border-radius: 4px;
  padding: 0 6px; font-size: .92em; white-space: nowrap;
}

/* Service pages */
.page-hero { background: var(--navy); color: #fff; padding: 48px 0 60px; }
.page-hero .lead { color: #c9d4de; }
.crumbs { font-size: .9rem; color: #9fb3c6; margin-bottom: 18px; }
.crumbs a { color: #c9d4de; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.checks { list-style: none; margin: 20px 0 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent-dark); }
.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before {
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: #fff; font-family: var(--head); font-weight: 700;
  margin-bottom: 12px;
}
.steps p { color: var(--muted); margin: 0; font-size: .97rem; }
.callout { margin-top: 28px; background: #fffaf0; border-left: 4px solid var(--accent); padding: 16px 20px; border-radius: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 500; text-decoration: none; }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }

/* Stay Current Plan page */
.split.top { align-items: start; }
.tag-light { background: var(--accent); color: var(--navy); }
.nots .x { width: 20px; flex: none; text-align: center; color: #b03a2e; font-weight: 700; }
.form h2 { font-size: 1.5rem; }

/* Estimate form */
.page-hero .lead a { color: #fff; }
.form-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 11px 12px; border: 1px solid #c4cdd6; border-radius: 8px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; background: #fdf3f2; }
.field .radio { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-right: 18px; }
.field .radio input { width: auto; }
.req { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 0 0 14px; font-weight: 500; }
.form-msg.error { color: #b03a2e; }
.form-msg.success { color: #1e7a46; background: #e9f7ef; border-radius: 8px; padding: 12px 14px; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-side h3 { font-size: 1.05rem; margin-top: 8px; }
.form-side p { color: var(--muted); }

/* Phone and tablet */
@media (max-width: 900px) {
  .hero .wrap, .split, .form-wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .why { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 70px;
    background: var(--navy); flex-direction: column; align-items: stretch;
    gap: 0; padding: 8px 20px 20px; border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 40px 0 56px; }
  .grid-3, .why, .photo-row, .site-footer .cols { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; text-align: center; }
  .member { padding: 24px; }
  .form { padding: 20px; }
  .form .row { grid-template-columns: 1fr; gap: 0; }
}
