/* ==========================================================================
   Vibrace About Us Styles
   ========================================================================== */

/* Variables */
:root {
    --vb-primary: #1F3D83;
    --vb-primary-light: #2b55b5;
    --vb-accent: #00B140;
    --vb-accent-light: #00d94f;
    --vb-text: #333333;
    --vb-text-light: #666666;
    --vb-bg-light: #f8fafc;
    --vb-white: #ffffff;
    --vb-border: #e2e8f0;
    --vb-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --vb-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --vb-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --vb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset Theme Container Constraints */
body.page-template-page-about-us .page-header,
body.page-template-page-about-us .breadcrumb-wrapper,
body.page-id-42 .page-header,
body.page-id-42 .breadcrumb-wrapper {
    display: none !important;
}

body.page-template-page-about-us #content.site-content,
body.page-id-42 #content.site-content,
body.page-template-page-about-us #content .container,
body.page-id-42 #content .container,
body.page-template-page-about-us .content-grid,
body.page-id-42 .content-grid {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

/* Base Elements */
.vb-about-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--vb-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.vb-about-page img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal-anim {
    animation: fadeInUp 0.8s ease forwards;
    opacity: 0;
}

/* Buttons */
.vb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vb-accent);
    color: var(--vb-white) !important;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--vb-transition);
    border: 2px solid var(--vb-accent);
    cursor: pointer;
}
.vb-btn:hover {
    background: transparent;
    color: var(--vb-accent) !important;
}

/* Typography Overrides */
.vb-section-title {
    font-size: 2.5rem;
    color: var(--vb-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

/* 1. Hero Section */
.vb-hero {
    background: var(--vb-bg-light);
    padding: 120px 5% 0; /* No bottom padding for flush image */
    text-align: center;
    overflow: hidden;
}
.vb-hero-content {
    max-width: 800px;
    margin: 0 auto 3rem;
}
.vb-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--vb-primary);
    margin-bottom: 1.5rem;
}
.vb-hero p {
    font-size: 1.25rem;
    color: var(--vb-text-light);
    margin-bottom: 0;
}
.vb-hero-img-container {
    max-width: 1280px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}
.vb-hero-img-container img {
    width: 100%;
    transform: translateY(20px);
    transition: transform 1s cubic-bezier(0.1, 0.7, 0.1, 1);
}
.vb-hero-img-container:hover img {
    transform: translateY(0);
}

/* 2. About Vibrace */
.vb-about-section {
    padding: 100px 5%;
    background: var(--vb-white);
}
.vb-about-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}
.vb-about-img {
    border-radius: 16px;
    box-shadow: var(--vb-shadow-lg);
    position: relative;
    overflow: hidden;
}
.vb-about-img::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(31,61,131,0.2) 0%, transparent 100%);
    z-index: 1;
}
.vb-about-img img {
    width: 100%;
    transition: transform 0.6s ease;
}
.vb-about-img:hover img {
    transform: scale(1.05);
}

/* 3. What We Do (Visual Layout) */
.vb-wedo-section {
    padding: 100px 5%;
    background: var(--vb-bg-light);
}
.vb-wedo-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}
.vb-wedo-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 250px;
    gap: 20px;
}
.vb-wedo-card {
    background: var(--vb-white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--vb-shadow-sm);
    transition: var(--vb-transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.vb-wedo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--vb-shadow-lg);
}
.vb-wedo-card.featured {
    grid-column: span 2;
    background: var(--vb-primary);
    color: var(--vb-white);
}
.vb-wedo-card.img-card {
    padding: 0;
}
.vb-wedo-card.img-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vb-wedo-icon {
    font-size: 2.5rem;
    color: var(--vb-accent);
    margin-bottom: 1rem;
    transition: var(--vb-transition);
}
.vb-wedo-card:hover .vb-wedo-icon {
    color: var(--vb-primary);
}
.vb-wedo-card.featured .vb-wedo-icon {
    color: var(--vb-white);
}
.vb-wedo-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
}
.vb-wedo-card:not(.featured) h3 {
    color: var(--vb-primary);
}

/* 4. How We Work */
.vb-process-section {
    padding: 100px 5%;
    background: var(--vb-white);
    text-align: center;
}
.vb-process-container {
    max-width: 1280px;
    margin: 4rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}
