/* SPH Core: form, cards, lists, call-to-action band and WhatsApp button. */

:root {
	--sph-navy: var(--wp--preset--color--navy, #141B6E);
	--sph-teal: var(--wp--preset--color--teal, #1FA38E);
	--sph-mint: var(--wp--preset--color--mint, #CDF5E6);
	--sph-mint-light: var(--wp--preset--color--mint-light, #EEFBF6);
	--sph-ink: var(--wp--preset--color--ink, #0F1535);
	--sph-slate: var(--wp--preset--color--slate, #4A5170);
	--sph-line: var(--wp--preset--color--line, #E2E8EF);
	--sph-radius: var(--wp--custom--radius--medium, 14px);
	--sph-shadow: var(--wp--preset--shadow--card, 0 8px 24px rgba(15, 21, 53, 0.06));
}

.sph-cards *,
.sph-form,
.sph-band *,
.sph-float-wa {
	box-sizing: border-box;
}

.sph-icon {
	display: block;
	color: var(--sph-navy);
}

/* Category cards ---------------------------------------------------- */
.sph-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1.25rem;
	margin: var(--wp--preset--spacing--50, 2.5rem) 0 0;
	padding: 0;
	list-style: none;
}
.sph-card a {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
	height: 100%;
	padding: 1.75rem 1.5rem;
	border: 1px solid var(--sph-line);
	border-radius: var(--sph-radius);
	background: #fff;
	box-shadow: var(--sph-shadow);
	color: var(--sph-ink);
	text-decoration: none;
	transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.sph-card a:hover,
.sph-card a:focus-visible {
	transform: translateY(-3px);
	border-color: var(--sph-teal);
	box-shadow: 0 14px 34px rgba(15, 21, 53, 0.1);
}
.sph-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.5rem;
	height: 4.5rem;
	margin-bottom: 0.4rem;
	border-radius: 18px;
	background: var(--sph-mint-light);
}
.sph-card__title {
	font-size: 1.2rem;
	font-weight: 700;
	line-height: 1.3;
}
.sph-card__text {
	color: var(--sph-slate);
	font-size: 0.975rem;
	line-height: 1.6;
}
.sph-card__more {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: auto;
	padding-top: 0.5rem;
	color: var(--sph-navy);
	font-size: 0.95rem;
	font-weight: 700;
}
.sph-card__more .sph-icon {
	transition: transform 0.2s ease;
}
.sph-card a:hover .sph-card__more .sph-icon {
	transform: translateX(3px);
}

/* Breadcrumbs ------------------------------------------------------- */
.sph-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	color: var(--sph-slate);
	font-size: 0.9rem;
}
.sph-breadcrumbs a {
	color: var(--sph-navy);
	text-decoration: none;
}
.sph-breadcrumbs a:hover {
	text-decoration: underline;
}
.sph-breadcrumbs .sep {
	color: #A5ABC2;
}

/* Service lists under category and service pages ------------------- */
.sph-extras {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 clamp(1rem, 4vw, 2rem) var(--wp--preset--spacing--60, 4rem);
}
.sph-extras h2 {
	margin: 0 0 1.25rem;
	font-size: var(--wp--preset--font-size--x-large, 1.75rem);
}
.sph-link-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
	gap: 0 2.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sph-link-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid var(--sph-line);
	color: var(--sph-ink);
	font-size: 1.1rem;
	font-weight: 600;
	text-decoration: none;
}
.sph-link-list a:hover {
	color: var(--sph-teal);
}
.sph-link-list a:hover .sph-icon {
	color: var(--sph-teal);
	transform: translateX(3px);
}
.sph-link-list .sph-icon {
	flex: 0 0 auto;
	transition: transform 0.2s ease;
}
.sph-link-list a[aria-current="page"] {
	color: var(--sph-teal);
}
.sph-disclaimer {
	max-width: 760px;
	margin: 0 auto var(--wp--preset--spacing--60, 4rem);
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--sph-teal);
	border-radius: 0 10px 10px 0;
	background: var(--sph-mint-light);
	color: var(--sph-slate);
	font-size: 0.95rem;
}

/* Consultation band ------------------------------------------------- */
.sph-band {
	padding: 0 clamp(1rem, 4vw, 2rem) var(--wp--preset--spacing--70, 5rem);
}
.sph-band__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem 3rem;
	max-width: 1200px;
	margin: 0 auto;
	padding: clamp(2rem, 5vw, 3.5rem);
	border-radius: var(--wp--custom--radius--large, 22px);
	background: var(--sph-navy);
	color: #fff;
}
.sph-band__inner > div {
	flex: 1 1 26rem;
}
.sph-band h2 {
	margin: 0 0 0.5rem;
	color: #fff;
	font-size: var(--wp--preset--font-size--x-large, 1.75rem);
}
.sph-band p {
	margin: 0;
	color: #D6DAF5;
}
.sph-band .sph-band__button {
	display: inline-block;
	background: var(--sph-mint);
	color: var(--sph-navy);
	text-decoration: none;
}
.sph-band .sph-band__button:hover {
	background: #fff;
	color: var(--sph-navy);
}

/* Consultation form ------------------------------------------------- */
.sph-form {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid var(--sph-line);
	border-radius: var(--wp--custom--radius--large, 22px);
	background: #fff;
	box-shadow: var(--sph-shadow);
}
.sph-form > p {
	margin: 0 0 1.1rem;
}
.sph-field label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.95rem;
	font-weight: 600;
}
.sph-field label span {
	margin-left: 0.15rem;
	color: #C2410C;
}
.sph-field input,
.sph-field select,
.sph-field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 0.8rem 0.95rem;
	border: 1px solid #CDD4DF;
	border-radius: 10px;
	background: #fff;
	color: var(--sph-ink);
	font: inherit;
	font-size: 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sph-field select {
	appearance: none;
	padding-right: 2.5rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%234A5170' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 0.85rem center / 1.1rem no-repeat;
}
.sph-field input::placeholder,
.sph-field textarea::placeholder {
	color: #8A91AB;
}
.sph-field input:focus,
.sph-field select:focus,
.sph-field textarea:focus {
	border-color: var(--sph-teal);
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 163, 142, 0.2);
}
.sph-form__submit button {
	width: 100%;
	border: 0;
	cursor: pointer;
	font-family: inherit;
}
.sph-form__note {
	color: var(--sph-slate);
	font-size: 0.85rem;
	line-height: 1.5;
}
.sph-form__error {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #FEF2F2;
	color: #991B1B;
	font-weight: 600;
}
.sph-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.sph-form--sent h3 {
	margin-top: 0;
}

