/* AZ Wedge Deals — Sean Steele, Gentry Real Estate
   Tokens: navy = ink and structure, oak = the dated house, gold = the wedge (equity) only. */

@font-face { font-family: "Bitter"; src: url("/assets/fonts/bitter-var.woff") format("woff"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-italic.woff") format("woff"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("/assets/fonts/fira-semibold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --navy: #0E2A47;
  --navy-2: #173B60;
  --gold: #E0A526;
  --oak: #B5814B;
  --oak-tint: #F3EADF;
  --paper: #F6F7F9;
  --white: #FFFFFF;
  --slate: #4E5D6C;
  --rule: #D3D9E0;
  --serif: "Bitter", "Rockwell", "Roboto Slab", Georgia, serif;
  --sans: "Fira Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --measure: 66ch;
  --wrap: 1120px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font: 400 1.0625rem/1.6 var(--sans);
  font-feature-settings: "kern", "liga", "onum";
  text-rendering: optimizeLegibility;
}
@media (min-width: 720px) { body { font-size: 1.125rem; } }

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 2px; }
.band :focus-visible { outline-color: var(--gold); }

.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }

/* Type scale (1.25 ratio, slab headings) */
h1, h2, h3 { font-family: var(--serif); color: var(--navy); margin: 0; font-feature-settings: "lnum"; }
h1 { font-weight: 800; font-size: clamp(2.4rem, 6.2vw, 4.6rem); line-height: 1.02; letter-spacing: -0.02em; max-width: 15ch; }
h2 { font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 24ch; }
h3 { font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--navy); max-width: 46ch; }
.muted { color: var(--slate); }
.small { font-size: .875rem; line-height: 1.5; }

