/*
Theme Name: VGTELCO
Theme URI: https://vgtelco.com
Description: WooCommerce-ready presentation theme for VGTELCO.
Author: The Very Good Telephone Company Limited
Version: 0.3.1
Requires PHP: 8.1
Text Domain: vgtelco
Template: astra
*/

:root {
	--vgtelco-ink: #102033;
	--vgtelco-muted: #4b5c6b;
	--vgtelco-paper: #f3f6f8;
	--vgtelco-panel: #ffffff;
	--vgtelco-accent: #0b5ea8;
	--vgtelco-accent-dark: #08477e;
	--vgtelco-red: #c9282d;
	--vgtelco-line: #d7e0e7;
	--vgtelco-rail: 1120px;
	--vgtelco-gutter: 24px;
	--vgtelco-page-inset: 48px;
}

body {
	margin: 0;
	font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
	color: var(--vgtelco-ink);
	background:
		radial-gradient(circle at top left, rgba(11, 110, 79, 0.08), transparent 40%),
		linear-gradient(180deg, #eef3f6 0%, var(--vgtelco-paper) 45%, #e8eef2 100%);
}

.site-shell {
	width: min(var(--vgtelco-rail), calc(100% - var(--vgtelco-page-inset)));
	max-width: none;
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
}

.site-header,
.site-footer {
	background: #0d1b2a;
	color: #ffffff;
}

.site-header {
	width: min(var(--vgtelco-rail), calc(100% - var(--vgtelco-page-inset)));
	margin: 0 auto;
	padding: 20px 0;
	box-sizing: border-box;
}

.site-header .site-shell {
	width: 100%;
	padding: 0 var(--vgtelco-gutter);
}

.site-footer {
	padding: 20px 0;
}

.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	align-items: center;
	justify-content: space-between;
}

.site-branding a {
	color: inherit;
	text-decoration: none;
	font-size: 1.25rem;
	letter-spacing: 0.04em;
}

/* Preserve the logo aspect ratio at every breakpoint. */
.site-branding .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.site-branding .custom-logo {
	width: auto;
	height: auto;
	max-height: 48px;
	max-width: 240px;
}

.vgtelco-footer-logo .custom-logo {
	width: auto;
	height: auto;
	max-height: 36px;
	max-width: 180px;
	margin-bottom: 12px;
}

.vgtelco-section,
.content-panel,
.hero-panel {
	background: var(--vgtelco-panel);
	border: 1px solid var(--vgtelco-line);
	border-radius: 18px;
	padding: 40px;
	margin: 28px 0;
	box-shadow: 0 18px 40px rgba(16, 32, 51, 0.06);
}

/*
 * The front-page template already supplies its own semantic sections. Astra's
 * constrained content shell is removed on the homepage only, allowing the hero
 * to begin immediately below the header without affecting admin-bar offsets or
 * spacing on any other page.
 */
body.home .site-main {
	width: 100%;
	max-width: none;
	padding: 0;
}

.vgtelco-home-content {
	width: min(var(--vgtelco-rail), calc(100% - var(--vgtelco-page-inset)));
	max-width: none;
	margin: 0 auto;
	padding: 0;
}

.vgtelco-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	align-items: center;
	width: min(var(--vgtelco-rail), calc(100% - var(--vgtelco-page-inset)));
	min-height: clamp(520px, 45vw, 650px);
	margin: 0 auto;
	overflow: hidden;
	background: #102033;
	color: #ffffff;
}

.vgtelco-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	inset: 0;
	background: linear-gradient(
		90deg,
		rgba(10, 28, 48, 0.94) 0%,
		rgba(10, 28, 48, 0.84) 32%,
		rgba(10, 28, 48, 0.26) 58%,
		rgba(10, 28, 48, 0) 76%
	);
}

.vgtelco-hero__content {
	position: relative;
	z-index: 1;
	width: min(var(--vgtelco-rail), calc(100% - var(--vgtelco-page-inset)));
	margin: 0 auto;
	padding: 72px 0;
	min-width: 0;
}

.vgtelco-hero__content > * {
	max-width: 38rem;
}

.vgtelco-hero__media {
	position: absolute;
	z-index: -2;
	inset: 0;
	display: block;
}

.vgtelco-hero__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Astra colours headings directly, so inheriting the hero colour is not enough. */
.vgtelco-hero h1 {
	max-width: 13ch;
	margin-bottom: 20px;
	color: #ffffff;
	font-size: clamp(2.4rem, 4.8vw, 4.75rem);
	line-height: 0.98;
	letter-spacing: -0.04em;
	text-wrap: balance;
}

.vgtelco-hero__brand {
	display: flex;
	gap: 10px;
	align-items: center;
	color: #ffffff;
}