.vb-process-line {
    position: absolute;
    top: 45px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--vb-border);
    z-index: 1;
}
.vb-process-step {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 0 1rem;
}
.vb-process-icon {
    width: 90px;
    height: 90px;
    background: var(--vb-white);
    border: 3px solid var(--vb-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--vb-primary);
    transition: var(--vb-transition);
}
.vb-process-step:hover .vb-process-icon {
    border-color: var(--vb-accent);
    background: var(--vb-accent);
    color: var(--vb-white);
    transform: scale(1.1);
}
.vb-process-step h4 {
    color: var(--vb-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}
.vb-process-step p {
    font-size: 0.9rem;
    color: var(--vb-text-light);
}

/* 5. Our Strengths */
.vb-strengths-section {
    padding: 100px 5%;
    background: var(--vb-primary);
    color: var(--vb-white);
}
.vb-strengths-container {
    max-width: 1280px;
    margin: 0 auto;
}
.vb-strengths-header {
    text-align: center;
    margin-bottom: 4rem;
}
.vb-strengths-header h2 {
    color: var(--vb-white);
}
.vb-strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.vb-strength-card {
    background: rgba(255,255,255,0.05);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: var(--vb-transition);
}
.vb-strength-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
}
.vb-strength-icon {
    font-size: 2.5rem;
    color: var(--vb-accent);
    margin-bottom: 1.5rem;
}
.vb-strength-card h3 {
    color: var(--vb-white);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}
.vb-strength-card p {
    color: rgba(255,255,255,0.7);
    margin: 0;
    font-size: 0.95rem;
}

/* 6. Our Values */
.vb-values-section {
    padding: 100px 5%;
    background: var(--vb-bg-light);
}
.vb-values-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.vb-value-item {
    text-align: center;
}
.vb-value-num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(31,61,131,0.1);
    line-height: 1;
    margin-bottom: -1.5rem;
    position: relative;
    z-index: 1;
}
.vb-value-content {
    background: var(--vb-white);
    padding: 3rem 2rem 2rem;
    border-radius: 16px;
    box-shadow: var(--vb-shadow-sm);
    position: relative;
    z-index: 2;
    border-top: 4px solid var(--vb-accent);
    transition: var(--vb-transition);
}
.vb-value-item:hover .vb-value-content {
    transform: translateY(-5px);
    box-shadow: var(--vb-shadow-lg);
}
.vb-value-content h3 {
    color: var(--vb-primary);
    margin-bottom: 1rem;
}
.vb-value-content p {
    color: var(--vb-text-light);
    margin: 0;
}

/* 7. Technology & Innovation */
.vb-tech-section {
    position: relative;
    padding: 120px 5%;
    background: var(--vb-primary);
    color: var(--vb-white);
    overflow: hidden;
}
.vb-tech-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1;
}
.vb-tech-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}
.vb-tech-container {
    position: relative;
    z-index: 2;
    max-width: 700px;
}
.vb-tech-section h2 {
    color: var(--vb-white);
    font-size: 3rem;
}
.vb-tech-section p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
}

