/* ==========================================================================
   PINHOLEIR FOOTER
   ========================================================================== */

.ph-footer {
	--footer-bg: #031f58;
	--footer-bg-deep: #021842;
	--footer-blue: #1464ff;
	--footer-blue-soft: #3b7dff;
	--footer-white: #ffffff;
	--footer-muted: rgba(255, 255, 255, 0.78);
	--footer-line: rgba(124, 166, 236, 0.26);

	position: relative;
	overflow: hidden;
	padding: 70px 0 26px;
	background:
		radial-gradient(
			circle at 54% 30%,
			rgba(16, 73, 166, 0.28),
			transparent 42%
		),
		linear-gradient(
			145deg,
			#06245f 0%,
			#031d53 48%,
			#021945 100%
		);
	color: #ffffff;
}

/* decorative wave pattern */

.ph-footer__pattern {
	position: absolute;
	left: -90px;
	bottom: 100px;
	width: 620px;
	height: 360px;
	opacity: 0.15;
	pointer-events: none;
}

.ph-footer__pattern::before,
.ph-footer__pattern::after {
	position: absolute;
	inset: 0;
	border-top: 1px solid rgba(53, 117, 224, 0.55);
	border-radius: 50%;
	content: "";
	transform: rotate(10deg);
}

.ph-footer__pattern::after {
	top: 28px;
	transform: rotate(13deg);
}

/* dotted top-left detail */

.ph-footer::before {
	position: absolute;
	top: 0;
	left: 15px;
	width: 170px;
	height: 120px;
	opacity: 0.28;
	background-image:
		radial-gradient(
			circle,
			rgba(25, 105, 255, 0.9) 1.4px,
			transparent 1.6px
		);
	background-size: 13px 13px;
	content: "";
}

/* container */

.ph-footer__container {
	position: relative;
	z-index: 2;

	width: min(100% - 6.4%, 1360px);

	margin-inline: auto;
}

/* ==========================================================================
   TOP GRID
   ========================================================================== */

.ph-footer__top {
	display: grid;
	grid-template-columns: 1.15fr 0.68fr 1fr 1fr;
	gap: 64px;
	align-items: start;
}

/* ==========================================================================
   BRAND
   ========================================================================== */

.ph-footer__brand {
	max-width: 390px;
}

.ph-footer__logo {
	margin-bottom: 22px;
}

.ph-footer__logo .custom-logo {
	display: block;
	width: auto;
	max-width: 225px;
	max-height: 82px;
	filter: brightness(0) invert(1);
}

.ph-footer__logo-text {
	color: #ffffff;
	font-size: 34px;
	font-weight: 700;
	text-decoration: none;
}

.ph-footer__about {
	max-width: 350px;
	margin: 0;
	color: var(--footer-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.85;
}

/* ==========================================================================
   NEWSLETTER
   ========================================================================== */

.ph-footer__newsletter {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 355px;
	height: 54px;
	margin-top: 22px;
	border: 1px solid rgba(126, 170, 239, 0.38);
	border-radius: 999px;
	background: rgba(4, 35, 91, 0.5);
	transition:
		border-color 0.3s ease,
		box-shadow 0.3s ease,
		transform 0.3s ease;
}

.ph-footer__newsletter:focus-within {
	border-color: rgba(86, 147, 255, 0.75);
	box-shadow:
		0 0 0 4px rgba(20, 100, 255, 0.08),
		0 12px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

.ph-footer__newsletter input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0 20px;
	border: 0;
	outline: 0;
	background: transparent;
	color: #ffffff;
	font-size: 14px;
}

.ph-footer__newsletter input::placeholder {
	color: rgba(255, 255, 255, 0.72);
}

.ph-footer__newsletter button {
	display: grid;
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	margin-right: 4px;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: #ffffff;
	color: var(--footer-blue);
	cursor: pointer;
	transition:
		transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.3s ease;
}

.ph-footer__newsletter button svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.3s ease;
}

.ph-footer__newsletter button:hover {
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
	transform: scale(1.08);
}

.ph-footer__newsletter button:hover svg {
	transform: translate(2px, -2px);
}

/* ==========================================================================
   COLUMN HEADINGS
   ========================================================================== */

