/* Banner Section — Home hero + Page hero
   Base = 1920px design; scales down via media queries */

.hero {
  position: relative;
  width: 100%;
  max-width: var(--syncare-design-width, 1920px);
  height: 792px;
  margin: 0 auto;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__inner {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
  max-width: var(--syncare-content-width, 1620px);
  margin: 0 auto;
  padding: 0;
  /* Header clearance above bottom-aligned content */
  padding-top: calc(var(--syncare-logo-width, 300px) * 0.314 + 40px);
  box-sizing: border-box;
}

.hero__content {
  flex: 1;
  max-width: 920px;
  min-width: 0;
  padding-top: 0;
  padding-bottom: 100px;
  overflow: visible;
}

.hero__title {
  margin: 0 0 22px;
  overflow: visible;
}

.hero__title-line {
  display: block;
  text-align: left;
  font: normal normal bold 48px/72px Montserrat, sans-serif;
  letter-spacing: 2.4px;
  color: #274760;
  opacity: 1;
  white-space: nowrap;
}

.hero__title-accent {
  display: block;
  text-align: left;
  font: normal normal 900 116px/1 Montserrat, sans-serif;
  letter-spacing: 5.8px;
  color: #cc929e;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 8px;
  white-space: nowrap;
}

.hero--accent-dark .hero__title-accent {
  font-weight: 700;
  font-size: 72px;
  line-height: 1.1;
  color: #274760;
  letter-spacing: 2.4px;
  white-space: normal;
  margin-bottom: 28px;
}

.hero--accent-dark .hero__title {
  margin-bottom: 0;
}

.hero--accent-dark .hero__content {
  max-width: 860px;
  padding-top: 0;
  padding-bottom: 100px;
}

.hero--accent-dark .hero__text {
  width: 100%;
  max-width: 813px;
  margin: 0 0 20px;
  font: normal normal normal 18px/32px Montserrat, sans-serif;
  letter-spacing: 0.16px;
  color: #274760;
}

.hero--accent-dark .hero__text:last-of-type {
  margin-bottom: 0;
}

/* ── Contact theme via Custom Class: hero--contact ── */
.hero--contact {
  height: 792px;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.hero--contact .hero__inner {
  align-items: flex-end;
  padding-top: calc(var(--syncare-logo-width, 300px) * 0.314 + 40px);
}

.hero--contact .hero__content {
  flex: 1;
  max-width: 860px;
  min-width: 0;
  padding-top: 0;
  padding-bottom: 140px;
}

.hero--contact .hero__title {
  margin: 0 0 40px;
}

.hero--contact .hero__title-line {
  display: none;
}

.hero--contact .hero__title-accent {
  display: block;
  font: normal normal 700 72px/1.1 Montserrat, sans-serif;
  letter-spacing: 2.4px;
  color: #274760;
  white-space: normal;
  margin: 0;
}

.hero--contact .hero__text {
  width: 100%;
  max-width: 813px;
  margin: 0 0 20px;
  text-align: left;
  font: normal normal normal 18px/32px Montserrat, sans-serif;
  letter-spacing: 0.16px;
  color: #274760;
}

.hero--contact .hero__text:last-of-type {
  margin-bottom: 0;
}

.hero--contact .hero__actions {
  display: none;
}

.hero--contact .hero__media {
  flex: 0 0 695px;
  width: 695px;
  height: 627px;
  align-self: flex-end;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 0;
}

.hero__text {
  margin: 0 0 32px;
  max-width: 640px;
  text-align: left;
  font: normal normal normal 20px/36px Montserrat, sans-serif;
  letter-spacing: 0.16px;
  color: #274760;
  opacity: 1;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__media {
  flex-shrink: 0;
  width: 695px;
  height: 627px;
  align-self: flex-end;
  margin-top: 0;
}

.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

/* Page hero (inner pages) — 1920 base height 648px */
.page-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--syncare-design-width, 1920px);
  height: 648px;
  margin: 0 auto;
  overflow: hidden;
}

.page-hero__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.4);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--syncare-content-width, 1620px);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--syncare-section-padding, 150px);
  box-sizing: border-box;
}

.page-hero__title {
  margin: 0;
  max-width: none;
  text-align: center;
  font: normal normal 900 100px/1 Montserrat, sans-serif;
  letter-spacing: 6px;
  color: #ffffff;
  white-space: nowrap;
}

/* Long titles — matches Nursing Visas design (auto-applied in PHP) */
.page-hero--long .page-hero__title {
  font-size: 72px;
  line-height: 1.12;
  letter-spacing: 2.5px;
  max-width: 1100px;
  white-space: normal;
}

