/* ── sale-a-devolver/style.css ──
   Styles only used by the Sale a Devolver page. Shared pieces (header, cards,
   buttons, reveal, lightbox, footer) come from /assets/css/site.css. */

/* ── Hero ── */
.hero {
    min-height: 100vh;
    justify-content: center;
    padding-top: calc(var(--header-h) + 4rem);
    background:
        radial-gradient(ellipse at 50% 35%, rgba(211,47,47,0.08) 0%, rgba(248,249,250,0) 60%),
        var(--bg-color);
}

.hero-logo {
    width: min(560px, 90vw);
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 18px 30px rgba(0,0,0,0.18));
    animation: stamp 0.7s cubic-bezier(0.2, 1.6, 0.4, 1) both;
}

@keyframes stamp {
    from { transform: scale(1.4) rotate(-6deg); opacity: 0; }
    to { transform: scale(1) rotate(0); opacity: 1; }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-tagline em {
    color: var(--accent);
    font-style: italic;
}

.hero-meta {
    justify-content: center;
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ── Case file (premise) ── */
.dossier {
    position: relative;
    max-width: 820px;
    width: 100%;
    margin-top: 3rem;
    background: var(--paper);
    border: 1px solid var(--paper-border);
    border-radius: 4px;
    padding: 3rem 2.75rem;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.dossier-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px dashed #CDBF9F;
    padding-bottom: 0.9rem;
    margin-bottom: 1.5rem;
}

.dossier p {
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.dossier p:last-of-type { margin-bottom: 0; }

.stamp {
    position: absolute;
    right: 1.75rem;
    bottom: -1.5rem;
    transform: rotate(-9deg);
    border: 3px solid var(--accent);
    color: var(--accent);
    background: rgba(251,247,238,0.92);
    padding: 0.4rem 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 4px;
}

/* ── Screenshots ── */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 3.5rem;
}

.gallery figure {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: left;
}

.gallery figure.wide { grid-column: 1 / -1; }

.gallery button {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    background: #000;
    cursor: zoom-in;
    overflow: hidden;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.gallery button:hover img { transform: scale(1.03); }

.gallery figcaption {
    padding: 1rem 1.25rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ── Cast ── */
.cast {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 3.5rem;
}

.person {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem 1.75rem 1.75rem;
    text-align: left;
    box-shadow: var(--shadow-card);
    transition: transform 0.4s var(--ease-out), border-color 0.4s ease;
}

.person:hover {
    transform: translateY(-4px);
    border-color: rgba(211, 47, 47, 0.3);
}

.person::before {
    content: '';
    position: absolute;
    top: -7px;
    left: 50%;
    width: 54px;
    height: 14px;
    margin-left: -27px;
    background: rgba(211, 47, 47, 0.18);
    transform: rotate(-3deg);
}

.person-role {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    color: var(--accent);
}

.person h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin: 0.35rem 0 0.75rem;
    line-height: 1.25;
}

.person p {
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.7;
}

.person blockquote {
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px dashed var(--border-color);
    font-style: italic;
    font-size: 0.92rem;
}

/* ── A working day ── */
.timeline {
    list-style: none;
    max-width: 760px;
    width: 100%;
    margin-top: 3rem;
    text-align: left;
    border-left: 2px solid var(--accent-line);
}

.timeline li {
    position: relative;
    padding: 0 0 2rem 2rem;
}

.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0.45rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--bg-color);
}

.timeline time {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent);
    margin-right: 0.5rem;
}

.timeline strong { font-weight: 600; }

.timeline p {
    color: var(--text-muted);
    margin-top: 0.25rem;
}

@media (prefers-reduced-motion: reduce) {
    .hero-logo { animation: none; }
}

@media (max-width: 860px) {
    .hero { padding-top: calc(var(--header-h) + 2.5rem); }
    .dossier { padding: 2rem 1.5rem 2.75rem; }
    .dossier-head { flex-direction: column; gap: 0.25rem; }
    .gallery, .cast { grid-template-columns: 1fr; }
}
