/**
 * Home page design system.
 *
 * Deliberately mirrors the tokens and component patterns already proven on
 * /bookkeeping-services-glasgow/ — same navy, same green accent, same card,
 * step and FAQ treatments — so the two pages read as one product.
 *
 * Loaded only on the front page. No web fonts: the reference page declares
 * Raleway and DM Sans but never loads them, so it already renders in the
 * system stack. Matching that keeps the look identical and costs no requests.
 */

.lpa-home {
	--navy: #0d2117;
	--navy2: #163220;
	--green: #4CAF50;
	--green-lt: #81C784;
	--green-dk: #2E7D32;
	--green-bg: #e8f5e9;
	--cream: #f4faf5;
	--white: #ffffff;
	--slate: #4a5568;
	--muted: #8896a9;
	--border: #e2e8f0;
	--radius: 12px;
	--shadow: 0 4px 24px rgba(15, 30, 56, .09);
	--shadow-lg: 0 18px 50px rgba(13, 33, 23, .18);
	--head: "Raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	font-family: var(--body);
	color: var(--slate);
	line-height: 1.65;
}

/* Break out of the theme container so sections run edge to edge. */
.lpa-home {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.lpa-home * { box-sizing: border-box; }

.lpa-home__container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

.lpa-home__section { padding: clamp(48px, 8vw, 80px) 0; }
.lpa-home__section--cream { background: var(--cream); }
.lpa-home__section--navy { background: var(--navy); color: rgba(255,255,255,.82); }
.lpa-home__section--white { background: var(--white); }

.lpa-home__eyebrow {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--green);
}

.lpa-home__title {
	font-family: var(--head);
	font-size: clamp(1.75rem, 3.2vw, 2.8rem);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: -.015em;
	color: var(--navy);
	margin: 0 0 16px;
	text-wrap: balance;
}

.lpa-home__section--navy .lpa-home__title { color: var(--white); }

.lpa-home__subtitle {
	max-width: 62ch;
	margin: 0 0 40px;
	font-size: clamp(1rem, 1.5vw, 1.1rem);
	color: var(--slate);
}

.lpa-home__section--navy .lpa-home__subtitle { color: rgba(255,255,255,.72); }

.lpa-home__head--center { text-align: center; }
.lpa-home__head--center .lpa-home__subtitle { margin-inline: auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.lpa-home__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 14px 28px;
	border: none;
	border-radius: 8px;
	background: var(--green);
	color: var(--white);
	font-family: var(--body);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s, transform .15s, box-shadow .2s;
}

.lpa-home__btn:hover {
	background: var(--green-dk);
	color: var(--white);
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(76, 175, 80, .3);
}

.lpa-home__btn--ghost {
	background: transparent;
	color: var(--white);
	box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}

.lpa-home__btn--ghost:hover {
	background: rgba(255,255,255,.08);
	box-shadow: inset 0 0 0 2px var(--green);
}

.lpa-home__btn--dark {
	background: var(--navy);
	color: var(--white);
}

.lpa-home__btn--dark:hover { background: var(--navy2); }

.lpa-home__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 32px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.lpa-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(48px, 9vw, 92px) 0 clamp(44px, 8vw, 80px);
	background:
		radial-gradient(900px 420px at 85% -10%, rgba(76,175,80,.22), transparent 60%),
		linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
	color: rgba(255,255,255,.82);
}

.lpa-hero__grid {
	display: grid;
	gap: clamp(28px, 5vw, 56px);
	align-items: center;
}

.lpa-hero__title {
	font-family: var(--head);
	font-size: clamp(2rem, 5vw, 3.4rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -.025em;
	color: var(--white);
	margin: 0 0 18px;
	text-wrap: balance;
}

.lpa-hero__title em {
	font-style: normal;
	color: var(--green-lt);
}

.lpa-hero__lead {
	max-width: 56ch;
	margin: 0 0 28px;
	font-size: clamp(1rem, 1.7vw, 1.18rem);
	color: rgba(255,255,255,.78);
}

/* Location keywords strip — scrolling list of cities served, brand green pills */

.lpa-hero__locations {
	overflow: hidden;
	margin: 0 0 20px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.lpa-hero__locations-track {
	display: flex;
	width: max-content;
	animation: lpa-locations-scroll 34s linear infinite;
}

.lpa-hero__locations-set {
	display: flex;
	gap: 10px;
	padding-right: 10px;
}

.lpa-hero__locations-set span {
	display: inline-flex;
	align-items: center;
	padding: 6px 16px;
	border-radius: 999px;
	background: rgba(76,175,80,.16);
	border: 1px solid rgba(129,199,132,.4);
	color: var(--green-lt);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
}

@keyframes lpa-locations-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.lpa-hero__locations-track { animation: none; }
}

.lpa-hero__media {
	margin: 0;
	border-radius: 18px;
	overflow: hidden;
	background: var(--white);
	box-shadow: var(--shadow-lg);
	line-height: 0;
}

.lpa-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 430px;
	object-fit: cover;
}

