/*
Theme Name: Property Lawyers Alliance
Description: A custom theme matching the Property Lawyers Alliance (propertylawyersalliance.co.uk) public site: editorial layout, hero slideshow, campaigns, and forms.
Version: 1.0.8
Author: PLA migration
Text Domain: pla
*/

:root {
	--pla-text: #222;
	--pla-nav: #686868;
	--pla-footer-text: #283618;
	--pla-accent-olive: #606c38;
	--pla-terracotta: #bc6c25;
	--pla-cream: #fefae0;
	--pla-pink: #ea587d;
	--pla-line: #e5e5e5;
	--pla-header-h: 50px;
	--pla-container: 652px;
	--pla-gutter: 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	color: var(--pla-text);
	font-family: "DM Sans", system-ui, sans-serif;
	font-size: 1rem;
	line-height: 1.45;
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
body.pla-site {
	overflow-x: hidden;
}

h1, h2, h3, h4 {
	font-family: "Bodoni Moda", "Libre Bodoni", Georgia, serif;
	font-weight: 700;
	line-height: 1.2;
	color: var(--pla-text);
	margin: 0 0 0.75em;
}

p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { opacity: 0.8; }

.pla-skip-link {
	position: absolute; left: -9999px; z-index: 100000;
}
.pla-skip-link:focus { left: 0.5rem; top: 0.5rem; background: #fff; padding: 0.5rem; }

/* --- Site header (fixed + bar + rule) --- */
.pla-topbar {
	position: sticky; top: 0; z-index: 200;
	background: #fff;
	border-bottom: 1px solid #000;
}
.pla-topbar__inner {
	max-width: 1100px; margin: 0 auto; padding: 0 var(--pla-gutter);
	display: flex; align-items: center; justify-content: space-between;
	min-height: 40px;
}
.pla-logo img, .custom-logo-link img, .custom-logo {
	display: block; height: auto; max-height: 40px; max-width: 100px; vertical-align: top;
}
.custom-logo-link { display: flex; align-items: center; }
.pla-nav--primary { font-size: 14px; }
.pla-nav--primary .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0.5rem; }
.pla-nav--primary a { text-decoration: none; color: var(--pla-nav); }
.pla-nav--primary a:hover { color: #2a2a2a; }
.pla-nav--primary .current-menu-item a { color: var(--pla-nav); font-weight: 500; }
.pla-nav--primary .menu-item:not(:last-child)::after {
	content: " \2022 "; /* bullet */
	margin-left: 0.4rem; color: var(--pla-nav);
}
.pla-nav--primary .menu-item:last-child::after { content: none; }
.pla-mnav-toggle { display: none; border: 0; background: transparent; font-size: 14px; color: var(--pla-nav); cursor: pointer; padding: 0.5rem; }

/* --- Main --- */
.pla-site { padding-bottom: 0; }
.pla-main { padding-bottom: 2.5rem; }
.pla-content { max-width: 1100px; margin: 0 auto; padding: 0 var(--pla-gutter) 2rem; }
.pla-content--home { padding-top: 0.75rem; }

/* --- Front hero: full-bleed slideshow + brand overlay (https://propertylawyersalliance.co.uk/ ) --- */
.pla-hero--full {
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	max-width: none;
	position: relative;
	left: auto; right: auto;
}
.pla-hero--full + .pla-content--home { margin-top: 0; }
.pla-hero {
	margin: 0 0 0.5rem;
}
.pla-hero__viewport {
	width: 100%;
	/* Home strip: wide banner; `cover` fills 100% width+height of this box (no “pillarbox” from `contain` on a very wide aspect). */
	aspect-ratio: 1024 / 366;
	min-height: 200px;
	max-height: min(72vh, 720px);
	background: #0a0a0a;
	overflow: hidden;
	position: relative;
	isolation: isolate;
}
.pla-hero__slide {
	position: absolute; inset: 0; z-index: 1;
	opacity: 0; transition: opacity 0.7s ease;
	background-color: #0a0a0a;
	/* Edge-to-edge photo; `h=732`-style blurriness avoided via ?w=2400 on sources */
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}
.pla-hero__slide.is-active { opacity: 1; }
.pla-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	padding: 1.25rem 1rem;
	background: transparent;
}
/* Lockup: true transparent PNG from assets/images/thisone.png — no mat (avoid Canva thumbnail/preview URLs). */
.pla-hero__lockup {
	display: block;
	position: relative;
	z-index: 1;
	background: none;
	width: min(92vw, 60rem);
	max-width: 100%;
	height: auto;
	max-height: min(55vh, 400px);
	object-fit: contain;
	/* Single soft shadow; avoids weird halos on alpha edges vs stacked drop-shadows */
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.35));
}
.pla-hero__nav {
	text-align: center; margin: 0.4rem 0 0.25rem; font-size: 14px; color: #666; font-family: "Roboto", sans-serif;
}
.pla-hero__count .pla-cur { font-weight: 700; }

