/* Joshua Harris, REALTOR® — shared site styles */

:root {
  --ink: #22201D;
  --ink-soft: #4A4741;
  --ink-muted: #5E5A54;
  --line: #ECE7DF;
  --line-warm: #E4DED4;
  --link: #3E6A86;
  --link-hover: #2F5670;
  --accent: #8BB0C6;
  --accent-hover: #7AA2BA;
  --accent-hover-light: #A3C2D4;
  --accent-ink: #1F2638;
  --accent-label: #A9C6D8;
  --navy: #232B40;
  --curtain: #1A2030;
  --footer-bg: #22201D;
  --footer-ink: #D8D3CB;
  --footer-rule: #3A3733;

  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  /* Aligns full-bleed content with the 1280px column on wide screens */
  --edge: max(var(--gutter), calc((100% - var(--max)) / 2));
}

/* Reserve the scrollbar's space so centred and fixed elements don't shift between pages */
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

.eyebrow {
  font: 400 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---------- Page curtain (logo splash between pages) ---------- */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 9998;
  background: var(--curtain);
  pointer-events: none;
  transition: opacity .9s cubic-bezier(.4, 0, .2, 1);
}
body::after {
  /* JH monogram drawn as Newsreader outlines (not live text), so it can't shift
     when the web font loads on the next page. */
  content: '';
  position: fixed; left: 50%; top: 50%; z-index: 9999;
  width: 56px; height: 56px; margin: -28px 0 0 -28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Ccircle cx='28' cy='28' r='27.5' fill='none' stroke='%238BB0C6'/%3E%3Cpath fill='%238BB0C6' d='M22.19 30.43Q22.19 31.48 21.84 32.3Q21.5 33.12 20.88 33.7Q20.26 34.27 19.42 34.56Q18.59 34.85 17.59 34.85Q16.98 34.85 16.55 34.71Q16.12 34.56 15.89 34.3Q15.67 34.02 15.67 33.67Q15.67 33.31 15.89 33.05Q16.11 32.8 16.55 32.8Q16.73 32.8 16.94 32.94Q17.15 33.09 17.41 33.28Q17.66 33.48 17.97 33.62Q18.28 33.77 18.65 33.77Q19.44 33.77 19.95 33.19Q20.47 32.59 20.47 31.17V22.16L18.82 21.64V21.14H23.8V21.64L22.16 22.16ZM29.45 33.66 31.1 34.16V34.66H26.11V34.16L27.76 33.66V22.16L26.11 21.64V21.14H31.1V21.64L29.45 22.16V27.25H36.99V22.16L35.34 21.64V21.14H40.33V21.64L38.68 22.16V33.66L40.33 34.16V34.66H35.34V34.16L36.99 33.66V28.29H29.45Z'/%3E%3C/svg%3E") center / 56px 56px no-repeat;
  pointer-events: none;
  transition: opacity .6s ease;
}
html.jh-ready body::before, html.jh-ready body::after { opacity: 0; }
html.jh-leaving body::before { transition-duration: .5s; }
@media (prefers-reduced-motion: reduce) {
  body::before, body::after { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  background: transparent; color: #fff;
  border-bottom: 1px solid transparent;
  transition: background .3s, color .3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-bottom-color: var(--line);
}
.lockup { display: flex; align-items: center; gap: 14px; color: inherit; }
.lockup:hover { color: inherit; }
.monogram {
  flex: none; width: 40px; height: 40px;
  border: 1px solid currentColor; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; letter-spacing: .04em;
}
.lockup-text { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; }
.lockup-name { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.lockup-brokerage { display: flex; align-items: baseline; gap: 12px; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.lockup-brokerage .sep { opacity: .5; }

.site-nav { display: flex; align-items: center; gap: clamp(20px, 2.2vw, 32px); font-size: 15px; white-space: nowrap; }
.site-nav a:not(.btn-book) { color: inherit; padding: 6px 0; border-bottom: 1px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: currentColor; }
.btn-book { background: var(--accent); color: var(--accent-ink); padding: 11px 20px; border-radius: 999px; font-weight: 500; }
.btn-book:hover { background: var(--accent-hover); color: var(--accent-ink); }

.menu-toggle {
  display: none;
  background: none; border: 1px solid currentColor; color: inherit;
  border-radius: 999px; padding: 9px 16px; min-height: 44px;
  font: 500 14px var(--sans); cursor: pointer;
}
.mobile-menu {
  position: fixed; inset: 0; z-index: 40;
  background: #fff;
  padding: 120px 24px;
  display: flex; flex-direction: column; gap: 4px;
  overflow: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--serif); font-size: 36px; color: var(--ink);
  padding: 10px 0; border-bottom: 1px solid var(--line);
}

@media (max-width: 1079.98px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-block; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-ink);
  padding: clamp(56px, 7vw, 96px) var(--gutter) 40px;
}
.site-footer a { color: #fff; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 40px; font-size: 15px; line-height: 1.7;
}
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-name { font-family: var(--serif); font-size: 24px; color: #fff; margin-bottom: 6px; }
.footer-head { color: #fff; font-weight: 600; }
.site-footer .footer-col a.muted, .footer-legal a { color: var(--footer-ink); }
.footer-email { overflow-wrap: anywhere; }
.footer-preapproval { font-weight: 600; margin-top: 8px; }
.footer-social { display: flex; gap: 20px; margin-top: 8px; }
.footer-social a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
  border-top: 1px solid var(--footer-rule); padding-top: 28px; font-size: 13px;
}
.eho { display: flex; align-items: center; gap: 12px; }
.eho img { display: block; filter: brightness(0) invert(1); opacity: .9; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 24px; }

/* Mobile Book · Text · Call bar */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-warm);
}
.contact-bar a {
  display: flex; align-items: center; justify-content: center;
  min-height: 50px; border-radius: 999px; font-size: 16px;
  border: 1px solid var(--ink); color: var(--ink); font-weight: 500;
}
.contact-bar a.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
@media (max-width: 1079.98px) {
  .contact-bar { display: grid; }
  .site-footer { padding-bottom: 120px; }
}

