/* ==========================================================================
   Invest & Property Management Page Styles - RightSpace Theme (Flat Clean Shadowless)
   ========================================================================== */

.invest_page {
  width: 100%;
  background-color: #f8fafc;
  padding: 130px 20px 80px 20px;
  box-sizing: border-box;
  min-height: 100vh;
}

.invest_container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Dual Sub-Navigation Bar (Overview vs Investments) */
.invest_subnav_wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.invest_subnav_bar {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 6px;
  border-radius: 50px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  gap: 6px;
}

.invest_subnav_item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #64748b;
  transition: all 0.25s ease;
}

.invest_subnav_item i {
  font-size: 0.95rem;
}

.invest_subnav_item:hover {
  color: #10222e;
  background: #f1f5f9;
}

.invest_subnav_item.active {
  background: #10222e;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 34, 46, 0.15);
}

.invest_subnav_item.active i {
  color: #f59e0b;
}

/* --------------------------------------------------------------------------
   Header / Hero Section
   -------------------------------------------------------------------------- */
.invest_header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 50px auto;
}

.invest_subtitle {
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #b73524;
  text-transform: capitalize;
  letter-spacing: 0.2px;
  margin-bottom: 12px;
  display: inline-block;
}

.invest_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.18;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}

.invest_title .highlight {
  color: #b73524;
}

.invest_description {
  font-family: "Inter", sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.7;
  color: #64748b;
  margin: 0 auto 30px auto;
  max-width: 740px;
}

/* Hero 3-Pillar Highlight Grid */
.invest_hero_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.invest_pillar_card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 26px;
  border: 1px solid rgba(16, 34, 46, 0.08);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.invest_pillar_card:hover {
  transform: translateY(-4px);
}

.invest_pillar_icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(183, 53, 36, 0.09);
  color: #b73524;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.invest_pillar_title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #10222e;
  margin: 0 0 10px 0;
}

.invest_pillar_text {
  font-size: 0.93rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Simple 3-Step Process
   -------------------------------------------------------------------------- */
.invest_process_box {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 36px;
  border: 1px solid rgba(16, 34, 46, 0.08);
  margin-bottom: 60px;
}

.invest_process_header {
  text-align: center;
  margin-bottom: 36px;
}

.invest_process_title {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #10222e;
  margin: 0 0 8px 0;
}

.invest_process_desc {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0;
}

.invest_steps_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}

.invest_step_item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.invest_step_badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #10222e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.invest_step_title {
  font-family: "Playfair Display", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #10222e;
  margin: 0;
}

.invest_step_text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}

/* --------------------------------------------------------------------------
   Main Form & Info Grid
   -------------------------------------------------------------------------- */
.invest_main_grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: start;
}

.invest_form_card {
  background: #ffffff;
  border-radius: 20px;
  padding: 38px 34px;
  border: 1px solid rgba(16, 34, 46, 0.08);
}

.invest_form_title {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #10222e;
  margin: 0 0 8px 0;
}

.invest_form_subtitle {
  font-size: 0.92rem;
  color: #64748b;
  margin: 0 0 26px 0;
}

.form_row_2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form_group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form_label {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: #10222e;
}

.form_input,
.form_select,
.form_textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #10222e;
  background-color: #ffffff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.form_input:focus,
.form_select:focus,
.form_textarea:focus {
  outline: none;
  border-color: #b73524;
}

.form_textarea {
  resize: vertical;
  min-height: 90px;
}

