/* Section headings share a centered axis when they introduce a whole group. */
body .hc-center-head[class] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: start;
  gap: 13px;
  margin: 0 auto clamp(27px, 3.45vw, 44px);
  text-align: center;
}
body .hc-center-head[class] > div:not(.eyebrow) { width: 100%; }
body .hc-center-head[class] .eyebrow { margin: 0 0 13px; }
body .hc-center-head[class] h2 {
  max-width: 810px;
  margin: 0 auto;
  text-wrap: balance;
}
body .hc-center-head[class] > p {
  width: min(100%, 660px);
  max-width: none;
  margin: 0 auto;
  font-size: clamp(14px, 1.25vw, 16px);
  line-height: 1.7;
  text-align: center;
}

body :is(.eyebrow, .eyebrow[class]) {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  border: 1px solid #dce8d8;
  border-radius: 8px;
  padding: 6px 10px;
  background: #edf4e9;
  color: #28533f;
  font-size: clamp(11.5px, 1vw, 13px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .085em;
  text-transform: uppercase;
  vertical-align: top;
}
body :is(.hc-halal-benefits, .hc-commitment, .hc-achievement-panel, .founder-panel, .dark-hero, .detail-dark, .detail-start, .supervisor-copy, .hs-intake, .hs-estimator, .hs-final-card) .eyebrow {
  border-color: #d8edc748;
  background: #e6f7dc16;
  color: #e1f3ce;
}

header .brand,
.footer-brand .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
header .brand-logo,
.footer-brand .brand-logo {
  display: block;
  width: 188px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
header .brand-tagline,
.footer-brand .brand-tagline {
  display: block;
  margin: 0;
  color: #254f3f;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: .02em;
  white-space: nowrap;
}
.footer-brand .brand-logo { width: 205px; }
.footer-brand .brand-tagline { font-size: 11px; }

.language-switch :is(button, a) {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  min-height: 35px;
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
}
.language-switch a[aria-current="page"] { background: var(--ink); color: white; }

:root { --hc-cjk: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", "Noto Sans SC", "WenQuanYi Zen Hei", sans-serif; }
:lang(zh-CN) body,
.language-switch :lang(zh-CN) { font-family: var(--hc-cjk); }
:lang(zh-CN) :is(h1, h2, h3, .eyebrow, .brand-tagline) {
  letter-spacing: normal;
  line-break: strict;
}
:lang(zh-CN) :is(h1, h2) { text-wrap: balance; }
:lang(zh-CN) h1 { line-height: 1.16; }

@media (min-width: 1181px) {
  header .nav { gap: 15px; }
  header .links { gap: 13px; }
}
@media (max-width: 680px) {
  header .brand-logo { width: clamp(126px, 39vw, 165px); }
  header .brand-tagline { font-size: clamp(8px, 2.4vw, 10px); letter-spacing: 0; }
  header .header-tools { gap: 6px; }
  header .nav { gap: 8px; }
  .language-switch :is(button, a) { min-width: 28px; padding-inline: 5px; }
}
@media (max-width: 370px) {
  header .nav { width: calc(100% - 24px); }
  header .menu { padding-inline: 9px; }
  header .language-switch { gap: 1px; }
}

.hc-office-brand .hc-identity-logo,
.hc-profile-brand .hc-identity-logo { height: auto; object-fit: contain; }

@media (max-width: 580px) {
  body .hc-center-head[class] h2 { font-size: clamp(27px, 7.7vw, 34px); }
}

/* Align the requirements heading with the supporting copy in its column. */
.hc-requirements-heading { margin-bottom: 22px; text-align: start; }
.hc-requirements-heading .eyebrow { margin: 0 0 13px; }
.hc-requirements-heading #hc-requirements-title { margin: 0; }

.hc-center-head #hc-benefits-title,
.hc-center-head #care-results-title { max-width: 100%; }

#integrasi-bisnis .summary-code { color: #151515; }

/* Scale the two-line hero with its own column, including on tablets. */
#mulai-konsultasi .hero-copy {
  min-width: 0;
  container-type: inline-size;
}
#hc-home-hero-title {
  font-size: clamp(28px, 5vw, 68px);
  font-size: clamp(28px, 10.1cqi, 68px);
  letter-spacing: -.05em;
}
:lang(zh-CN) #hc-home-hero-title { letter-spacing: normal; }
@media (min-width: 1024px) {
  #hc-home-hero-title { white-space: nowrap; }
}

@media (max-width: 450px) {
  #integrasi-bisnis .section-head h2 { font-size: clamp(25px, 6.7vw, 30px); }
}

.language-switch a[data-language] {
  min-width: 34px;
  min-height: 36px;
  padding: 4px 5px;
}
.language-switch .language-flag {
  display: block;
  width: 23px;
  height: 16px;
  object-fit: contain;
  border-radius: 2px;
  filter: drop-shadow(0 0 1px #16241b55);
}
@media (max-width: 680px) {
  .language-switch a[data-language] {
    min-width: 29px;
    padding-inline: 3px;
  }
  .language-switch .language-flag { width: 22px; height: 15px; }
}

/* Dark green and lime sampled from the Halalcare wordmark. */
:root {
  --hc-logo-dark: #094237;
  --hc-logo-light: #c0e760;
}
.hc-commitment-head.hc-center-head h3 {
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
}
@media (max-width: 580px) {
  .float[data-placement="floating"] {
    gap: 7px;
    width: auto;
    height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 11px;
  }
  .float[data-placement="floating"] .wa-icon {
    width: 18px;
    height: 18px;
  }
}

/* The diagonal split echoes the HACCP hero using the two wordmark greens. */
#mulai-konsultasi.hero {
  background: linear-gradient(
    118deg,
    color-mix(in srgb, var(--hc-logo-light) 13%, #fff) 0 60%,
    color-mix(in srgb, var(--hc-logo-dark) 10%, #fff) 60% 100%
  );
}
#mulai-konsultasi.hero h1 em {
  color: var(--hc-logo-dark);
  background: var(--hc-logo-light);
}
@media (max-width: 680px) {
  #mulai-konsultasi.hero {
    background: linear-gradient(
      155deg,
      color-mix(in srgb, var(--hc-logo-light) 13%, #fff) 0 61%,
      color-mix(in srgb, var(--hc-logo-dark) 10%, #fff) 61% 100%
    );
  }
}

.footer-brand .hc-footer-brand-link {
  display: block;
  width: min(100%, 310px);
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.hc-footer-brand-image {
  display: block;
  width: 100%;
  height: auto;
}

.hc-footer-brand-link:focus-visible {
  outline: 2px solid #c0e760;
  outline-offset: 4px;
  border-radius: 10px;
}

/* Brand tagline (2026-11-18): the longer tagline wraps under the logo on narrow screens */
@media (max-width: 680px) {
  header .brand { min-width: 0; }
  header .brand-tagline { white-space: normal; max-width: 172px; line-height: 1.3; }
}
