/* ============================================================
   FINAL POLISH — client-ready (mobile + desktop)
   ============================================================ */

/* ---- Images: no harsh zoom/crop ---- */
body.page-home .pd-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: 68% 42%;
  transform: scale(1.06);
  transform-origin: 68% 42%;
  filter: brightness(1.05) saturate(1.08) contrast(1.09);
  transition: transform 14s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-aspect-ratio: 16 / 9) {
  body.page-home .pd-hero-bg img {
    transform: scale(1.12);
    object-position: 72% 40%;
    transform-origin: 72% 40%;
  }
}

@media (min-aspect-ratio: 21 / 9) {
  body.page-home .pd-hero-bg img {
    transform: scale(1.22);
    object-position: 76% 38%;
    transform-origin: 76% 38%;
  }
}

body.page-premium:not(.page-home) .pd-hero-bg img,
body.page-premium .pd-page-hero-bg img,
body.page-premium .page-header-media img {
  transform: none;
  object-position: center 40%;
}

html[data-viewport="mobile"] body.page-home .pd-hero-bg img {
  transform: scale(1.08);
  object-position: center 44%;
  transform-origin: center 44%;
  filter: brightness(0.82) contrast(1.04) saturate(0.94);
}

html[data-viewport="mobile"] body.page-home .pd-hero-bg::after {
  background:
    linear-gradient(
      180deg,
      rgba(8, 8, 8, 0.45) 0%,
      rgba(8, 8, 8, 0.55) 38%,
      rgba(8, 8, 8, 0.88) 72%,
      rgba(8, 8, 8, 0.96) 100%
    );
}

html[data-viewport="mobile"] body.page-home .pd-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.25) 0%,
    rgba(8, 8, 8, 0.62) 42%,
    rgba(8, 8, 8, 0.88) 100%
  );
}

html[data-viewport="mobile"] body.page-home .pd-hero-title,
html[data-viewport="mobile"] body.page-home .pd-hero h1 {
  font-size: clamp(1.35rem, 6.2vw, 1.7rem);
  letter-spacing: 0.015em;
}

html[data-viewport="mobile"] body.page-home .pd-hero-sub {
  white-space: normal;
  line-height: 1.55;
  max-width: 100%;
  padding-left: 1rem;
  margin-bottom: 22px;
}

html[data-viewport="mobile"] body.page-home .pd-hero-title {
  margin-bottom: 0.3rem;
}

html[data-viewport="mobile"] body.page-home .pd-hero-title-line--indent {
  padding-left: 0;
  white-space: normal;
}

html[data-viewport="mobile"] body.page-home .pd-checklist--home {
  flex-direction: column;
  gap: 7px;
  max-width: 100%;
  padding: 18px 18px 16px 22px;
  border-radius: 12px;
}

html[data-viewport="mobile"] body.page-home .pd-checklist--home li {
  align-items: center;
  padding: 10px 12px;
  font-size: 0.8125rem;
}

/* ============================================================
   HERO PULL-UP + SPACING — plan24 (phone)
   ============================================================ */

/* Home hero (phone): pull the content card up so there is no
   big empty/black gap above the title; trim image band + padding.
   (Container padding-top is set below near line ~272 so it wins.) */
html[data-viewport="mobile"] body.page-home .pd-hero-bg,
html[data-viewport="mobile"] body.page-home .pd-hero-overlay {
  height: min(42vh, 300px);
}

html[data-viewport="mobile"] body.page-home .pd-hero {
  padding-bottom: 24px;
}

html[data-viewport="mobile"] body.page-home .pd-hero-bg img {
  filter: brightness(0.9) contrast(1.05) saturate(0.96);
}

/* Trim excessive vertical whitespace across all pages on phones
   (sections were 44px top/bottom → tidier 34px) while keeping
   comfortable breathing room. */
html[data-viewport="mobile"] {
  --pd-section-py: 34px;
}

/* ============================================================
   MOBILE POLISH — plan23 (phone typography & layout fixes)
   ============================================================ */

/* Home stat labels — restore the intentional <br> line breaks.
   mobile-app hides them, which merges adjacent Mongolian words
   (e.g. "хойш"+"тасралтгүй"). */
html[data-viewport="mobile"] body.page-home .pd-stat-label br {
  display: inline;
}

