/*
 * Company profile page (client sketch 2026-11-01). Loaded after villa-proffs.css on
 * single villa_proffs pages only; the legacy stylesheet still owns the contact card,
 * stars, badges and the comment list.
 */

.vp-company {
	--vp-company-green: #1a4837;
	--vp-company-green-soft: #ece6da;
	--vp-company-bg: #f7f5f0;
	background: var(--vp-company-bg);
	padding-bottom: 48px;
}

/* ── Cover ─────────────────────────────────────────────── */

.vp-company-cover {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: clamp(260px, 38vw, 440px);
	overflow: hidden;
	color: #fff;
	background: var(--vp-company-green);
}

.vp-company-cover--plain {
	min-height: clamp(200px, 22vw, 260px);
	background: linear-gradient(135deg, #12352a 0%, var(--vp-company-green) 55%, #2f6a52 100%);
}

.vp-company-cover__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.vp-company-cover:not(.vp-company-cover--plain)::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
}

.vp-company-cover__inner {
	position: relative;
	z-index: 1;
	padding-top: 32px;
	padding-bottom: 72px;
}

.vp-company-cover__title {
	margin: 0;
	color: #fff;
	font-size: clamp(2rem, 4.5vw, 3.25rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.vp-company-cover__tagline {
	max-width: 640px;
	margin: 8px 0 0;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.6vw, 1.25rem);
	line-height: 1.4;
}

/* ── Header card ───────────────────────────────────────── */

.vp-company-head {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 20px 24px;
	align-items: center;
	margin-top: -44px;
	padding: 20px 24px;
	background: #fff;
	border-radius: var(--vp-radius-lg);
	box-shadow: var(--vp-shadow-md);
}

.vp-company-head__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--vp-border);
	border-radius: var(--vp-radius);
}

.vp-company-head__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 8px;
}

.vp-company-head__initials {
	color: var(--vp-company-green);
	font-size: 2rem;
	font-weight: 800;
}

.vp-company-head__kicker {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin: 0 0 2px;
	color: var(--vp-ink-600);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vp-company-head__kicker .vp-card__premium-badge {
	position: static;
	margin-left: 4px;
}

.vp-company-head__kicker a {
	color: inherit;
	text-decoration: none;
}

.vp-company-head__kicker a:hover {
	color: var(--vp-company-green);
	text-decoration: underline;
}

.vp-company-head__name {
	margin: 0 0 6px;
	color: var(--vp-ink-950);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

.vp-company-head__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px;
	align-items: center;
	color: var(--vp-ink-700);
	font-size: 0.875rem;
}

.vp-company-head__place {
	display: inline-flex;
	gap: 4px;
	align-items: center;
	color: inherit;
	text-decoration: none;
}

.vp-company-head__place:hover {
	color: var(--vp-company-green);
}

.vp-company-head__place .vp-icon {
	width: 16px;
	height: 16px;
}

/* villa-proffs.css styles .vp-stars but not the SVG stars themselves. */
.vp-company .vp-star {
	display: inline-block;
	width: 16px;
	height: 16px;
	fill: var(--vp-star);
	color: var(--vp-star);
}

.vp-company .vp-star--empty {
	fill: var(--vp-star-empty);
}

.vp-company .vp-stars__rating {
	color: var(--vp-ink-950);
	font-weight: 700;
}

.vp-company-head__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

/* ── Buttons ───────────────────────────────────────────── */

/* The client's Customizer CSS gives every <a> and <p> "margin: 1em 0" and "line-height: 1". */
.vp-company-head__kicker a,
.vp-company-head__place,
.vp-company-btn {
	margin-top: 0;
	margin-bottom: 0;
}

.vp-company-btn {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--vp-company-green);
	border-radius: 8px;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background var(--vp-transition), color var(--vp-transition);
}

.vp-company-btn .vp-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.vp-company-btn--primary {
	background: var(--vp-company-green);
	color: #fff;
}

.vp-company-btn--primary:hover,
.vp-company-btn--primary:focus-visible {
	background: #12352a;
	color: #fff;
}

.vp-company-btn--soft {
	background: var(--vp-company-green-soft);
	border-color: var(--vp-company-green-soft);
	color: var(--vp-ink-950);
}

.vp-company-btn--soft:hover,
.vp-company-btn--soft:focus-visible {
	background: #e2d9c8;
	color: var(--vp-ink-950);
}

.vp-company-btn--outline {
	background: #fff;
	color: var(--vp-company-green);
}

.vp-company-btn--outline:hover,
.vp-company-btn--outline:focus-visible {
	background: var(--vp-company-green);
	color: #fff;
}

/*
 * The client's Customizer CSS paints every <button> with "background-color: #1a4837
 * !important"; only buttons that must not be dark green need the override.
 */
