/* The Everett Team — everettteam.ai
   Colors and type follow Brand/brand-guidelines.md. Navy and gold come from the State of Your Home booklet. */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --blue: #2659E5;
  --blue-deep: #1B44B8;
  --navy: #0F1B33;
  --taupe: #8E807D;
  --taupe-dark: #645957;
  --paper: #FAFAF9;
  --tint: #F5F2F0;
  --blue-tint: #E8EFFF;
  --ink: #1A1A1A;
  --gold: #B99A5B;
  --cream: #F3EBDD;
  --serif: "Playfair Display", "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Source Sans 3", "Helvetica Neue", system-ui, sans-serif;
  --wrap: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.65 var(--sans); font-feature-settings: "tnum" 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.band-navy :focus-visible, .band-blue :focus-visible { outline-color: #fff; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; max-width: 64ch; }
.intro { font-size: 1.14rem; line-height: 1.6; margin-top: 18px; color: #33312f; }
.fine { font-size: 0.86rem; line-height: 1.5; color: var(--taupe-dark); }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(250,250,249,.96); border-bottom: 1px solid #e6e1de; backdrop-filter: blur(6px); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 168px; }
#nav { display: flex; align-items: center; gap: 26px; font-size: 0.94rem; font-weight: 500; }
#nav a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
#nav a:hover { border-bottom-color: var(--blue); }
#nav .nav-cta { background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 3px; border: 0; }
#nav .nav-cta:hover { background: var(--blue-deep); }
.menu-btn { display: none; font: 600 0.95rem var(--sans); background: none; border: 1.5px solid var(--ink); border-radius: 3px; padding: 8px 14px; color: var(--ink); cursor: pointer; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn { display: inline-block; font: 600 1rem/1.2 var(--sans); text-decoration: none; padding: 15px 22px; border-radius: 3px; border: 1.5px solid transparent; cursor: pointer; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-deep); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--blue-deep); }
.btn-white:hover { background: var(--blue-tint); }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 28px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.6; margin-top: 28px; max-width: 54ch; color: #33312f; }

.booklet-stage { position: relative; height: clamp(380px, 40vw, 500px); }
.sheet { position: absolute; width: 66%; aspect-ratio: 8.5 / 11; }
.sheet-cover { left: 0; top: 0; background: var(--navy); color: var(--cream); padding: 9% 9% 8%; display: flex; flex-direction: column; box-shadow: 0 1px 0 #000, 14px 18px 0 rgba(15,27,51,.10); border: 1px solid #0a1326; transform: rotate(-2.5deg); }
.sheet-cover::before { content: ""; position: absolute; inset: 4%; border: 1px solid rgba(185,154,91,.55); pointer-events: none; }
.sheet-back { right: -2%; top: 9%; background: #fff; border: 1px solid #ddd6d2; padding: 8%; transform: rotate(5deg); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; text-align: right; }
.cv-kicker { font: 500 0.6rem/1.3 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin: 0 0 12%; }
.cv-title { font: 500 clamp(1.7rem, 3.3vw, 2.7rem)/1.04 var(--serif); letter-spacing: -0.01em; margin: 0; }
.cv-rule { display: block; width: 44px; height: 2px; background: var(--gold); margin: 10% 0 7%; }
.cv-addr { font: italic 400 1.05rem/1.3 var(--serif); margin: 0; color: #fff; }
.cv-ed { margin: auto 0 0; font: 500 0.6rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); display: flex; justify-content: space-between; gap: 8px; max-width: none; }
.sheet-h { font: 600 0.8rem/1.2 var(--serif); color: var(--navy); margin: 0 0 8px; width: 40%; }
.bars { width: 40%; }
.bars .bar { fill: var(--blue-tint); stroke: var(--blue); stroke-width: 1; }
.bars .axis { stroke: var(--taupe); stroke-width: 1; }
.bars .blend { stroke: var(--gold); stroke-width: 1.5; stroke-dasharray: 5 4; }
.sheet-n { font-size: 0.56rem; line-height: 1.35; color: var(--taupe-dark); margin: 8px 0 0; width: 40%; }

.trec { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 44px 0 0; max-width: none; font-size: 0.875rem; line-height: 1.5; }
.trec a { color: var(--taupe-dark); }
.trec a:hover { color: var(--blue); }

/* Bands */
.band { padding: clamp(64px, 8vw, 112px) 0; }
.band-tint { background: var(--tint); }
.band-navy { background: var(--navy); color: #EEF1F7; }
.band-navy .intro { color: #D5DBE8; }
.band-navy .fine { color: #A9B2C6; }
.band-blue { background: var(--blue); color: #fff; }
.band-blue .intro { color: #fff; }

/* Approach */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 52px; }
.trio article { border-top: 2px solid var(--ink); padding-top: 20px; }
.trio p { margin-top: 12px; font-size: 1rem; }

/* Report */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.list-h { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; letter-spacing: 0; color: var(--taupe-dark); margin-bottom: 6px; }
.contents { margin: 0; }
.contents > div { display: grid; grid-template-columns: 11.5em 1fr; gap: 6px 20px; padding: 16px 0; border-top: 1px solid #d9d2ce; }
.contents > div:last-child { border-bottom: 1px solid #d9d2ce; }
.contents dt { font: 600 1.08rem/1.3 var(--serif); }
.contents dd { margin: 0; font-size: 0.98rem; line-height: 1.55; }

/* Buy / sell */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); margin-top: 44px; }
.duo h3 { font-size: 1.55rem; }
.duo p { margin-top: 12px; }
.duo ul { list-style: none; padding: 0; margin: 20px 0 0; }
.duo li { padding: 13px 0 13px 22px; border-top: 1px solid #e1dbd7; position: relative; font-size: 1rem; line-height: 1.5; }
.duo li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 10px; height: 2px; background: var(--blue); }
.aside { margin-top: 44px; padding: 20px 24px; background: var(--blue-tint); max-width: none; border-left: 3px solid var(--blue); }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.calc label, .msg label { display: flex; flex-direction: column; gap: 7px; font-size: 0.88rem; font-weight: 500; }
.in { display: flex; align-items: center; background: #fff; border-radius: 3px; border: 1.5px solid transparent; }
.in:focus-within { border-color: var(--gold); }
.in i { font-style: normal; color: var(--taupe-dark); padding: 0 12px; font-weight: 500; }
.in i:first-child { padding-right: 0; }
.in input { border: 0; background: none; width: 100%; min-width: 0; outline: none; }
.calc input, .calc select, .msg input, .msg select, .msg textarea { font: 500 1.05rem/1.3 var(--sans); font-variant-numeric: tabular-nums; color: var(--ink); padding: 12px; border-radius: 3px; }
.calc select, .msg input, .msg select, .msg textarea { border: 1.5px solid transparent; background: #fff; width: 100%; }
.result { grid-column: 1 / -1; margin-top: 10px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.22); }
.total { font: 500 clamp(2.6rem, 5vw, 3.8rem)/1 var(--serif); margin: 0 0 18px; font-variant-numeric: lining-nums tabular-nums; color: #fff; max-width: none; }
.total small { font: 400 0.95rem var(--sans); color: #A9B2C6; margin-left: 8px; }
.stack { display: flex; height: 14px; gap: 2px; margin-bottom: 18px; }
.stack span { display: block; min-width: 0; transition: flex-grow .25s ease; }
.k1, .stack .s1 { background: var(--blue); }
.k2, .stack .s2 { background: var(--gold); }
.k3, .stack .s3 { background: #C9BFBC; }
.k4, .stack .s4 { background: #6F7C99; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin: 0 0 14px; }
.split > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 0.96rem; }
.split dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.k { display: inline-block; width: 10px; height: 10px; margin-right: 9px; }

/* Areas */
.areas-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.areas { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; font: 500 1.22rem/1.3 var(--serif); }
.areas li { padding: 13px 0; border-top: 1px solid #e1dbd7; break-inside: avoid; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.about-grid h2 { margin-bottom: 24px; }
.portrait { margin: 0; }
.portrait img { width: 100%; border-radius: 2px; }
.creds { margin-top: 28px; padding-top: 18px; border-top: 1px solid #d9d2ce; font-size: 0.95rem; color: var(--taupe-dark); }

/* Newsletter */
.news { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.news h2 { font-style: italic; }
.news .intro { max-width: 60ch; margin-bottom: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.ways { list-style: none; padding: 0; margin: 36px 0 0; }
.ways li { display: grid; grid-template-columns: 7.5em 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.3); }
.ways span { font-size: 0.9rem; opacity: .85; padding-top: 4px; }
.ways a, .ways address { color: #fff; font: 500 1.3rem/1.35 var(--serif); font-style: normal; text-decoration: none; }
.ways a:hover { text-decoration: underline; color: #fff; }
.ways address { font-size: 1.05rem; }
.msg { display: grid; gap: 16px; }
.msg textarea { resize: vertical; }
.msg .btn { justify-self: start; }
.band-blue .fine { color: #DCE6FF; }

/* Footer */
.foot { background: #fff; border-top: 1px solid #e6e1de; padding: 52px 0 60px; font-size: 0.86rem; line-height: 1.6; color: var(--taupe-dark); }
.foot-grid { display: grid; grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
.foot-logos { display: grid; gap: 26px; }
.foot-logos img { width: 200px; }
.foot p { max-width: 78ch; }
.foot .trec { margin: 0 0 1em; }

/* Small screens */
@media (max-width: 920px) {
  .hero-grid, .report-grid, .calc-grid, .areas-grid, .about-grid, .contact-grid, .duo { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; gap: 28px; }
  .booklet-stage { height: auto; aspect-ratio: 1 / 0.95; max-width: 440px; }
  .portrait { max-width: 320px; grid-row: 1; }
  .foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-logos { grid-template-columns: repeat(2, minmax(0, 200px)); align-items: center; }
  .menu-btn { display: block; }
  #nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid #e6e1de; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  #nav.open { display: flex; }
  #nav a { padding: 14px 0; border-bottom: 1px solid #ece7e4; font-size: 1.05rem; }
  #nav .nav-cta { margin-top: 14px; text-align: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 36px); }
  .calc, .split { grid-template-columns: 1fr; }
  .contents > div { grid-template-columns: 1fr; }
  .areas { columns: 1; }
  .btn { width: 100%; text-align: center; }
  .msg .btn { justify-self: stretch; }
  .ways li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stack span { transition: none; }
}
@media print {
  .top, .menu-btn, .calc, .msg { display: none; }
}

/* State of Your Home page */
.hero-navy { background: var(--navy); color: #F4F1EA; padding-bottom: clamp(56px, 7vw, 96px); }
.hero-navy h1 { color: #fff; }
.hero-navy .lede { color: #D5DBE8; }
.hero-navy .sheet-cover { background: #16264a; border-color: rgba(185,154,91,.5); box-shadow: 14px 18px 0 rgba(0,0,0,.28); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #cbb07a; color: var(--navy); }
.btn-ghost { border-color: #fff; color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.hero-navy :focus-visible { outline-color: #fff; }
#nav a[aria-current="page"] { border-bottom-color: var(--blue); }

.finds { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.finds li { border-top: 2px solid var(--ink); padding: 20px 0 30px; font-size: 1rem; line-height: 1.6; }
.finds strong { display: block; font: 600 1.25rem/1.25 var(--serif); margin-bottom: 10px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.steps li { counter-increment: s; border-top: 1px solid #d9d2ce; padding-top: 18px; }
.steps li::before { content: counter(s); display: block; font: 500 3rem/1 var(--serif); color: var(--blue); margin-bottom: 14px; font-variant-numeric: lining-nums; }
.steps p { margin-top: 10px; font-size: 0.98rem; }

.faq-grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.faq details { border-top: 1px solid #d9d2ce; }
.faq details:last-child { border-bottom: 1px solid #d9d2ce; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font: 600 1.18rem/1.3 var(--serif); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 1.6rem/1 var(--sans); color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { padding: 0 0 20px; margin: 0; }
.msg ::placeholder { color: #8a817e; font-weight: 400; font-size: 0.95rem; }

@media (max-width: 920px) {
  .finds { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