.vgtelco-hero__brand::before {
	content: "";
	width: 26px;
	height: 3px;
	background: var(--vgtelco-red);
}

.vgtelco-hero .vgtelco-hero__support {
	max-width: 36rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: clamp(1.02rem, 1.5vw, 1.2rem);
	line-height: 1.6;
}

.vgtelco-hero .vgtelco-button--secondary {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(13, 27, 42, 0.22);
}

.vgtelco-hero .vgtelco-button--secondary:hover,
.vgtelco-hero .vgtelco-button--secondary:focus-visible {
	background: #ffffff;
	color: var(--vgtelco-ink) !important;
}

.vgtelco-heritage-banner img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 1280 / 532;
	object-fit: cover;
	border-radius: 14px;
	margin-bottom: 24px;
}

.vgtelco-hero__brand {
	margin: 0 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.85rem;
	font-weight: 700;
}

.vgtelco-hero h1,
.vgtelco-section h1,
.vgtelco-section h2 {
	margin-top: 0;
	line-height: 1.15;
}

.vgtelco-hero__support,
.vgtelco-service-page__intro,
.vgtelco-service-page__note {
	color: var(--vgtelco-muted);
	max-width: 42rem;
}

.vgtelco-hero__actions,
.vgtelco-legacy-transition__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.vgtelco-button,
.button {
	display: inline-block;
	padding: 12px 18px;
	border-radius: 999px;
	background: var(--vgtelco-accent);
	color: #ffffff !important;
	text-decoration: none;
	font-weight: 600;
}

.vgtelco-button--secondary,
.button-secondary {
	background: transparent;
	color: var(--vgtelco-ink) !important;
	border: 1px solid var(--vgtelco-line);
}

.vgtelco-service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 24px;
	margin-top: 24px;
}

.vgtelco-why-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 18px;
	margin-top: 24px;
}

.vgtelco-service-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--vgtelco-line);
	border-radius: 14px;
	background: #fbfcfd;
	box-shadow: 0 10px 28px rgba(16, 32, 51, 0.07);
}

.vgtelco-service-card__picture {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #dce7ef;
}

.vgtelco-service-card__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center center;
}

.vgtelco-service-card__content {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 24px;
}

.vgtelco-service-card__content > p {
	color: var(--vgtelco-muted);
	line-height: 1.55;
}

.vgtelco-service-card__action {
	margin-top: auto;
	margin-bottom: 0;
	padding-top: 12px;
}

.vgtelco-service-card__action a {
	color: var(--vgtelco-accent-dark);
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.vgtelco-why-grid article {
	padding: 20px;
	border: 1px solid var(--vgtelco-line);
	border-radius: 14px;
	background: #fbfcfd;
}

.vgtelco-service-card h3,
.vgtelco-why-grid h3 {
	margin-top: 0;
}

.vgtelco-service-card h3 a {
	color: inherit;
	text-decoration: none;
}

.vgtelco-steps {
	margin: 24px 0 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 16px;
}

.vgtelco-steps li {
	display: grid;
	gap: 4px;
}

.vgtelco-section--cta {
	text-align: left;
	background: linear-gradient(180deg, #f7fbf9, #ffffff);
}

.vgtelco-trust-item {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	align-items: baseline;
	font-size: 0.95rem;
}

.vgtelco-trust-strip {
	margin: 0;
	padding: 18px 24px;
	border: 1px solid var(--vgtelco-line);
	border-top: 0;
	border-radius: 0 0 14px 14px;
	background: #ffffff;
	box-shadow: 0 10px 24px rgba(16, 32, 51, 0.05);
}

.vgtelco-trust-item__label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--vgtelco-accent-dark);
}

.vgtelco-trust-item__detail {
	color: var(--vgtelco-muted);
}

/* Services hub and service detail pages. */
.vgtelco-page-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	gap: 40px;
	align-items: center;
	margin: 0 0 28px;
	padding: 56px 40px;
	border-radius: 18px;
	background:
		radial-gradient(circle at 88% 12%, rgba(11, 94, 168, 0.35), transparent 55%),
		linear-gradient(135deg, #0d1b2a 0%, #102033 58%, #14283f 100%);
	color: #ffffff;
}

