/* Woodmart widgets drawn in the Crisis Aid design (includes/class-ca-legacy.php). */

/* Headings: the site type scale by tag; white when the section is dark */
.ca-lg-head { display: flex; flex-direction: column; gap: 10px; margin: 0 0 8px; font-family: var(--ca-body); }
.ca-lg-head--center { align-items: center; text-align: center; }
.ca-lg-head--right { align-items: flex-end; text-align: right; }
.ca-lg-head .ca-lg-head__title { margin: 0; font-family: var(--ca-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: var(--ca-navy); text-transform: none; }
.ca-lg-head--h1 .ca-lg-head__title { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 4rem); letter-spacing: -0.035em; line-height: 1; }
.ca-lg-head--h2 .ca-lg-head__title { font-size: var(--ca-s3); }
.ca-lg-head--h3 .ca-lg-head__title { font-size: var(--ca-s2); }
.ca-lg-head--h4 .ca-lg-head__title, .ca-lg-head--p .ca-lg-head__title { font-size: var(--ca-s1); font-weight: 700; }
.ca-lg-head__sub { margin: 0; font-weight: 600; font-size: .92rem; color: var(--ca-blue); text-transform: none; letter-spacing: 0; }
.ca-lg-head__sub.is-pill { padding: 5px 14px; border-radius: 999px; font-size: .85rem; background: var(--ca-blue-50); color: var(--ca-blue); }
.ca-lg-head.is-light .ca-lg-head__sub.is-pill { background: rgb(255 255 255 / .14); color: #fff; }
/* white words over a photo stay readable whatever the photo */
.ca-lg-head.is-light :is(.ca-lg-head__title, .ca-lg-head__text), .ca-lg-box.is-light:not(.has-bg) :is(.ca-lg-box__title, .ca-lg-box__text) { text-shadow: 0 1px 2px rgb(0 0 0 / .35); } /* crisp: the wide glow read as blurred text */
.ca-lg-head__text { max-width: 68ch; color: var(--ca-muted); font-size: var(--ca-s0); line-height: 1.65; }
.ca-lg-head--center .ca-lg-head__text { margin-inline: auto; }
.ca-lg-head__text p { margin: 0 0 .7em; }
.ca-lg-head__text p:last-child { margin: 0; }
.ca-lg-head.is-light .ca-lg-head__title, .ca-lg-head.is-light .ca-lg-head__sub:not(.is-pill) { color: #fff; }
.ca-lg-head.is-light .ca-lg-head__text { color: rgb(255 255 255 / .9); }

/* Buttons */
.ca-lg-btn { display: flex; margin: 4px 0; }
.ca-lg-btn--center { justify-content: center; }
.ca-lg-btn--right { justify-content: flex-end; }
.ca-lg-btn .btn.is-full { width: 100%; }

/* Images */
.ca-lg-img { margin: 0; display: flex; }
.ca-lg-img--center { justify-content: center; }
.ca-lg-img--right { justify-content: flex-end; }
.ca-lg-img img { max-width: 100%; height: auto; }
.ca-lg-img.is-round img { border-radius: var(--ca-r-lg); }

/* Questions: white cards, so they read on white and on the old coloured sections alike */
.ca-lg-faq { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ca-lg-faq details { padding: 0 20px; border: 1px solid var(--ca-line); border-radius: var(--ca-r-lg); background: #fff; }
.ca-lg-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 1.04rem; color: var(--ca-navy); cursor: pointer; list-style: none; }
.ca-lg-faq summary::-webkit-details-marker { display: none; }
.ca-lg-faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ca-blue-50); font-weight: 600; }
.ca-lg-faq details[open] summary::after { content: "–"; background: var(--ca-navy); color: #fff; }
.ca-lg-faq__a { padding: 0 0 18px; color: oklch(0.32 0.03 258); line-height: 1.7; }
.ca-lg-faq__a p { margin: 0 0 .7em; }

/* Info boxes */
.ca-lg-box { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px; border: 1px solid var(--ca-line); border-radius: var(--ca-r-lg); background: #fff; font-family: var(--ca-body); }
.ca-lg-box--center { align-items: center; text-align: center; }
.ca-lg-box.has-bg { border: 0; }
.ca-lg-box__icon { max-width: 64px; height: auto; margin-bottom: 4px; }
.ca-lg-box__sub { margin: 0; font-size: .85rem; font-weight: 600; color: var(--ca-blue); }
.ca-lg-box__title { margin: 0; font-family: var(--ca-display); font-weight: 800; font-size: 1.2rem; color: var(--ca-navy); line-height: 1.2; overflow-wrap: anywhere; }
.cas .ca-lg-box__title a { color: inherit; text-decoration: none; }
.ca-lg-box__text { color: var(--ca-muted); font-size: .97rem; }
.ca-lg-box__text p { margin: 0 0 .5em; }
.ca-lg-box .link { margin-top: auto; }
.ca-lg-box.is-light .ca-lg-box__title, .ca-lg-box.is-light .ca-lg-box__sub { color: #fff; }
.ca-lg-box.is-light .ca-lg-box__text { color: rgb(255 255 255 / .9); }

/* Tiles row (giving types) */
.ca-lg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.ca-lg-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 10px; border-radius: var(--ca-r-lg); background: #fff; border: 1px solid var(--ca-line); text-decoration: none; color: var(--ca-navy); font-weight: 700; font-size: .95rem; text-align: center; }
a.ca-lg-tile:hover { border-color: var(--ca-blue); }
.ca-lg-tile img { width: 56px; height: 56px; object-fit: contain; }

/* Video: a still and a play button until pressed */
/* width 100% + no shrinking: in an Elementor flex column on phones the box was sized before its width was known,
 * so aspect-ratio gave it no height and the footer covered the video */
.ca-lg-video { position: relative; width: 100%; border-radius: var(--ca-r-lg); overflow: hidden; background: var(--ca-navy); aspect-ratio: 16/9; }
.e-con > .elementor-widget:has(> .elementor-widget-container > .ca-lg-video), .e-con-inner > .elementor-widget:has(> .elementor-widget-container > .ca-lg-video) { width: 100%; flex-shrink: 0; }
.ca-lg-video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ca-lg-video__btn img { width: 100%; height: 100%; object-fit: cover; }
.ca-lg-video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; background: var(--ca-gold); display: grid; place-items: center; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .6); }
.ca-lg-video__play svg { width: 30px; height: 30px; fill: var(--ca-gold-ink); margin-left: 4px; }
.ca-lg-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Photo rows and cards: swipe sideways */
.ca-lg-row, .ca-lg-cards { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.ca-lg-row.is-one { grid-auto-columns: 100%; overflow: visible; }
.ca-lg-row__item { margin: 0; scroll-snap-align: start; border-radius: var(--ca-r-lg); overflow: hidden; }
.ca-lg-row__item img { width: 100%; height: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ca-lg-card { position: relative; display: block; scroll-snap-align: start; border-radius: var(--ca-r-lg); overflow: hidden; min-height: 280px; background: var(--ca-navy); color: #fff; text-decoration: none; }
.ca-lg-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ca-lg-card.is-plain { min-height: 0; background: #fff; border: 1px solid var(--ca-line); display: grid; place-items: center; padding: 18px; }
.ca-lg-card.is-plain img { position: static; max-height: 90px; width: auto; object-fit: contain; }
.ca-lg-card__in { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; gap: 4px; padding: 60px 18px 18px; background: linear-gradient(0deg, rgb(12 22 46 / .9), rgb(12 22 46 / 0)); }
.ca-lg-card__in strong { font-family: var(--ca-display); font-size: 1.25rem; }
body.ca-site .cas a.ca-lg-card:not(.is-plain), body.ca-site .cas .ca-lg-card__in strong { color: #fff; } /* beats the site's link colour */
.ca-lg-card__in span { font-size: .92rem; color: rgb(255 255 255 / .9); }
.ca-lg-card__in em { font-style: normal; font-weight: 700; color: var(--ca-gold-hi); margin-top: 4px; }
a.ca-lg-card:hover strong { text-decoration: underline; text-decoration-color: var(--ca-gold); }

/* Logos */
.ca-lg-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px 40px; }
.ca-lg-logos__item img { max-height: 60px; width: auto; max-width: 180px; object-fit: contain; }

/* List */
.ca-lg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--ca-body); }
.ca-lg-list li { display: flex; align-items: center; gap: 12px; }
.ca-lg-list li > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ca-gold); }
.ca-lg-list img { flex: none; width: 20px; height: 20px; }
.ca-lg-list a, .ca-lg-list span { color: var(--ca-ink); text-decoration: none; }
.ca-lg-list a:hover { text-decoration: underline; }
.ca-lg-list.is-light a, .ca-lg-list.is-light span { color: #fff; }

.ca-lg-text { line-height: 1.7; }

/* Tabs */
.ca-lg-tabs__list { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--ca-line); margin-bottom: 16px; }
.ca-lg-tabs__list button { padding: 10px 16px; border: 0; border-bottom: 3px solid transparent; background: none; font-weight: 700; color: var(--ca-muted); cursor: pointer; margin-bottom: -1px; border-radius: 0; }
.ca-lg-tabs__list button[aria-selected="true"] { color: var(--ca-navy); border-bottom-color: var(--ca-gold); }

/* Table (opening hours) */
.ca-lg-table { width: 100%; border-collapse: collapse; font-family: var(--ca-body); }
.ca-lg-table td { padding: 10px 0; border-bottom: 1px solid var(--ca-line); }
.ca-lg-table td:last-child { text-align: right; font-weight: 600; }
.ca-lg-table.is-light td { color: #fff; border-color: rgb(255 255 255 / .2); }

/* Social links */
.ca-lg-social { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-lg-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ca-line); background: #fff; color: var(--ca-navy); }
.ca-lg-social svg { width: 18px; height: 18px; fill: currentColor; }

/* Posts */
.ca-lg-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.ca-lg-post { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ca-ink); }
.ca-lg-post img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--ca-r-lg); margin-bottom: 4px; }
.ca-lg-post time { font-size: .85rem; color: var(--ca-muted); }
.ca-lg-post strong { font-family: var(--ca-display); color: var(--ca-navy); font-size: 1.12rem; line-height: 1.25; }

/* Reviews */
.ca-lg-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ca-lg-quotes blockquote { margin: 0; padding: 20px; border-radius: var(--ca-r-lg); background: var(--ca-blue-50); display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
.ca-lg-quotes footer { font-weight: 700; color: var(--ca-navy); }
.ca-lg-quotes .stars { display: block; font-weight: 400; color: var(--ca-gold); }

@media (max-width: 720px) {
	.ca-lg-row, .ca-lg-cards { grid-auto-columns: 82%; }
}