/* Inner-page hero titles (about, certificates, services, guard,
   career): show the <br> break and keep the gold word inline so
   adjacent words never run together (e.g. "Манай"+"хамт олон"). */
html[data-viewport="mobile"] body.page-premium .pd-hero h1 br {
  display: inline;
}

html[data-viewport="mobile"] body.page-premium .pd-hero h1 .gold {
  display: inline;
  margin-bottom: 0;
}

/* About stats — vertical centred tiles on phones so long values
   ("Тогтвортой", "24 цагийн") get the full card width and don't
   clip inside the 2-column grid. */
html[data-viewport="mobile"] body.page-premium .pd-about-stats .pd-stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  min-height: 118px;
  padding: 16px 10px 15px;
}

html[data-viewport="mobile"] body.page-premium .pd-about-stats .pd-stat-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 9px;
}

html[data-viewport="mobile"] body.page-premium .pd-about-stats .pd-stat-value {
  grid-column: auto;
  width: 100%;
  font-size: 1.1875rem;
  margin: 0 0 4px;
  line-height: 1.12;
}

html[data-viewport="mobile"] body.page-premium .pd-about-stats .pd-stat-value--sm {
  font-size: 1rem;
}

html[data-viewport="mobile"] body.page-premium .pd-about-stats .pd-stat-label {
  grid-column: auto;
  width: 100%;
  font-size: 0.6875rem;
  line-height: 1.35;
  max-width: 13em;
  margin-inline: auto;
}

/* Guard gallery — 2 columns on phones to match the About gallery. */
html[data-viewport="mobile"] body.page-premium .pd-guard-gallery-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 767px) {
  body.page-premium .pd-guard-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

html[data-viewport="mobile"] body:not(.page-home) .pd-hero-bg img,
html[data-viewport="mobile"] body.page-premium .page-header-media img,
html[data-viewport="mobile"] body.page-premium .pd-page-hero-bg img {
  transform: none;
  object-position: center 42%;
}

body.page-premium .pd-about-image,
body.page-premium .pd-why-photo,
body.page-premium .pd-gallery-item,
body.page-premium .pd-license-image {
  overflow: hidden;
}

body.page-premium .pd-about-image img,
body.page-premium .pd-why-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

body.page-premium .pd-gallery-item:hover img {
  transform: scale(1.03);
}

/* ---- Mobile header: company tagline ---- */
html[data-viewport="mobile"] {
  --pd-header-h: 62px;
}

html[data-viewport="mobile"] body.page-premium .logo-tagline {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 2px;
  white-space: normal;
  max-width: 10rem;
  opacity: 1;
}

html[data-viewport="mobile"] body.page-premium .logo-name {
  font-size: 0.6875rem;
  letter-spacing: 0.07em;
  line-height: 1.2;
  max-width: 10rem;
}

html[data-viewport="mobile"] body.page-premium .logo-img {
  height: 44px;
  max-width: 50px;
}

html[data-viewport="mobile"] body.page-home .pd-hero > .container {
  padding-top: calc(var(--pd-header-h) + min(20vh, 128px));
}

/* ---- Touch / hover interactions ---- */
@media (hover: hover) {
  body.page-premium a.pd-service-card:hover {
    transform: translateY(-4px);
  }

  body.page-premium .pd-trust-card:hover {
    transform: translateY(-3px);
  }

  body.page-premium .pd-btn:hover,
  body.page-premium .btn-primary:hover {
    filter: brightness(1.06);
  }
}

body.page-premium a.pd-service-card:active,
body.page-premium .pd-trust-card:active,
body.page-premium .pd-partner-item:active {
  transform: scale(0.98);
}

html[data-viewport="mobile"] body.page-premium a.pd-service-card:active {
  transform: scale(0.985);
  border-color: rgba(240, 200, 0, 0.4);
}

/* ---- Section rhythm ---- */
body.page-premium .pd-section {
  scroll-margin-top: calc(var(--pd-header-h) + 16px);
}

body.page-premium .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Softer hero overlays (readability) ---- */
body.page-premium:not(.page-home) .pd-hero-overlay {
  background: linear-gradient(
    105deg,
    rgba(8, 8, 8, 0.9) 0%,
    rgba(8, 8, 8, 0.55) 42%,
    rgba(8, 8, 8, 0.2) 72%,
    rgba(8, 8, 8, 0.65) 100%
  );
}

/* Home hero: dark text side, clearer image side */
body.page-home .pd-hero {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  min-height: 100dvh;
}

body.page-home .pd-hero-bg::after {
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.95) 0%,
      rgba(8, 8, 8, 0.8) 22%,
      rgba(8, 8, 8, 0.46) 38%,
      rgba(8, 8, 8, 0.14) 52%,
      transparent 64%
    ),
    linear-gradient(
      180deg,
      rgba(8, 8, 8, 0.32) 0%,
      transparent 15%,
      transparent 82%,
      rgba(8, 8, 8, 0.55) 100%
    );
}

