/* Project Detail Page Styles
   ---------------------------------------------------------------
   Visual language mirrors the homepage (see home.css):
   - cream surface (#f7f4ef)
   - Manrope 42/800 section titles with -1px tracking
   - Inter 14.5/1.6 body copy in slate-500
   - Cards: 20px radius, 26-32px padding
*/

body.page--project-detail { background: #f7f4ef; }

/* Main Layout */
.main--detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 48px;
    padding-top: 120px;
    background: #f7f4ef;
}

.detail-container {
    width: 100%;
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
}

.breadcrumbs__link {
    color: #8d5e66;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.breadcrumbs__link:hover {
    color: #ff385d;
}

.breadcrumbs__separator {
    display: flex;
    align-items: center;
    color: #8d5e66;
}

.breadcrumbs__current {
    color: #181012;
    font-weight: 600;
}

/* Two Column Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 341px;
    gap: 56px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.detail-sidebar {
    position: sticky;
    top: 120px;
}

/* Project Header */
.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.project-header__title {
    font-family: 'Manrope', sans-serif;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #0f172a;
    margin: 0;
    line-height: 1.08;
}

.project-header__badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-header__badge--urgent {
    background-color: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid #fecaca;
}

.project-header__badge--upcoming {
    background-color: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid #fde68a;
}

.project-header__badge--flexible {
    background-color: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Project Hero */
.project-hero {
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.project-hero {
    position: relative;
}
.project-hero__image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
/* Muted light-gray fallback when there's no cover image (or the owner
   explicitly removed it). Same tone as the rest of the dashboard's
   neutral surfaces. */
.project-hero__image--placeholder {
    background: #e5e7eb;
}

/* Owner-only "Edit cover" button pinned to the hero's bottom-right
   (LinkedIn-style). Hidden if the viewer isn't the project owner. */
.hero-edit-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 9999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(6px);
    transition: background 0.15s, transform 0.15s;
    z-index: 2;
}
.hero-edit-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}

/* Cover-edit modal — LinkedIn-like editor with reposition slider,
   upload button, and gallery picker. */
