/* DABY Business English — surgical visual patch
   Scoped to the Business English detail page. Preserves the existing design system. */
.detail-hero-copy {
  max-width: 760px;
}

.detail-hero-copy > h1 {
  max-width: 15ch;
  text-wrap: balance;
  line-height: .98;
  letter-spacing: -.045em;
}

.detail-hero-copy > p:not(.eyebrow) {
  max-width: 60ch;
  color: rgba(248, 244, 235, .78);
  line-height: 1.72;
}

.detail-hero-copy > .button-primary {
  min-height: 52px;
  margin-top: .35rem;
}

.detail-hero-card {
  align-self: end;
  border-color: rgba(214, 168, 74, .34);
  background: linear-gradient(145deg, rgba(214, 168, 74, .12), rgba(7, 17, 31, .78));
}

.detail-section {
  scroll-margin-top: 6rem;
}

.detail-section > div > p strong {
  display: block;
  margin-top: 1.15rem;
  color: #f8f4eb;
  font-size: .86em;
  letter-spacing: .01em;
}

.detail-section > div > p strong:first-child {
  margin-top: 0;
}

.detail-contact {
  background:
    radial-gradient(circle at 82% 18%, rgba(50, 214, 255, .08), transparent 30%),
    linear-gradient(145deg, #0a1929, #07111f);
}

@media (max-width: 820px) {
  .detail-hero-copy > h1 {
    max-width: 12ch;
    font-size: clamp(2.9rem, 12.5vw, 4.5rem);
    line-height: 1.02;
  }

  .detail-hero-copy > p:not(.eyebrow) {
    font-size: .98rem;
    line-height: 1.68;
  }

  .detail-hero-copy > .button-primary {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .detail-hero-copy > h1 {
    max-width: none;
    font-size: clamp(2.55rem, 12.2vw, 3.35rem);
    letter-spacing: -.04em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .detail-section {
    scroll-behavior: auto;
  }
}

/* DABY Business English — header and hero layout restoration */
.site-shell {
  position: relative;
}

.site-header {
  position: absolute;
  z-index: 50;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  box-sizing: border-box;
  width: 100%;
  min-height: 82px;
  padding: 16px max(38px, calc((100vw - 1264px) / 2));
  border-bottom: 1px solid rgba(248, 244, 235, .10);
  background: rgba(7, 17, 31, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: #f8f4eb;
  text-decoration: none;
}

.site-header .brand-mark {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-header .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #f8f4eb;
  line-height: 1;
}

.site-header .brand-copy strong {
  font: 600 20px/1 DM Serif Display, Georgia, serif;
}

.site-header .brand-copy small {
  color: #d6a84a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .20em;
}

.site-header .site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 29px);
  margin-left: auto;
}

.site-header .site-nav > a:not(.nav-cta) {
  color: rgba(248, 244, 235, .82);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: color .18s ease;
}

.site-header .site-nav > a:not(.nav-cta):hover {
  color: #d6a84a;
}

.site-header .site-nav > .nav-cta {
  flex: 0 0 auto;
  white-space: nowrap;
  text-decoration: none;
}

.detail-hero {
  padding: 167px max(38px, calc((100vw - 1264px) / 2)) 94px;
}

.detail-hero-copy {
  width: 100%;
  max-width: 760px;
  text-align: left;
}

.detail-hero-copy > h1,
.detail-hero-copy > p {
  text-align: left;
}

@media (max-width: 820px) {
  .site-header {
    min-height: 70px;
    padding: 12px 20px;
    gap: 12px;
  }

  .site-header .brand-mark {
    width: 34px;
    height: 34px;
  }

  .site-header .brand-copy strong {
    font-size: 18px;
  }

  .site-header .site-nav {
    gap: 0;
  }

  .site-header .site-nav > a:not(.nav-cta) {
    display: none;
  }

  .site-header .site-nav > .nav-cta {
    min-height: 42px;
    padding: 9px 15px;
    font-size: 11px;
  }

  .detail-hero {
    padding: 134px 20px 81px;
  }

  .detail-hero-copy {
    max-width: none;
  }
}

@media (max-width: 380px) {
  .site-header {
    padding-right: 14px;
    padding-left: 14px;
  }

  .site-header .brand {
    gap: 7px;
  }

  .site-header .brand-copy small {
    font-size: 6px;
  }

  .site-header .site-nav > .nav-cta {
    padding: 8px 11px;
    font-size: 10px;
  }
}

/* DABY Business English — final title width and header CTA alignment */
.detail-hero-copy {
  width: 100%;
  max-width: none;
}

.detail-hero-copy > h1 {
  width: 100%;
  max-width: none;
  text-wrap: pretty;
}

.site-header .site-nav > .nav-cta {
  min-height: 44px;
  padding: .72rem 1.08rem;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 820px) {
  .detail-hero-copy {
    max-width: none;
  }

  .detail-hero-copy > h1 {
    max-width: none;
  }

  .site-header .site-nav > .nav-cta {
    min-height: 44px;
    padding: .72rem 1.08rem;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .site-header .site-nav > .nav-cta {
    padding: .65rem .85rem;
    font-size: 11px;
  }
}

/* Business English — remove lateral hero margins */
.detail-hero {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.detail-hero-copy {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.detail-hero-copy > h1 {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Business English — restore safe lateral spacing */
.detail-hero {
  padding-left: clamp(20px, 5vw, 64px) !important;
  padding-right: clamp(20px, 5vw, 64px) !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.detail-hero-copy,
.detail-hero-copy > h1 {
  box-sizing: border-box !important;
  min-width: 0 !important;
  overflow: visible !important;
}

.detail-hero-copy > h1 {
  width: 100% !important;
  max-width: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* Business English — centre the hero headline */
.detail-hero-copy {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.detail-hero-copy > h1 {
  width: 100% !important;
  max-width: 1100px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
  text-wrap: balance !important;
}

/* FINAL FIX — centre Business English hero across the page */
.detail-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.detail-hero-copy {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}

.detail-hero-copy > h1 {
  width: 100% !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  text-align: center !important;
}
