/* The Expected Result — residential site.
   Ported from the approved warm mockup (the "res site we built first").
   Terracotta + cream + marine · Newsreader (serif headlines) + Barlow (body). */

:root {
  --paper: #F8F4EC;
  --paper-2: #F1E8D8;
  --card: #FFFDF8;
  --ink: #2A2520;
  --ink-2: #574E44;
  --muted: #8B8073;
  --line: #E5DAC7;
  --clay: #C0673F;
  --clay-deep: #9F4E2B;
  --clay-soft: #F3E2D6;
  --marine: #1D4D67;
  --marine-deep: #143B50;
  --marine-soft: #DDE7EC;
  --gold: #C8932F;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Barlow", system-ui, -apple-system, sans-serif;
  --shadow: 0 16px 44px rgba(42, 37, 32, 0.13);
  --shadow-sm: 0 5px 18px rgba(42, 37, 32, 0.09);
  --r: 20px;
  --r-sm: 12px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--serif); color: var(--ink); font-weight: 500; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.accent { color: var(--clay); font-style: italic; }
.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 14px 26px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: all 0.2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 8px 20px rgba(192, 103, 63, 0.28); }
.btn-primary:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(192, 103, 63, 0.34); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: #fff; color: var(--marine-deep); }

/* ---------- header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 244, 236, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; }
.brand .wm { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1; letter-spacing: -0.01em; }
.brand .wm small { display: block; font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 500; font-size: 15px; color: var(--ink-2); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--clay); }
.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); font-size: 15px; }
.nav-phone svg { width: 16px; height: 16px; color: var(--clay); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 88% 8%, rgba(192, 103, 63, 0.10), transparent 60%),
    radial-gradient(50% 60% at 6% 96%, rgba(29, 77, 103, 0.09), transparent 60%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 80px 0 92px; }
.hero h1 { font-size: 60px; line-height: 1.04; margin: 18px 0 0; }
.hero .lead { font-size: 19px; line-height: 1.62; color: var(--ink-2); margin: 24px 0 0; max-width: 33em; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-trust .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.hero-trust b { color: var(--ink); font-weight: 600; }

/* image placeholders */
.ph {
  position: relative; border-radius: var(--r); overflow: hidden;
  background:
    radial-gradient(120% 120% at 80% 12%, rgba(192,103,63,0.16), transparent 55%),
    radial-gradient(120% 120% at 10% 95%, rgba(29,77,103,0.18), transparent 55%),
    linear-gradient(135deg, #EFE4D0, #E3D4BB);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.ph::after {
  content: attr(data-cap); position: absolute; left: 14px; bottom: 13px;
  font-family: var(--sans); font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-2); background: rgba(255, 253, 248, 0.82); padding: 5px 11px; border-radius: 999px;
}
.ph .pic { width: 52px; height: 52px; color: rgba(29, 77, 103, 0.4); stroke-width: 1.4; }
/* Real photo layer — drops in over the gradient. If the file/URL is missing,
   onerror removes it and the gradient placeholder shows through (graceful). */
.ph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(.ph-photo)::after { content: none; }
.ph:has(.ph-photo) .pic { display: none; }
.hero-ph { height: 480px; }
.hero-chip {
  position: absolute; left: 22px; bottom: 58px; display: flex; align-items: center; gap: 12px;
  background: rgba(255, 253, 248, 0.94); border: 1px solid var(--line); border-radius: 14px; padding: 12px 15px; box-shadow: var(--shadow-sm);
}
.hero-chip .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--clay-soft); display: flex; align-items: center; justify-content: center; }
.hero-chip .ico svg { width: 20px; height: 20px; color: var(--clay); }
.hero-chip .t b { display: block; color: var(--ink); font-size: 14px; font-weight: 600; }
.hero-chip .t span { font-size: 12px; color: var(--muted); }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-in { display: flex; align-items: center; justify-content: center; gap: 14px 38px; flex-wrap: wrap; padding: 20px 0; }
.strip-item { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink); }
.strip-item svg { width: 17px; height: 17px; color: var(--clay); }
.strip-tag { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--marine); }

