/* Page sections built from block patterns (Home first) and the theme's dynamic blocks.
   Loaded on the front end and in the block editor. */

/* Section bands */
.py-sec { padding-block: 110px; }
.py-sec--white { background: var(--py-white); color: var(--py-ink); }
.py-sec--alt { background: var(--py-surface-alt); color: var(--py-ink); }
.py-sec--dark { background: var(--py-dark); color: var(--py-white); }
.py-sec--surface { background: var(--py-surface); color: var(--py-ink); }
.py-sec :where(p) { margin: 0; }
/* Dialogs placed inside a section keep their paragraph spacing (base.css). */
.py-sec .py-modal__body > :where(p, ul, ol) { margin: 0 0 1em; }
.py-sec .py-modal__body > :last-child { margin-bottom: 0; }

/* Section label: the large bold heading over each section (owner decision: no gold rule). */
.py-sec .py-sec__label { margin: 0 0 22px; font-size: clamp(34px, 4vw, 46px); font-weight: 700; line-height: 1.1; color: var(--py-navy); }
.py-sec--dark .py-sec__label { color: var(--py-gold); }

/* Lede: the large plain statement under the label. */
.py-sec .py-sec__lede { margin: 0 0 18px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 400; line-height: 1.1; color: inherit; }
.py-sec__muted { max-width: 560px; color: var(--py-muted); }
.py-sec .py-sec__muted { margin-bottom: 24px; }
.py-sec__small { font-size: 15px; color: var(--py-muted); }

/* "See more" links */
.py-more a { font-weight: 700; color: var(--py-ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.py-more a:hover { text-decoration-thickness: 2.5px; }
.py-sec--dark .py-more a { color: var(--py-white); text-decoration-color: var(--py-gold); text-underline-offset: 6px; }
.py-sec--dark .py-more--gold a { color: var(--py-gold); text-decoration-color: currentColor; text-underline-offset: 5px; }
.py-sec .py-more--end { display: flex; justify-content: flex-end; margin-top: 36px; }
.py-sec--dark :focus-visible { outline-color: var(--py-gold); }

/* Header row: label + lede on the left, a link or a note on the right. */
.py-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 64px; margin-bottom: 44px; }
.py-head__main { flex: 1 1 420px; min-width: 0; }
.py-sec .py-head .py-sec__lede { margin: 0; }
.py-sec .py-head__aside { flex: 1 1 360px; max-width: 520px; margin: 0; }

/* 1. Well, Patently Speaking */
.py-intro { padding-block: 104px; }
.py-intro__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 48px 64px; }
.py-intro__text { flex: 1.6 1 520px; min-width: 0; }
.py-sec .py-intro__text > .py-sec__label { margin-bottom: 26px; }
.py-intro__body { max-width: 820px; padding-left: 28px; border-left: 3px solid var(--py-gold); }
.py-sec .py-intro__lede { margin: 0 0 28px; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.14; }
.py-sec .py-intro__body > p:not(.py-intro__lede) { margin: 0 0 18px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.py-sec .py-intro__body > p:last-child { margin-bottom: 0; }
.py-sec .py-signoff { margin: 40px 0 6px; font-size: 32px; line-height: 1.2; }
.py-signoff-sub { font-size: 14px; color: var(--py-muted); }
.py-intro__mark { flex: 1 1 280px; min-width: 0; display: flex; justify-content: center; }

/* Logo block (py/logo). The crop and ring position are tuned to the current logo file
   (820 x 435, "Attorneys-at-Law" line in the bottom 18.3 %). */
.py-mark--plain .py-mark__crop { width: 100%; max-width: 480px; aspect-ratio: 820 / 356; overflow: hidden; }
.py-mark__crop img { display: block; width: 100%; height: auto; }
.py-mark--labelled { width: 100%; }
.py-mark--full img { display: block; width: auto; max-width: 100%; height: auto; }
.py-mark__figure { position: relative; width: 100%; max-width: 520px; aspect-ratio: 520 / 324; margin: 0; }
.py-mark__figure img {
	position: absolute; left: 11.54%; top: 14.81%; width: 76.92%; height: auto;
	clip-path: inset(0 0 18.3% 0); animation: py-reveal 1.8s ease-out both;
}
.py-mark__labels { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.py-mark__label { font-family: var(--py-font); font-size: 19px; fill: var(--py-ink); animation: py-fade 7s ease-in-out infinite; }
.py-mark__label--2 { animation-delay: .5s; }
.py-mark__label--3 { animation-delay: 1s; }
.py-mark__label--4 { animation-delay: 1.5s; }
.py-mark__ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: py-ring 3.2s ease-out infinite 1.8s; }
@keyframes py-reveal { from { clip-path: inset(0 100% 18.3% 0); } to { clip-path: inset(0 0 18.3% 0); } }
@keyframes py-fade { 0%, 10% { opacity: 0; } 30%, 74% { opacity: 1; } 100% { opacity: 0; } }
@keyframes py-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }

/* 2. Our logo */
.py-logo-sec__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 80px; }
.py-logo-sec__mark { flex: 1 1 380px; min-width: 0; }
.py-logo-sec__text { flex: 1.3 1 480px; min-width: 0; }
.py-sec .py-logo-sec__text > .py-sec__muted { margin-bottom: 36px; }
.py-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 28px 40px; margin-bottom: 40px; }
.py-sec .py-point__title { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 24px; font-weight: 400; line-height: 1.2; color: var(--py-ink); }
.py-point__title::before { content: ""; flex: none; width: 16px; height: 16px; }
.py-point__title--dot::before { width: 14px; height: 14px; border-radius: 50%; background: var(--py-alert); }
.py-point__title--square::before {
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke-width='2.4'%3E%3Cpath d='M1 8V1h7' stroke='%230B2E63'/%3E%3Cpath d='M15 8v7H8' stroke='%23D9962A'/%3E%3C/svg%3E") center / contain no-repeat;
}
.wp-block-quote.py-logo-sec__quote { max-width: 560px; margin: 0 0 32px; padding: 0 0 0 22px; border: 0; border-left: 3px solid var(--py-gold); font-size: 24px; line-height: 1.3; font-style: normal; }
.py-logo-sec__quote p { margin: 0; }
.py-sec .py-logo-sec__motto { font-size: 28px; line-height: 1.2; }

/* 3. The PY difference */
.py-split { display: flex; flex-wrap: wrap; gap: 48px 80px; }
.py-split__intro { flex: 1 1 360px; min-width: 0; }
.py-split__main { flex: 1.6 1 520px; min-width: 0; }
.py-reasons { margin: 0; padding: 0; list-style: none; }
.py-reasons__item { padding: 24px 0; border-top: 1px solid var(--py-hairline); transition: border-color .15s ease; }
.py-reasons__item:hover { border-top-color: var(--py-ink); }
.py-sec .py-reasons__title { margin: 0 0 6px; font-size: 24px; font-weight: 400; line-height: 1.25; color: var(--py-ink); }
.py-reasons__text { font-size: 15px; color: var(--py-muted); }

