/*
 * Shared surface geometry.
 *
 * The homepage CTA is the visual reference: a fine one-pixel line, three
 * restrained rounded corners and a square lower-left corner. Circular icons
 * and pill action buttons intentionally remain outside this system.
 */
:root {
	--pc-surface-radius: 20px 20px 20px 0;
	--pc-surface-radius-compact: 12px 12px 12px 0;
	--pc-surface-line: #eadfcd;
	--pc-surface-shadow: 0 14px 38px rgb(31 28 22 / 5%);
}

/* Primary panels and cards. */
:where(
	.home-cta__surface,
	.home-booking__panel,
	.home-about__image,
	.home-trust__item,
	.home-review-card__article,
	.home-journey-network__services li,
	.home-journey-network__brand-card,
	.content-card__media,
	.content-card__body,
	.service-card__media,
	.service-card__panel,
	.vehicle-card__media,
	.vehicle-card__panel,
	.semantic-content-card,
	.news-card__content,
	.entry__featured,
	.pc-consultant-card,
	.pc-consultant-profile-hero__media,
	.pc-consultant-profile-expertise__list li,
	.pc-core-page > section,
	.pc-proof-strip ul,
	.pc-contact-channel,
	.service-archive__empty,
	.service-archive__trust-list li,
	.service-archive__steps li,
	.service-archive__cta-inner,
	.service-route__shell,
	.service-route__map,
	.service-pricing__shell,
	.service-pricing__table-wrap,
	.service-overview__visual,
	.service-overview__inclusions > section,
	.service-vehicle-card__media,
	.service-vehicle-card__panel,
	.service-gallery__figure,
	.service-faq-list,
	.service-toc,
	.service-booking-card,
	.booking-card
) {
	border-radius: var(--pc-surface-radius) !important;
}

/* Fine outlines and lighter elevation replace inflated, soft card styling. */
:where(
	.home-cta__surface,
	.home-booking__panel,
	.home-trust__item,
	.home-review-card__article,
	.home-journey-network__services li,
	.home-journey-network__brand-card,
	.content-card__body,
	.semantic-content-card,
	.pc-consultant-card,
	.pc-core-page > section,
	.pc-proof-strip ul,
	.pc-contact-channel,
	.service-archive__empty,
	.service-archive__trust-list li,
	.service-archive__steps li,
	.service-archive__cta-inner,
	.service-pricing__shell,
	.service-overview__inclusions > section,
	.service-vehicle-card__panel,
	.service-faq-list,
	.service-toc,
	.service-booking-card,
	.booking-card
) {
	border-width: 1px;
	border-style: solid;
	box-shadow: var(--pc-surface-shadow);
}

:where(
	.home-cta__surface,
	.home-booking__panel,
	.home-trust__item,
	.home-review-card__article,
	.home-journey-network__services li,
	.home-journey-network__brand-card,
	.content-card__body,
	.semantic-content-card,
	.pc-consultant-card,
	.pc-proof-strip ul,
	.pc-contact-channel:not(.pc-contact-channel--dark):not(.pc-contact-channel--gold),
	.service-archive__empty,
	.service-archive__trust-list li,
	.service-archive__steps li,
	.service-archive__cta-inner,
	.service-pricing__shell,
	.service-overview__inclusions > section,
	.service-vehicle-card__panel,
	.service-faq-list,
	.service-toc,
	.service-booking-card,
	.booking-card
) {
	border-color: var(--pc-surface-line);
}

.pc-contact-channel--dark,
.pc-core-page > section.pc-customer-gallery,
.pc-about-page section[aria-labelledby="about-how-it-works"],
.pc-about-page section[aria-labelledby="about-contacts"],
.pc-contact-page section[aria-labelledby="contact-changes"] {
	border-color: rgb(255 255 255 / 13%);
}

.pc-contact-channel--gold {
	border-color: #dca849;
}

/* Mega menu follows the same outer geometry with compact inner link cards. */
.mega-menu__panel-inner,
.mega-menu__visual {
	border-radius: var(--pc-surface-radius) !important;
}

.mega-menu__panel-inner {
	border-width: 1px !important;
	border-style: solid !important;
	border-color: var(--pc-surface-line) !important;
	box-shadow: 0 18px 50px rgb(27 27 27 / 12%);
}

:where(
	.mega-menu__panel .mega-menu__item > a,
	.pc-core-page .entry-lead,
	.pc-core-page dl > div,
	.pc-core-page details,
	.pc-customer-gallery figure,
	.pc-booking__route-summary,
	.pc-booking__optional,
	.home-booking__consent,
	.service-route__stat,
	.service-route__path,
	.service-faq-item
) {
	border-radius: var(--pc-surface-radius-compact) !important;
}

:where(
	.pc-core-page .entry-lead,
	.pc-core-page dl > div,
	.pc-core-page details,
	.pc-customer-gallery figure,
	.pc-booking__route-summary,
	.pc-booking__optional,
	.home-booking__consent,
	.service-route__stat,
	.service-route__path,
	.service-faq-item
) {
	border-width: 1px;
	border-style: solid;
}

/* Preserve the reference geometry on narrow screens instead of returning to
 * symmetrical rounded rectangles. */
@media (max-width: 640px) {
	:root {
		--pc-surface-radius: 16px 16px 16px 0;
		--pc-surface-radius-compact: 10px 10px 10px 0;
	}
}
