/* ============================================================
   Gregor Maric (gregor-maric.html, en/gregor-maric.html)
   The page reuses the Chi siamo components (chi-siamo.css, body
   .about-page) and adds only what the profile needs: portrait
   framing, book cards with the link pinned to the bottom, the
   hairline FAQ and a solid closing CTA. Tokens from styles.css
   only; scoped to body.profile-page.
   ============================================================ */

/* ---------- Hero ---------- */
.profile-page .about-hero {
    padding-bottom: clamp(48px, 6vw, 72px);
}

.profile-page .about-hero .hero-subtitle {
    max-width: 58ch;
}

/* ---------- Profile ---------- */
.profile-page .ceo-content {
    align-items: center;
}

/* The source is a 583x800 portrait: keep the face in the circle */
.profile-page .profile-image {
    object-fit: cover;
    object-position: 50% 22%;
}

/* Social cards use h3 here (h4 on Chi siamo, where they sit under an h3) */
.profile-page .social-content h3 {
    margin: 0 0 0.1rem;
    font-size: 0.98rem;
    line-height: 1.3;
    color: var(--dark-gray);
}

/* ---------- Publications ---------- */
.profile-page .publications-section {
    background: var(--white);
}

.profile-page .publications-section .section-intro {
    margin-bottom: 2.5rem;
}

.profile-page .book-card {
    display: flex;
    flex-direction: column;
}

.profile-page .book-card p {
    margin-bottom: 1.25rem;
}

.profile-page .book-card .book-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    min-height: 44px;
    margin-top: auto;
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--blue-text);
    text-decoration: none;
}

.profile-page .book-card .book-link:hover {
    color: var(--dark-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.profile-page .book-card .book-link:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- FAQ: title column + hairline list (as on the homepage) ---------- */
.profile-page .faq-section {
    padding: var(--about-section) 0;
    background: var(--light-gray);
}

.profile-page .faq-container {
    max-width: 1200px;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.profile-page .faq-container .section-title {
    margin-bottom: 1.25rem;
}

.profile-page .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border-medium);
}

.profile-page main details.faq-item {
    border-bottom-color: var(--border-medium);
}

.profile-page .faq-section .faq-item summary h3 {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--dark-gray);
    transition: color var(--transition-fast);
}

.profile-page .faq-section .faq-item summary:hover h3 {
    color: var(--blue-text);
}

.profile-page .faq-section .faq-item p {
    max-width: 68ch;
    margin: 0 0 1.5rem;
    padding: 0;
    line-height: 1.7;
    color: var(--dark-gray);
}

/* ---------- Closing CTA: no video here, so a solid ink base under the overlay ---------- */
.profile-page .cta-section {
    background: var(--black);
}

/* ---------- Tablet and below ---------- */
@media (max-width: 860px) {
    .profile-page .faq-container {
        grid-template-columns: minmax(0, 1fr);
    }
}