/* --- Home: ~2/3 width column, centered --- */
.pla-home__narrow {
	width: 100%;
	max-width: 66.666%;
	margin-left: auto;
	margin-right: auto;
}
@media (max-width: 900px) {
	.pla-home__narrow { max-width: min(92%, 40rem); }
}
.pla-content--home .pla-grid-2 { max-width: 100%; }
@media (min-width: 900px) {
	.pla-content--home .pla-dual--nl { max-width: 100% !important; }
}

/* --- Titles and intro (match across home + inner pages) --- */
.pla-hero-title, .pla-page-hero h1, .pla-page-hero h1 a {
	font-family: "Bodoni Moda", "Libre Bodoni", Georgia, serif;
	font-weight: 700;
	text-align: center;
	font-size: clamp(2.1rem, 4.5vw, 3.2rem);
	letter-spacing: 0.04em;
	line-height: 1.15;
	margin: 0 0 0.4em;
}
.pla-hero-intro, .pla-prose--intro, .pla-content--inner .pla-prose, .pla-content--inner .entry-content {
	font-family: "Bodoni Moda", Georgia, serif;
}
.pla-hero-intro, .pla-prose--intro,
.pla-content--inner .pla-prose, .pla-content--inner .entry-content {
	font-size: clamp(1.1rem, 1.7vw, 1.4rem);
	font-weight: 400; line-height: 1.42; text-align: left;
}
.pla-hero-intro {
	margin: 0 auto 0.5rem; max-width: 100%;
}
.pla-hero-intro p, .pla-content--inner .pla-prose p, .pla-content--inner .entry-content p {
	margin: 0 0 0.9em;
}
.pla-hero-intro p:last-child, .pla-prose p:last-child { margin-bottom: 0; }

/* Inner pages: same typographic width as home (~2/3) where layout allows */
.pla-content--inner {
	margin-left: auto;
	margin-right: auto;
}
.pla-content--inner .pla-page-hero,
.pla-content--inner > .pla-small-lead,
.pla-content--inner > p.pla-centered,
.pla-content--inner > h2,
.pla-content--inner .pla-h3-uc { max-width: 66.666%; margin-left: auto; margin-right: auto; }
.pla-content--inner .pla-prose, .pla-content--inner .entry-content {
	margin-left: auto; margin-right: auto;
	max-width: 66.666%;
}
.pla-content--inner .pla-form-outlined, .pla-content--inner .pla-dual--nl, .pla-content--inner .pla-form-note, .pla-content--inner .pla-form-success, .pla-content--inner .pla-h2-uc, .pla-content--inner .pla-h3-uc, .pla-content--inner h2, .pla-content--inner h3, .pla-content--inner h4 {
	margin-left: auto; margin-right: auto;
}
.pla-content--inner .pla-form-outlined { max-width: min(66.666%, 32rem) !important; }
.pla-content--inner .pla-dual--nl { max-width: min(66.666%, 32rem) !important; }
@media (max-width: 900px) {
	.pla-content--inner .pla-prose, .pla-content--inner .entry-content, .pla-content--inner .pla-page-hero { max-width: min(92%, 40rem); }
	.pla-content--inner .pla-h3-uc, .pla-content--inner h2, .pla-content--inner h3 { max-width: min(92%, 40rem) !important; }
}
/* About: split still full row; constrain prose in column only is handled in split */
.pla-content--inner--split .pla-prose { max-width: 100% !important; }
.pla-content--inner--split .pla-page-hero, .pla-content--inner--split h2 { max-width: 100% !important; }
.pla-content--inner .pla-card__title { font-size: clamp(0.72rem, 1.4vw, 0.9rem); }
.pla-content--inner.pla-blog .pla-page-hero, .pla-content--inner .pla-page-hero { width: 100%; }
.pla-content--inner.pla-blog .pla-grid-2, .pla-content--inner .pla-grid-2 { max-width: 100%; }

