/* ============================================
   BRAND KIT — Nick Dolen / Xome Home Loans
   ============================================ */

:root {
  --primary-dark: #374151;
  --primary-darker: #1f2937;
  --accent-green: #4A7A68;
  --accent-green-light: #6B9E8C;
  --accent-green-bg: #e8f0ec;
  --field-border: #D1D5DB;
  --field-bg: #F0F1F3;
  --light-bg: #F8F9FA;
  --white: #FFFFFF;
  --text-primary: #374151;
  --text-secondary: #6B7280;
  --text-light: #9CA3AF;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---- NAV ---- */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--field-border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo img { height: 36px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent-green); }
.nav-cta {
  background: var(--accent-green) !important;
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-green-light) !important; }

/* ---- HERO ---- */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, rgba(31,41,55,0.85) 0%, rgba(55,65,81,0.8) 100%), url('../assets/photos/hero-home.jpg') center/cover no-repeat;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-text h1 span { color: var(--accent-green-light); }
.hero-text p {
  font-size: 18px;
  opacity: 0.85;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-photo {
  flex: 0 0 280px;
  text-align: center;
}
.hero-photo img {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 4px solid rgba(255,255,255,0.2);
  box-shadow: var(--shadow-lg);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn-primary {
  background: var(--accent-green);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--accent-green-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}
.btn-dark {
  background: var(--primary-dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--primary-darker);
}
.btn-group { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- SECTIONS ---- */
.section {
  padding: 70px 0;
}
.section-light { background: var(--light-bg); }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.section-title p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}
.section-title .accent-line {
  width: 60px;
  height: 3px;
  background: var(--accent-green);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ---- CARDS ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--field-border);
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-green-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}
.card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-dark);
}
.card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ---- STATS ---- */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding: 40px 0;
}
.stat {
  text-align: center;
}
.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-green);
}
.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ---- FORM ---- */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--field-border);
  max-width: 600px;
  margin: 0 auto;
}
.form-section h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary-dark);
}
.form-section .subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 15px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px var(--accent-green-bg);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
}

/* ---- TESTIMONIALS ---- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--field-border);
}
.testimonial-stars { color: #F59E0B; margin-bottom: 12px; font-size: 18px; }
.testimonial p {
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
}
.testimonial-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--primary-dark);
}

/* ---- ADVISOR BLOCK ---- */
.advisor-block {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--light-bg);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 40px;
}
.advisor-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  border: 3px solid var(--field-border);
  flex-shrink: 0;
}
.advisor-info h4 {
  font-size: 16px;
  color: var(--primary-dark);
}
.advisor-info p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--primary-darker);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}
.footer-brand img { height: 32px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 12px;
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero .container { flex-direction: column-reverse; text-align: center; gap: 32px; }
  .hero-text h1 { font-size: 30px; }
  .hero-photo { flex: none; }
  .hero-photo img { width: 180px; height: 180px; }
  .btn-group { justify-content: center; }
  .stats-row { gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .advisor-block { flex-direction: column; text-align: center; }
}