/* Header: brand and brokerage are set at the same size (ADRE R4-28-502(E)) */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-wrap: wrap; column-gap: .55rem; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.brand-text span + span { color: var(--slate); font-weight: 600; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; margin: 0; padding: 0; font-weight: 500; font-size: 1rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.25rem; border-radius: 6px; font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 2px solid var(--navy); }
.btn-solid { background: var(--navy); color: var(--white); }
.btn-solid:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-line { background: transparent; color: var(--navy); }
.btn-line:hover { background: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.site-nav .btn { min-height: 40px; padding: .45rem .95rem; }
.site-nav .btn:hover { text-decoration: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.hero h1 { margin-bottom: 1.25rem; }

/* The wedge figure: the one bold element */
.wedge-fig { margin: clamp(2.25rem, 5vw, 3.5rem) 0 0; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: clamp(1.25rem, 3vw, 2rem); }
.wedge-fig figcaption { margin-top: 1.25rem; }
.wf-row + .wf-row { margin-top: 1.4rem; }
.wf-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .45rem; font-size: .975rem; }
.wf-label b { font-family: var(--serif); font-weight: 700; font-feature-settings: "lnum", "tnum"; }
.wf-track { position: relative; display: flex; height: 54px; border-radius: 4px; overflow: hidden; background: var(--paper); }
.seg { height: 100%; }
.seg-price { background: var(--oak); width: 78.125%; }
.seg-work { width: 9.375%; background: repeating-linear-gradient(135deg, var(--oak) 0 6px, var(--oak-tint) 6px 12px); }
.seg-wedge { width: 12.5%; background: var(--gold); clip-path: polygon(0 50%, 100% 0, 100% 100%); transform-origin: left center; animation: drive 900ms cubic-bezier(.2,.8,.2,1) 350ms both; }
.seg-sold { background: var(--navy); width: 100%; }
@keyframes drive { from { transform: translateX(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .seg-wedge { animation: none; } }
.wf-key { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin: 1.25rem 0 0; padding: 0; list-style: none; font-size: .9rem; color: var(--slate); }
.wf-key li { display: flex; align-items: center; gap: .45rem; }
.sw { width: 14px; height: 14px; border-radius: 2px; flex: none; }
.sw-price { background: var(--oak); }
.sw-work { background: repeating-linear-gradient(135deg, var(--oak) 0 3px, var(--oak-tint) 3px 6px); }
.sw-wedge { background: var(--gold); }
.sw-sold { background: var(--navy); }
.wf-total { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 1.5rem 0 0; font-feature-settings: "lnum"; }
.wf-total .chip { display: inline-block; background: var(--gold); color: var(--navy); padding: .05em .35em; border-radius: 3px; }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 1rem; }
.section-head { margin-bottom: 2rem; }

/* Counts / doesn't count: a real two-way comparison */
.compare { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .compare { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.compare h3 { padding-bottom: .6rem; margin-bottom: .9rem; border-bottom: 3px solid var(--navy); }
.compare .no h3 { border-bottom-color: var(--rule); color: var(--slate); }
.compare ul { margin: 0; padding: 0; list-style: none; }
.compare li { padding: .55rem 0 .55rem 1.6rem; position: relative; border-bottom: 1px solid var(--rule); }
.compare .yes li::before { content: ""; position: absolute; left: 0; top: .95em; width: .55rem; height: .55rem; border-radius: 50%; background: var(--navy); }
.compare .no li { color: var(--slate); }
.compare .no li::before { content: ""; position: absolute; left: .05rem; top: 1.12em; width: .55rem; height: 2px; background: var(--slate); }

/* Steps: a real sequence, so numbers are information */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 820px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step); font-family: var(--serif); font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--navy); font-feature-settings: "lnum"; }
.steps h3 { margin-bottom: .3rem; }
.steps p { margin: 0; color: var(--slate); }

/* The catch: honesty gets its own visual voice */
.catch { border-left: 4px solid var(--oak); background: var(--oak-tint); padding: 1rem 1.25rem; border-radius: 0 6px 6px 0; max-width: var(--measure); margin: 1.75rem 0 0; }
.catch p:last-child { margin-bottom: 0; }

/* Navy band: ways to reach Sean */
.band { background: var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; }
.band h2, .band h3 { color: var(--white); }
.band a { color: var(--white); }
.band a.btn { text-decoration: none; }
.band .muted { color: #B9C6D3; }
.ways { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-top: 2rem; }
@media (min-width: 860px) { .ways { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.way { border-top: 2px solid #3B5A7C; padding-top: 1.1rem; }
.way p { color: #D5DEE7; margin-bottom: 1rem; }
.band .btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.band .btn-light:hover { background: var(--paper); }
.btn-ghost { background: transparent; color: var(--white); border-color: #8FA6BE; }
.btn-ghost:hover { border-color: var(--white); }

/* About */
.about { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .about { grid-template-columns: 1.2fr 1fr; gap: 4rem; } }
.facts { margin: 0; padding: 0; list-style: none; font-size: 1rem; }
.facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.facts li span:first-child { color: var(--slate); }

/* Article pages */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-head h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); max-width: 20ch; margin-bottom: 1.1rem; }
.crumbs { font-size: .9rem; color: var(--slate); margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--rule); }
.article { padding-bottom: clamp(3rem, 7vw, 5rem); }
.article h2 { margin: 2.6rem 0 .9rem; font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.article ul, .article ol { padding-left: 1.25rem; max-width: var(--measure); }
.article li { margin-bottom: .45rem; }
.article .prose > p { max-width: var(--measure); }
.table-wrap { overflow-x: auto; max-width: 820px; margin: 1.25rem 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--white); }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-family: var(--serif); font-weight: 700; border-bottom: 2px solid var(--navy); }
td.num { font-feature-settings: "lnum", "tnum"; white-space: nowrap; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.2rem 1.1rem 0; position: relative; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; top: .95rem; font-family: var(--sans); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq .answer { padding: 0 0 1.25rem; max-width: var(--measure); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Footer: compliance block */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding: 2.5rem 0 3rem; font-size: .95rem; color: var(--slate); }
.site-footer .wrap { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer strong { color: var(--navy); font-family: var(--serif); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer p { margin-bottom: .6rem; }
.eho { display: flex; align-items: center; gap: .55rem; }
.eho svg { width: 26px; height: 26px; }
