/*
Theme Name: RevoFi Theme
Theme URI: https://github.com/RevoFi/revofi-com-theme
Author: RevoFi Inc.
Author URI: https://revofi.com
Description: Custom theme for revofi.com. Built from the Underscores (_s) starter theme. Aligned with revofi.ai brand identity: dark backgrounds (#1C1C1C), yellow accent (#FFED00), glassmorphism UI patterns.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: revofi-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, woocommerce

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

RevoFi Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ======================================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   Aligned with revofi.ai globals.css — DO NOT drift from these values.
   ====================================================== */

:root {
	/* Brand Colors — exact match to revofi.ai COLORS constants */
	--color-revo-yellow:  #FFED00;
	--color-revo-black:   #1C1C1C;
	--color-revo-dark:    #121212;
	--color-revo-gray:    #2A2A2A;
	--color-revo-card:    #2A2A2A;

	/* Semantic aliases (used throughout templates) */
	--color-bg:           #1C1C1C;   /* revo-black */
	--color-bg-secondary: #121212;   /* revo-dark */
	--color-bg-card:      #2A2A2A;   /* revo-gray / revo-card */
	--color-accent:       #FFED00;   /* revo-yellow */
	--color-accent-hover: rgba(255, 237, 0, 0.9);
	--color-text:         #ffffff;
	--color-text-muted:   rgba(255, 255, 255, 0.6);
	--color-text-faint:   rgba(255, 255, 255, 0.5);
	--color-text-dim:     rgba(255, 255, 255, 0.3);
	--color-text-nav:     rgba(255, 255, 255, 0.7);  /* text-white/70 */

	/* Borders */
	--color-border:       rgba(255, 255, 255, 0.1);  /* border-white/10 */
	--color-border-card:  rgba(255, 255, 255, 0.05); /* border-white/5 */

	/* Typography — Inter from Google Fonts (weights 300/400/600/700/900) */
	--font-sans: 'Inter', system-ui, -apple-system, sans-serif;

	/* Layout */
	--container-max:    1200px;
	--content-max:      800px;
	--border-radius:    1rem;     /* rounded-2xl (16px) — card style */
	--border-radius-sm: 0.5rem;

	/* Effects */
	--text-glow:       0 0 30px rgba(255, 237, 0, 0.4);
	--card-glow:       0 0 40px rgba(255, 237, 0, 0.15);
	--logo-glow:       drop-shadow(0 0 15px rgba(255, 237, 0, 0.6));
}

/* ======================================================
   RESET / BASE
   ====================================================== */

*, *::before, *::after {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	overflow-x: hidden;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	overflow-x: hidden;
}

/* Selection — revofi.ai exact match */
::selection {
	background-color: #FFED00;
	color: #1C1C1C;
}

/* ======================================================
   TYPOGRAPHY
   ====================================================== */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-sans);
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-text);
}

a {
	color: var(--color-accent);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover {
	color: var(--color-accent-hover);
}

/* ======================================================
   LAYOUT
   ====================================================== */

.container {
	max-width: var(--container-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

#page {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

#primary {
	flex: 1;
}

/* ======================================================
   HEADER — aligned with revofi.ai Navbar
   ====================================================== */

.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 50;
	background-color: rgba(28, 28, 28, 0.9);  /* bg-revo-black/90 */
	backdrop-filter: blur(12px);               /* backdrop-blur-md */
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 5rem;  /* h-20 */
}

/* Branding */
.site-branding {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.site-branding a {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
}

.custom-logo {
	width: 40px;
	height: 40px;
	transition: filter 0.3s ease;
}

.site-branding a:hover .custom-logo {
	filter: var(--logo-glow);
}

.site-title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--color-text);
	margin: 0;
}

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

.site-title .accent {
	color: var(--color-revo-yellow);
}

/* Desktop Navigation */
.main-navigation {
	display: none;
}

