/* ============================================================
   ASPEN CAPITAL — Components
   ============================================================ */

/* --- Photo placeholder (used instead of licensed stock photography;
     swap the element's background-image / inner <img> for real assets) --- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #1A2B63;
  isolation: isolate;
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(26, 43, 99, .15), rgba(26, 43, 99, .75)),
    repeating-linear-gradient(100deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 46px);
  z-index: 1;
}

.photo::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -15%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle at 70% 30%, rgba(255, 81, 90, .35), transparent 60%);
  z-index: 1;
}

.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1);
}

.photo--has-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 43, 99, .08) 0%, rgba(26, 43, 99, .55) 100%);
  z-index: 1;
  pointer-events: none;
}

.photo--has-img::after {
  display: none;
}

.card:hover .photo img,
.article-card:hover .photo img,
.story-photo:hover .photo img,
.hero-visual:hover img {
  transform: scale(1.05);
}

.photo .photo-tag,
.photo-tag {
  display: none !important;
}

.photo--light {
  background: rgba(26, 43, 99, .08);
}

.photo--light::before {
  background-image: linear-gradient(180deg, rgba(26, 43, 99, .04), rgba(26, 43, 99, .35)), repeating-linear-gradient(100deg, rgba(26, 43, 99, .05) 0 2px, transparent 2px 46px);
}

.photo--light::after {
  background: radial-gradient(circle at 70% 30%, rgba(255, 81, 90, .18), transparent 60%);
}

.photo--light .photo-tag {
  color: var(--navy-900);
  background: rgba(255, 255, 255, .85);
  border-color: rgba(26, 43, 99, .12);
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 81, 90, .10);
  color: var(--red-600);
  flex-shrink: 0;
}

.icon-badge svg {
  width: 26px;
  height: 26px;
}

.icon-badge--navy {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.icon-badge--sm {
  width: 42px;
  height: 42px;
  border-radius: 11px;
}

.icon-badge--sm svg {
  width: 20px;
  height: 20px;
}

/* --- Hero --- */
.hero {
  position: relative;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 75% 65% at 90% 35%, rgba(255, 81, 90, .28) 0%, transparent 65%),
    radial-gradient(circle 800px at 10% 20%, rgba(255, 255, 255, .07) 0%, transparent 55%),
    radial-gradient(circle 900px at 50% 120%, rgba(26, 43, 99, 1) 0%, rgba(26, 43, 99, .95) 100%),
    #1A2B63;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right 45%;
  opacity: 0.38;
  filter: saturate(1.2) contrast(1.1);
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #1A2B63 0%, rgba(26, 43, 99, 0.92) 44%, rgba(26, 43, 99, 0.62) 75%, rgba(26, 43, 99, 0.78) 100%),
    radial-gradient(ellipse 80% 65% at 85% 35%, rgba(255, 81, 90, .22) 0%, transparent 65%),
    radial-gradient(circle 800px at 10% 20%, rgba(255, 255, 255, .07) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 54px);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  pointer-events: none;
  z-index: 2;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 45%, rgba(255, 81, 90, .14) 0%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 56px;
  padding-bottom: 44px;
}

.hero--home .hero-media {
  background: #1A2B63;
}

.hero--home .hero-media::before,
.hero--home .hero-media::after {
  display: none;
}

.hero--home .hero-bg-img {
  opacity: 0.92;
  object-fit: cover;
  object-position: right center;
  filter: contrast(1.05) saturate(1.1);
}

.hero--home .hero-overlay {
  background:
    linear-gradient(90deg,
      rgba(26, 43, 99, 0.94) 0%,
      rgba(26, 43, 99, 0.86) 30%,
      rgba(26, 43, 99, 0.48) 55%,
      rgba(26, 43, 99, 0.12) 78%,
      rgba(26, 43, 99, 0.25) 100%),
    linear-gradient(180deg,
      rgba(26, 43, 99, 0.45) 0%,
      transparent 22%,
      transparent 72%,
      rgba(26, 43, 99, 0.65) 100%);
}

.hero--home .hero-inner {
  padding-top: 76px;
  padding-bottom: 64px;
}

.hero--home .hero-content {
  max-width: 780px;
}

.hero--home h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.7);
}