.vgtelco-page-hero h1 {
	margin: 0 0 16px;
	color: #ffffff;
	font-size: clamp(2rem, 3.4vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.vgtelco-page-hero__eyebrow {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 14px;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
}

.vgtelco-page-hero__eyebrow::before {
	content: "";
	width: 26px;
	height: 3px;
	background: var(--vgtelco-red);
}

.vgtelco-page-hero__intro {
	max-width: 38rem;
	margin: 0 0 14px;
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(1rem, 1.4vw, 1.15rem);
	line-height: 1.6;
}

.vgtelco-page-hero__note {
	max-width: 36rem;
	margin: 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 0.95rem;
	line-height: 1.55;
}

.vgtelco-page-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 24px 0 0;
}

.vgtelco-page-hero .vgtelco-button--secondary {
	color: #ffffff !important;
	border-color: rgba(255, 255, 255, 0.72);
	background: rgba(255, 255, 255, 0.08);
}

.vgtelco-page-hero .vgtelco-button--secondary:hover,
.vgtelco-page-hero .vgtelco-button--secondary:focus-visible {
	background: #ffffff;
	color: var(--vgtelco-ink) !important;
}

.vgtelco-services-mosaic {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.vgtelco-services-mosaic picture {
	display: block;
	overflow: hidden;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
}

.vgtelco-services-mosaic img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	object-fit: cover;
	object-position: center top;
}

.vgtelco-services-mosaic__lead {
	grid-column: 1 / -1;
	aspect-ratio: 16 / 9;
}

.vgtelco-services-mosaic__support {
	aspect-ratio: 4 / 3;
}

.vgtelco-page-hero__media .vgtelco-service-card__picture {
	aspect-ratio: 16 / 10;
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.08);
}

.vgtelco-service-badge {
	display: inline-block;
	margin: 0 0 12px;
	padding: 5px 12px;
	border: 1px solid rgba(201, 40, 45, 0.28);
	border-radius: 999px;
	background: rgba(201, 40, 45, 0.08);
	color: #8a1c1c;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.7rem;
	font-weight: 700;
}

.vgtelco-service-grid--pair {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vgtelco-service-card--hub .vgtelco-service-card__content {
	padding: 26px;
}

.vgtelco-service-card__good-for {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid var(--vgtelco-line);
	color: var(--vgtelco-muted);
	font-size: 0.95rem;
	line-height: 1.5;
}

.vgtelco-service-card__good-for-label {
	display: block;
	margin-bottom: 2px;
	color: var(--vgtelco-accent-dark);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	font-weight: 700;
}

.vgtelco-steps--numbered {
	counter-reset: vgtelco-step;
	list-style: none;
	padding-left: 0;
	gap: 20px;
}

.vgtelco-steps--numbered li {
	position: relative;
	padding-left: 52px;
}

.vgtelco-steps--numbered li::before {
	counter-increment: vgtelco-step;
	content: counter(vgtelco-step);
	position: absolute;
	left: 0;
	top: 0;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 999px;
	background: var(--vgtelco-accent);
	color: #ffffff;
	font-weight: 700;
}

.vgtelco-steps--numbered h3 {
	margin: 4px 0 4px;
	font-size: 1.05rem;
}

.vgtelco-steps--numbered span {
	color: var(--vgtelco-muted);
	line-height: 1.55;
}

.vgtelco-starting-points__list {
	display: grid;
	gap: 10px;
	margin: 24px 0 0;
	padding: 0;
	list-style: none;
}

.vgtelco-starting-points__list a {
	display: block;
	padding: 14px 18px;
	border: 1px solid var(--vgtelco-line);
	border-radius: 12px;
	background: #fbfcfd;
	color: var(--vgtelco-accent-dark);
	font-weight: 600;
	text-decoration: none;
}

.vgtelco-starting-points__list a:hover,
.vgtelco-starting-points__list a:focus-visible {
	background: #ffffff;
	border-color: var(--vgtelco-accent);
}

.vgtelco-service-benefits {
	margin: 20px 0 0;
	padding-left: 1.2rem;
	display: grid;
	gap: 10px;
	color: var(--vgtelco-muted);
	line-height: 1.55;
}

.vgtelco-service-status__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	align-items: center;
	margin: 24px 0 0;
}

.vgtelco-service-detail__good-for {
	max-width: 42rem;
	margin: 18px 0 0;
	padding-top: 12px;
	border-top: 1px solid var(--vgtelco-line);
	color: var(--vgtelco-muted);
}

