/* ============================================
   AESTHETIC FIXES v1.5.0
   Addresses 27 identified visual flaws
   ============================================ */

/* ===========================================
   CRITICAL FIX #2: reCAPTCHA Badge
   Already handled in footer.css - reinforcing
   =========================================== */
.grecaptcha-badge {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: fixed !important;
    bottom: -100px !important;
}

/* ===========================================
   CRITICAL FIX #3: Problem Cards Border
   Increase border opacity from 0.2 to 0.4
   =========================================== */
#problem .fp-grid-3 > div {
    border-color: rgba(239, 68, 68, 0.4) !important;
    background: rgba(18, 20, 28, 0.6) !important;
}

#problem .fp-grid-3 > div:hover {
    border-color: rgba(239, 68, 68, 0.6) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* ===========================================
   CRITICAL FIX #4: Dark Void Gaps
   Reduce excessive section padding
   =========================================== */
.section,
section.section {
    padding: 80px 0 !important;
}

.hero,
section.hero {
    padding-top: 120px !important;
    padding-bottom: 60px !important;
    min-height: auto !important;
}

/* ===========================================
   MODERATE FIX #5: Nav Dot Separators
   WP nav menu list items use dots - remove
   =========================================== */
.main-nav li {
    list-style: none !important;
}

.main-nav > li + li::before,
.main-nav .menu-item + .menu-item::before {
    display: none !important;
    content: none !important;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ===========================================
   MODERATE FIX #6: Header CTA Button Clipping
   Ensure button doesn't clip
   =========================================== */
.header-cta .btn {
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    flex-shrink: 0;
}

.header-cta {
    flex-shrink: 0;
}

/* ===========================================
   MODERATE FIX #7: Comparison Cards Borders
   Add visible borders and equalize heights
   =========================================== */
#solution .fp-grid-3 > div {
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    display: flex;
    flex-direction: column;
}

#solution .fp-grid-3 > div:first-child {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

#solution .fp-grid-3 > div:nth-child(2) {
    border-color: rgba(245, 158, 11, 0.3) !important;
}

#solution .fp-grid-3 > div:last-child {
    border-color: rgba(99, 102, 241, 0.4) !important;
}

/* ===========================================
   MODERATE FIX #8: RECOMMENDED Badge
   Proper positioning without hacks
   =========================================== */
#solution .fp-grid-3 > div:last-child {
    position: relative;
    margin-top: 12px;
}

/* ===========================================
   MODERATE FIX #9: FAQ Accordion
   Styles for interactive accordion
   =========================================== */
.faq-item {
    background: var(--color-bg-primary, #0a0b0f);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.5;
    gap: 16px;
}

.faq-question:hover {
    color: #a5b4fc;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    color: #6366f1;
}

.faq-item.active .faq-question .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 24px 24px;
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
}

/* Services page FAQ - darker bg */
.services-page .faq-item {
    background: #12141c;
}

/* ===========================================
   MODERATE FIX #10: "See How It Works" Chevron
   Make it functional (smooth scroll)
   =========================================== */
.btn-secondary[href="#how-it-works"] {
    cursor: pointer;
}

/* ===========================================
   MODERATE FIX #13: H2 to H3 Size Hierarchy
   Improve heading scale from 3:1 to 2:1
   =========================================== */
section h3,
.section h3 {
    font-size: 1.25rem;
}

/* Specific overrides for card titles that use h3 */
#how-it-works h2[style*="1.5rem"] {
    font-size: 1.5rem !important;
}

/* ===========================================
   MODERATE FIX #14: "It's HOW MANY" Tagline
   Reduce whitespace around it
   =========================================== */
#problem .fp-stats-grid-premium + p {
    margin-top: 24px !important;
    margin-bottom: 0 !important;
}

/* ===========================================
   MODERATE FIX #15: Stats Cards Boundaries
   Add subtle borders
   =========================================== */
.fp-stats-grid-premium > div {
    border: 1px solid rgba(148, 163, 184, 0.08) !important;
}

.fp-stats-grid-premium > div:hover {
    border-color: rgba(34, 197, 94, 0.2) !important;
    background: rgba(34, 197, 94, 0.03) !important;
}

.fp-stats-grid-premium {
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

/* ===========================================
   MODERATE FIX #16: Language Switcher
   Hide when non-functional
   =========================================== */
.lang-dropdown {
    display: none !important;
}

/* ===========================================
   MODERATE FIX #17: Scroll-to-Top Button
   =========================================== */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    background: rgba(99, 102, 241, 0.9);
    border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 900;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: rgba(99, 102, 241, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.4);
}

/* ===========================================
   MODERATE FIX #18: Guarantee Icons Visibility
   Increase icon visibility
   =========================================== */