body.page-home .pd-hero-overlay {
  background: linear-gradient(
    98deg,
    rgba(8, 8, 8, 0.58) 0%,
    rgba(8, 8, 8, 0.34) 26%,
    rgba(8, 8, 8, 0.1) 44%,
    transparent 58%,
    transparent 100%
  );
}

/* Home hero typography — text may extend over image */
body.page-home .pd-hero-inner {
  max-width: min(580px, 100%);
  width: 100%;
}

body.page-home .pd-hero-title {
  font-family: var(--pd-font);
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
  color: var(--pd-white);
}

body.page-home .pd-hero-title-line {
  display: block;
}

body.page-home .pd-hero-title-line--gold {
  color: var(--pd-gold);
  text-shadow: 0 2px 28px rgba(240, 200, 0, 0.2);
}

body.page-home .pd-hero-title-line--indent {
  padding-left: clamp(0.85rem, 2.6vw, 1.85rem);
  margin-top: 0.1em;
  white-space: nowrap;
}

body.page-home .pd-hero-sub {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(0.9375rem, 1.4vw, 1.0625rem);
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 26px;
  padding-left: clamp(0.85rem, 2.6vw, 1.85rem);
  max-width: none;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: 0.015em;
  color: rgba(255, 255, 255, 0.76);
}

/* Home hero checklist — premium trust box */
body.page-home .pd-checklist--home {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(540px, 100%);
  margin: 0 0 32px;
  padding: 22px 22px 20px 26px;
  list-style: none;
  border-radius: 14px;
  background:
    linear-gradient(
      155deg,
      rgba(24, 24, 24, 0.94) 0%,
      rgba(10, 10, 10, 0.9) 52%,
      rgba(16, 16, 16, 0.92) 100%
    );
  border: 1px solid rgba(240, 200, 0, 0.2);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 22px 54px rgba(0, 0, 0, 0.52),
    0 0 48px rgba(240, 200, 0, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

body.page-home .pd-checklist--home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--pd-gold) 0%, rgba(240, 200, 0, 0.28) 100%);
  border-radius: 14px 0 0 14px;
  pointer-events: none;
}

body.page-home .pd-checklist--home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(240, 200, 0, 0.42), transparent);
  pointer-events: none;
}

body.page-home .pd-checklist--home li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

body.page-home .pd-checklist--home li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

body.page-home .pd-checklist--home li:first-child {
  padding-top: 0;
}

body.page-home .pd-checklist--home .pd-check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-top: 0;
  background: linear-gradient(145deg, #f5d020 0%, #e0b000 100%);
  box-shadow:
    0 0 14px rgba(240, 200, 0, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.28);
}

body.page-home .pd-checklist--home .pd-check-icon svg {
  width: 13px;
  height: 13px;
}

body.page-home .pd-checklist--home .pd-checklist-span {
  grid-column: auto;
}

@media (hover: hover) {
  body.page-home .pd-checklist--home li:hover {
    color: var(--pd-gold);
  }
}

/* Tablet & small desktop — standard text column width */
html[data-viewport="tablet"] body.page-home .pd-hero-inner {
  max-width: min(560px, 100%);
}

html[data-viewport="tablet"] body.page-home .pd-checklist--home {
  max-width: min(520px, 100%);
  gap: 7px;
}

html[data-viewport="tablet"] body.page-home .pd-hero-bg::after {
  background:
    linear-gradient(
      90deg,
      rgba(8, 8, 8, 0.97) 0%,
      rgba(8, 8, 8, 0.88) 24%,
      rgba(8, 8, 8, 0.58) 42%,
      rgba(8, 8, 8, 0.2) 58%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(8, 8, 8, 0.48) 0%,
      transparent 14%,
      transparent 80%,
      rgba(8, 8, 8, 0.7) 100%
    );
}