.vp-company-link {
	padding: 0;
	margin-top: 8px;
	background: none;
	background-color: transparent !important;
	border: 0;
	color: var(--vp-company-green);
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}

/* ── Body ──────────────────────────────────────────────── */

.vp-company-body {
	padding-top: 32px;
	background: transparent;
}

.vp-company .vp-profile__main {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.vp-company-section {
	padding: 28px;
	background: #fff;
	border-radius: var(--vp-radius-lg);
	box-shadow: var(--vp-shadow-sm);
}

.vp-company-section__title {
	margin: 0 0 16px;
	color: var(--vp-ink-950);
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

.vp-company-about__text {
	margin: 0;
}

.vp-company-about__text.is-clamped {
	position: relative;
	max-height: 13.5em;
	overflow: hidden;
}

.vp-company-about__text.is-clamped::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 4em;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
}

/* ── Gallery ───────────────────────────────────────────── */

.vp-company-gallery {
	padding: 12px;
}

.vp-company-gallery__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	grid-auto-rows: 170px;
	gap: 8px;
}

.vp-company-gallery__item {
	position: relative;
	display: block;
	margin: 0;
	overflow: hidden;
	background: var(--vp-ink-100);
	border-radius: var(--vp-radius);
}

.vp-company-gallery__item:first-child {
	grid-row: span 2;
}

.vp-company-gallery__item--more {
	display: none;
}

.vp-company-gallery__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.vp-company-gallery__item:hover .vp-company-gallery__img {
	transform: scale(1.03);
}

.vp-company-gallery__count {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
}

/* Fewer images: let the first one fill the row. */
.vp-company-gallery__grid--1 {
	grid-template-columns: 1fr;
	grid-auto-rows: 340px;
}

.vp-company-gallery__grid--1 .vp-company-gallery__item:first-child {
	grid-row: auto;
}

.vp-company-gallery__grid--2 {
	grid-template-columns: 1fr 1fr;
	grid-auto-rows: 280px;
}

.vp-company-gallery__grid--2 .vp-company-gallery__item:first-child {
	grid-row: auto;
}

.vp-company-gallery__grid--3 {
	grid-template-columns: 2fr 1fr;
}

.vp-company-gallery__grid--4 .vp-company-gallery__item:nth-child(4) {
	grid-column: span 2;
}

/* ── Services ──────────────────────────────────────────── */

.vp-company-services__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	padding: 0;
	margin: 0;
	list-style: none;
}

.vp-company-services__item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px 16px;
	background: var(--vp-company-bg);
	border-radius: var(--vp-radius);
	color: var(--vp-ink-950);
	font-size: 0.9375rem;
	line-height: 1.4;
}

.vp-company-services__check {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--vp-company-green);
}

.vp-company-services__text {
	display: block;
	margin-top: 2px;
	color: var(--vp-ink-600);
	font-size: 0.875rem;
}

/* ── Reviews ───────────────────────────────────────────── */

.vp-company-reviews__head {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.vp-company-reviews__head .vp-company-section__title {
	margin: 0;
}

.vp-company-reviews .comments-title {
	margin: 8px 0 12px;
	color: var(--vp-ink-600);
	font-size: 0.9375rem;
	font-weight: 600;
}

.vp-company-reviews.is-form-closed #respond {
	display: none;
}

.vp-company-reviews #respond {
	margin-top: 16px;
	padding-top: 20px;
	border-top: 1px solid var(--vp-border);
}

/* ── Contact card + map ────────────────────────────────── */

.vp-company .vp-contact-card {
	top: 100px;
	border-radius: var(--vp-radius-lg);
}

.vp-company .vp-contact-card__title {
	font-size: 1.125rem;
}

.vp-company-map {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
	justify-content: center;
	height: 150px;
	margin: 16px 0;
	overflow: hidden;
	background-color: #e8ece4;
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.7) 2px, transparent 2px),
		linear-gradient(0deg, rgba(255, 255, 255, 0.7) 2px, transparent 2px),
		linear-gradient(35deg, transparent 46%, #f6f1e3 46%, #f6f1e3 54%, transparent 54%);
	background-size: 38px 38px, 38px 38px, 100% 100%;
	border-radius: var(--vp-radius);
	color: var(--vp-company-green);
	text-decoration: none;
}

.vp-company-map__pin svg {
	width: 36px;
	height: 36px;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
}

.vp-company-map__label {
	padding: 4px 10px;
	background: #fff;
	border-radius: var(--vp-radius-full);
	box-shadow: var(--vp-shadow-sm);
	font-size: 0.8125rem;
	font-weight: 700;
}

.vp-company-map:hover .vp-company-map__label {
	text-decoration: underline;
}

.vp-company .vp-btn--primary {
	background: var(--vp-company-green);
	border-color: var(--vp-company-green);
}

