/* Alta Mortgage imposter — page-specific styles */

/* === HERO === */
.hero {
  background: var(--ld-primary);
  color: #fff;
  padding: 48px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-couple.png');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.30;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-600) 0%, var(--green-400) 40%, rgba(90,158,126,0.85) 100%);
  pointer-events: none;
}
.hero > .container,
.hero > .container-wide { position: relative; z-index: 1; }

.hero-banner {
  margin-bottom: 48px;
}

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 1.1;
  text-align: center;
  margin: 0 auto 32px;
  max-width: 880px;
  letter-spacing: -0.015em;
}

.hero-sub {
  text-align: center;
  font-size: 1.125rem;
  max-width: 720px;
  margin: 0 auto 32px;
  color: rgba(255,255,255,0.92);
}

/* === PRODUCT TRIO (homepage cards) === */
.trio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
}

/* === PAGE HEADER (non-homepage) === */
.page-header {
  background: var(--ld-primary);
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-couple.png');
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  pointer-events: none;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-500), rgba(90,158,126,0.88));
  pointer-events: none;
}
.page-header > .container,
.page-header > .container-wide { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin: 0 0 12px;
}
.page-header .lead {
  color: rgba(255,255,255,0.9);
  max-width: 700px;
  margin: 0;
}

/* === CONTENT BAND === */
.content-band {
  background: #fff;
  color: var(--text-dark);
  padding: 64px 0;
}
.content-band-alt {
  background: var(--light-bg);
  color: var(--text-dark);
  padding: 64px 0;
}

/* === FEATURE GRID === */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 600px) { .feature-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* === CTA STRIP === */
.cta-strip {
  background: linear-gradient(135deg, var(--green-600), var(--green-400));
  color: #fff;
  padding: 56px 24px;
  border-radius: var(--radius-2xl);
  text-align: center;
  margin: 48px auto;
  max-width: var(--container-max);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero-couple.png');
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  pointer-events: none;
}
.cta-strip > * { position: relative; z-index: 1; }

/* === HUMAN TOUCH BAND (testimonial-style section) === */
.human-band {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}
.human-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}
.human-band > .container { position: relative; z-index: 1; }
.cta-strip h2 { color: #fff; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.9); max-width: 600px; margin: 0 auto 24px; }

/* === LOAN OPTIONS LIST === */
.loan-options {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.loan-options li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.loan-options .check {
  flex: 0 0 24px;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--ld-secondary);
  color: var(--text-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

/* === STAT GROUP === */
.stat-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: center;
}
@media (min-width: 768px) {
  .stat-group { grid-template-columns: repeat(4, 1fr); }
}
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--ld-primary);
  display: block;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === CALCULATOR LAYOUT === */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}
@media (min-width: 1024px) {
  .calc-layout { grid-template-columns: 1.1fr 1fr; }
}
.calc-form {
  background: var(--cream);
  padding: 32px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
}
.calc-form h3 { margin-top: 0; color: var(--ld-primary); }
.calc-results {
  background: var(--ld-primary);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-2xl);
  align-self: start;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-floating);
}
.calc-results h3 {
  color: #fff;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.calc-results .primary-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 700;
  line-height: 1;
  margin: 8px 0 4px;
}
.calc-results .primary-label {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
}
.calc-breakdown {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.calc-breakdown li:last-child { border-bottom: 0; }
.calc-breakdown .label { color: rgba(255,255,255,0.85); }
.calc-breakdown .value { font-family: var(--font-display); font-weight: 600; }

.calc-meter {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 50rem;
  overflow: hidden;
  display: flex;
  margin: 16px 0 8px;
}
.calc-meter span { display: block; height: 100%; }
.calc-meter .principal { background: var(--ld-secondary); }
.calc-meter .interest { background: var(--text-muted); }

.calc-meta {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 16px;
}

.calc-summary-tag {
  display: inline-block;
  background: rgba(184, 146, 74, 0.18);
  color: var(--ld-secondary);
  padding: 4px 12px;
  border-radius: 50rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === CALC HUB === */
.calc-tile {
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t-base), box-shadow var(--t-base);
  height: 100%;
}
.calc-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-floating);
  opacity: 1;
}
.calc-tile h3 { font-size: 1.0625rem; margin: 0; color: var(--ld-primary); }
.calc-tile p { font-size: 0.875rem; color: var(--text-muted-dark); margin: 0; flex: 1; }
.calc-tile .calc-tile-cta { font-size: 0.875rem; font-weight: 600; color: var(--ld-primary); }

/* === BLOG / RESOURCES === */
.article-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.article-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  text-align: center;
  padding: 24px;
}
.article-card .body { padding: 20px; }
.article-card h3 { font-size: 1.0625rem; color: var(--text-dark); margin: 0 0 8px; }
.article-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* === AUTH PAGES === */
.auth-wrap {
  min-height: calc(100vh - 200px);
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-2xl);
  padding: 40px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-floating);
}
.auth-card h1 { font-size: 1.75rem; color: var(--ld-primary); margin: 0 0 8px; text-align: center; }
.auth-card .lead { text-align: center; }
.auth-card .actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}
.auth-card .helper {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted-dark);
  margin-top: 24px;
}
.auth-card .helper a { color: var(--ld-primary); font-weight: 600; }

/* === INFO BOX === */
.info-box {
  background: var(--ld-primary-50);
  border-left: 4px solid var(--ld-primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
}
.info-box strong { color: var(--ld-primary); }

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.5fr 1fr; }
}
.contact-info-card {
  background: var(--ld-primary);
  color: #fff;
  border-radius: var(--radius-2xl);
  padding: 32px;
}
.contact-info-card h3 { color: #fff; }
.contact-info-card a { color: var(--ld-secondary); font-weight: 600; }
.contact-info-card ul { list-style: none; padding: 0; margin: 0; }
.contact-info-card li { margin-bottom: 16px; }

/* === RANGE SLIDER === */
.range-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
  align-items: center;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--ld-primary);
}