html[data-viewport="tablet"] body.page-home .pd-hero-overlay {
  background: linear-gradient(
    96deg,
    rgba(8, 8, 8, 0.72) 0%,
    rgba(8, 8, 8, 0.52) 34%,
    rgba(8, 8, 8, 0.16) 52%,
    rgba(8, 8, 8, 0.04) 64%,
    rgba(8, 8, 8, 0.22) 100%
  );
}

html[data-viewport="mobile"] body.page-premium .pd-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(8, 8, 8, 0.35) 0%,
    rgba(8, 8, 8, 0.72) 45%,
    rgba(8, 8, 8, 0.92) 100%
  );
}

html[data-viewport="mobile"] body.page-premium .pd-hero-inner {
  max-width: 100%;
}

/* Stats grids — 3 cards centered (home, guard, etc.) */
body.page-premium .pd-stats-grid,
body.page-premium .pd-guard-stats .pd-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  width: 100%;
  max-width: min(980px, 100%);
  margin-inline: auto;
  justify-items: stretch;
}

body.page-premium .pd-about-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: min(1080px, 100%);
  margin-inline: auto;
}

body.page-premium .pd-stat-label {
  line-height: 1.45;
}

body.page-premium .pd-trust-bar {
  width: 100%;
  max-width: var(--pd-max);
  margin-inline: auto;
}

body.page-premium .pd-services-more {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 28px;
  text-align: center;
}

body.page-premium .pd-services-more-link {
  display: inline-block;
}

html[data-viewport="tablet"] body.page-premium .pd-stats-grid,
html[data-viewport="tablet"] body.page-premium .pd-guard-stats .pd-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: min(920px, 94vw);
  margin-inline: auto;
}

html[data-viewport="mobile"] body.page-premium .pd-stats-grid,
html[data-viewport="mobile"] body.page-premium .pd-guard-stats .pd-stats-grid {
  grid-template-columns: 1fr;
  max-width: min(360px, 92vw);
  margin-inline: auto;
}

@media (max-width: 900px) {
  body.page-premium .pd-stats-grid,
  body.page-premium .pd-guard-stats .pd-stats-grid {
    grid-template-columns: 1fr;
    max-width: min(360px, 92vw);
    margin-inline: auto;
  }

  body.page-premium .pd-about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }
}

@media (min-width: 901px) and (max-width: 1100px) {
  body.page-premium .pd-about-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Wide desktop — home hero & header: left band, no center squeeze (1180px+) */
@media (min-width: 1180px) {
  body.page-home {
    --pd-home-edge: clamp(36px, 3.2vw, 56px);
    --pd-home-text: clamp(540px, 44vw, 780px);
  }

  body.page-home .site-header .header-inner.container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: var(--pd-home-edge);
    padding-right: clamp(20px, 2.5vw, 40px);
    grid-template-columns: auto 1fr auto;
    column-gap: clamp(16px, 2vw, 28px);
  }

  body.page-home .logo {
    flex-shrink: 0;
    min-width: max-content;
    gap: 14px;
  }

  body.page-home .logo-brand {
    min-width: max-content;
    flex-shrink: 0;
  }

  body.page-home .logo-name,
  body.page-home .logo-tagline {
    white-space: nowrap;
  }

  body.page-home .pd-hero {
    align-items: center;
    padding-top: calc(var(--pd-header-h) + 28px);
    padding-bottom: 48px;
  }

  body.page-home .pd-hero > .container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding-left: var(--pd-home-edge);
    padding-right: clamp(20px, 2.5vw, 40px);
    display: block;
  }

  body.page-home .pd-hero-inner {
    max-width: var(--pd-home-text);
    width: 100%;
    margin: 0;
    padding-right: 0;
  }

  body.page-home .pd-hero-title,
  body.page-home .pd-hero h1 {
    font-size: clamp(1.9rem, 2.25vw, 2.375rem);
    line-height: 1.1;
    letter-spacing: 0.028em;
    margin-bottom: 0.35rem;
  }

  body.page-home .pd-hero-title-line--indent {
    padding-left: clamp(0.75rem, 1.8vw, 1.5rem);
  }

  body.page-home .pd-hero-sub {
    font-size: clamp(0.9375rem, 1vw, 1.0625rem);
    line-height: 1.5;
    margin-bottom: 18px;
  }

  body.page-home .pd-checklist--home {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
    padding: 16px 18px 14px 22px;
    gap: 4px;
  }

  body.page-home .pd-checklist--home li {
    padding: 7px 0;
    font-size: 0.9375rem;
  }

  body.page-home .pd-hero-actions {
    gap: 10px;
  }

  body.page-home .pd-hero-bg img {
    object-position: 68% 42%;
    transform: scale(1.08);
    transform-origin: 68% 42%;
  }
}

