/*
Theme Name: Twenty Twenty-Five AIDC
Theme URI: https://aidigitalconsulting.com
Description: Custom child theme for AI Digital Consulting based on Twenty Twenty-Five
Author: Steven Pike
Author URI: https://aidigitalconsulting.com
Template: twentytwentyfive
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-aidc
*/

/* ==========================================================================
   CUSTOM STYLES FOR AIDC HOMEPAGE
   ========================================================================== */

:root {
    --color-primary: #0A2540;
    --color-secondary: #FF6B35;
    --color-accent: #4A90E2;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-light: #F5F5F5;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    line-height: 1.6;
}

/* Container */
.aidc-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.aidc-hero {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0A2540 0%, #1a3a5a 100%);
}

.aidc-hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.aidc-hero-headline {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
}

.aidc-hero-headline .highlight {
    color: var(--color-secondary);
}

.aidc-hero-subheadline {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}

.aidc-hero-ctas {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.aidc-btn {
    display: inline-block;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.aidc-btn-primary {
    background: var(--color-secondary);
    color: white;
    border: 2px solid var(--color-secondary);
}

.aidc-btn-primary:hover {
    background: #ff5520;
    border-color: #ff5520;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.3);
}

.aidc-btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.aidc-btn-secondary:hover {
    background: white;
    color: var(--color-primary);
}

/* Client Logos */
.aidc-client-logos {
    margin-top: 60px;
}

.aidc-client-logos-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.aidc-logos-grid {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.aidc-client-logo-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESULTS TICKER
   ========================================================================== */

.aidc-results-ticker {
    background: var(--color-secondary);
    color: white;
    padding: 20px 0;
    overflow: hidden;
}

.aidc-ticker-wrapper {
    display: flex;
    animation: scroll-ticker 30s linear infinite;
}

.aidc-ticker-item {
    white-space: nowrap;
    padding: 0 80px;
    font-size: 1.125rem;
    font-weight: 600;
}

@keyframes scroll-ticker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */

.aidc-services {
    padding: 100px 0;
    background: var(--color-bg);
}

.aidc-section-headline {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.aidc-section-subheadline {
    font-size: 1.25rem;
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 60px;
}

.aidc-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.aidc-service-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.aidc-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.aidc-service-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.aidc-service-problem {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-bottom: 24px;
}

.aidc-service-process h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.aidc-service-process ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.aidc-service-process li {
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
    color: var(--color-text);
}

.aidc-service-process li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: 700;
}

.aidc-service-result {
    background: var(--color-bg-light);
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--color-text);
}

.aidc-btn-service {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aidc-btn-service:hover {
    background: var(--color-secondary);
    transform: translateX(4px);
}

/* ==========================================================================
   CASE STUDIES SECTION
   ========================================================================== */

.aidc-case-studies {
    padding: 100px 0;
    background: linear-gradient(135deg, #0A2540 0%, #1a3a5a 100%);
    color: white;
}

.aidc-case-study-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.aidc-case-study-card {
    padding: 60px;
    display: none;
}

.aidc-case-study-card.active {
    display: block;
}

.aidc-case-study-tag {
    background: var(--color-secondary);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 20px;
}

.aidc-case-study-card h3 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    color: white;
}

.aidc-case-study-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

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

.aidc-stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin-bottom: 8px;
}

.aidc-stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.aidc-case-study-description {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

/* Carousel Controls */
.aidc-carousel-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.aidc-carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.aidc-carousel-btn:hover {
    background: #ff5520;
    transform: scale(1.1);
}

/* ==========================================================================
   FINAL CTA SECTION
   ========================================================================== */

.aidc-final-cta {
    padding: 100px 0;
    background: var(--color-bg-light);
    text-align: center;
}

.aidc-final-cta h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.aidc-final-cta p {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 40px;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

@media (max-width: 768px) {
    .aidc-hero-headline {
        font-size: 2rem;
    }

    .aidc-hero-subheadline {
        font-size: 1rem;
    }

    .aidc-hero-ctas {
        flex-direction: column;
    }

    .aidc-section-headline {
        font-size: 1.75rem;
    }

    .aidc-services-grid {
        grid-template-columns: 1fr;
    }

    .aidc-case-study-card {
        padding: 30px 20px;
    }

    .aidc-case-study-card h3 {
        font-size: 1.5rem;
    }

    .aidc-stat-number {
        font-size: 2rem;
    }

    .aidc-case-study-stats {
        gap: 20px;
    }
}

/* ==========================================================================
   ARTICLE PAGE STYLES - Remove gaps
   ========================================================================== */

/* Remove gap between header and hero */
.page-template-page-article main.wp-block-group {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.page-template-page-article .wp-block-post-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.page-template-page-article .wp-block-post-content > .wp-block-group {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.page-template-page-article article.wp-block-group {
    margin: 0 !important;
}

/* Remove gap between CTA and footer */
.article-cta {
    margin-bottom: 0 !important;
}

.page-template-page-article .wp-block-template-part:last-child {
    margin-top: 0 !important;
}

/* More aggressive gap removal for article pages */
main.wp-block-group.alignfull {
    margin: 0 !important;
    padding: 0 !important;
}

.wp-block-post-content.alignfull {
    margin: 0 !important;
    padding: 0 !important;
}

/* Target the article wrapper directly */
article.wp-block-group.alignfull {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any default WP block spacing */
.wp-block-group.alignfull + .wp-block-template-part {
    margin-top: 0 !important;
}

/* Ensure CTA touches footer */
.article-cta + * {
    margin-top: 0 !important;
}

/* Direct article hero gap fix */
.article-hero {
    margin-top: 0 !important;
}

/* Target header bottom */
.wp-block-template-part[data-type="core/template-part"] + main,
header + main,
.wp-block-group.has-primary-background-color + main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* WordPress block theme default spacing override */
body .is-layout-flow > * + * {
    margin-block-start: 0;
}

body .wp-site-blocks > * + * {
    margin-block-start: 0;
}

/* Target wp-site-blocks directly */
.wp-site-blocks > main {
    margin-top: 0 !important;
}

.wp-site-blocks > .wp-block-template-part + .wp-block-group {
    margin-top: 0 !important;
}
