/* ============================================================
   FOUNDSTONE INFRA — Rental Agreement Assistance Page Styles
   Extends: css/style.css + css/service-page.css
   ============================================================ */

/* ============================================================
   A. HERO — warm interior photo, different overlay tone
   ============================================================ */
.ra-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 45%;
  transform: scale(1.05);
  transition: transform 10s ease;
}
#svc-hero.loaded .ra-hero-bg { transform: scale(1); }

/* Richer overlay leaning toward copper-green for warmth */
.ra-hero .svc-hero-overlay {
  background: linear-gradient(
    150deg,
    rgba(28, 38, 30, 0.35) 0%,
    rgba(41, 45, 41, 0.72) 50%,
    rgba(29, 40, 32, 0.96) 100%
  );
}

/* ============================================================
   B. INTRODUCTION — image left, text right
   ============================================================ */
#ra-intro {
  background: var(--charcoal);
  padding: 7.5rem 0;
  overflow: hidden;
}
.ra-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

/* Image panel */
.ra-intro-img {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}
.ra-intro-img img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.8s ease;
}
.ra-intro-img:hover img { transform: scale(1.03); }
/* Copper accent strip behind image */
.ra-intro-accent {
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  border: 2px solid var(--copper);
  border-radius: 22px;
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}

/* Text panel */
.ra-intro-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  color: var(--white);
  line-height: 1.2;
  margin: 0.5rem 0 1.5rem;
}
.ra-intro-h2 em { color: var(--copper); font-style: italic; }

.ra-intro-body {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.84;
  margin-bottom: 1.2rem;
}

/* Checklist */
.ra-checklist {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ra-check-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}
.ra-check-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(197,139,85,0.18);
  border: 1px solid rgba(197,139,85,0.4);
  color: var(--copper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   C. WHAT WE ASSIST WITH — 4 horizontal tall cards (ivory bg)
   ============================================================ */
#ra-services {
  background: var(--ivory);
  padding: 7.5rem 0;
}
.ra-section-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--charcoal);
  margin-top: 0.4rem;
}
.ra-section-h2 em { color: var(--forest); font-style: italic; }
.ra-section-sub {
  font-size: 1rem;
  color: #666;
  max-width: 540px;
  margin: 0.9rem auto 0;
  line-height: 1.72;
}

/* 4-column card grid with top image + numbered body */
.ra-assist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 4rem;
  align-items: stretch;
}
.ra-assist-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1), box-shadow 0.38s ease, border-color 0.38s ease;
}
.ra-assist-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
  border-color: rgba(197,139,85,0.4);
}
.ra-assist-img {
  height: 200px;
  overflow: hidden;
  flex-shrink: 0;
}
.ra-assist-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.ra-assist-card:hover .ra-assist-img img { transform: scale(1.08); }
.ra-assist-body {
  padding: 1.6rem 1.6rem 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.ra-assist-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgba(197,139,85,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.ra-assist-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: var(--charcoal);
  margin-bottom: 0.65rem;
  font-weight: 600;
  line-height: 1.3;
}
.ra-assist-body p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.72;
  margin: 0;
  flex: 1;
}

/* ============================================================
   D. PROCESS — 4-step horizontal on charcoal
   ============================================================ */
#ra-process {
  background: var(--charcoal);
  padding: 7.5rem 0;
  position: relative;
  overflow: hidden;
}
#ra-process::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(197,139,85,0.07);
  border-radius: 50%;
  pointer-events: none;
}
.ra-process-header {
  text-align: center;
  margin-bottom: 5rem;
}
.ra-process-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--white);
  margin-top: 0.4rem;
  line-height: 1.22;
}
.ra-process-h2 em { color: var(--copper); font-style: italic; }
.ra-process-sub {
  font-size: 1.02rem;
  color: rgba(255,255,255,0.6);
  max-width: 480px;
  margin: 0.9rem auto 0;
  line-height: 1.72;
}

/* ============================================================
   E. WHY CLEAR DOCUMENTATION MATTERS
   — editorial split (large image left, benefit list right)
   ============================================================ */
#ra-benefits {
  background: var(--ivory);
  padding: 7.5rem 0;
  overflow: hidden;
}
.ra-benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.ra-benefits-img {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.ra-benefits-img img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  transition: transform 0.8s ease;
}
.ra-benefits-img:hover img { transform: scale(1.03); }

/* Overlay label pinned bottom-left */
.ra-benefits-img-label {
  position: absolute;
  bottom: 1.8rem;
  left: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.ra-benefits-img-label span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}
.ra-benefits-img-label span:last-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Benefits content */
.ra-benefits-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  color: var(--charcoal);
  line-height: 1.22;
  margin: 0.5rem 0 1rem;
}
.ra-benefits-h2 em { color: var(--forest); font-style: italic; }
.ra-benefits-intro {
  font-size: 1rem;
  color: #555;
  line-height: 1.72;
  margin-bottom: 2.2rem;
}

