/* Lex Corp Media - home and contact page rules. Builds on css/site.css (shared design system). */

/* ---------- Services ---------- */
.section-description-wide { max-width: 820px; }
.service-card { padding: 28px 24px; }
.service-card p { margin: 0; font-size: 0.95rem; color: var(--lcm-grey-dark); }
.service-card .card-title { margin-bottom: 12px; }

.why-grid { margin-top: 32px; }
.why-grid .card { padding: 32px; }
.why-grid .card-title { margin-bottom: 12px; }
.why-grid p { font-size: 0.95rem; color: var(--lcm-grey-dark); }
.why-grid p:last-child { margin-bottom: 0; }

/* ---------- Prepress desk call-out ---------- */
.callout-section { padding: 56px 0; }
.callout {
    display: flex; align-items: center; justify-content: space-between; gap: 24px 40px;
    background: var(--lcm-white); border: 2px solid var(--lcm-grey-light);
    border-left: 4px solid var(--lcm-cyan); border-radius: var(--lcm-radius-lg);
    padding: 32px 40px; box-shadow: var(--lcm-card-shadow);
}
.callout-text { min-width: 0; }
.callout-text .badge-accent { margin-bottom: 14px; }
.callout-title { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.callout-text p { margin: 0; color: var(--lcm-grey-dark); max-width: 640px; }
.callout-action { flex: 0 0 auto; }

/* ---------- Portfolio ---------- */
.work-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin: -12px 0 32px;
}
.work-filter {
    min-height: 44px; min-width: 76px; padding: 8px 20px;
    font-family: var(--font-main); font-size: 0.9rem; font-weight: 800; line-height: 1.2;
    color: var(--lcm-grey-dark); background: var(--lcm-white);
    border: 2px solid var(--lcm-border); border-radius: var(--lcm-radius);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.work-filter:hover { border-color: var(--lcm-cyan); color: var(--lcm-cyan-hover); }
.work-filter.is-active { background: var(--lcm-black); border-color: var(--lcm-black); color: var(--lcm-white); }

.work-grid {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.work-item { min-width: 0; display: flex; }
.work-item[hidden] { display: none; }

.work-card {
    display: flex; flex-direction: column; width: 100%;
    background: var(--lcm-white); border: 2px solid var(--lcm-grey-light);
    border-radius: var(--lcm-radius-lg); overflow: hidden;
    box-shadow: var(--lcm-card-shadow); transition: border-color 0.25s ease;
}
.work-card:hover, .work-card:focus-within { border-color: var(--lcm-cyan); }

.work-thumb {
    position: relative; display: block; background: var(--lcm-grey-light);
    aspect-ratio: 270 / 250; overflow: hidden; cursor: pointer;
}
.work-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.work-thumb:focus-visible { outline-offset: -3px; }
.work-tag {
    position: absolute; left: 10px; top: 10px;
    background: var(--lcm-black); color: var(--lcm-white);
    font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
    padding: 3px 9px; border-radius: var(--lcm-radius);
}

.work-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 16px 18px 18px; }
.work-kind {
    margin: 0 0 4px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--lcm-cyan-hover);
}
.work-title { font-size: 1.1rem; font-weight: 700; line-height: 1.25; margin: 0 0 4px; }
.work-client { margin: 0; font-size: 0.875rem; color: var(--lcm-grey-mid); }

