/*
Theme Name: The Presence Forge Theme
Theme URI: https://thepresenceforge.com/
Description: A premium dark glassmorphism WordPress theme for The Presence Forge — an autonomous digital marketing agency. Forged steel aesthetics: black, ember orange, and gold. Powers the daily AI content engine.
Version: 1.0.0
Author: Antigravity AI
Author URI: https://github.com/Gitlawb/openclaude
Text Domain: presence-forge
*/

/* ============================================================
   DESIGN TOKENS — Presence Forge Brand
   ============================================================ */
:root {
    --bg-dark:        #0a0a0f;
    --bg-surface:     #111118;
    --bg-card:        rgba(20, 20, 30, 0.75);
    --text-main:      #f5f0e8;
    --text-muted:     #9a9080;
    --primary:        #e8721a;        /* Ember orange */
    --primary-hover:  #ff8c35;        /* Bright ember */
    --gold:           #c9a84c;        /* Forged gold */
    --gold-light:     #f0c96a;        /* Bright gold */
    --steel:          #5a6070;        /* Cold steel */
    --glass-border:   rgba(232, 114, 26, 0.15);
    --glass-border-hover: rgba(232, 114, 26, 0.35);
    --shadow-ember:   0 20px 60px rgba(232, 114, 26, 0.15);
    --shadow-gold:    0 10px 40px rgba(201, 168, 76, 0.2);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

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

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

/* ============================================================
   BACKGROUND — Forge Ambiance (heat + darkness)
   ============================================================ */
.forge-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.forge-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(232, 114, 26, 0.12) 0%, transparent 65%);
    filter: blur(80px);
    animation: floatBlob 18s ease-in-out infinite alternate;
}

.forge-bg::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201, 168, 76, 0.08) 0%, transparent 65%);
    filter: blur(100px);
    animation: floatBlob 22s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 40px) scale(1.1); }
}

/* Subtle texture overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(232, 114, 26, 0.1);
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.logo span {
    background: linear-gradient(90deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--text-main);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--gold));
    color: var(--bg-dark) !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 114, 26, 0.4) !important;
}

/* ============================================================
   GRADIENT TEXT UTILITY
   ============================================================ */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn, .btn-primary, .btn-secondary, .btn-gold {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d45f10);
    color: white !important;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-ember);
    color: white !important;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg-dark) !important;
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main) !important;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--glass-border-hover);
    transform: translateY(-2px);
}

/* ============================================================
   GLASSMORPHISM CARDS
   ============================================================ */
.glass-card, .glass-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 36px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: 0 8px 32px rgba(232, 114, 26, 0.08);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    padding: 80px 0 60px 0;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 30px;
    background: rgba(232, 114, 26, 0.1);
    border: 1px solid rgba(232, 114, 26, 0.25);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}

.hero h1 {
    font-size: 3.8rem;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    color: #fff;
}

.hero h1 .accent-line {
    display: block;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 48px auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 72px;
    padding-top: 48px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   BLOG LAYOUT (Main + Sidebar)
   ============================================================ */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
    margin-bottom: 80px;
}

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.featured-article {
    margin-bottom: 40px;
}

.featured-article .glass-card {
    padding: 44px;
}

.featured-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: rgba(232, 114, 26, 0.12);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border: 1px solid rgba(232, 114, 26, 0.2);
}

.post-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--steel);
}

.featured-article h2 {
    font-size: 2.4rem;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
}

.featured-article h2 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article h2 a:hover {
    color: var(--primary);
}

.featured-article .post-excerpt {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.75;
}

.featured-article img, .post-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid var(--glass-border);
}

/* ============================================================
   POSTS GRID
   ============================================================ */
.posts-grid-title {
    font-size: 1.5rem;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-main);
}

.posts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.post-card {
    display: flex;
    flex-direction: column;
}

.post-card .post-thumbnail img {
    max-height: 190px;
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    line-height: 1.3;
    color: #fff;
    letter-spacing: -0.01em;
}

.post-card h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--primary);
}

.post-card .post-excerpt {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.65;
}

/* ============================================================
   SIDEBAR / CTA BOXES
   ============================================================ */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(232, 114, 26, 0.12) 0%, rgba(20, 20, 30, 0.8) 100%);
    border: 1px solid rgba(232, 114, 26, 0.25);
    text-align: center;
}