.hero--home p.lead {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 640px;
  color: rgba(255, 255, 255, .95);
  margin-bottom: 36px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero--home .hero-feature-row {
  max-width: 920px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.hero--home .hero-feature strong {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero--home .hero-feature span {
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

@media (max-width:768px) {
  .hero--home .hero-bg-img {
    object-position: 70% center;
    opacity: 0.65;
  }

  .hero--home .hero-overlay {
    background:
      linear-gradient(180deg, rgba(26, 43, 99, 0.92) 0%, rgba(26, 43, 99, 0.78) 50%, rgba(26, 43, 99, 0.9) 100%);
  }

  .hero--home .hero-inner {
    padding-top: 48px;
    padding-bottom: 40px;
  }
}

@media (max-width:640px) {
  .hero-inner {
    padding-top: 36px;
    padding-bottom: 32px;
  }
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
}

@media (min-width:960px) {
  .hero-grid {
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
  }
}

.hero-eyebrow {
  color: var(--red-600);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  line-height: 1.4;
  overflow-wrap: break-word;
}

.hero h1 {
  color: #FFFFFF;
  margin-bottom: 18px;
}

.hero p.lead {
  color: rgba(255, 255, 255, .82);
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  margin-bottom: 0;
}

@media (max-width:440px) {
  .hero-ctas {
    gap: 12px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-ctas .btn-play {
    width: 100%;
    justify-content: center;
    padding: 8px 0;
  }
}

.hero-visual {
  position: relative;
  border-radius: 24px;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  border: 1.5px solid rgba(255, 255, 255, .25);
  overflow: hidden;
  transition: transform var(--transition-normal);
  max-width: 100%;
}

.hero-visual:hover {
  transform: translateY(-3px);
}

.hero-visual.photo--has-img::before {
  background: linear-gradient(180deg, rgba(26, 43, 99, 0) 45%, rgba(26, 43, 99, .55) 100%);
}

.hero-visual .photo-tag {
  bottom: 20px;
  left: 20px;
  background: rgba(26, 43, 99, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #FFFFFF;
  font-weight: 700;
  letter-spacing: .06em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  padding: 8px 16px;
  font-size: .76rem;
  max-width: calc(100% - 40px);
}

.hero-callout {
  margin: 20px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(26, 43, 99, .78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .16);
  max-width: 260px;
}

.hero-callout .k {
  color: var(--red-600);
  font-weight: 800;
}

.hero-callout p {
  margin: 0;
  font-size: .95rem;
  color: #fff;
}

.hero-callout .label {
  font-size: .74rem;
  color: rgba(255, 255, 255, .55);
  margin-top: 8px;
}

.hero-feature-row {
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  grid-template-columns: 1fr;
}

@media (min-width:600px) {
  .hero-feature-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 40px;
    padding-top: 32px;
  }
}

@media (min-width:960px) {
  .hero-feature-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.hero-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  min-width: 0;
}

.hero-feature svg {
  flex-shrink: 0;
  color: var(--red-600);
  margin-top: 2px;
}

.hero-feature strong {
  display: block;
  color: #fff;
  font-size: .92rem;
  line-height: 1.3;
}

.hero-feature span {
  display: block;
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.4;
  margin-top: 2px;
  overflow-wrap: break-word;
}

/* Sub-page hero (industries/solutions) */
.page-hero {
  position: relative;
  color: #fff;
  padding-bottom: 36px;
  overflow: hidden;
}

@media (min-width:768px) {
  .page-hero {
    padding-bottom: 0;
    min-height: 460px;
    display: flex;
    align-items: center;
  }
  .page-hero-inner {
    width: 100%;
  }
}

.page-hero .hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #1A2B63;
}

.page-hero .hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.92;
  filter: contrast(1.05) saturate(1.1);
  z-index: 0;
  pointer-events: none;
}

.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(26, 43, 99, 0.94) 0%,
      rgba(26, 43, 99, 0.86) 30%,
      rgba(26, 43, 99, 0.48) 55%,
      rgba(26, 43, 99, 0.12) 78%,
      rgba(26, 43, 99, 0.25) 100%),
    linear-gradient(180deg,
      rgba(26, 43, 99, 0.45) 0%,
      transparent 22%,
      transparent 72%,
      rgba(26, 43, 99, 0.65) 100%);
  z-index: 1;
  pointer-events: none;
}

.page-hero .hero-media::before {
  display: none;
}

.page-hero-inner {
  position: relative;
  z-index: 3;
  padding-top: 40px;
  padding-bottom: 0;
}

.page-hero-grid {
  display: block;
}

.page-hero-content {
  max-width: 780px;
  padding-bottom: 40px;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.12;
  margin-bottom: 20px;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.7);
}

