/* Homes By Shayne — warm navy & gold, distinct from the Steadfast site */
:root {
  color-scheme: light;
  --navy: #0f1b2d;
  --navy-deep: #0b1524;
  --navy-soft: #1a2b44;
  --gold: #c4a268;
  --gold-bright: #d8b87a;
  --ivory: #f6f1e8;
  --paper: #fffdf9;
  --cream: #efe8db;
  --ink: #1a1714;
  --muted: #5c564e;
  --stone: #8a8378;
  --line: rgba(15, 27, 45, 0.12);
  --line-strong: rgba(15, 27, 45, 0.2);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --radius: 16px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(15, 27, 45, 0.04), 0 16px 40px -24px rgba(15, 27, 45, 0.28);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

a { color: inherit; }
.nowrap { white-space: nowrap; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip:focus-visible {
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 21, 36, 0.92);
  color: var(--ivory);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(196, 162, 104, 0.22);
  padding-top: env(safe-area-inset-top, 0);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ivory);
  flex: none;
}

.brand-mark {
  width: 42px;
  height: 32px;
  color: var(--gold-bright);
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand-text span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-top: 3px;
  font-weight: 500;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.2);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ivory);
  background: transparent;
}

.nav-toggle-btn span,
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 0.2s;
}
.nav-toggle-btn span::before,
.nav-toggle-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-btn span::before { top: -6px; }
.nav-toggle-btn span::after { top: 6px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px 22px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(246, 241, 232, 0.86);
}

.site-nav a:hover { color: var(--gold-bright); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy) !important;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
}

.nav-cta:hover { background: var(--gold-bright); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-bright); }

.btn-ghost {
  background: transparent;
  color: var(--ivory);
  border-color: rgba(246, 241, 232, 0.35);
}
.btn-ghost:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-navy {
  background: var(--navy);
  color: var(--ivory);
}
.btn-navy:hover { background: var(--navy-soft); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(196, 162, 104, 0.12), transparent 50%),
    var(--navy);
  color: var(--ivory);
  padding: 64px 0 72px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.7fr);
  gap: 48px;
  align-items: center;
}

.hero .eyebrow { margin-bottom: 14px; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-bright);
}

.hero-lead {
  margin: 18px 0 0;
  max-width: 38rem;
  font-size: 1.15rem;
  color: rgba(246, 241, 232, 0.82);
}

.hero .btn-row { margin-top: 30px; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  border: 1px solid rgba(196, 162, 104, 0.35);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.hero-photo {
  justify-self: center;
  width: min(100%, 280px);
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(196, 162, 104, 0.18), 0 24px 50px -20px rgba(0, 0, 0, 0.55);
}

.hero-photo figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.92rem;
  color: rgba(246, 241, 232, 0.7);
}

.hero-photo figcaption strong {
  display: block;
  color: var(--ivory);
  font-weight: 600;
  font-size: 1.05rem;
}

/* Sections */
.section { padding: 72px 0; }

.section-head {
  max-width: 38rem;
  margin-bottom: 36px;
}

.section-head.center {
  text-align: center;
  margin-inline: auto;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
  color: var(--navy);
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.band {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-navy {
  background: var(--navy);
  color: var(--ivory);
  border: 0;
}

.band-navy h2 { color: var(--ivory); }
.band-navy .section-head p { color: rgba(246, 241, 232, 0.75); }

/* Buying / Selling */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.card p { margin: 0; color: var(--muted); }

.card .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.card .text-link:hover { color: var(--navy-soft); }

.icon-gold {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 14px;
}

/* Why */
.why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.why article {
  padding: 8px 4px;
}

.why .n {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  font-style: italic;
}

.why h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 12px 0 8px;
  color: var(--navy);
}

.why p { margin: 0; color: var(--muted); }

/* Reviews */
.rating-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  margin: -8px auto 32px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  text-align: center;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  box-shadow: var(--shadow);
}

.rating-badge:hover {
  border-color: var(--gold);
  color: var(--navy-soft);
}

.reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.review {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--gold);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.review blockquote {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}

.review figcaption {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
}

.review cite {
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

.review .source {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
}

/* Contact + form */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}

.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-points li {
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-points a {
  text-decoration: none;
  font-weight: 600;
  color: var(--navy);
}

.contact-points a:hover { color: var(--navy-soft); text-decoration: underline; }

.contact-points span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
  margin-bottom: 4px;
}

.office {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.office strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}

/* Form */
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.6rem;
  margin: 0 0 6px;
  color: var(--navy);
}

.form-card .lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

.field, .field-row { margin-bottom: 16px; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--navy);
}

.req { color: #9a3b2f; }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px; /* prevents iOS zoom */
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

textarea { min-height: 120px; resize: vertical; }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: var(--stone);
}

.success {
  display: none;
  background: var(--ivory);
  border: 1px solid var(--gold);
  color: var(--navy);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 18px;
}

.success.is-visible { display: block; }

body.is-submitted .contact-form { display: none; }
body.is-submitted .success { display: block; }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(246, 241, 232, 0.78);
  padding: 48px 0 calc(40px + env(safe-area-inset-bottom, 0));
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(246, 241, 232, 0.12);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
  text-decoration: none;
}

.footer-brand .brand-mark { color: var(--gold-bright); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
}

.footer-links a {
  color: rgba(246, 241, 232, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-links a:hover { color: var(--gold-bright); }

.eho {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
}

.eho img {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 4px;
}

.eho p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(246, 241, 232, 0.62);
}

.legal {
  margin: 22px 0 0;
  font-size: 0.8rem;
  color: rgba(246, 241, 232, 0.55);
}

.legal a { color: var(--gold-bright); text-decoration: none; }
.legal a:hover { text-decoration: underline; }

@media (min-width: 1040px) {
  .reviews { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .review { grid-column: span 2; }
  .review:nth-child(4) { grid-column: 2 / span 2; }
  .review:nth-child(5) { grid-column: 4 / span 2; }
}

/* Mobile */
@media (max-width: 860px) {

  .hero-grid,
  .split,
  .why,
  .reviews,
  .contact-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero { padding: 44px 0 52px; }
  .hero-photo { width: min(100%, 220px); order: -1; }
  .hero-photo figcaption { display: none; }
  .hero-grid { gap: 28px; text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero .btn-row, .facts { justify-content: center; }
  .section { padding: 56px 0; }

  .nav-toggle-btn { display: inline-flex; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(196, 162, 104, 0.22);
    padding: 8px 20px 20px;
  }

  .nav-toggle:checked ~ .site-nav { display: flex; }

  .site-nav a {
    padding: 12px 4px;
    border-bottom: 1px solid rgba(246, 241, 232, 0.08);
  }

  .site-nav .nav-cta {
    margin-top: 12px;
    justify-content: center;
    border-bottom: 0;
  }

  .site-header .wrap { position: relative; }
}

@media (max-width: 480px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .hero .btn-row { flex-direction: column; }
  .hero .btn { width: 100%; }
  .card, .form-card { padding: 22px; }
}

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