.ph-footer__heading {
	position: relative;
	margin: 0 0 26px;
	padding-bottom: 14px;
	color: #ffffff;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.ph-footer__heading::after {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: #1566ff;
	content: "";
}

/* ==========================================================================
   LINKS
   ========================================================================== */

.ph-footer__links {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ph-footer__links a {
	display: inline-flex;
	align-items: flex-start;
	gap: 10px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.38;
	text-decoration: none;
	transition:
		color 0.3s ease,
		transform 0.3s ease;
}

.ph-footer__link-icon {
	display: grid;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin-top: -1px;
	place-items: center;
	border: 1px solid rgba(93, 147, 239, 0.35);
	border-radius: 50%;
	background: rgba(30, 90, 190, 0.34);
	color: #ffffff;
	font-size: 18px;
	line-height: 1;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease,
		border-color 0.3s ease;
}

.ph-footer__links a:hover {
	color: #6fa0ff;
	transform: translateX(4px);
}

.ph-footer__links a:hover .ph-footer__link-icon {
	border-color: var(--footer-blue);
	background: var(--footer-blue);
	transform: translateX(2px);
}

/* ==========================================================================
   OPENING HOURS
   ========================================================================== */

.ph-footer__hours-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 0 0 17px;
	margin-bottom: 17px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
}

.ph-footer__hours-row strong {
	font-weight: 500;
	white-space: nowrap;
}

/* ==========================================================================
   MAP
   ========================================================================== */

.ph-footer__map {
	width: 100%;
	height: 245px;
	margin-top: 20px;
	overflow: hidden;
	border-radius: 13px;
	box-shadow: 0 13px 30px rgba(0, 0, 0, 0.15);
	transition:
		transform 0.35s ease,
		box-shadow 0.35s ease;
}

.ph-footer__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.ph-footer__map:hover {
	box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
	transform: translateY(-3px);
}

/* ==========================================================================
   CONTACT STRIP
   ========================================================================== */

.ph-footer__contact-strip {
	display: grid;
	grid-template-columns: 1.4fr 0.95fr 0.95fr;
	margin-top: 38px;
	overflow: hidden;
	border: 1px solid rgba(66, 132, 241, 0.55);
	border-radius: 26px;
	background:
		linear-gradient(
			90deg,
			rgba(6, 44, 112, 0.48),
			rgba(5, 37, 94, 0.3)
		);
	box-shadow:
		inset 0 0 40px rgba(20, 82, 184, 0.05);
}

.ph-footer__contact-item {
	position: relative;
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 148px;
	padding: 24px 48px;
	transition:
		background-color 0.3s ease,
		transform 0.3s ease;
}

.ph-footer__contact-item:not(:last-child)::after {
	position: absolute;
	top: 28px;
	right: 0;
	width: 1px;
	height: calc(100% - 56px);
	background: rgba(112, 160, 235, 0.23);
	content: "";
}

.ph-footer__contact-item:hover {
	background: rgba(14, 73, 169, 0.13);
}

.ph-footer__contact-icon {
	display: grid;
	flex: 0 0 70px;
	width: 70px;
	height: 70px;
	place-items: center;
	border: 1px solid rgba(99, 155, 255, 0.5);
	border-radius: 50%;
	background:
		linear-gradient(
			145deg,
			#0c4fc9,
			#246dff
		);
	box-shadow:
		inset 0 0 14px rgba(255, 255, 255, 0.12),
		0 8px 20px rgba(0, 44, 133, 0.2);
	transition:
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.35s ease;
}

