/* =============================================================
   "The Body Remembers" — Fine Art Minimalism
   Monochrome palette:
     Black   #1E1515
     White   #F9F8F6
     Charcoal #3A3A3A
     Mid-gray #8C8C8C
     Light-gray #D9D5D0
   ============================================================= */

/* ─── CSS variables ─────────────────────────────────────────── */
:root {
    --tbr-black:      #1E1515;
    --tbr-white:      #F9F8F6;
    --tbr-charcoal:   #3A3A3A;
    --tbr-mid:        #8C8C8C;
    --tbr-light:      #D9D5D0;
    --tbr-bg:         #F4F3F1;

    --tbr-font:       'Inter', 'Manrope', sans-serif;
    --tbr-radius:     4px;

    --tbr-ease:       cubic-bezier(0.4, 0, 0.2, 1);
    --tbr-duration:   0.3s;
}

/* ─── Global resets for TBR namespace ───────────────────────── */
[class^="tbr-"],
[class*=" tbr-"] {
    box-sizing: border-box;
}

/* ─── Scroll lock when modal open ───────────────────────────── */
body.tbr-modal-open {
    overflow: hidden;
}

#main-hero-home .hero-main-container h1,
#main-hero-home .hero-main-container p.subtitle {
    text-shadow: 1px 1px 2px #000, 0 0 10px #000;
}

@media(min-width: 1200px){
    #main-hero-home.body-remember .hero-main-container h1{
        max-width: 1080px;
        text-align: left;
    }
    #main-hero-home.body-remember .hero-main-container p.subtitle {
        text-align: left;
        max-width: 1080px;
        width: 100%;
    }
}

/* =============================================================
   BLOCK 1: HERO SECTION
   ============================================================= */
.tbr-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--tbr-black);
    background-size: cover;
    background-position: center 80%;
    background-repeat: no-repeat;
    overflow: hidden;
}

.tbr-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(30, 21, 21, 0.35) 0%,
        rgba(30, 21, 21, 0.55) 50%,
        rgba(30, 21, 21, 0.80) 100%
    );
    z-index: 1;
}

.tbr-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    gap: 0;
}

.tbr-hero__logo {
    display: block;
    margin-bottom: 48px;
}

.tbr-hero__logo img {
    width: 140px;
    height: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.tbr-hero__title-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.tbr-hero__label {
    font-family: var(--tbr-font);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(249, 248, 246, 0.7);
    margin: 0;
}

.tbr-hero__title {
    font-family: var(--tbr-font);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--tbr-white);
    margin: 0;
}

/* Scroll indicator */
.tbr-hero__scroll {
    display: block;
    margin-top: 64px;
    color: rgba(249, 248, 246, 0.5);
    transition: color var(--tbr-duration) var(--tbr-ease);
    text-decoration: none;
}

.tbr-hero__scroll:hover {
    color: rgba(249, 248, 246, 0.9);
}

.tbr-hero__scroll-dot {
    animation: tbr-scroll-bounce 2s ease-in-out infinite;
}

@keyframes tbr-scroll-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(14px); }
}

/* =============================================================
   BLOCK 2: PROJECT MANIFEST
   ============================================================= */
.tbr-manifest {
    padding: 80px 0 72px;
    background: var(--tbr-white);
}

.tbr-manifest p{
    margin-bottom: 20px;
}

.tbr-manifest .col-12{
    max-width: 900px;
}

/* =============================================================
   SHARED BLOCKQUOTE
   ============================================================= */
.tbr-blockquote {
    margin: 0;
    border: none;
    padding: 0;
    font-family: var(--tbr-font);
}

.tbr-blockquote p {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 300;
    line-height: 1.7;
    color: var(--tbr-charcoal);
    margin: 0 0 1em;
}

.tbr-blockquote p:last-child { margin-bottom: 0; }

/* Centered variant */
.tbr-blockquote--center {
    text-align: center;
    position: relative;
    padding-top: 24px;    
}

