/* HomeUp Services — landing page */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --navy: #071a38;
  --navy-deep: #04112a;
  --ink: #0b1f42;
  --gold: #cfa453;
  --gold-text: #8c6a22;
  --muted: #4a5872;
  --muted-on-dark: #c9d2e3;
  --line: #e6e2d8;
  --cream: #f7f5f0;
  --field: #7b8699;
  --error: #b42318;
  --success: #1e6b3a;
  --radius: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Montserrat", "Inter", system-ui, sans-serif;
  --focus: var(--ink);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.dark { --focus: var(--gold); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { flex: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #dbb66c; color: var(--navy); }
.btn-outline { color: #fff; border-color: #8c9bb8; font-weight: 600; }
.btn-outline:hover { border-color: var(--gold); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #17305c; color: #fff; }
.btn:active { transform: translateY(1px); }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .container {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand img { height: 60px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 28px; font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.main-nav a.nav-link { text-decoration: none; padding: 12px 0; }
.header-call { min-height: 46px; padding: 10px 18px; font-size: 15px; }

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero .container {
  display: flex; flex-wrap: wrap; align-items: center; gap: 56px;
  padding-top: 88px; padding-bottom: 96px;
}
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.eyebrow-loc {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.hero h1 { font-weight: 800; font-size: clamp(34px, 3.2vw + 14px, 56px); line-height: 1.08; letter-spacing: -.01em; }
.hero h1 span { color: var(--gold); }
.hero-lead { font-size: 19px; color: var(--muted-on-dark); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Estimate form */
.estimate {
  flex: 1 1 400px; min-width: 0; max-width: 480px;
  background: #fff; color: var(--ink);
  border-radius: 14px; border-top: 4px solid var(--gold);
  padding: 32px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  --focus: var(--ink);
  scroll-margin-top: 16px;
}
.estimate-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.estimate-head h2 { font-weight: 800; font-size: 24px; }
.estimate-head p { font-size: 15px; color: var(--muted); }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row > .field { flex: 1 1 160px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .fieldset legend { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; min-height: 48px;
  border: 1px solid var(--field); border-radius: 8px; background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 1px; border-color: var(--ink);
}
.field [aria-invalid="true"] { border-color: var(--error); border-width: 2px; }
.field-error { font-size: 13.5px; color: var(--error); font-weight: 500; }
.field-error:empty { display: none; }

.fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fieldset legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--field); border-radius: 999px; font-size: 15px; cursor: pointer;
  user-select: none; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.fieldset[aria-invalid="true"] .chip span { border-color: var(--error); }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }

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

.submit { width: 100%; min-height: 54px; font-size: 16px; }
.submit[disabled] { opacity: .7; cursor: progress; }
.form-note { font-size: 14px; color: var(--muted); text-align: center; }
.form-note a { font-weight: 600; }
.form-status { font-size: 14.5px; border-radius: 8px; }
.form-status:not(:empty) { padding: 12px 14px; background: #fdecea; color: var(--error); border: 1px solid #f5c2bc; }

.form-success { display: flex; flex-direction: column; gap: 14px; text-align: center; align-items: center; padding: 12px 0; }
.form-success[hidden] { display: none; }
.form-success .tick {
  width: 56px; height: 56px; border-radius: 50%; background: #e7f3ec; color: var(--success);
  display: flex; align-items: center; justify-content: center;
}
.form-success h2 { font-size: 24px; font-weight: 800; }
.form-success p { color: var(--muted); }

/* Trust strip */
.trust { background: var(--gold); color: var(--navy); }
.trust .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 32px; padding-top: 28px; padding-bottom: 28px; }
.trust-item { flex: 1 1 240px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.trust-item span { font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.3; text-transform: uppercase; letter-spacing: .02em; }

/* Sections */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; margin-bottom: 48px; }
.kicker { font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text); }
.section-head h2 { font-weight: 800; font-size: clamp(30px, 2vw + 18px, 40px); }
.section-head p { font-size: 18px; color: var(--muted); max-width: 620px; }

.services { background: var(--cream); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.card-icon { width: 60px; height: 60px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.card h3 { font-weight: 700; font-size: 21px; }
.card p { color: var(--muted); }
.card-link { margin-top: auto; font-family: var(--font-head); font-weight: 700; font-size: 15px; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.card-link:hover { color: var(--gold-text); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 14px; padding: 8px 4px; }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--gold-text); }
.steps h3 { font-weight: 700; font-size: 21px; }
.steps p { color: var(--muted); }

.cta { background: var(--navy); color: #fff; }
.cta .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 40px; padding-top: 80px; padding-bottom: 80px; }
.cta-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cta h2 { font-weight: 800; font-size: clamp(28px, 2vw + 16px, 40px); }
.cta p { font-size: 18px; color: var(--muted-on-dark); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: var(--muted-on-dark); }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer-brand { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { width: 220px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.footer-contact { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.footer-contact h2 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.footer-contact a, .footer-contact .line { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding: 6px 0; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact svg { color: var(--gold); flex: none; }
.footer-bottom { border-top: 1px solid #1e2f50; padding-top: 24px; font-size: 14px; color: #9aa7c0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.footer-bottom a { color: #c9d2e3; }
.footer-bottom a:hover { color: var(--gold); }

/* Sticky call bar (phones) */
.mobile-bar { display: none; }

@media (max-width: 760px) {
  .main-nav .nav-link { display: none; }
  .brand img { height: 46px; }
  .header-call span.long { display: none; }
  .hero .container { padding-top: 48px; padding-bottom: 56px; gap: 40px; }
  .hero-copy { gap: 22px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .estimate { padding: 24px 20px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 17px; }
  .trust-item { justify-content: flex-start; }
  .cta .container { padding-top: 56px; padding-bottom: 56px; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .container { padding-left: 16px; padding-right: 16px; }

  body { padding-bottom: 76px; }
  .mobile-bar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(7, 26, 56, .08);
  }
  .mobile-bar .btn { flex: 1 1 0; min-height: 52px; padding: 12px 10px; }
}

@media (max-width: 380px) {
  .header-call { padding: 10px 12px; }
}

/* Simple pages (privacy, thank-you) */
.page { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.page h1 { font-size: clamp(28px, 2vw + 18px, 38px); font-weight: 800; margin-bottom: 20px; }
.page h2 { font-size: 20px; font-weight: 700; margin: 32px 0 10px; }
.page p, .page li { color: var(--muted); }
.page p + p { margin-top: 12px; }

.form-success:focus, .form-success:focus-visible { outline: none; }