.fp-guarantee-grid-premium > div {
    background: rgba(18, 20, 28, 0.5) !important;
    border: 1px solid rgba(34, 197, 94, 0.15) !important;
}

.fp-guarantee-grid-premium > div:hover {
    border-color: rgba(34, 197, 94, 0.35) !important;
    background: rgba(34, 197, 94, 0.05) !important;
}

.fp-guarantee-grid-premium > div > div:first-child {
    background: rgba(34, 197, 94, 0.2) !important;
}

.fp-guarantee-grid-premium > div > div:first-child svg {
    color: #22c55e !important;
    opacity: 1 !important;
}

.fp-guarantee-grid-premium > div span {
    color: #cbd5e1 !important;
}

/* ===========================================
   SERVICES FIX #19: Services Page Hero
   Already has a hero - just improve spacing
   =========================================== */
.page-hero {
    padding-top: 120px !important;
}

/* ===========================================
   SERVICES FIX #20: Dark Gap Between Sections
   Reduce gap between overview and detail
   =========================================== */
.service-detail-section {
    padding: 64px 0 !important;
}

.service-detail-section + .service-detail-section {
    padding-top: 48px !important;
}

/* ===========================================
   SERVICES FIX #21: Floating "Book a Call" Button
   Anchor it properly within section headers
   =========================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.book-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
}

.book-call-btn:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(34, 197, 94, 0.4);
}

/* ===========================================
   SERVICES FIX #22: Before/After Placeholders
   Better placeholder styling for images
   =========================================== */
.case-study-image {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 140px;
    background: rgba(18, 20, 28, 0.8);
    border: 2px dashed rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: #64748b;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
}

.case-study-image:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(99, 102, 241, 0.05);
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* ===========================================
   SERVICES FIX #23: "What Can You Build?" Cards
   Increase card size
   =========================================== */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.use-case {
    background: rgba(18, 20, 28, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.use-case:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-3px);
}

.use-case-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.use-case-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 8px;
}

.use-case-desc {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

/* ===========================================
   MINOR FIX #25: Section Tag Colors
   Vary section tag/badge colors
   =========================================== */
#problem [style*="text-transform:uppercase"][style*="color:#ef4444"] {
    color: #ef4444 !important;
}

#solution [style*="text-transform:uppercase"][style*="color:#6366f1"] {
    color: #818cf8 !important;
}

#how-it-works [style*="text-transform:uppercase"][style*="color:#6366f1"] {
    color: #a78bfa !important;
}

#voice-agent [style*="text-transform:uppercase"][style*="color:#22c55e"] {
    color: #34d399 !important;
}

#hitl [style*="text-transform:uppercase"][style*="color:#fbbf24"] {
    color: #fbbf24 !important;
}

#results [style*="text-transform:uppercase"][style*="color:#6366f1"] {
    color: #06b6d4 !important;
}

/* ===========================================
   MINOR FIX #26: HITL Card Headers
   Simplify layout
   =========================================== */
.hitl-header {
    flex-wrap: nowrap !important;
    gap: 8px !important;
}

.hitl-header > div[style*="font-size:0.6875rem"] {
    font-size: 0.625rem !important;
    padding: 2px 6px !important;
}

/* ===========================================
   MINOR FIX #27: Footer Brand Personality
   Add subtle brand touches
   =========================================== */
.footer-brand .site-logo {
    color: #f8fafc;
}

.footer-brand .site-logo svg {
    color: #6366f1;
}

.site-footer {
    background: linear-gradient(180deg, var(--color-bg-secondary) 0%, rgba(10, 11, 15, 1) 100%) !important;
}

.footer-nav h4 {
    color: #e2e8f0 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===========================================
   MINOR FIX #28: Body Text Contrast
   Increase text readability
   =========================================== */
body {
    color: #b0bec5;
}

/* Override specific washed-out text */
[style*="color:#94a3b8"] {
    color: #a8b8c8 !important;
}

[style*="color:#64748b"] {
    color: #7a8a9a !important;
}

/* Case study metrics */
.fp-case-metrics > div {
    border: 1px solid rgba(148, 163, 184, 0.1) !important;
    transition: all 0.3s ease;
}

.fp-case-metrics > div:hover {
    border-color: rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-2px);
}

/* ===========================================
   RESPONSIVE OVERRIDES
   =========================================== */
@media (max-width: 1024px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .fp-guarantee-grid-premium {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .faq-question {
        padding: 20px;
        font-size: 0.9375rem;
    }

    .faq-answer-inner {
        padding: 0 20px 20px;
    }
}

@media (max-width: 480px) {
    .fp-guarantee-grid-premium {
        grid-template-columns: 1fr !important;
    }
}
