/* ==========================================================================
   Cheshire Dental Centre — shared inner-page layer
   --------------------------------------------------------------------------
   Loaded AFTER Content/style.css and assets/css/cheshire-overrides.css, and
   only on inner pages. The approved homepage does not load this file.

   Rules:
   - Every colour, face and size here comes from the tokens the approved
     homepage already defines in cheshire-overrides.css (--color-cream,
     --color-walnut, --color-bronze, --color-ink, --color-line, the Spectral /
     Source Sans 3 stack and the clamp() type scale). Nothing new is invented.
   - Nothing here touches Content/style.css, Content/main.js or
     cheshire-overrides.css.
   - Everything is scoped under a body page class so it can never leak onto the
     homepage or onto a Webflow component.

   Structure
     1. Page shell
     2. Breadcrumbs
     3. Section rhythm
     4. Type
     5. Editorial media rows
     6. Hairline rule list        <- the page's signature device
     7. Recognition band
     8. Buttons / links
     9. Reduced motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Page shell
   -------------------------------------------------------------------------- */
.page-about,
.page-team {
  background-color: var(--color-cream);
  color: var(--color-ink);
}

.cdc-page {
  /* container width matches the approved homepage's .container */
  --cdc-measure: 68ch;
  --cdc-gutter: clamp(1.25rem, 4vw, 3rem);
}

.cdc-wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--cdc-gutter);
}

.cdc-wrap--narrow {
  max-width: 900px;
}

/* --------------------------------------------------------------------------
   2. Breadcrumbs
   Small, quiet, and set in the body face so they read as navigation rather
   than as a heading. No prior art existed in the repo; this is new.
   -------------------------------------------------------------------------- */
.cdc-breadcrumbs {
  padding-top: clamp(1.75rem, 4vw, 2.75rem);
}

.cdc-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-family--body-font);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--_colors---text-secondary);
}

.cdc-breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cdc-breadcrumbs li + li::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--color-line-strong);
}

.cdc-breadcrumbs a {
  color: var(--_colors---text-secondary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.cdc-breadcrumbs a:hover {
  color: var(--color-walnut);
  border-bottom-color: var(--color-line-strong);
}

.cdc-breadcrumbs [aria-current="page"] {
  color: var(--color-walnut);
}

/* --------------------------------------------------------------------------
   3. Section rhythm
   One scale, used everywhere, so sections cannot drift apart. Deliberately
   tighter on mobile — a tall page of generous padding reads as empty, not calm.
   -------------------------------------------------------------------------- */
.cdc-section {
  padding-block: clamp(3.25rem, 7vw, 6.5rem);
}

.cdc-section--tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.cdc-section--flush-top {
  padding-top: 0;
}

/* Alternating surface, borrowed from the homepage's cream-2 tint. */
.cdc-section--tint {
  background-color: var(--color-cream-2);
}

.cdc-rule {
  height: 1px;
  background: var(--color-line);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Type
   -------------------------------------------------------------------------- */
.cdc-eyebrow {
  display: block;
  font-family: var(--font-family--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-bronze-text);
  margin: 0 0 1rem;
}

.cdc-h1 {
  font-family: var(--font-family--heading-font);
  font-size: var(--font-size--heading--h1-heading);
  line-height: var(--line-height--heading--h1-heading);
  letter-spacing: var(--letter-spacing--heading--h1);
  font-weight: 500;
  color: var(--color-walnut);
  margin: 0;
}

.cdc-h2 {
  font-family: var(--font-family--heading-font);
  font-size: var(--font-size--heading--h2-heading);
  line-height: var(--line-height--heading--h2-heading);
  letter-spacing: var(--letter-spacing--heading--h2);
  font-weight: 500;
  color: var(--color-walnut);
  margin: 0;
}

.cdc-h3 {
  font-family: var(--font-family--heading-font);
  font-size: var(--font-size--heading--h3-heading);
  line-height: var(--line-height--heading--h3-heading);
  font-weight: 500;
  color: var(--color-walnut);
  margin: 0;
}

/* Keeps a hyphenated phrase from breaking across lines — "A family-run" must not
   split after the hyphen, which is what a narrow viewport does by default. */
.cdc-nowrap { white-space: nowrap; }

/* A line break that only applies once there is room for the intended line. */
.cdc-br { display: none; }

@media (min-width: 720px) {
  .cdc-br { display: inline; }
}

.cdc-lead {
  font-family: var(--font-family--body-font);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.3125rem);
  line-height: 1.6;
  color: var(--_colors---text-secondary);
  max-width: var(--cdc-measure);
  margin: 1.5rem 0 0;
}

.cdc-prose p {
  font-family: var(--font-family--body-font);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--_colors---text-secondary);
  max-width: var(--cdc-measure);
  margin: 0 0 1.15em;
}

.cdc-prose p:last-child { margin-bottom: 0; }

/* A pulled quote, set quietly rather than as a decorative blockquote — the same
   device the homepage uses to speak in the practice's own voice. */
.cdc-quote {
  margin: 0;
  padding-left: clamp(1rem, 2vw, 1.75rem);
  border-left: 2px solid var(--color-bronze);
}

.cdc-quote p {
  font-family: var(--font-family--heading-font);
  font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem);
  line-height: 1.45;
  color: var(--color-walnut);
  margin: 0;
}

