/*
 * UNL Theme – block patterns for "Sections (full width)" pages.
 * Add these class names in the block editor (Advanced > Additional CSS class):
 *   unl-band, unl-band--sand, unl-band--cream, unl-band--navy  (Group: a full-width section)
 *   unl-cards (Columns: each Column becomes a card), unl-card-icon (Paragraph: emoji/icon line)
 *   unl-stats (Columns: big numbers), unl-split (Columns: text + image/form)
 *   unl-cta (Group: call-to-action panel), unl-kicker (Paragraph: small gold label)
 */

.unl-sections > * { margin: 0; }
.unl-sections > :not(.unl-band) { max-width: var(--unl-container); margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; }

/* Bands */
.unl-band { padding: 88px 0; }
.unl-band > * { max-width: var(--unl-container); margin-left: auto; margin-right: auto; padding-left: 32px; padding-right: 32px; box-sizing: border-box; }
.unl-band > * + * { margin-top: 20px; }
.unl-band--sand { background: var(--unl-sand); }
.unl-band--cream { background: var(--unl-cream); }
.unl-band--navy { background: var(--unl-navy); color: var(--unl-on-dark); }
.unl-band--navy h2, .unl-band--navy h3, .unl-band--navy strong { color: #fff; }
.unl-band--navy a:not(.wp-block-button__link) { color: var(--unl-gold-light); }
.unl-band h2 { margin-bottom: 0; }
.unl-band > p { font-size: 17px; line-height: 1.7; color: var(--unl-text); }
.unl-band > p:not(.has-text-align-center) { padding-right: max(32px, calc(100% - 760px)); }
@media (min-width: 1200px) { .unl-band > p:not(.has-text-align-center) { padding-right: calc(var(--unl-container) - 760px); } }
.unl-band--navy > p { color: var(--unl-on-dark); }
.unl-band .has-text-align-center { margin-left: auto !important; margin-right: auto; }
.unl-kicker { margin-bottom: -8px !important; font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--unl-gold-text) !important; }
.unl-band--navy .unl-kicker { color: var(--unl-gold-light) !important; }

/* Cards */
.unl-sections .wp-block-columns { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.unl-sections .wp-block-column { flex: 1 1 260px; min-width: 0; }
.unl-cards > .wp-block-column { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #fff; border: 1px solid var(--unl-line); border-radius: var(--unl-radius); box-shadow: var(--unl-shadow); transition: transform .35s var(--unl-ease), box-shadow .35s ease, border-color .35s ease; }
.unl-cards > .wp-block-column:hover { transform: translateY(-6px); box-shadow: var(--unl-shadow-hover); border-color: var(--unl-gold); }
.unl-cards h3 { margin: 4px 0 0; font-size: 20px; color: var(--unl-ink); }
.unl-cards p { margin: 0; color: var(--unl-text); font-size: 15.5px; line-height: 1.65; }
.unl-cards .wp-block-image { margin: -28px -28px 8px; overflow: hidden; border-radius: var(--unl-radius) var(--unl-radius) 0 0; }
.unl-cards .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s var(--unl-ease); }
.unl-cards > .wp-block-column:hover .wp-block-image img { transform: scale(1.05); }
.unl-cards .wp-block-buttons { margin-top: auto; padding-top: 8px; }
.unl-cards ul { margin: 0; padding-left: 1.2em; color: var(--unl-text); font-size: 15px; }
.unl-card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--unl-green-tint); font-size: 26px !important; line-height: 1 !important; }
.unl-band--navy .unl-cards > .wp-block-column { background: var(--unl-navy-2); border-color: rgba(255, 255, 255, .08); }
.unl-band--navy .unl-cards p { color: var(--unl-on-dark); }