.page-hero .lead {
  color: rgba(255, 255, 255, .95);
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 32px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.page-hero-photo {
  display: none !important;
}

@media (max-width:768px) {
  .page-hero .hero-bg-img {
    object-position: 70% center;
    opacity: 0.65;
  }

  .page-hero .hero-overlay {
    background:
      linear-gradient(180deg, rgba(26, 43, 99, 0.94) 0%, rgba(26, 43, 99, 0.78) 50%, rgba(26, 43, 99, 0.92) 100%);
  }

  .page-hero-inner {
    padding-top: 28px;
  }

  .page-hero-content {
    padding-bottom: 40px;
  }
}

/* Stat bar under hero */
.stat-bar {
  position: relative;
  z-index: 1;
  background: rgba(26, 43, 99, .75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

@media (min-width:768px) {
  .stat-bar {
    margin: 0 0 -56px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: rgba(26, 43, 99, .65);
  }
}

.stat-bar .stat {
  padding: 16px 14px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  min-width: 0;
}

.stat-bar .stat:nth-child(2n) {
  border-right: none;
}

.stat-bar .stat:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (min-width:768px) {
  .stat-bar .stat {
    padding: 26px 24px;
    border-bottom: none;
  }

  .stat-bar .stat:nth-child(2n) {
    border-right: 1px solid rgba(255, 255, 255, .12);
  }

  .stat-bar .stat:last-child {
    border-right: none;
  }

  .stat-bar .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.1rem, 3.8vw, 1.45rem);
  color: #fff;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

@media (min-width:768px) {
  .stat .num {
    font-size: 1.7rem;
    align-items: baseline;
  }
}

.stat .num svg {
  color: var(--red-600);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (min-width:768px) {
  .stat .num svg {
    width: 20px;
    height: 20px;
    margin-top: 0;
  }
}

.stat .cap {
  font-size: .78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .72);
  margin-top: 6px;
  overflow-wrap: break-word;
}

@media (min-width:768px) {
  .stat .cap {
    font-size: .82rem;
  }
}

/* Stats strip (light, standalone section e.g. homepage) */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats-strip .stat {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.stats-strip .stat:nth-child(2n) {
  border-right: none;
}

.stats-strip .stat:nth-last-child(-n+2) {
  border-bottom: none;
}

@media (min-width:720px) {
  .stats-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stats-strip .stat {
    padding: 30px 26px;
    border-bottom: none;
  }

  .stats-strip .stat:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .stats-strip .stat:last-child {
    border-right: none;
  }

  .stats-strip .stat:nth-last-child(-n+2) {
    border-bottom: none;
  }
}

.stats-strip .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.35rem, 4.2vw, 1.9rem);
  color: var(--navy-900);
  line-height: 1.15;
  overflow-wrap: break-word;
}

.stats-strip .cap {
  font-size: .82rem;
  line-height: 1.35;
  color: var(--text-muted);
  margin-top: 4px;
  overflow-wrap: break-word;
}

/* Card grids */
.grid {
  display: grid;
  gap: 26px;
}

.grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width:720px) {
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-4 {
  grid-template-columns: 1fr;
}

@media (min-width:640px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1024px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.grid-6 {
  grid-template-columns: 1fr;
}

@media (min-width:640px) {
  .grid-6 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1024px) {
  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.grid-2 {
  grid-template-columns: 1fr;
}

@media (min-width:768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Industry / solution card */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card .photo {
  border-radius: 0;
  height: 190px;
}

.card-body {
  padding: 26px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-body p {
  font-size: .94rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-card--navy {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .12);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

.feature-card--navy p {
  color: rgba(255, 255, 255, .62);
}

.feature-card--navy h3 {
  color: #fff;
}

.solution-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.solution-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0;
}

.solution-card p {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
  flex-grow: 1;
}

.solution-card .tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.solution-card .tags span {
  font-size: .72rem;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--bg-light);
  padding: 5px 10px;
  border-radius: 100px;
}

.solution-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
}

.solution-pill h3 {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

.solution-pill p {
  color: rgba(255, 255, 255, .6);
  font-size: .86rem;
  margin: 0;
}

/* Insights / article cards */
.article-card {
  display: flex;
  flex-direction: column;
}

.article-card .photo {
  height: 200px;
  border-radius: var(--radius-md);
}

.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin: 18px 0 10px;
  font-weight: 600;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.article-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.article-card p {
  font-size: .92rem;
  color: var(--text-muted);
}

/* Why-us checklist */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
  color: var(--text-dark);
}

.check-list svg {
  flex-shrink: 0;
  color: var(--red-600);
  margin-top: 3px;
}

/* Success story / testimonial */
.story-grid {
  display: grid;
  gap: 30px;
  align-items: start;
}

@media (min-width:900px) {
  .story-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.story-photo {
  position: relative;
}

.story-photo .photo {
  height: 340px;
}

.testimonial {
  position: relative;
  margin-top: -60px;
  margin-left: 24px;
  margin-right: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 26px 24px;
  max-width: 340px;
}

@media (max-width:899px) {
  .testimonial {
    margin-top: 20px;
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }
}

.testimonial .quote-mark {
  color: var(--red-600);
  font-family: var(--font-head);
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
}

.testimonial p {
  font-size: .96rem;
  color: var(--text-dark);
  font-weight: 600;
  margin: 8px 0 14px;
}

.testimonial .attrib {
  font-size: .82rem;
  color: var(--text-muted);
}

.story-copy .result-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px 0;
}

.story-copy .result-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .94rem;
  font-weight: 600;
}

.story-copy .result-list svg {
  color: var(--red-600);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Trust strip / Marquee */
.trust-strip {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(26, 43, 99, .012);
  overflow: hidden;
}

.trust-strip .label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.trust-marquee {
  display: flex;
  gap: 24px;
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
  padding: 6px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  animation: marquee-scroll 32s linear infinite;
  min-width: 100%;
}

.trust-marquee:hover .marquee-group {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - 24px));
  }
}

.trust-logo {
  flex: 0 0 220px;
  width: 220px;
  height: 86px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  box-shadow: 0 2px 8px rgba(26, 43, 99, .04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-sizing: border-box;
}

.trust-logo:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 43, 99, .28);
  box-shadow: 0 8px 24px rgba(26, 43, 99, .08);
}