.cdc-quote footer {
  font-family: var(--font-family--body-font);
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--_colors---text-secondary);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   5. Editorial media rows
   Text and image side by side, alternating. This is the homepage's own intro /
   philosophy composition, not a card grid.
   -------------------------------------------------------------------------- */
.cdc-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .cdc-split {
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
  }
  .cdc-split--reverse .cdc-split__media { order: -1; }
}

.cdc-split__media {
  margin: 0;
}

.cdc-figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius--radius-4xl, 16px);
  background: var(--color-cream-3);
}

.cdc-figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdc-figure figcaption {
  font-family: var(--font-family--body-font);
  font-size: 0.8125rem;
  color: var(--_colors---text-secondary);
  padding-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   6. Hairline rule list  — the signature device
   Lifted from the approved homepage's "scope of our care" rows: a warm hairline,
   a small label, a sentence. Chosen deliberately INSTEAD of four floating cards,
   which is the generic answer and which the homepage itself avoids here.
   -------------------------------------------------------------------------- */
.cdc-ruled {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

.cdc-ruled > li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.35rem, 2.5vw, 1.9rem);
  border-bottom: 1px solid var(--color-line);
}

@media (min-width: 720px) {
  .cdc-ruled > li {
    grid-template-columns: minmax(11rem, 18rem) 1fr;
    align-items: baseline;
  }
}

.cdc-ruled__term {
  font-family: var(--font-family--heading-font);
  font-size: clamp(1.1rem, 1rem + .35vw, 1.375rem);
  font-weight: 500;
  color: var(--color-walnut);
  margin: 0;
}

.cdc-ruled__desc {
  font-family: var(--font-family--body-font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--_colors---text-secondary);
  max-width: 60ch;
  margin: 0;
}

/* --------------------------------------------------------------------------
   7. Recognition band
   Walnut surface, echoing the homepage's dark philosophy panel. Typographic on
   purpose: the only awards-ceremony photograph in the archive is from a
   different awards programme, and pairing it with the Private Dentistry Awards
   finalist line would imply a win the source material does not support.
   -------------------------------------------------------------------------- */
.cdc-band {
  background-color: var(--color-walnut);
  color: var(--color-on-dark);
}

.cdc-band .cdc-h2 { color: var(--color-on-dark); }
.cdc-band .cdc-eyebrow { color: var(--color-on-dark-soft); }

.cdc-band__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 860px) {
  .cdc-band__grid { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 6vw, 5rem); }
}

.cdc-facts {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(248, 242, 228, .22);
}

.cdc-facts > li {
  padding-block: 1.25rem;
  border-bottom: 1px solid rgba(248, 242, 228, .22);
}

.cdc-facts dt,
.cdc-facts__term {
  font-family: var(--font-family--body-font);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-on-dark-soft);
  margin: 0 0 0.4rem;
}

.cdc-facts dd,
.cdc-facts__desc {
  font-family: var(--font-family--heading-font);
  font-size: clamp(1.1rem, 1rem + .35vw, 1.375rem);
  line-height: 1.4;
  color: var(--color-on-dark);
  margin: 0;
}

/* --------------------------------------------------------------------------
   8. Buttons / links
   A quiet text link with a bronze rule. The loud CTA is the shared final CTA
   band, which is approved Webflow markup — this must not compete with it.
   -------------------------------------------------------------------------- */
.cdc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-family--body-font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-walnut);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-bronze);
  transition: color .18s ease, border-color .18s ease, gap .18s ease;
}

.cdc-link:hover {
  color: var(--color-bronze);
  gap: 0.9rem;
}

.cdc-link::after {
  content: "";
  width: 1.25rem;
  height: 1px;
  background: currentColor;
}

.cdc-band .cdc-link {
  color: var(--color-on-dark);
  border-bottom-color: var(--color-on-dark-soft);
}

.cdc-band .cdc-link:hover { color: var(--color-on-dark-soft); }

/* Focus visibility — the quality floor, not decoration. */
.cdc-page a:focus-visible,
.cdc-page button:focus-visible {
  outline: 2px solid var(--color-bronze);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   9. Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .cdc-link,
  .cdc-breadcrumbs a {
    transition: none;
  }
}
