/* =============================================
   Jean Tremblay — Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600&display=swap');

:root {
    --color-ivory: #F8F6F2;
    --color-charcoal: #1C1C1C;
    --color-navy: #1A2744;
    --color-navy-dark: #0F1623;
    --color-gold: #B8956A;
    --color-gold-light: #D4B896;
    --color-muted: #6B6B6B;
    --color-border: #E8E4DE;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Source Sans 3', 'Helvetica Neue', sans-serif;

    --max-width: 1140px;
    --nav-height: 72px;
    --transition: 0.3s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-charcoal);
    background-color: var(--color-ivory);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

picture {
    display: block;
}

.content-split picture img,
.pillar-card picture img,
.conference-card picture img,
.book-cover picture img {
    width: 100%;
    object-fit: cover;
    object-position: center 20%;
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-gold);
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }

p {
    margin: 0 0 1.25rem;
}

.lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--color-muted);
    line-height: 1.8;
}

.eyebrow {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    display: block;
}

/* ---- Layout ---- */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 5rem 0;
}

.section--dark {
    background-color: var(--color-navy-dark);
    color: var(--color-ivory);
}

.section--dark h2,
.section--dark h3 {
    color: var(--color-ivory);
}

.section--dark p {
    color: rgba(248, 246, 242, 0.85);
}

.section--light {
    background-color: var(--color-ivory);
}

.section--alt {
    background-color: #F0EDE8;
}

/* ---- Navigation ---- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(15, 22, 35, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(184, 149, 106, 0.2);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.site-logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-ivory);
    letter-spacing: 0.02em;
}

.site-logo:hover {
    color: var(--color-gold-light);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(248, 246, 242, 0.75);
    transition: color var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-gold);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-ivory);
    transition: var(--transition);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-navy-dark);
    color: var(--color-ivory);
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(184, 149, 106, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    color: var(--color-ivory);
    margin-bottom: 0.5rem;
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-gold-light);
    margin-bottom: 1.5rem;
    display: block;
}

.hero-roles {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 246, 242, 0.6);
    margin-bottom: 2.5rem;
}

.hero-roles span {
    color: var(--color-gold);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-portrait {
    display: flex;
    justify-content: center;
    width: 340px;
    height: 420px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(184, 149, 106, 0.3);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 53% 22%;
    transform: scale(1.25);
    transform-origin: 53% 28%;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* ---- Page Hero (inner pages) ---- */

.page-hero {
    background: var(--color-navy-dark);
    color: var(--color-ivory);
    padding: calc(var(--nav-height) + 4rem) 0 4rem;
    text-align: center;
}

.page-hero h1 {
    color: var(--color-ivory);
    margin-bottom: 0.75rem;
}

.page-hero .lead {
    color: rgba(248, 246, 242, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

/* ---- Buttons ---- */

.btn {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.9rem 2rem;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.btn--primary {
    background: var(--color-gold);
    color: var(--color-navy-dark);
}

.btn--primary:hover {
    background: var(--color-gold-light);
    color: var(--color-navy-dark);
}

.btn--outline {
    background: transparent;
    color: var(--color-ivory);
    border: 1px solid rgba(248, 246, 242, 0.4);
}

.btn--outline:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn--dark {
    background: var(--color-navy);
    color: var(--color-ivory);
}

.btn--dark:hover {
    background: var(--color-navy-dark);
    color: var(--color-gold-light);
}

/* ---- Stats Bar ---- */

.stats-bar {
    background: var(--color-navy);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(184, 149, 106, 0.2);
    border-bottom: 1px solid rgba(184, 149, 106, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-gold);
    display: block;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(248, 246, 242, 0.6);
}

/* ---- Pillars / Cards ---- */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pillar-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26, 39, 68, 0.1);
}

.pillar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.pillar-card-body {
    padding: 1.75rem;
}

.pillar-card h3 {
    color: var(--color-navy);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
}

.pillar-card .btn {
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
}

/* ---- Content Sections ---- */

.content-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-split--reverse {
    direction: rtl;
}

.content-split--reverse > * {
    direction: ltr;
}

.content-split img {
    border-radius: 2px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.content-split h2 {
    color: var(--color-navy);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-gold);
    display: inline-block;
}

.section--dark .content-split h2 {
    color: var(--color-ivory);
}

/* ---- Quote Block ---- */

.quote-block {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.quote-block blockquote {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 400;
    color: var(--color-navy);
    line-height: 1.5;
    margin: 0 0 1.5rem;
    border: none;
    padding: 0;
}

.quote-block cite {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    font-style: normal;
}

/* ---- Timeline ---- */

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid var(--color-gold);
    max-width: 700px;
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.45rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-gold);
    border: 2px solid var(--color-ivory);
}