/* 8. Why Vibrace */
.vb-why-section {
    padding: 100px 5%;
    background: var(--vb-white);
}
.vb-why-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}
.vb-why-points {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.vb-why-point {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}
.vb-why-icon {
    width: 60px;
    height: 60px;
    background: var(--vb-bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--vb-primary);
    flex-shrink: 0;
    transition: var(--vb-transition);
}
.vb-why-point:hover .vb-why-icon {
    background: var(--vb-accent);
    color: var(--vb-white);
}
.vb-why-text h4 {
    margin: 0 0 0.5rem 0;
    color: var(--vb-primary);
}
.vb-why-text p {
    margin: 0;
    color: var(--vb-text-light);
}

/* 9. CTA */
.vb-cta-section {
    padding: 100px 5%;
    background: var(--vb-primary);
    text-align: center;
}
.vb-cta-section h2 {
    color: var(--vb-white);
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

/* 10. FAQ */
.vb-faq-section {
    padding: 100px 5%;
    background: var(--vb-bg-light);
}
.vb-faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.vb-faq-header {
    text-align: center;
    margin-bottom: 3rem;
}
.vb-faq-item {
    background: var(--vb-white);
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: var(--vb-shadow-sm);
    overflow: hidden;
}
.vb-faq-q {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--vb-primary);
    font-size: 1.1rem;
}
.vb-faq-icon {
    color: var(--vb-accent);
    transition: transform 0.3s ease;
}
.vb-faq-item.active .vb-faq-icon {
    transform: rotate(45deg);
}
.vb-faq-a {
    display: none;
    padding: 0 2rem 1.5rem;
    color: var(--vb-text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .vb-about-container,
    .vb-why-container {
        grid-template-columns: 1fr;
    }
    
    .vb-about-img { order: -1; }
    
    .vb-wedo-grid { grid-template-columns: repeat(2, 1fr); }
    .vb-wedo-card.featured { grid-column: span 1; }
    
    .vb-strengths-grid,
    .vb-values-grid { grid-template-columns: repeat(2, 1fr); }
    
    .vb-process-container {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    .vb-process-line { display: none; }
    .vb-process-step { text-align: center; width: 100%; max-width: 300px; }
}

@media (max-width: 768px) {
    .vb-hero h1 { font-size: 2.5rem; }
    
    .vb-wedo-grid,
    .vb-strengths-grid,
    .vb-values-grid { grid-template-columns: 1fr; }
    
    .vb-tech-section h2 { font-size: 2.2rem; }
}


/* AUTOMATED RESPONSIVE FIXES */
@media (max-width: 1024px) {
    .vb-wedo-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .vb-strengths-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .vb-values-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    img { max-width: 100% !important; height: auto !important; object-fit: cover; }
    .vb-about-container { grid-template-columns: 1fr !important; }
    .vb-wedo-grid { grid-template-columns: 1fr !important; }
    .vb-strengths-grid { grid-template-columns: 1fr !important; }
    .vb-values-grid { grid-template-columns: 1fr !important; }
    .vb-why-container { grid-template-columns: 1fr !important; }
    .vb-wedo-card { flex-direction: column !important; }
    .vb-process-container { flex-direction: column !important; }
    .vb-process-icon { flex-direction: column !important; }
    .vb-why-points { flex-direction: column !important; }
    .vb-why-point { flex-direction: column !important; }
    .vb-why-icon { flex-direction: column !important; }
    .vb-faq-q { flex-direction: column !important; }
    .vb-hero { padding: 40px 15px !important; }
    .vb-about-section { padding: 40px 15px !important; }
    .vb-wedo-section { padding: 40px 15px !important; }
    .vb-process-section { padding: 40px 15px !important; }
    .vb-strengths-section { padding: 40px 15px !important; }
    .vb-values-section { padding: 40px 15px !important; }
    .vb-tech-section { padding: 40px 15px !important; }
    .vb-why-section { padding: 40px 15px !important; }
    .vb-cta-section { padding: 40px 15px !important; }
    .vb-faq-section { padding: 40px 15px !important; }
    .vb-value-num { font-size: 2.2rem !important; line-height: 1.3 !important; }
    body, html { overflow-x: hidden !important; }
    .container, .vb-page-container { padding-left: 15px !important; padding-right: 15px !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; }
    * { box-sizing: border-box !important; }
}


/* TIGHTEN MOBILE SCROLLING */
@media (max-width: 768px) {
    .vb-process-container, .vb-process-steps { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem !important; }
    .vb-process-icon, .vb-process-num { width: 50px !important; height: 50px !important; font-size: 1.2rem !important; margin: 0 auto 0.5rem !important; border-width: 2px !important; }
    .vb-process-step { max-width: 100% !important; padding: 0 !important; }
    .vb-strength-card, .vb-value-content, .vb-wedo-card { padding: 1.5rem 1rem !important; }
    .vb-strength-icon, .vb-wedo-icon { font-size: 1.8rem !important; margin-bottom: 0.5rem !important; }
    .vb-strengths-grid, .vb-values-grid { gap: 1rem !important; }
    h3, h4 { margin-bottom: 0.25rem !important; }
    .vb-why-section, .vb-tech-.vb-values-section, .vb-strengths-.vb-process-section, .vb-about-.vb-wedo-section { padding: 30px 15px !important; }
}


/* AGGRESSIVE MOBILE SPACE REDUCTION */
@media (max-width: 768px) {
    .vb-btn,
    .vb-hero,
    .vb-about-.vb-wedo-section,
    .vb-wedo-card,
    .vb-process-.vb-strengths-section,
    .vb-strength-card,
    .vb-values-.vb-value-content,
    .vb-tech-.vb-why-section,
    .vb-cta-.vb-faq-section,
    .vb-faq-q,
    .vb-faq-a,
    .vb-strength-card, .vb-value-content, .vb-wedo-card {
        padding: 30px 15px !important;
    }
    .vb-section-title,
    .vb-hero-content,
    .vb-wedo-header,
    .vb-process-container,
    .vb-process-icon,
    .vb-strengths-header,
    .vb-strength-icon,
    .vb-value-num,
    .vb-faq-header,
    .vb-process-icon, .vb-process-num,
    .vb-strength-icon, .vb-wedo-icon {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }
    .vb-about-container,
    .vb-strengths-grid,
    .vb-values-grid,
    .vb-why-container,
    .vb-why-points,
    .vb-why-point,
    .vb-process-container,
    .vb-process-container, .vb-process-steps {
        gap: 1rem !important;
    }
    .vb-section-header, .vb-wedo-header, .vb-strengths-header, .vb-process-header { text-align: center !important; margin-bottom: 2rem !important; }
    h1, h2 { text-align: center !important; }
    p { text-align: center !important; }
    .vb-process-step, .vb-wedo-card, .vb-strength-card, .vb-service-card { text-align: center !important; align-items: center !important; }
    .vb-process-icon, .vb-wedo-icon, .vb-strength-icon { margin: 0 auto 1rem auto !important; }
}


/* CENTER FOOTER MOBILE */
@media (max-width: 768px) {
    footer, .site-footer, .footer-widgets, .widget { text-align: center !important; }
    footer ul, .widget ul, footer li, .widget li { text-align: center !important; justify-content: center !important; align-items: center !important; }
    .widget_nav_menu li { display: block !important; }
    .widget_nav_menu a { display: inline-block !important; }
    .widget_custom_html a, .widget_text a { display: inline-block !important; margin: 0 5px !important; }
}
