/* Monarch Realty — monarch-realty.com */

:root {
  --navy: #203a77;
  --navy-deep: #172b5c;
  --cream: #faf7f4;
  --blush: #efe3dc;
  --gold: #b58e5a;
  --ink: #23283a;
  --muted: #646b7d;
  --white: #ffffff;
}

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

/* No smooth scrolling or scroll-time transforms anywhere: both can smear or
   ghost on some GPUs/drivers. All motion is opacity fades and hover states. */

body {
  font-family: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .serif {
  font-family: "Sorts Mill Goudy", Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.2;
}

img { max-width: 100%; display: block; }

a { color: var(--navy); }

.wrap {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

section[id] { scroll-margin-top: 84px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid #e8e4df;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(23, 43, 92, 0.1);
}

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

.brand {
  text-decoration: none;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand .brand-name {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
}

.brand .brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

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

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.site-nav a:not(.nav-cta) {
  background: linear-gradient(var(--navy), var(--navy)) no-repeat left bottom / 0 1px;
  padding-bottom: 3px;
  transition: background-size 0.3s ease, color 0.2s ease;
}

.site-nav a:not(.nav-cta):hover {
  color: var(--navy);
  background-size: 100% 1px;
}

.site-nav a.nav-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 3px;
  white-space: nowrap;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-nav a.nav-cta:hover {
  background: var(--navy-deep);
  box-shadow: 0 8px 18px rgba(23, 43, 92, 0.25);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 100px 24px 110px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(32, 58, 119, 0.82) 0%, rgba(23, 43, 92, 0.88) 100%);
}

.hero-watermark {
  position: absolute;
  right: -4%;
  top: -22%;
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: clamp(20rem, 42vw, 36rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  pointer-events: none;
  user-select: none;
}

.hero-inner { position: relative; }

.hero-inner > * {
  animation: rise 0.9s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

.hero-inner > :nth-child(2) { animation-delay: 0.12s; }
.hero-inner > :nth-child(3) { animation-delay: 0.24s; }
.hero-inner > :nth-child(4) { animation-delay: 0.36s; }

@keyframes rise {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: #c9b58e;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  max-width: 17em;
  margin: 0 auto 18px;
}

.hero p.lede {
  max-width: 38em;
  margin: 0 auto 34px;
  font-size: 1.1rem;
  color: #d9e0f2;
}

.btn-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 3px;
  font-size: 1rem;
  letter-spacing: 0.05em;
  transition: background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.btn:hover {
  box-shadow: 0 10px 22px rgba(15, 25, 55, 0.28);
}

.btn-solid {
  background: var(--white);
  color: var(--navy);
}

.btn-solid:hover { background: var(--blush); }

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-ghost-navy {
  border: 1px solid var(--navy);
  color: var(--navy);
}

.btn-ghost-navy:hover { background: rgba(32, 58, 119, 0.07); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-navy:hover { background: var(--navy-deep); }

/* ---------- Scroll reveal ---------- */

/* Fade-in only: transforms during scroll cause ghosting on some GPUs. */
.reveal {
  opacity: 0;
  transition: opacity 0.8s ease;
}

.reveal.visible {
  opacity: 1;
}

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ---------- Sections ---------- */

section { padding: 84px 0; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 10px;
}

section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--navy);
  margin-bottom: 22px;
}

/* About */

.about { background: var(--cream); }

.about .wrap {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}

.about img {
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(23, 43, 92, 0.18);
}

.about p { margin-bottom: 16px; color: #3c4356; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.stat .stat-num {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: 2.1rem;
  color: var(--navy);
  line-height: 1.1;
}

.stat .stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.about .credentials {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2dad2;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Services */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}

.service-card {
  border: 1px solid #e8e4df;
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 34px 28px;
  background: var(--white);
  transition: box-shadow 0.3s ease, border-top-color 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 18px 38px rgba(23, 43, 92, 0.13);
  border-top-color: var(--gold);
}

.service-card h3 {
  color: var(--navy);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.service-card p { color: #3c4356; font-size: 0.98rem; }

/* Quote band */

.quote-band {
  position: relative;
  overflow: hidden;
  background: var(--blush);
  text-align: center;
  padding: 74px 24px;
}

.quote-watermark {
  position: absolute;
  left: -3%;
  top: -46%;
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: clamp(16rem, 34vw, 28rem);
  line-height: 1;
  color: rgba(32, 58, 119, 0.05);
  pointer-events: none;
  user-select: none;
}

.quote-band blockquote {
  position: relative;
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  color: var(--navy);
  max-width: 30em;
  margin: 0 auto 14px;
}

.quote-band cite {
  position: relative;
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
}

/* Contact */

.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-lines { list-style: none; margin: 26px 0; }

.contact-lines li { margin-bottom: 14px; }

.contact-lines .label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--muted);
}

.contact-lines a {
  font-size: 1.15rem;
  text-decoration: none;
}

.contact-lines a:hover { text-decoration: underline; }

form .field { margin-bottom: 16px; }

form label {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  color: var(--muted);
}

form input, form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d5d0c9;
  border-radius: 3px;
  font: inherit;
  background: var(--cream);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

form input:focus, form textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(32, 58, 119, 0.15);
}

/* Listings page */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding: 68px 24px;
}

.page-hero h1 {
  position: relative;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  animation: rise 0.9s cubic-bezier(0.22, 0.7, 0.3, 1) both;
}

.page-hero p {
  position: relative;
  color: #d9e0f2;
  max-width: 36em;
  margin: 12px auto 0;
  animation: rise 0.9s cubic-bezier(0.22, 0.7, 0.3, 1) 0.12s both;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.listing-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e8e4df;
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.listing-card:hover {
  box-shadow: 0 18px 38px rgba(23, 43, 92, 0.15);
  border-color: #d5d0c9;
}

.listing-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--cream);
}