/* --- News box on home (two fields + submit) --- */
.pla-dual { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: stretch; margin: 0.75rem 0; max-width: 520px; margin-left: auto; margin-right: auto; }
.pla-dual--nl input[type="text"],
.pla-dual--nl input[type="email"] {
	flex: 1 1 200px; min-height: 44px;
	border: 1px solid var(--pla-terracotta);
	border-radius: 999px; background: var(--pla-cream);
	color: #bc6c25; text-align: center; font: 500 1rem/1.2 "DM Sans", sans-serif; padding: 0 0.75rem; outline: none;
}
.pla-dual--nl .pla-btn {
	font: 500 1rem/1.2 "DM Sans", sans-serif;
	color: #fff; background: var(--pla-terracotta);
	border: 0; border-radius: 999px; padding: 0.55rem 1.25rem; cursor: pointer;
	align-self: center; white-space: nowrap;
}
.pla-dual--nl .pla-btn:hover { background: var(--pla-footer-text); }
.pla-form-note { text-align: center; font-size: 0.85rem; color: #5a5a5a; margin: 0.5rem 0; }

/* --- Section: Current campaigns (home) --- */
.pla-h2-uc {
	font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em;
	margin: 2.5rem 0 0.5rem; text-align: left;
}
.pla-content--home .pla-h2-uc {
	text-align: center;
	font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.pla-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 640px) { .pla-grid-2 { grid-template-columns: 1fr; } }
.pla-card a { text-decoration: none; display: block; }
.pla-card a:hover .pla-card__img { box-shadow: 0 4px 20px rgba(0,0,0,0.12); }
.pla-card__img {
	border-radius: 10px; aspect-ratio: 4/3; background: #e8e8e8 center/cover;
	transition: box-shadow 0.2s;
}
.pla-card__title { margin: 0.4rem 0 0; font-size: 0.75rem; line-height: 1.2; }

/* --- About / inner section headings (h1 sizing is unified above) --- */
.pla-h3-uc { font-size: 1.1rem; text-transform: uppercase; margin: 1.5rem 0 0.75rem; }
.pla-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 768px) { .pla-split { grid-template-columns: 1fr; } }
.pla-split__img { border-radius: 10px; width: 100%; height: auto; display: block; }

/* --- Blog list --- */
.pla-blog .pla-card__title { font-size: 0.7rem; }

