/* Mended Home Services — site styles
   Brand tokens match the brand kit. */

:root {
  --ink: #0B1418;
  --ink-raised: #131E23;
  --ink-panel: #1A262B;
  --line: #25343A;
  --line-2: #3A4A50;
  --brass: #CDA971;
  --brass-hover: #DDBD88;
  --brass-deep: #8A6A34;
  --bone: #FBF9F7;
  --linen: #F3EEE6;
  --linen-line: #D9CFBF;

  --text: #FBF9F7;
  --text-2: #C4CBCD;
  --muted: #A7B0B3;
  --text-dark: #0B1418;
  --text-dark-2: #4E585C;

  --font: Poppins, "Helvetica Neue", Arial, sans-serif;
  --font-mark: Montserrat, Poppins, "Arial Black", sans-serif;

  --gutter: clamp(20px, 5vw, 80px);
  --section: clamp(72px, 10vw, 120px);
  --max: 1280px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
a { color: var(--brass); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
svg use { pointer-events: none; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--brass); color: var(--ink); padding: 10px 16px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: 13px; letter-spacing: .3em; text-transform: uppercase; font-weight: 500; color: var(--brass);
}
.eyebrow-rule { display: flex; align-items: center; gap: 16px; }
.eyebrow-rule::before { content: ""; width: 48px; height: 1px; background: var(--brass); flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: 15px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  font: 600 16px/1 var(--font); text-decoration: none; letter-spacing: .01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-hover); color: var(--ink); }
.btn-outline { border-color: var(--brass); color: var(--text); font-weight: 500; }
.btn-outline:hover { background: rgba(205, 169, 113, .12); color: var(--text); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-lg { min-height: 60px; padding: 0 32px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 20, 24, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; }
.brand-mark { width: 44px; height: 37px; color: var(--bone); flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-word { font-family: var(--font-mark); font-weight: 800; font-size: 23px; line-height: 1; letter-spacing: .01em; }
.brand-sub { font-size: 8.5px; letter-spacing: .3em; font-weight: 500; line-height: 1; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--brass); }
.nav .nav-phone { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.nav-phone svg { width: 18px; height: 18px; color: var(--brass); }

.header-actions { display: none; gap: 8px; }
.icon-btn {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-2); color: var(--bone); cursor: pointer; padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn-brass { border-color: var(--brass); color: var(--brass); }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 1.8px; background: currentColor; transition: transform .2s, opacity .2s; }
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(48px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.05; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; font-weight: 300; color: var(--brass); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-2); max-width: 58ch; }

.hero-visual { position: relative; aspect-ratio: 1.08 / 1; max-width: 100%; }
.hero-frame { position: absolute; inset: 0 0 28px 28px; border: 1px solid var(--brass); }
.hero-panel, .hero-photo {
  position: absolute; inset: 28px 28px 0 0;
  background: var(--ink-panel);
}
.hero-photo { width: calc(100% - 28px); height: calc(100% - 28px); object-fit: cover; }
.hero-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding-bottom: 96px; }
.hero-mark { width: 44%; height: auto; color: var(--bone); }
.hero-tag { font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); text-align: center; padding-inline: 16px; }
.owner-chip {
  position: absolute; left: -28px; bottom: 48px;
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); border: 1px solid var(--brass); padding: 14px 22px 14px 14px;
}
.owner-chip strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.owner-chip small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }

