/* JG Samuels Realty — Custom Styles */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Light Theme (default) ── */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F0EDE8;
  --bg-card: #FFFFFF;
  --bg-dark: #1A2840;
  --text: #1A1A18;
  --text-muted: #5A5850;
  --text-faint: #8A8880;
  --primary: #1A2840;
  --primary-rgb: 26, 40, 64;
  --primary-light: #3A5880;
  --accent: #C4993A;
  --accent-light: #F5ECD8;
  --border: #D8D4CC;
  --border-light: #F0EDE8;
}

/* ── Dark Theme ── */
html.dark {
  --bg: #141618;
  --bg-alt: #1E2024;
  --bg-card: #262830;
  --bg-dark: #0A0E14;
  --text: #E8E6E0;
  --text-muted: #A8A498;
  --text-faint: #686460;
  --primary: #3A6AA0;
  --primary-rgb: 58, 106, 160;
  --primary-light: #5A8AC0;
  --accent: #D4A94A;
  --accent-light: #2A2418;
  --border: #2E3038;
  --border-light: #1E2024;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 2.25rem;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-light); }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: 'DM Sans', sans-serif; color: var(--text); line-height: 1.15; }
h1 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 600; }
p { margin-bottom: 1rem; }
.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: .5rem;
}

/* ── Layout ── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 5rem 0; }
.section--sm { padding: 3.5rem 0; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.hidden { display: none !important; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 12px rgba(var(--primary-rgb), .08); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav__brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.nav__brand span { color: var(--accent); }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--accent); }
.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--primary);
  padding: .5rem 1.125rem;
  border-radius: .375rem;
  text-decoration: none;
  transition: background .2s;
  white-space: nowrap;
}
.nav__phone:hover { background: var(--primary-light); color: var(--bg); }
.nav__phone svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  padding: .25rem;
}
.nav__toggle svg { width: 28px; height: 28px; }
.nav__theme {
  background: none;
  border: 1px solid var(--border);
  border-radius: .375rem;
  color: var(--text-muted);
  padding: .375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s;
}
.nav__theme:hover { border-color: var(--accent); color: var(--accent); }
.nav__theme svg { width: 18px; height: 18px; }

@media (max-width: 767px) {
  .nav__toggle { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border-light);
    padding: .5rem 0;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .75rem 1.25rem; width: 100%; }
  .nav__phone--mobile {
    display: flex;
    margin: .5rem 1.25rem;
    justify-content: center;
  }
  .nav__phone--desktop { display: none; }
  .nav__right { display: flex; align-items: center; gap: .5rem; }
}
@media (min-width: 768px) {
  .nav__phone--mobile { display: none; }
  .nav__right { display: flex; align-items: center; gap: 1rem; }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: .9375rem;
  font-weight: 600;
  padding: .75rem 1.75rem;
  border-radius: .375rem;
  border: none;
  transition: background .2s, color .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-light); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: #b8892e; color: #fff; }
.btn--outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
html.dark .btn--outline { color: var(--accent); border-color: var(--accent); }
html.dark .btn--outline:hover { background: var(--accent); color: var(--bg-dark); }
.btn--ghost { background: transparent; color: var(--text-muted); }
.btn--ghost:hover { color: var(--accent); }
.btn--lg { padding: .875rem 2rem; font-size: 1rem; }

/* ── Hero ── */
.hero {
  background: var(--bg);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  min-height: calc(100vh - 4rem);
  padding: 3rem 0;
}
@media (min-width: 768px) {
  .hero__grid { grid-template-columns: 55% 45%; min-height: 0; padding: 5rem 0; }
}
.hero__content { max-width: 540px; }
.hero__content h1 { margin-bottom: 1.25rem; }
.hero__content p { color: var(--text-muted); font-size: 1.125rem; margin-bottom: 2rem; max-width: 460px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__image {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(var(--primary-rgb), .12);
}
.hero__image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ── Dual Path ── */
.dual-path { background: var(--bg-alt); }
.dual-path__card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: .75rem;
  padding: 2.5rem 2rem;
  transition: box-shadow .3s, transform .3s;
}
.dual-path__card:hover {
  box-shadow: 0 8px 32px rgba(var(--primary-rgb), .1);
  transform: translateY(-2px);
}
.dual-path__card--buyer { border-top: 3px solid var(--primary); }
.dual-path__card--seller { border-top: 3px solid var(--accent); }
.dual-path__card h3 { margin-bottom: .75rem; }
.dual-path__card p { color: var(--text-muted); margin-bottom: 1.5rem; }
.dual-path__icon {
  width: 48px;
  height: 48px;
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.dual-path__icon--navy { background: rgba(var(--primary-rgb), .1); color: var(--primary); }
html.dark .dual-path__icon--navy { background: rgba(var(--primary-rgb), .25); color: var(--primary-light); }
.dual-path__icon--gold { background: var(--accent-light); color: var(--accent); }
.dual-path__icon svg { width: 24px; height: 24px; }

/* ── About Preview ── */
.about-preview { background: var(--bg); }
.about-preview__content { max-width: 520px; }
.about-preview__content h2 { margin-bottom: 1rem; }
.about-preview__content p { color: var(--text-muted); }
.about-preview__image {
  border-radius: .75rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(var(--primary-rgb), .08);
}
.about-preview__image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ── Testimonials ── */
.testimonials { background: var(--bg-alt); }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: .75rem;
  padding: 2rem;
  position: relative;
}
.testimonial-card__quote {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-card__author {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-muted);
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'DM Sans', serif;
  font-size: 3rem;
  color: var(--accent);
  opacity: .3;
  position: absolute;
  top: .75rem;
  left: 1.25rem;
  line-height: 1;
}

