/* Premium refinement for the Why K9 page.
   Keeps the existing content order while removing the boxed, busy feel. */

:root {
  --why-bg: #050505;
  --why-ink: #f7f7f4;
  --why-muted: rgba(255, 255, 255, 0.72);
}

body {
  background: var(--why-bg);
}

.why-hero {
  background-color: #050505 !important;
  border-bottom: 0 !important;
}

.heritage-section,
.principles-section,
.experience-section,
.origin-section,
.partners-section {
  background: var(--why-bg) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-block: clamp(3.5rem, 5.5vw, 5.5rem) !important;
}

.heritage-inner,
.partners-inner {
  gap: clamp(2.75rem, 6vw, 6rem) !important;
  align-items: center !important;
}

.heritage-media,
.partners-media,
.heritage-card,
.partners-card,
.principle-card,
.experience-item,
.why-card,
.principles-grid article,
.experience-grid article {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.principle-card,
.experience-item,
.why-card,
.principles-grid article,
.experience-grid article {
  padding: 0 !important;
}

.heritage-media,
.partners-media,
.heritage-card,
.partners-card {
  overflow: hidden;
}

.heritage-media img,
.partners-media img,
.heritage-card img,
.partners-card img {
  border-radius: 0 !important;
  filter: contrast(1.04) saturate(1.03);
}

.heritage-media img {
  object-position: 48% 62%;
}

.partners-media img {
  transform: scaleX(-1);
  object-position: center center;
}

.heritage-copy,
.partners-copy,
.origin-copy {
  max-width: 760px;
}

.partners-copy {
  padding-left: 0 !important;
}

/* Bring the two editorial photos toward a shared visual scale. The heritage
   heading spans both copy columns so it wraps as a headline, not a sidebar. */
.heritage-section {
  grid-template-columns: minmax(320px, 1.2fr) repeat(2, minmax(0, 1fr)) !important;
  column-gap: clamp(2rem, 4vw, 4.5rem) !important;
  row-gap: clamp(1.75rem, 3vw, 2.75rem) !important;
  align-items: start;
  padding-inline: clamp(1.5rem, 5vw, 5rem) !important;
}

.heritage-section > .heritage-media {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: stretch;
  min-height: clamp(30rem, 44vw, 39rem);
  margin: 0 !important;
}

.heritage-section > div:nth-child(2) {
  grid-column: 2 / -1;
  grid-row: 1;
  max-width: 34rem;
}

.heritage-section > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.heritage-section > div:nth-child(4) {
  grid-column: 3;
  grid-row: 2;
}

.heritage-section h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 4vw, 4.25rem) !important;
  line-height: 0.98 !important;
}

.partners-section {
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.55fr) !important;
  column-gap: clamp(3rem, 5vw, 5rem) !important;
  align-items: center;
  padding-inline: clamp(1.5rem, 5vw, 5rem) !important;
}

.origin-copy {
  margin-inline: auto;
  text-align: left;
}

.origin-copy p + p {
  margin-top: 1rem;
}

.heritage-copy h2,
.principles-section h2,
.experience-section h2,
.origin-section h2,
.partners-section h2,
.principle-card h3,
.experience-item h3,
.why-card h3,
.principles-grid article h3,
.experience-grid article h3 {
  color: var(--why-ink) !important;
  letter-spacing: 0.01em;
}

.heritage-copy p,
.partners-copy p,
.origin-copy p,
.principle-card p,
.experience-item p,
.why-card p,
.principles-grid article p,
.experience-grid article p {
  color: var(--why-muted) !important;
  line-height: 1.78;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
}

.principles-grid,
.experience-grid {
  gap: clamp(2rem, 4vw, 4rem) !important;
}

.red-rule {
  display: none !important;
}

/* Keep the editorial sections open and organic instead of separating them
   with rigid rules inherited from the original page styles. */
.principles-section article,
.principles-section article:last-child {
  border: 0 !important;
}

.experience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(2rem, 4vw, 4.5rem) !important;
  background: transparent !important;
}

.experience-grid article {
  position: relative;
  min-width: 0;
  padding: 0 !important;
}

.experience-grid article::before {
  display: none;
}

.experience-grid h3 {
  margin-bottom: 0.85rem !important;
  color: var(--why-ink) !important;
  font-size: clamp(1.8rem, 2.5vw, 2.35rem) !important;
  line-height: 1.04 !important;
}