/* ── ≤1600px — ~83% of 1920 ── */
@media (max-width: 1600px) {
  .hero {
    height: 660px;
  }

  .hero__inner {
    padding-left: 0;
    padding-right: 0;
    max-width: calc(100% - 160px);
    padding-top: calc(var(--syncare-logo-width, 240px) * 0.314 + 36px);
    align-items: flex-end;
  }

  .hero__title-line {
    font-size: 40px;
    line-height: 60px;
    letter-spacing: 2px;
    white-space: nowrap;
  }

  .hero__title-accent {
    font-size: 96px;
    line-height: 1;
    letter-spacing: 4.5px;
    white-space: nowrap;
  }

  .hero__text {
    font-size: 18px;
    line-height: 32px;
  }

  .hero--accent-dark .hero__title-accent {
    font-size: 60px;
  }

  .hero--accent-dark .hero__text {
    max-width: 720px;
    font-size: 17px;
    line-height: 30px;
  }

  .hero--accent-dark .hero__content {
    max-width: 780px;
    padding-bottom: 90px;
  }

  .hero--contact {
    height: 660px;
  }

  .hero--contact .hero__title-accent {
    font-size: 60px;
  }

  .hero--contact .hero__title {
    margin-bottom: 32px;
  }

  .hero--contact .hero__text {
    max-width: 720px;
    font-size: 17px;
    line-height: 30px;
  }

  .hero--contact .hero__content {
    max-width: 780px;
    padding-bottom: 110px;
  }

  .hero--contact .hero__media {
    flex-basis: 580px;
    width: 580px;
    height: 520px;
    align-self: flex-end;
    margin-top: 0;
  }

  .hero__content {
    max-width: 780px;
    padding-top: 0;
    padding-bottom: 90px;
  }

  .hero__media {
    width: 580px;
    height: 520px;
  }

  .page-hero {
    height: 540px;
  }

  .page-hero__inner {
    padding-left: 80px;
    padding-right: 80px;
  }

  .page-hero__title {
    font-size: 80px;
    letter-spacing: 3px;
  }

  .page-hero--long .page-hero__title {
    font-size: 60px;
    letter-spacing: 2px;
  }
}

/* ── ≤1440px — ~75% of 1920 ── */
@media (max-width: 1440px) {
  .hero {
    height: 594px;
  }

  .hero__inner {
    max-width: var(--syncare-content-width, calc(100% - 120px));
    gap: 32px;
    padding-top: calc(var(--syncare-logo-width, 220px) * 0.314 + 32px);
    align-items: flex-end;
  }

  .hero__title-line {
    font-size: 36px;
    line-height: 54px;
    letter-spacing: 1.8px;
    white-space: nowrap;
  }

  .hero__title-accent {
    font-size: 87px;
    line-height: 1;
    letter-spacing: 4.35px;
    white-space: nowrap;
    margin-bottom: 10px;
  }

  .hero__title {
    margin-bottom: 18px;
  }

  .hero__text {
    font-size: 16px;
    line-height: 28px;
    max-width: 500px;
    margin-bottom: 28px;
  }

  .hero--accent-dark .hero__title-accent {
    font-size: 52px;
    letter-spacing: 1.8px;
    margin-bottom: 22px;
  }

  .hero--accent-dark .hero__text {
    max-width: 640px;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 16px;
  }

  .hero--accent-dark .hero__content {
    max-width: 680px;
    padding-bottom: 80px;
  }

  .hero--contact {
    height: 594px;
  }

  .hero--contact .hero__title-accent {
    font-size: 52px;
    letter-spacing: 1.8px;
  }

  .hero--contact .hero__title {
    margin-bottom: 28px;
  }

  .hero--contact .hero__text {
    max-width: 640px;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 16px;
  }

  .hero--contact .hero__content {
    max-width: 680px;
    padding-top: 0;
    padding-bottom: 96px;
  }

  .hero--contact .hero__media {
    flex-basis: 500px;
    width: 500px;
    height: 450px;
    align-self: flex-end;
    margin-top: 0;
  }

  .hero__content {
    flex: 1 1 auto;
    max-width: 620px;
    min-width: 0;
    padding-top: 0;
    padding-bottom: 80px;
  }

  .hero__media {
    width: 500px;
    height: 450px;
    flex-shrink: 0;
    align-self: flex-end;
  }

  .hero__actions {
    gap: 12px;
  }

  .page-hero {
    height: 480px;
  }

  .page-hero__title {
    font-size: 68px;
    letter-spacing: 2.5px;
  }

  .page-hero--long .page-hero__title {
    font-size: 52px;
    letter-spacing: 2px;
  }
}

