/*
 * LIFT Theme — content styles (front end AND block editor).
 * Block style variations registered in inc/block-styles.php.
 */

:root {
	--lift-ease: cubic-bezier(.2, .7, .2, 1);
	--lift-radius: 18px;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }
:where(p, li) { text-wrap: pretty; }
:where(h1, h2, h3) { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--wp--preset--color--leaf); outline-offset: 3px; }
::selection { background: var(--wp--preset--color--leaf-soft); color: var(--wp--preset--color--forest-dark); }

/* ---------- Paragraph styles ---------- */
.is-style-eyebrow {
	display: flex; align-items: center; gap: .625rem;
	font-size: .8125rem !important; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
	color: var(--wp--preset--color--forest);
}
.is-style-eyebrow::before { content: ""; width: 1.375rem; height: 2px; border-radius: 2px; background: var(--wp--preset--color--leaf); flex: none; }
.is-style-eyebrow + :where(h1, h2, h3) { margin-top: .75rem !important; }
.is-style-lead { font-size: var(--wp--preset--font-size--large) !important; line-height: 1.6; color: #2F3A33; }
.is-style-link-arrow a {
	display: inline-flex; align-items: center; gap: .375rem; font-weight: 600; text-decoration: none;
	color: var(--wp--preset--color--forest);
}
.is-style-link-arrow a::after {
	content: ""; width: 1.125rem; height: 1.125rem; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M12 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .2s var(--lift-ease);
}
.is-style-link-arrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.is-style-link-arrow a:hover::after { transform: translateX(4px); }

/* ---------- Quote highlight ---------- */
.wp-block-quote.is-style-highlight {
	position: relative; margin-inline: 0; padding: 0 0 0 clamp(1.5rem, 4vw, 2.5rem);
	border-left: 0;
}
/* The green rule grows with the scroll (--lift-rule animated by GSAP; 1 without JS). */
.wp-block-quote.is-style-highlight::before {
	content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 4px;
	background: var(--wp--preset--color--leaf); transform: scaleY(var(--lift-rule, 1)); transform-origin: top;
}
.wp-block-quote.is-style-highlight p {
	font-family: var(--wp--preset--font-family--heading); font-weight: 500; color: var(--wp--preset--color--forest-dark);
	font-size: clamp(1.5rem, 3vw, 2.375rem); line-height: 1.35;
}

/* ---------- Group / section styles ---------- */
.wp-block-group.is-style-section,
.wp-block-group.is-style-section-white,
.wp-block-group.is-style-section-mint,
.wp-block-group.is-style-section-forest {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: var(--wp--preset--spacing--70);
}
.wp-block-group.is-style-section-white { background: var(--wp--preset--color--white); border-block: 1px solid var(--wp--preset--color--line); }
.wp-block-group.is-style-section-mint { background: var(--wp--preset--color--mint-light); }
.wp-block-group.is-style-section-forest {
	position: relative; overflow: hidden; color: #fff; background: var(--wp--preset--color--forest);
}
.wp-block-group.is-style-section-forest::after {
	content: ""; position: absolute; right: -4rem; top: -3rem; width: 26rem; height: 26rem; opacity: .07; pointer-events: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z'/%3E%3Cpath d='M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12'/%3E%3C/svg%3E") center / contain no-repeat;
}
.is-style-section-forest :where(h1, h2, h3, h4, p, blockquote, li) { color: #fff; }
.is-style-section-forest .is-style-eyebrow { color: var(--wp--preset--color--leaf-soft); }
.is-style-section-forest .is-style-eyebrow::before { background: var(--wp--preset--color--leaf-soft); }
.is-style-section-forest a:not(.wp-element-button) { color: var(--wp--preset--color--leaf-soft); }
.is-style-section-forest .wp-block-quote.is-style-highlight p { color: #fff; }
.wp-block-group.is-style-card {
	background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: var(--lift-radius); padding: clamp(1.25rem, 3vw, 2rem);
}

/* LIFT blocks placed directly in the page get section spacing. */
.is-style-section-block { margin-block: var(--wp--preset--spacing--70) !important; }
.lift-cta.is-style-section-block { margin-block: var(--wp--preset--spacing--60) !important; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none;
	transition: transform .2s var(--lift-ease), background-color .2s, color .2s, box-shadow .2s, border-color .2s;
}
.wp-element-button:hover, .wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(11, 90, 46, .22); }
.wp-block-button.is-style-leaf .wp-block-button__link { background: var(--wp--preset--color--leaf); color: #032B14; }
.wp-block-button.is-style-leaf .wp-block-button__link:hover { background: #1BC767; color: #032B14; }
.wp-block-button.is-style-light .wp-block-button__link { background: #fff; color: var(--wp--preset--color--forest-dark); }
.wp-block-button.is-style-light .wp-block-button__link:hover { background: var(--wp--preset--color--mint); color: var(--wp--preset--color--forest-dark); }
.wp-block-button.is-style-outline-light .wp-block-button__link { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .65); }
.wp-block-button.is-style-outline-light .wp-block-button__link:hover { background: rgba(255, 255, 255, .12); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--forest); border-color: var(--wp--preset--color--forest); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--mint-light); color: var(--wp--preset--color--forest-dark); box-shadow: none; }

/* ---------- Images, lists, tables ---------- */
.wp-block-image.is-style-rounded-large img { border-radius: 28px; }
.wp-block-image figcaption { text-align: left; }
.wp-block-list.is-style-checks { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-left: 1.875rem; margin-bottom: .5rem; }
.wp-block-list.is-style-checks li::before {
	content: ""; position: absolute; left: 0; top: .3em; width: 1.125rem; height: 1.125rem; border-radius: 50%;
	background: var(--wp--preset--color--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B5A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 70% no-repeat;
}
.wp-block-table table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 12px; overflow: hidden; }
.wp-block-table th { background: var(--wp--preset--color--mint); text-align: left; }
.wp-block-table :where(th, td) { padding: .75rem 1rem; border: 1px solid var(--wp--preset--color--line); }
.wp-block-separator { border-top-width: 1px; opacity: 1; }

/* Columns breathe more on large screens */
.wp-block-columns.alignwide { gap: clamp(2rem, 5vw, 4rem); }

/* Entry content typography (simple pages, news) */
.entry-content.is-simple > :where(h2) { margin-top: 2.5rem; font-size: clamp(1.625rem, 3vw, 2.125rem); }
.entry-content.is-simple > :where(h3) { margin-top: 2rem; }
.entry-content.is-simple > :where(p, ul, ol) { font-size: 1.125rem; }

/* Action cards (Home): as many columns as fit, 5 cards included. */
.wp-block-columns.lift-action-cards { display: grid; grid-template-columns: 1fr; }
@media (min-width: 600px) { .wp-block-columns.lift-action-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .wp-block-columns.lift-action-cards { grid-template-columns: repeat(5, 1fr); } }
.wp-block-columns.lift-action-cards > .wp-block-column { flex-basis: auto !important; margin: 0; }
/* Social links in the contact details. */
.lift-contact-info__social { display: inline-flex; align-items: center; gap: .35rem; margin-right: .75rem; }
.lift-contact-info__social svg { width: 1.1em; height: 1.1em; }
/* About Us: objectives and approach lists. */
.lift-check-list { list-style: none; padding-left: 0; }
.lift-check-list li { position: relative; padding-left: 1.75rem; margin-bottom: .6rem; }
.lift-check-list li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .7rem; height: .4rem; border-left: 2px solid var(--wp--preset--color--leaf); border-bottom: 2px solid var(--wp--preset--color--leaf); transform: rotate(-45deg); }
