/*
Theme Name: Tamgel Digital Assets
Theme URI: https://digitalassets.tamgel.com
Author: Tamgel
Description: Custom theme for Tamgel Digital Assets, a digital publishing marketplace.
Version: 1.0.0
Text Domain: tamgel
*/

:root {
	--color-navy-950: #0a0f1e;
	--color-navy-900: #0d1527;
	--color-navy-800: #111d35;
	--color-navy-700: #172341;
	--color-navy-600: #1e2d52;
	--color-charcoal-900: #1a1a2e;
	--color-charcoal-800: #222237;
	--color-charcoal-700: #2d2d44;
	--color-orange: #F7931A;
	--color-orange-dark: #D97706;
	--color-orange-light: #FF9E30;
	--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--font-heading: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--color-navy-900);
	color: #f1f5f9;
	font-family: var(--font-sans);
	line-height: 1.6;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 1rem;
	color: #fff;
}
p { margin: 0 0 1rem; color: #cbd5e1; }
ul { padding-left: 1.25rem; }
:focus-visible { outline: 2px solid var(--color-orange); outline-offset: 2px; }

/* --- Layout helpers --- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }
.bg-900 { background: var(--color-navy-900); }
.bg-950 { background: var(--color-navy-950); }
.bg-dark { background: #080d1a; }

.section-header { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }
.eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--color-orange);
	margin-bottom: 0.75rem;
}
.section-header h2 { font-size: 2rem; }
@media (min-width: 768px) { .section-header h2 { font-size: 2.5rem; } }
.section-header p { font-size: 1.05rem; }
.section-divider {
	height: 1px;
	width: 6rem;
	margin: 1.5rem auto 0;
	background: linear-gradient(90deg, transparent, rgba(247,147,26,0.35), transparent);
}

/* --- Gradients --- */
.gradient-gold { background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark)); }
.gradient-hero {
	background: linear-gradient(135deg, var(--color-navy-950) 0%, var(--color-navy-900) 35%, var(--color-navy-800) 70%, var(--color-navy-700) 100%);
}
.text-gradient-gold {
	background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* --- Cards --- */
.card-premium {
	background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.08);
	backdrop-filter: blur(12px);
	border-radius: 1rem;
	transition: all 0.3s ease;
}
.card-premium:hover {
	background: rgba(255,255,255,0.07);
	border-color: rgba(247,147,26,0.3);
	box-shadow: 0 10px 40px rgba(247,147,26,0.15);
	transform: translateY(-2px);
}
.glow-gold { box-shadow: 0 0 60px rgba(247,147,26,0.18); }

/* --- Buttons --- */
.btn-primary, .btn-outline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.9rem 1.75rem;
	border-radius: 0.75rem;
	font-weight: 700;
	font-size: 0.95rem;
	border: none;
	cursor: pointer;
	transition: all 0.25s ease;
	text-decoration: none;
}
.btn-primary {
	background: linear-gradient(135deg, var(--color-orange), var(--color-orange-dark));
	color: #fff;
	box-shadow: 0 4px 20px rgba(247,147,26,0.35);
}
.btn-primary:hover {
	background: linear-gradient(135deg, var(--color-orange-light), var(--color-orange));
	box-shadow: 0 6px 28px rgba(247,147,26,0.5);
	transform: translateY(-1px);
	color: #fff;
}
.btn-outline {
	background: transparent;
	border: 1.5px solid rgba(247,147,26,0.5);
	color: var(--color-orange);
}
.btn-outline:hover { background: rgba(247,147,26,0.1); border-color: var(--color-orange); }
.btn-block { width: 100%; }

/* --- Badges/pills --- */
.pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.9rem;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.pill-orange { background: rgba(247,147,26,0.12); color: var(--color-orange-light); border: 1px solid rgba(247,147,26,0.3); }
.pill-dot { width: 6px; height: 6px; border-radius: 999px; background: var(--color-orange); }

