/* Public Speaking, Podcasts & Workshops (/public-speaking/).
   Builds on tokens.css, services.css, contact.css and faq.css. */

.page-speaking main :focus-visible {
    outline: 3px solid var(--ld-accent);
    outline-offset: 3px;
}

.page-speaking main section[id] {
    scroll-margin-top: 6rem;
}

/* Teal on white text fails contrast on <button>; match the navy text used by a.ld-btn. */
.page-speaking button.ld-btn {
    color: var(--ld-bg-solid);
}

.page-speaking main h2 {
    margin: 0 0 1.25rem;
    text-wrap: balance;
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    line-height: 1.2;
}

.speaking-kicker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    color: var(--ld-accent);
    font-family: var(--ld-font-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.speaking-kicker::before {
    content: "";
    width: 2rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.speaking-kicker--center {
    justify-content: center;
}

.speaking-copy {
    font-size: clamp(1rem, 1.6vw, 1.0625rem);
    line-height: 1.75;
    color: var(--ld-text-muted);
}

.speaking-copy p {
    margin: 0 0 1rem;
}

.speaking-copy strong {
    color: var(--ld-text);
}

.speaking-copy a {
    color: var(--ld-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.speaking-copy a:hover {
    color: var(--ld-text);
}

.speaking-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--ld-text);
    font-family: var(--ld-font-body);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 2px solid var(--ld-accent);
    padding-bottom: 0.2rem;
    transition: color 0.2s ease;
}

.speaking-text-link:hover {
    color: var(--ld-accent);
}

/* Photo frame shared by hero and about: soft teal offset behind a rounded image. */
.speaking-frame,
.speaking-hero__media {
    position: relative;
    margin: 0;
}

.speaking-frame::before {
    content: "";
    position: absolute;
    inset: 1.25rem -1rem -1rem 1.25rem;
    border: 2px solid rgba(78, 195, 204, 0.45);
    border-radius: 20px;
    pointer-events: none;
}

.speaking-frame img {
    position: relative;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

/* Hero */
.speaking-hero {
    position: relative;
    padding-top: var(--ld-header-offset);
    padding-bottom: var(--ld-section-gap);
    background:
        radial-gradient(circle at 78% 30%, rgba(78, 195, 204, 0.14), transparent 45%),
        var(--ld-bg-solid);
}

.speaking-hero__grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.speaking-hero__title {
    margin: 0 0 1.5rem;
    font-family: var(--ld-font-display);
    font-size: clamp(1.5rem, 7vw, 2.875rem);
    font-weight: 800;
    line-height: 1.1;
    text-wrap: balance;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.speaking-hero__accent {
    color: var(--ld-accent);
}

.speaking-hero__tagline {
    max-width: 36rem;
    margin: 0 0 1.5rem;
    font-family: var(--ld-font-display);
    font-size: clamp(1.1rem, 2vw, 1.375rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--ld-text);
}

.speaking-hero__lead {
    max-width: 36rem;
    margin: 0 0 1rem;
    font-size: clamp(1rem, 1.8vw, 1.125rem);
    line-height: 1.7;
    color: var(--ld-text-muted);
}

.speaking-hero__lead strong {
    color: var(--ld-text);
}

.speaking-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
    margin-top: 2rem;
}

.speaking-hero__caption {
    position: relative;
    margin-top: 1.25rem;
    padding: 0.85rem 1.1rem;
    border: 1px solid var(--ld-card-border);
    border-radius: 12px;
    background: rgba(12, 13, 27, 0.88);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ld-text-muted);
}

.speaking-hero__caption strong {
    display: block;
    color: var(--ld-accent);
    font-family: var(--ld-font-display);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.speaking-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1rem;
    margin: var(--ld-section-gap) 0 0;
    padding: 1.75rem 0 0;
    border-top: 1px solid var(--ld-card-border);
    list-style: none;
}

.speaking-highlights li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.speaking-highlights__value {
    font-family: var(--ld-font-display);
    font-size: clamp(1.15rem, 2vw, 1.375rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ld-text);
}

.speaking-highlights__label {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--ld-text-muted);
}

/* Heading beside copy: philosophy and long section intros */
.speaking-split {
    display: grid;
    gap: 1.5rem;
}

.speaking-split__heading h2 {
    margin-bottom: 0;
}

.speaking-philosophy__statement {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--ld-accent);
    font-family: var(--ld-font-display);
    font-size: clamp(1.15rem, 2vw, 1.375rem);
    font-weight: 700;
    line-height: 1.5;
    color: var(--ld-text);
}