/* ---------- Project details ---------- */
.work-project { display: block; text-decoration: none; color: inherit; }
.work-project:hover { color: inherit; }
.work-placeholder { display: grid; place-items: center; height: 100%; color: var(--lcm-cyan-hover); font-weight: 800; }
.project-dialog { border: 1px solid var(--lcm-grey-light); border-radius: 14px; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 28px); padding: 0; color: var(--lcm-black); background: var(--lcm-white); box-shadow: 0 20px 65px #0d1c3855; overscroll-behavior: contain; margin: auto; }
.project-dialog::backdrop { background: rgb(13 24 42 / .72); }
html:has(.project-dialog) { scrollbar-gutter: stable; }
html:has(.project-dialog[open]) { overflow: hidden; }
.project-details { padding: clamp(16px, 4vw, 30px); }
.project-dialog-header, .project-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.project-dialog .btn { min-height: 36px; padding: 6px 12px; }
.project-dialog h2 { margin: .35rem 0; overflow-wrap: anywhere; }
.project-description { white-space: pre-wrap; overflow-wrap: anywhere; }
.project-details :is(.work-kind, .work-client, .project-description):empty { display: none; }
.project-image { display: block; width: 100%; max-height: 55vh; object-fit: contain; margin: 16px 0 0; background: #f4f6f8; border-radius: 8px; }
.project-image[hidden], .project-dialog [hidden] { display: none; }
.project-pagination { padding: 12px clamp(16px, 4vw, 30px); background: #f4f6f8; border-top: 1px solid var(--lcm-grey-light); }
.project-pagination:has([data-project-count][hidden]) { display: none; }

/* ---------- Clients ---------- */
.clients-strip {
    max-width: 1000px; margin: 0 auto; overflow: hidden;
    border-radius: var(--lcm-radius-lg); background: var(--lcm-black);
    box-shadow: var(--lcm-card-shadow);
}
.clients-strip img { display: block; width: 100%; height: auto; }

/* ---------- About ---------- */
.about-grid { align-items: start; gap: 48px; }
.about-grid p { color: var(--lcm-grey-dark); font-size: 1.02rem; }
.about-grid .card { padding: 32px; }
.about-grid .feature-list li { margin-bottom: 10px; }

/* ---------- Closing call-to-action ---------- */
.cta-contacts {
    list-style: none; margin: -16px 0 32px; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 40px;
}
.cta-contacts li { min-width: 0; max-width: 100%; }
.cta-label {
    display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--lcm-grey-mid);
}
.cta-contacts a, .cta-value {
    display: inline-flex; align-items: center; min-height: 44px;
    font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
    color: var(--lcm-black); text-decoration: none; overflow-wrap: anywhere;
}
.cta-contacts a:hover { color: var(--lcm-cyan-hover); }

/* ---------- Contact page ---------- */
.contact-grid { align-items: start; gap: 48px; }
.contact-details p { color: var(--lcm-grey-dark); }
.contact-list { margin: 28px 0; padding: 0; border-top: 1px solid var(--lcm-border); }
.contact-row {
    display: flex; align-items: center; gap: 16px;
    min-height: 56px; padding: 6px 0; border-bottom: 1px solid var(--lcm-border);
}
.contact-row dt {
    flex: 0 0 96px; font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--lcm-grey-mid);
}
.contact-row dd { margin: 0; min-width: 0; font-size: 1.1rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-row dd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--lcm-black); text-decoration: none; }
.contact-row dd a:hover { color: var(--lcm-cyan-hover); }
.contact-note { font-size: 0.95rem; }
.contact-grid .form-wrapper { max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .callout { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .callout-title { font-size: 1.4rem; }
    .why-grid .card, .about-grid .card { padding: 28px 24px; }
    .about-grid, .contact-grid { gap: 32px; }
    .contact-grid .form-wrapper { max-width: 600px; }
}

@media (max-width: 700px) {
    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .work-body { padding: 12px 12px 14px; }
    .work-title { font-size: 1rem; }
    .work-kind { font-size: 0.66rem; letter-spacing: 0.05em; }
    .work-client { font-size: 0.8rem; }
    .work-tag { left: 8px; top: 8px; }
}

@media (max-width: 520px) {
    .callout-action, .callout-action .btn { width: 100%; }
    .work-filters { gap: 8px; }
    .work-filter { flex: 1 1 calc(50% - 8px); padding: 8px 12px; }
    .cta-contacts { flex-direction: column; gap: 12px; align-items: center; }
    .cta-contacts a, .cta-value { font-size: 1.15rem; }
    .contact-row dt { flex-basis: 76px; }
    .contact-row dd { font-size: 1rem; }
}

/* ---------- Branding slideshow (home) ---------- */
.brand-slider { position: relative; max-width: 1600px; margin: 0 auto; background: var(--lcm-black); overflow: hidden; }
.brand-slides { position: relative; aspect-ratio: 7 / 3; }
.brand-slide {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
    opacity: 0; transition: opacity 0.8s ease;
}
.brand-slide.is-active { opacity: 1; }
.brand-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; padding: 0;
    background: rgba(17, 17, 17, 0.55); color: var(--lcm-white);
    border: 1px solid rgba(255, 255, 255, 0.7); border-radius: var(--lcm-radius);
    font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.brand-nav:hover { background: var(--lcm-cyan); border-color: var(--lcm-cyan); }
.brand-prev { left: 16px; }
.brand-next { right: 16px; }
.brand-slider + .hero-section { padding-top: 56px; }

/* ---------- Lightning-bolt heading divider (main site theme) ---------- */
.section-title::after {
    content: ""; display: block;
    width: 373px; max-width: 100%; height: 31px; margin: 10px 0 0;
    background: url("../images/under-heading.png") center / contain no-repeat;
}
.text-center > .section-title::after { margin-left: auto; margin-right: auto; }
.section-title + .section-description { margin-top: 16px; }

@media (max-width: 520px) {
    .brand-nav { width: 40px; height: 40px; font-size: 1.5rem; }
    .brand-prev { left: 8px; }
    .brand-next { right: 8px; }
}