@media (min-width: 1024px) {
	.main-navigation {
		display: flex;
		align-items: center;
		gap: 2rem;
	}
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 2rem;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.7);  /* text-white/70 */
	text-decoration: none;
	transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: var(--color-revo-yellow);
}

/* Login button in nav */
.nav-login-btn {
	margin-left: 1rem;
	padding: 0.625rem 1.5rem;
	background-color: var(--color-revo-yellow);
	color: var(--color-revo-black);
	font-weight: 700;
	font-size: 0.875rem;
	border-radius: 0.5rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
	display: inline-block;
}

.nav-login-btn:hover {
	background-color: rgba(255, 237, 0, 0.9);
	color: var(--color-revo-black);
}

/* Mobile hamburger */
.menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text);
	padding: 0.25rem;
	font-size: 0;  /* hide text */
	line-height: 1;
}

.menu-toggle::before {
	content: '';
	display: block;
	width: 28px;
	height: 2px;
	background: currentColor;
	box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor;
}

.menu-toggle[aria-expanded="true"]::before {
	background: var(--color-revo-yellow);
	box-shadow: 0 8px 0 var(--color-revo-yellow), 0 16px 0 var(--color-revo-yellow);
}

@media (min-width: 1024px) {
	.menu-toggle {
		display: none;
	}
}

/* Mobile full-screen overlay */
.mobile-menu-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100;
	background: #000000;
	flex-direction: column;
}

.mobile-menu-overlay.is-open {
	display: flex;
}

.mobile-menu-overlay__top {
	flex-shrink: 0;
	height: 5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
	border-bottom: 1px solid rgba(255, 237, 0, 0.3);
}

.mobile-menu-overlay__label {
	color: var(--color-revo-yellow);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: 0.1em;
}

.mobile-menu-overlay__close {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-revo-yellow);
	font-size: 1.75rem;
	line-height: 1;
}

.mobile-menu-overlay nav {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1rem 1.5rem;
	overflow-y: auto;
}

.mobile-menu-overlay ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mobile-menu-overlay li > a {
	display: block;
	padding: 0.75rem 0;
	font-size: 1rem;
	font-weight: 600;
	color: var(--color-text);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	text-decoration: none;
	transition: color 0.2s ease;
}

.mobile-menu-overlay li > a:hover,
.mobile-menu-overlay .current-menu-item > a {
	color: var(--color-revo-yellow);
}

.mobile-login-btn {
	display: block;
	width: 100%;
	margin-top: 1rem;
	padding: 0.875rem;
	background-color: var(--color-revo-yellow);
	color: #000000;
	font-weight: 700;
	text-align: center;
	border-radius: 0.5rem;
	text-decoration: none;
	font-size: 0.875rem;
	letter-spacing: 0.05em;
}

/* Offset body content for fixed header */
.site-header ~ #page > #primary,
.site-header ~ * .site-main,
body > #page > #primary {
	padding-top: 5rem;
}

/* ======================================================
   FOOTER — aligned with revofi.ai Footer
   ====================================================== */

.site-footer {
	background-color: var(--color-revo-dark);  /* #121212 */
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__inner {
	padding-top: 4rem;
	padding-bottom: 4rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

@media (min-width: 768px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.site-footer__grid {
		grid-template-columns: repeat(5, 1fr);
	}
}

/* Brand column */
.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.site-footer__brand .custom-logo {
	width: 32px;
	height: 32px;
}

.site-footer__brand-name {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--color-text);
}

.site-footer__tagline {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.5);
	line-height: 1.6;
	margin: 0;
}

/* Patent badge — text-revo-yellow/70 */
.patent-badge {
	font-size: 0.75rem;
	font-weight: 500;
	color: rgba(255, 237, 0, 0.7);
	margin: 0;
}

/* Social icons — bg-white/5, border-white/5 */
.site-footer__social {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.5rem;
}

.site-footer__social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	min-width: 44px;
	min-height: 44px;
	border-radius: 0.5rem;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.05);
	color: rgba(255, 255, 255, 0.4);
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer__social-link:hover {
	color: var(--color-revo-yellow);
	border-color: rgba(255, 237, 0, 0.3);
}

