/* David Diaz, REALTOR® — site styles
   Colors come from David's own logo files: charcoal/black, white and the logo's gold. */
:root {
  --ink: #16181b;       /* charcoal: top bar, footer, headings */
  --ink-2: #24282d;
  --gold: #c9a45c;      /* logo gold: buttons and accents on dark */
  --gold-ink: #85641f;  /* gold that's readable on white */
  --paper: #ffffff;
  --stone: #f3f4f5;     /* soft gray, close to the portrait background */
  --text: #1b1e22;
  --muted: #5a616b;
  --line: #e2e5e8;
  --green: #2d6a43;
  --amber: #8a5a00;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- Top bar: logo + Call + Text, always visible ---------- */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.topbar__inner { max-width: 1120px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 10px; }
.brand { flex: 0 1 auto; margin-right: auto; }
.brand img { height: 50px; width: auto; }
.topbar__phone { display: block; text-align: center; background: var(--ink-2); color: #fff; font-weight: 600;
  padding: 5px 16px; text-decoration: none; font-size: .92rem; letter-spacing: .01em; }
.quick { display: flex; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border-radius: 999px; font: 700 .98rem/1 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn .num { display: none; }
.btn--call { background: var(--gold); color: var(--ink); }
.btn--text { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--solid { background: var(--ink); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--lg { min-height: 54px; padding: 14px 24px; font-size: 1.02rem; }
.btn:hover { filter: brightness(1.1); }

/* Menu (works without JavaScript) */
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.menu nav { position: absolute; right: 0; top: 52px; background: var(--ink); border: 1px solid var(--ink-2);
  border-radius: var(--radius); min-width: 220px; padding: 8px 0; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 12px 20px; color: #fff; text-decoration: none; font-weight: 600; }
.menu a[aria-current="page"] { color: var(--gold); }

@media (max-width: 420px) {
  .brand img { height: 42px; }
  .btn--call, .btn--text { padding: 10px 13px; }
}

@media (min-width: 1000px) {
  .menu summary { display: none; }
  .menu nav { position: static; display: block; background: none; border: 0; box-shadow: none; padding: 0; min-width: 0; }
  .menu ul { display: flex; gap: 2px; }
  .menu a { padding: 10px 9px; font-size: .92rem; font-weight: 500; color: #d7dbe0; }
  .menu a:hover { color: #fff; }
  .topbar__inner { gap: 16px; }
  .brand { margin-right: 0; }
  .menu { margin-right: auto; order: 2; }
  .quick { order: 3; }
  .topbar__phone { display: none; }
  .btn .num { display: inline; }
}

/* ---------- Hero ---------- */
.hero { background: var(--stone); padding: 24px 0 32px; }
.hero__grid { display: grid; gap: 24px; }
.hero__photo { margin: 0; order: -1; }
.hero__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 12%; border-radius: var(--radius); }
.hero__hello { font-weight: 700; color: var(--gold-ink); margin: 0 0 .4em; font-size: 1.05rem; }
.hero__lede { font-size: 1.1rem; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 16px; }
.hero__cta .btn { flex: 1 1 200px; }
.hero__area { font-size: .92rem; color: var(--muted); margin: 0; }
@media (min-width: 900px) {
  .hero { padding: 64px 0; }
  .hero__grid { grid-template-columns: 1.2fr .8fr; align-items: center; gap: 56px; }
  .hero__photo { order: 0; }
  .hero__photo img { aspect-ratio: 961 / 1100; }
  .hero__cta .btn { flex: 0 0 auto; }
}

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section--tint { background: var(--stone); }
.section--dark { background: var(--ink); color: #e6e8eb; }
.section--dark h1, .section--dark h2 { color: #fff; }
.contact__ways .btn--solid { background: var(--gold); color: var(--ink); }
.contact__ways .btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.link { font-weight: 700; color: var(--gold-ink); text-underline-offset: 3px; }

/* ---------- Listing cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card a { display: block; color: inherit; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; height: 100%; transition: box-shadow .15s; }
.card a:hover { box-shadow: 0 10px 28px rgba(22,24,27,.12); }
.card__img { position: relative; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 14px 16px 16px; }
.card__price { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 2px; }
.card__addr { margin: 0; font-weight: 600; }
.card__town { margin: 0; color: var(--muted); font-size: .93rem; }
.tag { position: absolute; left: 12px; top: 12px; padding: 5px 11px; border-radius: 999px; font: 700 .78rem/1.2 var(--font); background: #fff; }
.tag--available { color: var(--green); }
.tag--under-contract { color: var(--amber); }
.tag--sold { color: var(--ink); }

/* ---------- Reviews ---------- */
.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { margin: 0; padding: 22px; background: var(--stone); border-radius: var(--radius); border-top: 3px solid var(--gold); }
.quote p { font-size: .98rem; }
.quote footer { font-weight: 700; color: var(--ink); }

/* ---------- Contact + form ---------- */
.contact { display: grid; gap: 28px; }
@media (min-width: 900px) { .contact { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.contact__direct a { color: #fff; font-weight: 700; font-size: 1.15rem; }
.form { display: grid; gap: 14px; background: #fff; color: var(--text); padding: 22px; border-radius: var(--radius); }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .93rem; }
.form input, .form textarea { font: 1rem/1.4 var(--font); padding: 12px 14px; border: 1px solid #c4cad2; border-radius: 8px; width: 100%; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--ink); }
.form .btn--solid { width: 100%; }
.form__note { font-size: .84rem; color: var(--muted); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9ced5; padding: 40px 0 30px; border-top: 1px solid var(--ink-2); font-size: .97rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr 1.2fr; } }
.footer__logo { width: 220px; }
.footer__name { font-weight: 700; color: #fff; margin-bottom: .3em; }
.footer__broker { color: #fff; }
.footer__legal svg { vertical-align: -5px; margin-right: 6px; }

/* Draft notes: only while we're building. Removed before launch. */
.draft-note { background: #fff6d6; color: #5a4300; border: 1px dashed #c9a45c; padding: 10px 14px; border-radius: 8px; font-size: .93rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Listing pages ---------- */
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.sub { font-size: 1.3rem; margin-top: 1.6em; }
.crumbs { margin: 0 0 12px; font-weight: 600; }
.crumbs a::before { content: "‹ "; }
.listing__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 24px; margin-bottom: 18px; }
.listing__head h1 { margin: 8px 0 2px; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.listing__town { color: var(--muted); margin: 0; font-size: 1.05rem; }
.listing__price { font-weight: 800; font-size: clamp(1.6rem, 4.5vw, 2.2rem); letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.tag--inline { position: static; display: inline-block; border: 1px solid var(--line); }
.gallery { margin-bottom: 28px; }
.gallery__main img, img.gallery__main { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); }
.gallery__grid { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gallery__grid img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.listing__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .listing__grid { grid-template-columns: 1.3fr 1fr; align-items: start; } .listing aside { position: sticky; top: 90px; } }
.listing aside .form { border: 1px solid var(--line); }
.listing__call { margin-top: 12px; font-weight: 600; }
.facts { width: 100%; border-collapse: collapse; margin: 8px 0 20px; }
.facts th, .facts td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts th { font-weight: 600; color: var(--muted); width: 45%; }
.fineprint { font-size: .85rem; color: var(--muted); }
.search-cta { margin-top: 48px; padding: 28px; background: var(--stone); border-radius: var(--radius); }
@media (max-width: 599px) { .gallery__grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } }
.gallery__more summary { cursor: pointer; margin-top: 12px; font-weight: 700; color: var(--gold-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Buying page */
.prose { max-width: 760px; }
.form select { font: 1rem/1.4 var(--font); padding: 12px 14px; border: 1px solid #c4cad2; border-radius: 8px; width: 100%; background: #fff; color: var(--text); }
.steps { padding-left: 1.3em; display: grid; gap: 12px; }
.steps li { padding-left: 4px; }

.fineprint--dark { color: #c9ccd1; }
section[id] { scroll-margin-top: 110px; }

/* Land page */
.topics { display: grid; gap: 14px; margin: 28px 0; }
.topic { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.topic h2 { font-size: 1.15rem; margin: 0 0 6px; }
.topic p { margin: 0; }

/* Towns */
.towns { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 20px; }
.town { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; text-decoration: none; }
.town h2 { font-size: 1.3rem; margin: 0 0 10px; }
.town .facts { margin: 0 0 10px; }
.town p { margin: 0 0 8px; }
.town--feature { background: var(--stone); margin-top: 24px; }
.town--feature:hover { border-color: var(--gold-ink, #85641f); }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; }

/* About */
.about { display: grid; gap: 32px; }
.about__photo { margin: 0; }
.about__photo img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 380px; align-items: start; } .about__photo { position: sticky; top: 100px; } }
.award { border-left: 4px solid var(--gold, #c9a45c); background: var(--stone); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }

/* Reviews */
.reviews { columns: 1; column-gap: 20px; margin-top: 24px; }
.reviews .quote { break-inside: avoid; margin: 0 0 20px; }
@media (min-width: 760px) { .reviews { columns: 2; } }
@media (min-width: 1100px) { .reviews { columns: 3; } }

/* Tips */
.tips { list-style: none; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 24px 0; }
.tipcard { display: block; height: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; color: inherit; text-decoration: none; }
.tipcard:hover { border-color: var(--gold-ink, #85641f); }
.tipcard h2 { font-size: 1.2rem; margin: 6px 0 8px; }
.tipcard p { color: var(--muted); margin: 0 0 10px; }
.post__topic { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-ink, #85641f); margin: 0; }
.post__by { color: var(--muted); }
.post h2 { font-size: 1.35rem; margin-top: 1.6em; }
.post h3 { font-size: 1.1rem; margin-top: 1.3em; }

/* Tip of the Week */
.weekly { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold, #c9a45c); border-radius: var(--radius); padding: 22px; max-width: 760px; margin-bottom: 16px; }
.weekly h3 { font-size: 1.25rem; margin: 6px 0 10px; }
.keys { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.keys li { padding-left: 28px; position: relative; }
.keys li::before { content: "🔑"; position: absolute; left: 0; }
.weekly--fold { padding: 16px 22px; }
.weekly--fold summary { font-weight: 700; cursor: pointer; font-size: 1.05rem; }
.weekly--fold[open] summary { margin-bottom: 10px; }

/* Contact & privacy */
.contact__ways { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.contact__office { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); color: #d6d9dd; }
.contact__office a { color: #fff; }
.post ul { padding-left: 1.3em; display: grid; gap: 6px; }
.post .draft-note { display: inline; padding: 2px 6px; }

/* Recently sold */
.cards--sold { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card--sold .card__img img { filter: saturate(.9); }
@media (max-width: 599px) { .cards--sold { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; } .cards--sold .card { flex: 0 0 72%; scroll-snap-align: start; } }
.cards--soldall { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* TREC footer: link labels must be 10pt+ (13.33px) for the long label. 15px used. */
.footer__trec { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.footer__trec a { font-size: 15px; text-decoration: underline; }
/* Broker name must be at least half the size of the largest contact info (largest is ~18.4px). */
.footer__broker { font-size: 15px; }
.footer__broker strong { font-size: 18px; }
.footer__trec .draft-note { display: block; margin: 0; }
.prose .contact__ways .btn--solid { background: var(--ink); color: #fff; }
.prose .contact__ways .btn--ghost { color: var(--ink); border-color: var(--ink); }
.hero__lede .pop { color: var(--ink); font-weight: 800; background: linear-gradient(transparent 62%, rgba(201,164,92,.45) 62%); padding: 0 2px; }
