/* ============================================================
   homesbyryanfl.com — site styles (dark luxury theme)
   Inspired by high-end agent sites: near-black backgrounds,
   gold serif branding, full-bleed modern home hero photo,
   LPT red reserved for primary buttons. Mobile-first.
   ============================================================ */

:root {
  --bg: #14110D;           /* page background — warm near-black */
  --bg-alt: #1B1712;       /* alternate sections */
  --panel: #201B15;        /* cards / panels */
  --ink: #14110D;
  --heading: #F2EBDD;      /* ivory headings */
  --body-text: #C4BBAA;    /* warm light gray body copy */
  --muted: #9A917F;
  --red: #C8202F;
  --red-dark: #A51A26;
  --maroon: #7A1F2B;
  --gold: #D6B97C;         /* champagne gold (light, for dark bg) */
  --gold-dim: #A98B4F;
  --gold-line: rgba(214, 185, 124, 0.25);
  --charcoal: #1F1F1F;     /* text on light panels (form card, logo plaque) */
  --ivory: #FAF7F1;
  --line-light: #E5DECF;   /* hairlines on light panels */
  --white: #FFFFFF;
  --radius: 10px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--body-text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 1.0625rem; /* 17px — comfortable on phones */
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--heading);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0.005em;
}

h1 { font-size: clamp(2.3rem, 6.5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-bottom: 0.85rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }

.container {
  width: min(1100px, 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: 4.5rem 0; }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
}

.eyebrow {
  display: inline-block;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 0.75rem;
}

.lead { font-size: 1.15rem; color: var(--body-text); max-width: 46rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 1rem 2.1rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
              transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.btn--primary { background: var(--red); color: var(--white); }
.btn--primary:hover { background: var(--red-dark); color: var(--white); }

.btn--outline { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn--outline:hover { background: var(--gold); color: var(--ink); }

.btn--light { background: var(--ivory); color: var(--maroon); }
.btn--light:hover { background: var(--white); color: var(--maroon); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.75rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 13, 10, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gold-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  gap: 1rem;
}

.brand { margin-right: auto; }

.nav-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  text-decoration: none;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.15;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--red); }
.brand small {
  font-family: var(--font);
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.28em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
.nav-menu li + li { border-left: 1px solid var(--gold-line); }
.nav-menu li:last-child { border-left: 0; }
.nav-menu a {
  display: block;
  padding: 0.35rem 1.3rem;
  color: var(--heading);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.nav-menu a:hover { color: var(--gold); text-decoration: none; }
.nav-menu a[aria-current="page"] { color: var(--gold); }
.nav-menu .btn { padding: 0.65rem 1.4rem; font-size: 0.76rem; margin-left: 1.1rem; }
.nav-menu .btn:hover { color: var(--white); }

@media (max-width: 820px) {
  .nav-toggle { display: block; order: 10; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #100D0A;
    border-bottom: 1px solid var(--gold-line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0 1rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu li + li { border-left: 0; border-top: 1px solid rgba(214, 185, 124, 0.12); }
  .nav-menu a {
    display: block;
    padding: 0.95rem 1.25rem;
    font-size: 0.92rem;
  }
  .nav-menu .btn { margin: 0.75rem 1.25rem 0; }
}

/* ---------- Hero (full-bleed modern home photo) ---------- */

.hero {
  background:
    linear-gradient(180deg, rgba(16, 13, 9, 0.78) 0%, rgba(16, 13, 9, 0.5) 45%, rgba(20, 17, 13, 0.92) 100%),
    url("../images/hero-home8.jpg") center 50% / cover no-repeat;
  color: var(--ivory);
  border-bottom: 1px solid var(--gold-line);
}

.hero .container {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0 4.5rem;
  align-items: center;
}

.hero .eyebrow { color: var(--gold); }

.hero-photo {
  width: min(190px, 52vw);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid rgba(20, 17, 13, 0.55);
  box-shadow: 0 0 0 1px var(--gold), 0 24px 60px rgba(0, 0, 0, 0.6);
  margin-inline: auto;
}

.hero-text { text-align: center; }
.hero-text h1 { margin-bottom: 1.15rem; color: var(--ivory); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
.hero-text .lead { margin-inline: auto; color: #DDD5C5; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55); }
.hero-text .btn-row { justify-content: center; }

@media (min-width: 821px) {
  .hero .container {
    grid-template-columns: 1.2fr 0.8fr;
    padding: 6rem 0 6.5rem;
  }
  .hero-text { text-align: left; order: -1; }
  .hero-text .lead { margin-inline: 0; }
  .hero-text .btn-row { justify-content: flex-start; }
  .hero-photo { width: 250px; }
}

/* ---------- Cards ---------- */

.card-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 700px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-top: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
}
.card .card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(214, 185, 124, 0.12);
  color: var(--gold);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}
.card p { color: var(--body-text); font-size: 0.98rem; }

/* ---------- Steps (buyers page) ---------- */

.steps { list-style: none; counter-reset: step; margin-top: 2.5rem; display: grid; gap: 1.5rem; }
.steps li {
  counter-increment: step;
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.75rem 5rem;
  position: relative;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  position: absolute;
  left: 1.4rem;
  top: 1.6rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  display: grid;
  place-items: center;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--body-text); font-size: 0.98rem; }

/* ---------- Checklist (sellers page) ---------- */

.checklist { list-style: none; margin-top: 1.75rem; display: grid; gap: 1rem; }
.checklist li {
  padding-left: 2.3rem;
  position: relative;
  color: var(--body-text);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.32rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.4-4.2-4.2 1.7-1.7 2.5 2.5 5.7-5.7 1.7 1.7-7.4 7.4z"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.4-4.2-4.2 1.7-1.7 2.5 2.5 5.7-5.7 1.7 1.7-7.4 7.4z"/></svg>') center / contain no-repeat;
}

/* ---------- Info / good-to-know box ---------- */

.info-box {
  margin-top: 3rem;
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.75rem;
}
.info-box strong { color: var(--gold); }

/* ---------- Neighborhoods ---------- */

.hood-grid { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 700px) {
  .hood-grid { grid-template-columns: repeat(2, 1fr); }
}
.hood {
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 2.25rem 1.75rem;
}
.hood h3 { color: var(--heading); }
.hood .hood-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  border: 1px solid var(--gold-line);
  background: transparent;
  border-radius: 2px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.9rem;
}
.hood p { color: var(--body-text); font-size: 0.98rem; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(135deg, #1D1410 0%, #461219 60%, var(--maroon) 100%);
  border-top: 1px solid var(--gold-line);
  color: var(--ivory);
  text-align: center;
  padding: 4.5rem 0;
}
.cta-banner h2 { color: var(--ivory); }
.cta-banner p { color: #D8CFBF; max-width: 38rem; margin: 0 auto; }
.cta-banner .btn-row { justify-content: center; }
.cta-banner a:not(.btn) { color: var(--gold); font-weight: 700; }

/* ---------- Testimonials placeholder ---------- */

.quote-card {
  font-family: var(--font-display);
  background: var(--panel);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

/* ---------- Contact form (light card pops on dark, like a
              luxury site's white search bar) ---------- */

.contact-grid { display: grid; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 821px) {
  .contact-grid { grid-template-columns: 1.1fr 0.9fr; }
}

.form-card {
  background: var(--ivory);
  border: 1px solid var(--line-light);
  border-top: 3px solid var(--gold-dim);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  padding: 2.25rem 1.75rem;
  color: var(--charcoal);
}

.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  padding: 0.85rem 0.95rem;
  border: 1px solid #D8D0BE;
  border-radius: 4px;
  background: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-dim);
  outline-offset: 1px;
  border-color: var(--gold-dim);
}
.field textarea { min-height: 130px; resize: vertical; }

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 4px;
  font-weight: 600;
  display: none;
}
.form-status.success { display: block; background: #EAF3EC; color: #1B6B3A; }
.form-status.error { display: block; background: #F7E9E5; color: var(--maroon); }

.contact-aside h2, .contact-aside h3 { color: var(--heading); }
.contact-aside h3 { margin-top: 1.75rem; }
.contact-aside p { color: var(--body-text); }
.contact-list { list-style: none; margin-top: 1rem; display: grid; gap: 0.85rem; }
.contact-list a { font-weight: 700; color: var(--gold); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--gold-line);
  background: #100D0A;
  padding: 3.25rem 0 2.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--heading);
  display: block;
  margin-bottom: 0.35rem;
}
.site-footer ul { list-style: none; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold); }

/* White plaque keeps the LPT logo on the white background
   it was designed for — required logo usage. */
.footer-logos {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  width: fit-content;
}
.footer-logos img.lpt { height: 52px; width: auto; }
.footer-logos svg { height: 40px; width: auto; color: #5C5C5C; }

.footer-legal {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(214, 185, 124, 0.15);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: #7E7666;
}

/* ---------- Page hero (interior pages, photo + heavy overlay) ---------- */

.page-hero {
  background:
    linear-gradient(180deg, rgba(16, 13, 9, 0.88) 0%, rgba(16, 13, 9, 0.82) 60%, rgba(20, 17, 13, 0.95) 100%),
    url("../images/hero-home8.jpg") center 50% / cover no-repeat;
  color: var(--ivory);
  border-bottom: 1px solid var(--gold-line);
  padding: 4.5rem 0;
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero h1 { max-width: 50rem; color: var(--ivory); text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55); }
.page-hero .lead { margin-top: 1rem; color: #DDD5C5; }
.page-hero a:not(.btn) { color: var(--gold); }

/* ---------- About ---------- */

.about-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 821px) {
  .about-grid { grid-template-columns: 0.85fr 1.15fr; }
}
.about-photo {
  border-radius: var(--radius);
  border: 1px solid rgba(20, 17, 13, 0.6);
  box-shadow: 0 0 0 1px var(--gold-dim), 0 24px 60px rgba(0, 0, 0, 0.5);
  width: min(420px, 100%);
  height: auto;
  margin-inline: auto;
}
.about-copy p { margin-bottom: 1.25rem; }
.about-copy p:first-of-type {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--heading);
}

.trust-strip {
  margin-top: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.1rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: 1.4rem 1.5rem;
  color: var(--gold);
  text-align: center;
}

/* ---------- Motion: hero entrance + scroll reveals ---------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered entrance when the page loads */
.hero-text > *,
.page-hero .container > * {
  animation: riseIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero-text > *:nth-child(1), .page-hero .container > *:nth-child(1) { animation-delay: 0.1s; }
.hero-text > *:nth-child(2), .page-hero .container > *:nth-child(2) { animation-delay: 0.25s; }
.hero-text > *:nth-child(3), .page-hero .container > *:nth-child(3) { animation-delay: 0.4s; }
.hero-text > *:nth-child(4), .page-hero .container > *:nth-child(4) { animation-delay: 0.55s; }
.hero-photo { animation: riseIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.35s backwards; }

/* Elements fade up as they scroll into view (class added by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero-text > *, .page-hero .container > *, .hero-photo { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Cursor spotlight (desktop only, added by JS) ---------- */

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 340px;
  margin: -170px 0 0 -170px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: radial-gradient(circle,
    rgba(214, 185, 124, 0.12) 0%,
    rgba(214, 185, 124, 0.05) 35%,
    rgba(214, 185, 124, 0) 65%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.5s ease;
  will-change: transform;
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