/* Certified / authorized brand logo wall */
.brandwall { background: var(--paper-2); border-bottom: 1px solid var(--line); padding: 40px 0; }
.brandwall .eyebrow { display: block; text-align: center; margin-bottom: 6px; }
.brandwall-note { text-align: center; color: var(--ink-2); font-size: 14px; max-width: 52ch; margin: 0 auto 22px; }
.brandwall-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 52px; }
.brandwall-row img { height: 34px; width: auto; filter: grayscale(100%); opacity: 0.7; transition: filter 0.2s ease, opacity 0.2s ease; }
.brandwall-row img:hover { filter: none; opacity: 1; }
@media (max-width: 600px) { .brandwall-row { gap: 22px 34px; } .brandwall-row img { height: 28px; } }
@media (prefers-reduced-motion: reduce) { .brandwall-row img { transition: none; } }

/* ---------- section ---------- */
section { padding: 96px 0; }
.sec-head { max-width: 640px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { font-size: 42px; line-height: 1.1; margin-top: 12px; }
.sec-head p { font-size: 18px; line-height: 1.6; color: var(--ink-2); margin-top: 16px; }

/* services grid */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 52px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 24px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc .tile { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.svc .tile svg { width: 24px; height: 24px; stroke-width: 1.8; }
.svc.clay .tile { background: var(--clay-soft); } .svc.clay .tile svg { color: var(--clay); }
.svc.marine .tile { background: var(--marine-soft); } .svc.marine .tile svg { color: var(--marine); }
.svc h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.svc .brandtag { font-family: var(--sans); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); margin-top: 4px; }
.svc p { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); margin-top: 10px; }

/* feature split */
.feature { background: var(--paper-2); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-ph { height: 440px; }
.feature h2 { font-size: 40px; line-height: 1.1; }
.feature .lead { font-size: 18px; line-height: 1.62; color: var(--ink-2); margin-top: 18px; }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.feature li { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--ink); }
.feature li svg { width: 22px; height: 22px; color: var(--clay); flex: none; margin-top: 1px; }

/* work teaser */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.work figure { margin: 0; }
.work .ph { height: 300px; }
.work figcaption { margin-top: 14px; }
.work .cat { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--clay); }
.work .ttl { font-family: var(--serif); font-size: 21px; color: var(--ink); margin-top: 5px; }

