/* Reusable content cards, forms and editorial blocks. */
.media { position: relative; display: grid; place-items: center; aspect-ratio: 1.55; overflow: hidden; background: var(--jc-gray); border-radius: .65rem; }
.media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.media-placeholder { background: radial-gradient(ellipse at 0 100%, #244792, transparent 65%), var(--jc-blue-dark); color: #DEC847; }
.media-placeholder::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; border: 1px solid rgb(212 184 16 / 35%); border-radius: 50%; top: 40%; left: 30%; }
.media-placeholder > img { width: 50px; height: 63px; object-fit: contain; align-self: end; z-index: 1; margin-top: 2rem; }
.media-placeholder > span { align-self: start; padding-top: .55rem; padding-bottom: 1.5rem; font-size: .64rem; font-family: var(--font-display); letter-spacing: .2em; z-index: 1; }
.cards-grid, .news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.service-card, .project-card, .news-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: white; transition: box-shadow var(--transition), border-color var(--transition); }
.service-card:hover, .project-card:hover, .news-card:hover { box-shadow: var(--shadow); border-color: #ABB9D5; }
.service-card:hover .media > img, .project-card:hover .media > img, .news-card:hover .media > img { transform: scale(1.025); }
.service-visual { position: relative; }
.service-visual .media { border-radius: 0; aspect-ratio: 1.9; }
.service-visual > .service-number { position: absolute; top: 1rem; left: 1.25rem; color: white; font-size: 1.9rem; font-family: var(--font-display); line-height: 1; z-index: 2; text-shadow: 0 1px 6px #07163F; }
.service-visual .media-placeholder img { opacity: .35; width: 45px; height: 54px; margin-left: 50%; }
.service-visual .media-placeholder span { visibility: hidden; padding-bottom: .8rem; }
.service-card:nth-child(3n+2) .media-placeholder { background: radial-gradient(ellipse at 100% 0, #456294, transparent 75%), var(--jc-blue); }
.card-body { display: flex; flex-direction: column; padding: 1.5rem; flex: 1; min-width: 0; }
.card-body h3 { font-size: 1.2rem; line-height: 1.35; }
.card-body p { color: var(--muted); font-size: .81rem; }
.card-body .text-link { margin-top: auto; justify-content: space-between; font-size: .74rem; }
.card-body h3 a:hover { color: var(--jc-blue); }
.service-number { color: var(--jc-blue); font-size: .75rem; font-weight: 700; }
.service-card-accent { padding: 2rem 1.5rem; background: var(--jc-blue); color: #E0E7F5; justify-content: center; position: relative; }
.service-card-accent .eyebrow { color: var(--jc-gold); font-size: .64rem; }
.service-card-accent h3 { color: white; font-size: 1.8rem; }
.service-card-accent p { font-size: .83rem; }
.service-card-accent .button { margin-top: 1rem; font-size: .72rem; padding-inline: .7rem; }
.project-card > .media, .news-card > .media { border-radius: 0; }
.tags, .card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; color: var(--muted); font-size: .69rem; margin-bottom: 1rem; }
.tags a, .tags > span { display: inline-block; color: var(--jc-blue); background: var(--jc-gray); border-radius: .3rem; padding: .25rem .6rem; font-size: .62rem; }
.tags a:hover { background: #E1E7F5; }
.card-meta a:hover { text-decoration: underline; }
.badge { display: inline-block; border-radius: 2rem; padding: .2rem .7rem; background: #F6EDB9; color: #5A4800; font-size: .67rem; font-weight: 700; }
.news-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--jc-gray); }
.news-featured .card-body { padding: clamp(1.5rem, 4vw, 3.5rem); }
.news-featured .card-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.3rem); }
.news-featured .media { height: 100%; min-height: 300px; }
.news-featured .card-body .text-link { justify-content: flex-start; }
.empty-state { background: var(--jc-gray); border: 1px solid var(--line); border-radius: var(--radius); padding: 3rem 2rem; text-align: center; color: var(--muted); }
.empty-state > span { font-size: 2.5rem; color: var(--jc-blue); }
.empty-state p { margin-bottom: .5rem; }
.cta-section { background: var(--jc-blue); color: #DDE5F6; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; border: 1px solid rgb(212 184 16 / 35%); border-radius: 50%; width: 700px; height: 700px; top: -400px; right: -200px; pointer-events: none; }
.cta-inner { display: flex; justify-content: space-between; gap: 4rem; align-items: center; position: relative; }
.cta-section .eyebrow { color: var(--jc-gold); }
.cta-section h2 { color: white; font-size: clamp(2.6rem, 5vw, 4.8rem); }
.cta-section p { font-size: .88rem; }
.cta-actions { display: grid; gap: .9rem; min-width: 250px; }
.cta-actions .text-link { color: white; justify-content: center; font-weight: 400; }
.cta-section :focus-visible, .values-section :focus-visible { outline-color: var(--jc-gold); }
.values-section { background: var(--jc-blue-dark); color: #C7D2E8; }
.values-section h2, .values-section h3 { color: white; }
.values-section .lead { color: #C7D2E8; }
.values-section .eyebrow, .values-section .service-number { color: var(--jc-gold); }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.values-grid > div { display: flex; align-items: baseline; gap: .8rem; padding-block: .8rem; border-bottom: 1px solid #314366; }
.values-grid h3 { font-size: 1rem; line-height: 1.45; margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; list-style: none; gap: 2rem; margin: 0; padding: 0; }
.process-grid li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.process-grid li::before { content: "0" counter(step); display: grid; place-items: center; width: 50px; height: 50px; background: var(--jc-gray); color: var(--jc-blue); font-family: var(--font-display); border-radius: 50%; margin-bottom: 1.5rem; border: 1px solid var(--line); }
.process-grid h3 { font-size: 1.15rem; line-height: 1.4; }
.process-grid p { color: var(--muted); font-size: .82rem; }
.reviews-section { background: var(--jc-gray); }
.reviews-track { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .5rem .3rem 1rem; scrollbar-width: thin; }
.review-card { flex: 0 0 calc((100% - 3rem) / 3); min-width: 0; scroll-snap-align: start; background: white; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius); margin: 0; }
.rating { color: #8C7000; letter-spacing: .12em; }
.review-card blockquote { margin: 0 0 2rem; font-size: .9rem; color: var(--jc-blue-dark); }
.review-card figcaption { display: flex; gap: .8rem; align-items: center; }
.review-card figcaption img, .avatar-initials { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initials { display: grid; place-items: center; background: var(--jc-blue); color: white; }
.review-card figcaption b, .review-card figcaption span, .review-card figcaption small { display: block; font-size: .7rem; line-height: 1.55; }
.review-card figcaption small { color: var(--muted); margin-top: .3rem; }
.carousel-controls { display: flex; gap: .6rem; }
.prose { line-height: 1.9; overflow-wrap: anywhere; }
.prose h2 { font-size: 2rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose a { color: var(--jc-blue); text-decoration: underline; text-underline-offset: .2rem; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; }
.prose blockquote { margin-inline: 0; border-left: 3px solid var(--jc-gold); padding: 1rem 1.5rem; background: var(--jc-gray); }
.prose pre { max-width: 100%; overflow-x: auto; background: var(--jc-gray); padding: 1rem; font-size: .85rem; }
.prose ul, .prose ol { padding-left: 1.5rem; }
.reading-width { max-width: 800px; margin-inline: auto; }
.alert { padding: 1rem 1.5rem; border: 1px solid #A7C8B3; border-radius: .4rem; background: #EDF8F1; color: #215136; margin-block: 1rem; }
.alert-error { background: #FFF0F2; border-color: #E9B2BC; color: var(--error); }
.alert a { text-decoration: underline; }
.alert p, .alert ul { margin-bottom: 0; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .81rem; font-weight: 700; margin-bottom: .45rem; }
.field input, .field select, .field textarea, .filter-form select { width: 100%; min-width: 0; min-height: 48px; padding: .7rem .85rem; background: white; color: var(--jc-text); border: 1px solid #A6AFC0; border-radius: .35rem; font-size: .88rem; }
.field textarea { resize: vertical; }
.field input[type="file"] { font-size: .72rem; padding: .7rem; }
.field small { display: block; margin-top: .45rem; font-size: .7rem; color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: .76rem; margin: .4rem 0 0; }
.honeypot { display: none; }
.filter-form { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 2rem; }
.filter-form label { font-size: .8rem; font-weight: 700; }
.filter-form select { flex: 1; min-width: 180px; max-width: 460px; }
.results-count { font-size: .78rem; color: var(--muted); }
.category-filters { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.5rem; }
.category-filters a { padding: .65rem 1.1rem; border: 1px solid var(--line); border-radius: 2rem; font-size: .75rem; }
.category-filters a:hover, .category-filters [aria-current] { background: var(--jc-blue); border-color: var(--jc-blue); color: white; }
.pagination { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; margin-top: 3rem; font-size: .75rem; }
@media (max-width: 540px) { .field input:not([type="file"]), .field select, .field textarea, .filter-form select { font-size: 1rem; } }
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-grid, .news-grid { gap: 1rem; } .review-card { flex-basis: calc((100% - 1.5rem) / 2); } .process-grid { grid-template-columns: 1fr 1fr; } .card-body { padding: 1.2rem; } .cta-inner { gap: 2rem; } }
@media (max-width: 800px) { .cards-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .news-featured { grid-template-columns: 1fr; } .news-featured .media { min-height: 0; aspect-ratio: 1.8; } .cta-inner { display: block; } .cta-actions { max-width: 380px; min-width: 0; margin-top: 2rem; } .values-grid { gap: 1rem; } }
@media (max-width: 540px) { .services-grid, .cards-grid, .news-grid { grid-template-columns: 1fr; } .card-body { padding: 1.5rem; } .service-visual .media { aspect-ratio: 2.1; } .service-card-accent { min-height: 300px; } .process-grid { gap: 1.2rem; } .process-grid h3 { font-size: 1rem; } .process-grid p { font-size: .75rem; } .review-card { flex-basis: 90%; padding: 1.5rem; } .values-grid { grid-template-columns: 1fr; } .filter-form { padding: 1rem; gap: .6rem; } .filter-form select, .filter-form label { flex-basis: 100%; } .filter-form select { min-width: 0; } .empty-state { padding: 2rem 1.2rem; } }