.cta-box-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.cta-box h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    line-height: 1.3;
}

.cta-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.65;
}

.cta-box .btn {
    width: 100%;
}

.cta-box-secondary {
    background: linear-gradient(135deg, rgba(201, 168, 76, 0.1) 0%, rgba(20, 20, 30, 0.8) 100%);
    border: 1px solid rgba(201, 168, 76, 0.2);
}

.services-list {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.services-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.services-list li:last-child {
    border-bottom: none;
}

.services-list li::before {
    content: '⚙';
    color: var(--primary);
    font-size: 0.8rem;
}

/* ============================================================
   SINGLE POST VIEW
   ============================================================ */
.single-post-card {
    padding: 52px;
    margin-bottom: 40px;
}

.single-post-card h1 {
    font-size: 2.9rem;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #fff;
}

.post-content {
    font-size: 1.08rem;
    line-height: 1.85;
    color: #c8bfb0;
}

.post-content p {
    margin-bottom: 24px;
}

.post-content h2, .post-content h3 {
    color: #fff;
    margin: 44px 0 20px 0;
}

.post-content h2 {
    font-size: 1.9rem;
    border-left: 4px solid var(--primary);
    padding-left: 16px;
}

.post-content h3 { font-size: 1.4rem; }

.post-content ul, .post-content ol {
    margin-left: 28px;
    margin-bottom: 24px;
}

.post-content li {
    margin-bottom: 10px;
}

.post-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 16px 20px;
    margin: 32px 0;
    font-style: italic;
    color: var(--text-muted);
    background: rgba(201, 168, 76, 0.04);
    border-radius: 0 8px 8px 0;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 28px auto;
    display: block;
    border: 1px solid var(--glass-border);
}

.post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 48px;
}

.pagination .page-numbers {
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--primary), #d45f10);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(232, 114, 26, 0.3);
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.8rem;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
    display: block;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--glass-border);
    background: #060608;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.7;
    max-width: 300px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.82rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .sidebar {
        margin-top: 0;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-sub { font-size: 1.05rem; }
    nav { display: none; }
    .posts-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .single-post-card { padding: 28px; }
    .single-post-card h1 { font-size: 2rem; }
    .hero-stats { gap: 32px; }
    .stat-number { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   NETWORK ECOSYSTEM SECTION
   ============================================================ */
.network-section {
    padding: 80px 0;
    border-top: 1px solid var(--glass-border);
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.network-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    padding: 28px;
}

.network-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
    opacity: 0.7;
}

.network-card-content {
    margin-bottom: 20px;
}

.network-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.network-main-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s;
}

.network-main-link:hover {
    color: var(--primary-hover);
    transform: translateX(4px);
}

.network-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.channel-link {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.channel-link:hover {
    background: rgba(232, 114, 26, 0.08);
    border-color: var(--primary);
    color: var(--primary-hover);
}

.channel-link.channel-whatsapp:hover {
    background: rgba(37, 211, 102, 0.08);
    border-color: #25d366;
    color: #25d366;
}

.channel-link.channel-instagram:hover {
    background: rgba(225, 48, 108, 0.08);
    border-color: #e1306c;
    color: #e1306c;
}

.channel-link.channel-facebook:hover {
    background: rgba(24, 119, 242, 0.08);
    border-color: #1877f2;
    color: #1877f2;
}

/* ============================================================
   ANNOUNCEMENT BAR & NAV HIGHLIGHT
   ============================================================ */
.announcement-bar {
    background: linear-gradient(90deg, rgba(232, 114, 26, 0.12), rgba(201, 168, 76, 0.12));
    border-bottom: 1px solid rgba(232, 114, 26, 0.2);
    padding: 10px 24px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    width: 100%;
}

.announcement-bar a {
    color: var(--gold-light);
    text-decoration: underline;
    margin-left: 6px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.announcement-bar a:hover {
    color: var(--primary-hover);
}

.nav-highlight {
    color: var(--gold) !important;
    font-weight: 700 !important;
    border: 1px dashed rgba(201, 168, 76, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.25s ease;
}

.nav-highlight:hover {
    color: var(--gold-light) !important;
    border-style: solid;
    border-color: var(--gold);
    background: rgba(201, 168, 76, 0.05);
}

@media (max-width: 768px) {
    .announcement-bar {
        font-size: 0.78rem;
        padding: 8px 12px;
    }
}

