/*
Theme Name: BUILD-WORTH Lead Hub
Theme URI: https://example.com/
Author: BUILD-WORTH
Description: A conversion-focused WordPress theme for the BUILD-WORTH property services lead hub.
Version: 1.1.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: buildworth-hub
*/

:root {
  --ink: #112119;
  --muted: #526159;
  --paper: #f5f2e9;
  --paper-2: #ebe6d8;
  --white: #fffefa;
  --forest: #173f30;
  --forest-2: #245c46;
  --gold: #c99b43;
  --gold-soft: #ead7a5;
  --line: rgba(17, 33, 25, 0.15);
  --danger: #9b2c2c;
  --success: #17653a;
  --shadow: 0 20px 60px rgba(17, 33, 25, 0.10);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{position:fixed!important;z-index:10000;left:12px;top:12px;width:auto;height:auto;margin:0;padding:12px 16px;clip:auto;color:#fff;background:#173f30}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-2); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.bw-container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.bw-narrow { width: min(calc(100% - 40px), 790px); margin-inline: auto; }
.bw-section { padding: clamp(72px, 8vw, 118px) 0; }
.bw-section--tight { padding: 54px 0; }
.bw-section--dark { color: var(--white); background: var(--forest); }
.bw-section--paper { background: var(--white); }
.bw-grid { display: grid; gap: 24px; }
.bw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bw-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bw-eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bw-section-title, h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 { margin: 0 0 22px; font-size: clamp(3rem, 7vw, 6.3rem); }
h2, .bw-section-title { margin: 0 0 22px; font-size: clamp(2.15rem, 4vw, 4.25rem); }
h3 { margin: 0 0 12px; font-size: 1.5rem; }
p { margin: 0 0 1.2em; }
.bw-lede { max-width: 760px; color: var(--muted); font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.bw-section--dark .bw-lede { color: rgba(255,255,255,.75); }

.bw-skip { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; color: #fff; background: var(--forest); }
.bw-skip:focus { top: 16px; }
.bw-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line); background: rgba(245, 242, 233, .94); backdrop-filter: blur(14px); }
.bw-header__inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.bw-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.bw-brand__mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--white); background: var(--forest); border-radius: 50%; font-family: Georgia, serif; font-size: 1rem; font-weight: 700; }
.bw-brand__text { display: grid; line-height: 1; }
.bw-brand__text strong { font-family: Georgia, serif; font-size: 1.15rem; letter-spacing: .06em; }
.bw-brand__text small { margin-top: 6px; color: var(--muted); font-size: .65rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.bw-nav { display: flex; align-items: center; gap: 26px; }
.bw-nav ul { margin: 0; padding: 0; display: flex; align-items: center; gap: 24px; list-style: none; }
.bw-nav a { color: var(--ink); font-size: .93rem; font-weight: 700; text-decoration: none; }
.bw-nav a:hover { color: var(--forest-2); }
.bw-menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 50%; }

.bw-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 21px; border: 1px solid var(--forest); color: #fff; background: var(--forest); border-radius: 999px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease; cursor: pointer; }
.bw-button:hover { color: #fff; background: var(--forest-2); transform: translateY(-2px); }
.bw-button--gold { border-color: var(--gold); color: var(--ink); background: var(--gold); }
.bw-button--gold:hover { color: var(--ink); background: #d7ae5f; }
.bw-button--outline { color: var(--forest); background: transparent; }
.bw-button--outline:hover { color: #fff; background: var(--forest); }
.bw-button--small { min-height: 42px; padding: 10px 17px; font-size: .9rem; }
.bw-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.bw-hero { position: relative; overflow: hidden; padding: clamp(82px, 10vw, 150px) 0 88px; }
.bw-hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px; border: 1px solid var(--gold-soft); border-radius: 50%; box-shadow: 0 0 0 70px rgba(201,155,67,.05), 0 0 0 140px rgba(201,155,67,.035); pointer-events: none; }
.bw-hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(44px, 7vw, 94px); align-items: center; }
.bw-hero__copy h1 em { color: var(--forest-2); font-style: normal; }
.bw-hero__panel { padding: clamp(24px, 4vw, 38px); background: var(--white); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); }
.bw-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bw-proof span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.5); font-size: .82rem; font-weight: 750; }

