/* Services page (/services): intro + protect/grow stack, service explorer, journey + CTA. Theme colours only. */
:root {
  --as-navy: var(--ul-2-primary, #0B2545);
  --as-accent: var(--artha-accent, #FFB800);
  --as-ink: #0B1B2E;
  --as-muted: #5B6577;
  --as-line: #E3E9F1;
  --as-tint: #F4F7FB;
}

.as-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--as-navy);
}
.as-eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--as-accent);
}
.as-head {
  margin-bottom: clamp(24px, 3vw, 44px);
}
.as-title {
  margin: 12px 0 0;
  font-size: clamp(28px, 2.6vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--as-ink);
}
.as-head.is-light .as-eyebrow,
.as-head.is-light .as-title {
  color: #fff;
}

/* buttons */
.as-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.as-btn:hover {
  transform: translateY(-2px);
}
.as-btn-navy {
  background: var(--as-navy);
  color: #fff;
}
.as-btn-navy:hover {
  background: var(--as-accent);
  color: var(--as-navy);
}
.as-btn-ghost {
  border-color: var(--as-line);
  color: var(--as-navy);
  background: #fff;
}
.as-btn-ghost:hover {
  border-color: var(--as-navy);
  color: var(--as-navy);
}
.as-btn-accent {
  background: var(--as-accent);
  color: var(--as-navy);
}
.as-btn-accent:hover {
  background: #fff;
  color: var(--as-navy);
}
.as-btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.as-btn-outline:hover {
  border-color: #fff;
  color: #fff;
}

/* ---------- intro ---------- */
.as-intro {
  padding: clamp(56px, 6vw, 110px) 0 clamp(40px, 4vw, 70px);
}
.as-intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
}
.as-intro-title {
  margin: 16px 0 20px;
  font-size: clamp(32px, 3.4vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--as-ink);
}
.as-intro-title em {
  font-style: normal;
  color: var(--as-navy);
  background: linear-gradient(transparent 62%, rgba(255, 184, 0, 0.45) 62%);
}
.as-intro-lead {
  margin: 0 0 26px;
  max-width: 620px;
  font-size: clamp(15px, 1vw, 18px);
  line-height: 1.7;
  color: var(--as-muted);
}
.as-intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.as-intro-badges span {
  padding: 8px 14px;
  border-radius: 30px;
  background: var(--as-tint);
  border: 1px solid var(--as-line);
  font-size: 14px;
  color: var(--as-muted);
}
.as-intro-badges b {
  color: var(--as-navy);
  margin-right: 4px;
}

/* protect / grow stack */
.as-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 2vw, 32px);
  border-radius: 24px;
  background: linear-gradient(160deg, #fff 0%, var(--as-tint) 100%);
  border: 1px solid var(--as-line);
  box-shadow: 0 30px 60px -30px rgba(11, 37, 69, 0.25);
}
.as-stack-tier {
  padding: 16px;
  border-radius: 16px;
}
.as-stack-tier.is-grow {
  background: #fff;
  border: 1px dashed #C9D3E0;
  margin: 0 clamp(0px, 2vw, 28px);
}
.as-stack-tier.is-protect {
  background: var(--as-navy);
}
.as-stack-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--as-muted);
}
.as-stack-tier.is-protect .as-stack-label {
  color: rgba(255, 255, 255, 0.75);
}
.as-stack-label i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-style: normal;
  font-size: 12px;
  background: var(--as-accent);
  color: var(--as-navy);
}
.as-stack-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.as-stack-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.as-stack-tier.is-grow .as-stack-chip {
  background: var(--as-tint);
  color: var(--as-navy);
}
.as-stack-tier.is-protect .as-stack-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.as-stack-chip svg {
  flex: none;
  color: var(--as-accent);
}
.as-stack-tier.is-grow .as-stack-chip svg {
  color: var(--as-navy);
}
.as-stack-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(11, 37, 69, 0.12);
}
.as-stack-tier.is-protect .as-stack-chip:hover {
  color: #fff;
}
.as-stack-note {
  margin: 4px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--as-muted);
}