/* Topics */
.speaking-section-intro {
    max-width: 46rem;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.speaking-section-intro .speaking-copy {
    margin: 0;
}

.speaking-formats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.speaking-formats li {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--ld-card-border);
    border-radius: var(--ld-radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ld-text);
}

.speaking-topics__grid {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Topic cards: number + category, title, short description, takeaway pinned to the bottom. */
.speaking-topic {
    --topic-pad: clamp(1.5rem, 3vw, 2.5rem);
    position: relative;
    display: flex;
    flex-direction: column;
    padding: var(--topic-pad);
    overflow: hidden;
    border: 1px solid var(--ld-card-border);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(33, 44, 62, 0.75), rgba(12, 13, 27, 0.6));
    transition: border-color 0.3s ease;
}

/* Short turquoise bar along the top edge; it extends on hover without implying a link. */
.speaking-topic::before {
    content: "";
    position: absolute;
    top: 0;
    left: var(--topic-pad);
    width: 3rem;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: var(--ld-accent);
    transition: width 0.4s ease;
}

.speaking-topic:hover {
    border-color: rgba(78, 195, 204, 0.4);
}

.speaking-topic:hover::before {
    width: calc(100% - (var(--topic-pad) * 2));
}

.speaking-topic__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.speaking-topic__number {
    font-family: var(--ld-font-display);
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: var(--ld-accent);
}