@media (min-width: 1600px) {
  body.page-home {
    --pd-home-edge: clamp(44px, 3.8vw, 64px);
    --pd-home-text: clamp(580px, 40vw, 820px);
  }

  body.page-home .pd-hero-title,
  body.page-home .pd-hero h1 {
    font-size: clamp(2.25rem, 2vw, 2.375rem);
  }
}

/* Header logo — larger icon & readable brand text */
@media (min-width: 768px) {
  body.page-premium {
    --pd-header-h: 92px;
  }

  body.page-premium .logo-img {
    height: clamp(70px, 7.5vh, 88px);
    max-width: 98px;
    filter: drop-shadow(0 0 14px rgba(240, 200, 0, 0.38));
  }

  body.page-premium .logo-name {
    font-size: clamp(0.9375rem, 1.05vw, 1.125rem);
    font-weight: 800;
    letter-spacing: 0.11em;
    line-height: 1.2;
  }

  body.page-premium .logo-tagline {
    color: #ffffff;
    font-size: clamp(0.6875rem, 0.82vw, 0.8125rem);
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    opacity: 1;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  }
}

/* Footer brand — compact, stays inside column */
body.page-premium .pd-footer-brand-col {
  min-width: 0;
}

body.page-premium .pd-footer-brand {
  gap: 14px;
  align-items: center;
  max-width: 100%;
  min-width: 0;
}

body.page-premium .pd-footer-brand img {
  width: auto;
  height: clamp(72px, 6.2vw, 84px);
  max-width: 74px;
  aspect-ratio: 48 / 56;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 14px rgba(240, 200, 0, 0.36));
}

body.page-premium .pd-footer-brand-text {
  gap: 4px;
  min-width: 0;
  flex: 1;
}

body.page-premium .pd-footer-name {
  font-size: clamp(0.8125rem, 0.92vw, 0.9375rem);
  font-weight: 800;
  letter-spacing: 0.075em;
  line-height: 1.25;
  white-space: normal;
}

body.page-premium .pd-footer-tagline {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.5625rem, 0.64vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.4;
  white-space: normal;
  opacity: 1;
  max-width: 17em;
}

body.page-premium .pd-footer-desc {
  max-width: 300px;
  margin-top: 14px;
}

html[data-viewport="mobile"] body.page-premium .pd-footer-brand img {
  height: clamp(64px, 18vw, 76px);
  max-width: 66px;
}

html[data-viewport="tablet"] body.page-premium .pd-footer-brand img {
  height: clamp(68px, 9vw, 78px);
  max-width: 68px;
}

/* ============================================================
   GLOBAL RESPONSIVE — all screens & aspect ratios
   ============================================================ */

html {
  overflow-x: clip;
}

body.page-premium {
  overflow-x: clip;
  min-width: 0;
}

body.page-premium main,
body.page-premium .container {
  min-width: 0;
}

body.page-premium img:not(.logo-img):not(.pd-hero-bg img):not(.pd-page-hero-bg img):not(.page-header-media img) {
  max-width: 100%;
}

body.page-premium .pd-about-text p,
body.page-premium .pd-guard-intro p,
body.page-premium .pd-trust-card p,
body.page-premium .pd-footer-desc {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

body.page-premium .logo-img,
body.page-premium .pd-footer-brand img {
  width: auto;
  object-fit: contain;
}

/* Hero text — no horizontal overflow on medium / ultrawide */
@media (max-width: 1500px) {
  body.page-home .pd-hero-sub {
    white-space: normal;
  }
}

body.page-premium:not(.page-home) .pd-hero-bg img,
body.page-premium .pd-page-hero-bg img,
body.page-premium .page-header-media img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}

