/* Explain: Styles for the brochures page and PDF upload tool. */
/* ---------- Brochures page — retro chic ---------- */
.brochures-page {
    position: relative;
    overflow: hidden;
    padding-block: 0 4rem;
    background-color: var(--peach-color);
}

.brochures-stripe {
    position: relative;
    z-index: 1;
}

.brochures-burst {
    position: absolute;
    top: -7rem;
    right: -7rem;
    width: 20rem;
    height: 20rem;
    border-radius: 50%;
    opacity: 0.32;
    background: repeating-conic-gradient(
        from 0deg,
        var(--accent-color) 0deg 12deg,
        transparent 12deg 24deg
    );
    pointer-events: none;
    z-index: 0;
}

@media (max-width: 640px) {
    .brochures-burst { display: none; }
}

.brochures-head {
    position: relative;
    z-index: 1;
    max-width: 62rem;
    margin-block: 2.75rem;
}

.brochures-head h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    line-height: 1.05;
    margin: 0 0 1.1rem;
    color: var(--text-color);
}

.brochures-intro {
    max-width: 46rem;
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 0 1.1rem;
}

.brochures-cta-line {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.brochures-cta-line a {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.brochures-cta-line a:hover {
    color: var(--primary-hover);
}

.brochures-copy {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-muted);
    opacity: 0.85;
    margin: 0;
}

/* ---------- Card grid ---------- */
.brochures-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
}

@media (min-width: 640px) {
    .brochures-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .brochures-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
    .brochures-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.brochure-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 1.35rem 1rem 1.1rem;
    text-align: center;
    background: #fffdf7;
    border: 3px solid var(--text-color);
    border-radius: var(--radius-lg);
    box-shadow: 4px 4px 0 var(--text-color);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.brochure-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0 var(--text-color);
}

.brochure-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 9rem;
    aspect-ratio: 3 / 4;
    margin-bottom: 1.1rem;
}

.brochure-thumb img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 3px;
    box-shadow: 0 7px 16px rgba(59, 42, 26, 0.32);
}

.brochure-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--text-color);
    margin: 0 0 1rem;
}

.brochure-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    background: var(--primary-color);
    border: 3px solid var(--text-color);
    border-radius: var(--radius-pill);
    box-shadow: 3px 3px 0 var(--text-color);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.brochure-link i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.brochure-link:hover {
    background: var(--primary-hover);
    color: #fff;
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--text-color);
}

.brochure-link:hover i {
    transform: translateX(3px);
}

.brochure-link-alt {
    background: var(--teal-deep);
}

.brochure-link-alt:hover {
    background: var(--teal-deep-hover);
}

@media (prefers-reduced-motion: reduce) {
    .brochure-card,
    .brochure-link,
    .brochure-link i { transition: none; }
}

/* ---------- Owner PDF upload tool ---------- */
.brochures-owner-tool {
    position: relative;
    z-index: 1;
    margin-top: 2.75rem;
    margin-bottom: 0.5rem;
}

.upload-panel {
    max-width: 46rem;
    margin-inline: auto;
    padding: 2rem 1.5rem;
    background: #fffdf7;
    border: 3px solid var(--text-color);
    border-radius: var(--radius-lg);
    box-shadow: 6px 6px 0 var(--text-color);
}

@media (min-width: 768px) {
    .upload-panel { padding: 2.5rem 2.25rem; }
}

.upload-panel-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.6vw, 2rem);
    line-height: 1.1;
    margin: 0.9rem 0 0.6rem;
    color: var(--text-color);
}

.upload-panel-text {
    margin: 0 0 1.6rem;
    color: var(--text-muted);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.upload-form .upload-field { flex: 1 1 auto; }

@media (min-width: 640px) {
    .upload-form {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .upload-form .upload-field { flex: 1 1 20rem; }
}

.upload-form .form-status { flex-basis: 100%; }

.upload-result {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 3px dotted var(--border-color);
}

.upload-result[hidden] { display: none; }

.upload-result label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-color);
}

.upload-result-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.upload-result-row input {
    flex: 1 1 14rem;
    padding: 0.7rem 0.9rem;
    border: 3px solid var(--text-color);
    border-radius: var(--radius-md);
    background: var(--background-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.upload-result-note {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
}