/* Stats */

.lpa-hero__stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lpa-hero__stat {
	padding: 16px 14px;
	border: 1px solid rgba(255,255,255,.14);
	border-radius: var(--radius);
	background: rgba(255,255,255,.05);
	text-align: center;
}

.lpa-hero__stat-num {
	display: block;
	font-family: var(--head);
	font-size: clamp(1.35rem, 3vw, 1.9rem);
	font-weight: 800;
	color: var(--green-lt);
	line-height: 1.1;
}

.lpa-hero__stat-lbl {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: rgba(255,255,255,.7);
}

/* Trust strip */

.lpa-trust {
	padding: 18px 0;
	background: var(--navy2);
	border-top: 1px solid rgba(255,255,255,.08);
}

.lpa-trust__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lpa-trust__item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255,255,255,.8);
	font-size: 13.5px;
	font-weight: 600;
}

.lpa-trust__item::before {
	content: "\2713";
	color: var(--green-lt);
	font-weight: 800;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.lpa-grid {
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.lpa-card {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	padding: 28px 26px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.lpa-card:hover {
	border-color: var(--green);
	box-shadow: var(--shadow);
	transform: translateY(-3px);
}

.lpa-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-bottom: 16px;
	border-radius: 10px;
	background: var(--green-bg);
	color: var(--green-dk);
	font-size: 22px;
}

.lpa-card__title {
	font-family: var(--head);
	font-size: 1.12rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 8px;
}

.lpa-card__text {
	margin: 0 0 16px;
	font-size: .95rem;
	color: var(--slate);
}

.lpa-card__link {
	margin-top: auto;
	color: var(--green-dk);
	font-weight: 700;
	font-size: .92rem;
	text-decoration: none;
}

.lpa-card__link:hover { text-decoration: underline; }
.lpa-card__link::after { content: " \2192"; }

/* ==========================================================================
   Numbered "why" list
   ========================================================================== */

.lpa-why {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.lpa-why__item {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.lpa-why__num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: var(--navy);
	border: 2px solid var(--green);
	color: var(--green-lt);
	font-family: var(--head);
	font-weight: 800;
	font-size: 1rem;
}

.lpa-why__title {
	font-family: var(--head);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--navy);
	margin: 4px 0 6px;
}

.lpa-why__text { margin: 0; font-size: .95rem; }

/* ==========================================================================
   Process steps
   ========================================================================== */

.lpa-steps {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.lpa-steps__circle {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	border-radius: 50%;
	background: var(--navy);
	border: 3px solid var(--green);
	color: var(--green-lt);
	font-family: var(--head);
	font-size: 1.3rem;
	font-weight: 700;
}

.lpa-steps__title {
	font-family: var(--head);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--navy);
	margin: 0 0 8px;
}

.lpa-home__section--navy .lpa-steps__title { color: var(--white); }
.lpa-steps__text { margin: 0; font-size: .93rem; }

/* ==========================================================================
   Locations
   ========================================================================== */

.lpa-locs {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	margin: 0;
	padding: 0;
	list-style: none;
}

.lpa-locs__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 52px;
	padding: 14px 18px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--white);
	color: var(--navy);
	font-weight: 700;
	font-size: .95rem;
	text-decoration: none;
	transition: border-color .2s, background .2s, transform .2s;
}

.lpa-locs__link:hover {
	border-color: var(--green);
	background: var(--green-bg);
	color: var(--green-dk);
	transform: translateY(-2px);
}