.tbr-blockquote--center::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--tbr-mid);
    margin: 0 auto 24px;
}

/* Quote variant (with big mark) */
.tbr-blockquote--quote {
    position: relative;
    padding-left: 0;
}

.tbr-blockquote__mark {
    font-family: Georgia, serif;
    font-size: 120px;
    line-height: 0.6;
    color: var(--tbr-light);
    margin-bottom: 16px;
    user-select: none;
}

.tbr-blockquote__author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--tbr-light);
}

.tbr-blockquote__name {
    font-size: 16px;
    font-weight: 500;
    color: var(--tbr-black);
    letter-spacing: 0.02em;
}

.tbr-blockquote__role {
    font-size: 13px;
    font-weight: 400;
    color: var(--tbr-mid);
    letter-spacing: 0.04em;
}

/* =============================================================
   BLOCK 3: FOUNDER'S QUOTE
   ============================================================= */
.tbr-founder {
    padding: 80px 0;
    background: var(--tbr-bg);
}

.tbr-founder .hero-owner .hero-owner-text{
    border-right: none;
    margin-right: 0;
    padding-right: 0;
}

.tbr-founder__inner {
    display: flex;
    align-items: flex-start;
    gap: 64px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.tbr-founder__portrait img {
    width: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    display: block;
    
}

.tbr-founder__text {
    flex: 1;
    padding-top: 4px;
}

@media (max-width: 767px) {
    .tbr-founder__inner {
        flex-direction: column;
        gap: 32px;
    }
    .tbr-founder__portrait {
        width: 100%;
        max-width: 240px;
    }
    .tbr-founder__portrait img {
        height: 300px;
    }
}

/* =============================================================
   BLOCK 4: PHOTOGRAPHER
   ============================================================= */
.tbr-photographer {
    padding: 80px 0;
    background: var(--tbr-white);
    border-top: 1px solid var(--tbr-light);
    border-bottom: 1px solid var(--tbr-light);
}

.tbr-photographer .hero-owner.hero-owner-second .hero-owner-text{
    border-left: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}
.tbr-founder .hero-owner .hero-owner-text p,
.tbr-photographer .hero-owner .hero-owner-text p{
    max-width: 100%;
}

.tbr-photographer__inner {
    display: flex;
    align-items: flex-start;
    gap: 56px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.tbr-photographer__portrait {
    flex-shrink: 0;
    width: 220px;
}

.tbr-photographer .hero-owner img {
    filter: grayscale(1);
}

.tbr-photographer__text {
    flex: 1;
    padding-top: 8px;
}

.tbr-photographer__eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tbr-mid);
    margin: 0 0 12px;
}

.tbr-photographer__name {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 300;
    color: var(--tbr-black);
    margin: 0 0 20px;
    letter-spacing: -0.01em;
}

.tbr-photographer__bio p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tbr-charcoal);
    margin: 0 0 12px;
}

/* Responsive: photographer */
@media (max-width: 767px) {
    .tbr-photographer__inner {
        flex-direction: column;
        gap: 32px;
    }
    .tbr-photographer__portrait {
        width: 100%;
        max-width: 280px;
    }
    .tbr-photographer__portrait img {
        height: 360px;
    }
}

/* =============================================================
   BLOCK 5: HEROES GRID
   ============================================================= */
.tbr-heroes {
    padding: 80px 0 96px;
    background: var(--tbr-black);
}

.tbr-heroes__title {
    font-family: var(--tbr-font);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    color: var(--tbr-white);
    letter-spacing: -0.01em;
    margin: 0 0 48px;
    text-align: center;
}

.tbr-heroes__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

@media (min-width: 992px) {
    .tbr-heroes__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 1200px) {
    .tbr-heroes__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 575px) {
    .tbr-heroes__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
    }
}