/* ---------- Shared sections ---------- */
.cta-band {
  background: var(--navy); color: #fff;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
}
.cta-band-inner { max-width: 880px; margin: 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta-band .eyebrow { color: var(--accent-label); }
.cta-band h2 {
  margin: 0; font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.015em;
  text-wrap: balance;
}
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 52px;
  padding: 16px 28px; border-radius: 999px; font-size: 16px;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover { background: var(--accent-hover-light); color: var(--accent-ink); }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, .8); color: #fff; font-weight: 500; }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.link-call { color: #fff; padding: 16px 8px; font-size: 16px; }
.link-call:hover { color: var(--accent-label); }

.inline-link { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.no-contact-bar .site-footer { padding-bottom: 40px; }

/* Keyboard focus, site-wide */
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }

/* Phones: keep the lockup and Menu button inside the screen */
@media (max-width: 480px) {
  .site-header { gap: 12px; }
  .lockup { gap: 10px; min-width: 0; }
  .monogram { width: 34px; height: 34px; font-size: 14px; }
  .lockup-name { font-size: 18px; }
  .lockup-brokerage { font-size: 12px; }
  .menu-toggle { flex: none; padding: 9px 14px; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Full-bleed photo strip linking to a neighborhood guide (Areas page, county pages).
   Text aligns with the page column; pages set --strip-min-height and --strip-name-size. */
.area-strip {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  column-gap: 24px; row-gap: 6px;
  min-height: var(--strip-min-height, clamp(140px, 16vw, 220px));
  padding: 24px var(--edge);
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(20, 20, 18, .72) 0%, rgba(20, 20, 18, .35) 45%, rgba(20, 20, 18, .35) 55%, rgba(20, 20, 18, .75) 100%),
    var(--img),
    repeating-linear-gradient(135deg, #6B665E 0 10px, #625D55 10px 20px);
  background-size: cover;
  background-position: center var(--pos, 50%);
}
.area-strip:hover { color: #fff; filter: brightness(1.08); }
.area-strip-name { font-family: var(--serif); font-size: var(--strip-name-size, clamp(36px, 5.4vw, 76px)); line-height: 1; letter-spacing: -0.02em; }
.area-strip-line { display: flex; align-items: center; gap: 12px; font-size: 16px; max-width: 380px; line-height: 1.5; }
.area-strip-line .arrow { font-size: 22px; }