/* ── ≤1200px — ~62% of 1920 ── */
@media (max-width: 1200px) {
  .hero__inner {
    padding-left: 48px;
    padding-right: 48px;
    max-width: 100%;
    padding-top: calc(var(--syncare-logo-width, 170px) * 0.314 + 28px);
    align-items: flex-end;
  }

  .hero {
    height: 520px;
    min-height: 520px;
    background-size: cover;
  }

  .hero__title-line {
    font-size: 30px;
    line-height: 1.3;
    letter-spacing: 1.4px;
    white-space: nowrap;
  }

  .hero__title-accent {
    font-size: 64px;
    line-height: 1;
    letter-spacing: 2.5px;
    white-space: nowrap;
  }

  .hero__text {
    font-size: 16px;
    line-height: 1.6;
  }

  .hero--accent-dark .hero__title-accent {
    font-size: 44px;
    white-space: normal;
  }

  .hero--accent-dark .hero__text {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero--accent-dark .hero__content {
    max-width: 520px;
    padding-bottom: 64px;
  }

  .hero--contact {
    height: 520px;
    min-height: 520px;
  }

  .hero--contact .hero__title-accent {
    font-size: 44px;
  }

  .hero--contact .hero__title {
    margin-bottom: 24px;
  }

  .hero--contact .hero__text {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.65;
  }

  .hero--contact .hero__content {
    max-width: 520px;
    padding-bottom: 72px;
  }

  .hero--contact .hero__media {
    flex-basis: 380px;
    width: 380px;
    height: 340px;
    align-self: flex-end;
    margin-top: 0;
  }

  .hero__content {
    max-width: 520px;
    padding-top: 0;
    padding-bottom: 56px;
  }

  .hero__media {
    width: 380px;
    height: 340px;
    align-self: flex-end;
  }

  .page-hero {
    height: 440px;
  }

  .page-hero__inner {
    padding-left: 48px;
    padding-right: 48px;
  }

  .page-hero__title {
    font-size: 56px;
    line-height: 1.15;
    letter-spacing: 2px;
  }

  .page-hero--long .page-hero__title {
    font-size: 48px;
    letter-spacing: 2px;
  }
}

/* ── 1024px only — ~53% of 1920 ── */
@media (min-width: 1024px) and (max-width: 1024px) {
  .hero {
    height: 480px;
    min-height: 480px;
    overflow: hidden;
  }

  .hero__inner {
    height: 100%;
    max-width: var(--syncare-content-width, calc(100% - 48px));
    margin: 0 auto;
    padding: 0;
    padding-top: 80px;
    gap: 16px;
    align-items: flex-end;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .hero__content {
    flex: 1 1 auto;
    max-width: 500px;
    min-width: 0;
    padding-top: 0;
    padding-bottom: 40px;
    overflow: visible;
  }

  .hero__title {
    margin: 0 0 12px;
  }

  .hero__title-line {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .hero__title-accent {
    font-size: 44px;
    line-height: 1;
    letter-spacing: 1.8px;
    white-space: nowrap;
    margin-bottom: 6px;
  }

  .hero__text {
    font-size: 14px;
    line-height: 22px;
    max-width: 420px;
    margin: 0 0 20px;
  }

  .hero--accent-dark .hero__content {
    max-width: 520px;
    padding-bottom: 36px;
  }

  .hero--accent-dark .hero__title-accent {
    font-size: 40px;
    white-space: normal;
    margin-bottom: 14px;
  }

  .hero--accent-dark .hero__text {
    max-width: 100%;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 12px;
  }

  .hero--contact {
    height: 480px;
    min-height: 480px;
  }

  .hero--contact .hero__content {
    max-width: 520px;
    padding-bottom: 48px;
  }

  .hero--contact .hero__title-accent {
    font-size: 40px;
  }

  .hero--contact .hero__title {
    margin-bottom: 18px;
  }

  .hero--contact .hero__text {
    max-width: 100%;
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 12px;
  }

  .hero--contact .hero__media {
    flex-basis: 360px;
    width: 360px;
    height: 340px;
    align-self: flex-end;
    margin-top: 0;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .cta-btn {
    min-width: 0;
    height: 42px;
    padding: 0 16px;
    font-size: 12px;
  }

  .hero__media {
    flex: 0 0 360px;
    width: 360px;
    height: 340px;
    margin-top: 0;
    align-self: flex-end;
  }

  .hero__media img {
    object-fit: contain;
    object-position: bottom center;
  }

  .page-hero {
    height: 400px;
  }

  .page-hero__title {
    font-size: 48px;
    line-height: 1.15;
    letter-spacing: 1.5px;
  }

  .page-hero--long .page-hero__title {
    font-size: 36px;
    letter-spacing: 1.2px;
  }
}

/* ── ≤900px ── */
@media (max-width: 900px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .hero.hero--contact {
    overflow: visible;
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding: 28px 24px 0;
  }

  .hero__content {
    padding-top: 8px;
    padding-bottom: 8px;
    max-width: none;
    text-align: left;
  }

  .hero__title {
    margin-bottom: 16px;
  }

  .hero__title-line {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 1px;
    white-space: normal;
  }

  .hero__title-accent {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: 1.5px;
    white-space: normal;
    margin-bottom: 8px;
  }

  .hero__text {
    font-size: 16px;
    line-height: 1.6;
    max-width: none;
    margin-bottom: 20px;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .hero--accent-dark .hero__title-accent {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .hero--accent-dark .hero__text {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .hero--accent-dark .hero__content {
    max-width: none;
    padding-bottom: 0;
  }

  .hero--contact {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .hero--contact .hero__inner {
    align-items: stretch;
    padding: 28px 24px 0;
  }

  .hero--contact .hero__content {
    max-width: none;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .hero--contact .hero__title {
    margin-bottom: 16px;
  }

  .hero--contact .hero__title-accent {
    font-size: 36px;
    line-height: 1.15;
    margin: 0;
  }

  .hero--contact .hero__text {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .hero--contact .hero__media {
    flex: none;
    width: 100%;
    max-width: 420px;
    height: 360px;
    margin: 0 auto;
    align-self: center;
  }

  .hero__media {
    flex: none;
    width: 100%;
    max-width: 420px;
    height: 360px;
    margin: 0 auto;
    align-self: center;
  }

  .hero__media img {
    object-fit: contain;
    object-position: bottom center;
  }

  .page-hero {
    height: 360px;
  }

  .page-hero__inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .page-hero__title {
    font-size: 40px;
    line-height: 1.15;
    letter-spacing: 1.5px;
    white-space: nowrap;
  }

  .page-hero--long .page-hero__title {
    font-size: 32px;
    letter-spacing: 1px;
    white-space: normal;
  }
}

/* ── 768px only — tablet polish ── */
@media (min-width: 768px) and (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 0;
    overflow: hidden;
  }

  .hero__inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 32px 0;
    max-width: 100%;
  }

  .hero__content {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 12px 0 8px;
    text-align: center;
  }

  .hero__title {
    margin-bottom: 14px;
  }

  .hero__title-line,
  .hero__title-accent,
  .hero__text {
    text-align: center;
  }

  .hero__title-line {
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: 0.8px;
    white-space: normal;
  }

  .hero__title-accent {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: 1.2px;
    white-space: normal;
  }

  .hero__text {
    font-size: 15px;
    line-height: 1.55;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero--accent-dark .hero__title-accent,
  .hero--contact .hero__title-accent {
    font-size: 40px;
    letter-spacing: 1px;
  }

  .hero--accent-dark .hero__text,
  .hero--contact .hero__text {
    font-size: 15px;
    line-height: 1.55;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero--contact .hero__content,
  .hero--accent-dark .hero__content {
    max-width: 560px;
    padding-bottom: 0;
  }

  .hero--contact .hero__inner {
    padding: 24px 32px 0;
  }

  .hero__media,
  .hero--contact .hero__media {
    flex: none;
    width: 100%;
    max-width: 380px;
    height: 340px;
    margin: 0 auto;
    align-self: center;
    transform: translateY(-10px);
  }

  .page-hero {
    height: 320px;
  }

  .page-hero__title {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: 1.2px;
  }

  .page-hero--long .page-hero__title {
    font-size: 28px;
    letter-spacing: 0.8px;
  }
}

/* ── ≤480px ── */
@media (max-width: 480px) {
  .hero__inner {
    padding: calc(var(--syncare-logo-width, 130px) * 0.314 + 28px) 16px 0;
  }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero__actions .cta-btn {
    flex: none;
    width: 100%;
  }

  .hero__title-line {
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  .hero__title-accent {
    font-size: 30px;
    letter-spacing: 0.5px;
  }

  .hero__text {
    font-size: 15px;
    line-height: 1.55;
  }

  .hero__media {
    max-width: 100%;
    height: 300px;
  }

  .page-hero {
    height: 280px;
  }

  .page-hero__inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero__title {
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: 1px;
  }

  .page-hero--long .page-hero__title {
    font-size: 26px;
    letter-spacing: 0.8px;
  }
}

@media (max-width: 374px) {
  .hero__title-line {
    font-size: 18px;
  }

  .hero__title-accent {
    font-size: 26px;
  }

  .page-hero {
    height: 260px;
  }

  .page-hero__title {
    font-size: 28px;
    letter-spacing: 0.8px;
  }

  .page-hero--long .page-hero__title {
    font-size: 22px;
  }
}