/* Hero card */
.tbr-hero-card {
    position: relative;
    background: var(--tbr-charcoal);
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.tbr-hero-card:focus {
    outline: 2px solid var(--tbr-white);
    outline-offset: -2px;
    z-index: 2;
}

.tbr-hero-card__img-wrap {
    position: absolute;
    inset: 0;
}

.tbr-hero-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    display: block;
    transition: transform 0.5s var(--tbr-ease), filter 0.4s var(--tbr-ease);
}

.tbr-hero-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: var(--tbr-charcoal);
    color: var(--tbr-mid);
}
.tbr-hero-card__img--placeholder svg {
    width: 48px;
    height: 48px;
}

.tbr-hero-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(30, 21, 21, 0.75) 100%
    );
    opacity: 0;
    transition: opacity var(--tbr-duration) var(--tbr-ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbr-hero-card__cta {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tbr-white);
    border: 1px solid rgba(249, 248, 246, 0.6);
    padding: 8px 20px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s var(--tbr-ease), transform 0.25s var(--tbr-ease);
}

.tbr-hero-card:hover .tbr-hero-card__img {
    transform: scale(1.04);
    filter: grayscale(0%);
}
.tbr-hero-card:hover .tbr-hero-card__overlay {
    opacity: 1;
}
.tbr-hero-card:hover .tbr-hero-card__cta {
    opacity: 1;
    transform: translateY(0);
}

/* Card info — bottom overlay */
.tbr-hero-card__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 16px 14px;
    background: linear-gradient(to bottom, transparent, rgba(30, 21, 21, 0.88));
    z-index: 1;
}

.tbr-hero-card__name {
    font-size: 14px;
    font-weight: 500;
    color: var(--tbr-white);
    margin: 0 0 2px;
    line-height: 1.3;
}

.tbr-hero-card__service {
    font-size: 11px;
    font-weight: 400;
    color: rgba(249, 248, 246, 0.6);
    margin: 0;
    line-height: 1.4;
    letter-spacing: 0.03em;
}

/* =============================================================
   MODAL / DRAWER
   ============================================================= */
.tbr-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
}

.tbr-modal[hidden] {
    display: none;
}

.tbr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 21, 21, 0.7);
    cursor: pointer;
}

.tbr-modal__drawer {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 740px;
    background: var(--tbr-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 100vh;
}

/* Close button */
.tbr-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--tbr-white);
    border: 1px solid var(--tbr-light);
    border-radius: 50%;
    color: var(--tbr-black);
    cursor: pointer;
    transition: background var(--tbr-duration), color var(--tbr-duration);
    padding: 0;
}

.tbr-modal__close:hover {
    background: var(--tbr-black);
    color: var(--tbr-white);
    border-color: var(--tbr-black);
}

/* Navigation */
.tbr-modal__nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 84px 20px 24px;
    flex-shrink: 0;
}

.tbr-modal__nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--tbr-light);
    color: var(--tbr-black);
    cursor: pointer;
    transition: background var(--tbr-duration), color var(--tbr-duration);
    padding: 0;
}

.tbr-modal__nav-btn:hover:not(:disabled) {
    background: var(--tbr-black);
    color: var(--tbr-white);
    border-color: var(--tbr-black);
}

.tbr-modal__nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.tbr-modal__nav-counter {
    font-size: 13px;
    color: var(--tbr-mid);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
}

/* Modal body */
.tbr-modal__body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Gallery pane */
.tbr-modal__gallery {
    flex-shrink: 0;
    width: 50%;
    position: relative;
    background: var(--tbr-black);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tbr-modal__gallery-track {
    flex: 1;
    position: relative;
}

.tbr-modal__gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s var(--tbr-ease);
}

.tbr-modal__gallery-slide.active {
    opacity: 1;
    position: relative;
    height: 100%;
}

.tbr-modal__gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    display: block;
}

.tbr-modal__gallery-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    flex-shrink: 0;
}

.tbr-modal__gallery-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(249, 248, 246, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background var(--tbr-duration);
}

.tbr-modal__gallery-dot.active,
.tbr-modal__gallery-dot:hover {
    background: var(--tbr-white);
}

