/* Wilson for Lebanon layout blocks (src/blocks/wfl). Brand from the GeneratePress theme:
   navy #181C2E, gold #DAAD38, greys #F3F4F6 / #4B5563, DM Serif Display + Roboto. */
:root {
	--wfl-navy: #181c2e;
	--wfl-navy-2: #23283f;
	--wfl-gold: #daad38;
	--wfl-gold-ink: #8a6510; /* gold for small text on white: 5.6:1 */
	--wfl-ink: #181c2e;
	--wfl-muted: #4b5563;
	--wfl-paper: #f3f4f6;
	--wfl-line: #dfe2e7;
	--wfl-serif: "DM Serif Display", Georgia, serif;
	--wfl-sans: Roboto, system-ui, sans-serif;
	--wfl-gutter: clamp(20px, 4vw, 48px);
	--wfl-max: 1200px;
	--wfl-s1: 8px; --wfl-s2: 16px; --wfl-s3: 24px; --wfl-s4: 40px; --wfl-s5: 64px; --wfl-s6: 104px;
}

/* The blocks run edge to edge inside the theme's article */
.wfl-hero, .wfl-split, .wfl-credo, .wfl-story, .wfl-announce, .wfl-lead, .wfl-priorities, .wfl-closing, .wfl-glance {
	font-family: var(--wfl-sans);
	color: var(--wfl-ink);
}
.wfl-wrap { max-width: var(--wfl-max); margin-inline: auto; padding-inline: var(--wfl-gutter); }
.wfl-hero ::selection, .wfl-split ::selection, .wfl-credo ::selection, .wfl-story ::selection, .wfl-lead ::selection,
.wfl-priorities ::selection, .wfl-closing ::selection, .wfl-glance ::selection { background: #f4e2b0; color: var(--wfl-navy); }
.wfl-announce ::selection { background: var(--wfl-gold); color: var(--wfl-navy); }

.wfl-h2 { font-family: var(--wfl-serif); font-weight: 400; font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.01em; margin: 0 0 var(--wfl-s3); text-wrap: balance; color: var(--wfl-navy); }
.wfl-h3 { font-family: var(--wfl-serif); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 0 0 var(--wfl-s2); color: var(--wfl-navy); }

.wfl-prose { font-size: 1.0625rem; line-height: 1.75; color: #2b3140; max-width: 66ch; }
.wfl-prose p { margin: 0 0 1.25em; }
.wfl-prose p:last-child { margin-bottom: 0; }
.wfl-prose--large { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.7; }
.wfl-prose a, .wfl-lead a, .wfl-closing a {
	color: var(--wfl-navy); text-decoration: underline; text-decoration-color: var(--wfl-gold);
	text-decoration-thickness: 2px; text-underline-offset: 0.22em; transition: text-decoration-color .2s, color .2s;
}
.wfl-prose a:hover, .wfl-closing a:hover { color: var(--wfl-gold-ink); }
:where(.wfl-hero, .wfl-split, .wfl-story, .wfl-closing, .wfl-glance) a:focus-visible,
.wfl-btn:focus-visible { outline: 3px solid var(--wfl-gold); outline-offset: 3px; border-radius: 2px; }

/* Buttons */
.wfl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--wfl-s2) var(--wfl-s4); margin: var(--wfl-s4) 0 0; }
.wfl-btn { display: inline-flex; align-items: center; gap: 10px; font: 600 0.95rem/1 var(--wfl-sans); letter-spacing: 0.04em; text-transform: uppercase; text-decoration: none; min-height: 48px; }
.wfl-btn--primary { background: var(--wfl-gold); color: var(--wfl-navy); padding: 0 28px; border-radius: 3px; box-shadow: 0 10px 24px -14px rgba(24, 28, 46, .55); transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s; }
.wfl-btn--primary:hover { color: var(--wfl-navy); transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(24, 28, 46, .6); }
.wfl-btn--quiet { color: var(--wfl-navy); padding: 0 2px; border-bottom: 2px solid var(--wfl-gold); min-height: 40px; }
.wfl-btn--quiet:hover { color: var(--wfl-gold-ink); }
.wfl-btn--quiet svg { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.wfl-btn--quiet:hover svg { transform: translateY(3px); }

/* Hero: headline over the Lebanon street map, framed portrait */
.wfl-hero { position: relative; overflow: hidden; background: var(--wfl-paper); padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); isolation: isolate; }
.wfl-hero::before {
	content: ""; position: absolute; inset: -10% 38% -10% -12%; z-index: -1;
	background: url("/wfl/lebanon-streetmap.webp") center / cover no-repeat;
	opacity: .16; mix-blend-mode: multiply;
	-webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent); mask-image: radial-gradient(closest-side, #000 55%, transparent);
}
.wfl-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.wfl-hero__title { font-family: var(--wfl-serif); font-weight: 400; font-size: clamp(2.6rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -0.02em; margin: 0; color: var(--wfl-navy); text-wrap: balance; }
.wfl-hero__text { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.55; color: var(--wfl-muted); margin: var(--wfl-s3) 0 0; max-width: 34ch; }
.wfl-hero__media { position: relative; margin: 0 0 0 auto; width: min(100%, 520px); }
.wfl-hero__media::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border: 2px solid var(--wfl-gold); border-radius: 4px; }
.wfl-hero__media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; border-radius: 4px; box-shadow: 0 30px 60px -30px rgba(24, 28, 46, .55); }

