/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 860px;
  padding: 170px 0 80px;
  background: radial-gradient(circle at 80% 35%, rgba(201, 107, 67, 0.14), transparent 28%),
              linear-gradient(135deg, #f4eee5, #fffdf9 62%, #f1e9df);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 70px;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(52px, 6vw, 88px);
  letter-spacing: -3px;
}

.hero-copy h1 em {
  font-style: normal;
  color: #c96b43;
}

.hero-lead {
  font-size: 18px;
  max-width: 630px;
  margin: 24px 0 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 42px;
}

.hero-stat {
  padding-right: 28px;
  border-right: 1px solid #ded4c8;
}

.hero-stat:last-child {
  border: 0;
}

.hero-stat strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  color: #173b3d;
}

.hero-stat span {
  font-size: 11px;
  color: #8a9797;
}

/* Hero Visual Wrapper - Increase horizontal space to prevent edge clipping */
.hero-visual {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 40px 30px; /* Extra padding keeps floating cards fully visible */
}

/* Hero Main Card */
.hero-card {
  width: min(100%, 540px);
  padding: 32px; /* Added slight padding for breathing room */
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 30px 80px rgba(23, 59, 61, 0.13);
  position: relative; /* Floats now anchor perfectly to this card */
  z-index: 2;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.hero-card-top small {
  display: block;
  color: #8a9797;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card-top strong {
  display: block;
  color: #173b3d;
  font-size: 18px;
  margin-top: 4px;
}

.badge {
  background: #e9f4ee;
  color: #287b56;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  height: max-content;
}

/* Interactive Strategy Selector Buttons */
.strategy-selector {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.btn-strat {
  background: #f8f3eb;
  border: 1px solid #eee4d8;
  padding: 5px 14px;
  font-size: 11px;
  border-radius: 20px;
  color: #173b3d;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-strat:hover {
  background: #eee4d8;
  color: #c96b43;
}

.btn-strat.active {
  background: #c96b43;
  color: #ffffff;
  border-color: #c96b43;
}

/* Strategy Chart Canvas */
.chart {
  height: 220px;
  border-radius: 18px;
  background: #fcf8f2;
  border: 1px solid #eee4d8;
  overflow: hidden;
  position: relative;
}

.chart svg {
  width: 100%;
  height: 100%;
}

.hero-card-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.mini {
  padding: 12px;
  border-radius: 14px;
  background: #f8f3eb;
}

.mini small {
  display: block;
  color: #8a9797;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mini strong {
  color: #173b3d;
  font-size: 13px;
}

/* Floating Badges */
.float {
  position: absolute;
  z-index: 5;
  background: #ffffff;
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 15px 35px rgba(23, 59, 61, 0.12);
  border: 1px solid #f0e8dd;
  pointer-events: none;
  white-space: nowrap; /* Prevents text from breaking into multiple lines */
}

/* Offset coordinates pushed OUTSIDE the card content boundaries */
.float-a {
  top: -15px;
  left: -25px;
}

.float-b {
  bottom: -15px;
  right: -25px;
}

.float span,
.float small {
  display: block;
  color: #8a9797;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.float strong {
  display: block;
  color: #173b3d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 16px;
  margin-top: 2px;
}

/* ==========================================================================
   Grid Sections & Content Blocks
   ========================================================================== */
.strip {
  border-bottom: 1px solid #e8dfd4;
  background: #fff;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.strip-item {
  padding: 28px 25px;
  border-right: 1px solid #e8dfd4;
}

.strip-item:first-child {
  padding-left: 0;
}

.strip-item:last-child {
  border: 0;
}

.strip-item small {
  display: block;
  color: #8a9797;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.strip-item strong {
  display: block;
  color: #173b3d;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.art {
  min-height: 328px;
  border-radius: 15px;
  background: url('../images/general/The-One-Stop-Financial-Solution-at-Dhanvesttor-scaled.webp') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
/* .art:before,
.art:after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
} */

/* .art:before {
  width: 390px;
  height: 390px;
  left: -120px;
  bottom: -150px;
}

.art:after {
  width: 220px;
  height: 220px;
  right: 40px;
  top: 50px;
} */

.art-word {
  position: absolute;
  left: 32px;
  bottom: 28px;
  color: #f8f3eb;
  font: 50px "Playfair Display", Georgia, serif;
}

.copy h2 {
  font-size: clamp(40px, 4.5vw, 62px);
}

.copy p {
  font-size: 16px;
  max-width: 620px;
}

.points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin: 26px 0 30px;
}

.point {
  padding: 3px;
  border: 0px solid #e8dfd4;
  border-radius: 15px;
  background: #fff;
}

.point strong {
  display: block;
  color: #173b3d;
  font-size: 13px;
}

.point span {
  font-size: 11px;
}

/* ============================================== */
/* PREMIUM TRUST BADGE (Find Us On)               */
/* ============================================== */
.premium-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent white */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 12px 28px;
    border-radius: 50px; /* Perfect pill shape */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    margin-top: 25px;
    margin-bottom: 35px;
}

.trust-label {
    font-size: 12px;
    font-weight: 700;
    color: #243c40; /* Midnight Teal */
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Force both logos to be the exact same height for perfect alignment */
.trust-logos img {
    height: 70px; 
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
    display: block;
}

.trust-logos a:hover img {
    transform: scale(1.05); /* Gentle zoom on hover */
}

/* Elegant vertical line between the logos */
.trust-divider {
    width: 1px;
    height: 24px;
    background-color: #d1c8c1; 
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .premium-trust-badge {
        flex-direction: column;
        padding: 15px 25px;
        border-radius: 20px;
        gap: 15px;
    }
    .trust-divider {
        width: 40px;
        height: 1px;
    }
}
/* ==========================================================================
   Dark Section & FAITH Framework
   ========================================================================== */
.dark {
  background: #173b3d;
  color: #fff;
}

.dark h2 {
  color: #fff;
}

.dark p {
  color: rgba(255, 255, 255, 0.68);
}

.dark-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.faith {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 25px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.045);
}

.faith-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faith-row:last-child {
  border: 0;
}

.faith-row strong {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 23px;
}

.faith-row span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
}