.vp-company .vp-btn--outline {
	border-color: var(--vp-company-green);
	color: var(--vp-company-green);
}

.vp-company .vp-btn--primary:hover,
.vp-company .vp-btn--primary:focus-visible {
	background: #12352a;
	border-color: #12352a;
}

.vp-company .vp-btn--outline:hover,
.vp-company .vp-btn--outline:focus-visible {
	background: var(--vp-company-green);
	color: #fff;
}

/*
 * The client's Customizer CSS also has "a:hover { color: #1f5a44 !important; text-decoration:
 * underline }", which would turn button text dark green on a dark green button. Link-styled
 * buttons and tiles repeat their hover colour with !important.
 */
.vp-company-btn:hover,
.vp-company-btn:focus-visible,
.vp-company .vp-btn:hover,
.vp-company .vp-btn:focus-visible,
.vp-company-map:hover,
.vp-company-head__place:hover {
	text-decoration: none;
}

.vp-company-btn--primary:hover,
.vp-company-btn--primary:focus-visible,
.vp-company-btn--outline:hover,
.vp-company-btn--outline:focus-visible,
.vp-company .vp-btn--primary:hover,
.vp-company .vp-btn--primary:focus-visible,
.vp-company .vp-btn--outline:hover,
.vp-company .vp-btn--outline:focus-visible {
	color: #fff !important;
}

.vp-company-btn--soft:hover,
.vp-company-btn--soft:focus-visible {
	color: var(--vp-ink-950) !important;
}

.vp-company-map:hover {
	color: var(--vp-company-green) !important;
}

/* ── Lightbox ──────────────────────────────────────────── */

.vp-lightbox {
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	padding: 0;
	margin: 0;
	background: rgba(10, 14, 12, 0.94);
	border: 0;
}

.vp-lightbox[open] {
	display: flex;
	align-items: center;
	justify-content: center;
}

.vp-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.8);
}

.vp-lightbox__img {
	max-width: calc(100vw - 140px);
	max-height: calc(100vh - 100px);
	object-fit: contain;
}

.vp-lightbox__close,
.vp-lightbox__nav {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	background-color: rgba(255, 255, 255, 0.12) !important;
	border: 0;
	border-radius: 50%;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.vp-lightbox__close:hover,
.vp-lightbox__nav:hover {
	background-color: rgba(255, 255, 255, 0.25) !important;
}

.vp-lightbox__close {
	top: 16px;
	right: 16px;
}

.vp-lightbox__nav--prev {
	left: 16px;
}

.vp-lightbox__nav--next {
	right: 16px;
}

.vp-lightbox__count {
	position: absolute;
	bottom: 16px;
	left: 0;
	right: 0;
	margin: 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	text-align: center;
}

/* ── Responsive ────────────────────────────────────────── */

@media (max-width: 1024px) {
	.vp-company-head {
		grid-template-columns: auto minmax(0, 1fr);
	}

	.vp-company-head__actions {
		grid-column: 1 / -1;
		justify-content: flex-start;
	}
}

@media (max-width: 768px) {
	.vp-company-cover__inner {
		padding-bottom: 56px;
	}

	.vp-company-head {
		gap: 14px 16px;
		margin-top: -32px;
		padding: 16px;
	}

	.vp-company-head__logo {
		width: 72px;
		height: 72px;
	}

	.vp-company-head__name {
		font-size: 1.25rem;
	}

	.vp-company-head__actions {
		display: grid;
		grid-template-columns: 1fr 1fr;
	}

	.vp-company-head__actions .vp-company-btn--primary {
		grid-column: 1 / -1;
	}

	.vp-company-btn {
		white-space: normal;
	}

	.vp-company-body {
		padding-top: 20px;
	}

	.vp-company-section {
		padding: 20px 16px;
	}

	.vp-company-gallery {
		padding: 8px;
	}

	.vp-company-gallery__grid,
	.vp-company-gallery__grid--3 {
		grid-template-columns: 1fr 1fr;
		grid-auto-rows: 130px;
	}

	.vp-company-gallery__item:first-child,
	.vp-company-gallery__grid--3 .vp-company-gallery__item:first-child {
		grid-column: 1 / -1;
		grid-row: auto;
		min-height: 220px;
	}

	.vp-company-gallery__grid--1,
	.vp-company-gallery__grid--2 {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px;
	}

	.vp-company-gallery__grid--4 .vp-company-gallery__item:nth-child(4) {
		grid-column: auto;
	}

	.vp-company-gallery__grid--4 .vp-company-gallery__item:nth-child(4):last-child {
		grid-column: 1 / -1;
	}

	.vp-lightbox__img {
		max-width: 100vw;
	}

	.vp-lightbox__nav {
		top: auto;
		bottom: 12px;
	}
}