/* Text with two overlapping photos */
.wfl-split { padding: clamp(72px, 9vw, 128px) 0; background: #fff; }
.wfl-split__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.wfl-split__copy { max-width: 540px; }
.wfl-split__collage { position: relative; padding: 0 0 18% 14%; }
.wfl-split__large { display: block; width: 100%; height: auto; aspect-ratio: 7 / 8; object-fit: cover; object-position: 50% 15%; border-radius: 4px; box-shadow: 0 30px 60px -32px rgba(24, 28, 46, .5); }
.wfl-split__small { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 8px solid #fff; box-shadow: 0 22px 40px -22px rgba(24, 28, 46, .55); }

/* Belief statements */
.wfl-credo { background: var(--wfl-navy); color: #fff; padding: clamp(80px, 10vw, 140px) 0; scroll-margin-top: 80px; }
.wfl-credo__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.wfl-credo__title { position: sticky; top: 120px; font-family: var(--wfl-serif); font-weight: 400; font-size: clamp(2.75rem, 5.2vw, 4.75rem); line-height: .95; letter-spacing: -0.02em; color: #fff; margin: 0; white-space: nowrap; }
.wfl-credo__title::after { content: ""; display: block; width: 72px; height: 3px; background: var(--wfl-gold); margin-top: 28px; }
.wfl-credo__list { list-style: none; margin: 0; padding: 0; }
.wfl-credo__list li { margin: 0; padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-family: var(--wfl-serif); font-size: clamp(1.5rem, 2.9vw, 2.35rem); line-height: 1.2; text-wrap: pretty; }
.wfl-credo__list li:first-child { padding-top: 0; }
.wfl-credo__lead { color: #b9bdcc; }
.wfl-credo__end { color: #fff; }
.wfl-credo__list li:first-child .wfl-credo__end { color: var(--wfl-gold); }
/* the one motion moment: statements arrive in sequence the first time they scroll into view */
@media (prefers-reduced-motion: no-preference) {
	.wfl-js .wfl-credo__list[data-wfl-reveal] li { opacity: 0; transform: translateY(18px); filter: blur(4px); }
	.wfl-js .wfl-credo__list[data-wfl-reveal].is-in li { opacity: 1; transform: none; filter: none; transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1), filter .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i) * 110ms); }
}

/* Long text with portrait */
.wfl-story { padding: clamp(80px, 10vw, 136px) 0 clamp(56px, 7vw, 96px); background: #fff; }
.wfl-story__grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.wfl-story__media { position: sticky; top: 120px; margin: 0; }
.wfl-story__media::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; background: var(--wfl-paper); border-radius: 4px; z-index: 0; }
.wfl-story__media img { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.wfl-story__text > p:first-child::first-letter { float: left; font-family: var(--wfl-serif); font-size: 4.6em; line-height: .82; padding: 6px 12px 0 0; color: var(--wfl-navy); }
.wfl-story__text > p:first-child { font-size: 1.125em; color: var(--wfl-ink); }

/* Announcement band */
.wfl-announce { position: relative; isolation: isolate; color: #fff; padding: clamp(96px, 13vw, 180px) 0; text-align: center; background: var(--wfl-navy); overflow: hidden; }
.wfl-announce::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--wfl-announce-bg) center 40% / cover no-repeat; }
.wfl-announce::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(24, 28, 46, .78), rgba(24, 28, 46, .9)); }
.wfl-announce__text { font-family: var(--wfl-serif); font-size: clamp(2rem, 4.6vw, 3.75rem); line-height: 1.12; letter-spacing: -0.01em; max-width: 22ch; margin: 0 auto; text-wrap: balance; }
.wfl-announce__text::before { content: ""; display: block; width: 72px; height: 3px; background: var(--wfl-gold); margin: 0 auto 36px; }
.wfl-announce__text strong, .wfl-announce__text em { font-weight: 400; font-style: normal; }
@media (max-width: 767px) { .wfl-announce::before { background-image: var(--wfl-announce-bg-sm); } }

/* Lead paragraph */
.wfl-lead { padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 5vw, 64px); background: #fff; }
.wfl-lead__text { max-width: 38em; margin: 0 auto; text-align: center; font-family: var(--wfl-serif); font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.42; color: var(--wfl-navy); text-wrap: pretty; }
.wfl-lead__text p { margin: 0; }

/* Priorities */
.wfl-priorities { padding: clamp(40px, 5vw, 64px) 0 clamp(80px, 10vw, 128px); background: #fff; }
.wfl-priorities__intro { max-width: 46em; margin: 0 auto clamp(48px, 6vw, 80px); text-align: center; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.7; color: var(--wfl-muted); }
.wfl-priorities__intro p { margin: 0; }
.wfl-priorities__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); counter-reset: none; }
.wfl-priorities__list li { margin: 0; padding-top: 28px; border-top: 3px solid var(--wfl-gold); }
.wfl-priorities__list p { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: #2b3140; }
.wfl-priorities__lead { display: block; font-family: var(--wfl-serif); font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; color: var(--wfl-navy); margin-bottom: 14px; }

/* Closing */
.wfl-closing { background: var(--wfl-paper); padding: clamp(72px, 9vw, 120px) 0; }
.wfl-closing__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.wfl-closing__sign { padding-left: clamp(24px, 3vw, 40px); }
.wfl-closing__signoff { margin: 0 0 8px; font-style: italic; color: var(--wfl-muted); font-size: 1.125rem; }
.wfl-closing__name { margin: 0; font-family: var(--wfl-serif); font-size: clamp(2.6rem, 4.6vw, 3.75rem); line-height: 1; color: var(--wfl-navy); }
.wfl-closing__name::after { content: ""; display: block; width: 100%; max-width: 260px; height: 3px; background: var(--wfl-gold); margin-top: 18px; }

/* Facts at a glance */
.wfl-glance { background: #fff; padding: clamp(80px, 10vw, 128px) 0 0; position: relative; isolation: isolate; }
.wfl-glance__head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.wfl-glance__head .wfl-h2 { margin-bottom: 12px; }
.wfl-glance__intro { margin: 0 auto; font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--wfl-muted); max-width: 40ch; }
.wfl-glance__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); margin-bottom: clamp(56px, 7vw, 96px); }
.wfl-glance__group .wfl-h3 { padding-bottom: 14px; border-bottom: 1px solid var(--wfl-line); margin-bottom: 20px; }
.wfl-glance__group .wfl-h3::before { content: ""; display: block; width: 40px; height: 3px; background: var(--wfl-gold); margin-bottom: 16px; }
.wfl-list, .wfl-timeline, .wfl-checks { list-style: none; margin: 0; padding: 0; }
.wfl-list li { margin: 0; padding: 10px 0; font-size: 1.0625rem; line-height: 1.6; color: #2b3140; }
.wfl-list li + li { border-top: 1px dashed var(--wfl-line); }
.wfl-timeline { position: relative; }
.wfl-timeline::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 10px; width: 2px; background: var(--wfl-line); }
.wfl-timeline li { position: relative; margin: 0; padding: 8px 0 16px 32px; font-size: 1.0625rem; line-height: 1.6; color: #2b3140; }
.wfl-timeline li::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--wfl-gold); box-sizing: border-box; }
.wfl-years { color: var(--wfl-gold-ink); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (min-width: 480px) { .wfl-years { white-space: nowrap; } }
.wfl-glance__band { background: var(--wfl-paper); padding: clamp(64px, 8vw, 112px) 0; position: relative; overflow: hidden; isolation: isolate; }
.wfl-glance__band::before { content: ""; position: absolute; inset: -20% -10% -20% 55%; z-index: -1; background: url("/wfl/lebanon-streetmap.webp") center / cover no-repeat; opacity: .12; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent); mask-image: radial-gradient(closest-side, #000 50%, transparent); }
.wfl-glance__band .wfl-h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: clamp(28px, 3vw, 40px); }
.wfl-checks { columns: 2; column-gap: clamp(32px, 6vw, 96px); }
.wfl-checks li { break-inside: avoid; display: flex; gap: 14px; align-items: flex-start; margin: 0; padding: 12px 0; font-size: 1.0625rem; line-height: 1.55; color: #2b3140; border-bottom: 1px solid var(--wfl-line); }
.wfl-checks svg { flex: none; margin-top: 3px; color: var(--wfl-gold-ink); }

/* Narrow screens: one column, portraits above their text, nothing sticky */
@media (max-width: 959px) {
	.wfl-hero__grid, .wfl-split__grid, .wfl-credo__grid, .wfl-story__grid, .wfl-closing__inner, .wfl-glance__row { grid-template-columns: minmax(0, 1fr); }
	.wfl-hero::before { inset: -10% -30% 30% -30%; }
	.wfl-hero__media { margin: 8px auto 0 0; width: min(88%, 440px); }
	.wfl-split__collage { max-width: 520px; }
	.wfl-credo__title { position: static; }
	.wfl-story__media { position: relative; top: auto; } /* not sticky; still the anchor for its backing panel */
	.wfl-story__media { max-width: 360px; margin-left: 18px; }
	.wfl-priorities__list { grid-template-columns: minmax(0, 1fr); }
	.wfl-closing__sign { padding-left: 0; }
	.wfl-checks { columns: 1; }
}
