/**
 * HerpKeeper Pro — front-end styles
 * Fully editable via WordPress Site Editor (Styles) and block settings.
 */

/* ── Header ─────────────────────────────────────────────── */
.hkp-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: transparent !important;
}

.hkp-header .wp-block-site-title a {
	text-decoration: none;
}

.hkp-header .wp-block-navigation .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
	font-family: var(--wp--preset--font-family--fredoka);
}

/* ── Hero blob illustration (matches live site) ─────────── */
.hkp-hero-visual {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
}

.hkp-blob {
	width: 100%;
	max-width: 420px;
	height: 420px;
	background: var(--wp--preset--color--primary);
	border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
	animation: hkp-morph 8s ease-in-out infinite alternate;
	display: flex;
	justify-content: center;
	align-items: center;
	box-shadow: 0 20px 40px rgba(45, 106, 79, 0.2);
}

.hkp-blob-inner {
	text-align: center;
	color: #fff;
	font-family: var(--wp--preset--font-family--fredoka);
}

.hkp-blob-icon {
	display: block;
	font-size: 5rem;
	margin-bottom: 0.5rem;
	animation: hkp-float 4s ease-in-out infinite;
}

.hkp-blob-inner strong {
	font-size: 1.25rem;
}

.hkp-badge {
	position: absolute;
	background: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 50px;
	font-weight: 700;
	font-size: 0.9rem;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
	color: var(--wp--preset--color--slate);
	font-family: var(--wp--preset--font-family--quicksand);
	white-space: nowrap;
}

.hkp-badge-1 {
	top: 15%;
	left: 0;
	animation: hkp-float 5s ease-in-out infinite;
}

.hkp-badge-2 {
	bottom: 20%;
	right: 0;
	animation: hkp-float 6s ease-in-out infinite reverse;
}

@keyframes hkp-morph {
	0%   { border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%; }
	100% { border-radius: 60% 40% 40% 60% / 40% 60% 40% 60%; }
}

@keyframes hkp-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-12px); }
}

/* ── App screenshot frames ────────────────────────────── */
.hkp-app-screenshot img {
	border-radius: 12px;
	box-shadow: var(--wp--preset--shadow--soft);
	border: 1px solid rgba(45, 106, 79, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	width: 100%;
	height: auto;
}

.hkp-app-screenshot:hover img {
	transform: translateY(-6px);
	box-shadow: 0 24px 50px rgba(45, 106, 79, 0.18);
}

/* ── Feature / module icon boxes ───────────────────────── */
.hkp-card-icon {
	font-size: 1.8rem;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 1rem;
	width: 60px;
	height: 60px;
	background: var(--wp--preset--color--white);
	border-radius: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.hkp-card-icon-sm {
	font-size: 1.25rem;
	color: var(--wp--preset--color--terracotta);
	margin-bottom: 0.75rem;
}

.hkp-blob-icon {
	display: block;
	font-size: 5rem;
	margin-bottom: 0.5rem;
	animation: hkp-float 4s ease-in-out infinite;
	color: #fff;
}

/* ── Pricing cards ─────────────────────────────────────── */
.hkp-pricing-card ul {
	list-style: none;
	padding: 0;
	margin: 1.5rem 0 0;
}

.hkp-pricing-card li {
	padding: 0.5rem 0 0.5rem 1.75rem;
	position: relative;
}

.hkp-pricing-card li::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f6d5";
	position: absolute;
	left: 0;
	color: var(--wp--preset--color--primary-light);
}

.hkp-pricing-free li::before {
	content: "\f6d5";
	color: var(--wp--preset--color--primary-light);
}

.hkp-pricing-pro li::before {
	content: "\f005";
	color: var(--wp--preset--color--gold);
}

/* ── CTA banner outline button override ────────────────── */
.hkp-cta-banner .is-style-hkp-outline .wp-block-button__link {
	border-color: #fff !important;
	color: #fff !important;
}

.hkp-cta-banner .is-style-hkp-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, 0.15) !important;
	color: #fff !important;
}

/* ── FAQ details styling ─────────────────────────────────── */
.wp-block-details {
	border: 1px solid rgba(45, 106, 79, 0.15);
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 0.75rem;
	background: #fff;
}

.wp-block-details summary {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	color: var(--wp--preset--color--primary);
	cursor: pointer;
}

/* ── Buttons polish ──────────────────────────────────────── */
.wp-block-button__link {
	transition: all 0.3s ease;
	box-shadow: var(--wp--preset--shadow--button);
}

.wp-block-button__link:hover {
	transform: translateY(-2px);
}

/* ── Smooth scroll ───────────────────────────────────────── */
html {
	scroll-behavior: smooth;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 968px) {
	.hkp-header {
		flex-wrap: wrap !important;
		gap: 1rem;
	}

	.hkp-hero-visual {
		min-height: 280px;
		order: -1;
	}

	.hkp-blob {
		width: 280px;
		height: 280px;
	}

	.hkp-blob-icon {
		font-size: 3.5rem;
	}

	.hkp-badge {
		font-size: 0.8rem;
		padding: 0.5rem 1rem;
	}
}

@media (max-width: 782px) {
	.hkp-hero .wp-block-columns {
		flex-direction: column-reverse;
	}

	.hkp-hero .wp-block-column {
		flex-basis: 100% !important;
	}
}

/* ── Fade-in on scroll (added by JS) ─────────────────────── */
.hkp-animate-in {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hkp-animate-in.is-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ── Editor parity ───────────────────────────────────────── */
.editor-styles-wrapper .hkp-blob {
	animation: none;
}

/* ── Contact form ────────────────────────────────────────── */
.hkp-contact-form {
	max-width: 640px;
	margin: 2rem 0;
}

.hkp-contact-form .hkp-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.25rem;
}

.hkp-contact-form label {
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	margin-bottom: 0.4rem;
	color: var(--wp--preset--color--primary);
}

.hkp-contact-form input[type="text"],
.hkp-contact-form input[type="email"],
.hkp-contact-form textarea {
	width: 100%;
	padding: 0.85rem 1rem;
	border: 2px solid #d8e6dd;
	border-radius: 14px;
	font: inherit;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hkp-contact-form input:focus,
.hkp-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(82, 183, 136, 0.18);
}

.hkp-contact-form .hkp-contact-submit {
	background: var(--wp--preset--color--primary);
	color: #fff;
	border: none;
	border-radius: 50px;
	padding: 0.85rem 2.25rem;
	font-family: var(--wp--preset--font-family--fredoka);
	font-weight: 600;
	font-size: 1rem;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(45, 106, 79, 0.2);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hkp-contact-form .hkp-contact-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(45, 106, 79, 0.28);
}

/* Honeypot — hidden from people, visible to bots */
.hkp-contact-form .hkp-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hkp-form-notice {
	max-width: 640px;
	padding: 1rem 1.25rem;
	border-radius: 14px;
	margin: 0 0 1.5rem;
	font-weight: 600;
}

.hkp-form-success {
	background: #d8f3dc;
	color: #1b4332;
	border: 2px solid var(--wp--preset--color--accent);
}

.hkp-form-error {
	background: #ffe5e0;
	color: #9d2f1c;
	border: 2px solid #e07a5f;
}