.avatar { border-radius: 50%; overflow: hidden; border: 2px solid var(--brass); flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.avatar-sm { width: 58px; height: 58px; }
.avatar-lg { width: min(420px, 100%); aspect-ratio: 1; border-width: 6px; }

/* Trust strip */
.trust { background: var(--ink-raised); }
.trust-list {
  list-style: none; margin-block: 0; padding-block: 34px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.trust-list li { display: flex; align-items: center; gap: 14px; font-weight: 500; font-size: 16px; line-height: 1.35; }
.trust-list li + li { border-left: 1px solid #2E3E44; padding-left: 28px; }
.trust-list svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: var(--brass); stroke-width: 1.6; }

/* Sections */
.section { padding-block: var(--section); }
.section-light { background: var(--linen); color: var(--text-dark); }
.section-light .eyebrow { color: var(--brass-deep); }
.section-light .muted { color: var(--text-dark-2); }
.section-raised { background: var(--ink-raised); }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: clamp(40px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 3.6vw, 48px); }
.section-head.split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 48px; }
.section-head.split > div { display: flex; flex-direction: column; gap: 16px; }
.section-head.split > p { max-width: 400px; }
.section-head.center { align-items: center; text-align: center; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card {
  background: var(--bone); border-top: 3px solid var(--brass);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 18px;
}
.card-icon { width: 52px; height: 52px; fill: none; stroke: var(--brass-deep); stroke-width: 1.4; }
.card h3 { font-size: 24px; }
.card p { color: var(--text-dark-2); font-size: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: #1E2A2F; }
.ticks li { display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 6px; height: 6px; background: var(--brass); flex-shrink: 0; }
.card-link {
  margin-top: auto; padding-top: 8px;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--brass-deep); font-weight: 600; font-size: 15px; text-decoration: none;
}
.card-link svg { width: 16px; height: 16px; transition: transform .15s; }
.card-link:hover svg { transform: translateX(3px); }

/* About */
.about { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(40px, 7vw, 96px); align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 20px; max-width: 640px; }
.about-copy h2 { font-size: clamp(34px, 3.6vw, 48px); }
.about-copy > p:not(.eyebrow):not(.signature) { color: var(--text-2); font-size: 18px; }
.about-copy .strong { color: var(--text); font-weight: 500; }
.tagline-rule {
  display: flex; align-items: center; gap: 18px;
  font-style: italic; font-weight: 300; letter-spacing: .04em; font-size: 20px !important; color: var(--text) !important;
}
.tagline-rule::before { content: ""; width: 48px; height: 1px; background: var(--brass); flex-shrink: 0; }
.signature { color: var(--muted); font-size: 15px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { border: 1px solid #2E3E44; padding: clamp(28px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.step-num {
  width: 44px; height: 44px; border: 1px solid var(--brass); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--brass); font-weight: 500; font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); font-size: 16px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 22px; }
.contact-copy h2 { font-size: clamp(32px, 3.6vw, 48px); }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.contact-list a { display: flex; align-items: center; gap: 16px; color: var(--text); text-decoration: none; font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--brass); }
.ring { width: 48px; height: 48px; border: 1.5px solid var(--brass); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--brass); }
.ring svg { width: 20px; height: 20px; }

.quote-form {
  background: var(--ink-raised); border: 1px solid var(--brass);
  padding: clamp(24px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 500; color: #D5DADB; }
.opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--ink); border: 1px solid var(--line-2); color: var(--text);
  font: 400 16px/1.5 var(--font); padding: 13px 16px; border-radius: 0;
}
.field input, .field select { height: 54px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); }
.field [aria-invalid="true"] { border-color: #E08A7A; }
.field textarea::placeholder { color: #6F7C80; }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.form-status { font-size: 14px; color: var(--muted); flex: 1 1 240px; }
.form-status.is-error { color: #F0A898; }
.form-status.is-success { color: var(--brass); font-weight: 500; }

/* Footer */
.site-footer { border-top: 1px solid var(--brass); padding-block: 64px 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-tag { font-style: italic; font-weight: 300; color: var(--muted); letter-spacing: .04em; font-size: 15px; }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 4px; }
.footer-cols a, .footer-cols span { color: #D5DADB; text-decoration: none; font-size: 15px; overflow-wrap: anywhere; }
.footer-cols a:hover { color: var(--brass); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #8C979A;
}

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 24px; }
  .nav a[href="#process"] { display: none; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 76px; }
  .header-inner { height: 72px; }
  .header-actions { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--brass);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding-block: 14px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[href="#process"] { display: block; }
  .nav .btn { margin-top: 16px; min-height: 54px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1.4 / 1; }
  .owner-chip { left: 12px; bottom: 12px; }

  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding-block: 26px; }
  .trust-list li + li { border-left: 0; padding-left: 0; }
  .trust-list li { font-size: 14px; gap: 10px; }
  .trust-list svg { width: 22px; height: 22px; }

  .section-head.split { flex-direction: column; align-items: flex-start; gap: 16px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; justify-items: center; }
  .avatar-lg { width: min(260px, 70%); border-width: 4px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-mark { width: 36px; height: 30px; }
  .brand-word { font-size: 19px; }
  .brand-sub { font-size: 7px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-lg { min-height: 56px; padding: 0 20px; font-size: 16px; }
  .hero-visual { aspect-ratio: 1.15 / 1; }
  .hero-frame { inset: 0 0 16px 16px; }
  .hero-panel, .hero-photo { inset: 16px 16px 0 0; }
  .hero-panel { padding-bottom: 64px; }
  .hero-tag { display: none; }
  .owner-chip { padding: 10px 14px 10px 10px; gap: 10px; }
  .avatar-sm { width: 44px; height: 44px; }
  .quote-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; }
}

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