.experience-grid p {
  font-family: Georgia, "Times New Roman", serif !important;
}

/* Maintain one editorial voice from Experience through the end of the page. */
.experience-section h2,
.experience-grid h3,
.experience-grid p,
.origin-section h2,
.origin-copy p,
.partners-copy h2,
.partners-copy p {
  font-family: Georgia, "Times New Roman", serif !important;
}

.experience-section h2,
.experience-grid h3,
.origin-section h2,
.partners-copy h2 {
  letter-spacing: -0.02em !important;
  text-transform: none;
}

@media (max-width: 760px) {
  .heritage-section,
  .principles-section,
  .experience-section,
  .origin-section,
  .partners-section {
    padding-block: 2.75rem !important;
  }

  .heritage-copy,
  .partners-copy,
  .origin-copy {
    max-width: none;
  }

  .partners-copy {
    padding: 0 !important;
  }

  .heritage-section,
  .partners-section {
    grid-template-columns: 1fr !important;
  }

  .partners-section {
    gap: 2rem !important;
    padding-inline: clamp(1.5rem, 6vw, 2.5rem) !important;
  }

  .heritage-section > .heritage-media,
  .heritage-section > div:nth-child(2),
  .heritage-section > div:nth-child(3),
  .heritage-section > div:nth-child(4) {
    grid-column: 1;
    grid-row: auto;
  }

  .heritage-section > .heritage-media {
    min-height: clamp(18rem, 72vw, 26rem);
  }

  .heritage-section h2 {
    max-width: 14ch;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem !important;
  }

  .principles-section article {
    border-bottom: 0 !important;
  }
}

/* Final pass: remove the older "boxed section" feel across the page. */
main section {
  background: var(--why-bg) !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
}

main :is(
  .card,
  .tile,
  .panel,
  .box,
  .feature-card,
  .info-card,
  .proof-card,
  .comparison-card,
  .content-card,
  .stat-card,
  .approach-card,
  .service-card,
  .faq-card,
  .feature,
  .proof-item,
  .reason-card
) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-inline: 0 !important;
}

main :is(h2, h3) {
  text-wrap: balance;
}

main :is(.eyebrow, .kicker, .section-label) {
  color: var(--brand-red, #e11d2e) !important;
  letter-spacing: 0.13em;
}

main :is(ul, ol) {
  padding-left: 1.15rem;
}

main li {
  color: var(--why-muted);
  line-height: 1.65;
  margin-block: 0.55rem;
}

main hr,
main .divider,
main .section-divider {
  display: none !important;
}

main :is(.cta-section, .cta-band, .cta-panel) {
  background: #050505 !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Why K9 refinement: match the quieter premium service-page pattern. */
.why-hero-media {
  width: 90%;
}

.why-hero-media img {
  transform: scaleX(-1) !important;
  transform-origin: center;
  object-position: center 46%;
}

.why-hero .hero-brush-line {
  display: block;
}

main section {
  padding-block: clamp(3.5rem, 5.5vw, 5.5rem);
}

main :is(
  .heritage-section,
  .principles-section,
  .experience-section,
  .origin-section,
  .partners-section
) {
  background: #050505 !important;
}

main :is(
  .heritage-copy,
  .partners-copy,
  .origin-copy,
  .principle-card,
  .experience-item,
  .why-card,
  .principles-grid article,
  .experience-grid article,
  .content-card,
  .why-panel,
  .proof-item,
  .process-card,
  .value-card
) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-inline: 0 !important;
}

main :is(
  .principles-grid,
  .experience-grid,
  .why-grid,
  .proof-grid,
  .process-grid
) {
  gap: clamp(2rem, 4vw, 4rem) !important;
}

main :is(
  .heritage-copy,
  .partners-copy,
  .origin-copy,
  .principle-card,
  .experience-item,
  .why-card,
  .principles-grid article,
  .experience-grid article
) p {
  max-width: 64ch;
}

main :is(.image-card, .media-card, figure) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

main :is(.image-card img, .media-card img, figure img) {
  border-radius: 0;
  box-shadow: none;
}

@media (max-width: 760px) {
  .why-hero-media {
    width: 100%;
  }

  .why-hero-media img {
    object-position: center 42%;
  }
}
