/* Agency Hub Page Specific Stylesheet - Unique Command Center Theme */

@import url("./common-style.css");

/* --- Hero Section with Dotted Grid Pattern --- */
.ag-hero {
    padding-top: 180px;
    padding-bottom: 90px;
    position: relative;
    background-color: #ffffff;
    background-image: radial-gradient(rgba(255, 85, 0, 0.07) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    overflow: hidden;
}

.ag-hero::before {
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.9) 70%, #ffffff 100%);
    pointer-events: none;
    z-index: 1;
}

.ag-hero .container {
    position: relative;
    z-index: 2;
}

.ag-hero-kicker {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(255, 85, 0, 0.08);
    border-radius: 30px;
    border: 1px solid rgba(255, 85, 0, 0.15);
}

.ag-hero h1 {
    font-size: clamp(2.5rem, 4vw, 4.25rem);
    line-height: 1.08;
    color: var(--secondary-color);
    letter-spacing: -0.02em;
}

.ag-hero .lead-p {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--text-grey);
    max-width: 780px;
    margin-inline: auto;
    line-height: 1.6;
}

.ag-hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.ag-hero-image-wrap {
    margin-top: 56px;
    position: relative;
    border-radius: 24px;
    box-shadow: 0 32px 80px rgba(17, 20, 81, 0.12);
    border: 1px solid rgba(17, 20, 81, 0.08);
    background: #ffffff;
    padding: 10px;
    overflow: hidden;
}

.ag-hero-image-wrap img {
    border-radius: 16px;
    display: block;
    width: 100%;
}

/* --- Section Titles & Labels --- */
.ag-section-label {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ag-section-title {
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.ag-section-subtitle {
    color: var(--text-grey);
    font-size: 1.08rem;
    line-height: 1.65;
}

/* --- Overview Section --- */
.ag-overview-section {
    background: #ffffff;
}

.ag-graphic-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(17, 20, 81, 0.08);
    box-shadow: 0 20px 45px rgba(17, 20, 81, 0.05);
    padding: 12px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ag-graphic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 55px rgba(255, 85, 0, 0.08);
}

.ag-graphic-card img {
    border-radius: 14px;
    width: 100%;
}

/* --- Checklist with custom icons --- */
.ag-checklist-arrow {
    list-style: none;
    padding: 0;
    margin: 24px 0;
}

.ag-checklist-arrow li {
    position: relative;
    padding-left: 36px;
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--secondary-color);
    transition: transform 0.2s ease;
}

.ag-checklist-arrow li:hover {
    transform: translateX(4px);
}

.ag-checklist-arrow li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 85, 0, 0.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF5500' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") center / 10px no-repeat;
}

/* --- Features Section --- */
.ag-features-section {
    background: var(--page-fade);
}

.ag-feature-card {
    background: #ffffff;
    border: 1px solid rgba(17, 20, 81, 0.06);
    border-radius: 20px;
    padding: 32px;
    height: 100%;
    box-shadow: 0 10px 30px rgba(17, 20, 81, 0.02);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.ag-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
    border-radius: 4px 0 0 4px;
}

.ag-feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(17, 20, 81, 0.08);
    border-color: rgba(255, 85, 0, 0.15);
}

.ag-feature-card:hover::before {
    transform: scaleY(1);
}

.ag-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 85, 0, 0.08);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.ag-feature-card:hover .ag-feature-icon {
    transform: rotate(360deg);
    background: var(--primary-color);
    color: #ffffff;
}

.ag-feature-icon svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

.ag-feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 12px;
}

.ag-feature-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* --- Badge Pills --- */
.ag-usecases-section {
    background: #ffffff;
}

.ag-usecase-badge-pill {
    background: #f8f9fa;
    border: 1px solid rgba(17, 20, 81, 0.08);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.ag-usecase-badge-pill svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.ag-usecase-badge-pill:hover {
    background: rgba(255, 85, 0, 0.08);
    border-color: rgba(255, 85, 0, 0.3);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 15px rgba(255, 85, 0, 0.08);
}

/* --- Team Collaboration --- */
.ag-collab-section {
    background: var(--page-fade);
}

.ag-collab-graphic {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(17, 20, 81, 0.08);
}

.ag-collab-graphic img {
    width: 100%;
    display: block;
}

.ag-collab-bullet {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.ag-collab-bullet-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(17, 20, 81, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
}

.ag-collab-bullet h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.ag-collab-bullet p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* --- AI Section (Dark command module theme) --- */
.ag-ai-section {
    background: #080711;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.ag-ai-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 85, 0, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ag-ai-section .ag-section-title {
    color: #ffffff;
}

.ag-ai-section .ag-section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.ag-ai-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
}

.ag-ai-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 85, 0, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 85, 0, 0.15);
}

.ag-ai-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255, 85, 0, 0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.ag-ai-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
}

.ag-ai-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0;
}

/* --- Core Benefits Rows --- */
.ag-benefits-section {
    background: #ffffff;
}

.ag-benefit-row {
    border-bottom: 1px solid rgba(17, 20, 81, 0.08);
    padding-block: 28px;
    transition: all 0.3s ease;
}

.ag-benefit-row:first-of-type {
    border-top: 1px solid rgba(17, 20, 81, 0.08);
}

.ag-benefit-row:hover {
    background: var(--page-fade);
    padding-inline: 16px;
    border-radius: 12px;
    border-bottom-color: transparent;
}

.ag-benefit-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
}

.ag-benefit-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.ag-benefit-desc {
    color: var(--text-grey);
    font-size: 1rem;
    line-height: 1.5;
}

/* --- FAQ Section --- */
.ag-faq-section {
    background: #ffffff;
}