/* Stats */
.unl-stats > .wp-block-column { padding: 28px; border-radius: var(--unl-radius); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.unl-stats h3, .unl-stats .unl-stat { margin: 0; font-family: var(--unl-font-head); font-size: clamp(36px, 4vw, 52px); font-weight: 800; line-height: 1; color: var(--unl-gold-light); }
.unl-stats p { margin: 8px 0 0; font-size: 15px; color: var(--unl-on-dark); }
.unl-band:not(.unl-band--navy) .unl-stats > .wp-block-column { background: #fff; border-color: var(--unl-line); }
.unl-band:not(.unl-band--navy) .unl-stats h3 { color: var(--unl-green); }
.unl-band:not(.unl-band--navy) .unl-stats p { color: var(--unl-text); }

/* Split: text beside an image or a form */
.unl-split { align-items: center; gap: 56px !important; }
.unl-split > .wp-block-column { flex: 1 1 380px; }
.unl-split .wp-block-image img { width: 100%; border-radius: var(--unl-radius); box-shadow: var(--unl-shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.unl-split p { font-size: 17px; line-height: 1.7; color: var(--unl-text); }
.unl-split ul { padding-left: 1.2em; color: var(--unl-text); line-height: 1.8; }
.unl-split--top { align-items: flex-start; }

/* Contact list */
.unl-contact-list { list-style: none; padding: 0 !important; margin: 16px 0 0; display: grid; gap: 12px; }
.unl-contact-list li { display: flex; gap: 12px; align-items: center; font-size: 17px; }
.unl-contact-list a { font-weight: 600; color: var(--unl-ink); text-decoration: none; }
.unl-contact-list a:hover { color: var(--unl-green); }

/* Call to action */
.unl-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 48px !important; border-radius: var(--unl-radius); background: var(--unl-green); color: #fff; max-width: calc(var(--unl-container) - 64px) !important; }
.unl-cta > * { margin: 0 !important; padding: 0 !important; max-width: none !important; }
.unl-cta h2, .unl-cta h3 { color: #fff; margin: 0; }
.unl-cta p { color: #D7E7DC !important; margin: 6px 0 0 !important; }
.unl-cta .wp-block-group { flex: 1 1 380px; }

/* Buttons in bands use the theme button look */
.unl-sections .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.unl-sections .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: var(--unl-radius-sm); background: var(--unl-green); color: #fff; font: 600 15px/1 var(--unl-font-body); text-decoration: none; transition: transform .2s ease, box-shadow .25s ease, filter .2s ease; }
.unl-sections .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(10, 23, 36, .5); filter: brightness(1.06); color: #fff; }
.unl-sections .is-style-outline .wp-block-button__link { background: transparent; color: var(--unl-ink); border: 1.5px solid #D9D2BE; }
.unl-sections .is-style-outline .wp-block-button__link:hover { color: var(--unl-ink); border-color: var(--unl-gold); }
.unl-band--navy .is-style-outline .wp-block-button__link, .unl-cta .is-style-outline .wp-block-button__link { color: #fff; border-color: rgba(255, 255, 255, .45); }
.unl-cta .wp-block-button:not(.is-style-outline) .wp-block-button__link, .unl-band--navy .wp-block-button:not(.is-style-outline) .wp-block-button__link { background: var(--unl-gold); color: var(--unl-navy); }

/* Latest posts block */
.unl-sections .wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 0; margin-top: 32px; }
.unl-sections .wp-block-latest-posts.is-grid li { margin: 0 !important; width: auto !important; padding: 24px; background: #fff; border: 1px solid var(--unl-line); border-radius: var(--unl-radius); box-shadow: var(--unl-shadow); }
.unl-sections .wp-block-latest-posts__featured-image img { border-radius: 10px; margin-bottom: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.unl-sections .wp-block-latest-posts__post-title { font-family: var(--unl-font-head); font-weight: 700; font-size: 18px; color: var(--unl-ink); text-decoration: none; }
.unl-sections .wp-block-latest-posts__post-date { display: block; margin-top: 6px; font-size: 13px; color: var(--unl-muted); }
.unl-sections .wp-block-latest-posts__post-excerpt { margin-top: 8px; font-size: 15px; color: var(--unl-text); }

/* FAQ (Details block) */
.unl-sections .wp-block-details { max-width: 860px; padding: 18px 22px; background: #fff; border: 1px solid var(--unl-line); border-radius: var(--unl-radius-sm); }
.unl-sections .wp-block-details + .wp-block-details { margin-top: 10px; }
.unl-sections .wp-block-details summary { cursor: pointer; font-weight: 700; color: var(--unl-ink); }
.unl-sections .wp-block-details p { margin: 10px 0 0; color: var(--unl-text); }

@media (max-width: 782px) {
	.unl-band { padding: 64px 0; }
	.unl-band > *, .unl-sections > :not(.unl-band) { padding-left: 20px; padding-right: 20px; }
	.unl-cta { padding: 28px !important; margin-left: 20px !important; margin-right: 20px !important; }
	.unl-split { gap: 32px !important; }
}