/*!
Theme Name: Digital Card Creator
Theme URI: http://underscores.me/
Author: openxcode
Author URI: https://openxcode.com/
Description: Digital Card Creator landing theme migrated from static HTML.
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: digital-card-creator
Tags: custom-logo, custom-menu, featured-images, translation-ready
*/

html {
	overflow-x: clip;
	max-width: 100%;
}

body {
	margin: 0;
}

@keyframes badge-enter {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.96);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

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

.mockup-badge {
	animation: none;
}

.mockup-badge-wrap {
	animation: none;
}

.mockup-badge-wrap--1 {
	animation-delay: 0s;
}

.mockup-badge-wrap--1 .mockup-badge {
	animation-delay: 0.15s;
}

.mockup-badge-wrap--2 {
	animation-delay: 0.6s;
}

.mockup-badge-wrap--2 .mockup-badge {
	animation-delay: 0.35s;
}

.mockup-badge-wrap--3 {
	animation-delay: 1.2s;
}

.mockup-badge-wrap--3 .mockup-badge {
	animation-delay: 0.55s;
}

.mockup-badge-wrap--4 {
	animation-delay: 1.8s;
}

.mockup-badge-wrap--4 .mockup-badge {
	animation-delay: 0.75s;
}

@media (prefers-reduced-motion: reduce) {
	.mockup-badge-wrap {
		animation: none;
	}
	.mockup-badge {
		animation: none;
	}
}

/* Mobile menu: keep hidden on desktop and when closed */
.mobile-menu {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	max-width: 100%;
	height: 100%;
	z-index: 999;
	opacity: 0;
	transform: translateY(100%);
	pointer-events: none;
	background: #06090f;
	transition: opacity 0.28s ease, transform 0.32s ease;
}

.mobile-menu.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

@media (min-width: 1024px) {
	.mobile-menu,
	.mobile-menu-btn {
		display: none !important;
	}
}

/* Footer CTA: keep download button fully visible */
@media (min-width: 1024px) {
	.footer-cta {
		padding-right: 2.75rem;
	}
}

@media (min-width: 1280px) {
	.footer-cta {
		padding-right: 3.25rem;
	}
}

.footer-cta__inner {
	min-width: 0;
}

@media (min-width: 1024px) {
	.footer-cta__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 2rem;
	}
}

@media (min-width: 1280px) {
	.footer-cta__inner {
		gap: 2.5rem;
		padding-left: 300px;
	}
}

.footer-cta__content {
	min-width: 0;
}

.footer-cta__heading {
	white-space: normal;
	max-width: 100%;
}

.footer-cta__actions {
	flex-shrink: 0;
	align-items: center;
	padding-right: 0.75rem;
}

@media (min-width: 1024px) {
	.footer-cta__actions {
		align-items: flex-end;
		padding-right: 1.25rem;
	}
}

.footer-cta__download {
	mix-blend-mode: normal !important;
	position: relative;
	z-index: 4;
}

/* Contact Form 7 — match static contact page design */
.contact-form-wrap .wpcf7 {
	width: 100%;
}

.contact-form-wrap .wpcf7 form.contact-form,
.contact-form-wrap .wpcf7-form {
	display: grid;
	gap: 1rem;
}

.contact-form-wrap .contact-form__row {
	display: grid;
	gap: 1rem;
}

.contact-form-wrap .contact-form__row p {
	display: grid;
	gap: 1rem;
	margin: 0;
}

@media (min-width: 640px) {
	.contact-form-wrap .contact-form__row,
	.contact-form-wrap .contact-form__row p {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.contact-form-wrap .wpcf7-form > p {
	margin: 0;
}

.contact-form-wrap .wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.contact-form-wrap .wpcf7-form-control.contact-input,
.contact-form-wrap .wpcf7-form-control.contact-textarea {
	width: 100%;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	background: rgba(0, 0, 0, 0.4);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #fff;
	outline: none;
	transition: border-color 0.2s ease;
}

.contact-form-wrap .wpcf7-form-control.contact-input::placeholder,
.contact-form-wrap .wpcf7-form-control.contact-textarea::placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.contact-form-wrap .wpcf7-form-control.contact-input:focus,
.contact-form-wrap .wpcf7-form-control.contact-textarea:focus {
	border-color: rgba(255, 255, 255, 0.35);
}

.contact-form-wrap .wpcf7-form-control.contact-textarea {
	min-height: 130px;
	resize: vertical;
}

.contact-form-wrap .wpcf7-submit.contact-submit {
	margin-top: 0.5rem;
	display: inline-flex;
	width: fit-content;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	border: 2px solid #fff;
	background: #000;
	padding: 0.75rem 1.75rem;
	font-size: 15px;
	font-weight: 600;
	color: #fff;
	box-shadow: 4px 4px 0 0 #fff;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.contact-form-wrap .wpcf7-submit.contact-submit:hover {
	transform: translate(4px, 4px);
	box-shadow: none;
}

.contact-form-wrap .wpcf7-response-output {
	margin: 0.75rem 0 0;
	border-radius: 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.9);
}

.contact-form-wrap .wpcf7-not-valid-tip {
	margin-top: 0.35rem;
	font-size: 0.75rem;
	color: #ff8fab;
}

.contact-form-wrap .wpcf7-spinner {
	margin-left: 0.75rem;
}

.contact-form__notice {
	margin: 0;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.75);
}