.trust-logo img {
  max-width: 100%;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.trust-logo span {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--text-muted);
  font-size: .88rem;
  text-align: center;
}

@media (max-width:640px) {
  .trust-strip {
    padding: 36px 0;
  }

  .trust-marquee {
    gap: 16px;
  }

  .marquee-group {
    gap: 16px;
    animation-duration: 24s;
  }

  @keyframes marquee-scroll {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(calc(-100% - 16px));
    }
  }

  .trust-logo {
    flex: 0 0 170px;
    width: 170px;
    height: 72px;
    padding: 10px 16px;
  }

  .trust-logo img {
    max-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-group {
    animation: none;
  }

  .trust-marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* Final CTA band */
.cta-band {
  background: var(--red-600);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.cta-band-left {
  display: flex;
  gap: 18px;
  align-items: center;
  max-width: 520px;
}

.cta-band-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-band h2 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.cta-band p {
  color: rgba(255, 255, 255, .85);
  margin: 0;
  font-size: .95rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--red-600);
}

.cta-band .btn-primary:hover {
  background: rgba(255, 255, 255, .9);
}

/* Process steps (solution detail pages) */
.step-row {
  display: flex;
  flex-direction: column;
  gap: 0;
  counter-reset: step;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step:last-child {
  border-bottom: none;
}

.step .step-num {
  counter-increment: step;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--navy-900);
}

.step .step-num::before {
  content: counter(step, decimal-leading-zero);
}

.step h3 {
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  font-size: .92rem;
  color: var(--text-muted);
}

/* Simple content sections (about/legal) */
.prose {
  max-width: 760px;
}

.prose h2 {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  margin: 0 0 1.2em;
  padding-left: 0;
}

.prose li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--red-600);
}

/* Legal pages tight spacing */
.section--legal {
  padding: 42px 0 64px;
}

@media (max-width:767px) {
  .section--legal {
    padding: 28px 0 44px;
  }
}

.prose--legal .prose-updated {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0 0 16px;
}

.prose--legal h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.prose--legal h2:first-of-type {
  margin-top: 0;
}

.prose--legal p {
  margin-bottom: 14px;
  line-height: 1.65;
  color: var(--text-body);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 44px;
}

@media (min-width:960px) {
  .contact-grid {
    grid-template-columns: .85fr 1.15fr;
  }
}

.contact-info-card {
  background: var(--navy-900);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  height: fit-content;
}

.contact-info-card h3 {
  color: #fff;
}