.ra-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.ra-benefit-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 1.2rem;
  align-items: flex-start;
}
.ra-benefit-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--copper);
  box-shadow: 0 0 8px rgba(197,139,85,0.5);
  margin-top: 0.4rem;
  flex-shrink: 0;
}
.ra-benefit-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.ra-benefit-text p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.7;
  margin: 0;
}

/* ============================================================
   F. AUDIENCE — forest green, 3 cards with large abbrev. numbers
   ============================================================ */
#ra-audience {
  background: var(--forest);
  padding: 7.5rem 0;
  position: relative;
  overflow: hidden;
}
#ra-audience::after {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 420px; height: 420px;
  border: 1px solid rgba(197,139,85,0.1);
  border-radius: 50%;
  pointer-events: none;
}
.ra-audience-header {
  text-align: center;
  margin-bottom: 4rem;
}
.ra-audience-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.2vw, 3rem);
  color: var(--white);
  margin-top: 0.4rem;
  line-height: 1.22;
}
.ra-audience-h2 em { color: var(--copper); font-style: italic; }

.ra-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.ra-audience-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 2.5rem 2.2rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.38s ease, border-color 0.38s ease, background 0.38s ease;
}
.ra-audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(197,139,85,0.45);
  background: rgba(255,255,255,0.08);
}
.ra-audience-card--featured {
  background: rgba(197,139,85,0.1);
  border-color: rgba(197,139,85,0.3);
}

/* Large decorative abbreviation behind content */
.ra-audience-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.ra-audience-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: rgba(197,139,85,0.14);
  border: 1px solid rgba(197,139,85,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  margin-bottom: 1.4rem;
  transition: background 0.3s ease;
  flex-shrink: 0;
}
.ra-audience-card:hover .ra-audience-icon { background: rgba(197,139,85,0.26); }
.ra-audience-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}
.ra-audience-card p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  margin-bottom: 1.5rem;
  flex: 1;
}
.ra-audience-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--copper-lt);
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.3s ease;
}
.ra-audience-link:hover { color: var(--white); }

/* ============================================================
   G. DOCUMENTATION NOTE — ivory strip
   ============================================================ */
#ra-note {
  background: var(--beige);
  padding: 3.5rem 0;
  border-top: 1px solid rgba(52,74,61,0.1);
  border-bottom: 1px solid rgba(52,74,61,0.1);
}
.ra-note-inner {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  max-width: 860px;
  margin: 0 auto;
  padding: 1.8rem 2.2rem;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(197,139,85,0.2);
  border-radius: 16px;
  border-left: 4px solid var(--copper);
}
.ra-note-icon {
  width: 44px; height: 44px;
  background: rgba(197,139,85,0.12);
  border: 1px solid rgba(197,139,85,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.ra-note-text h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.ra-note-text p {
  font-size: 0.90rem;
  color: #5a5a5a;
  line-height: 1.72;
  margin: 0;
}

/* ============================================================
   H. FINAL CTA
   ============================================================ */
#ra-cta {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.ra-cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600585154526-990dced4db0d?w=1800&q=85&auto=format&fit=crop');
  background-size: cover;
  background-position: center 55%;
  transform: scale(1.03);
  transition: transform 0.6s ease;
}
#ra-cta:hover .ra-cta-bg { transform: scale(1); }
.ra-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(28, 40, 32, 0.97) 0%,
    rgba(28, 40, 32, 0.82) 55%,
    rgba(28, 40, 32, 0.38) 100%
  );
}
.ra-cta-content {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  width: 100%;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .ra-assist-grid { grid-template-columns: repeat(2, 1fr); }
  .ra-audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .ra-intro-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .ra-intro-img img { height: 420px; }
  .ra-intro-accent { display: none; }
  .ra-benefits-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .ra-benefits-img img { height: 420px; }
  .ra-audience-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ra-note-inner { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 768px) {
  #ra-intro, #ra-services, #ra-process, #ra-benefits, #ra-audience { padding: 5rem 0; }
  .ra-assist-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ra-assist-img { height: 220px; }
  .ra-audience-grid { grid-template-columns: 1fr; }
  .ra-cta-content { padding: 4rem 0; }
}

@media (max-width: 640px) {
  .ra-intro-img img { height: 300px; }
  .ra-benefits-img img { height: 300px; }
  .ra-benefits-img-label { bottom: 1rem; left: 1rem; }
  .ra-benefits-img-label span:last-child { font-size: 1.2rem; }
  .ra-note-inner { padding: 1.4rem 1.2rem; }
  .ra-audience-num { font-size: 2.5rem; }
}
