/* ============================================================================
   About page — editorial/story-driven layout.
   Distinct feel: large narrative typography, numbered values list,
   portrait team grid, side-by-side services teaser.
   Consumes design-system.css tokens.
   ============================================================================ */

/* ============================================================ HERO ==== */
.about-hero {
    position: relative;
    padding-block: clamp(3rem, 7vw, 5.5rem);
    background:
        radial-gradient(900px 400px at 0% 0%, var(--brand-soft) 0%, transparent 60%),
        radial-gradient(700px 400px at 100% 100%, var(--accent-soft) 0%, transparent 55%),
        var(--bg);
    overflow: hidden;
}
.about-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 6vw, 4rem);
    align-items: center;
}
.about-hero__copy .ds-heading__eyebrow { margin-bottom: 1rem; }
.about-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 1rem 0;
    letter-spacing: -0.02em;
    color: var(--fg);
}
.about-hero__mark {
    display: block;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: .3rem;
}
.about-hero__lead {
    font-size: 1.05rem;
    color: var(--fg-muted);
    line-height: 1.85;
    margin: 0 0 1.75rem 0;
    max-width: 55ch;
}
.about-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
/* Stacked layout: the text above it is centred by `.about-hero__copy`, so a
   pair of buttons hugging the reading edge reads as a stray column. */
@media (max-width: 1023.98px) {
    .about-hero__actions { justify-content: center; }
    .about-hero__actions .cta-actions { justify-content: center; }
}

.about-hero__figure {
    position: relative;
    margin: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    aspect-ratio: 4 / 5;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
}
.about-hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__figure-placeholder {
    display: flex; align-items: center; justify-content: center;
    width: 100%; height: 100%;
    font-size: 6rem;
    color: var(--brand);
    background: linear-gradient(135deg, var(--brand-soft), transparent);
}
.about-hero__figcaption {
    position: absolute;
    inset-inline: 1rem;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    color: var(--fg);
}
.about-hero__figcaption span { font-size: .78rem; color: var(--fg-muted); }
.about-hero__figcaption strong {
    font-size: .95rem;
    margin-top: .15rem;
    line-height: 1.65;
    /* A real address is longer than the old hard-coded stub; cap it at two
       lines so the badge cannot grow tall enough to cover the photo. */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================================================== MISSION ==== */
.about-mission {
    background: var(--bg-elevated);
    border-block: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.about-mission::before,
.about-mission::after {
    content: "";
    position: absolute;
    width: 320px; height: 320px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .18;
    pointer-events: none;
    z-index: 0;
}
.about-mission::before { background: var(--brand); top: -140px; inset-inline-start: -100px; }
.about-mission::after  { background: var(--accent); bottom: -160px; inset-inline-end: -120px; }

.about-mission__head {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 780px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
}
.about-mission__title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.75rem, 2vw, 1.25rem);
    font-size: clamp(1.7rem, 3.2vw, 2.5rem);
    line-height: 1.3;
    margin: 1rem 0 1rem 0;
    font-weight: 800;
    letter-spacing: -0.01em;
    text-wrap: balance;
    flex-wrap: wrap;
}
.about-mission__title-text {
    display: inline-block;
    text-wrap: balance;
}
.about-mission__title em {
    font-style: normal;
    color: var(--brand-strong);
    position: relative;
    display: inline-block;
    padding-inline: .2rem;
}
:root[data-theme="dark"] .about-mission__title em { color: var(--brand); }
.about-mission__title em::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: .08em;
    height: .35em;
    background: var(--brand-soft);
    z-index: -1;
    border-radius: 3px;
}

/* 3D-style tooth mascot pointing/greeting the reader */
.about-mission__title-icon {
    display: inline-flex;
    width: clamp(64px, 8vw, 96px);
    height: clamp(64px, 8vw, 96px);
    flex-shrink: 0;
    perspective: 500px;
}
.about-mission__title-icon svg {
    width: 100%; height: 100%;
    transform-origin: 60% 70%;
    animation: mascot-wave 3.2s ease-in-out infinite;
    filter: drop-shadow(0 12px 20px rgba(15, 118, 110, 0.28));
    will-change: transform;
}
:root[data-theme="dark"] .about-mission__title-icon svg {
    filter: drop-shadow(0 12px 22px rgba(45, 212, 191, 0.35));
}
.about-mission__title-icon-spark {
    transform-origin: 105px 25px;
    animation: mascot-spark 1.8s ease-in-out infinite;
}
@keyframes mascot-wave {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    30%      { transform: rotate(6deg)  translateY(-4px); }
    60%      { transform: rotate(-3deg) translateY(2px); }
}
@keyframes mascot-spark {
    0%, 100% { transform: scale(1)   rotate(0deg);   opacity: 0.9; }
    50%      { transform: scale(1.3) rotate(20deg);  opacity: 1;   }
}
@media (prefers-reduced-motion: reduce) {
    .about-mission__title-icon svg,
    .about-mission__title-icon-spark { animation: none; }
}

.about-mission__lead {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--fg-muted);
    margin: 0;
    text-wrap: pretty;
}

/* Body: two-column card grid under the centered head */
.about-mission__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.about-mission__col {
    background: var(--glass-bg);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}