/* ===================== HEADER ===================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(10,15,30,0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.site-logo { display: flex; align-items: center; gap: 0.65rem; }
.site-logo img { width: 40px; height: 40px; border-radius: 0.5rem; background: #fff; padding: 3px; }
.site-logo .wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo .wordmark .top { font-weight: 800; font-family: var(--font-heading); color: #fff; }
.site-logo .wordmark .bottom { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-orange); font-weight: 700; }
.main-nav { display: none; align-items: center; gap: 1.75rem; }
.main-nav a { font-size: 0.9rem; font-weight: 600; color: #cbd5e1; }
.main-nav a:hover { color: var(--color-orange); }
.header-cta { display: none; }
.mobile-menu-toggle { display: inline-flex; background: none; border: none; color: #fff; cursor: pointer; padding: 0.5rem; }
@media (min-width: 1024px) {
	.main-nav { display: flex; }
	.header-cta { display: inline-flex; }
	.mobile-menu-toggle { display: none; }
}
.mobile-nav { display: none; flex-direction: column; gap: 0.25rem; padding: 1rem 1.5rem 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 0.6rem 0; font-weight: 600; color: #cbd5e1; }

/* ===================== FOOTER ===================== */
.site-footer { background: #080d1a; border-top: 1px solid rgba(255,255,255,0.06); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin-bottom: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid ul a { color: #94a3b8; font-size: 0.9rem; }
.footer-grid ul a:hover { color: var(--color-orange); }
.footer-brand p { color: #94a3b8; font-size: 0.9rem; max-width: 26rem; }
.footer-socials { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-socials a { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; }
.footer-socials a:hover { background: var(--color-orange); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; color: #64748b; font-size: 0.8rem; }

/* ===================== HERO ===================== */
.hero { position: relative; overflow: hidden; padding: 6rem 0 5rem; }
.hero-grid { display: grid; gap: 3rem; align-items: center; position: relative; z-index: 1; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1fr 1fr; } }
.hero-copy h1 { font-size: 2.5rem; }
@media (min-width: 768px) { .hero-copy h1 { font-size: 3.25rem; } }
.hero-copy p.lead { font-size: 1.1rem; color: #cbd5e1; max-width: 34rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2rem 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.85rem; color: #94a3b8; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-visual { position: relative; }
.hero-visual .frame { border-radius: 1.5rem; overflow: hidden; padding: 1rem; }
.hero-badge-float { position: absolute; padding: 0.85rem 1.1rem; border-radius: 0.85rem; font-size: 0.8rem; font-weight: 700; max-width: 220px; }
.hero-badge-float.bl { left: -1rem; bottom: -1rem; }
.hero-badge-float.tr { right: -1rem; top: -1rem; }

/* ===================== ABOUT ===================== */
.about-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-formats { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.5rem 0; }
.about-formats span { padding: 0.4rem 0.9rem; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 0.8rem; color: #cbd5e1; }

/* ===================== CATEGORY GRID ===================== */
.category-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .category-grid { grid-template-columns: repeat(5, 1fr); } }
.category-card { padding: 1.75rem 1.5rem; display: flex; flex-direction: column; }
.category-card .icon { width: 56px; height: 56px; border-radius: 0.9rem; background: var(--color-navy-800); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; padding: 12px; }
.category-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.category-card:hover h3 { color: var(--color-orange); }
.category-card p { font-size: 0.85rem; flex: 1; }
.category-card .footer-link { margin-top: 1rem; font-size: 0.85rem; font-weight: 700; color: var(--color-orange); }
.category-card .footer-soon { margin-top: 1rem; font-size: 0.8rem; color: #64748b; display: flex; align-items: center; gap: 0.4rem; }
.category-card .footer-soon .dot { width: 6px; height: 6px; border-radius: 999px; background: #64748b; }

/* ===================== PRODUCT GRID ===================== */
.product-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card.featured { border-color: rgba(247,147,26,0.4); }
.product-card .cover-wrap { position: relative; aspect-ratio: 2 / 3; background: var(--color-navy-800); overflow: hidden; }
.product-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badges { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; }
.product-card .badge-featured { background: var(--color-orange); color: #fff; font-size: 0.65rem; font-weight: 800; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }
.product-card .badge-type { background: rgba(0,0,0,0.55); color: #fff; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px; }
.product-card .coming-soon-scrim { position: absolute; inset: 0; background: rgba(10,15,30,0.72); display: flex; align-items: center; justify-content: center; }
.product-card .coming-soon-scrim span { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; }
.product-card .body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: 0.35rem; }
.product-card .eyebrow-cat { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-orange); font-weight: 700; }
.product-card h3 { font-size: 1.05rem; margin: 0; }
.product-card .byline { font-size: 0.8rem; color: #94a3b8; }
.product-card .desc { font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-card .price-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; font-weight: 800; }
.product-card .price-row .free { color: var(--color-orange); }
.product-card .actions { display: flex; gap: 0.6rem; margin-top: 0.75rem; }
.product-card .actions a { flex: 1; text-align: center; padding: 0.6rem 0.8rem; font-size: 0.8rem; }

/* ===================== BLOG GRID / CARD ===================== */
.blog-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.blog-card .top-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; }
.blog-card .cat-pill { padding: 0.25rem 0.7rem; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.65rem; }
.cat-relationships { background: rgba(244,63,94,0.14); color: #fb7185; }
.cat-wealth { background: rgba(16,185,129,0.14); color: #34d399; }
.cat-health-wellness { background: rgba(20,184,166,0.14); color: #2dd4bf; }
.cat-productivity-personal-growth { background: rgba(139,92,246,0.14); color: #a78bfa; }
.cat-digital-business-ecommerce { background: rgba(247,147,26,0.14); color: var(--color-orange-light); }
.blog-card h3 { font-size: 1.05rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card:hover h3 { color: var(--color-orange); }
.blog-card .excerpt { font-size: 0.85rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.blog-card .bottom-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: #94a3b8; }
.blog-card .avatar { display: flex; align-items: center; gap: 0.5rem; }
.blog-card .avatar .initial { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 0.7rem; }
.blog-card .read-more { color: var(--color-orange); font-weight: 700; }

/* ===================== EMAIL CAPTURE ===================== */
.email-capture-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .email-capture-grid { grid-template-columns: 1fr 1fr; } }
.lead-magnet-card { padding: 2rem; }
.lead-magnet-card .checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-direction: column; gap: 0.6rem; }
.lead-magnet-card .checklist li { display: flex; gap: 0.6rem; font-size: 0.85rem; color: #cbd5e1; }
.subscribe-form .field { margin-bottom: 1rem; }
.subscribe-form label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.4rem; color: #cbd5e1; }
.subscribe-form input {
	width: 100%;
	padding: 0.8rem 1rem;
	border-radius: 0.6rem;
	background: var(--color-navy-700);
	border: 1px solid rgba(255,255,255,0.1);
	color: #fff;
	font-size: 0.95rem;
}
.subscribe-form input:focus { outline: none; border-color: var(--color-orange); box-shadow: 0 0 0 3px rgba(247,147,26,0.15); }
.subscribe-form .error { color: #fb7185; font-size: 0.8rem; margin-top: 0.3rem; }
.subscribe-success { padding: 2rem; text-align: center; }

/* ===================== FAQ ACCORDION ===================== */
.faq-list { display: flex; flex-direction: column; gap: 0.85rem; max-width: 46rem; margin: 0 auto; }
.faq-item { overflow: hidden; }
.faq-item button.faq-q {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.1rem 1.4rem;
	background: none;
	border: none;
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	text-align: left;
}
.faq-item .faq-icon { font-size: 1.4rem; color: var(--color-orange); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; border-top: 1px solid transparent; }
.faq-item.open .faq-a { max-height: 400px; border-top-color: rgba(255,255,255,0.08); }
.faq-item .faq-a-inner { padding: 1rem 1.4rem 1.3rem; font-size: 0.9rem; color: #cbd5e1; }

/* ===================== CONTACT ===================== */
.contact-wrap { position: relative; }
.contact-card { max-width: 42rem; margin: 0 auto; padding: 2.5rem; text-align: center; }
.contact-icon-circle { width: 64px; height: 64px; border-radius: 999px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.contact-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; text-align: left; }
.contact-features div { font-size: 0.8rem; color: #94a3b8; }

/* ===================== BREADCRUMB ===================== */
.breadcrumb { font-size: 0.8rem; color: #64748b; padding: 1.25rem 0; }
.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: var(--color-orange); }

/* ===================== SINGLE PRODUCT ===================== */
.product-hero { display: grid; gap: 3rem; padding: 2rem 0 3rem; }
@media (min-width: 1024px) { .product-hero { grid-template-columns: 0.9fr 1.1fr; } }
.product-hero .cover img { border-radius: 1rem; }
.product-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; text-align: center; font-size: 0.75rem; color: #94a3b8; }
.product-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.for-you-box { padding: 1.5rem; margin: 1.5rem 0; }
.buy-card { padding: 1.75rem; }
.buy-card .price-display { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.trust-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin-top: 1.5rem; font-size: 0.78rem; color: #94a3b8; }
.trust-icons span { display: flex; align-items: center; gap: 0.4rem; }
.about-book-grid { display: grid; gap: 3rem; padding: 3rem 0; }
@media (min-width: 1024px) { .about-book-grid { grid-template-columns: 2fr 1fr; } }
.learn-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.5rem; }
@media (min-width: 640px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
.learn-grid .item { display: flex; gap: 0.6rem; padding: 1rem; font-size: 0.88rem; }
.sidebar-card { padding: 1.5rem; margin-bottom: 1.5rem; }
.sidebar-card dl { margin: 0; }
.sidebar-card dt { font-size: 0.75rem; color: #64748b; margin-top: 0.6rem; }
.sidebar-card dd { margin: 0 0 0.2rem; font-size: 0.9rem; color: #e2e8f0; }
.author-avatar { width: 48px; height: 48px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; margin-bottom: 0.75rem; }

/* ===================== SINGLE BLOG POST ===================== */
.article-header { max-width: 48rem; margin: 0 auto; text-align: left; padding: 2rem 0; }
.article-header .meta-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; font-size: 0.8rem; color: #94a3b8; }
.article-header h1 { font-size: 2rem; }
@media (min-width: 768px) { .article-header h1 { font-size: 2.75rem; } }
.article-header .intro { font-size: 1.1rem; color: #cbd5e1; }
.article-author-row { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.5rem; }
.article-body { max-width: 48rem; margin: 0 auto; font-size: 1.02rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-body hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 2rem 0; }
.related-callout { max-width: 48rem; margin: 2rem auto; padding: 1.25rem 1.5rem; border-left: 3px solid var(--color-orange); }
.tag-list { max-width: 48rem; margin: 1.5rem auto; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list span { padding: 0.3rem 0.8rem; border-radius: 999px; background: rgba(255,255,255,0.05); font-size: 0.75rem; color: #94a3b8; }
.blog-cta { max-width: 48rem; margin: 2.5rem auto; padding: 2rem; text-align: center; border: 1px solid rgba(247,147,26,0.25); }
.related-posts { max-width: 48rem; margin: 2.5rem auto; }

/* ===================== CTA / GENERIC ===================== */
.cta-badge { display: inline-block; margin-bottom: 1rem; }
.center { text-align: center; }
.empty-state { text-align: center; padding: 3rem 0; color: #64748b; }

/* ===================== BLOG INDEX FILTER ===================== */
.blog-filter-bar { position: sticky; top: 4rem; z-index: 30; background: rgba(10,15,30,0.92); backdrop-filter: blur(8px); padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.blog-filter-bar .filters { display: flex; gap: 0.6rem; overflow-x: auto; }
.blog-filter-bar a { padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255,255,255,0.1); color: #cbd5e1; }
.blog-filter-bar a.active { background: var(--color-orange); border-color: var(--color-orange); color: #fff; }

/* ===================== RESPONSIVE UTIL ===================== */
.flex-between { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