.ag-faq-accordion {
    max-width: 860px;
    margin-inline: auto;
}

.ag-faq-item {
    border: 1px solid rgba(17, 20, 81, 0.08);
    border-radius: 16px;
    margin-bottom: 16px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ag-faq-item.is-open {
    border-color: rgba(255, 85, 0, 0.25);
    box-shadow: 0 10px 30px rgba(255, 85, 0, 0.06);
}

.ag-faq-header {
    width: 100%;
    padding: 22px 28px;
    background: transparent;
    border: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 16px;
    cursor: pointer;
}

.ag-faq-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
    transition: color 0.3s ease;
}

.ag-faq-item.is-open .ag-faq-header h3 {
    color: var(--primary-color);
}

.ag-faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--secondary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.ag-faq-item.is-open .ag-faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.ag-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.ag-faq-content {
    padding: 0 28px 24px;
    color: var(--text-grey);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* --- Final CTA Section --- */
.ag-cta-section {
    background: #ffffff;
}

.ag-cta-panel {
    background: radial-gradient(circle at 10% 20%, rgba(255, 85, 0, 0.15) 0%, rgba(17, 20, 81, 0.03) 90%), #080711;
    border-radius: 28px;
    padding: 60px 48px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ag-cta-panel h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: 18px;
}

.ag-cta-panel p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 1.25vw, 1.18rem);
    max-width: 680px;
    margin-inline: auto;
    margin-bottom: 32px;
}

.ag-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.ag-cta-buttons .button-outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
}

.ag-cta-buttons .button-outline:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- Switcher Interactive Section --- */
.ag-custom-section {
    background: var(--page-fade);
}

.ag-switcher-panel {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid rgba(17, 20, 81, 0.08);
    box-shadow: 0 20px 45px rgba(17, 20, 81, 0.05);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.ag-switcher-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.ag-tab-btn {
    padding: 10px 24px;
    border-radius: 30px;
    border: 1px solid rgba(17, 20, 81, 0.08);
    background: #ffffff;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ag-tab-btn:hover {
    background: #f8f9fa;
    border-color: rgba(17, 20, 81, 0.15);
}

.ag-tab-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(255, 85, 0, 0.25);
}

.ag-tab-btn svg {
    width: 16px;
    height: 16px;
}

.ag-switcher-dashboard {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    text-align: left;
}

.ag-dash-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ag-dash-card {
    background: #f8f9fa;
    border-radius: 16px;
    border: 1px solid rgba(17, 20, 81, 0.04);
    padding: 24px;
}

.ag-dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(17, 20, 81, 0.08);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.ag-dash-card-header h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ag-dash-card-header h4 svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.ag-dash-badge {
    background: #ffffff;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 30px;
    padding: 3px 12px;
    border: 1px solid rgba(17, 20, 81, 0.08);
}

/* Client Workspace Directory Items */
.ag-clients-dir {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ag-client-item {
    background: #ffffff;
    border: 1.5px solid rgba(17, 20, 81, 0.06);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(17, 20, 81, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.ag-client-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 8px 20px rgba(17, 20, 81, 0.05);
    border-color: rgba(255, 85, 0, 0.2);
}

.ag-client-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ag-client-info h5 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0;
}

.ag-client-info p {
    font-size: 0.8rem;
    color: var(--text-grey);
    margin: 0;
}

.ag-client-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ag-status-indicator {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ag-status-indicator.active {
    background: rgba(0, 168, 204, 0.08);
    color: #00a8cc;
}

.ag-status-indicator.pending {
    background: rgba(255, 85, 0, 0.08);
    color: var(--primary-color);
}

.ag-client-budget {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--secondary-color);
}

/* Team and Capacity Metrics */
.ag-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ag-capacity-bar-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ag-capacity-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.ag-capacity-bar {
    height: 8px;
    background: #ffffff;
    border: 1px solid rgba(17, 20, 81, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.ag-capacity-progress {
    height: 100%;
    background: var(--primary-color);
    border-radius: 10px;
    width: 0;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ag-capacity-progress.high {
    background: #00a8cc;
}

/* Logs and Counters */
.ag-stats-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ag-stat-box {
    background: #ffffff;
    border: 1px solid rgba(17, 20, 81, 0.06);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(17, 20, 81, 0.01);
}

.ag-stat-box span {
    font-size: 0.8rem;
    color: var(--text-grey);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.ag-stat-box strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--secondary-color);
    margin-top: 4px;
}

.ag-log-console {
    background: #080711;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 20px 24px;
    text-align: left;
    max-height: 130px;
    overflow-y: auto;
    width: 100%;
    grid-column: span 2;
}

.ag-log-console h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.ag-log-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ag-log-line {
    font-family: monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
}

.ag-log-line span {
    color: var(--primary-color);
}

/* Animations for Workspace Items */
.ag-client-item.just-loaded {
    animation: agPopIn 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}

@keyframes agPopIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Responsive Adaptations --- */
@media (max-width: 991.98px) {
    .ag-hero {
        padding-top: 140px;
        padding-bottom: 64px;
    }

    .ag-cta-panel {
        padding: 48px 24px;
    }

    .ag-switcher-panel {
        padding: 32px;
    }

    .ag-switcher-dashboard {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 767.98px) {
    .ag-hero-buttons,
    .ag-cta-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 320px;
        margin-inline: auto;
    }

    .ag-hero-buttons .button,
    .ag-cta-buttons .button {
        width: 100%;
    }

    .ag-faq-header {
        padding: 18px 20px;
    }

    .ag-faq-content {
        padding: 0 20px 18px;
    }
}