.site-footer__social-link svg {
	width: 1rem;
	height: 1rem;
}

/* Footer nav columns */
.site-footer__col h4 {
	font-size: 0.875rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.8);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0 0 1rem 0;
}

.site-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.site-footer__col a {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__col a:hover {
	color: var(--color-revo-yellow);
}

/* Ecosystem links with color variants */
.site-footer__col a.ecosystem-yellow { color: var(--color-revo-yellow); }
.site-footer__col a.ecosystem-blue   { color: #60a5fa; }
.site-footer__col a.ecosystem-purple { color: #a78bfa; }
.site-footer__col a.ecosystem-green  { color: #4ade80; }

/* Footer bottom bar */
.site-footer__bottom {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

@media (min-width: 768px) {
	.site-footer__bottom {
		flex-direction: row;
		justify-content: space-between;
	}
}

.site-footer__copyright {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.3);
	margin: 0;
}

.site-footer__bottom .patent-badge {
	color: rgba(255, 237, 0, 0.5);
}

/* ======================================================
   CARDS — aligned with revofi.ai Card component
   rounded-2xl bg-revo-gray border border-white/5
   ====================================================== */

.card,
.revofi-card {
	padding: 1.5rem;
	border-radius: var(--border-radius);  /* 1rem = rounded-2xl */
	background-color: var(--color-revo-gray);  /* #2A2A2A */
	border: 1px solid rgba(255, 255, 255, 0.05);  /* border-white/5 */
}

/* Card hover — revofi.ai card-hover class */
.card-hover,
.card.card-hover,
.revofi-card.card-hover {
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-hover:hover,
.card.card-hover:hover,
.revofi-card.card-hover:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 40px rgba(255, 237, 0, 0.15);
	border-color: rgba(255, 237, 0, 0.3);
}

/* ======================================================
   BUTTONS
   ====================================================== */

.btn,
button.wp-block-button__link,
input[type="submit"],
.woocommerce-Button,
.button {
	display: inline-block;
	padding: 0.625rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 700;
	font-size: 0.875rem;
	font-family: var(--font-sans);
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-primary,
.woocommerce-Button.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button {
	background-color: var(--color-revo-yellow);
	color: var(--color-revo-black);
}

.btn-primary:hover,
.woocommerce-Button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
	background-color: rgba(255, 237, 0, 0.9);
	color: var(--color-revo-black);
}

/* ======================================================
   BRAND EFFECTS — exact match to revofi.ai globals.css
   ====================================================== */

.text-glow {
	text-shadow: 0 0 30px rgba(255, 237, 0, 0.4);
}

.hero-gradient {
	background: radial-gradient(circle at center, rgba(255, 237, 0, 0.08) 0%, rgba(28, 28, 28, 0) 70%);
}

.gradient-border {
	background: linear-gradient(135deg, rgba(255, 237, 0, 0.2) 0%, rgba(255, 237, 0, 0) 50%, rgba(255, 237, 0, 0.1) 100%);
}

.feature-glow:hover {
	box-shadow: 0 0 40px rgba(255, 237, 0, 0.15);
}

/* ======================================================
   BLOB ANIMATIONS — exact match to revofi.ai keyframes
   ====================================================== */

@keyframes blob-drift-1 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25%       { transform: translate(30px, -20px) scale(1.05); }
	50%       { transform: translate(-20px, 30px) scale(0.95); }
	75%       { transform: translate(20px, 20px) scale(1.02); }
}

@keyframes blob-drift-2 {
	0%, 100% { transform: translate(0, 0) scale(1); }
	25%       { transform: translate(-30px, 20px) scale(0.95); }
	50%       { transform: translate(20px, -30px) scale(1.05); }
	75%       { transform: translate(-20px, -20px) scale(0.98); }
}

@keyframes blob-pulse {
	0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
	50%       { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes pulse-slow {
	0%, 100% { opacity: 1; }
	50%       { opacity: 0.5; }
}

.animate-blob-drift-1 { animation: blob-drift-1 20s ease-in-out infinite; }
.animate-blob-drift-2 { animation: blob-drift-2 25s ease-in-out infinite; }
.animate-blob-pulse   { animation: blob-pulse 15s ease-in-out infinite; }
.animate-pulse-slow   { animation: pulse-slow 3s ease-in-out infinite; }

/* ======================================================
   SCROLL REVEAL — match revofi.ai
   ====================================================== */

.reveal-hidden {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-visible {
	opacity: 1;
	transform: translateY(0);
}

/* ======================================================
   WOOCOMMERCE OVERRIDES
   Tokens must match revofi.ai — #2A2A2A cards, #FFED00 accents
   ====================================================== */

/* Product cards */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	border-radius: var(--border-radius);  /* 1rem */
	background-color: var(--color-revo-gray);  /* #2A2A2A */
	border: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.woocommerce ul.products li.product:hover,
.woocommerce-page ul.products li.product:hover {
	transform: translateY(-4px);
	box-shadow: 0 0 40px rgba(255, 237, 0, 0.15);
	border-color: rgba(255, 237, 0, 0.3);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
	color: var(--color-text);
	font-family: var(--font-sans);
}

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price .amount {
	color: var(--color-revo-yellow);
	font-weight: 700;
}

/* Product card add-to-cart button */
.woocommerce ul.products li.product .button {
	background-color: var(--color-revo-yellow);
	color: var(--color-revo-black);
	border-radius: 0.5rem;
	font-weight: 700;
	border: none;
}

.woocommerce ul.products li.product .button:hover {
	background-color: rgba(255, 237, 0, 0.9);
	color: var(--color-revo-black);
}

/* Single product page */
.woocommerce div.product .product_title {
	color: var(--color-text);
	font-family: var(--font-sans);
}

.woocommerce div.product .price {
	color: var(--color-revo-yellow);
	font-weight: 700;
}

/* Cart page */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-checkout .woocommerce {
	background-color: var(--color-revo-gray);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: var(--border-radius);
	padding: 1.5rem;
}

/* Form fields */
.woocommerce .form-row input.input-text,
.woocommerce .form-row textarea,
.woocommerce .form-row select,
.woocommerce-checkout .form-row input.input-text {
	background-color: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: var(--color-text);
	border-radius: 0.5rem;
	padding: 0.625rem 1rem;
}

.woocommerce .form-row input.input-text:focus,
.woocommerce .form-row textarea:focus {
	border-color: var(--color-revo-yellow);
	outline: none;
}

/* Order review */
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
	background-color: var(--color-revo-gray);
	color: var(--color-text);
}

/* My account */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	background-color: var(--color-revo-gray);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: var(--border-radius);
	padding: 1.5rem;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
	color: rgba(255, 255, 255, 0.7);
	transition: color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
	color: var(--color-revo-yellow);
}

/* Notices */
.woocommerce-message,
.woocommerce-info {
	background-color: var(--color-revo-gray);
	border-top-color: var(--color-revo-yellow);
	color: var(--color-text);
}

.woocommerce-error {
	background-color: var(--color-revo-gray);
	border-top-color: #ef4444;
	color: var(--color-text);
}

/* ======================================================
   UTILITY CLASSES
   ====================================================== */

.text-accent  { color: var(--color-revo-yellow); }
.bg-revo-dark { background-color: var(--color-revo-dark); }
.bg-revo-gray { background-color: var(--color-revo-gray); }

/* ======================================================
   REDUCED MOTION
   ====================================================== */

@media (prefers-reduced-motion: reduce) {
	.reveal-hidden {
		opacity: 1;
		transform: none;
		transition: none;
	}
	.animate-blob-drift-1,
	.animate-blob-drift-2,
	.animate-blob-pulse {
		animation: none;
	}
}
