/* ============================================
   Molly Harrington | Kurfiss Sotheby's International Realty
   Brand: Navy #1B2A47 · Gold #B69A5C · White #FFFFFF
   ============================================ */

@font-face {
  font-family: "Freight-DispMedium";
  src: url("fonts/freight-disp-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "BentonSans-Book";
  src: url("fonts/bentonsans-book.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1B2A47;
  --gold: #B69A5C;
  --white: #FFFFFF;
  --off-white: #FAF9F7;
  --font-heading: "Freight-DispMedium", Georgia, serif;
  --font-body: "BentonSans-Book", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-width: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
  font-weight: 500;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease;
}

.site-header.is-scrolled {
  background: var(--navy);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 8px rgba(0, 0, 0, 0.35));
}

.header-logo img {
  height: 36px;
  width: auto;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: color 0.2s ease;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.nav-link:hover { color: var(--gold); }

.nav-contact-trigger {
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .header-inner {
    padding: 16px 24px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
  }
  .header-logo { order: -1; flex-basis: 100%; justify-content: center; margin-bottom: 4px; }
  .site-nav {
    display: contents;
  }
  .nav-link { font-size: 12.5px; letter-spacing: 0.6px; }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 14px 20px;
    gap: 6px 14px;
  }
  .nav-link { font-size: 11px; letter-spacing: 0.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform-origin: center center;
  animation: kenburns 20s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  100% {
    transform: scale(1.08) translate(-2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image {
    animation: none;
  }
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 340px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}

.hero-title {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0 24px;
  text-align: center;
  z-index: 2;
}

.hero-name {
  margin: 0;
}

.hero-name a {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  color: var(--white);
  font-size: clamp(44px, 6vw, 88px);
  letter-spacing: 1px;
  text-decoration: none;
  text-shadow: 0 0 60px rgba(0, 0, 0, 1), 3px 3px 12px rgba(0, 0, 0, 1), 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  color: var(--white);
  font-size: 22px;
  letter-spacing: 0.8px;
  max-width: 900px;
  margin: 4px auto 0;
  text-shadow: 0 0 60px rgba(0, 0, 0, 1), 3px 3px 12px rgba(0, 0, 0, 1), 0 0 100px rgba(0, 0, 0, 0.8);
}

.hero-tagline span {
  display: inline-block;
  margin: 0 20px;
}

.hero-tagline span:first-child { margin-left: 0; }
.hero-tagline span:last-child { margin-right: 0; }

@media (max-width: 900px) {
  .hero-name a { font-size: clamp(30px, 8vw, 56px); }
  .hero-tagline { font-size: 18px; }
  .hero-tagline span { margin: 0 10px; }
}

@media (max-width: 480px) {
  .hero-name a { font-size: 8vw; }
  .hero-tagline { font-size: 16px; letter-spacing: 0.4px; }
  .hero-tagline span { margin: 0 6px; }
}

/* ---------- About ---------- */
.about {
  padding: 96px 0;
  background: var(--white);
}

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

.about-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 2px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 2px;
  display: block;
}

.about-heading {
  font-size: 34px;
  color: var(--navy);
  margin-bottom: 24px;
}

.about-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--gold);
  margin-top: 18px;
}

.about-body p {
  margin: 0 0 20px;
  font-size: 17px;
  color: #33415c;
}

.about-body p:last-child { margin-bottom: 0; }

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about { padding: 64px 0; }
  .about-image { max-width: 420px; margin: 0 auto; }
}

/* ---------- How I Can Help ---------- */
.help {
  background: var(--navy);
  padding: 96px 0;
  text-align: center;
}

.help-heading {
  color: var(--white);
  font-size: 34px;
  margin-bottom: 12px;
}

.help-sub {
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  margin: 0 0 48px;
}

.help-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.help-btn {
  display: inline-block;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  padding: 18px 32px;
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font-body);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-width: 230px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.help-widget {
  max-width: 500px;
  margin: 0 auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.help-widget-label {
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 32px 0 20px;
}

/* RealScout's color-customization CSS variables are account-specific —
   copy the exact property names from Marketing > Widgets in the RealScout
   dashboard and add them here. Width is standard CSS and safe to set directly. */
realscout-simple-search {
  width: 500px;
  max-width: 100%;
}

@media (max-width: 640px) {
  .help { padding: 64px 0; }
  .help-btn { width: 100%; min-width: 0; }
}

/* ---------- Contact form (used inside the contact modal) ---------- */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cdd3de;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--navy);
  border-radius: 2px;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-submit {
  display: inline-block;
  width: 100%;
  padding: 16px;
  background: var(--white);
  color: var(--navy);
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover { background: var(--gold); }

.form-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 14px;
  text-align: center;
}

.form-status {
  text-align: center;
  padding: 20px;
  font-size: 16px;
  color: var(--navy);
  border: 1px solid var(--gold);
  background: var(--white);
  display: none;
}

.form-status.visible { display: block; }

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

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Contact Modal ---------- */
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.contact-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--navy);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.contact-modal-inner {
  padding: 56px 44px;
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}

.contact-modal-close:hover { background: rgba(255, 255, 255, 0.1); }

.contact-modal-heading {
  font-size: 30px;
  color: var(--white);
  text-align: center;
  margin-bottom: 12px;
}

.contact-modal-direct {
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
}

.contact-modal-direct a { text-decoration: none; }
.contact-modal-direct a:hover { color: var(--gold); }

.contact-modal-divider { color: rgba(255, 255, 255, 0.4); }

.contact-modal-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-modal-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.contact-modal-social a:hover { background: var(--gold); border-color: var(--gold); }

.contact-modal-social svg { width: 16px; height: 16px; fill: currentColor; }

body.modal-open { overflow: hidden; }

@media (max-width: 640px) {
  .contact-modal { padding: 0; }
  .contact-modal-panel { max-width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .contact-modal-inner { padding: 72px 24px 40px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 32px;
  text-align: center;
}

.footer-brokerage img {
  height: 32px;
  margin: 0 auto 28px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.footer-contact {
  font-size: 14px;
  margin-bottom: 20px;
}

.footer-contact a { text-decoration: none; }
.footer-contact a:hover { color: var(--gold); }

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.3px;
}

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}
