/* Atlas Trip Hero. Shared Header and calculator styles stay unchanged. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/atlas/golos-text-400.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/atlas/golos-text-500.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/atlas/golos-text-600.woff2") format("woff2");
}
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/atlas/golos-text-700.woff2") format("woff2");
}
@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/atlas/literata-500.woff2") format("woff2");
}

.atlas-hero {
  --atlas-paper: #f6f3eb;
  --atlas-light: #fffdf7;
  --atlas-ink: #193b35;
  --atlas-brand: #0f766e;
  --atlas-muted: #53675f;
  --atlas-line: #c7cfc3;
  --atlas-wash: #e5eee5;
  position: relative;
  width: 100%;
  margin: 0;
  /* The shared Header is fixed and does not reserve document flow. */
  padding: 120px 0 42px;
  background: var(--atlas-paper);
  color: var(--atlas-ink);
  font-family: "Golos Text", sans-serif;
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}
.atlas-hero *,
.atlas-hero *::before,
.atlas-hero *::after {
  box-sizing: border-box;
}
.atlas-hero h1,
.atlas-hero p,
.atlas-hero figure {
  margin: 0;
}
.atlas-hero .atlas-container {
  width: calc(100% - 80px);
  max-width: 1360px;
  margin: 0 auto;
  padding: 0;
}
.atlas-hero .atlas-title {
  position: relative;
}
.atlas-hero .atlas-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--atlas-brand);
  font-size: 15px;
  line-height: 22px;
}
.atlas-hero .atlas-eyebrow::before {
  content: "";
  width: 22px;
  flex: 0 0 22px;
  height: 2px;
  background: var(--atlas-brand);
}
.atlas-hero .atlas-heading {
  max-width: 1120px;
  color: var(--atlas-ink);
  font: 500 60px/1.18 "Literata", serif;
  letter-spacing: -.022em;
  text-wrap: balance;
}
.atlas-hero .atlas-commission {
  display: flex;
  align-items: baseline;
  gap: 13px;
  margin: 21px 0 35px;
  color: var(--atlas-brand);
  font-size: 28px;
  line-height: 36px;
  letter-spacing: -.018em;
}
.atlas-hero .atlas-commission strong {
  font-weight: 700;
}
.atlas-hero .atlas-commission span {
  font-weight: 400;
}
.atlas-hero .atlas-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 73fr) minmax(0, 27fr);
  column-gap: 32px;
  row-gap: 28px;
  align-items: start;
}
.atlas-hero .atlas-scene > * {
  min-width: 0;
}
.atlas-hero .atlas-scene::before {
  content: "";
  position: absolute;
  top: -14px;
  left: -16px;
  width: 190px;
  height: 38px;
  border-left: 4px solid var(--atlas-brand);
  border-top: 4px solid var(--atlas-brand);
  pointer-events: none;
  z-index: 0;
}
.atlas-hero .atlas-photo {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  margin-left: -16px;
  aspect-ratio: 2;
  z-index: 1;
}
.atlas-hero .atlas-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.atlas-hero .atlas-director {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  padding-top: 7px;
  margin-left: 24px;
}
.atlas-hero .atlas-portrait {
  position: relative;
}
.atlas-hero .atlas-portrait::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 0;
  top: 24%;
  bottom: 0;
  background: var(--atlas-brand);
}
.atlas-hero .atlas-portrait::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 30px;
  bottom: -8px;
  width: 60px;
  border-right: 4px solid var(--atlas-brand);
  border-bottom: 4px solid var(--atlas-brand);
  z-index: 0;
}
.atlas-hero .atlas-portrait img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.atlas-hero .atlas-director figcaption {
  position: relative;
  padding: 16px 0 0 8px;
  font-size: 15px;
  line-height: 22px;
  z-index: 2;
}
.atlas-hero .atlas-director strong {
  display: block;
  font-size: 18px;
  line-height: 25px;
  font-weight: 600;
}
.atlas-hero .atlas-director figcaption span {
  display: block;
  margin-top: 2px;
  color: var(--atlas-muted);
}
.atlas-hero .atlas-support {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  max-width: 930px;
  font-size: 18px;
  line-height: 28px;
}
.atlas-hero .atlas-support p {
  font-weight: 400;
  text-wrap: pretty;
}
.atlas-hero .atlas-support p + p {
  color: var(--atlas-muted);
}
.atlas-hero .atlas-benefits {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--atlas-line);
  padding-top: 16px;
  max-width: 930px;
}
.atlas-hero a.atlas-benefit {
  color: inherit;
  text-decoration: none;
}
.atlas-hero .atlas-benefit strong {
  display: block;
  font: 500 31px/38px "Literata", serif;
  letter-spacing: -.02em;
  color: var(--atlas-brand);
}
.atlas-hero .atlas-benefit span {
  display: block;
  margin-top: 5px;
  font-size: 16px;
  line-height: 24px;
  color: var(--atlas-muted);
}
.atlas-hero .atlas-benefit em {
  font: inherit;
  font-size: 20px;
}
.atlas-hero .atlas-actions {
  grid-column: 2;
  grid-row: 2 / 4;
  display: grid;
  gap: 12px;
  font-size: 17px;
  line-height: 24px;
}
.atlas-hero .atlas-action {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.atlas-hero .atlas-action svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
.atlas-hero .atlas-action-text {
  min-width: 0;
}
.atlas-hero .atlas-action-label {
  display: block;
}
.atlas-hero .atlas-action-help {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 400;
  color: var(--atlas-muted);
}
.atlas-hero .atlas-action--primary {
  background: var(--atlas-brand);
  color: var(--atlas-light);
  justify-content: space-between;
}
.atlas-hero .atlas-action--primary .atlas-action-help {
  color: var(--atlas-light);
}
.atlas-hero .atlas-action--primary svg {
  flex-basis: 20px;
  width: 20px;
  height: 20px;
}
.atlas-hero .atlas-alternatives {
  display: grid;
  gap: 12px;
}
.atlas-hero .atlas-action--estimate {
  border: 1px solid #91a89b;
  background: var(--atlas-light);
}
.atlas-hero .atlas-action--calculator {
  border: 1px solid transparent;
  background: var(--atlas-wash);
}
.atlas-hero .atlas-action--calculator .atlas-action-label {
  font-weight: 600;
}
.atlas-hero .atlas-action--calculator svg {
  color: var(--atlas-brand);
}
.atlas-hero .atlas-action--calculator .atlas-action-help {
  color: #395d51;
}
.atlas-hero a.atlas-benefit:focus-visible,
.atlas-hero .atlas-action:focus-visible,
.atlas-hero .atlas-action.is-active {
  outline: 3px solid rgba(15, 118, 110, .24);
  outline-offset: 2px;
}
/* Only the approved boundary treatment, not the carousel design. */
.atlas-hero ~ #patient-stories {
  background: #fffdf7;
  border-top: 1px solid #c7cfc3;
  padding-top: 32px;
}