/* Blog listing pagination */
.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	height: 2.5rem;
	margin: 0.25rem;
	padding: 0 0.75rem;
	border-radius: 9999px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.08);
}

.blog-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* WordPress post content inside blog detail layout */
.detail-body {
	padding-top: 1.5rem;
}

.detail-body > *:first-child {
	margin-top: 0;
}

.detail-body p {
	margin: 0 0 1.125rem;
	font-family: Poppins, system-ui, sans-serif;
	font-weight: 400;
	font-size: 16px;
	line-height: 1.68;
	color: rgba(255, 255, 255, 0.88);
}

.detail-body p:last-child {
	margin-bottom: 0;
}

.detail-body h1,
.detail-body h2,
.detail-body .detail-section-title {
	margin: 2rem 0 1rem;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(1.4rem, 2vw, 38px);
	line-height: 1.2;
	color: #fff;
	letter-spacing: -0.03em;
}

.detail-body h2.detail-section-title--major,
.detail-body h1 {
	font-size: clamp(1.55rem, 2.4vw, 42px);
}

.detail-body h3,
.detail-body .detail-section-title--sub {
	margin: 1.5rem 0 0.875rem;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(1.15rem, 1.8vw, 28px);
	line-height: 1.25;
	color: #fff;
	letter-spacing: -0.02em;
}

.detail-body h4 {
	margin: 1.25rem 0 0.75rem;
	font-family: "Space Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 1.125rem;
	line-height: 1.3;
	color: #fff;
}

.detail-body hr {
	margin: 2rem 0;
	border: 0;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.detail-body ul:not(.detail-list),
.detail-body ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
}

.detail-body ul:not(.detail-list) {
	list-style: disc;
}

.detail-body ol {
	list-style: decimal;
}

.detail-body ul:not(.detail-list) li,
.detail-body ol li {
	display: list-item;
	margin-bottom: 0.5rem;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
}

.detail-body ul:not(.detail-list) li:last-child,
.detail-body ol li:last-child {
	margin-bottom: 0;
}

.detail-body table {
	width: 100%;
	margin: 1.5rem 0 2rem;
	border-collapse: collapse;
	font-family: Poppins, system-ui, sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.9);
	overflow-x: auto;
	display: block;
}

.detail-body table thead,
.detail-body table tbody,
.detail-body table tr {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.detail-body th,
.detail-body td {
	padding: 0.75rem 1rem;
	border: 1px solid rgba(255, 255, 255, 0.15);
	text-align: left;
	vertical-align: top;
	word-break: break-word;
}

.detail-body th {
	background: rgba(255, 255, 255, 0.06);
	font-weight: 600;
	color: #fff;
}

.detail-body tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.03);
}

.detail-body .wp-block-table {
	margin: 1.5rem 0 2rem;
	overflow-x: auto;
}

.detail-body .wp-block-table table {
	display: table;
}

.detail-body blockquote,
.detail-body .wp-block-quote {
	margin: 1.75rem 0;
	border-radius: 0.75rem;
	border-left: 4px solid #ffffff;
	padding: 1.25rem 1.5rem;
	background: linear-gradient(90deg, rgba(43, 7, 28, 0.95) 0%, rgba(20, 3, 20, 0.92) 100%);
}

.detail-body blockquote p,
.detail-body .wp-block-quote p {
	margin: 0;
	font-family: Poppins, system-ui, sans-serif;
	font-weight: 500;
	font-size: clamp(1.1rem, 2vw, 33px);
	line-height: 1.25;
	color: #ffffff;
}

.detail-body blockquote cite,
.detail-body .wp-block-quote cite {
	display: block;
	margin-top: 0.5rem;
	font-size: 14px;
	font-style: italic;
	color: rgba(255, 255, 255, 0.8);
}

.detail-body a {
	color: #fff;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.detail-body strong {
	font-weight: 600;
	color: #fff;
}

.detail-body img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 1rem 0;
	border-radius: 1rem;
}

.detail-body .wp-block-list {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.detail-sidebar .cat-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	color: inherit;
}

/* Hide header download button on mobile and tablet, show on desktop */
.site-header .header-download-btn {
	display: none;
}

@media (min-width: 1024px) {
	.site-header .header-download-btn {
		display: inline-flex;
	}
}

