/* =====================================================
   Joseph Gioielli — eXp Realty | Stylesheet
   Brand palette inspired by eXp Realty
   ===================================================== */

:root {
  /* eXp Realty-inspired palette */
  --exp-navy: #13294b;      /* deep navy — primary */
  --exp-navy-dark: #0c1b34;
  --exp-blue: #1b75bc;      /* bright accent blue */
  --exp-blue-light: #2f8fdc;
  --exp-sky: #eaf3fb;
  --exp-gold: #c8a14b;      /* subtle premium accent */

  --ink: #1a2232;
  --body: #475066;
  --muted: #8a93a6;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(19, 41, 75, 0.06);
  --shadow: 0 14px 40px rgba(19, 41, 75, 0.12);
  --shadow-lg: 0 26px 70px rgba(19, 41, 75, 0.18);

  --maxw: 1160px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
}
.btn-primary {
  background: var(--exp-blue);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 117, 188, 0.35);
}
.btn-primary:hover { background: var(--exp-blue-light); transform: translateY(-2px); box-shadow: 0 16px 32px rgba(27, 117, 188, 0.45); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s, background 0.3s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }

.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.28rem; color: var(--exp-navy); letter-spacing: -0.01em; }
.brand-sub { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; color: var(--exp-blue); text-transform: uppercase; }

.nav-list { list-style: none; display: flex; align-items: center; gap: 30px; }
.nav-list a { font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; color: var(--ink); position: relative; transition: color 0.2s; }
.nav-list a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--exp-blue); transition: width 0.25s var(--ease);
}
.nav-list a:not(.nav-cta):hover { color: var(--exp-blue); }
.nav-list a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--exp-navy); color: #fff !important; padding: 10px 22px; border-radius: 999px;
  transition: background 0.25s, transform 0.25s;
}
.nav-cta:hover { background: var(--exp-blue); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--exp-navy); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 74px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(12, 27, 52, 0.94) 0%, rgba(19, 41, 75, 0.82) 50%, rgba(27, 117, 188, 0.55) 100%),
    url("images/nashville-skyline.jpg");
  background-size: cover;
  background-position: center 35%;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 70% 50%, #000, transparent 75%);
}
.hero-content { position: relative; max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.hero-eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--exp-blue-light); margin-bottom: 20px;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 22px; }
.hero-title span { color: var(--exp-blue-light); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.86); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: #fff; line-height: 1; }
.stat-label { font-size: 0.82rem; color: rgba(255, 255, 255, 0.7); margin-top: 6px; max-width: 150px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--exp-navy-dark); color: rgba(255, 255, 255, 0.82); }
.trustbar-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 24px; font-size: 0.84rem; font-family: var(--font-head); letter-spacing: 0.03em;
}
.trustbar strong { color: #fff; font-weight: 700; }
.trustbar .dot { color: var(--exp-blue); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-eyebrow {
  font-family: var(--font-head); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--exp-blue); margin-bottom: 14px;
}
.section-eyebrow.light { color: var(--exp-blue-light); }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.01em; }
.section-title.light { color: #fff; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-intro { margin-top: 16px; font-size: 1.08rem; }
.section-intro.light { color: rgba(255, 255, 255, 0.82); }

/* ---------- About ---------- */
.about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--exp-navy), var(--exp-blue));
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.photo-badge {
  position: absolute; right: -14px; bottom: 26px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 20px; display: flex; flex-direction: column; max-width: 190px;
  border: 1px solid var(--line);
}
.badge-num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--exp-gold); line-height: 1; }
.badge-label { font-size: 0.78rem; color: var(--body); margin-top: 4px; font-weight: 500; }

.about-text p { margin-bottom: 18px; font-size: 1.05rem; }
.about-points { list-style: none; margin: 26px 0 32px; display: grid; gap: 12px; }
.about-points li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink); }
.about-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--exp-sky); color: var(--exp-blue);
  display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700;
}

/* ---------- Services ---------- */
.services { background: var(--bg-soft); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--exp-sky);
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 20px;
}
.card h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.98rem; }
.card.highlight { background: var(--exp-navy); border-color: var(--exp-navy); }
.card.highlight h3 { color: #fff; }
.card.highlight p { color: rgba(255, 255, 255, 0.82); }
.card.highlight .card-icon { background: rgba(255, 255, 255, 0.12); }

/* ---------- Veteran banner ---------- */
.veteran {
  background-size: cover; background-position: center; background-attachment: fixed;
  color: #fff; text-align: center;
}
.veteran-inner { max-width: 820px; margin: 0 auto; }
.veteran-lead { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; margin: 18px auto 36px; max-width: 680px; }
.veteran-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 38px; }
.veteran-points > div {
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius); padding: 24px 20px;
}
.veteran-points span { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--exp-blue-light); display: block; margin-bottom: 8px; }
.veteran-points p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); }

