/*
Theme Name: Elitapex
Theme URI: https://elitapex.com
Description: Dark & gold brand child theme for Elitapex, built on Twenty Twenty-Five. Premium trading-desk aesthetic — near-black surfaces with a gold accent.
Author: Elitapex
Template: twentytwentyfive
Version: 1.0.0
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: elitapex
*/

/* -------------------------------------------------------------------------
   The Elitapex brand is always dark. Declare it so the browser renders native
   UI (scrollbars, form controls) and embedded widgets in dark mode too,
   regardless of the visitor's OS light/dark preference.
   ------------------------------------------------------------------------- */
:root {
	color-scheme: dark;
}

/* -------------------------------------------------------------------------
   Home hero/CTA buttons — premium hover (lift + glow + shine sweep).
   .elitapex-btn-gold: gold-filled buttons (View Plan, Get started today).
   .elitapex-btn-dark: keeps its dark background (Market Insights).
   ------------------------------------------------------------------------- */
.wp-block-button.elitapex-btn-gold .wp-block-button__link,
.wp-block-button.elitapex-btn-dark .wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.25s ease, box-shadow 0.3s ease,
		background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
/* Unified gold gradient fill for every primary gold button. */
.wp-block-button.elitapex-btn-gold .wp-block-button__link,
.wp-block-button.elitapex-btn-gold .wp-block-button__link:hover,
.wp-block-button.elitapex-btn-gold .wp-block-button__link:focus {
	background: linear-gradient(135deg, #F6DC8C, #E6B93D) !important;
	color: #0B0C10 !important;
}
.wp-block-button.elitapex-btn-gold .wp-block-button__link::before,
.wp-block-button.elitapex-btn-dark .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;
	z-index: -1;
	transform: skewX(-20deg);
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.wp-block-button.elitapex-btn-gold .wp-block-button__link:hover::before,
.wp-block-button.elitapex-btn-gold .wp-block-button__link:focus::before,
.wp-block-button.elitapex-btn-dark .wp-block-button__link:hover::before,
.wp-block-button.elitapex-btn-dark .wp-block-button__link:focus::before {
	animation: elitapex-cta-shine 0.9s ease;
}
.wp-block-button.elitapex-btn-gold .wp-block-button__link:hover,
.wp-block-button.elitapex-btn-gold .wp-block-button__link:focus {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 24px rgba(230, 185, 61, 0.5);
}
.wp-block-button.elitapex-btn-dark .wp-block-button__link:hover,
.wp-block-button.elitapex-btn-dark .wp-block-button__link:focus {
	transform: translateY(-2px);
	color: var(--wp--preset--color--accent-1, #E6B93D) !important;
	border-color: var(--wp--preset--color--accent-1, #E6B93D) !important;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(230, 185, 61, 0.45);
}
@media (prefers-reduced-motion: reduce) {
	.wp-block-button.elitapex-btn-gold .wp-block-button__link,
	.wp-block-button.elitapex-btn-dark .wp-block-button__link { transition: none; }
	.wp-block-button.elitapex-btn-gold .wp-block-button__link::before,
	.wp-block-button.elitapex-btn-dark .wp-block-button__link::before { display: none; }
}

/* -------------------------------------------------------------------------
   Hero headline — smaller white lead-in above the larger gold payoff line.
   ------------------------------------------------------------------------- */
.elitapex-hero-lead {
	display: block;
	/* Capped so the lead always fits on a single line inside the hero column. */
	font-size: min(0.58em, 2.6rem);
	line-height: 1.2;
	margin-bottom: 0.14em;
}
@media (max-width: 781px) {
	.elitapex-hero-lead {
		font-size: 0.62em;
	}
	/* Forced break in the hero sub-line is a desktop-only choice — on narrow
	   screens it orphans words, so let the text wrap naturally. */
	.has-gold-glow-gradient-background p br {
		display: none;
	}
}

/* -------------------------------------------------------------------------
   Pricing card (.elitapex-plan) — dark premium surface with gold accents.
   Overrides the parent theme's solid-gold "section-3" block style, which put
   cream text on gold (≈1.5:1 contrast).
   ------------------------------------------------------------------------- */
.wp-block-column.elitapex-plan {
	background: linear-gradient(160deg, #1A1B23 0%, #101118 100%) !important;
	border: 1px solid rgba(230, 185, 61, 0.38);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 26px rgba(230, 185, 61, 0.12);
	color: var(--wp--preset--color--contrast, #F4EFE3) !important;
}
.elitapex-plan .is-pricing-tier-name {
	color: var(--wp--preset--color--contrast, #F4EFE3) !important;
}
.elitapex-plan .is-pricing-tier-price {
	color: var(--wp--preset--color--accent-1, #E6B93D) !important;
}
.elitapex-plan .is-pricing-tier-service-checked {
	color: var(--wp--preset--color--accent-1, #E6B93D) !important;
}

/* -------------------------------------------------------------------------
   TradingView economic calendar — rounded card in the insights section.
   ------------------------------------------------------------------------- */
.elitapex-tvwidget {
	border: 1px solid var(--wp--preset--color--accent-6);
	border-radius: 14px;
	overflow: hidden;
	height: 100%;
	background-color: #0B0C10;
}
/* A cross-origin iframe paints a white canvas until the widget renders (and if
   it fails to load). Force it dark so the block never flashes white. */
.elitapex-tvwidget iframe,
.elitapex-tvwidget .tradingview-widget-container,
.elitapex-tvwidget .tradingview-widget-container__widget {
	background-color: #0B0C10;
}
.elitapex-tvwidget .tradingview-widget-container,
.elitapex-tvwidget .tradingview-widget-container__widget,
.elitapex-tvwidget iframe {
	width: 100% !important;
}
.elitapex-tvwidget .tradingview-widget-copyright {
	padding: 6px 12px;
	font-size: 12px;
	background: var(--wp--preset--color--accent-3);
}

/* -------------------------------------------------------------------------
   TradingView ticker tape — thin band at the very bottom of the footer.
   ------------------------------------------------------------------------- */
.elitapex-ticker {
	background: #0B0C10;
	border-top: 1px solid rgba(230, 185, 61, 0.18);
	padding: 4px 0;
	overflow: hidden;
}
/* Widget renders inside a closed shadow root; the "Ticker tape by TradingView"
   attribution sits below the ticker row. Clip the element's height to hide it.
   Brand-mapped CSS tokens per TradingView's Web Component customization API. */
.elitapex-ticker tv-ticker-tape {
	display: block;
	height: 46px;
	overflow: hidden;
	/* The site is always dark — never follow the visitor's OS light mode. */
	color-scheme: dark;
	--tv-widget-font-family:              "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
	--tv-widget-text-color:               #E6B93D;
	--tv-widget-text-secondary-color:     #F4EFE3;
	--tv-widget-text-tertiary-color:      #9C968A;
	--tv-widget-price-text-color:         #E6B93D;
	--tv-widget-hover-background-color:   rgba(230, 185, 61, 0.12);
	--tv-widget-tooltip-background-color: #15161C;
	--tv-widget-button-bold-text-color:    #0B0C10;
	--tv-widget-button-neutral-text-color: #0B0C10;
	--tv-widget-button-quiet-text-color:   #E6B93D;
	--tv-widget-legend-text-color:         #9C968A;
}

/* -------------------------------------------------------------------------
   Contact Form 7 — styled to match the dark + gold theme.
   ------------------------------------------------------------------------- */
.wpcf7 {
	max-width: 560px;
	margin: 0 auto;
	text-align: left;
}
.wpcf7 p {
	margin: 0 0 20px;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
}
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 textarea,
.wpcf7 select {
	width: 100%;
	margin-top: 8px;
	padding: 0.85rem 1rem;
	background: #15161C;
	color: var(--wp--preset--color--contrast);
	border: 1px solid rgba(230, 185, 61, 0.25);
	border-radius: 10px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}
.wpcf7 textarea {
	min-height: 140px;
	resize: vertical;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: var(--wp--preset--color--accent-4);
}
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus {
	outline: none;
	border-color: var(--wp--preset--color--accent-1, #E6B93D);
	box-shadow: 0 0 0 3px rgba(230, 185, 61, 0.16);
}
.wpcf7 .wpcf7-submit {
	width: auto;
	margin-top: 8px;
	padding: 0.95rem 1.9rem;
	background: #0B0C10;
	color: var(--wp--preset--color--accent-1, #E6B93D);
	border: 1px solid rgba(230, 185, 61, 0.5);
	border-radius: 10px;
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
	transition: transform 0.25s ease, box-shadow 0.3s ease,
		border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.wpcf7 .wpcf7-submit:hover,
.wpcf7 .wpcf7-submit:focus {
	transform: translateY(-2px);
	color: #0B0C10;
	border-color: #E6B93D;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 26px rgba(230, 185, 61, 0.5);
	background-image:
		linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.5) 50%, transparent 65%),
		linear-gradient(135deg, #F6DC8C, #E6B93D);
	background-size: 250% 100%, 100% 100%;
	background-repeat: no-repeat;
	background-position: 150% 0, 0 0;
	animation: elitapex-submit-shine 0.9s ease;
}
@keyframes elitapex-submit-shine {
	from { background-position: -150% 0, 0 0; }
	to { background-position: 150% 0, 0 0; }
}
.wpcf7 .wpcf7-spinner {
	background-color: var(--wp--preset--color--accent-1, #E6B93D);
}
.wpcf7-response-output {
	border-radius: 10px !important;
	color: var(--wp--preset--color--contrast);
}
.wpcf7 .wpcf7-not-valid-tip {
	color: #F1A5A5;
	font-size: 0.85rem;
}
.wpcf7 .wpcf7-not-valid {
	border-color: rgba(228, 120, 120, 0.7) !important;
}
@media (prefers-reduced-motion: reduce) {
	.wpcf7 .wpcf7-submit { transition: none; animation: none; }
}

/* -------------------------------------------------------------------------
   Premium X / social button (.elitapex-x-btn) — dark gold-accented pill with
   the X logo; fills gold, lifts, glows and shines on hover.
   ------------------------------------------------------------------------- */
.elitapex-x-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0.95rem 1.9rem;
	border-radius: 10px;
	background: #0B0C10;
	color: var(--wp--preset--color--accent-1, #E6B93D);
	border: 1px solid rgba(230, 185, 61, 0.5);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1;
	text-decoration: none;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
	transition: transform 0.25s ease, box-shadow 0.3s ease,
		border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}
.elitapex-x-btn__icon {
	display: inline-flex;
}
.elitapex-x-btn__icon svg {
	width: 22px;
	height: 22px;
	display: block;
}
.elitapex-x-btn:hover,
.elitapex-x-btn:focus {
	transform: translateY(-2px);
	color: #0B0C10;
	background: linear-gradient(135deg, #F6DC8C, #E6B93D);
	border-color: #E6B93D;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 26px rgba(230, 185, 61, 0.5);
}
.elitapex-x-btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;
	z-index: -1;
	transform: skewX(-20deg);
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}
.elitapex-x-btn:hover::before,
.elitapex-x-btn:focus::before {
	animation: elitapex-cta-shine 0.9s ease;
}

@media (prefers-reduced-motion: reduce) {
	.elitapex-x-btn { transition: none; }
	.elitapex-x-btn::before { display: none; }
}

/* -------------------------------------------------------------------------
   Premium feature icons (.elitapex-feature-icon) — gold line icons set in a
   subtle gold-tinted badge; lifts and glows when its card is hovered.
   ------------------------------------------------------------------------- */
.elitapex-feature-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	color: var(--wp--preset--color--accent-1, #E6B93D);
	background: linear-gradient(145deg, rgba(230, 185, 61, 0.18), rgba(230, 185, 61, 0.04));
	border: 1px solid rgba(230, 185, 61, 0.35);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.3);
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.elitapex-feature-icon svg {
	width: 28px;
	height: 28px;
	display: block;
}
.wp-block-column:hover .elitapex-feature-icon {
	transform: translateY(-3px);
	border-color: rgba(230, 185, 61, 0.6);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 22px rgba(0, 0, 0, 0.4), 0 0 20px rgba(230, 185, 61, 0.28);
}

@media (prefers-reduced-motion: reduce) {
	.elitapex-feature-icon { transition: none; }
}

/* -------------------------------------------------------------------------
   Premium sticky header (.elitapex-header) — glass bar, brand lockup with
   gold apex mark, pill nav links, and a gold "Get Access" CTA.
   ------------------------------------------------------------------------- */
.wp-block-group.elitapex-header {
	border-bottom: 1px solid rgba(230, 185, 61, 0.18);
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
	z-index: 100;
}
/* Glass lives on a pseudo-element so the fixed mobile overlay is NOT trapped
   inside the header's containing block (backdrop-filter would cause that). */
.wp-block-group.elitapex-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: linear-gradient(180deg, rgba(16, 17, 24, 0.86), rgba(11, 12, 16, 0.86));
	-webkit-backdrop-filter: saturate(150%) blur(16px);
	backdrop-filter: saturate(150%) blur(16px);
}

/* Brand lockup: apex mark + two-tone wordmark */
.elitapex-brand {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	text-decoration: none;
	line-height: 1;
}
.elitapex-brand__mark {
	display: inline-flex;
	transition: transform 0.3s ease;
}
.elitapex-brand__mark svg {
	width: 26px;
	height: 26px;
	display: block;
}
.elitapex-brand:hover .elitapex-brand__mark {
	transform: rotate(15deg) scale(1.06);
}
.elitapex-brand__word {
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--contrast, #F4EFE3);
}
.elitapex-brand__word span {
	color: var(--wp--preset--color--accent-1, #E6B93D);
}

/* Keep the nav on a single row next to the CTA */
.elitapex-header .wp-block-navigation__container {
	flex-wrap: nowrap;
}

/* Nav links: soft gold pill on hover, solid pill for the current page */
.elitapex-header .wp-block-navigation-item__content {
	padding: 8px 12px;
	border-radius: 9px;
	color: #D9D3C7;
	font-size: 0.95rem;
	font-weight: 700;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color 0.25s ease, color 0.25s ease;
}
.elitapex-header .wp-block-navigation-item__content:hover,
.elitapex-header .wp-block-navigation-item__content:focus,
.elitapex-header .wp-block-navigation-item__content:active {
	text-decoration: none;
}
.elitapex-header .wp-block-navigation-item:hover .wp-block-navigation-item__content,
.elitapex-header .wp-block-navigation-item .wp-block-navigation-item__content:focus {
	background-color: rgba(230, 185, 61, 0.14);
	color: var(--wp--preset--color--accent-1, #E6B93D);
}
.elitapex-header .wp-block-navigation-item.current-menu-item .wp-block-navigation-item__content {
	background-color: rgba(230, 185, 61, 0.16);
	color: var(--wp--preset--color--accent-1, #E6B93D);
}

/* Get Access CTA */
.elitapex-nav-cta {
	display: inline-flex;
	align-items: center;
	margin-left: 8px;
	padding: 10px 20px;
	border-radius: 10px;
	background: linear-gradient(135deg, #F6DC8C, #E6B93D);
	color: #0B0C10 !important;
	font-weight: 700;
	font-size: 0.9rem;
	white-space: nowrap;
	text-decoration: none;
	box-shadow: 0 4px 16px rgba(230, 185, 61, 0.32);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	transition: transform 0.25s ease, box-shadow 0.3s ease;
}
.elitapex-nav-cta::before {
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;
	z-index: -1;
	transform: skewX(-20deg);
	background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}
.elitapex-nav-cta:hover,
.elitapex-nav-cta:focus {
	transform: translateY(-1px);
	box-shadow: 0 8px 24px rgba(230, 185, 61, 0.5);
}
.elitapex-nav-cta:hover::before,
.elitapex-nav-cta:focus::before {
	animation: elitapex-cta-shine 0.9s ease;
}

/* Mobile hamburger + overlay menu — dark + gold */
.elitapex-header .wp-block-navigation__responsive-container-open {
	color: var(--wp--preset--color--contrast, #F4EFE3);
	transition: color 0.25s ease;
}
.elitapex-header .wp-block-navigation__responsive-container-open:hover {
	color: var(--wp--preset--color--accent-1, #E6B93D);
}
.elitapex-header .wp-block-navigation__responsive-container.is-menu-open {
	background: linear-gradient(180deg, #101118 0%, #0B0C10 100%) !important;
	padding: 3rem 1.5rem;
}
.elitapex-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close {
	color: var(--wp--preset--color--accent-1, #E6B93D);
	transition: transform 0.25s ease;
}
.elitapex-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close:hover {
	transform: rotate(90deg);
}
.elitapex-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	flex-wrap: wrap;
	gap: 6px;
}
.elitapex-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.3rem;
	padding: 12px 22px;
	white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
	.elitapex-brand__mark,
	.elitapex-nav-cta,
	.elitapex-header .wp-block-navigation__responsive-container-close { transition: none; }
	.elitapex-nav-cta::before { display: none; }
}

/* -------------------------------------------------------------------------
   Premium CTA button (.elitapex-cta) — dark gold-accented pill that pops
   against the gold pricing card, with idle glow, hover lift, and shine.
   ------------------------------------------------------------------------- */
.wp-block-button.elitapex-cta .wp-block-button__link {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	background: #0B0C10;
	color: var(--wp--preset--color--accent-1, #E6B93D);
	border: 1px solid rgba(230, 185, 61, 0.55);
	border-radius: 10px;
	font-weight: 700;
	letter-spacing: 0.03em;
	padding: 0.95rem 2.2rem;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
	transition: transform 0.25s ease, box-shadow 0.3s ease,
		border-color 0.3s ease, color 0.3s ease;
	animation: elitapex-cta-pulse 3s ease-in-out infinite;
}

.wp-block-button.elitapex-cta .wp-block-button__link:hover,
.wp-block-button.elitapex-cta .wp-block-button__link:focus {
	transform: translateY(-2px);
	color: #ffffff;
	border-color: var(--wp--preset--color--accent-1, #E6B93D);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5), 0 0 24px rgba(230, 185, 61, 0.5);
	animation: none;
}

/* Diagonal shine sweep on hover */
.wp-block-button.elitapex-cta .wp-block-button__link::before {
	content: "";
	position: absolute;
	top: 0;
	left: -130%;
	width: 60%;
	height: 100%;
	z-index: -1;
	transform: skewX(-20deg);
	background: linear-gradient(
		120deg,
		transparent,
		rgba(255, 255, 255, 0.35),
		transparent
	);
}

.wp-block-button.elitapex-cta .wp-block-button__link:hover::before,
.wp-block-button.elitapex-cta .wp-block-button__link:focus::before {
	animation: elitapex-cta-shine 0.9s ease;
}

/* Subtle idle gold glow */
@keyframes elitapex-cta-pulse {
	0%, 100% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 rgba(230, 185, 61, 0); }
	50% { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 18px rgba(230, 185, 61, 0.4); }
}

@keyframes elitapex-cta-shine {
	from { left: -130%; }
	to { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
	.wp-block-button.elitapex-cta .wp-block-button__link { animation: none; }
	.wp-block-button.elitapex-cta .wp-block-button__link::before { display: none; }
}