@media (min-width: 900px) and (max-width: 1199px) {
  .atlas-hero .atlas-heading { font-size: 52px; }
  .atlas-hero .atlas-director { margin-left: 0; }
  .atlas-hero .atlas-support { display: block; }
  .atlas-hero .atlas-support p + p { margin-top: 12px; }
  .atlas-hero .atlas-action { font-size: 16px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .atlas-hero .atlas-heading { font-size: 48px; line-height: 56px; }
  .atlas-hero .atlas-commission { font-size: 25px; line-height: 33px; margin: 21px 0 32px; }
  .atlas-hero .atlas-scene {
    grid-template-columns: minmax(0, 1fr) 220px;
    grid-template-rows: auto auto 1fr auto;
    gap: 26px 32px;
  }
  .atlas-hero .atlas-scene::before { left: -24px; width: 155px; }
  .atlas-hero .atlas-photo {
    grid-column: 1 / 3;
    grid-row: 1;
    margin: 0 -24px;
    aspect-ratio: 1672 / 941;
  }
  .atlas-hero .atlas-director {
    grid-column: 2;
    grid-row: 2 / 4;
    margin-left: 0;
    padding-top: 0;
  }
  .atlas-hero .atlas-portrait::after { right: -12px; }
  .atlas-hero .atlas-support {
    grid-column: 1;
    grid-row: 2;
    display: block;
    font-size: 18px;
    line-height: 28px;
    padding-top: 4px;
  }
  .atlas-hero .atlas-support p + p { margin-top: 14px; }
  .atlas-hero .atlas-benefits { grid-column: 1; grid-row: 3; gap: 20px; align-self: start; }
  .atlas-hero .atlas-benefit strong { font-size: 27px; line-height: 34px; }
  .atlas-hero .atlas-benefit span { font-size: 15px; line-height: 22px; }
  .atlas-hero .atlas-actions {
    grid-column: 1 / 3;
    grid-row: 4;
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 12px;
    align-items: stretch;
  }
  .atlas-hero .atlas-action { font-size: 16px; line-height: 23px; padding: 14px 12px; }
  .atlas-hero .atlas-alternatives { grid-column: 2 / 4; grid-template-columns: 1fr 1fr; }
  .atlas-hero .atlas-action--estimate,
  .atlas-hero .atlas-action--calculator { display: block; }
  .atlas-hero .atlas-action--estimate svg,
  .atlas-hero .atlas-action--calculator svg { margin-bottom: 8px; }
}
@media (max-width: 767px) {
  .atlas-hero { padding: 107px 0 32px; }
  .atlas-hero .atlas-container { width: calc(100% - 40px); max-width: none; }
  .atlas-hero .atlas-eyebrow { font-size: 14px; line-height: 20px; gap: 8px; margin-bottom: 12px; letter-spacing: 0; }
  .atlas-hero .atlas-eyebrow::before { width: 16px; flex-basis: 16px; }
  .atlas-hero .atlas-heading { font-size: 32px; line-height: 38px; }
  .atlas-hero .atlas-commission {
    display: block;
    font-size: 20px;
    line-height: 27px;
    letter-spacing: -.01em;
    margin: 12px 0 22px;
  }
  .atlas-hero .atlas-commission strong { font-size: 24px; line-height: 30px; display: block; }
  .atlas-hero .atlas-commission span { display: block; }
  .atlas-hero .atlas-scene { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .atlas-hero .atlas-scene::before { top: -11px; left: 0; width: 122px; height: 22px; border-width: 3px; z-index: 2; }
  .atlas-hero .atlas-photo { grid-column: 1; grid-row: 1; margin: 0 -20px; aspect-ratio: 1222 / 941; }
  .atlas-hero .atlas-photo img { object-position: right top; }
  .atlas-hero .atlas-support {
    grid-column: 1;
    grid-row: 3;
    display: block;
    font-size: 17px;
    line-height: 26px;
    padding: 2px 0 0;
    max-width: none;
  }
  .atlas-hero .atlas-support p + p { margin-top: 8px; }
  .atlas-hero .atlas-director {
    grid-column: 1;
    grid-row: 4;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 144px minmax(0, 1fr);
    gap: 26px;
    align-items: center;
  }
  .atlas-hero .atlas-portrait::before { left: 4px; top: 24%; }
  .atlas-hero .atlas-portrait::after { right: -9px; top: 20px; bottom: -7px; width: 35px; border-width: 3px; }
  .atlas-hero .atlas-director figcaption { padding: 0; font-size: 15px; line-height: 22px; }
  .atlas-hero .atlas-director strong { font-size: 18px; line-height: 25px; letter-spacing: -.01em; }
  .atlas-hero .atlas-director figcaption span { margin-top: 7px; }
  .atlas-hero .atlas-benefits { grid-column: 1; grid-row: 5; grid-template-columns: minmax(0, 1fr) max-content; gap: 18px; padding-top: 16px; }
  .atlas-hero .atlas-benefit strong { font-size: 25px; line-height: 32px; white-space: normal; }
  .atlas-hero .atlas-benefit em { font-size: 18px; }
  .atlas-hero .atlas-benefit span { font-size: 15px; line-height: 22px; margin-top: 7px; }
  .atlas-hero .atlas-actions { display: contents; }
  .atlas-hero .atlas-action { font-size: 17px; line-height: 24px; min-height: 56px; padding: 16px; border-radius: 7px; }
  .atlas-hero .atlas-action--primary { grid-column: 1; grid-row: 2; }
  .atlas-hero .atlas-alternatives { grid-column: 1; grid-row: 6; display: grid; gap: 12px; }
  .atlas-hero ~ #patient-stories { padding-top: 28px; }
}
@media (max-width: 374px) {
  .atlas-hero .atlas-director { grid-template-columns: 136px minmax(0, 1fr); gap: 24px; }
  .atlas-hero .atlas-benefits { gap: 8px; }
}

/* Hero-only MAX mark and snapshot estimate hierarchy. */
.atlas-hero .atlas-action--primary { justify-content: flex-start; }
.atlas-hero .atlas-max-icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.atlas-hero .atlas-action--estimate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 20px;
  border-color: rgba(15, 118, 110, .45);
  background: radial-gradient(ellipse at 18% 48%, rgba(15, 118, 110, .16), transparent 65%), var(--atlas-light);
  box-shadow: 0 3px 12px rgba(15, 118, 110, .08);
}
.atlas-hero .atlas-action--estimate .atlas-action-text {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px 14px;
}
.atlas-hero .atlas-estimate-visual {
  grid-column: 1;
  grid-row: 2;
  display: block;
  border: 1px solid rgba(15, 118, 110, .25);
  border-radius: 7px;
  box-shadow: 0 0 20px 6px rgba(15, 118, 110, .16);
}
.atlas-hero .atlas-estimate-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
.atlas-hero .atlas-action--estimate .atlas-action-label {
  grid-column: 1 / -1;
  grid-row: 1;
  color: var(--atlas-ink);
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.atlas-hero .atlas-action--estimate .atlas-action-help { grid-column: 2; grid-row: 2; margin-top: 0; }
.atlas-hero .atlas-action--estimate .atlas-action-help strong { font-weight: 600; }
.atlas-hero .atlas-estimate-cta {
  display: block;
  min-height: 48px;
  padding: 12px;
  border-radius: 7px;
  background: var(--color-accent);
  color: var(--atlas-ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .atlas-hero .atlas-action--estimate:hover .atlas-estimate-cta {
    box-shadow: inset 0 0 0 999px rgba(25, 59, 53, .06);
  }
}
.atlas-hero .atlas-action--estimate:active .atlas-estimate-cta {
  box-shadow: inset 0 2px 4px rgba(25, 59, 53, .22);
  transform: translateY(1px);
}
.atlas-hero .atlas-action--estimate:focus-visible {
  outline: 3px solid var(--atlas-brand);
  outline-offset: 3px;
}
.atlas-hero .atlas-action--estimate:focus-visible .atlas-estimate-cta {
  outline: 2px solid var(--atlas-ink);
  outline-offset: 2px;
}
@media (min-width: 900px) and (max-width: 1199px) {
  .atlas-hero .atlas-action--primary { padding-inline: 12px; gap: 10px; }
  .atlas-hero .atlas-action--estimate .atlas-action-text { grid-template-columns: minmax(0, 1fr); }
  .atlas-hero .atlas-estimate-visual { width: 112px; }
  .atlas-hero .atlas-action--estimate .atlas-action-help { grid-column: 1; grid-row: 3; }
  .atlas-hero .atlas-action--estimate { padding: 16px; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .atlas-hero .atlas-actions { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .atlas-hero .atlas-alternatives {
    grid-column: 1;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (max-width: 767px) {
  .atlas-hero .atlas-max-icon { flex-basis: 26px; width: 26px; height: 26px; }
  .atlas-hero .atlas-action--estimate { padding: 16px; }
  .atlas-hero .atlas-action--estimate .atlas-action-text { grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
}

/* Wide Hero grid reuses the title zone without increasing the photo offset.
   928px preserves the approved H1 wrapping; the remaining space belongs to the card. */
@media (min-width: 1324px) {
  .atlas-hero .atlas-container {
    display: grid;
    grid-template-columns: minmax(0, 73fr) minmax(0, 27fr);
    column-gap: 32px;
    align-items: start;
  }
  .atlas-hero .atlas-title {
    grid-column: 1;
    grid-row: 1;
    width: max(100%, 928px);
  }
  .atlas-hero .atlas-scene,
  .atlas-hero .atlas-actions,
  .atlas-hero .atlas-alternatives { display: contents; }
  .atlas-hero .atlas-scene::before { content: none; }
  .atlas-hero .atlas-photo { grid-row: 2; }
  .atlas-hero .atlas-photo::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 0;
    width: 190px;
    height: 38px;
    border-left: 4px solid var(--atlas-brand);
    border-top: 4px solid var(--atlas-brand);
    pointer-events: none;
    z-index: 0;
  }
  .atlas-hero .atlas-photo img { position: relative; z-index: 1; }
  .atlas-hero .atlas-director { grid-row: 2; }
  .atlas-hero .atlas-support { grid-row: 3 / 5; margin-top: 28px; }
  .atlas-hero .atlas-benefits { grid-row: 5; margin-top: 28px; }
  .atlas-hero .atlas-action--estimate {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    width: min(100%, calc(100vw - 1024px));
    padding: clamp(10px, calc(2.5vw - 20px), 16px);
    gap: 4px;
  }
  .atlas-hero .atlas-action--estimate .atlas-action-text { display: flex; flex-wrap: wrap; gap: 4px; }
  .atlas-hero .atlas-action--estimate .atlas-action-label {
    flex-basis: 100%;
    order: -1;
    font-size: clamp(18px, calc(1.666667vw - 2px), 22px);
    line-height: clamp(24px, calc(1.666667vw + 4px), 28px);
  }
  .atlas-hero .atlas-estimate-visual {
    flex: 0 0 clamp(64px, calc(11.666667vw - 76px), 92px);
    width: clamp(64px, calc(11.666667vw - 76px), 92px);
  }
  .atlas-hero .atlas-action--estimate .atlas-action-help { flex: 1 1 140px; }
  .atlas-hero .atlas-estimate-cta { padding-inline: 4px; }
  .atlas-hero .atlas-action--primary { grid-column: 2; grid-row: 3; margin-top: 28px; }
  .atlas-hero .atlas-action--calculator { grid-column: 2; grid-row: 4; margin-top: 12px; }
}

/* Approved individual and group travel introduction. */
.atlas-hero .atlas-commission { margin-bottom: 16px; }
.atlas-hero .atlas-trip-format {
  margin-bottom: 32px;
  max-width: 820px;
  font-size: 18px;
  line-height: 27px;
  color: var(--atlas-ink);
}
.atlas-hero .atlas-trip-format strong {
  display: block;
  margin-bottom: 4px;
  color: var(--atlas-brand);
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
}
@media (max-width: 767px) {
  .atlas-hero .atlas-commission { margin-bottom: 16px; }
  .atlas-hero .atlas-trip-format {
    margin-bottom: 24px;
    font-size: 17px;
    line-height: 25px;
  }
  .atlas-hero .atlas-trip-format strong { font-size: 20px; line-height: 28px; }
}

/* The original photo remains in normal flow and keeps the approved geometry. */
.atlas-hero .atlas-photo .atlas-hero-background {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  pointer-events: none;
}
.atlas-hero .atlas-photo.is-background-playing .atlas-hero-background {
  opacity: 1;
}
@media (max-width: 767px) {
  .atlas-hero .atlas-photo .atlas-hero-background { object-position: 80% 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .atlas-hero .atlas-photo .atlas-hero-background { display: none; }
}
@media (max-width: 359px) {
  .atlas-hero .atlas-heading { font-size: 28px; }
}
