/* ============================================================
   Archie Ferguson Realtor — archiefergusonrealtor.com
   ============================================================ */

:root {
  --blue: #1A74AE;
  --blue-dark: #145a87;
  --navy: #0B486E;
  --dark: #1c1c1c;
  --cream: #FAF7F0;
  --tan: #D6BF8F;
  --tan-light: #EDE3CC;
  --gray: #5A6269;
  --gray-light: #8b929a;
  --white: #ffffff;
  --border: #e4ddcd;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 72, 110, 0.10);
  --shadow-lg: 0 20px 50px rgba(11, 72, 110, 0.18);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
section { position: relative; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}

h2.section-title {
  font-size: clamp(30px, 4vw, 44px);
  margin-top: 10px;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

.section-head p {
  color: var(--gray);
  font-size: 17px;
  margin-top: 14px;
}

.section-pad { padding: 96px 0; }
.bg-cream { background: var(--cream); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(26, 116, 174, 0.35);
}
.btn-primary:hover { background: var(--blue-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.8);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover { background: var(--navy); color: var(--white); }

.btn-tan {
  background: var(--tan);
  color: var(--dark);
}
.btn-tan:hover { background: #c7ac74; }

.btn-block { width: 100%; }

/* ---------------- Header / Nav ---------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(250, 247, 240, 0);
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(250, 247, 240, 0.97);
  box-shadow: 0 2px 18px rgba(0,0,0,0.08);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 42px; width: 42px; }
.brand-text {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  transition: color 0.25s ease;
}
.site-header.scrolled .brand-text { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  transition: color 0.25s ease;
  position: relative;
}
.site-header.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--tan); }
.site-header.scrolled .nav-links a:hover { color: var(--blue); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-call {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--white);
  transition: color 0.25s ease;
}
.site-header.scrolled .nav-call { color: var(--dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  transition: 0.25s;
}
.site-header.scrolled .nav-toggle span,
.nav-open .nav-toggle span { background: var(--dark); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(11,20,30,0.55) 0%, rgba(11,20,30,0.68) 55%, rgba(11,20,30,0.88) 100%), url('images/hero-archie.jpg');
  background-size: cover;
  background-position: center 20%;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: 110px;
}
.hero .eyebrow { color: var(--tan); }
.hero h1 {
  font-size: clamp(42px, 7vw, 74px);
  color: var(--white);
  margin: 14px 0 20px;
  line-height: 1.05;
}
.hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------------- Stats bar ---------------- */
.stats-bar {
  background: var(--navy);
  color: var(--white);
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: var(--tan);
}
.stat-label {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-top: 6px;
}

/* ---------------- Service cards ---------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
}
.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--gray);
  font-size: 15px;
  margin-bottom: 26px;
  min-height: 66px;
}

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.about-photo-wrap { position: relative; }
.about-photo-wrap img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  bottom: -22px;
  right: -22px;
  background: var(--blue);
  color: var(--white);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(26,116,174,0.4);
  text-align: center;
}
.about-badge .stat-num { color: var(--white); font-size: 26px; }
.about-badge .stat-label { color: rgba(255,255,255,0.85); font-size: 11px; }

.about-text h2 { margin-bottom: 20px; }
.about-text p { color: var(--gray); font-size: 16px; margin-bottom: 18px; }
.about-signoff {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  margin-top: 26px;
}

/* ---------------- Listings ---------------- */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.listing-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
  border: 1px solid var(--border);
}
.listing-photo {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-body { padding: 22px 26px 26px; }
.listing-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.listing-body h3 { font-size: 19px; margin-bottom: 4px; }
.listing-body p { color: var(--gray); font-size: 14.5px; margin: 0; }

/* ---------------- Testimonials ---------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.stars { color: var(--tan); font-size: 16px; letter-spacing: 2px; margin-bottom: 16px; }
.testimonial-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--dark);
  margin-bottom: 20px;
}
.testimonial-author {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.testimonial-role {
  font-size: 13px;
  color: var(--gray-light);
}
.testimonial-placeholder-note {
  text-align: center;
  color: var(--gray-light);
  font-size: 13px;
  margin-top: 30px;
  font-style: italic;
}

.testimonial-more {
  text-align: center;
  margin-top: 36px;
}
.testimonial-more a {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.testimonial-more a:hover {
  border-color: var(--blue);
}

/* ---------------- FSBO ---------------- */
.fsbo-wrap {
  background: var(--navy);
  border-radius: 16px;
  padding: 64px;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.fsbo-wrap h2 { color: var(--white); }
.fsbo-wrap .eyebrow { color: var(--tan); }
.fsbo-wrap > .fsbo-copy p { color: rgba(255,255,255,0.82); font-size: 16px; margin: 18px 0 30px; }
.fsbo-list { display: flex; flex-direction: column; gap: 16px; }
.fsbo-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}
.fsbo-list .check {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--tan);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 900;
}
.fsbo-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 34px;
}
.fsbo-card h4 { color: var(--white); font-size: 20px; margin-bottom: 10px; }
.fsbo-card p { color: rgba(255,255,255,0.8); font-size: 14.5px; margin-bottom: 22px; }

/* ---------------- Contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info p.lead-text { color: var(--gray); font-size: 16px; margin-bottom: 30px; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.contact-detail .ic {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail .label { font-size: 12.5px; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.6px; }
.contact-detail .value { font-weight: 700; font-size: 16px; }
.contact-social { display: flex; gap: 12px; margin-top: 30px; }
.contact-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  transition: 0.2s;
}
.contact-social a:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 42px;
  border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: var(--dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,116,174,0.15);
}
.form-note { font-size: 12.5px; color: var(--gray-light); margin-top: 12px; text-align: center; }
.form-success {
  display: none;
  background: #e7f5ec;
  border: 1px solid #b7dfc5;
  color: #1e6b3a;
  padding: 16px 18px;
  border-radius: 6px;
  font-size: 14.5px;
  margin-bottom: 18px;
}

/* ---------------- Sticky mobile call bar ---------------- */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  display: none;
  background: var(--navy);
  padding: 12px 16px;
  gap: 10px;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.sticky-cta a { flex: 1; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: #12181d;
  color: rgba(255,255,255,0.75);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; width: 40px; }
.footer-brand span { font-family: var(--serif); font-size: 19px; color: var(--white); font-weight: 700; }
.footer-col h5 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col p, .footer-col a { display: block; font-size: 14.5px; margin-bottom: 12px; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--tan); }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom .eho { display: flex; align-items: center; gap: 8px; }

/* ---------------- Utility / reveal animation ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { max-width: 420px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .fsbo-wrap { grid-template-columns: 1fr; padding: 44px 28px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .nav-call, .nav-cta > .btn-primary { display: none; }
  .brand-text { font-size: 17px; white-space: nowrap; }
  .nav-inner { align-items: center; }
  .nav-open .nav-links {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    z-index: 1050;
  }
  .nav-open .nav-links a { color: var(--dark); font-size: 20px; }
  .nav-toggle { display: flex; }
  .sticky-cta { display: flex; }
  .section-pad { padding: 64px 0; }
  body { padding-bottom: 62px; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .contact-form { padding: 28px 22px; }
  .fsbo-card { padding: 26px; }
}
