/**
 * Content pages - About, Our Team, Contact, dentist profiles
 * Ogilvie Dental
 *
 * Small additions on top of style.css + services.css (and our-team.css where
 * team cards appear). Reuses the --svc-* tokens and the site palette; no new
 * colours beyond the darker olive the service pages already use for text on
 * white, because the brand lime alone is below WCAG contrast for text.
 */

.page-hero,
.page-section {
    --pg-olive: #5F6B0E;
}

/* Lime highlight in headings is ~1.9:1 on white; use the olive on these pages. */
.page-hero .text-highlight,
.page-section .text-highlight {
    color: var(--pg-olive);
}

/* Breadcrumb styles live in services.css (shared with the service pages). */

/* ---------- Hero variants ---------- */

/* Text-only hero (Contact): no media column. */
.page-hero--compact .svc-hero__inner {
    grid-template-columns: minmax(0, 1fr);
}

.page-hero--compact .svc-hero__title,
.page-hero--compact .svc-hero__lead {
    max-width: 40ch;
}

.page-hero--compact .svc-hero__lead {
    max-width: 62ch;
}

/* Portrait hero (dentist profile): portrait images are 2:3/3:4, not 4:3. */
.page-hero--portrait .svc-media img {
    aspect-ratio: 4 / 5;
    object-position: center 12%;
}

.page-hero--portrait .svc-hero__media {
    max-width: 440px;
    justify-self: center;
    width: 100%;
}

.page-hero__quals {
    margin: -0.25rem 0 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--svc-ink-soft, #4A4A4A);
}

/* ---------- Links in body copy ---------- */

.page-section .svc-article a,
.page-section .svc-note a,
.page-section .svc-panel a,
.page-section .pg-facts a,
.page-hero .svc-hero__lead a,
.page-hero .svc-hero__trust a {
    color: var(--pg-olive);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.page-section .svc-article p + p {
    margin-top: 1.25rem;
}

/* ---------- Fact grid (About, Contact) ---------- */

.pg-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-facts li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.15rem 1.25rem;
    background: var(--svc-surface, #FFFFFF);
    border: 1px solid var(--svc-line, #E8E8E8);
    border-radius: var(--svc-radius-md, 16px);
    box-shadow: var(--svc-shadow-sm);
    font-size: 0.975rem;
    line-height: 1.6;
    color: var(--svc-ink-soft, #4A4A4A);
}

.pg-facts i {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--svc-lime-soft, rgba(182, 204, 35, 0.12));
    color: #6E7D11;
}

.pg-facts strong {
    display: block;
    color: var(--svc-ink, #0A0A0A);
    font-weight: 600;
}

/* ---------- Mission statement ---------- */

.pg-mission {
    max-width: 62ch;
    margin: 0 auto;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--svc-surface, #FFFFFF);
    border: 1px solid var(--svc-lime-line, rgba(182, 204, 35, 0.32));
    border-left: 5px solid var(--svc-lime, #B6CC23);
    border-radius: var(--svc-radius-md, 16px);
    font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
    line-height: 1.75;
    color: var(--svc-ink, #0A0A0A);
}

/* ---------- Service link list (About) ---------- */

.pg-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pg-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--svc-line, #E8E8E8);
    border-radius: 999px;
    background: var(--svc-surface, #FFFFFF);
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--svc-ink, #0A0A0A);
    box-shadow: var(--svc-shadow-sm);
}

.pg-links a:hover,
.pg-links a:focus-visible {
    border-color: var(--svc-lime, #B6CC23);
    background: var(--svc-lime-soft, rgba(182, 204, 35, 0.12));
}

.pg-links i {
    color: #6E7D11;
}

/* ---------- Team page ---------- */

.pg-team-list {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
}

.team-card--full {
    scroll-margin-top: 160px;
}

.team-card--full .team-card__details {
    justify-content: flex-start;
}

.team-card__bio p {
    margin: 0;
    font-size: 0.975rem;
    line-height: 1.75;
    color: var(--text-gray, #4A4A4A);
}

.team-card__bio p + p {
    margin-top: 0.85rem;
}

/* Dentist entries keep the image column a fixed height; staff avatars are
   placeholders, so their column can be narrower. */
@media (min-width: 993px) {
    .team-card--full {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    }
}

.team-section-more {
    margin-top: var(--spacing-xl, 2rem);
}

/* ---------- Profile page ---------- */

.pg-profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.25rem;
}

.pg-profile-grid .svc-panel h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--svc-ink, #0A0A0A);
}

.pg-profile-grid .svc-list {
    padding: 0;
    background: transparent;
    border: 0;
    grid-template-columns: 1fr !important;
}

.pg-profile-grid .svc-list li {
    font-size: 0.975rem;
}

/* ---------- Focus visibility ---------- */

main a:focus-visible,
main .btn:focus-visible {
    outline: 3px solid #0A0A0A;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .pg-mission {
        border-left-width: 4px;
    }
}

/* Benefit cards on these pages use h3 (correct outline under an h2); match
   the h4 styling services.css gives the service pages. */
.benefit-card .h4-like {
    margin-bottom: 0.6rem;
    color: var(--svc-ink, #0A0A0A);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

/* Step headings on content pages (h3 under an h2, styled like services.css h4). */
.page-section .step-item h3 {
    margin: 0.3rem 0 0.5rem;
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: var(--svc-ink, #0A0A0A);
}

.page-section .step-item a {
    color: var(--pg-olive);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Bulleted lists inside a biography (team cards and profile pages). The base
   stylesheet removes list bullets globally, so restore them here. */
.team-card__bio ul,
#biography .svc-flow ul {
    list-style: disc;
    margin: 0.75rem 0 0.85rem 1.4rem;
    padding: 0;
}

.team-card__bio li,
#biography .svc-flow li {
    font-size: 0.975rem;
    line-height: 1.7;
    font-weight: var(--font-weight-semibold, 600);
    color: var(--text-black, #1A1A1A);
}

.team-card__bio li::marker,
#biography .svc-flow li::marker {
    color: #6E7D11;
}

#biography .svc-flow ul + p,
.team-card__bio ul + p {
    margin-top: 0.85rem;
}

/* Very wide photos (the 1920x680 storefront): a 4:3 crop cuts off the practice
   sign, so use a wider frame and keep the sign and door in view. */
.svc-media--wide img {
    aspect-ratio: 16 / 10;
    object-position: 50% 40%;
}

/* With three buttons the Contact hero needs to wrap neatly beside the photo. */
.page-hero .svc-hero__actions .btn {
    white-space: nowrap;
}
