/*
 * rem-page.css — Real Estate Moguls Content and Conversion Pages
 * Phase B.09
 * Loaded on all standard pages. Depends on rem-master.css.
 *
 * Covers:
 *   - Page hero (dark, full-width header for all content pages)
 *   - Content page body (prose, images, callouts)
 *   - Conversion page layout (two-column: copy + form)
 *   - Legal page styles (Privacy, Terms)
 *   - GHL form embed container
 *   - Contact form
 *   - Membership tier grid
 *   - Sponsor program layout
 */


/* ── PAGE HERO ───────────────────────────────────────────────────────────── */

.rem-page-hero {
  background: var(--authority, #0D1B2A);
  padding: 120px 56px 72px;
  position: relative;
}

.rem-page-hero-inner { max-width: 840px; }

.rem-page-hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--primary, #29ABE2);
  display: block;
  margin-bottom: 16px;
}

.rem-page-hero-title {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.05;
  margin-bottom: 20px;
}

.rem-page-hero-sub {
  font-size: clamp(16px, 1.9vw, 20px);
  line-height: 1.7;
  color: rgba(242, 244, 247, 0.68);
  max-width: 600px;
}

.rem-page-hero-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary, #29ABE2);
}


/* ── CONTENT PAGE BODY ───────────────────────────────────────────────────── */

.rem-page-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 64px 56px;
}

.rem-page-body h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--authority, #0D1B2A);
  margin: 48px 0 16px;
}

.rem-page-body h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--authority, #0D1B2A);
  margin: 36px 0 12px;
}

.rem-page-body p {
  font-size: 18px;
  line-height: 1.75;
  color: #4A5568;
  margin-bottom: 24px;
}

.rem-page-body ul,
.rem-page-body ol {
  margin: 0 0 24px 28px;
  color: #4A5568;
  font-size: 17px;
  line-height: 1.7;
}

.rem-page-body li { margin-bottom: 8px; }

.rem-page-body a {
  color: var(--primary, #29ABE2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rem-page-body blockquote {
  border-left: 4px solid var(--primary, #29ABE2);
  padding: 12px 0 12px 24px;
  margin: 40px 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--authority, #0D1B2A);
}

.rem-page-body hr {
  border: 0;
  border-top: 1px solid #E2E5E9;
  margin: 48px 0;
}


/* ── CONVERSION PAGE (two-column: copy + form) ────────────────────────────── */

.rem-conversion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 56px;
  align-items: start;
}

.rem-conversion-copy { position: sticky; top: 96px; }

.rem-conversion-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary, #29ABE2);
  display: block;
  margin-bottom: 16px;
}

.rem-conversion-headline {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--authority, #0D1B2A);
  line-height: 1.1;
  margin-bottom: 20px;
}

.rem-conversion-body {
  font-size: 16px;
  line-height: 1.75;
  color: #4A5568;
  margin-bottom: 32px;
}

.rem-conversion-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rem-conversion-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: rgba(13, 27, 42, 0.65);
  line-height: 1.5;
}

.rem-conversion-trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #29ABE2);
  flex-shrink: 0;
  margin-top: 6px;
}

/* GHL form embed */
.rem-ghl-embed-wrap {
  background: #fff;
  border: 1px solid #E2E5E9;
  padding: 8px;
}

.rem-ghl-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
}