/* Content pane */
.tbr-modal__content {
    flex: 1;
    padding: 32px 28px 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tbr-modal__name {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 400;
    color: var(--tbr-black);
    margin: 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.tbr-modal__meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--tbr-light);
}

.tbr-modal__service,
.tbr-modal__injury {
    font-size: 13px;
    color: var(--tbr-mid);
    letter-spacing: 0.03em;
}

.tbr-modal__service::before {
    content: '○ ';
}
.tbr-modal__injury::before {
    content: '— ';
}

.tbr-modal__qa {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tbr-modal__question {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tbr-mid);
    margin: 0;
}

/* Бліц-фраза — великий акцентний шрифт згідно ТЗ */
.tbr-modal__answer {
    font-size: clamp(20px, 2.6vw, 20px);
    font-weight: 300;
    line-height: 1.45;
    color: var(--tbr-black);
    margin: 0;
    font-style: italic;
    letter-spacing: -0.01em;
}

/* CTA в модалі */
.tbr-modal__cta {
    margin-top: auto;
    padding-top: 24px;
}

.tbr-modal__donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: transparent;
    color: var(--tbr-black);
    font-family: var(--tbr-font);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--tbr-black);
    transition: background var(--tbr-duration) var(--tbr-ease),
                color var(--tbr-duration) var(--tbr-ease);
}

.tbr-modal__donate-btn:hover {
    background: var(--tbr-black);
    color: var(--tbr-white);
}

/* Modal responsive */
@media (max-width: 767px) {
    .tbr-modal__gallery-dots{
        position: absolute;
    }
    
    .tbr-modal__drawer {
        max-width: 100%;
    }

    .tbr-modal__body {
        flex-direction: column;
        overflow-y: auto;
    }

    .tbr-modal__gallery {
        width: 100%;
        min-height: 56vw;
        max-height: 380px;
        flex-shrink: 0;
    }

    .tbr-modal__gallery-slide img {
        height: 100%;
        max-height: 380px;
    }

    .tbr-modal__content {
        padding: 24px 20px 32px;
    }
}

/* =============================================================
   BLOCK 6: CTA
   ============================================================= */
.tbr-cta {
    padding: 100px 0;
    background: var(--tbr-bg);
}

.tbr-cta__inner {
    text-align: center;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.tbr-cta__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 300;
    color: var(--tbr-black);
    letter-spacing: -0.01em;
    margin: 0;
}

.tbr-cta__text {
    font-size: 16px;
    line-height: 1.65;
    color: var(--tbr-charcoal);
    margin: 0;
}

.tbr-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    background: var(--tbr-black);
    color: var(--tbr-white);
    font-family: var(--tbr-font);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--tbr-black);
    transition: background var(--tbr-duration) var(--tbr-ease),
                color var(--tbr-duration) var(--tbr-ease);
    margin-top: 8px;
}

.tbr-cta__btn:hover {
    background: transparent;
    color: var(--tbr-black);
}

/* =============================================================
   RESPONSIVE — General spacing
   ============================================================= */
@media (max-width: 991px) {
    .tbr-manifest,
    .tbr-founder,
    .tbr-photographer,
    .tbr-heroes,
    .tbr-cta {
        padding-top: 64px;
        padding-bottom: 64px;
    }
    #main-hero-home.body-remember {
        background-position: top 50px right 21%;
    }
}

@media (max-width: 575px) {
    .tbr-hero__content {
        padding: 100px 20px 60px;
    }

    .tbr-manifest,
    .tbr-founder,
    .tbr-photographer,
    .tbr-cta {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .tbr-heroes {
        padding-top: 48px;
        padding-bottom: 64px;
    }

    .tbr-blockquote__mark {
        font-size: 80px;
    }
}

/* =============================================================
   PRINT — hide interactive elements
   ============================================================= */
@media print {
    .tbr-modal,
    .tbr-hero__scroll {
        display: none !important;
    }
    .tbr-hero {
        min-height: auto;
        page-break-after: always;
    }
}