/* ── Service Area ── */
.service-area { background: var(--bg); text-align: center; }
.service-area h2 { margin-bottom: .75rem; }
.service-area__sub { color: var(--text-muted); margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.service-area__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .625rem;
}
.service-area__tag {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: .5rem 1.125rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color .2s, background .2s;
}
.service-area__tag:hover { border-color: var(--accent); background: var(--accent-light); }

/* ── CTA Band ── */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: .75rem; }
.cta-band p { color: rgba(255,255,255,.7); margin-bottom: 2rem; }
.cta-band__phone {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: .75rem;
  text-decoration: none;
}
.cta-band__phone:hover { color: #fff; }
.cta-band__email {
  font-size: 1rem;
  color: rgba(255,255,255,.6);
}
.cta-band__email:hover { color: var(--accent); }

/* ── Footer ── */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
@media (min-width: 768px) {
  .footer__inner { flex-direction: row; justify-content: space-between; }
}
.footer__brand {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.footer__brand span { color: var(--accent); }
.footer__tagline { font-size: .875rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__contact { font-size: .875rem; line-height: 1.8; }
.footer__contact a { color: rgba(255,255,255,.6); }
.footer__contact a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8125rem;
}
.footer__bottom a { color: rgba(255,255,255,.5); transition: color .2s; }
.footer__bottom a:hover { color: var(--accent); }

/* ── Contact Form ── */
.contact-section { background: var(--bg); }
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: .75rem;
  padding: 2.5rem 2rem;
  max-width: 600px;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .375rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .625rem .875rem;
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: .375rem;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 153, 58, .15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235A5850' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .875rem center;
  padding-right: 2.5rem;
}
.form-honeypot { position: absolute; left: -9999px; }
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-bottom: 1rem;
  font-size: .8125rem;
  color: var(--text-muted);
}
.form-consent input[type="checkbox"] {
  width: auto;
  margin-top: .25rem;
  accent-color: var(--accent);
}
.form-success {
  background: #e6f4ea;
  color: #1e7e34;
  padding: 1rem;
  border-radius: .375rem;
  font-weight: 500;
  font-size: .9375rem;
}
html.dark .form-success { background: #1a2e1a; color: #6fcf7f; }
.form-error {
  background: #fde8e8;
  color: #c62828;
  padding: 1rem;
  border-radius: .375rem;
  font-weight: 500;
  font-size: .9375rem;
}
html.dark .form-error { background: #2e1a1a; color: #ef7070; }

/* ── Contact Info Cards ── */
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: .75rem;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow .2s;
}
.contact-info-card:hover { box-shadow: 0 4px 16px rgba(var(--primary-rgb), .08); }
.contact-info-card__icon {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  background: rgba(var(--primary-rgb), .08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
html.dark .contact-info-card__icon { background: rgba(var(--primary-rgb), .25); color: var(--primary-light); }
.contact-info-card__icon svg { width: 20px; height: 20px; }
.contact-info-card__label { font-size: .8125rem; color: var(--text-faint); margin-bottom: .125rem; }
.contact-info-card__value { font-weight: 500; color: var(--text); }
.contact-info-card__value a { color: var(--text); text-decoration: none; }
.contact-info-card__value a:hover { color: var(--accent); }

/* ── About Page ── */
.about-hero { background: var(--bg-alt); text-align: center; }
.about-hero h1 { margin-bottom: 1rem; }
.about-hero p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(3, 1fr); } }
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: .75rem;
  padding: 2rem;
  text-align: center;
}
.value-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.value-card__icon svg { width: 24px; height: 24px; }
.value-card h3 { margin-bottom: .5rem; }
.value-card p { color: var(--text-muted); font-size: .9375rem; margin-bottom: 0; }

/* ── 404 ── */
.page-404 {
  min-height: calc(100vh - 4rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--bg);
}
.page-404__code {
  font-family: 'DM Sans', sans-serif;
  font-size: 6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: .5rem;
}
.page-404 h1 { margin-bottom: .75rem; }
.page-404 p { color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; }

/* ── Disclaimer Bar ── */
.disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--bg-dark);
  color: rgba(255,255,255,.65);
  font-size: .75rem;
  text-align: center;
  padding: .5rem 1rem;
}
.disclaimer-bar a { color: var(--accent); }
.disclaimer-bar a:hover { color: #fff; }

/* ── Utilities ── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-prose { max-width: 65ch; }

/* ── Animations ── */
@media (prefers-reduced-motion: no-preference) {
  .fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .fade-up.visible { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; }
}