/* ==========================================================================
   Solutions Cards & Steps
   ========================================================================== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  padding: 30px;
  border: 1px solid #e8dfd4;
  border-radius: 24px;
  background: #fff;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(23, 59, 61, 0.1);
}

.card-num {
  color: #c96b43;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.card h3 {
  font-size: 28px;
  margin: 30px 0 10px;
}

.card p {
  font-size: 13px;
}

.card a {
  color: #c96b43;
  font-size: 12px;
  font-weight: 700;
}

.community {
  background: #f5efe6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  padding: 22px;
  border-top: 1px solid #d8cdbf;
  border-right: 1px solid #d8cdbf;
}

.step:first-child {
  border-left: 1px solid #d8cdbf;
}

.step b {
  color: #c96b43;
  font-size: 11px;
}

.step h3 {
  margin-top: 40px;
  font-size: 23px;
}

.step p {
  font-size: 12px;
}

.cta {
  background: #243c40;
  border-radius: 30px;
  padding: 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: #fff;
}

.cta h2 {
  color: #fff;
  font-size: clamp(36px, 4vw, 54px);
}

.cta p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.82);
}

/* ==========================================================================
   Media Queries & Responsiveness
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid,
  .split,
  .dark-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 135px;
  }
  .hero-visual {
    min-height: 480px;
  }
  .strip-grid {
    grid-template-columns: 1fr 1fr;
  }
  .strip-item:nth-child(2) {
    border-right: 0;
  }
  .strip-item:nth-child(n + 3) {
    border-top: 1px solid #e8dfd4;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .step {
    border-left: 1px solid #d8cdbf;
  }
  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 30px);
  }
  .section {
    padding: 75px 0;
  }
  .hero {
    padding-bottom: 65px;
  }
  .hero-copy h1 {
    font-size: 47px;
    letter-spacing: -2px;
  }
  .hero-lead {
    font-size: 16px;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }
  .hero-stat {
    border: 0;
    padding: 0;
  }
  .hero-visual {
    min-height: 390px;
  }
  .hero-card {
    padding: 18px;
  }
  .chart {
    height: 190px;
  }
  .hero-card-bottom {
    grid-template-columns: 1fr;
  }
  .float {
    display: none; /* Hide floating badges on mobile to prevent overflow */
  }
  .strip-grid,
  .points,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }
  .strip-item,
  .strip-item:first-child,
  .strip-item:nth-child(n + 3) {
    padding: 20px 0;
    border-right: 0;
    border-top: 0;
    border-bottom: 1px solid #e8dfd4;
  }
  .strip-item:last-child {
    border-bottom: 0;
  }
  .art {
    min-height: 300px;
  }
  .art-word {
    font-size: 36px;
  }
  .cta {
    padding: 35px 25px;
  }
}
/* Chart Canvas Container */
.chart-container {
  position: relative;
  height: 220px;
  width: 100%;
  border-radius: 18px;
  background: #fcf8f2;
  border: 1px solid #eee4d8;
  padding: 12px;
}

/* Selector Button Styling */
.strategy-selector {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
}

.btn-strat {
  background: #f8f3eb;
  border: 1px solid #eee4d8;
  padding: 5px 14px;
  font-size: 11px;
  border-radius: 20px;
  color: #173b3d;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.25s ease;
}

.btn-strat:hover {
  background: #eee4d8;
  color: #c96b43;
}

.btn-strat.active {
  background: #c96b43;
  color: #ffffff;
  border-color: #c96b43;
}

/* Floating Tooltips Position Fix */
.float {
  position: absolute;
  z-index: 4;
  background: #ffffff;
  border-radius: 17px;
  padding: 12px 18px;
  box-shadow: 0 18px 45px rgba(23, 59, 61, 0.12);
  border: 1px solid #f0e8dd;
  pointer-events: none;
}

.float-a {
  left: -25px;
  top: -10px; /* Offset upward to prevent overlapping title */
}

.float-b {
  right: -25px;
  bottom: -10px; /* Offset downward to prevent overlapping footer text */
}