.contact-line {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.contact-line:first-of-type {
  border-top: none;
}

.contact-line svg {
  color: var(--red-600);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-line strong {
  display: block;
  font-size: .78rem;
  color: rgba(255, 255, 255, .55);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 3px;
}

.contact-line span,
.contact-line a {
  font-size: .98rem;
  font-weight: 600;
  color: #fff;
}

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.form-row.two {
  grid-template-columns: 1fr;
}

@media (min-width:560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text-dark);
  background: #fff;
  transition: border-color .15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy-900);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

/* Form field error states */
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red-600) !important;
  background-color: #FFF8F8;
}

.field.has-error input:focus,
.field.has-error select:focus,
.field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 81, 90, 0.15);
  border-color: var(--red-600) !important;
}

.field-error {
  display: block;
  font-size: .78rem;
  color: var(--red-600);
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.35;
}

.form-note {
  display: none;
  gap: 10px;
  align-items: center;
  font-size: .84rem;
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  border: 1px solid var(--line);
}

.form-note.is-visible {
  display: flex;
}

.form-note[hidden] {
  display: none !important;
}

.form-note svg {
  flex-shrink: 0;
  color: var(--red-600);
  margin-top: 0;
}

.form-note--error {
  background: #FFF5F5 !important;
  border-color: var(--red-600) !important;
  color: #D92330 !important;
}

.form-note--error svg {
  color: var(--red-600) !important;
}

.form-note--success {
  background: #F0FDF4 !important;
  border-color: #16A34A !important;
  color: #15803D !important;
}

.form-note--success svg {
  color: #16A34A !important;
}

/* Team / leadership placeholder note */
.notice-box {
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  font-size: .9rem;
  color: var(--text-muted);
  background: var(--bg-light);
}

/* 404 */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page .code {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(4rem, 14vw, 7rem);
  color: var(--navy-900);
  line-height: 1;
}

/* Responsive polish */
@media (max-width:640px) {
  .cta-band {
    padding: 28px 22px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  .testimonial {
    padding: 22px 20px;
  }
}

/* ============================================================
   Application Popup Modal
   ============================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s ease;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 43, 99, .78);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  cursor: pointer;
}

.modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid rgba(26, 43, 99, .18);
  box-shadow: 0 32px 80px -10px rgba(26, 43, 99, .45), 0 0 0 1px rgba(255, 255, 255, .2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(.98);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 22px 28px;
  background: linear-gradient(135deg, rgba(26, 43, 99, .06) 0%, rgba(255, 81, 90, .03) 100%);
  border-bottom: 1px solid rgba(26, 43, 99, .12);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: #1A2B63;
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-weight: 700;
}

.modal-header p {
  font-size: .86rem;
  color: rgba(26, 43, 99, .70);
  margin: 0;
  font-weight: 500;
}

.modal-close {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(26, 43, 99, .65);
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  transition: background .15s ease, color .15s ease;
}

.modal-close:hover {
  background: rgba(26, 43, 99, .12);
  color: #1A2B63;
}

.modal-body {
  padding: 26px 28px 30px;
  overflow-y: auto;
  max-height: calc(90vh - 90px);
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: rgba(26, 43, 99, .15);
  border-radius: 10px;
}

/* File Uploader */
.file-uploader-wrap {
  position: relative;
  padding: 14px 18px;
  background: rgba(26, 43, 99, .03);
  border: 1px dashed rgba(26, 43, 99, .25);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, background .15s ease;
  cursor: pointer;
}

.file-uploader-wrap:hover {
  border-color: #1A2B63;
  background: rgba(26, 43, 99, .06);
}

.file-input-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-uploader-custom {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.file-btn-fake {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #1A2B63;
  color: #FFFFFF;
  font-size: .85rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: .02em;
  box-shadow: 0 2px 6px rgba(26, 43, 99, .18);
}

.file-status-fake {
  font-size: .90rem;
  color: rgba(26, 43, 99, .80);
  font-weight: 500;
}

.file-hint-fake {
  margin: 6px 0 0;
  font-size: .78rem;
  color: rgba(26, 43, 99, .65);
  pointer-events: none;
}

.modal-submit-btn {
  background: #1A2B63;
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.modal-submit-btn:hover {
  background: #F3525A;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(243, 82, 90, .25);
}

.modal-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.form-success-msg {
  display: none;
  padding: 32px 20px;
  text-align: center;
}

.form-success-msg.is-visible {
  display: block;
}