/* Contact details and social links --------------------------------- */
.sph-contact-details {
	margin: 2rem 0 0;
	padding: 0 !important;
	list-style: none;
}
.sph-contact-details li {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.1rem;
}
.sph-contact-details li > span:last-child {
	display: flex;
	flex-direction: column;
}
.sph-contact-details strong {
	font-size: 0.85rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sph-slate);
}
.sph-contact-details a {
	color: var(--sph-ink);
	font-size: 1.1rem;
	font-weight: 600;
	text-decoration: none;
}
.sph-contact-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 14px;
	background: var(--sph-mint-light);
}
.sph-contact-icon--wa .sph-icon {
	color: #1FA855;
}
.sph-social {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.sph-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	transition: background 0.2s ease;
}
.sph-social a:hover {
	background: var(--sph-teal);
}
.sph-admin-hint {
	padding: 0.6rem 0.8rem;
	border: 1px dashed currentColor;
	border-radius: 8px;
	font-size: 0.85rem;
	opacity: 0.8;
}
@media (max-width: 781px) {
	.sph-social {
		justify-content: flex-start;
	}
}

/* Floating WhatsApp button ------------------------------------------ */
.sph-float-wa {
	position: fixed;
	right: clamp(1rem, 3vw, 1.75rem);
	bottom: clamp(1rem, 3vw, 1.75rem);
	z-index: 100;
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.85rem 1.3rem 0.85rem 1.05rem;
	border-radius: 999px;
	background: #1FA855;
	box-shadow: 0 10px 26px rgba(15, 21, 53, 0.22);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	text-decoration: none;
	transition: transform 0.2s ease, background 0.2s ease;
}
.sph-float-wa:hover,
.sph-float-wa:focus-visible {
	transform: translateY(-2px);
	background: #178A45;
	color: #fff;
}
.sph-float-wa .sph-icon {
	color: #fff;
}
.sph-float-wa::after {
	content: "";
	position: absolute;
	top: -2px;
	right: -2px;
	width: 12px;
	height: 12px;
	border: 2px solid #fff;
	border-radius: 999px;
	background: #EF4444;
}
@media (max-width: 480px) {
	.sph-float-wa span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
	}
	.sph-float-wa {
		padding: 0.9rem;
	}
}
