/* =========================================
   Jake Kelso | Realtor — Brand Stylesheet
   Colors: #00B456 (green), #6C6D69 (gray)
   Fonts: Great Vibes, Montserrat
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Montserrat:wght@300;400;500;600;700;800&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #00B456;
  --green-dark: #009648;
  --green-light: #e6f7ef;
  --gray: #6C6D69;
  --gray-light: #f4f4f3;
  --gray-mid: #e0e0de;
  --black: #1a1a1a;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --font-title: 'Great Vibes', cursive;
  --font-body: 'Montserrat', sans-serif;
  --nav-height: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

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

/* ---- Typography ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.script { font-family: var(--font-title); font-weight: 400; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  max-width: 560px;
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,180,86,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}

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

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

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-mid);
  transition: box-shadow var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.nav-logo .name {
  font-family: var(--font-title);
  font-size: 1.7rem;
  color: var(--black);
  line-height: 1;
}

.nav-logo .title {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a.active { color: var(--green); }

.nav-cta { margin-left: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a1628 0%, #1a2a1a 60%, #0d2010 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1600&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0,180,86,0.15);
  border: 1px solid rgba(0,180,86,0.4);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--green);
  font-family: var(--font-title);
  font-size: 1.2em;
  font-weight: 400;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-search {
  margin-top: 48px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.hero-search input::placeholder { color: rgba(255,255,255,0.5); }

.hero-stats {
  position: absolute;
  right: 0;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--black);
  padding: 40px 0;
}

.trust-bar-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-stat {
  text-align: center;
}

.trust-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.trust-stat .label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ---- Cards ---- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body { padding: 24px; }

.card-tag {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-address {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.card-details {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--gray);
  font-weight: 600;
  padding-top: 14px;
  border-top: 1px solid var(--gray-mid);
}

/* ---- Neighborhood Cards ---- */
.hood-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
}

.hood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hood-card:hover img { transform: scale(1.06); }

.hood-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.hood-overlay h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.hood-overlay p {
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}

/* ---- Testimonials ---- */
.testimonials { background: var(--gray-light); }

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--black);
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.testimonial-author .info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}

.testimonial-author .info span {
  font-size: 0.8rem;
  color: var(--gray);
}

/* ---- About Preview ---- */
.about-img-wrap {
  position: relative;
}

.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  height: 500px;
}

.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-hover);
}

.about-badge .num {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.about-badge .txt {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.about-text h2 { margin-bottom: 16px; }

.about-text p {
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.75;
}

.check-list {
  list-style: none;
  margin: 24px 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--black);
}

.check-list li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, #00B456, #009648);
  color: var(--white);
  text-align: center;
}

.cta-section h2 { color: var(--white); margin-bottom: 16px; }

.cta-section p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ---- Contact Form ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 14px 16px;
  border: 1.5px solid var(--gray-mid);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
  color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green);
}

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

/* ---- Blog Cards ---- */
.blog-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all var(--transition); }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-body { padding: 24px; }
.blog-meta { font-size: 0.75rem; color: var(--gray); font-weight: 600; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-body h3 { font-size: 1.05rem; margin-bottom: 10px; line-height: 1.3; }
.blog-body p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; }
.read-more { font-size: 0.8rem; font-weight: 700; color: var(--green); margin-top: 14px; display: inline-block; }
.read-more:hover { text-decoration: underline; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #0a1628, #1a2a1a);
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?w=1200&q=80');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.page-hero-content { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  margin-bottom: 16px;
}

.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Footer ---- */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .name {
  font-family: var(--font-title);
  font-size: 2rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}

.footer-brand .tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer h4 {
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--green); }

.footer-contact p {
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.footer-contact a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-contact a:hover { color: var(--green); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; }

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
}

.social-link:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ---- Utility ---- */
.text-center { text-align: center; }
.text-green { color: var(--green); }
.bg-light { background: var(--gray-light); }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

.divider {
  width: 48px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: 16px auto 32px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { display: none; }
  .about-badge { right: 0; bottom: -16px; }
}

@media (max-width: 768px) {
  section { padding: 56px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .trust-bar-inner { gap: 24px; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding-bottom: 48px; }
}

/* ---- Mobile Nav ---- */
.mobile-nav {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-mid);
  padding: 24px;
  z-index: 99;
  display: none;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--black);
  letter-spacing: 0.03em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-mid);
}

.mobile-nav a:last-child { border-bottom: none; padding-bottom: 0; }

/* ---- Listing badges ---- */
.listing-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
}

.listing-img-wrap { position: relative; }

/* ---- IDX Banner ---- */
.idx-banner {
  background: var(--green-light);
  border: 1px solid rgba(0,180,86,0.3);
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.idx-banner p {
  font-size: 0.9rem;
  color: var(--black);
}

.idx-banner strong { color: var(--green-dark); }

/* ---- Search bar ---- */
.search-bar {
  display: flex;
  gap: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-mid);
  border-radius: 50px;
  padding: 8px 8px 8px 24px;
  box-shadow: var(--shadow);
  max-width: 640px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  background: none;
}

.search-bar input::placeholder { color: var(--gray); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
}

.breadcrumb a { color: rgba(255,255,255,0.55); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span { margin: 0 8px; }