/* testimonial */
.quote { background: var(--marine-deep); color: #F3EEE4; text-align: center; }
.quote .mark { font-family: var(--serif); font-size: 80px; line-height: 0.6; color: rgba(243, 226, 214, 0.5); }
.quote blockquote { font-family: var(--serif); font-size: 32px; line-height: 1.34; max-width: 880px; margin: 22px auto 0; font-weight: 400; }
.quote .who { margin-top: 26px; font-family: var(--sans); font-weight: 600; font-size: 15px; color: #fff; }
.quote .who span { display: block; font-weight: 500; color: rgba(243, 238, 228, 0.66); font-size: 14px; margin-top: 3px; }

/* CTA band */
.cta { text-align: center; }
.cta-card { background: linear-gradient(135deg, var(--clay), var(--clay-deep)); border-radius: 28px; padding: 70px 40px; color: #fff; box-shadow: 0 24px 60px rgba(159, 78, 43, 0.32); }
.cta-card h2 { color: #fff; font-size: 44px; line-height: 1.08; }
.cta-card p { font-size: 18px; color: rgba(255, 245, 238, 0.92); margin: 16px auto 0; max-width: 32em; }
.cta-card .row { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- page hero (sub-pages) ---------- */
.page-hero { position: relative; overflow: hidden; text-align: center; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at 50% 20%, rgba(192, 103, 63, 0.10), transparent 62%);
}
.page-hero-in { position: relative; max-width: 760px; margin: 0 auto; padding: 72px 0 60px; }
.page-hero h1 { font-size: 50px; line-height: 1.06; margin: 14px 0 0; }
.page-hero p { font-size: 19px; line-height: 1.6; color: var(--ink-2); margin: 18px auto 0; max-width: 34em; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.about-grid p { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); margin-top: 16px; }
.about-quote { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--clay); border-radius: var(--r); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.about-quote blockquote { font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--ink); margin: 0; }
.about-quote .by { margin-top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--clay); }
.vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.val { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px; }
.val .tile { width: 46px; height: 46px; border-radius: 12px; background: var(--clay-soft); color: var(--clay); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.val .tile svg { width: 22px; height: 22px; }
.val h3 { font-size: 19px; font-weight: 600; }
.val p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin-top: 8px; }
.eco { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; justify-content: center; }
.eco span { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.area { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 22px; }
.area svg { width: 26px; height: 26px; color: var(--clay); margin-bottom: 12px; }
.area h3 { font-size: 17px; font-weight: 600; }
.area p { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }

/* ---------- forms (contact / quote) ---------- */
.form-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 60px; align-items: start; }
.form-info h2 { font-size: 30px; line-height: 1.12; }
.form-info > p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-top: 14px; }
.contact-items { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.contact-item { display: flex; align-items: flex-start; gap: 14px; }
.contact-item svg { width: 22px; height: 22px; color: var(--clay); flex: none; margin-top: 2px; }
.contact-item strong { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-item a, .contact-item span { font-size: 15.5px; color: var(--ink); line-height: 1.55; }
.contact-item a:hover { color: var(--clay); }
.qsteps { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 24px; }
.qsteps li { display: flex; gap: 16px; align-items: flex-start; }
.qsteps .n { width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--clay); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(192,103,63,0.3); }
.qsteps strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.qsteps p { font-size: 14.5px; color: var(--ink-2); }

.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 36px; box-shadow: var(--shadow-sm); }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.req { color: var(--clay); }
.field input, .field textarea {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 13px 15px; color: var(--ink); font-family: var(--sans); font-size: 15px; outline: none;
  transition: border-color 0.18s, box-shadow 0.18s; resize: vertical;
}
.field input:focus, .field textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(192,103,63,0.16); }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--clay); flex: none; }
.status { font-size: 14.5px; padding: 12px 16px; border-radius: var(--r-sm); display: none; }
.status.success { background: rgba(30,126,52,0.08); color: #1e7e34; border: 1px solid rgba(30,126,52,0.25); display: block; }
.status.error { background: rgba(220,38,38,0.07); color: #c0392b; border: 1px solid rgba(220,38,38,0.22); display: block; }

/* Post-submit confirmation card (replaces the form, like the commercial site) */
.form-done { text-align: center; padding: 30px 12px 18px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.form-done-check { width: 66px; height: 66px; border-radius: 50%; background: var(--clay); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(192,103,63,0.32); }
.form-done-check svg { width: 32px; height: 32px; stroke-width: 2.6; }
.form-done h3 { font-family: var(--serif); font-weight: 500; font-size: 30px; color: var(--ink); }
.form-done p { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 32em; }
.form-done p a { color: var(--clay); font-weight: 600; white-space: nowrap; }
.form-done .btn { margin-top: 6px; }

/* ---------- footer ---------- */
footer { background: #221F1A; color: #C8BFB2; padding: 64px 0 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; }
.foot .brand .wm { color: #fff; }
.foot .brand .wm small { color: rgba(200,191,178,0.7); }
.foot p.tag { margin-top: 16px; font-size: 14.5px; line-height: 1.6; max-width: 26em; }
.foot h4 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.foot a, .foot li { font-size: 14.5px; color: #C8BFB2; }
.foot a:hover { color: var(--clay); }
.foot .contact-row { display: flex; align-items: center; gap: 10px; }
.foot .contact-row svg { width: 16px; height: 16px; color: var(--clay); flex: none; }
.cross { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 600; color: #fff; }
.cross svg { width: 15px; height: 15px; color: var(--clay); }
.foot-bot { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: rgba(200,191,178,0.7); }
.foot-bot .lic { font-family: var(--sans); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line);
    padding: 8px 32px 20px; display: none; box-shadow: var(--shadow-sm);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-phone { display: none; }
  .hero-grid, .feature-grid, .about-grid, .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 46px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .vals { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .hero h1 { font-size: 38px; }
  .sec-head h2 { font-size: 32px; }
  .svc-grid, .checks, .form-row { grid-template-columns: 1fr; }
  .areas-grid, .foot-grid { grid-template-columns: 1fr; }
  .cta-card { padding: 48px 26px; }
  .cta-card h2 { font-size: 32px; }
  .quote blockquote { font-size: 24px; }
  .form-card { padding: 26px 22px; }
  section { padding: 68px 0; }
}