.cover-modal {
    position: fixed;
    inset: 0;
    z-index: 2500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.cover-modal.is-open { display: flex; }
.cover-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
}
.cover-modal__panel {
    position: relative;
    width: 100%;
    max-width: 720px;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
.cover-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}
.cover-modal__title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}
.cover-modal__close {
    background: none;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.cover-modal__close:hover { background: #f1f5f9; color: #0f172a; }
.cover-modal__body { padding: 18px 20px; overflow-y: auto; flex: 1; min-height: 0; }
.cover-modal__preview {
    width: 100%;
    /* aspect-ratio matches the actual hero on the page (set by JS when the
       modal opens). Fallback ~3:1 covers the typical wide hero look. */
    aspect-ratio: 3 / 1;
    background: #f8f6f2;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
}
.cover-modal__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: object-position 0.1s linear;
}
.cover-modal__slider-wrap {
    margin-bottom: 18px;
}
.cover-modal__slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 6px;
}
.cover-modal__slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    outline: none;
}
.cover-modal__slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #ff385d;
    border-radius: 50%;
    cursor: pointer;
}
.cover-modal__slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #ff385d;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.cover-modal__actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.cover-modal__btn {
    flex: 1;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.cover-modal__btn:hover { border-color: #ff385d; background: #fef2f4; color: #ff385d; }
.cover-modal__btn--danger { color: #dc2626; }
.cover-modal__btn--danger:hover { border-color: #dc2626; background: #fef2f2; color: #dc2626; }
.cover-modal__gallery-title {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.cover-modal__gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.cover-modal__gallery-item {
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f8f6f2;
    padding: 0;
    transition: border-color 0.15s;
}
.cover-modal__gallery-item img,
.cover-modal__gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.cover-modal__gallery-item:hover { border-color: #ff385d; }
.cover-modal__gallery-item.is-selected { border-color: #ff385d; }
.cover-modal__foot {
    padding: 14px 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.cover-modal__save {
    padding: 10px 22px;
    background: #ff385d;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.cover-modal__save:hover { background: #e6324f; }
.cover-modal__save:disabled { background: #cbd5e1; cursor: not-allowed; }

/* Project Details Section */
.project-details {
    margin-bottom: 40px;
}

.project-details__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #181012;
    margin: 0 0 20px 0;
}

/* Details Grid */
.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.detail-card {
    background-color: #ffffff;
    border: 1px solid #f0e8e9;
    border-radius: 12px;
    padding: 16px;
}

.detail-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.detail-card__icon {
    color: #8d5e66;
    flex-shrink: 0;
}

.detail-card__label {
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #8d5e66;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-card__value {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #181012;
    display: block;
}

/* Project Description */
.project-description {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0e8e9;
}

.project-description__intro {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #181012;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.project-description__intro strong {
    font-weight: 700;
}

.project-description__list {
    margin: 0 0 24px 0;
    padding-left: 20px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #5c4a4d;
    line-height: 1.8;
}

.project-description__list li {
    margin-bottom: 8px;
}

.project-description__list li:last-child {
    margin-bottom: 0;
}

.project-description__body {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    color: #5c4a4d;
    line-height: 1.7;
}

.project-description__body p {
    margin: 0 0 16px 0;
}

.project-description__body p:last-child {
    margin-bottom: 0;
}

.project-description__body u {
    text-decoration: underline;
}

/* Deliverables Section */
.deliverables-section {
     margin-bottom: 40px;
    padding: 32px;
    border-bottom: 1px solid #f0e8e9;
    background-color: white;
    border-radius: 24px;
}

.deliverables-section__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #181012;
    margin: 0 0 20px 0;
}

.deliverables-grid {
    display: flex;
    gap: 24px;
}

.deliverable-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-right: 60px;
    flex-direction: column;
}

.deliverable-item__icon {
    flex-shrink: 0;
    /* color: #0f172a; */
    margin-top: 2px;
    fill: #FF385C;
}

.deliverable-item__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deliverable-item__title {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;

    margin: 0;
}

.deliverable-item__desc {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8d5e66;
    margin: 0;
}

/* Inspiration Gallery Section */
.inspiration-gallery {
    margin-bottom: 24px;
    padding-bottom: 40px;
    border-bottom: 1px solid #f0e8e9;
}

.inspiration-gallery__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.inspiration-gallery__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #181012;
    margin: 0;
}

.inspiration-gallery__links {
    display: flex;
    gap: 8px;
}

.inspiration-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: rgba(255, 56, 93, 0.1);
    border-radius: 9999px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #ff385d;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.inspiration-link:hover {
    background-color: rgba(255, 56, 93, 0.2);
}

/* Gallery Grid — fixed 4 per row. All items (images AND videos) share
   the SAME aspect ratio (3:4 portrait) so the row looks uniform. Media
   uses object-fit:cover to fill the cell edge-to-edge — no side bands,
   no white space, all cards same size. Slight edge crop on extreme
   ratios is the trade-off for matching shape across mixed media. */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.gallery-item__image,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Items beyond the initial 8 stay hidden until the user expands. JS
   toggles the .is-expanded class on .gallery-grid to reveal them. */
.gallery-grid--collapsible .gallery-item--hidden { display: none; }
.gallery-grid--collapsible.is-expanded .gallery-item--hidden { display: block; }

.gallery-load-more {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}
.gallery-load-more__btn {
    padding: 9px 22px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #ff385d;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.gallery-load-more__btn:hover {
    background: rgba(255, 56, 93, 0.05);
    border-color: #ff385d;
}

.gallery-item:hover .gallery-item__image {
    transform: scale(1.03);
}

.gallery-item--video .gallery-item__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s ease;
}

.gallery-item--video:hover .gallery-item__overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.gallery-item__play {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item--video:hover .gallery-item__play {
    transform: scale(1.1);
}

/* Final Note Section */
.final-note-section {
    margin-bottom: 40px;
    padding: 32px;
    background-color: white;
    border-radius: 24px ;
}

.final-note-section__title {
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #181012;
    margin: 0 0 16px 0;
}

.final-note-section__content {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5c4a4d;
    line-height: 1.6;
    margin: 0;
    /* padding: 16px; */
    background-color: #fff;
    /* border-left: 4px solid #ff385d; */
}

/* Deadline Section */
.deadline-section {
    margin-bottom: 40px;
    padding: 32px;
    background-color: white;
    border-radius: 24px;
}

.deadline-section__title {
    font-family: 'Manrope', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: rgba(15, 23, 42, 1);
    margin: 0 0 32px 0;
}

.deadline-section__content {
    display: flex;
    align-items: center;
    gap: 20px;
    background-color: #ffffff;
    /* border: 1px solid #f0e8e9; */
    border-radius: 16px;
}

.deadline-section__icon {
    flex-shrink: 0;
    height: 44px;
    width: 44px;
}

.deadline-section__date {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #0F172A;
}

/* Client Card (Sidebar) */
.client-card {
    background-color: #ffffff;
    border: 1px solid #e7dadd;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.client-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.client-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.client-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.client-card__info {
    flex: 1;
    min-width: 0;
}

.client-card__name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.client-card__name {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #181012;
    margin: 0;
}

.client-card__verified {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.client-card__member {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8d5e66;
}

.client-card__budget {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid #f0e8e9;
    border-bottom: 1px solid #f0e8e9;
    margin-bottom: 4px;
}

.client-card__budget-label {
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8d5e66;
}

.client-card__budget-value {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #181012;
}

.client-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn--outline-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    background-color: #ffffff;
    border: 1px solid #e7dadd;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #181012;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn--outline-card:hover {
    border-color: #ff385d;
    color: #ff385d;
}

.client-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #f0e8e9;
}

.client-card__timer {
    display: flex;
    align-items: center;
    gap: 8px;
}

.client-card__timer-label {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #5c4a4d;
}

.client-card__timer-value {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #ff385d;
}

/* Footer */
.footer {
    background-color: #181012;
    padding: 64px 0 32px;
    margin-top: 80px;
}

.footer__container {
    max-width: 1128px;
    margin: 0 auto;
    padding: 0 40px;
}

.footer__main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    margin-bottom: 48px;
}

.footer__brand {
    max-width: 300px;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer__logo-icon {
    width: 24px;
    height: 24px;
    background-color: #ff385d;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__logo-text {
    font-family: 'Manrope', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.footer__tagline {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8d5e66;
    line-height: 1.6;
    margin: 0;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer__column-title {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer__list li {
    margin-bottom: 12px;
}

.footer__list li:last-child {
    margin-bottom: 0;
}

.footer__list a {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8d5e66;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__list a:hover {
    color: #ffffff;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid rgba(141, 94, 102, 0.3);
}

.footer__copyright {
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #8d5e66;
    margin: 0;
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: #8d5e66;
    transition: color 0.2s ease;
}

.footer__social-link:hover {
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .detail-layout {
        gap: 40px;
    }

    .footer__main {
        gap: 60px;
    }
}

@media (max-width: 1024px) {
    .main--detail {
        padding: 24px;
        padding-top: 120px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .detail-sidebar {
        position: static;
        order: -1;
    }

    .details-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer__brand {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main--detail {
        padding: 16px;
        padding-top: 100px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .project-header__title {
        font-size: 24px;
    }

    .project-hero__image { height: 280px; }

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

    .deliverables-grid {
        flex-direction: column;
        gap: 20px;
    }

    .inspiration-gallery__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .inspiration-gallery__links {
        flex-wrap: wrap;
    }

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

    .deadline-section__date {
        font-size: 20px;
    }

    .footer__links {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .footer__links {
        grid-template-columns: 1fr;
    }
}

/* ===============================================================
   HOMEPAGE-STYLE OVERRIDES
   Align the project detail page's typography, surface, and card
   chrome with home.css so a project viewed via "Browse Projects"
   reads in the same visual language as the landing page.
   =============================================================== */

/* Cream surface like home */
.main--detail { background: #f7f4ef; }

/* Section headings = home's .h-section feel (Manrope 800 with tight tracking).
   Sized down vs the hero so they sit comfortably within content cards. */
.deadline-section__title,
.brief-section__title,
.requirements-section__title,
.references-section__title,
.final-note-section__title,
.sidebar-section__title {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.15;
}

/* Body copy = home's .p-section (Inter, comfy line-height, slate-500). */
.deadline-section__date,
.brief-section__description,
.requirements-section__item-value,
.final-note-section__content,
.sidebar-section__label,
.sidebar-section__value,
.breadcrumbs {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.deadline-section__date,
.brief-section__description,
.final-note-section__content {
    font-size: 14.5px;
    line-height: 1.6;
    color: #475569;
}

/* Slightly bump up the main description for readability + justified copy
   so long paragraphs sit cleanly against the card edges. */
.brief-section__description {
    font-size: 16px;
    line-height: 1.7;
    text-align: justify;
    hyphens: auto;
}

/* Cards: rounded surface + roomy padding, matching .talent / .stories from home */
.deadline-section,
.brief-section,
.requirements-section,
.references-section,
.final-note-section,
.detail-sidebar > * {
    background: #ffffff;
    border: 1px solid #ebe5d8;
    border-radius: 20px;
    padding: 28px 32px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    margin-bottom: 20px;        /* consistent gap between stacked cards */
}
/* Drop the trailing gap on the last card so it sits flush with the page bottom. */
.detail-main > :last-child,
.deadline-section:last-child,
.brief-section:last-child,
.requirements-section:last-child,
.references-section:last-child,
.final-note-section:last-child,
.detail-sidebar > :last-child { margin-bottom: 0; }

/* Tighter rhythm between a section's title and its body. */
.deadline-section__title,
.brief-section__title,
.requirements-section__title,
.references-section__title,
.final-note-section__title,
.sidebar-section__title {
    margin: 0 0 14px 0;
}

/* Eyebrow / tags mirror home's .eyebrow accent */
.tag,
.requirements-section__item-label {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #ff385d;
}

/* Sidebar card (right column) — tighter rhythm + saner button sizing.
   The default .btn from styles.css is 56px tall which dwarfs a 341px card. */
.detail-sidebar .client-card {
    padding: 24px;
    border-radius: 20px;
}
.detail-sidebar .client-card__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
}
.detail-sidebar .btn,
.detail-sidebar .btn--full,
.client-card .btn,
.client-card .btn--full {
    height: auto;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    line-height: 1.2;
}

/* Tighter responsive padding so mobile follows the same rhythm as home */
@media (max-width: 768px) {
    .main--detail { padding: 96px 16px 32px; }
    .project-header__title { font-size: 30px; }
    .deadline-section,
    .brief-section,
    .requirements-section,
    .references-section,
    .final-note-section,
    .detail-sidebar > * { padding: 22px 20px; border-radius: 16px; }
    .detail-sidebar .client-card { padding: 20px; }
}