/* 4. Our capabilities */
.py-capsec { padding-block: 100px 80px; }
.py-sec .py-sec__ruled { display: flex; align-items: center; gap: 22px; margin: 0 0 44px; font-size: clamp(34px, 3.4vw, 48px); }
.py-sec__ruled::after { content: ""; flex: 1; height: 1px; background: #3A3A40; }
.py-caps { display: flex; flex-wrap: wrap; gap: 28px; align-items: stretch; }
.py-caps__card { min-width: 0; padding: 34px 38px 14px; border: 1px solid #6B5A32; border-radius: 22px; background: linear-gradient(180deg, #18181C, #141417); }
.py-caps__card--core { flex: 1 1 560px; }
.py-caps__card--extended { flex: 1 1 400px; }
.py-sec .py-caps__title { display: flex; align-items: center; gap: 16px; margin: 0; font-size: clamp(28px, 2.6vw, 34px); font-weight: 400; line-height: 1.15; color: var(--py-white); }
.py-caps__title::before { content: ""; flex: none; width: 4px; height: 34px; border-radius: 2px; background: var(--py-gold); }
.py-sec .py-caps__intro { margin: 8px 0 26px 20px; font-size: 16px; font-style: italic; color: #C9C9CF; }
.py-caps__group { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 0; padding: 22px 0; border-top: 1px solid #3A3A40; }
.py-caps__group:first-of-type { border-top: 0; }
.py-caps__name { flex: 1 1 250px; min-width: 0; display: flex; align-items: center; gap: 20px; padding-right: 20px; }
.py-caps__icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border: 1px solid #6B5A32; border-radius: 16px; background: var(--py-ink); color: var(--py-gold); }
.py-sec .py-caps__group-title { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--py-white); }
.py-caps__items { flex: 1 1 250px; min-width: 0; margin: 0; padding: 0 0 0 24px; list-style: none; border-left: 1px solid #3A3A40; display: flex; flex-direction: column; gap: 2px; }
.py-caps__link { display: flex; align-items: center; gap: 12px; min-height: 32px; font-size: 16px; line-height: 1.3; color: var(--py-white); text-decoration: none; }
.py-caps__bullet { flex: none; width: 6px; height: 6px; background: var(--py-gold); }
.py-caps__rows { margin: 0; padding: 0; list-style: none; }
.py-caps__rows li + li { border-top: 1px solid #3A3A40; }
.py-caps__row { display: flex; align-items: center; gap: 20px; padding: 20px 0; color: var(--py-white); text-decoration: none; }
.py-caps__row-title { flex: 1; font-size: 20px; line-height: 1.25; }
.py-caps__arrow { flex: none; color: var(--py-gold); transition: transform .2s ease; }
.py-caps__link:hover, .py-caps__row:hover .py-caps__row-title { color: var(--py-gold); text-decoration: underline; text-underline-offset: 4px; }
.py-caps__row:hover .py-caps__arrow { transform: translateX(4px); }

/* 5. Across borders: three columns (the photo wall is in photo-wall.css, front end only) */
.py-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px 48px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--py-ink); }
.py-sec .py-col__title { margin: 0 0 8px; font-size: 22px; font-weight: 400; line-height: 1.2; color: var(--py-ink); }
.py-col .py-sec__small { font-size: 14px; }
.py-borders .py-cols + .py-more { margin-top: 32px; }

/* 6. Your attorneys */
.py-attsec { padding-block: 100px; }
.py-attsec .py-head { margin-bottom: 56px; }
.py-leads { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px; }
.py-lead {
	display: flex; flex-wrap: wrap; align-items: stretch; overflow: hidden; border: 1px solid #6B5A32; border-radius: 22px;
	background: linear-gradient(180deg, #18181C, #141417); color: var(--py-white); text-decoration: none; transition: border-color .15s ease;
}
.py-lead:hover { border-color: var(--py-gold); }
.py-lead__photo {
	position: relative; flex: 1 1 280px; min-height: 380px; display: flex; align-items: flex-end; justify-content: center;
	background: linear-gradient(160deg, #1E4A8C 0%, #0B2E63 55%, #D9962A 130%);
}
.py-lead__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.py-lead__silhouette { display: block; width: 64%; height: auto; fill: rgba(255, 255, 255, .28); }
.py-lead__badges { position: absolute; top: 14px; right: 14px; z-index: 2; display: flex; gap: 8px; }
.py-lead__badges span {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid #4A4A50; border-radius: 8px;
	background: rgba(20, 20, 23, .75); font-size: 15px; font-weight: 700; color: var(--py-white);
}
.py-lead:hover .py-lead__badges span:last-child { background: var(--py-gold); border-color: var(--py-gold); color: var(--py-dark); }
.py-lead__text { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 40px 36px; }
.py-lead__rule { display: block; width: 44px; height: 2px; margin-bottom: 22px; background: var(--py-gold); }
.py-sec .py-lead__name { margin: 0 0 4px; font-size: 30px; font-weight: 700; line-height: 1.15; color: var(--py-white); }
.py-lead__role { font-size: 18px; color: #C9C9CF; }
.py-lead__more { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-weight: 700; color: var(--py-gold); }
.py-lead:hover .py-lead__more { text-decoration: underline; text-underline-offset: 5px; }

/* 7. News */
.py-newssec { padding-block: 100px 110px; }
.py-news { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 32px; }
.py-news__item { min-width: 0; }
.py-news__link { display: flex; flex-direction: column; gap: 14px; color: var(--py-ink); text-decoration: none; }
.py-news__image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.py-news__category { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--py-alert); }
.py-sec .py-news__title { margin: 0; font-size: 26px; font-weight: 400; line-height: 1.22; color: var(--py-ink); }
.py-news__link:hover .py-news__title { text-decoration: underline; text-underline-offset: 5px; }
.py-news__meta { font-size: 13px; color: var(--py-muted); }

@media (max-width: 900px) {
	.py-sec, .py-intro, .py-attsec { padding-block: 80px; }
	.py-capsec { padding-block: 80px 64px; }
	.py-newssec { padding-block: 80px 88px; }
	.py-intro__mark { order: -1; justify-content: flex-start; }
	.py-mark--plain .py-mark__crop { max-width: 340px; }
}

@media (max-width: 700px) {
	.py-sec, .py-intro, .py-attsec, .py-newssec { padding-block: 64px; }
	.py-capsec { padding-block: 64px 56px; }
	.py-intro__body { padding-left: 18px; }
	.py-sec .py-intro__lede { font-size: 30px; }
	.py-sec .py-signoff { margin-top: 32px; font-size: 28px; }
	.py-mark--plain .py-mark__crop { max-width: 260px; }
	.py-caps__card { padding: 26px 22px 8px; border-radius: 18px; }
	.py-sec .py-caps__intro { margin-left: 20px; }
	.py-caps__name { padding-right: 0; }
	.py-caps__items { padding-left: 18px; }
	.py-attsec .py-head { margin-bottom: 40px; }
	.py-lead__photo { min-height: 300px; }
	.py-lead__text { padding: 30px 24px 34px; }
	.py-sec .py-lead__name { font-size: 26px; }
}

@media (prefers-reduced-motion: reduce) {
	.py-mark__figure img, .py-mark__label { animation: none; opacity: 1; }
	.py-mark__ring { display: none; }
	.py-reasons__item, .py-caps__arrow, .py-lead { transition: none; }
	.py-caps__row:hover .py-caps__arrow { transform: none; }
}
