/**
 * GoHighLevel Features Page Styles
 * IM Web Pros - All-in-One Marketing Platform
 */

/* Hero Section */
.ghl-hero {
    padding: 10rem 1.5rem 4rem;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a0f20 40%, #0f1a25 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ghl-hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(207, 91, 46, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

html[data-theme="light"] .ghl-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #fff5f0 40%, #f0f9ff 100%);
}

.ghl-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ghl-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(207, 91, 46, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(207, 91, 46, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin-bottom: 1.5rem;
}

.ghl-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
    line-height: 1.1;
}

.ghl-hero h1 span {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ghl-hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.ghl-hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* "Replaces" Tools Section */
.ghl-tools-replaced {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    max-width: 700px;
    margin: 0 auto;
}

html[data-theme="light"] .ghl-tools-replaced {
    background: rgba(0, 0, 0, 0.05);
}

.ghl-tools-replaced>span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.ghl-tool-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.ghl-tool-badges span {
    padding: 0.25rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
}

.ghl-tool-badges span:not(:last-child)::after {
    content: '•';
    margin-left: 0.4rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* ============================================
   STICKY CATEGORY NAVIGATION
   ============================================ */
.ghl-category-nav {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

html[data-theme="light"] .ghl-category-nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ghl-category-nav.visible {
    transform: translateY(0);
    opacity: 1;
}

.ghl-category-nav-inner {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.75rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 1200px;
    margin: 0 auto;
    scroll-behavior: smooth;
}

.ghl-category-nav-inner::-webkit-scrollbar {
    display: none;
}

/* Category Links */
.ghl-cat-link {
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

html[data-theme="light"] .ghl-cat-link {
    border-color: rgba(0, 0, 0, 0.1);
}

.ghl-cat-link:hover {
    color: var(--text-primary);
    border-color: var(--brand-primary);
}

.ghl-cat-link.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border-color: transparent;
    color: white;
}

/* ============================================
   FEATURES WRAPPER
   ============================================ */
.ghl-features-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.ghl-features-content {
    width: 100%;
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.ghl-feature-section {
    margin-bottom: 6rem;
    scroll-margin-top: 150px;
}

.ghl-section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.ghl-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    font-size: 2rem;
    background: linear-gradient(135deg, rgba(207, 91, 46, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(207, 91, 46, 0.2);
    border-radius: 20px;
    margin-bottom: 1.25rem;
}

.ghl-section-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.ghl-section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   SECTION CONTENT - Simple Stacked Layout
   ============================================ */
.ghl-section-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Section Image */
.ghl-section-image {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(207, 91, 46, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(207, 91, 46, 0.15);
    padding: 1rem;
}

.ghl-section-image::before {
    content: '';
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-secondary));
    margin: -1rem -1rem 1rem -1rem;
}

.ghl-section-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* ============================================
   FEATURE CARDS GRID - Always 3 columns on desktop
   ============================================ */
.ghl-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.ghl-feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.ghl-feature-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(207, 91, 46, 0.15);
}

.ghl-feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem;
}

.ghl-feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* AI Cards Highlight */
.ghl-card-highlight {
    background: linear-gradient(135deg, rgba(207, 91, 46, 0.08), rgba(168, 85, 247, 0.08));
    border-color: rgba(207, 91, 46, 0.2);
}

/* ============================================
   HIPAA COMPLIANCE SECTION
   ============================================ */
.ghl-hipaa-section {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, #0a1628 0%, #0f1a25 50%, #1a0f20 100%);
    border-top: 1px solid rgba(207, 91, 46, 0.2);
    border-bottom: 1px solid rgba(207, 91, 46, 0.2);
}

html[data-theme="light"] .ghl-hipaa-section {
    background: linear-gradient(135deg, #f0f9ff 0%, #f8fafc 50%, #fff5f0 100%);
}

.ghl-hipaa-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ghl-hipaa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.2));
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    margin-bottom: 1.5rem;
}

.ghl-hipaa-icon {
    font-size: 1.25rem;
}

.ghl-hipaa-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.ghl-hipaa-content>p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 auto 2.5rem;
    max-width: 800px;
    line-height: 1.6;
}

.ghl-hipaa-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

@media (min-width: 1000px) {
    .ghl-hipaa-features {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 600px) {
    .ghl-hipaa-features {
        grid-template-columns: 1fr;
    }
}

.ghl-hipaa-feature {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: left;
}

.ghl-hipaa-feature-icon {
    display: inline-block;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.ghl-hipaa-feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.ghl-hipaa-feature p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ghl-hipaa-note {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.ghl-faq-section {
    padding: 5rem 1.5rem;
    background: var(--bg-primary);
}

.ghl-faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.ghl-faq-content .ghl-section-header {
    margin-bottom: 2rem;
}

.ghl-faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ghl-faq-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.ghl-faq-item[open] {
    border-color: var(--brand-primary);
}

.ghl-faq-item summary {
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: block;
    position: relative;
    padding-right: 3rem;
}

.ghl-faq-item summary::-webkit-details-marker {
    display: none;
}

.ghl-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--brand-primary);
}

.ghl-faq-item[open] summary::after {
    content: '−';
}

.ghl-faq-answer {
    padding: 0 1.5rem 1.5rem;
}

.ghl-faq-answer p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.7;
}

/* ============================================
   CTA SECTION
   ============================================ */
.ghl-cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, rgba(207, 91, 46, 0.1), rgba(168, 85, 247, 0.1));
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.ghl-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.ghl-cta h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.ghl-cta p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.ghl-cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   RESPONSIVE - Desktop layout optimization
   ============================================ */
@media (min-width: 1024px) {
    .ghl-section-content {
        display: grid;
        grid-template-columns: minmax(300px, 400px) 1fr;
        gap: 2.5rem;
        align-items: start;
    }

    .ghl-section-image {
        max-width: 100%;
    }

    .ghl-section-image img {
        max-height: 350px;
        object-fit: contain;
    }

    .ghl-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ghl-feature-card {
        padding: 1.25rem;
    }

    .ghl-feature-card h3 {
        font-size: 1rem;
    }

    .ghl-feature-card p {
        font-size: 0.9rem;
    }

    /* Alternate layouts - image on right */
    .layout-right .ghl-section-content {
        grid-template-columns: 1fr minmax(300px, 400px);
    }

    .layout-right .ghl-section-image {
        order: 2;
    }

    .layout-right .ghl-features-grid {
        order: 1;
    }

    .ghl-category-nav-inner {
        justify-content: center;
    }
}

/* Extra large screens - 3 column cards */
@media (min-width: 1400px) {
    .ghl-section-content {
        grid-template-columns: minmax(350px, 450px) 1fr;
        gap: 3rem;
    }

    .ghl-features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .layout-right .ghl-section-content {
        grid-template-columns: 1fr minmax(350px, 450px);
    }
}

/* Mobile adjustments */
@media (max-width: 1023px) {
    .ghl-section-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .ghl-section-image {
        max-width: 500px;
        margin-bottom: 2rem;
    }

    .ghl-features-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .ghl-feature-section {
        margin-bottom: 4rem;
    }
}

@media (max-width: 700px) {
    .ghl-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .ghl-category-nav-inner {
        padding: 0.5rem 1rem;
        gap: 0.375rem;
    }

    .ghl-cat-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .ghl-features-wrapper {
        padding: 2.5rem 1rem;
    }

    .ghl-feature-card {
        padding: 1.25rem;
    }
}