/* Native conversion form fallback */
.rem-conversion-form .rem-capture-input {
  background: #fff;
  border: 1.5px solid #E2E5E9;
  color: var(--authority, #0D1B2A);
  padding: 14px 16px;
  width: 100%;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  margin-bottom: 12px;
}

.rem-conversion-form .rem-capture-input:focus { border-color: var(--primary, #29ABE2); }
.rem-conversion-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 27, 42, 0.5);
  margin-bottom: 6px;
}

.rem-conversion-form-submit {
  display: block;
  width: 100%;
  padding: 15px 24px;
  background: var(--primary, #29ABE2);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 4px;
}

.rem-conversion-form-submit:hover { background: var(--authority, #0D1B2A); }


/* ── LEGAL PAGE ──────────────────────────────────────────────────────────── */

.rem-legal-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 56px 80px;
}

.rem-legal-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--authority, #0D1B2A);
  margin: 40px 0 12px;
  padding-top: 40px;
  border-top: 1px solid #E2E5E9;
}

.rem-legal-body h2:first-of-type { border-top: none; padding-top: 0; }

.rem-legal-body p, .rem-legal-body li {
  font-size: 15px;
  line-height: 1.75;
  color: #4A5568;
}

.rem-legal-body ul { margin: 0 0 20px 24px; }
.rem-legal-body li { margin-bottom: 6px; }

.rem-legal-last-updated {
  font-size: 12px;
  color: rgba(13,27,42,0.4);
  margin-bottom: 40px;
}


/* ── MEMBERSHIP TIER GRID ────────────────────────────────────────────────── */

.rem-membership-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 56px;
}

.rem-tier-card {
  border: 1px solid #E2E5E9;
  padding: 40px;
  position: relative;
}

.rem-tier-card--featured {
  border-color: var(--primary, #29ABE2);
  border-width: 2px;
}

.rem-tier-card--featured::before {
  content: 'Founding Rate';
  position: absolute;
  top: -1px;
  left: 32px;
  background: var(--primary, #29ABE2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.rem-tier-path {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary, #29ABE2);
  margin-bottom: 8px;
}

.rem-tier-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--authority, #0D1B2A);
  margin-bottom: 12px;
}

.rem-tier-tagline {
  font-size: 14px;
  color: rgba(13,27,42,0.55);
  margin-bottom: 24px;
  line-height: 1.6;
}

.rem-tier-features {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.rem-tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #4A5568;
  margin-bottom: 10px;
  line-height: 1.5;
}

.rem-tier-features li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary, #29ABE2);
  flex-shrink: 0;
  margin-top: 6px;
}

.rem-tier-cta {
  display: block;
  text-align: center;
  padding: 13px 24px;
  background: var(--authority, #0D1B2A);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.rem-tier-cta:hover { background: var(--primary, #29ABE2); }
.rem-tier-card--featured .rem-tier-cta { background: var(--primary, #29ABE2); }
.rem-tier-card--featured .rem-tier-cta:hover { background: var(--authority, #0D1B2A); }


/* ── ABOUT PAGE STUDIO SECTION ───────────────────────────────────────────── */

.rem-about-studio {
  background: var(--authority, #0D1B2A);
  padding: 80px 56px;
}

.rem-about-studio-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rem-about-studio-copy .eyebrow { color: var(--accent, #C9A84C); margin-bottom: 16px; }
.rem-about-studio-copy h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin-bottom: 20px; }
.rem-about-studio-copy p { color: rgba(242,244,247,0.65); font-size: 16px; line-height: 1.75; }

.rem-about-studio-address {
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.1);
}

.rem-about-studio-address h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.rem-about-studio-address p { color: rgba(242,244,247,0.55); font-size: 14px; line-height: 1.7; }


/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .rem-conversion-layout { grid-template-columns: 1fr; gap: 48px; }
  .rem-conversion-copy { position: static; }
  .rem-membership-tiers { grid-template-columns: 1fr; }
  .rem-about-studio-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .rem-page-hero { padding: 96px 24px 56px; }
  .rem-page-body { padding: 48px 24px; }
  .rem-conversion-layout { padding: 48px 24px; }
  .rem-legal-body { padding: 48px 24px 64px; }
  .rem-membership-tiers { padding: 48px 24px; }
  .rem-about-studio { padding: 56px 24px; }
}


/* ── NATIVE CONVERSION FORMS ─────────────────────────────────────────────── */

.rem-form-card {
  background: #fff;
  border: 1px solid #E2E5E9;
  padding: 32px;
}

.rem-form-card-header { margin-bottom: 24px; border-bottom: 1px solid #E2E5E9; padding-bottom: 20px; }
.rem-form-card-title  { font-size: 1.2rem; font-weight: 800; color: var(--authority,#0D1B2A); margin-bottom: 4px; }
.rem-form-card-sub    { font-size: 13px; color: rgba(13,27,42,0.5); }

/* Step progress */
.rem-step-progress { height: 3px; background: #E2E5E9; margin-bottom: 8px; }
.rem-step-progress-fill { height: 100%; background: var(--primary,#29ABE2); transition: width 0.3s ease; }
.rem-step-indicator { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(13,27,42,0.4); margin-bottom: 24px; }

/* Step legend */
.rem-step-legend { font-size: 1.1rem; font-weight: 700; color: var(--authority,#0D1B2A); margin-bottom: 20px; display: block; }

/* Fields */
.rem-field-group { margin-bottom: 16px; }
.rem-field-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.rem-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(13,27,42,0.55);
  margin-bottom: 6px;
}

.rem-input,
.rem-select,
.rem-textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-primary,'Afacad',sans-serif);
  font-size: 15px;
  border: 1.5px solid #E2E5E9;
  background: #fff;
  color: var(--authority,#0D1B2A);
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}

.rem-input:focus,
.rem-select:focus,
.rem-textarea:focus { border-color: var(--primary,#29ABE2); }
.rem-input--error   { border-color: #c0392b; background: #fff5f5; }

.rem-textarea { min-height: 100px; resize: vertical; }
.rem-select   { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230D1B2A' stroke-width='1.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }

/* Step navigation */
.rem-step-nav { margin-top: 24px; }
.rem-step-nav--split { display: flex; justify-content: space-between; align-items: center; }

/* Buttons */
.rem-btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; font-family: var(--font-primary,'Afacad',sans-serif); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; border: none; transition: background .2s, color .2s; }
.rem-btn-primary { background: var(--primary,#29ABE2); color: #fff; }
.rem-btn-primary:hover { background: var(--authority,#0D1B2A); }
.rem-btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.rem-btn-ghost { background: none; border: 1.5px solid #E2E5E9; color: rgba(13,27,42,0.5); }
.rem-btn-ghost:hover { border-color: var(--authority,#0D1B2A); color: var(--authority,#0D1B2A); }

/* Form messages */
.rem-form-fine  { font-size: 11px; color: rgba(13,27,42,0.35); margin-top: 8px; line-height: 1.6; }
.rem-form-error { background: #fff5f5; border: 1px solid #c0392b; color: #c0392b; padding: 12px 16px; font-size: 13px; margin-top: 16px; }

/* Success state */
.rem-form-success-inner { text-align: center; padding: 48px 32px; background: #fff; border: 1px solid #E2E5E9; }
.rem-form-success-mark  { font-size: 40px; color: var(--primary,#29ABE2); margin-bottom: 16px; }
.rem-form-success-title { font-size: 1.4rem; font-weight: 800; color: var(--authority,#0D1B2A); margin-bottom: 12px; }
.rem-form-success-body  { font-size: 15px; line-height: 1.7; color: #4A5568; }

@media (max-width: 600px) {
  .rem-field-row--split { grid-template-columns: 1fr; }
}