.vgtelco-link {
	color: var(--vgtelco-accent-dark);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

.vgtelco-button:focus-visible,
.vgtelco-link:focus-visible,
.vgtelco-starting-points__list a:focus-visible,
.vgtelco-service-card h3 a:focus-visible,
.vgtelco-service-card__action a:focus-visible {
	outline: 3px solid #ffb703;
	outline-offset: 3px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.vgtelco-anniversary-badge {
	display: inline-grid;
	gap: 2px;
	margin: 20px 0 0;
	padding: 10px 16px;
	border: 1px solid var(--vgtelco-line);
	border-radius: 10px;
	background: #fbfcfd;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.72rem;
	color: var(--vgtelco-muted);
}

.vgtelco-company-details {
	margin: 20px 0 0;
	display: grid;
	gap: 4px 24px;
}

.vgtelco-company-details dt {
	font-weight: 600;
}

.vgtelco-company-details dd {
	margin: 0 0 12px;
	color: var(--vgtelco-muted);
}

.vgtelco-compliance-footer {
	margin-top: 24px;
	color: #d7e0e7;
	font-size: 0.95rem;
}

.vgtelco-registered-office {
	display: block;
	max-width: 42rem;
}

.vgtelco-cross-brand {
	margin: 20px 0 0;
	padding: 16px 0 0;
	border-top: 1px solid rgba(215, 224, 231, 0.25);
}

.vgtelco-cross-brand a {
	text-decoration: underline;
}

.vgtelco-compliance-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	list-style: none;
	padding: 0;
	margin: 16px 0 0;
}

.vgtelco-compliance-links a,
.site-navigation a,
.footer-navigation a {
	color: #ffffff;
	text-decoration: none;
}

.vgtelco-contact-form__honeypot {
	position: absolute;
	left: -10000px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vgtelco-contact-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.vgtelco-contact-form input,
.vgtelco-contact-form select,
.vgtelco-contact-form textarea {
	width: 100%;
	max-width: 40rem;
	padding: 10px 12px;
	border: 1px solid var(--vgtelco-line);
	border-radius: 10px;
}

.vgtelco-contact-form__notice--success {
	color: var(--vgtelco-accent-dark);
}

.vgtelco-contact-form__notice--error {
	color: #8a1c1c;
}

.vgtelco-legacy-transition {
	margin: 0;
	min-height: 100vh;
	display: grid;
	place-items: center;
	background: var(--vgtelco-paper);
}

.vgtelco-legacy-transition__panel {
	max-width: 40rem;
	padding: 40px;
	background: #ffffff;
	border-radius: 18px;
	border: 1px solid var(--vgtelco-line);
}

@media (max-width: 1024px) {
	.vgtelco-service-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vgtelco-page-hero {
		padding: 44px 32px;
		gap: 32px;
	}

	/* Three narrower service cards still read better than two plus a stray one. */
	.vgtelco-service-grid--trio {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vgtelco-service-card--hub .vgtelco-service-card__content {
		padding: 22px;
	}
}

@media (max-width: 900px) {
	.vgtelco-page-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.vgtelco-services-mosaic {
		order: 1;
	}

	.vgtelco-page-hero__content > * {
		max-width: 40rem;
	}

	.vgtelco-service-grid--trio {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: auto;
	}
}

/* Between tablet and phone the fifth card fills the final row as a wide card
   instead of sitting alone in a half-width slot. */
@media (max-width: 900px) and (min-width: 621px) {
	.vgtelco-service-grid--trio > :last-child {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
	}

	.vgtelco-service-grid--trio > :last-child .vgtelco-service-card__picture {
		height: 100%;
		aspect-ratio: auto;
		min-height: 220px;
	}
}

@media (max-width: 800px) {
	.vgtelco-hero {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.vgtelco-hero::after {
		display: none;
	}

	.vgtelco-hero__content {
		order: -1;
		width: 100%;
		box-sizing: border-box;
		margin: 0;
		padding: 48px 24px 40px;
		background:
			linear-gradient(135deg, rgba(11, 94, 168, 0.2), transparent 60%),
			#102033;
	}

	.vgtelco-hero h1 {
		max-width: 16ch;
		font-size: clamp(2.25rem, 9vw, 3.75rem);
	}

	.vgtelco-hero__media {
		position: static;
		order: 0;
		width: 100%;
		aspect-ratio: 1672 / 941;
	}

	.vgtelco-hero__image {
		width: 100%;
		height: auto;
		aspect-ratio: 1672 / 941;
		object-fit: contain;
		object-position: center;
	}

	.vgtelco-heritage-banner img {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 720px) {
	.vgtelco-section {
		padding: 28px 20px;
	}

	.site-header__inner {
		align-items: flex-start;
	}
}

@media (max-width: 620px) {
	:root {
		--vgtelco-gutter: 16px;
		--vgtelco-page-inset: 32px;
	}

	.site-header .site-shell {
		width: 100%;
	}

	.vgtelco-hero,
	.vgtelco-home-content {
		width: calc(100% - var(--vgtelco-page-inset));
	}

	.vgtelco-service-grid,
	.vgtelco-service-grid--pair {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.vgtelco-page-hero {
		padding: 36px 22px;
		border-radius: 14px;
	}

	.vgtelco-page-hero__actions {
		display: grid;
	}

	.vgtelco-page-hero__actions .vgtelco-button {
		text-align: center;
	}

	.vgtelco-steps--numbered li {
		padding-left: 46px;
	}

	.vgtelco-hero__actions {
		display: grid;
	}

	.vgtelco-hero__actions .vgtelco-button {
		text-align: center;
	}

	.vgtelco-trust-strip {
		padding: 16px 18px;
	}
}