.ph-footer__contact-icon svg {
	width: 36px;
	height: 36px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ph-footer__contact-item:hover .ph-footer__contact-icon {
	box-shadow:
		inset 0 0 14px rgba(255, 255, 255, 0.18),
		0 12px 27px rgba(0, 63, 177, 0.28);
	transform:
		translateY(-3px)
		scale(1.05);
}

.ph-footer__contact-label {
	display: block;
	margin-bottom: 7px;
	color: #4d8cff;
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
}

.ph-footer__contact-item p,
.ph-footer__contact-item a {
	margin: 0;
	color: #ffffff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.45;
	text-decoration: none;
}

/* ==========================================================================
   BOTTOM ROW
   ========================================================================== */

.ph-footer__bottom {
	display: grid;
	grid-template-columns: 0.8fr 1.6fr 0.9fr;
	gap: 40px;
	align-items: center;
	margin-top: 24px;
	padding-top: 25px;
	border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.ph-footer__copyright {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 13px;
}

/* Disclaimer */

.ph-footer__disclaimer {
	display: grid;
	grid-template-columns: auto auto 1fr;
	gap: 10px;
	align-items: start;
}

.ph-footer__disclaimer-icon {
	display: grid;
	width: 38px;
	height: 38px;
	place-items: center;
	border-radius: 50%;
	background: #1161fb;
}

.ph-footer__disclaimer-icon svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: #ffffff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ph-footer__disclaimer strong {
	padding-top: 8px;
	color: #4f8dff;
	font-size: 12px;
}

.ph-footer__disclaimer p {
	margin: 0;
	color: rgba(255, 255, 255, 0.74);
	font-size: 11px;
	line-height: 1.45;
}

/* ==========================================================================
   SOCIALS
   ========================================================================== */

.ph-footer__socials {
	position: relative;
	display: flex;
	justify-content: flex-end;
	gap: 16px;
	padding-left: 34px;
}

.ph-footer__socials::before {
	position: absolute;
	top: 50%;
	left: 0;
	width: 1px;
	height: 45px;
	background: rgba(255, 255, 255, 0.19);
	content: "";
	transform: translateY(-50%);
}

.ph-footer__socials a {
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border-radius: 50%;
	background: #ffffff;
	color: #05245e;
	font-size: 17px;
	font-weight: 800;
	text-decoration: none;
	box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
	transition:
		background-color 0.3s ease,
		color 0.3s ease,
		transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.3s ease;
}

.ph-footer__socials a:hover {
	background: #1464ff;
	color: #ffffff;
	box-shadow: 0 11px 24px rgba(8, 72, 188, 0.3);
	transform:
		translateY(-4px)
		scale(1.05);
}

/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 1100px) {

	.ph-footer__container {
		width: min(100% - 50px, 1100px);
	}

	.ph-footer__top {
		grid-template-columns: repeat(2, 1fr);
		gap: 45px;
	}

	.ph-footer__brand {
		max-width: none;
	}

	.ph-footer__contact-strip {
		grid-template-columns: 1fr;
	}

	.ph-footer__contact-item {
		min-height: 120px;
	}

	.ph-footer__contact-item:not(:last-child)::after {
		top: auto;
		right: 30px;
		bottom: 0;
		left: 30px;
		width: auto;
		height: 1px;
	}

	.ph-footer__bottom {
		grid-template-columns: 1fr;
	}

	.ph-footer__socials {
		justify-content: flex-start;
		padding-left: 0;
	}

	.ph-footer__socials::before {
		display: none;
	}
}

/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 767px) {

	.ph-footer {
		padding-top: 50px;
	}

	.ph-footer__container {
		width: calc(100% - 30px);
	}

	.ph-footer__top {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.ph-footer__logo .custom-logo {
		max-width: 190px;
	}

	.ph-footer__about {
		max-width: none;
		font-size: 14px;
	}

	.ph-footer__heading {
		margin-bottom: 20px;
		font-size: 18px;
	}

	.ph-footer__links {
		gap: 12px;
	}

	.ph-footer__map {
		height: 220px;
	}

	.ph-footer__contact-strip {
		margin-top: 32px;
		border-radius: 20px;
	}

	.ph-footer__contact-item {
		gap: 16px;
		min-height: auto;
		padding: 22px 20px;
	}

	.ph-footer__contact-icon {
		width: 56px;
		height: 56px;
		flex-basis: 56px;
	}

	.ph-footer__contact-icon svg {
		width: 29px;
		height: 29px;
	}

	.ph-footer__contact-item p,
	.ph-footer__contact-item a {
		font-size: 15px;
	}

	.ph-footer__bottom {
		gap: 25px;
	}

	.ph-footer__disclaimer {
		grid-template-columns: auto 1fr;
	}

	.ph-footer__disclaimer p {
		grid-column: 1 / -1;
	}

	.ph-footer__socials {
		flex-wrap: wrap;
		gap: 12px;
	}
}