.speaking-topic__category {
    margin: 0;
    padding-left: 1rem;
    border-left: 1px solid var(--ld-card-border);
    font-family: var(--ld-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.speaking-topic__title {
    margin: 0 0 1rem;
    font-family: var(--ld-font-display);
    font-size: clamp(1.3rem, 2.3vw, 1.625rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--ld-text);
    text-wrap: balance;
}

.speaking-topic__body {
    margin-bottom: 1.75rem;
}

.speaking-topic__body p {
    margin: 0 0 0.85rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ld-text-muted);
}

.speaking-topic__body p:last-child {
    margin-bottom: 0;
}

.speaking-topic__body a {
    color: var(--ld-accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.speaking-topic__body a:hover {
    color: var(--ld-text);
}

.speaking-topic__takeaway {
    margin-top: auto;
    padding: 1rem 1.25rem;
    border-left: 3px solid var(--ld-accent);
    border-radius: 0 10px 10px 0;
    background: rgba(78, 195, 204, 0.08);
}

.speaking-topic__takeaway-label {
    margin: 0 0 0.35rem;
    font-family: var(--ld-font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ld-accent);
}

.speaking-topic__takeaway-text {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.55;
    color: var(--ld-text);
}

.speaking-checklist {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.speaking-checklist li {
    position: relative;
    padding-left: 1.6rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ld-text);
}

.speaking-checklist li::before {
    content: "";
    position: absolute;
    top: 0.3rem;
    left: 0;
    width: 1rem;
    height: 1rem;
    background: var(--ld-accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.1-1.1 2.5 2.5 6.1-6.1 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.1-1.1 2.5 2.5 6.1-6.1 1.1 1.1z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Experience */
.speaking-experience__grid {
    display: grid;
    gap: 1.25rem;
}

.speaking-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 26rem;
    overflow: hidden;
    border: 1px solid var(--ld-card-border);
    border-radius: 16px;
    background: var(--ld-bg-elevated);
}

.speaking-feature__media,
.speaking-feature__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.speaking-feature__media img {
    object-fit: cover;
    object-position: 60% 45%;
    transition: transform 0.4s ease;
}

.speaking-feature:hover .speaking-feature__media img {
    transform: scale(1.04);
}

.speaking-feature__body {
    position: relative;
    padding: 6rem 2rem 2rem;
    background: linear-gradient(180deg, rgba(12, 13, 27, 0) 0%, rgba(12, 13, 27, 0.92) 45%);
}

.speaking-feature p:last-child,
.speaking-credit p:last-child {
    margin-bottom: 0;
}

.speaking-tag {
    display: inline-block;
    margin: 0 0 0.75rem;
    color: var(--ld-accent);
    font-family: var(--ld-font-display);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.speaking-feature h3,
.speaking-credit h3 {
    margin: 0 0 0.6rem;
    font-family: var(--ld-font-display);
    font-size: clamp(1.2rem, 2.2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.3;
}

.speaking-feature p,
.speaking-credit p {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ld-text-muted);
}

.speaking-experience__list {
    display: grid;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.speaking-credit {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: start;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--ld-card-border);
    border-radius: 16px;
    background: rgba(33, 44, 62, 0.45);
}

.speaking-credit__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: var(--ld-accent-soft);
    color: var(--ld-accent);
}

.speaking-credit__icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Testimonials: masonry columns so screenshots of any height keep their full text. */
.speaking-proof {
    background:
        radial-gradient(circle at 15% 20%, rgba(78, 195, 204, 0.1), transparent 40%),
        var(--ld-bg-solid);
}

.speaking-proof__header {
    margin: 0 0 1.75rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--ld-card-border);
}

.speaking-proof__title {
    margin: 0 0 0.5rem;
    font-family: var(--ld-font-display);
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
}

.speaking-proof__header .speaking-copy {
    margin: 0;
}

.speaking-proof__header--center {
    text-align: center;
}

.speaking-proof__grid {
    columns: 1;
    column-gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.speaking-proof__item {
    break-inside: avoid;
    margin: 0 0 1.25rem;
}

.speaking-proof__item figure {
    margin: 0;
    padding: 0.75rem;
    border-radius: 16px;
    background: var(--ld-text);
}

.speaking-proof__item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.speaking-proof__item a {
    display: block;
    border-radius: 16px;
    transition: transform 0.25s ease;
}

.speaking-proof__item a:hover {
    transform: translateY(-4px);
}

/* About */
.speaking-about__grid {
    display: grid;
    gap: 3rem;
    align-items: start;
}

/* Inquiry */
.speaking-inquiry .contact__title {
    text-transform: none;
}

.speaking-inquiry .contact__panel {
    align-items: start;
}

.speaking-inquiry__person {
    display: flex;
    margin-top: 1.5rem;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ld-card-border);
}

.speaking-inquiry__person img {
    flex: none;
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.speaking-inquiry__person p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--ld-text-muted);
}

.speaking-inquiry__person a {
    color: var(--ld-accent);
    font-weight: 700;
}

.speaking-inquiry__person a:hover {
    color: var(--ld-text);
}

.speaking-form__note {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 0.85rem;
    color: var(--ld-text-muted);
}

#speaking-inquiry-form .contact-form__field--half {
    grid-column: auto;
}

#speaking-inquiry-form .contact-form__status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
    .speaking-highlights {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .speaking-highlights li + li {
        padding-left: 1.5rem;
        border-left: 1px solid var(--ld-card-border);
    }

    .speaking-topics__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }

    .speaking-proof__grid {
        columns: 2;
        column-gap: 1.5rem;
    }

    .speaking-experience__grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .speaking-feature {
        min-height: 100%;
    }

    .speaking-about__grid {
        grid-template-columns: 0.85fr 1.15fr;
        gap: 4rem;
    }

    .speaking-about__grid > .speaking-frame {
        position: sticky;
        top: 7rem;
    }
}

/* Keep the inquiry panel stacked on tablets so the two-column form has room. */
@media (min-width: 768px) and (max-width: 1023px) {
    .speaking-inquiry .contact__panel {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1024px) {
    .speaking-hero__grid {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 4rem;
    }

    .speaking-hero__caption {
        position: absolute;
        left: -2rem;
        bottom: -1.75rem;
        max-width: 22rem;
        margin: 0;
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    }

    .speaking-split {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 4rem;
    }

    .speaking-split__heading {
        position: sticky;
        top: 7rem;
        align-self: start;
    }


}

@media (max-width: 767px) {
    .speaking-section-intro,
    .speaking-proof__header--center {
        text-align: left;
    }

    .speaking-kicker--center,
    .speaking-formats {
        justify-content: flex-start;
    }


    .speaking-frame::before {
        inset: 0.75rem -0.5rem -0.5rem 0.75rem;
    }

    .speaking-feature {
        min-height: 30rem;
    }

    .speaking-credit {
        padding: 1.25rem;
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .speaking-topic,
    .speaking-topic::before,
    .speaking-proof__item a,
    .speaking-feature__media img {
        transition: none;
    }

    .speaking-proof__item a:hover,
    .speaking-feature:hover .speaking-feature__media img {
        transform: none;
    }
}
