/* Brian Penney Real Estate — brianpenneyrealestate.com */

:root {
  --ink: #1c2b36;        /* deep harbor ink — text, header */
  --ink-soft: #46586550; /* hairlines */
  --sea: #2d6e7e;        /* Pacific teal — accent, links, buttons */
  --sea-deep: #1f505d;
  --sand: #efe9dd;       /* warm section background */
  --paper: #fcfcfa;      /* page background */
  --white: #ffffff;
  --error: #a33b2e;
  --ok: #2c6e49;

  --display: "Fraunces", Georgia, serif;
  --body: "Archivo", -apple-system, "Segoe UI", sans-serif;

  --max: 1040px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  background: var(--ink);
  color: var(--white);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px; gap: 16px; flex-wrap: wrap;
}
.wordmark {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); text-decoration: none;
}
.wordmark .mark { flex: none; display: block; }
.wordmark .name {
  font-family: var(--display);
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.01em;
}
.wordmark .tag {
  display: block; font-family: var(--body); font-size: 0.7rem;
  letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75;
}
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--white); text-decoration: none; font-size: 0.85rem;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] {
  opacity: 1; border-bottom-color: var(--sea);
  color: var(--white);
}

/* ---------- hero ---------- */
.hero { background: var(--ink); color: var(--white); }
.hero .wrap {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 88px;
}
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: #9fc4cd; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  font-weight: 560; line-height: 1.12; letter-spacing: -0.01em;
  margin-bottom: 22px;
}
.hero p.lede { font-size: 1.08rem; line-height: 1.65; max-width: 34em; opacity: 0.92; }
.hero .cred {
  margin-top: 30px; font-size: 0.85rem; letter-spacing: 0.06em;
  color: #b9c6ce;
}
.hero .cred strong { color: var(--white); font-weight: 600; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block; font-family: var(--body); font-size: 0.92rem;
  font-weight: 600; letter-spacing: 0.04em; text-decoration: none;
  padding: 14px 26px; border-radius: 4px; border: 1px solid transparent;
  cursor: pointer;
}
.btn-solid { background: var(--sea); color: var(--white); }
.btn-solid:hover { background: var(--sea-deep); color: var(--white); }
.btn-ghost { border-color: #5a6f7c; color: var(--white); }
.btn-ghost:hover { border-color: var(--white); color: var(--white); }

/* signature: multifamily elevation built from unit squares */
.elevation { justify-self: end; }
.elevation svg { display: block; width: 100%; max-width: 320px; height: auto; }
.unit { fill: #2a3d4b; }
.unit.lit { fill: var(--sea); }
@media (prefers-reduced-motion: no-preference) {
  .unit.lit { animation: windowGlow 6s ease-in-out infinite; }
  .unit.lit:nth-of-type(odd) { animation-delay: 3s; }
  @keyframes windowGlow { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
}

/* ---------- sections ---------- */
section { padding: 72px 0; }
.section-title {
  font-family: var(--display); font-size: 1.7rem; font-weight: 560;
  margin-bottom: 14px;
}
.section-intro { max-width: 42em; margin-bottom: 40px; color: #3c4d5a; }

.services { background: var(--paper); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.svc {
  border-top: 3px solid var(--sea); padding-top: 20px;
}
.svc h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.svc p { font-size: 0.95rem; color: #3c4d5a; }

.about { background: var(--sand); }
.about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.about p + p { margin-top: 14px; }
.fact-list { list-style: none; border-top: 1px solid var(--ink-soft); }
.fact-list li {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 13px 0; border-bottom: 1px solid var(--ink-soft);
  font-size: 0.95rem;
}
.fact-list .k { color: #5a6a75; }
.fact-list .v { font-weight: 600; text-align: right; }

.cta-band { background: var(--ink); color: var(--white); text-align: center; }
.cta-band h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 560; margin-bottom: 12px; }
.cta-band p { opacity: 0.85; margin-bottom: 26px; }

/* ---------- contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-aside h2 { font-family: var(--display); font-size: 1.7rem; font-weight: 560; margin-bottom: 14px; }
.contact-aside p { color: #3c4d5a; margin-bottom: 18px; }
.reach { list-style: none; margin-top: 8px; }
.reach li { padding: 10px 0; border-bottom: 1px solid var(--ink-soft); font-size: 0.98rem; }
.reach .k { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: #5a6a75; margin-bottom: 2px; }

form { background: var(--white); border: 1px solid #e2ded4; border-radius: 6px; padding: 30px; }
.field { margin-bottom: 20px; }
label { display: block; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; margin-bottom: 7px; }
label .req { color: var(--error); }
input[type="text"], input[type="tel"], input[type="email"], textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid #c9c4b8; border-radius: 4px; background: var(--paper);
}
input:focus, textarea:focus { border-color: var(--sea); }
textarea { min-height: 110px; resize: vertical; }

.consent {
  display: grid; grid-template-columns: auto 1fr; gap: 12px;
  background: var(--sand); border: 1px solid #ddd5c4; border-radius: 4px;
  padding: 16px; margin-bottom: 22px;
}
.consent input[type="checkbox"] {
  width: 19px; height: 19px; margin-top: 3px; accent-color: var(--sea);
}
.consent label { font-size: 0.84rem; font-weight: 400; line-height: 1.55; margin: 0; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-status { margin-top: 16px; font-size: 0.95rem; display: none; }
.form-status.ok { display: block; color: var(--ok); font-weight: 600; }
.form-status.err { display: block; color: var(--error); font-weight: 600; }

/* ---------- privacy ---------- */
.legal { max-width: 720px; }
.legal h1 { font-family: var(--display); font-size: 2rem; font-weight: 560; margin-bottom: 8px; }
.legal .updated { color: #5a6a75; font-size: 0.9rem; margin-bottom: 32px; }
.legal h2 { font-family: var(--display); font-size: 1.25rem; font-weight: 600; margin: 30px 0 10px; }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin-bottom: 6px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #b9c6ce; font-size: 0.88rem; }
.site-footer .wrap {
  padding-top: 36px; padding-bottom: 36px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer a { color: #d8e2e7; }
.site-footer .lic { color: var(--white); font-weight: 600; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 60px; }
  .elevation { justify-self: start; }
  .elevation svg { max-width: 240px; }
  .svc-grid { grid-template-columns: 1fr; gap: 28px; }
  .about .wrap, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  section { padding: 52px 0; }
}
