/* Hero */
.hero {
  position: relative;
  height: 720px;
  background: linear-gradient(180deg, #F9F4ED 0%, #E7E2E0 100%), url("../png/hero-bg.png") lightgray 50% / cover no-repeat;
  background-blend-mode: hard-light;
}

.hero::before {
  content: "";
  position: absolute;
  background: url("../png/hero-homepage.png") no-repeat center;
  z-index: 1;
  width: 100%;
  height: 100%;
  top: -130px;
  right: -120px;
}

.hero .masthead {
  position: relative;
  z-index: 2;
  padding: 80px 70px;
  height: 720px;
}

.hero .masthead .left {
  position: relative;
  position: absolute;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.hero .masthead .right {
  position: absolute;
  right: 0px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 313px;
}

.hero .masthead .right hr {
  width: 100%;
  color: rgba(5, 5, 5, 0.1);
}

.hero .masthead .right p {
  margin: 0;
  color: var(--text-default-primary, #050505);
  /* body/p4 */
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.12px;
}

/* Stock Information Styles */
.stock-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stock-logo {
  flex-shrink: 0;
  display: flex;
}

.stock-logo svg {
  width: 36px;
  height: 36px;
}

.stock-details {
  flex: 1;
}

.stock-price {
  font-size: 20px;
  font-weight: 550;
  font-family: var(--font-family-title);
  line-height: 28px;
}

.stock-label {
  line-height: 16px;
  font-size: 12px;
  font-weight: 400;
}

.stock-performance {
  text-align: right;
}

.stock-gain {
  font-size: 20px;
  font-weight: 550;
  height: 28px;
  color: #16a34a;
  line-height: 28px;
  font-family: var(--font-family-title);
}

.stock-gain.positive {
  color: var(--icon-positive-default);
  /* Arrow uses theme variable */
}

.stock-gain.negative {
  color: var(--icon-negative-default);
  /* Arrow uses theme variable */
}

.stock-gain.neutral {
  color: #666;
  /* Gray for neutral */
}

.stock-period {
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.relative {
  position: relative;
  height: 100%;
}

.hero h1 {
  font-size: 72px;
  line-height: 76px;
  margin: 0 0 8px;
  font-family: var(--font-family-title);
}

.hero h1 .lead {
  color: var(--text-default-gold-headings);
}

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

.metrics {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #555;
}

/* Promise band */
.promise {
  display: flex;
  padding: 120px 70px 64px 70px;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
}

.promise p {
  display: flex;
  width: 862px;
  flex-direction: column;
  align-items: flex-start;
  text-align: center;
  font-variant-numeric: ordinal;
  font-family: var(--font-family-title);
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -0.64px;
  margin: 0;
  font-weight: 550;
}

/* General Section Styles */
.section {
  padding: 56px 0;
  background: #fff;
}

.section h2 {
  font-size: 36px;
  margin: 0 0 24px;
  font-weight: 700;
  color: #333;
}

/* Trusted Section */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Services layout with intro column --- */
.services-wrap {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: start;
}

.services-intro h3 {
  font-size: 28px;
  margin: 0 0 10px;
}

.services-intro .eyebrow {
  letter-spacing: 0.12em;
  font-size: 12px;
  color: #8e6f2b;
}

.services-intro p {
  color: #555;
  line-height: 1.6;
}

/* Card footer small link */
.card .footlink {
  display: inline-block;
  margin: 10px 16px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #111;
}

@media screen and (max-width: 1040px) {
  .hero h1 {
    font-size: 54px;
    line-height: 60px;
    margin-bottom: 24px;
  }

  .services-wrap {
    grid-template-columns: 1fr;
  }

  .actions-top {
    justify-content: flex-start;
    margin-top: 0;
  }

  .hero::before {
    right: 5%;
    width: 75%;
  }

  .container {
    padding: 0 40px;
  }

  .hero {
    height: auto;
    min-height: 500px;
  }

  .hero::before {
    top: -14%;
    right: -30%;
    width: 100%;
    height: 100%;
    background-size: 110%;
  }

  .hero .masthead .right hr {
    margin: 0;
  }

  .hero .masthead {
    padding: 52px 40px;
    height: auto;
    min-height: 696px;
  }

  .hero .masthead .relative {
    margin-top: 178px;
  }

  .hero .masthead .left {
    position: static;
    left: auto;
    bottom: auto;
    width: 100%;
  }

  .hero .masthead .right {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 400px;
    padding-bottom: 40px;
    gap: 16px;
  }

  .hero .masthead .right p {
    font-size: 14px;
    line-height: 18px;
  }

  .stock-price {
    font-size: 18px;
  }

  .stock-label {
    font-size: 12px;
  }

  .stock-header {
    gap: 16px;
  }

  .stock-details {
    margin-right: 12px;
  }

  .stock-details {
    flex: unset;
  }

  .stock-gain {
    font-size: 18px;
  }

  .stock-period {
    font-size: 12px;
  }

  .promise {
    padding: 104px 40px 48px;
  }

  .promise p {
    font-size: 28px;
    line-height: 32px;
    width: unset;
  }

  .cta-section .cta-content {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }

  .cta-content div {
    text-align: center;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    min-height: 600px;
  }

  .hero::before {
    top: -32%;
    right: 0%;
    width: 100%;
    height: 100%;
    background-size: 105%;
  }

  .hero .masthead {
    min-height: 568px;
    padding: 52px 20px 36px 20px;
  }

  .hero .masthead .relative {}

  .hero .masthead .left {}

  .hero h1 {
    font-size: 34px;
    line-height: 40px;
    margin-bottom: 26px;
  }

  .hero .btn-group {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    display: flex;
  }

  .hero .btn-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero .masthead .right {
    max-width: 100%;
    padding-bottom: 32px;
  }

  .hero .masthead .right p {
    font-size: 13px;
    line-height: 17px;
  }

  .stock-logo svg {
    width: 28px;
    height: 28px;
  }

  .promise {
    padding: 64px 20px 40px;
    height: 360px;
  }

  .promise p {}

  .logo-circle {
    width: 160px;
    height: 160px;
  }

  .gold-g img {
    width: 60px;
  }

  .kpi .num {
    font-size: 32px;
  }

  .kpi .label {
    font-size: 11px;
  }

  .highlight {
    font-size: 40px;
    line-height: 44px;
    letter-spacing: -0.8px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    width: 100%;
  }
}