.lpa-locs__tag {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.lpa-faq { max-width: 820px; margin-inline: auto; }

.lpa-faq__item {
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
	margin-bottom: 12px;
	overflow: hidden;
}

.lpa-faq__item[open] { border-color: var(--green); }

.lpa-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
	font-family: var(--head);
	font-weight: 700;
	font-size: 1.02rem;
	color: var(--navy);
	list-style: none;
}

.lpa-faq__q::-webkit-details-marker { display: none; }

.lpa-faq__q::after {
	content: "+";
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--green-bg);
	color: var(--green-dk);
	font-size: 18px;
	line-height: 1;
	transition: transform .2s;
}

.lpa-faq__item[open] .lpa-faq__q::after {
	content: "\2212";
	transform: rotate(180deg);
}

.lpa-faq__a {
	padding: 0 22px 20px;
	margin: 0;
	font-size: .96rem;
	color: var(--slate);
}

/* ==========================================================================
   Contact / map band
   ========================================================================== */

.lpa-contactband__grid {
	display: grid;
	gap: clamp(24px, 4vw, 44px);
	align-items: start;
}

.lpa-contactband__map {
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	line-height: 0;
	min-height: 300px;
}

.lpa-contactband__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 300px;
	border: 0;
}

.lpa-nap {
	font-style: normal;
	color: rgba(255,255,255,.82);
	line-height: 1.8;
}

.lpa-nap strong { color: var(--white); }

.lpa-nap a { color: var(--green-lt); text-decoration: none; font-weight: 700; }
.lpa-nap a:hover { text-decoration: underline; }