/* --- Contact / membership forms (outlined) --- */
.pla-form-outlined { max-width: 484px; margin: 0 auto; }
.pla-form-outlined p { margin-bottom: 1.25rem; }
.pla-form-outlined input[type="text"],
.pla-form-outlined input[type="email"],
.pla-form-outlined textarea {
	width: 100%;
	border: 0; box-shadow: 0 0 0 1px var(--pla-line) inset;
	background: #fff; font: 400 1.1rem/1.3 "Roboto", sans-serif;
	padding: 0.7rem 0.75rem; min-height: 50px; border-radius: 0;
}
.pla-form-outlined textarea { min-height: 72px; resize: vertical; }
.pla-form-outlined .pla-btn-submit {
	width: 100%; min-height: 50px; border: 0; background: rgba(232, 232, 232, 0.6);
	color: rgba(0,0,0,0.6); font: 400 1.1rem/1.3 "Roboto", sans-serif; cursor: pointer; margin-top: 0.25rem;
}
.pla-form-outlined .pla-btn-submit:hover { background: rgba(232, 232, 232, 0.95); color: #111; }
.pla-centered { text-align: center; }
.pla-italic { font-style: italic; }
.pla-small-lead { font-size: 1.25rem; line-height: 1.3; }

/* --- Single post / prose --- */
.pla-prose { max-width: 720px; margin: 0 auto; }
.pla-prose h2, .pla-prose h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.pla-article-hero { border-radius: 10px; width: 100%; max-height: 50vh; object-fit: cover; }
.pla-content--inner .pla-small-lead {
	font-size: clamp(1.15rem, 1.8vw, 1.45rem);
	line-height: 1.4;
}
.pla-content--inner--split .pla-dual--nl, .pla-content--inner--split .pla-prose, .pla-content--inner--split h2, .pla-content--inner--split .pla-h3-uc, .pla-content--inner--split p.pla-centered, .pla-content--inner--split p.pla-small-lead, .pla-content--inner--split p.pla-italic {
	margin-left: 0 !important;
	margin-right: 0 !important;
	width: 100% !important;
}
.pla-content--inner--split { max-width: 1100px; }

/* In-footer brand mark (sits beside social — not full-width) */
.pla-footer-cta .pla-bottom-lockup {
	position: static;
	display: block;
	line-height: 0;
	background: none;
	border: 0;
	flex: 0 0 auto;
}
.pla-footer-cta .pla-bottom-lockup img {
	background: transparent;
	width: auto;
	height: auto;
	max-width: min(42vw, 200px);
	max-height: 88px;
	display: block;
}

/* --- Footer: two columns (ref. original) — top hairline, vertical divider, white field --- */
.pla-footer-cta { margin-top: 3rem; background: #fff; border-top: 1px solid #9a9a90; }
.pla-footer-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 1.5rem;
	max-width: 1100px;
	margin: 0 auto;
	padding: 1.4rem var(--pla-gutter) 1.6rem;
	color: #111;
	font-family: "DM Sans", system-ui, sans-serif;
}
.pla-footer-cta__left {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1.75rem 2.25rem;
	min-width: 0;
}
.pla-footer-cta__social {
	text-align: left;
}
.pla-footer-cta__vsep {
	width: 1px;
	min-height: 3.5rem;
	align-self: stretch;
	background: #b8b8b8;
	flex: 0 0 auto;
}
.pla-footer-cta__right {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.4rem;
	flex: 1 1 300px;
	min-width: 0;
}
.pla-footer-cta__right .pla-dual--nl {
	margin: 0;
	margin-left: auto;
	justify-content: flex-end;
}
.pla-footer-cta__right .pla-form-success,
.pla-footer-cta__right .pla-form-note {
	margin: 0.35rem 0 0;
	text-align: right;
}
.pla-footer-cta__lead { margin: 0 0 0.1rem; font-size: 0.95rem; }
.pla-footer-cta a { text-decoration: none; color: #1a1a1a; border-bottom: 1px solid #333; }
.pla-footer-cta a:hover { opacity: 0.75; }
.pla-footer-cta h3, .pla-footer-cta p { font-family: inherit; margin: 0 0 0.2rem; color: #111; }
.pla-footer-heading { font-size: 0.95rem; font-weight: 700; }
.pla-form-success { color: #2d6a2d; }
@media (max-width: 768px) {
	.pla-footer-cta__vsep { display: none; }
	.pla-footer-cta__inner { flex-direction: column; align-items: stretch; }
	.pla-footer-cta__right { align-items: flex-start; }
	.pla-footer-cta__right .pla-dual--nl { margin-left: 0; justify-content: flex-start; }
	.pla-footer-cta__right .pla-form-success, .pla-footer-cta__right .pla-form-note { text-align: left; }
}

@media (max-width: 800px) {
	.pla-topbar__inner { flex-wrap: wrap; }
	.pla-mnav-toggle { display: block; margin-left: auto; }
	.pla-nav--primary { display: none; order: 3; width: 100%; }
	.pla-nav--primary.is-mobile-open { display: block; }
	.pla-nav--primary .menu { flex-direction: column; padding: 0.5rem 0 0.5rem; gap: 0.2rem; }
	.pla-nav--primary .menu-item::after { content: none !important; }
}

/* Editor content */
.entry-content a { text-decoration: underline; text-decoration-color: #000; }