/* ---------- explorer ---------- */
.as-explorer {
  padding: clamp(40px, 4vw, 70px) 0 clamp(56px, 6vw, 110px);
}
.as-explorer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: stretch;
}
.as-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.as-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--as-line);
  border-radius: 16px;
  background: #fff;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.as-tab:hover {
  border-color: var(--as-accent);
  transform: translateX(4px);
}
.as-tab-num {
  font-size: 13px;
  font-weight: 700;
  color: #98A2B3;
  width: 22px;
}
.as-tab-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--as-tint);
  color: var(--as-navy);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.as-tab-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.as-tab-txt b {
  font-size: 17px;
  color: var(--as-ink);
}
.as-tab-txt small {
  font-size: 13.5px;
  color: var(--as-muted);
}
.as-tab-arrow {
  font-size: 18px;
  color: var(--as-navy);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.as-tab.is-active {
  background: var(--as-navy);
  border-color: var(--as-navy);
  box-shadow: 0 18px 36px -16px rgba(11, 37, 69, 0.55);
  transform: none;
}
.as-tab.is-active .as-tab-num {
  color: var(--as-accent);
}
.as-tab.is-active .as-tab-icon {
  background: var(--as-accent);
  color: var(--as-navy);
}
.as-tab.is-active .as-tab-txt b {
  color: #fff;
}
.as-tab.is-active .as-tab-txt small {
  color: rgba(255, 255, 255, 0.72);
}
.as-tab.is-active .as-tab-arrow {
  opacity: 1;
  transform: none;
  color: var(--as-accent);
}

.as-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--as-line);
  box-shadow: 0 30px 60px -34px rgba(11, 37, 69, 0.3);
  animation: as-in 0.35s ease-out;
}
@keyframes as-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.as-panel-media {
  position: relative;
  min-height: 100%;
}
.as-panel-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.as-panel-layer {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.as-panel-layer.is-grow {
  background: var(--as-accent);
  color: var(--as-navy);
}
.as-panel-layer.is-protect {
  background: var(--as-navy);
  color: #fff;
}
.as-panel-body {
  padding: clamp(24px, 2.4vw, 40px);
  display: flex;
  flex-direction: column;
}
.as-panel-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 34px);
  font-weight: 700;
  color: var(--as-ink);
}
.as-panel-summary {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--as-muted);
}
.as-panel-points {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.as-panel-points li {
  position: relative;
  padding-left: 30px;
  font-weight: 600;
  color: var(--as-ink);
}
.as-panel-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--as-accent);
  color: var(--as-navy);
  font-size: 12px;
  font-weight: 800;
}
.as-panel-for {
  margin: 0 0 24px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--as-tint);
  font-size: 14px;
  color: var(--as-navy);
}
.as-panel-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- journey + CTA ---------- */
.as-journey {
  padding: 0 0 clamp(56px, 6vw, 110px);
}
.as-journey-box {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 4vw, 70px);
  border-radius: 28px;
  background: radial-gradient(600px 300px at 100% 0%, rgba(255, 184, 0, 0.16), transparent 60%), var(--as-navy);
  color: #fff;
}
.as-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(28px, 3.4vw, 56px);
  padding-top: clamp(24px, 2.6vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.as-cta h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 1.6vw, 28px);
  font-weight: 700;
  color: #fff;
}
.as-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}
.as-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
  .as-panel {
    grid-template-columns: 1fr;
  }
  .as-panel-media {
    min-height: 0;
    aspect-ratio: 16 / 7;
  }
}
@media (max-width: 991px) {
  .as-intro-grid {
    grid-template-columns: 1fr;
  }
  .as-explorer-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  /* service picker becomes a 2 x 2 grid above the panel */
  .as-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .as-tab {
    padding: 12px;
    gap: 10px;
  }
  .as-tab:hover {
    transform: none;
  }
  .as-tab-num,
  .as-tab-arrow {
    display: none;
  }
  .as-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 575px) {
  .as-tab-txt small {
    display: none;
  }
  .as-tab-txt b {
    font-size: 15px;
  }
  .as-tab-icon {
    width: 38px;
    height: 38px;
  }
  .as-stack-row {
    grid-template-columns: 1fr;
  }
  .as-stack-tier.is-grow {
    margin: 0;
  }
  .as-panel-media {
    aspect-ratio: 16 / 9;
  }
  .as-cta-btns,
  .as-cta-btns .as-btn,
  .as-panel-actions .as-btn {
    width: 100%;
  }
  .as-journey-box {
    border-radius: 20px;
  }
}

/* ---------- SIP estimate ---------- */
.as-sip {
  padding: 0 0 clamp(56px, 6vw, 110px);
}
.as-sip-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--as-line);
  background: #fff;
  box-shadow: 0 30px 60px -34px rgba(11, 37, 69, 0.3);
}
.as-sip-form {
  padding: clamp(28px, 3.4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.as-sip-form .as-title {
  margin-bottom: 6px;
}
.as-sip-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.as-sip-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-weight: 600;
  color: var(--as-muted);
}
.as-sip-row b {
  padding: 4px 12px;
  border-radius: 8px;
  background: var(--as-tint);
  font-size: 17px;
  color: var(--as-navy);
}
.as-sip-field input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--as-navy) 0 var(--fill), #E3E9F1 var(--fill) 100%);
  cursor: pointer;
}
.as-sip-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--as-accent);
  border: 4px solid #fff;
  box-shadow: 0 0 0 1px rgba(11, 37, 69, 0.15), 0 4px 10px rgba(11, 37, 69, 0.25);
}
.as-sip-field input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--as-accent);
  border: 4px solid #fff;
}
.as-sip-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: clamp(28px, 3.4vw, 56px);
  background: radial-gradient(400px 220px at 100% 0%, rgba(255, 184, 0, 0.18), transparent 60%), var(--as-navy);
  color: #fff;
}
.as-sip-result-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.as-sip-result-value {
  font-size: clamp(34px, 3vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.as-sip-bar {
  height: 10px;
  border-radius: 10px;
  background: var(--as-accent);
  overflow: hidden;
}
.as-sip-bar span {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
  transition: width 0.3s ease;
}
.as-sip-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 8px;
}
.as-sip-split dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}
.as-sip-split dt i {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}
.as-sip-split dt i.is-invested {
  background: rgba(255, 255, 255, 0.85);
}
.as-sip-split dt i.is-gain {
  background: var(--as-accent);
}
.as-sip-split dd {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.as-sip-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}
@media (max-width: 991px) {
  .as-sip-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575px) {
  .as-sip-grid {
    border-radius: 20px;
  }
  .as-sip-result .as-btn {
    width: 100%;
  }
}

/* explorer cards stacked in one cell: same size for every service, crossfade on switch */
.as-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.as-panels > .as-panel {
  grid-area: 1 / 1;
  animation: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s linear 0.35s;
}
.as-panels > .as-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s;
}

/* long button labels (e.g. "Life Insurance Need Calculator") must not widen the card or its photo */
.as-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}
@media (max-width: 1199px) {
  .as-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 575px) {
  .as-panel-actions .as-btn {
    white-space: normal;
    text-align: center;
  }
}