.about-mission__col h3 {
    font-size: 1.15rem;
    margin: 0 0 .75rem 0;
    color: var(--fg);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.about-mission__col h3 i {
    color: var(--brand);
    background: var(--brand-soft);
    width: 34px; height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
}
:root[data-theme="dark"] .about-mission__col h3 i { color: var(--brand); }
.about-mission__col p {
    font-size: .98rem;
    line-height: 1.9;
    color: var(--fg-muted);
    margin: 0;
}
.about-mission__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .6rem;
}
.about-mission__list li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--fg);
    font-weight: 500;
    font-size: .95rem;
}
.about-mission__list i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-size: .65rem;
    flex-shrink: 0;
}

/* ==================================================== VALUES ==== */
.about-values__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    counter-reset: values;
}
.about-values__item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}
.about-values__item::after {
    content: "";
    position: absolute;
    inset-inline-end: -30px;
    top: -30px;
    width: 100px; height: 100px;
    background: radial-gradient(circle, var(--brand-glow), transparent 65%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.about-values__item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}
.about-values__item:hover::after { opacity: 1; }
.about-values__num {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--brand);
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.about-values__item h3 { font-size: 1.2rem; margin: 0 0 .4rem 0; color: var(--fg); }
.about-values__item p  { font-size: .95rem; color: var(--fg-muted); margin: 0; line-height: 1.75; }

/* ==================================================== TEAM ==== */
.about-team__grid {
    display: grid;
    /* The practice has two dentists and the container fits three tracks, so
       `auto-fill` kept an empty third one and the pair sat against the right
       edge with a card-shaped hole beside it. `auto-fit` collapses the track
       that has nothing in it, and `justify-content` then centres what is
       left. The 340px ceiling is what makes that work: with `1fr` the two
       cards would simply stretch to fill the row again, 526px each, which is
       not an improvement on a hole. Three still line up across the full
       width, because 340px is within two pixels of what a track measured
       before. */
    grid-template-columns: repeat(auto-fit, minmax(260px, 340px));
    justify-content: center;
    gap: 1.5rem;
}
.team-portrait {
    /* Flex column so bios of differing length still leave the socials row
       flush with the bottom of every card in the row. */
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.team-portrait:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-portrait__photo {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(180deg, var(--brand-soft), var(--bg-muted));
    position: relative;
}
.team-portrait__photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.team-portrait:hover .team-portrait__photo img { transform: scale(1.05); }
.team-portrait__photo-fallback {
    width: 100%; height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    font-size: 4rem;
}
.team-portrait__body { padding: 1.25rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .4rem; flex-grow: 1; }
.team-portrait__name { margin: 0; font-size: 1.15rem; color: var(--fg); }
.team-portrait__role {
    margin: 0;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--brand-strong);
    font-weight: 600;
}
:root[data-theme="dark"] .team-portrait__role { color: var(--brand); }
.team-portrait__bio {
    margin: .4rem 0 0 0;
    font-size: .88rem;
    color: var(--fg-muted);
    line-height: 1.75;
    flex-grow: 1;
}
.team-portrait__social {
    display: flex;
    gap: .4rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}
.team-portrait__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-muted);
    color: var(--fg-muted);
    font-size: .95rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.team-portrait__social a:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-2px);
}

/* ==================================================== SERVICES TEASER ==== */
.about-services-teaser__card {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: clamp(2rem, 5vw, 3.5rem);
    padding: clamp(2rem, 5vw, 3rem);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    align-items: start;
}
.about-services-teaser__intro h2 { margin: .75rem 0 .5rem 0; font-size: clamp(1.5rem, 3vw, 2.15rem); }
.about-services-teaser__intro p { color: var(--fg-muted); margin: 0 0 1.5rem 0; line-height: 1.85; }

.about-services-teaser__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
}
.about-services-teaser__list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    align-items: start;
    transition: background .2s ease, transform .2s ease;
}
.about-services-teaser__list li:hover { background: var(--brand-soft); transform: translateX(-4px); }
.about-services-teaser__dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 1.05rem;
    flex-shrink: 0;
}
.about-services-teaser__list li strong { display: block; color: var(--fg); font-size: .98rem; margin-bottom: .15rem; }
.about-services-teaser__list li span  { display: block; color: var(--fg-muted); font-size: .82rem; }

/* ==================================================== CTA ==== */
.about-cta {
    padding-block: clamp(3rem, 6vw, 5rem);
}

/* Empty state helper */
.empty-note {
    text-align: center;
    color: var(--fg-muted);
    padding: 2rem;
    background: var(--bg-elevated);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023.98px) {
    .about-hero__grid { grid-template-columns: 1fr; }
    .about-hero__figure { max-width: 460px; margin-inline: auto; }

    .about-mission__body { grid-template-columns: 1fr; }

    .about-values__list { grid-template-columns: 1fr; }

    .about-services-teaser__card { grid-template-columns: 1fr; }
}

@media (max-width: 639.98px) {
    .about-hero__actions { flex-direction: column; align-items: stretch; }
    .about-hero__actions .ds-btn { width: 100%; }
    .about-hero__figure { aspect-ratio: 4 / 3; }

    .about-values__item { grid-template-columns: 1fr; gap: .5rem; }
    .about-values__num { font-size: 2rem; }

}