@media (min-aspect-ratio: 21 / 9) {
  body.page-premium:not(.page-home) .pd-hero-bg img,
  body.page-premium .pd-page-hero-bg img {
    object-position: center 40%;
    transform: scale(1.06);
    transform-origin: center 40%;
  }
}

/* Footer — fluid columns */
@media (max-width: 1100px) {
  .pd-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pd-footer-grid {
    grid-template-columns: 1fr;
  }

  .pd-footer-brand {
    flex-wrap: wrap;
  }
}

/* Header — tight desktop nav */
@media (min-width: 1180px) and (max-width: 1360px) {
  body.page-premium .main-nav a {
    padding-left: 9px;
    padding-right: 9px;
    letter-spacing: 0.04em;
  }

  body.page-premium .logo-name {
    font-size: 0.8125rem;
  }
}

/* Safe area (notch / rounded corners) */
body.page-premium .site-header .header-inner,
body.page-premium .site-footer > .container,
body.page-home .pd-hero > .container {
  padding-left: max(clamp(20px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 4vw, 40px), env(safe-area-inset-right, 0px));
}

html[data-viewport="tablet"] body.page-premium .logo-tagline,
html[data-viewport="tablet"] body.page-premium .pd-footer-tagline {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* ============================================================
   ABOUT PAGE — intro copy typography polish (about.html only)
   Scoped to body.page-premium .pd-about-intro
   ============================================================ */

/* Generous separation between the stats grid and the intro copy */
body.page-premium .pd-about-intro-wrap {
  gap: clamp(44px, 5vw, 72px);
}

/* Reading column — centered as a block, copy left-aligned for a clean measure */
body.page-premium .pd-about-intro-text {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
  padding: 2px 10px 4px 32px;
  text-align: left;
  border-top: none;
}

/* Repurpose the old centered top tick into a soft vertical gold accent rule */
body.page-premium .pd-about-intro-text::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 6px;
  left: 0;
  transform: none;
  width: 2px;
  height: auto;
  background: linear-gradient(
    180deg,
    var(--pd-gold) 0%,
    rgba(240, 200, 0, 0.5) 45%,
    rgba(240, 200, 0, 0) 100%
  );
  border-radius: 2px;
}

/* Eyebrow — refined uppercase gold kicker with a short underline tick */
body.page-premium .pd-about-intro-text .pd-eyebrow {
  position: relative;
  margin-bottom: 22px;
  padding-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--pd-gold);
}

body.page-premium .pd-about-intro-text .pd-eyebrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--pd-gold);
  border-radius: 2px;
}

/* Shared paragraph rhythm — comfortable leading, softened body colour */
body.page-premium .pd-about-intro-text p {
  margin: 0 0 1.15em;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.975rem, 0.93rem + 0.28vw, 1.0625rem);
  line-height: 1.85;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}

/* Lead paragraph — larger, brighter, medium weight to anchor the eye */
body.page-premium .pd-about-intro-text p.pd-about-lead {
  margin-bottom: 1.35em;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  font-weight: 500;
  line-height: 1.75;
  letter-spacing: 0.002em;
}

/* Keep the closing paragraph on the same rhythm (was smaller / dimmer) */
body.page-premium .pd-about-intro-text p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(0.975rem, 0.93rem + 0.28vw, 1.0625rem);
}

/* Tablet — keep the reading column comfortable */
html[data-viewport="tablet"] body.page-premium .pd-about-intro-text {
  padding-left: 28px;
}

/* Mobile — tighten the gutter so copy stays readable, never cramped */
html[data-viewport="mobile"] body.page-premium .pd-about-intro-text {
  max-width: 100%;
  padding: 2px 2px 2px 18px;
}

html[data-viewport="mobile"] body.page-premium .pd-about-intro-text .pd-eyebrow {
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}

html[data-viewport="mobile"] body.page-premium .pd-about-intro-text p {
  line-height: 1.8;
}

/* Narrow-window fallback if the viewport attribute is unavailable */
@media (max-width: 767px) {
  body.page-premium .pd-about-intro-text {
    max-width: 100%;
    padding: 2px 2px 2px 18px;
  }
}