.bw-card { position: relative; min-height: 100%; padding: clamp(24px, 3.2vw, 38px); border: 1px solid var(--line); background: var(--white); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(17,33,25,.05); }
.bw-card__number { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 38px; color: var(--forest); background: var(--gold-soft); border-radius: 50%; font-weight: 900; }
.bw-card p { color: var(--muted); }
.bw-card__link { display: inline-flex; margin-top: 14px; font-weight: 850; text-decoration: none; }
.bw-card__link::after { content: "→"; margin-left: 8px; }
.bw-card--dark { color: #fff; border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); box-shadow: none; }
.bw-card--dark p { color: rgba(255,255,255,.72); }
.bw-card--dark a { color: var(--gold-soft); }

.bw-route { counter-reset: route; }
.bw-route__item { padding: 30px 0; display: grid; grid-template-columns: 70px 1fr auto; gap: 24px; align-items: center; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.bw-route__item:last-child { border-bottom: 1px solid var(--line); }
.bw-route__item::before { counter-increment: route; content: "0" counter(route); color: var(--gold); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.bw-route__item strong { font-family: Georgia, serif; font-size: clamp(1.55rem, 3vw, 2.7rem); line-height: 1.1; }
.bw-route__item span { color: var(--muted); }
.bw-route__item i { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-style: normal; transition: .2s ease; }
.bw-route__item:hover i { color: #fff; background: var(--forest); transform: translateX(4px); }

.bw-steps { counter-reset: steps; }
.bw-step { position: relative; padding-left: 72px; }
.bw-step::before { counter-increment: steps; content: counter(steps); position: absolute; left: 0; top: -5px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); background: var(--gold); border-radius: 50%; font-weight: 900; }
.bw-step p { color: rgba(255,255,255,.7); }
.bw-list { margin: 0; padding: 0; list-style: none; }
.bw-list li { position: relative; padding: 12px 0 12px 32px; border-bottom: 1px solid var(--line); }
.bw-list li::before { content: "✓"; position: absolute; left: 0; color: var(--forest-2); font-weight: 900; }
.bw-stateline { padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--paper-2); }

.bw-service-hero { padding: clamp(78px, 9vw, 126px) 0 70px; }
.bw-service-hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; }
.bw-service-hero h1 { font-size: clamp(3rem, 6vw, 5.5rem); }
.bw-service-hero h1 em { color: var(--forest-2); font-style: normal; }
.bw-service-hero__aside { padding: 28px; color: #fff; background: var(--forest); border-radius: var(--radius); }
.bw-service-hero__aside p:last-child { margin-bottom: 0; }
.bw-service-band { padding: 22px 0; border-block: 1px solid var(--line); background: var(--white); }
.bw-service-band__inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 34px; }
.bw-service-band span { color: var(--muted); font-size: .86rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.bw-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: start; }
.bw-callout { padding: clamp(30px, 4vw, 52px); color: #fff; background: var(--forest); border-radius: 24px; }
.bw-callout .bw-eyebrow { color: var(--gold-soft); }
.bw-callout h2 { font-size: clamp(2rem, 3vw, 3.3rem); }

.bw-footer { padding: 70px 0 28px; color: rgba(255,255,255,.72); background: #0d2118; }
.bw-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(2, .7fr); gap: 48px; }
.bw-footer h2, .bw-footer h3 { color: #fff; }
.bw-footer h2 { max-width: 520px; font-size: clamp(2rem, 4vw, 3.5rem); }
.bw-footer ul { margin: 0; padding: 0; list-style: none; }
.bw-footer li { margin-bottom: 10px; }
.bw-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.bw-footer a:hover { color: #fff; }
.bw-footer__bottom { margin-top: 60px; padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid rgba(255,255,255,.13); font-size: .82rem; }

.bw-page { padding: 78px 0 110px; }
.bw-page h1 { font-size: clamp(2.7rem, 5vw, 4.8rem); }
.bw-prose { max-width: 800px; }
.bw-prose h2 { margin-top: 2em; font-size: 2.2rem; }
.bw-prose h3 { margin-top: 1.7em; }
.bw-prose li { margin-bottom: .55em; }
.bw-empty { padding: 70px 0; text-align: center; }

@media (max-width: 920px) {
  .bw-grid--3 { grid-template-columns: 1fr; }
  .bw-grid--2, .bw-split, .bw-hero__grid, .bw-service-hero__grid { grid-template-columns: 1fr; }
  .bw-hero__panel { max-width: 680px; }
  .bw-menu-toggle { display: grid; place-items: center; }
  .bw-nav { position: absolute; inset: 80px 0 auto; display: none; padding: 24px 20px 30px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .bw-nav.is-open { display: block; }
  .bw-nav ul { display: grid; gap: 4px; }
  .bw-nav li a { display: block; padding: 12px 0; }
  .bw-nav .bw-button { margin-top: 14px; }
  .bw-footer__grid { grid-template-columns: 1fr 1fr; }
  .bw-footer__lead { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .bw-container, .bw-narrow { width: min(calc(100% - 28px), var(--max)); }
  .bw-header__inner { min-height: 70px; }
  .bw-nav { top: 70px; }
  .bw-brand__text small { display: none; }
  .bw-hero { padding-top: 64px; }
  .bw-hero::before { opacity: .55; }
  .bw-route__item { grid-template-columns: 46px 1fr; gap: 14px; }
  .bw-route__item span { display: block; margin-top: 8px; }
  .bw-route__item i { display: none; }
  .bw-footer__grid { grid-template-columns: 1fr; }
  .bw-footer__lead { grid-column: auto; }
  .bw-footer__bottom { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