.btn_invest_submit {
  width: 100%;
  background-color: #b73524;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px;
  border-radius: 15px;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.25s ease,
    transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn_invest_submit:hover {
  background-color: #96281a;
  transform: translateY(-1px);
}

/* Right Column Info & FAQ Card */
.invest_info_card {
  background: #ffffff;
  border-radius: 20px;
  padding: 34px 28px;
  border: 1px solid rgba(16, 34, 46, 0.08);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info_card_header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
}

.info_card_title {
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #10222e;
  margin: 0 0 6px 0;
}

.info_card_desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Quick FAQs in Sidebar */
.mini_faq_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mini_faq_item {
  border-left: 3px solid #b73524;
  padding-left: 14px;
}

.mini_faq_q {
  font-size: 0.92rem;
  font-weight: 600;
  color: #10222e;
  margin: 0 0 4px 0;
}

.mini_faq_a {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

.invest_direct_contact {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.5;
}

.invest_direct_contact strong {
  color: #10222e;
}

.invest_direct_contact a {
  color: #b73524;
  font-weight: 600;
  text-decoration: none;
}

.invest_direct_contact a:hover {
  text-decoration: underline;
}

/* Alert Notification */
.auth_alert {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.auth_alert_success {
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.auth_alert_error {
  background-color: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   Real Estate Investment Metrics Strip
   -------------------------------------------------------------------------- */
.invest_metrics_strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 30px;
  border: 1px solid rgba(16, 34, 46, 0.08);
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(16, 34, 46, 0.03);
}

.invest_metric_item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid #f1f5f9;
  padding-right: 16px;
}

.invest_metric_item:last-child {
  border-right: none;
  padding-right: 0;
}

.invest_metric_val {
  font-family: "Playfair Display", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #b73524;
  line-height: 1.1;
}

.invest_metric_lbl {
  font-family: "Inter", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: #10222e;
}

.invest_metric_sub {
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   Investment Definitions Section (Sri Lanka Real Estate)
   -------------------------------------------------------------------------- */
.invest_def_section {
  margin-bottom: 70px;
}

.invest_section_header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 40px auto;
}

.invest_section_tag {
  font-family: "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #b73524;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: inline-block;
  margin-bottom: 10px;
}

.invest_section_title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: #10222e;
  line-height: 1.22;
  margin: 0 0 14px 0;
}

.invest_section_desc {
  font-size: 0.98rem;
  color: #64748b;
  line-height: 1.65;
  margin: 0 auto;
}

.invest_definitions_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.invest_def_card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 26px;
  border: 1px solid rgba(16, 34, 46, 0.08);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.invest_def_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(16, 34, 46, 0.06);
}

.invest_def_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.invest_def_icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(183, 53, 36, 0.08);
  color: #b73524;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.invest_def_badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #475569;
}

.invest_def_card h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #10222e;
  margin: 0 0 12px 0;
  line-height: 1.35;
}

.invest_def_body {
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 18px 0;
  flex: 1;
}

.invest_def_meta_box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #f1f5f9;
}

.invest_def_meta_row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.invest_def_meta_lbl {
  color: #64748b;
  font-weight: 500;
}

.invest_def_meta_val {
  color: #10222e;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Strategic 5-Step Investment Process
   -------------------------------------------------------------------------- */
.invest_steps_grid_5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.invest_steps_grid_4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1024px) {
  .invest_steps_grid_4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .invest_steps_grid_4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Call to Action Box for Live Projects
   -------------------------------------------------------------------------- */
.invest_projects_cta {
  background: linear-gradient(135deg, #10222e 0%, #1a364a 100%);
  border-radius: 22px;
  padding: 40px 45px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 65px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.invest_cta_content h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.7rem;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.invest_cta_content p {
  font-size: 0.96rem;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.6;
  max-width: 650px;
}

.invest_cta_actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn_invest_cta_primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  background: #b73524;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn_invest_cta_primary:hover {
  background: #96281a;
  transform: translateY(-2px);
}

.btn_invest_cta_secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}

.btn_invest_cta_secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .invest_metrics_strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .invest_definitions_grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .invest_steps_grid_5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .invest_projects_cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
  }
}

@media (max-width: 992px) {
  .invest_hero_grid,
  .invest_steps_grid {
    grid-template-columns: 1fr;
  }

  .invest_main_grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .invest_page {
    padding: 110px 16px 60px 16px;
  }

  .form_row_2 {
    grid-template-columns: 1fr;
    margin-bottom: 0;
  }

  .invest_form_card,
  .invest_process_box,
  .invest_info_card {
    padding: 26px 20px;
  }
}

@media (max-width: 640px) {
  .invest_metrics_strip {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .invest_metric_item {
    border-right: none;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
  }
  .invest_metric_item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .invest_definitions_grid {
    grid-template-columns: 1fr;
  }
  .invest_steps_grid_5 {
    grid-template-columns: 1fr;
  }
  .invest_cta_actions {
    flex-direction: column;
    width: 100%;
  }
  .btn_invest_cta_primary,
  .btn_invest_cta_secondary {
    width: 100%;
    justify-content: center;
  }
}