/* Reviews + form bands inherit the container width. */
.lpa-home .wpcf7 { max-width: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (min-width: 900px) {
	.lpa-hero__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
	.lpa-contactband__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 899px) {
	.lpa-hero__media { order: -1; }
	.lpa-hero__media img { max-height: 240px; }
	.lpa-home__actions .lpa-home__btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
	.lpa-hero__stats { grid-template-columns: 1fr; }
	.lpa-hero__stat { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
	.lpa-hero__stat-num { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
	.lpa-card:hover,
	.lpa-locs__link:hover,
	.lpa-home__btn:hover { transform: none; }
}

/* ==========================================================================
   City selector
   Replaces the old "where we work" grid and the footer cards that repeated
   the same phone number and "served remotely" line nine times.
   ========================================================================== */

.lpa-cities__list {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
	margin: 0 0 20px;
	padding: 0;
	list-style: none;
}

.lpa-cities__item {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--border, #e2e8f0);
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
	transition: border-color .2s, box-shadow .2s, transform .2s;
}

.lpa-cities__item:hover { border-color: #4CAF50; transform: translateY(-2px); }

.lpa-cities__item.is-active {
	border-color: #4CAF50;
	box-shadow: 0 0 0 2px rgba(76, 175, 80, .25);
}

.lpa-cities__pick {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-height: 48px;
	padding: 13px 16px;
	color: #0d2117;
	font-weight: 700;
	text-decoration: none;
}

.lpa-cities__item.is-active .lpa-cities__pick { background: #e8f5e9; color: #2E7D32; }

.lpa-cities__tag {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: #8896a9;
}

.lpa-cities__more {
	display: block;
	padding: 9px 16px;
	border-top: 1px solid var(--border, #e2e8f0);
	color: #2E7D32;
	font-size: .8rem;
	font-weight: 600;
	text-decoration: none;
}

.lpa-cities__more:hover { background: #f4faf5; text-decoration: underline; }

.lpa-cities__note {
	max-width: 70ch;
	margin: 0 auto;
	text-align: center;
	color: #4a5568;
	font-size: .95rem;
}

.lpa-hero__reassure {
	margin: 0 0 22px;
	padding: 12px 16px;
	border-left: 3px solid #81C784;
	border-radius: 0 8px 8px 0;
	background: rgba(255, 255, 255, .07);
	color: rgba(255, 255, 255, .85);
	font-size: .96rem;
}

/* Compact variant used in the footer. */
.lpa-cities--compact .lpa-cities__list { gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.lpa-cities--compact .lpa-cities__pick { min-height: 44px; padding: 10px 13px; font-size: .9rem; }
.lpa-cities--compact .lpa-cities__more { display: none; }
.lpa-cities--compact .lpa-cities__note { text-align: left; font-size: .88rem; }

/* ==========================================================================
   Footer: single office block + city picker, and clean social icons
   ========================================================================== */

.lpa-footer-locations__inner {
	display: grid;
	gap: clamp(20px, 4vw, 40px);
	max-width: 1140px;
	margin-inline: auto;
}

@media (min-width: 900px) {
	.lpa-footer-locations__inner { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}

.lpa-footer-locations__subtitle { font-size: 1rem; margin: 0 0 12px; }
.lpa-footer-locations__hours { color: #718096; font-size: .88rem; margin: 6px 0 14px; }

.lpa-social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.lpa-social__link {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	transition: background .2s, transform .2s, color .2s;
}

.lpa-social__link:hover {
	background: #4CAF50;
	color: #fff;
	transform: translateY(-2px);
}

.lpa-social__icon { display: block; }

/* Form: the submit must sit last, and fields must be full width. */
.lpa-formwrap .wpcf7 { max-width: 720px; margin-inline: auto; }
.lpa-formwrap .wpcf7 label { display: block; font-weight: 600; margin-bottom: 6px; }
.lpa-formwrap .wpcf7 .lpa-form__submit { margin-top: 22px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
	.lpa-cities__item:hover,
	.lpa-social__link:hover { transform: none; }
}

/* City selector: nation groups */

.lpa-cities__group + .lpa-cities__group { margin-top: 22px; }

.lpa-cities__nation {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #2E7D32;
}

.lpa-cities__nation::after {
	content: "";
	flex: 1 1 auto;
	height: 1px;
	background: var(--border, #e2e8f0);
}

.lpa-cities__count {
	display: inline-grid;
	place-items: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #e8f5e9;
	color: #2E7D32;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0;
}

.lpa-home__section--navy .lpa-cities__nation,
.lpa-footer-locations .lpa-cities__nation { color: #81C784; }

.lpa-home__section--navy .lpa-cities__nation::after,
.lpa-footer-locations .lpa-cities__nation::after { background: rgba(255,255,255,.16); }

.lpa-cities--compact .lpa-cities__group + .lpa-cities__group { margin-top: 14px; }
.lpa-cities--compact .lpa-cities__nation { font-size: .7rem; margin-bottom: 7px; }

/* ==========================================================================
   Footer: three columns
   ========================================================================== */

.lpa-footer__inner {
	display: grid;
	gap: clamp(24px, 4vw, 48px);
	max-width: 1140px;
	margin-inline: auto;
	padding: clamp(28px, 5vw, 48px) 24px;
}

@media (min-width: 860px) {
	.lpa-footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.lpa-footer__heading {
	margin: 0 0 14px;
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #81C784;
}

.lpa-footer__heading--sm { margin-top: 22px; }

.lpa-footer__list { margin: 0; padding: 0; list-style: none; }
.lpa-footer__list li + li { margin-top: 10px; }
.lpa-footer__list a { color: inherit; text-decoration: none; }
.lpa-footer__list a:hover { color: #81C784; text-decoration: underline; }
.lpa-footer__list--plain li { line-height: 1.5; font-size: .9rem; }
.lpa-footer__list--plain strong { color: inherit; }

.lpa-footer__nap {
	margin-top: 18px;
	font-style: normal;
	font-size: .9rem;
	line-height: 1.7;
}

.lpa-footer__nap a { color: #81C784; text-decoration: none; font-weight: 700; }
.lpa-footer__nap a:hover { text-decoration: underline; }
.lpa-footer__hours { display: inline-block; margin-top: 4px; opacity: .75; font-size: .84rem; }

.lpa-footer__intro { margin: 0 0 12px; font-size: .9rem; opacity: .85; }
.lpa-footer__form .wpcf7 { max-width: none; padding: 0; border: 0; background: transparent; box-shadow: none; }
.lpa-footer__form input[type="email"],
.lpa-footer__form input[type="text"] { width: 100%; }

@media (max-width: 859px) {
	.lpa-footer__inner { text-align: left; }
}

/* Contact block: labelled NAP rows */

.lpa-nap__row {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 10px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(255,255,255,.1);
}

.lpa-nap__row:last-child { border-bottom: 0; }

.lpa-nap__label {
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: #81C784;
	padding-top: 3px;
}

@media (max-width: 480px) {
	.lpa-nap__row { grid-template-columns: 1fr; gap: 2px; }
}

/* Link cards inside the merged contact block */
.lpa-contactband__links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
	gap: 10px;
	margin-top: 24px;
}
