/* ============================================
   RISING TIDES LENDING - Inner Pages Styles
   ============================================ */

/* ---- PAGE HERO ---- */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  background: var(--ocean-gradient);
  color: #fff;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://risingtideslending.com/assets/hero-property-D0TKBsGk.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.page-hero--hard::before  { opacity: 0.12; }
.page-hero--commercial::before { opacity: 0.1; }

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.2));
}
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}
.page-hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.35);
  padding: 0.3rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.page-hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.page-hero-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 2rem;
}
.page-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 2rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  padding: 1.25rem 2rem;
  width: fit-content;
  gap: 2rem;
}
.page-stat { text-align: center; }
.page-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.25rem;
}
.page-stat-label {
  font-size: 0.75rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.page-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.3);
}
.page-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- LOAN PRODUCTS ---- */
.loans-section {
  padding: 4rem 0;
}
.loan-product {
  padding: 4rem 0;
  scroll-margin-top: 80px;
}
.loan-product-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.loan-product-inner--reverse {
  grid-template-columns: 380px 1fr;
  direction: rtl;
}
.loan-product-inner--reverse > * { direction: ltr; }

.loan-product-badge {
  display: inline-block;
  background: hsl(209, 83%, 21%, 0.1);
  color: var(--primary);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.loan-product-badge--hard {
  background: hsl(209, 83%, 21%, 0.08);
  color: var(--primary);
}
.loan-product-badge--commercial {
  background: hsl(2, 68%, 48%, 0.1);
  color: var(--accent);
}

.loan-product-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--foreground);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.loan-product-desc {
  font-size: 1rem;
  color: var(--muted-fg);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.loan-features-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.loan-features-list li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--foreground);
  font-weight: 500;
}
.loan-features-list li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--secondary);
}

/* Loan detail card */
.loan-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}
.loan-product-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--ocean-gradient);
  border-image: var(--ocean-gradient) 1;
  border-bottom: 2px solid var(--secondary);
}
.loan-product-card--hard h3 { border-bottom-color: var(--primary); }
.loan-product-card--commercial h3 { border-bottom-color: var(--accent); }

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.detail-row:last-of-type { border-bottom: none; }
.detail-row span { color: var(--muted-fg); }
.detail-row strong { color: var(--foreground); font-weight: 600; }

.loan-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ---- REQUIREMENTS SECTION ---- */
.requirements-section {
  padding: 5rem 0;
  background: var(--muted);
}
.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.req-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}
.req-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.req-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: hsl(209, 83%, 21%, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.req-icon svg { width: 24px; height: 24px; }
.req-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.req-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .loan-product-inner,
  .loan-product-inner--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .loan-product-card { position: static; }
  .requirements-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-stats { gap: 1.5rem; padding: 1rem 1.5rem; }
}
@media (max-width: 540px) {
  .requirements-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 110px 0 60px; }
  .page-hero-stats { flex-direction: column; gap: 1rem; width: 100%; }
  .page-stat-divider { width: 60px; height: 1px; }
}
