/* PepLaunchpad theme styles — overrides on top of Bootstrap 5 */

:root {
	--bs-primary: #2563eb;
	--pl-primary-dark: #1e40af;
	--pl-ink: #0f172a;
	--pl-muted: #64748b;
	--pl-surface: #f8fafc;
	--pl-border: #e2e8f0;
	--pl-navy: #0b1120;
	--pl-navy-2: #121b33;
	--pl-radius: 14px;
	--pl-radius-sm: 8px;
	--pl-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	--pl-shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
	--pl-font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--pl-font-heading: 'Poppins', var(--pl-font-body);
}

html {
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: var(--pl-font-body);
	color: var(--pl-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}

/* Sticky footer: on short pages (e.g. the My Account login form) #content
   grows to fill any leftover space instead of the footer riding up right
   behind the content, leaving the rest of the viewport blank below it. */
.site-content {
	flex: 1 0 auto;
}

.site-footer {
	flex-shrink: 0;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
	font-family: var(--pl-font-heading);
	font-weight: 600;
	letter-spacing: -0.01em;
}

/* Buttons */

.btn {
	border-radius: var(--pl-radius-sm);
	font-weight: 600;
	padding: 0.6rem 1.3rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary {
	background: var(--bs-primary);
	border-color: var(--bs-primary);
	box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
	background: var(--pl-primary-dark);
	border-color: var(--pl-primary-dark);
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.btn-lg {
	padding: 0.85rem 2rem;
	font-size: 1.05rem;
}

/* Navbar */

.site-header .navbar {
	position: sticky;
	top: 0;
	z-index: 1030;
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.navbar-brand img {
	max-height: 40px;
}

.navbar-nav .nav-link {
	position: relative;
	font-weight: 500;
	color: var(--pl-ink);
	padding: 0.5rem 1rem;
}

.navbar-nav .nav-link::after {
	content: "";
	position: absolute;
	left: 1rem;
	right: 1rem;
	bottom: 0.15rem;
	height: 2px;
	background: var(--bs-primary);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
	transform: scaleX(1);
}

/* Transparent header over the homepage hero */

.site-header--transparent {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 20;
}

.site-header--transparent .navbar {
	position: static;
	box-shadow: none;
	background: transparent;
}

.site-header--transparent .navbar-nav .nav-link {
	color: rgba(255, 255, 255, 0.85);
}

.site-header--transparent .navbar-nav .nav-link:hover,
.site-header--transparent .navbar-nav .nav-link.active {
	color: #fff;
}

.site-header--transparent .navbar-toggler {
	border-color: rgba(255, 255, 255, 0.4);
}

.site-header--transparent .navbar-toggler-icon {
	filter: invert(1) grayscale(1) brightness(2);
}

.site-header--transparent .header-icon-link {
	color: rgba(255, 255, 255, 0.85);
}

.site-header--transparent .header-icon-link:hover {
	color: #fff;
}

.site-header--transparent .market-switch {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.25);
}

.site-header--transparent .market-switch-btn {
	color: rgba(255, 255, 255, 0.75);
}

.site-header--transparent .market-switch-btn.active {
	color: #fff;
}

/* On mobile, the collapsed menu panel (nav links, market switch, account/
   cart icons — all of it, see header.php) is a *child* of the transparent
   navbar, so it inherited that same transparency: expanding it just
   overlaid the hero's dark background right through the menu, exactly as
   hard to read as it sounds. Below the lg breakpoint (where the toggler/
   collapse behavior actually applies), give the open panel a solid white
   background and undo the white-on-dark text colors made for sitting
   directly on the hero back to their normal, non-transparent-header
   values. */
@media (max-width: 991.98px) {
	.site-header--transparent .navbar-collapse.show,
	.site-header--transparent .navbar-collapse.collapsing {
		background: #fff;
		margin-top: 0.75rem;
		padding: 1rem 1.25rem;
		border-radius: var(--pl-radius, 14px);
		box-shadow: var(--pl-shadow, 0 8px 24px rgba(15, 23, 42, 0.12));
	}

	.site-header--transparent .navbar-collapse.show .nav-link,
	.site-header--transparent .navbar-collapse.collapsing .nav-link {
		color: var(--pl-ink, #0f172a);
	}

	.site-header--transparent .navbar-collapse.show .nav-link:hover,
	.site-header--transparent .navbar-collapse.show .nav-link.active,
	.site-header--transparent .navbar-collapse.collapsing .nav-link:hover,
	.site-header--transparent .navbar-collapse.collapsing .nav-link.active {
		color: var(--bs-primary, #2563eb);
	}

	.site-header--transparent .navbar-collapse.show .market-switch,
	.site-header--transparent .navbar-collapse.collapsing .market-switch {
		background: var(--pl-surface, #f1f5f9);
		border-color: var(--pl-border, #e2e8f0);
	}

	.site-header--transparent .navbar-collapse.show .market-switch-btn,
	.site-header--transparent .navbar-collapse.collapsing .market-switch-btn {
		color: var(--pl-muted, #64748b);
	}

	/* The active option sits on top of the blue sliding pill (::before),
	   not directly on the white panel — it needs to stay white regardless,
	   same as the default (non-transparent-header) state. The rule above
	   is otherwise more specific than the base ".market-switch-btn.active"
	   rule and would win over it, leaving the selected option's own label
	   invisible against its blue background. */
	.site-header--transparent .navbar-collapse.show .market-switch-btn.active,
	.site-header--transparent .navbar-collapse.collapsing .market-switch-btn.active {
		color: #fff;
	}

	.site-header--transparent .navbar-collapse.show .header-icon-link,
	.site-header--transparent .navbar-collapse.collapsing .header-icon-link {
		color: var(--pl-ink, #0f172a);
	}
}

/* Header actions: market switch + account/cart icons */

.header-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--pl-ink);
	line-height: 1;
	transition: color 0.15s ease;
}

.header-icon-link:hover {
	color: var(--bs-primary);
}

.header-icon-link .cart-count {
	position: absolute;
	top: -6px;
	right: -10px;
	font-size: 0.65rem;
	min-width: 1.1rem;
	line-height: 1;
	padding: 0.3em 0.4em;
}

.market-switch {
	position: relative;
	display: inline-flex;
	background: var(--pl-surface);
	border: 1px solid var(--pl-border);
	border-radius: 999px;
	padding: 3px;
	gap: 2px;
}

.market-switch::before {
	content: "";
	position: absolute;
	top: 3px;
	bottom: 3px;
	left: 3px;
	width: calc(50% - 3px);
	background: var(--bs-primary);
	border-radius: 999px;
	transition: transform 0.25s ease;
	z-index: 0;
	box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.market-switch[data-active="international"]::before {
	transform: translateX(100%);
}

.market-switch-btn {
	position: relative;
	z-index: 1;
	border: none;
	background: transparent;
	padding: 0.4rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	border-radius: 999px;
	color: var(--pl-muted);
	cursor: pointer;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.market-switch-btn.active {
	color: #fff;
}

.market-switch--locked .market-switch-btn {
	cursor: not-allowed;
}

/* Cards (blog grid, general content cards) */

.card {
	border: 1px solid var(--pl-border);
	border-radius: var(--pl-radius);
	box-shadow: var(--pl-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: var(--pl-shadow-hover);
}

.entry-title a {
	color: inherit;
	text-decoration: none;
}

/* Homepage hero banner */

.front-page .hero {
	position: relative;
	overflow: hidden;
	min-height: 640px;
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--pl-navy);
	background-size: cover;
	background-position: center;
}

.front-page .hero::before,
.front-page .hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	filter: blur(10px);
	z-index: 0;
	pointer-events: none;
}

.front-page .hero::before {
	width: 640px;
	height: 640px;
	top: -220px;
	left: 8%;
	background: radial-gradient(circle at 35% 35%, rgba(59, 91, 219, 0.5), transparent 70%);
}

.front-page .hero::after {
	width: 460px;
	height: 460px;
	top: 10%;
	right: 8%;
	background: radial-gradient(circle at 60% 40%, rgba(168, 85, 247, 0.22), transparent 70%);
}

.front-page .hero.has-banner-image::before,
.front-page .hero.has-banner-image::after {
	content: none;
}

.front-page .hero.has-banner-image {
	background-blend-mode: normal;
}

.front-page .hero.has-banner-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.6));
}

.front-page .hero .hero-icon {
	position: absolute;
	right: -60px;
	bottom: -40px;
	width: 420px;
	max-width: 42vw;
	z-index: 1;
	pointer-events: none;
	user-select: none;
}

.front-page .hero .container {
	position: relative;
	z-index: 2;
}

.front-page .hero h1 {
	font-weight: 800;
	font-size: clamp(2.1rem, 4.5vw, 3.5rem);
	max-width: 720px;
	margin-bottom: 1rem;
}

.front-page .hero .lead {
	font-style: italic;
	color: rgba(255, 255, 255, 0.75);
	font-size: 1.05rem;
	max-width: 560px;
	margin-bottom: 2.25rem;
}

.btn-hero-outline {
	display: inline-block;
	border: 1.5px solid rgba(255, 255, 255, 0.5);
	background: transparent;
	color: #fff;
	padding: 0.75rem 1.85rem;
	border-radius: var(--pl-radius-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-hero-outline:hover {
	background: rgba(255, 255, 255, 0.1);
	border-color: #fff;
	color: #fff;
}

.front-page .shop-grid h2 {
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 1.1rem;
	margin-bottom: 1.75rem !important;
}

.front-page .shop-grid .woocommerce ul.products {
	margin-top: 1rem;
}

/* Footer */

.site-footer a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	transition: color 0.15s ease;
}

.site-footer a:hover {
	color: #fff;
}

.site-footer .site-info {
	color: rgba(255, 255, 255, 0.55);
}

/* Contact Form 7 — matches the input/button treatment used elsewhere
   (checkout fields, shop search) rather than CF7's unstyled defaults. */

.wpcf7-form p {
	margin-bottom: 1.25rem;
}

.wpcf7-form label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	margin-bottom: 0.4rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
	width: 100%;
	max-width: 480px;
	box-sizing: border-box;
	border: 1px solid var(--pl-border, #e2e8f0);
	border-radius: var(--pl-radius-sm, 8px);
	padding: 0.65rem 0.9rem;
	font-size: 0.95rem;
	font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--bs-primary, #2563eb);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.wpcf7-form textarea {
	min-height: 140px;
	resize: vertical;
}

.wpcf7-form input[type="submit"] {
	background: var(--pl-navy, #0b1120);
	border: none;
	border-radius: var(--pl-radius-sm, 8px);
	color: #fff;
	font-weight: 600;
	padding: 0.75rem 2rem;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.wpcf7-form input[type="submit"]:hover {
	opacity: 0.9;
	transform: translateY(-2px);
}

.wpcf7-form input[type="submit"]:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.wpcf7-not-valid-tip {
	color: #b91c1c;
	font-size: 0.85rem;
	margin-top: 0.3rem;
}

.wpcf7-response-output {
	border-radius: var(--pl-radius-sm, 8px) !important;
	padding: 0.85rem 1.1rem !important;
	font-size: 0.9rem;
	margin-top: 1.25rem !important;
}