.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 3px;
}

.listing-body { padding: 20px 22px 22px; }

.listing-price {
  font-family: "Sorts Mill Goudy", Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1.2;
}

.listing-address {
  margin-top: 4px;
  color: #3c4356;
  font-size: 0.95rem;
}

.listing-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #efece7;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

.listings-empty {
  text-align: center;
  border: 1px dashed #cdc7bf;
  border-radius: 6px;
  padding: 70px 30px;
  background: var(--cream);
  max-width: 640px;
  margin: 0 auto;
}

.listings-empty h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.listings-empty p { color: var(--muted); margin-bottom: 24px; }

/* Footer */

.site-footer {
  background: var(--navy-deep);
  border-top: 3px solid var(--gold);
  color: #c9d2e8;
  padding: 46px 0 40px;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
}

.site-footer img { width: 130px; border-radius: 3px; }

.site-footer a { color: var(--white); text-decoration: none; }

.site-footer a:hover { text-decoration: underline; }

.site-footer .eho {
  text-align: right;
  font-size: 0.78rem;
  max-width: 260px;
  color: #9aa7c9;
}

/* ---------- Mobile ---------- */

.menu-btn { display: none; }

@media (max-width: 860px) {
  .site-nav { display: none; }

  .site-nav.open {
    display: flex;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    border-bottom: 1px solid #e8e4df;
    box-shadow: 0 18px 30px rgba(23, 43, 92, 0.12);
    padding: 18px 24px 24px;
    gap: 18px;
    animation: menu-drop 0.28s ease both;
  }

  @keyframes menu-drop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: none; }
  }

  .site-nav.open a { font-size: 1.05rem; padding: 4px 0; }

  .menu-btn {
    display: inline-block;
    background: none;
    border: 1px solid #d5d0c9;
    border-radius: 3px;
    padding: 8px 14px;
    font-size: 1.05rem;
    color: var(--navy);
    cursor: pointer;
  }

  .hero { padding: 72px 20px 80px; }
  .about .wrap { grid-template-columns: 1fr; gap: 36px; }
  .about img { max-width: 320px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 28px; }
  .contact .wrap { grid-template-columns: 1fr; gap: 40px; }
  .site-footer .wrap { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .site-footer img { margin: 0 auto; }
  .site-footer .eho { text-align: center; max-width: none; }
  section { padding: 60px 0; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-inner > *, .page-hero h1, .page-hero p, .site-nav.open { animation: none; }
  .reveal { opacity: 1; transition: none; }
  .btn, .service-card, .nav-cta { transition: none; }
}
