/* ============================================
   BUZZ CUE — Bold Dark Agency Theme
   Palette: Dark bg, orange accent, purple depth
   ============================================ */

:root {
    --color-bg: #0A0A0A;
    --color-surface: #141414;
    --color-surface-2: #1E1E1E;
    --color-border: rgba(255,255,255,0.08);
    --color-purple: #391952;
    --color-purple-light: #C89AE8;
    --color-orange: #F26522;
    --color-orange-glow: rgba(242,101,34,0.15);
    --color-red: #D63D4E;
    --color-white: #FFFFFF;
    --color-text: rgba(255,255,255,0.85);
    --color-text-muted: rgba(255,255,255,0.5);
    --color-text-faint: rgba(255,255,255,0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --max-width: 1200px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--color-text); background: var(--color-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.1; color: var(--color-white); }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

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

/* ============ UTILITY ============ */
.text-gradient {
    background: linear-gradient(135deg, var(--color-orange), var(--color-purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 1rem;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-desc { font-size: 1.125rem; color: var(--color-text-muted); max-width: 600px; margin: 0 auto; }

.section-cta { text-align: center; margin-top: 3rem; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.875rem 2rem; font-family: var(--font-body); font-size: 0.875rem;
    font-weight: 600; border: none; border-radius: 8px; cursor: pointer;
    transition: var(--transition); letter-spacing: 0.02em;
}
.btn-primary { background: var(--color-orange); color: var(--color-white); }
.btn-primary:hover { background: #E05A1A; transform: translateY(-2px); box-shadow: 0 8px 24px var(--color-orange-glow); }
.btn-ghost { background: transparent; color: var(--color-text-muted); border: 1px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-orange); color: var(--color-orange); }
.btn-lg { padding: 1.125rem 2.5rem; font-size: 1rem; }

/* ============ HEADER ============ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 0; transition: var(--transition); }
.site-header.scrolled { background: rgba(10,10,10,0.95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--color-border); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.site-logo img { height: 40px; width: auto; }
.site-nav ul { display: flex; gap: 2rem; }
.site-nav a { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); }
.site-nav a:hover { color: var(--color-orange); }
.header-cta { font-size: 0.8125rem; font-weight: 600; padding: 0.625rem 1.5rem; background: var(--color-orange); color: var(--color-white); border-radius: 6px; }
.header-cta:hover { background: var(--color-red); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--color-white); margin: 5px 0; }
.mobile-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-bg); z-index: 99; flex-direction: column; align-items: center; justify-content: center; gap: 2rem; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.mobile-nav.active { opacity: 1; pointer-events: all; }
.mobile-nav a { font-family: var(--font-heading); font-size: 2rem; color: var(--color-white); }
.mobile-cta { padding: 0.875rem 2rem; background: var(--color-orange); color: var(--color-white); border-radius: 6px; font-size: 1rem; font-weight: 600; margin-top: 1rem; }

/* ============ HERO ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 8rem 0 6rem;
}

.hero .container {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-bg-effects {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-orange-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
}

.hero-grid-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(var(--color-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.3;
}

.hero-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--color-orange);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(242,101,34,0.3);
    border-radius: 4px;
}

.hero-title { margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.hero-subtitle { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 500px; line-height: 1.7; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { display: flex; align-items: center; justify-content: center; }
.hero-mascot {
    max-width: 320px;
    filter: drop-shadow(0 0 40px var(--color-orange-glow));
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============ ABOUT ============ */
.about-section {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.about-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content h2 { margin-bottom: 1.5rem; }
.about-content p { font-size: 1.125rem; color: var(--color-text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* ============ SERVICES ============ */
.services-section {
    padding: 7rem 0;
    background: var(--color-surface);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--color-surface-2);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    transition: var(--transition);
}

.service-card:hover {
    border-color: var(--color-orange);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-orange-glow);
    border-radius: 10px;
    color: var(--color-orange);
    margin-bottom: 1.25rem;
}

.service-card h3 { font-size: 1.125rem; margin-bottom: 1.25rem; font-weight: 600; }

.service-list li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

/* ============ PROJECTS ============ */
.projects-section {
    padding: 7rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover { transform: translateY(-4px); }

.project-image {
    aspect-ratio: 16/10;
    background: var(--color-surface-2);
    position: relative;
}

.placeholder-img {
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-surface-2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.project-category {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-orange);
    padding: 0.375rem 0.75rem;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}

.project-card h3 {
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
}

.project-card:hover h3 { color: var(--color-orange); }

/* ============ TESTIMONIAL ============ */
.testimonial-section {
    padding: 7rem 0;
    background: var(--color-surface);
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote p {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-white);
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.testimonial-author strong {
    display: block;
    color: var(--color-white);
    font-size: 1rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ============ BLOG / POSTS ============ */
.blog-section { padding: 7rem 0; }

.tag-badge {
    display: inline-block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-orange);
    margin-bottom: 0.5rem;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.post-card-image { display: block; overflow: hidden; }
.post-card-image img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-content { padding: 1.25rem; }
.post-card-content h3 { font-size: 1.125rem; margin-bottom: 0.5rem; font-weight: 600; }
.post-card-content h3 a:hover { color: var(--color-orange); }
.post-card-content p { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 0.75rem; }

.post-meta { font-size: 0.8125rem; color: var(--color-text-faint); display: flex; align-items: center; gap: 0.5rem; }

/* ============ CTA SECTION ============ */
.cta-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-bg) 100%);
    text-align: center;
}

.cta-content { max-width: 650px; margin: 0 auto; }
.cta-content h2 { margin-bottom: 1rem; }
.cta-content p { font-size: 1.125rem; color: var(--color-text-muted); margin-bottom: 2.5rem; }

/* ============ POST FULL ============ */
.post-header { padding: 8rem 0 3rem; text-align: center; }
.post-header .tag-badge { margin-bottom: 1rem; }
.post-title { margin-bottom: 1rem; }
.post-excerpt { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 1.5rem; max-width: 700px; margin-left: auto; margin-right: auto; }
.post-author { font-weight: 600; }

.post-feature-image { max-width: 1000px; margin: 0 auto 3rem; padding: 0 1.5rem; }
.post-feature-image img { border-radius: 12px; }
.post-feature-image figcaption { text-align: center; font-size: 0.8125rem; color: var(--color-text-faint); margin-top: 0.75rem; }

.post-content { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.post-content p { font-size: 1.0625rem; line-height: 1.85; margin-bottom: 1.5rem; }
.post-content h2 { margin: 2.5rem 0 1rem; }
.post-content h3 { margin: 2rem 0 0.75rem; }
.post-content img { border-radius: 12px; margin: 2rem 0; }
.post-content a { color: var(--color-orange); text-decoration: underline; text-underline-offset: 2px; }
.post-content a:hover { color: var(--color-purple-light); }
.post-content blockquote { border-left: 3px solid var(--color-orange); padding-left: 1.5rem; margin: 2rem 0; font-style: italic; color: var(--color-text-muted); }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.post-content li { list-style: disc; margin-bottom: 0.5rem; line-height: 1.8; }
.post-content ol li { list-style: decimal; }

.post-tags { max-width: 720px; margin: 0 auto; padding: 0 1.5rem 4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.post-tag-link { font-size: 0.8125rem; padding: 0.375rem 0.875rem; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px; color: var(--color-text-muted); }
.post-tag-link:hover { border-color: var(--color-orange); color: var(--color-orange); }

/* ============ PAGE ============ */
.page-header { padding: 8rem 0 3rem; text-align: center; }
.page-title { margin-bottom: 0.75rem; }
.page-excerpt { font-size: 1.125rem; color: var(--color-text-muted); }
.page-content { padding: 0 0 5rem; }
.page-content-inner { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }
.page-content-inner p { font-size: 1.0625rem; line-height: 1.85; margin-bottom: 1.5rem; }
.page-content-inner h2 { margin: 2.5rem 0 1rem; }
.page-content-inner h3 { margin: 2rem 0 0.75rem; }
.page-content-inner img { border-radius: 12px; margin: 2rem 0; }

/* ============ ARCHIVE ============ */
.archive-header { padding: 8rem 0 3rem; text-align: center; border-bottom: 1px solid var(--color-border); }
.archive-desc { font-size: 1.0625rem; color: var(--color-text-muted); margin-top: 0.75rem; max-width: 600px; margin-left: auto; margin-right: auto; }
.author-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; }

.related-section { padding: 5rem 0; border-top: 1px solid var(--color-border); }
.related-title { text-align: center; margin-bottom: 3rem; }

/* ============ PAGINATION ============ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; padding: 3rem 0 0; }
.pagination-link { font-size: 0.875rem; font-weight: 600; color: var(--color-orange); }
.pagination-link:hover { color: var(--color-purple-light); }
.pagination-info { font-size: 0.8125rem; color: var(--color-text-faint); }

/* ============ ERROR ============ */
.error-page { padding: 8rem 0; text-align: center; }
.error-code { font-size: 6rem; color: var(--color-text-faint); margin-bottom: 0.5rem; }
.error-message { font-size: 1.25rem; color: var(--color-text-muted); margin-bottom: 2rem; }

/* ============ FOOTER ============ */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 5rem 0 2rem;
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.7; }

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-bottom: 1rem;
}

.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { color: var(--color-text-muted); font-size: 0.875rem; display: block; }
.footer-col a:hover { color: var(--color-orange); }
.social-link { display: block; margin-bottom: 0.5rem; }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
}

.footer-bottom p { font-size: 0.8125rem; color: var(--color-text-faint); }

/* ============ GHOST CARD WIDTHS ============ */
.kg-width-wide { max-width: 1040px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: none; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
.kg-width-full img { width: 100%; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .site-nav, .header-cta { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav { display: flex; }

    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual { order: 0; }
    .hero-mascot { max-width: 200px; }

    .about-grid { grid-template-columns: 1fr; gap: 1rem; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