.timeline-year {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.25rem;
}

.timeline-item h3 {
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
}

/* ---- Book Page ---- */

.book-showcase {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: start;
}

.book-cover img {
    border-radius: 2px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
}

.book-meta {
    margin-bottom: 2rem;
}

.book-meta h2 {
    color: var(--color-navy);
    margin-bottom: 0.25rem;
}

.book-subtitle {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.book-edition {
    font-size: 0.9rem;
    color: var(--color-gold);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.book-details {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.book-detail {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.book-detail strong {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-bottom: 0.2rem;
}

.book-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.book-figures {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.book-figure-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    background: var(--color-navy);
    color: var(--color-ivory);
    border-radius: 2px;
}

/* ---- Conference Cards ---- */

.conference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.conference-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.conference-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.conference-card-body {
    padding: 2rem;
}

.conference-card h3 {
    color: var(--color-navy);
    margin-bottom: 1rem;
}

.conference-card p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0;
}

.conference-card-media {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
}

.conference-card-action {
    margin-top: 1.25rem;
}

.conference-card-action .btn {
    font-size: 0.75rem;
    padding: 0.7rem 1.5rem;
}

.conference-card-action .entrevue-link[aria-disabled="true"] {
    opacity: 0.65;
    pointer-events: none;
}

.entrevue-media {
    position: relative;
}

.entrevues-section .conference-card > picture,
.entrevues-section .conference-card .entrevue-poster {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #EBE8E3;
}

.entrevues-section .conference-card picture img,
.entrevues-section .conference-card .entrevue-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.entrevues-section .conference-card img {
    height: 100%;
    object-fit: contain;
}

.entrevues-section .entrevue-media {
    background: #EBE8E3;
}

.entrevue-poster.is-hidden {
    display: none;
}

.entrevue-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.entrevue-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.entrevue-player--cpac {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.entrevue-cpac-panel {
    text-align: center;
    max-width: 28rem;
}

.entrevue-cpac-panel p {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

/* ---- Forms ---- */

.form-section {
    max-width: 600px;
    margin: 0 auto;
}

.form-section h2 {
    text-align: center;
    color: var(--color-navy);
    margin-bottom: 0.5rem;
}

.form-section .lead {
    text-align: center;
    margin-bottom: 2.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-navy);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 2px;
    background: white;
    color: var(--color-charcoal);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.form-submit {
    width: 100%;
    margin-top: 0.5rem;
}

/* ---- CTA Banner ---- */

.cta-banner {
    background: var(--color-navy);
    color: var(--color-ivory);
    text-align: center;
    padding: 4rem 2rem;
}

.cta-banner h2 {
    color: var(--color-ivory);
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(248, 246, 242, 0.7);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ---- Footer ---- */

.site-footer {
    background: var(--color-navy-dark);
    color: rgba(248, 246, 242, 0.5);
    padding: 3rem 0 2rem;
    border-top: 1px solid rgba(184, 149, 106, 0.15);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-ivory);
    margin-bottom: 0.75rem;
}

.footer-brand + p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-nav h4 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1rem;
}

.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-nav a {
    font-size: 0.9rem;
    color: rgba(248, 246, 242, 0.6);
}

.footer-nav a:hover {
    color: var(--color-gold);
}

.footer-bottom {
    border-top: 1px solid rgba(248, 246, 242, 0.08);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: #c9a16b;
    border: 1px solid #c9a16b;
    border-radius: 50%;
    transition: color var(--transition), border-color var(--transition), background-color var(--transition);
}

.footer-social-link:hover {
    color: #d4b896;
    border-color: #d4b896;
    background-color: rgba(201, 161, 107, 0.12);
}

.footer-social-link svg {
    display: block;
}

/* ---- Animations ---- */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
    .hero .container,
    .content-split,
    .book-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .content-split--reverse {
        direction: ltr;
    }

    .hero-portrait {
        order: -1;
        width: 260px;
        height: 320px;
        margin-inline: auto;
    }

    .pillars-grid,
    .conference-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: rgba(15, 22, 35, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-120%);
        opacity: 0;
        transition: transform var(--transition), opacity var(--transition);
        border-bottom: 1px solid rgba(184, 149, 106, 0.2);
    }

    .site-nav.open {
        transform: translateY(0);
        opacity: 1;
    }

    .section {
        padding: 3.5rem 0;
    }

    .book-showcase {
        grid-template-columns: 1fr;
    }

    .book-cover {
        max-width: 280px;
        margin: 0 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
