/* Charlotte Business Brokers HQ
   Look: "Uptown" (deep teal, copper and warm cream; DM Serif Display + Karla).
   Colors, type and spacing are set once here as custom properties. */

:root {
  --teal: #0b5d5e;
  --teal-dark: #073f40;
  --copper: #c4622d;
  --copper-dark: #a54f20;
  --cream: #faf6ef;
  --sand: #efe6d8;
  --text: #22272b;
  --soft: #575f65;
  --rule: #e3d9c9;
  --paper: #ffffff;
  --on-dark: #cfe0df;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --pad: clamp(16px, 4.5vw, 44px);
  --round: 4px;
  --round-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 18px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--copper-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--teal-dark); margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); margin-top: 1.6em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.05em; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.jump { position: absolute; left: -9999px; }
.jump:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 10px 14px; }

/* Thin strip above the header */
.strip { background: var(--teal-dark); color: var(--on-dark); font-size: .88rem; }
.strip .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.strip a { color: #fff; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .strip__where { display: none; } .strip .wrap { justify-content: center; } }

/* Header */
.masthead { background: var(--paper); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--teal-dark); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.32rem; line-height: 1.05; }
.brand__name span { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper-dark); font-weight: 700; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a { color: var(--text); text-decoration: none; font-weight: 700; font-size: .98rem; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--teal); box-shadow: inset 0 -2px 0 var(--copper); }
.menu-toggle { display: none; background: none; border: 1px solid var(--rule); border-radius: var(--round); padding: 9px 14px; font: 700 .95rem var(--sans); color: var(--teal-dark); min-height: 44px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--rule); padding: 6px var(--pad) 16px; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .menu .pill { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* Buttons */
.pill { display: inline-block; background: var(--copper); color: #fff !important; border: 0; border-radius: 999px; padding: 12px 24px; font: 700 1rem var(--sans); text-decoration: none; cursor: pointer; min-height: 46px; box-shadow: none !important; }
.pill:hover { background: var(--copper-dark); }
.pill--ghost { background: transparent; color: var(--teal-dark) !important; border: 2px solid var(--teal); }
.pill--ghost:hover { background: var(--cream); }

/* Opening band: copy on the left, valuation form on the right */
.opening { background: var(--cream); border-bottom: 1px solid var(--rule); padding: clamp(34px, 6vw, 70px) 0; }
.opening .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.opening__lede { font-size: 1.12rem; color: var(--soft); max-width: 36em; }
.opening__lede a { font-weight: 700; }
.promise { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 10px; }
.promise li { padding-left: 34px; position: relative; font-weight: 700; }
.promise li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.opening__phone { font-size: 1.05rem; }
.opening__phone a { font-weight: 700; color: var(--copper-dark); }
.opening__photo { margin-top: 26px; border-radius: var(--round-lg); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.opening .wrap.solo-open { grid-template-columns: minmax(0, 820px); }
@media (max-width: 900px) { .opening .wrap { grid-template-columns: 1fr; } }

.trail { font-size: .88rem; color: var(--soft); margin-bottom: 14px; }
.trail a { color: var(--soft); }
.trail span[aria-hidden] { margin: 0 6px; }

/* Valuation form */
.vbox { background: var(--paper); border-radius: var(--round-lg); border-top: 6px solid var(--copper); box-shadow: 0 18px 40px rgba(7, 63, 64, .12); padding: clamp(20px, 3vw, 32px); }
.vbox h2 { margin: 0 0 4px; font-size: 1.6rem; }
.vbox__sub { color: var(--soft); font-size: .95rem; margin-bottom: 16px; }
.dots { display: flex; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; font-size: .8rem; font-weight: 700; color: var(--soft); }
.dots li { flex: 1; border-top: 4px solid var(--sand); padding-top: 6px; }
.dots li.on { border-color: var(--teal); color: var(--teal-dark); }
.vform fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.vform fieldset[hidden] { display: none; }
.vform label { display: grid; gap: 5px; font-weight: 700; font-size: .95rem; }
.vform input, .vform select { font: 400 1rem var(--sans); color: var(--text); padding: 11px 12px; min-height: 46px; border: 1px solid #cbbfab; border-radius: var(--round); background: var(--paper); width: 100%; }
.vform input:focus, .vform select:focus { border-color: var(--teal); outline: 2px solid rgba(11, 93, 94, .25); }
.vform .opt { font-weight: 400; color: var(--soft); font-size: .85rem; }
.vform .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .vform .pair { grid-template-columns: 1fr; } }
.vform .nav-row { display: flex; gap: 10px; justify-content: space-between; margin-top: 4px; }
.vform .nav-row .pill:only-child { width: 100%; }
.vform .trap { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.vform__fine { font-size: .82rem; color: var(--soft); margin: 14px 0 0; line-height: 1.5; }
.vform__err { color: #a3261b; font-weight: 700; margin: 10px 0 0; }

/* Body content */
.body { padding: clamp(36px, 6vw, 72px) 0; }
.body .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 5vw, 64px); }
.body .wrap.solo { grid-template-columns: minmax(0, 780px); justify-content: center; }
@media (max-width: 900px) { .body .wrap { grid-template-columns: 1fr; } }
.copy > :first-child { margin-top: 0; }
.copy h2 { padding-top: .2em; }
.copy ul, .copy ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.copy li { margin-bottom: .45em; }
.copy li::marker { color: var(--copper); }
.copy blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--copper); font-family: var(--serif); font-size: 1.25rem; color: var(--teal-dark); }

/* Side rail */
.rail { display: grid; gap: 18px; align-content: start; position: sticky; top: 96px; }
@media (max-width: 900px) { .rail { position: static; } }
.card { border: 1px solid var(--rule); border-radius: var(--round-lg); padding: 22px; background: var(--paper); }
.card h2, .card h3 { font-size: 1.25rem; margin: 0 0 10px; }
.card ul { margin: 0; padding-left: 1.1em; font-size: .96rem; }
.card li { margin-bottom: 6px; }
.card--dark { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--on-dark); }
.card--dark h2 { color: #fff; }
.card--dark .tel { display: block; font: 400 1.7rem var(--serif); color: #fff; text-decoration: none; margin: 8px 0 14px; }

/* "At a glance" and "Key points" boxes */
.glance { background: var(--cream); border: 1px solid var(--rule); border-radius: var(--round-lg); padding: 20px 24px; margin: 0 0 2em; }
.glance h2 { font-size: 1.2rem; margin: 0 0 8px; }
.glance ul { margin: 0; }
.toc { font-size: .95rem; }
.toc ol { padding-left: 1.2em; margin: 0; }

/* Tiles used on the homepage and hub pages */
.band { padding: clamp(40px, 6vw, 76px) 0; }
.band--sand { background: var(--cream); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band__head { max-width: 760px; margin-bottom: 28px; }
.band__head h2 { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.tile { display: block; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--round-lg); padding: 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--text); }
.tile h3 { margin: 0 0 6px; font-size: 1.22rem; }
.tile p { margin: 0; font-size: .96rem; color: var(--soft); }
.tile__go { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--copper-dark); font-size: .92rem; }

.path { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.path li { counter-increment: n; position: relative; padding-top: 52px; }
.path li::before { content: counter(n); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--copper); color: var(--copper-dark); font: 400 1.3rem/36px var(--serif); text-align: center; }
.path h3 { margin: 0 0 6px; }
.path p { margin: 0; color: var(--soft); }

/* Closing call to action band */
.closer { background: var(--teal); color: #fff; padding: clamp(34px, 5vw, 56px) 0; }
.closer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.closer h2 { color: #fff; margin: 0 0 4px; }
.closer p { margin: 0; color: var(--on-dark); }
.closer__acts { display: flex; flex-wrap: wrap; gap: 12px; }
.closer .pill--ghost { color: #fff !important; border-color: #fff; }
.closer .pill--ghost:hover { background: var(--teal-dark); }

/* Footer */
.foot { background: #1d2326; color: #b9c2c5; font-size: .95rem; padding: 50px 0 0; }
.foot a { color: #e8eeef; text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .foot__cols { grid-template-columns: 1fr; } }
.foot h2 { font: 700 .8rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot__tel { font: 400 1.5rem var(--serif); color: #fff !important; }
.foot__legal { border-top: 1px solid #343c40; margin-top: 40px; padding: 18px 0 26px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot__legal p { margin: 0; max-width: 62em; }

/* Mobile call bar */
.callbar { display: none; }
@media (max-width: 640px) {
  .callbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; background: var(--paper); border-top: 1px solid var(--rule); padding: 8px 12px; gap: 8px; }
  .callbar a { flex: 1; text-align: center; padding: 10px; }
  body { padding-bottom: 66px; }
}