/* ---------- Areas feature image ---------- */
.areas-feature {
  position: relative; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 36px; box-shadow: var(--shadow); max-height: 320px;
}
.areas-feature img { width: 100%; height: 100%; object-fit: cover; max-height: 320px; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--exp-blue); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 44px 24px; }
.sg-item { text-align: center; color: #fff; }
.sg-num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); display: block; line-height: 1.1; }
.sg-label { font-size: 0.86rem; color: rgba(255, 255, 255, 0.85); margin-top: 6px; display: block; }

/* ---------- Areas ---------- */
.areas { background: var(--exp-navy); position: relative; overflow: hidden; }
.areas::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 420px; height: 420px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,143,220,0.25), transparent 70%);
}
.area-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative;
}
.area-grid span {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 0.96rem;
  padding: 16px 18px; border-radius: var(--radius-sm); text-align: center;
  transition: background 0.25s, transform 0.25s, border-color 0.25s;
}
.area-grid span:hover { background: var(--exp-blue); transform: translateY(-3px); border-color: var(--exp-blue); }

.neighborhoods { margin-top: 50px; text-align: center; position: relative; }
.neighborhoods h3 { color: #fff; font-size: 1.05rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 20px; opacity: 0.85; }
.hood-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hood-tags span {
  padding: 8px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85); font-size: 0.9rem; font-family: var(--font-head);
}

/* ---------- Process ---------- */
.process { background: var(--bg); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 36px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; background: var(--exp-navy); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: 18px;
}
.step h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.95rem; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--bg-soft); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
}
.stars { color: var(--exp-gold); letter-spacing: 2px; font-size: 1.05rem; margin-bottom: 16px; }
.quote blockquote { font-size: 1.05rem; color: var(--ink); line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.quote figcaption { font-family: var(--font-head); font-weight: 600; color: var(--exp-blue); font-size: 0.92rem; }
.reviews-note { text-align: center; margin-top: 30px; font-size: 0.85rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { background: var(--exp-navy); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; bottom: -150px; left: -100px; width: 480px; height: 480px;
  border-radius: 50%; background: radial-gradient(circle, rgba(47,143,220,0.22), transparent 70%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; position: relative; }
.contact-lead { color: rgba(255, 255, 255, 0.82); margin: 16px 0 30px; font-size: 1.05rem; }
.contact-list { list-style: none; display: grid; gap: 22px; }
.contact-list li { display: flex; flex-direction: column; }
.ci-label { font-family: var(--font-head); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--exp-blue-light); margin-bottom: 4px; }
.contact-list a, .contact-list span:not(.ci-label) { color: #fff; font-size: 1.1rem; font-weight: 500; transition: color 0.2s; }
.contact-list a:hover { color: var(--exp-blue-light); }

.contact-form { background: #fff; border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 0.85rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-soft); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--exp-blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 117, 188, 0.12);
}
.field textarea { resize: vertical; }
.form-status { margin-top: 14px; font-size: 0.92rem; font-weight: 600; text-align: center; min-height: 1.2em; }
.form-status.success { color: #1a8a4a; }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--exp-navy-dark); color: rgba(255, 255, 255, 0.75); padding-top: 60px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-sub { color: var(--exp-blue-light); }
.footer-blurb { margin-top: 14px; font-size: 0.95rem; max-width: 320px; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { font-family: var(--font-head); font-size: 0.95rem; transition: color 0.2s; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.95rem; }
.footer-contact a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 22px 0; }
.footer-legal .container { display: flex; flex-direction: column; gap: 8px; }
.footer-legal p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.legal-fine { font-size: 0.76rem !important; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%; background: var(--exp-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: opacity 0.3s, transform 0.3s, background 0.25s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--exp-navy); }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
  .cards, .quotes { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .veteran-points { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .veteran { background-attachment: scroll; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-list {
    position: fixed; top: 74px; right: 0; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); padding: 0 24px;
  }
  .nav-list.open { max-height: 420px; padding: 12px 24px 24px; }
  .nav-list li { width: 100%; }
  .nav-list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-list a:not(.nav-cta)::after { display: none; }
  .nav-cta { text-align: center; margin-top: 12px; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .section { padding: 70px 0; }
  .hero { min-height: 86vh; }
  .hero-stats { gap: 26px; }
  .stat-num { font-size: 1.7rem; }
  .cards, .quotes, .steps, .area-grid, .field-row, .footer-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { gap: 30px; }
  .photo-badge { right: 12px; }
}
