/* 
   Vibrant Theme Overhaul - Emergency Repair
   Restoring Sticky Cards, Fixed Bento, & Balanced Hero
*/

/* --- 1. Global & Mesh --- */

.mesh-gradient-bg {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: 200% 200%;
    animation: vibrant-mesh 15s ease infinite alternate;
    position: relative;
}

@keyframes vibrant-mesh {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* --- TRUST BAR (Looping Marquee) --- */
.trust-bar {
    background: #121212;
    /* charcoal */
    padding: 30px 0;
    border-top: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 100px;
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-around;
    min-width: 100%;
    gap: 100px;
    animation: scroll-marquee 40s linear infinite;
}

.marquee-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.5;
    letter-spacing: 4px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    padding: 0 20px;
}

.marquee-item:hover {
    opacity: 1;
    color: var(--accent-color);
}

@keyframes scroll-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

/* --- BENTO SOLUTIONS (Service Grid Refactor) --- */
.solutions-section {
    background: #fff;
    padding: var(--spacing-xl) 0;
}

.solutions-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    gap: 40px;
}

.solutions-title-wrap {
    max-width: 600px;
}

.solutions-title-wrap h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.solutions-title-wrap p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}

.solutions-nav {
    display: flex;
    gap: 15px;
    padding-bottom: 10px;
}

.sol-nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

.sol-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.sol-nav-btn.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* --- Golden Header Divider --- */
.header-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-color), transparent);
    margin-bottom: 25px;
    /* Aligns with bottom of title */
    margin-left: 60px;
    opacity: 0.5;
}

.solutions-header.flipped {
    flex-direction: row-reverse;
}

.solutions-header.flipped .header-divider {
    margin-left: 0;
    margin-right: 60px;
    background: linear-gradient(to left, var(--accent-color), transparent);
}

.solutions-header.flipped .solutions-title-wrap {
    text-align: right;
}

.solutions-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    /* Tight bento look */
    border-radius: 40px;
    overflow: hidden;
    border: 1px solid #eee;
}

.sol-card {
    background: #fff;
    min-height: 400px;
    position: relative;
    border: 1px solid #eee;
    overflow: hidden;
}

.sol-card.media-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.sol-card.media-box:hover img {
    transform: scale(1.05);
}

.sol-card.content-box {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sol-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.sol-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sol-tag {
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #eee;
    font-family: var(--font-detail);
    font-size: 0.75rem;
    color: #777;
    background: #fdfdfd;
}

.sol-link-btn {
    width: 45px;
    height: 45px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    align-self: flex-end;
    transition: var(--transition-smooth);
}

.sol-card:hover .sol-link-btn {
    background: var(--accent-color);
    transform: rotate(-45deg);
}

/* --- TESTIMONIAL MARQUEE (Social Proof Refactor) --- */
.testimonials-section {
    background: #fdfdfd;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.testimonials-section .solutions-header h2 {
    /* Inherits from .solutions-title-wrap h2 but specific for this section */
    color: var(--primary-color);
}

.testimonial-marquee-container {
    display: flex;
    overflow: hidden;
    user-select: none;
    padding: 20px 0;
}

.testimonial-marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 40px;
    animation: testimonial-scroll 60s linear infinite;
}

.testimonial-marquee-container:hover .testimonial-marquee-content {
    animation-play-state: paused;
}

@keyframes testimonial-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.testimonial-card-premium {
    width: 450px;
    background: #fff;
    padding: 60px 50px;
    border-radius: 40px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.testimonial-card-premium:hover {
    border-color: var(--accent-color);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 30px;
    opacity: 0.3;
}

.testimonial-card-premium p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    font-style: italic;
}

.client-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.client-avatar, .client-initials {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
}

.client-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: bold;
}

/* Unique backgrounds for initials */
.bg-initials-1 { background: linear-gradient(135deg, #FF6B6B, #C0392B); }
.bg-initials-2 { background: linear-gradient(135deg, #48C6EF, #6F86D6); }
.bg-initials-3 { background: linear-gradient(135deg, #1D976C, #93F9B9); }
.bg-initials-4 { background: linear-gradient(135deg, #FDB99B, #CF8BF3, #A770EF); }
.bg-initials-5 { background: linear-gradient(135deg, #F2C94C, #F2994A); }

.testimonial-stars {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: flex;
    gap: 3px;
}

.client-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.client-info span {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- LOCATION & MAP (NAP) --- */
.location-section {
    background: var(--bg-color);
    margin-top: 150px;
    /* Big gap from Process section */
    padding-top: 100px;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.nap-info h4 {
    font-family: var(--font-detail);
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.nap-info h3 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.nap-details {
    margin-bottom: 40px;
}

.nap-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.nap-item i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-top: 5px;
}

.nap-item p {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.1rem;
}

.map-container {
    height: 450px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* --- AUTHORITY (Ms. Margaret Bio) --- */
.founder-section {
    position: relative;
    overflow: hidden;
    padding: 150px 0;
}

.founder-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 100px;
    align-items: center;
}

.founder-content h4 {
    font-family: var(--font-detail);
    color: var(--accent-color);
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.founder-content h2 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

.founder-img {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 30px 30px 0 var(--primary-color);
    margin-right: 30px;
}

.founder-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--secondary-color), transparent);
    opacity: 0.1;
}

.founder-img img {
    width: 100%;
    height: auto;
    display: block;
}

.founder-content h4 {
    font-family: var(--font-detail);
    color: var(--secondary-color);
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.founder-content h2 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 30px;
}

.founder-bio-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
}

.founder-signature {
    font-family: 'Forum';
    font-size: 2rem;
    color: var(--primary-color);
}

/* --- DYNAMIC FAQ --- */
.faq-section {
    background: #fff;
}

.faq-container {
    max-width: 900px;
    margin: 60px auto 0;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 30px 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--secondary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0, 1, 0, 1);
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding-top: 20px;
    transition: all 0.5s cubic-bezier(1, 0, 1, 0);
}

.faq-icon {
    font-size: 0.8rem;
    transition: var(--transition-smooth);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* --- 2. Advanced Bento Grid (Horizontal Bias) --- */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    grid-template-areas:
        "box1 box1 box2 box2"
        "box1 box1 box3 box4"
        "box5 box5 box6 box6";
    gap: 30px;
    margin-top: 60px;
}

.box1 {
    grid-area: box1;
}

.box2 {
    grid-area: box2;
}

.box3 {
    grid-area: box3;
}

.box4 {
    grid-area: box4;
}

.box5 {
    grid-area: box5;
}

.box6 {
    grid-area: box6;
}

.bento-box {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: var(--bg-color);
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.bento-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 17, 40, 0.9), transparent);
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
}

.bento-text .bento-inner {
    padding: 60px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --- 3. Restoring Sticky Stacking Cards (FAVORITE FEATURE) --- */

/* --- OUR PROCESS (Sticky Stacking Cards Refactor) --- */
.process-section {
    background: linear-gradient(165deg, #121212 0%, #0a1128 100%);
    /* charcoal to deep teal */
    padding: var(--spacing-xl) 0;
    position: relative;
    /* overflow: hidden; REMOVED to allow sticky positioning */
}

.process-section .solutions-header h2 {
    color: #fff;
    letter-spacing: -3px;
}

.process-section .solutions-header p {
    color: rgba(255, 255, 255, 0.6);
}

.process-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 200px;
    /* Space for stacking cards to rest */
}

.process-card {
    position: sticky;
    top: 15vh;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    padding: 80px;
    border-radius: 60px;
    background:
        radial-gradient(at 0% 0%, rgba(255, 191, 0, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 182, 193, 0.2) 0px, transparent 50%),
        #ffffff;
    /* White + Amber + Pink Mesh */
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.process-card:nth-child(1) {
    top: 15vh;
    z-index: 1;
}

.process-card:nth-child(2) {
    top: 18vh;
    z-index: 2;
    margin-top: 50px;
}

.process-card:nth-child(3) {
    top: 21vh;
    z-index: 3;
    margin-top: 50px;
}

.process-card:nth-child(4) {
    top: 24vh;
    z-index: 4;
    margin-top: 50px;
}

.card-num {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 1;
    color: var(--accent-color);
    /* Vibrant Gold */
    opacity: 0.8;
}

.process-info h3 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.process-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
}

.process-step-tags {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.process-step-tags span {
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-detail);
    color: var(--secondary-color);
}

/* --- 4. Final Verification of Layout & Reveal --- */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal-active {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.testimonials .testimonial-wrap {
    display: flex;
    gap: 100px;
    align-items: center;
}

.testimonial-quote p {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1.2;
}

/* ============================
   RESPONSIVE — TABLET (≤1200px)
   ============================ */
@media (max-width: 1200px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-areas:
            "box1 box1"
            "box2 box2"
            "box3 box4"
            "box5 box5"
            "box6 box6";
    }

    .solutions-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .solutions-title-wrap h2 {
        font-size: 3.5rem;
    }

    .process-card {
        grid-template-columns: 1fr;
        padding: 40px;
        gap: 30px;
    }

    .card-num {
        font-size: 4rem;
    }
}

/* ============================
   RESPONSIVE — MEDIUM (≤992px)
   ============================ */
@media (max-width: 992px) {

    /* Location grid */
    .location-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .map-container iframe {
        height: 350px;
    }

    /* Founder grid */
    .founder-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .founder-content h2 {
        font-size: 3.5rem;
    }

    .founder-content {
        order: 2;
    }

    .founder-img {
        order: 1;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Process */
    .process-list {
        padding-bottom: 100px;
    }

    .process-card {
        border-radius: 30px;
    }

    /* Testimonials */
    .testimonial-card-premium {
        width: 380px;
        padding: 40px 35px;
    }

    /* Section padding */
    .section-padding-xl {
        padding: 80px 0;
    }

    .solutions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .header-divider {
        display: none;
    }

    /* Marquee */
    .marquee-item {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
}

/* ============================
   RESPONSIVE — MOBILE (≤768px)
   ============================ */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "box1" "box2" "box3" "box4" "box5" "box6";
    }

    .solutions-bento {
        grid-template-columns: 1fr;
    }

    .sol-card {
        min-height: 280px;
    }

    .sol-card.content-box {
        padding: 30px;
    }

    .solutions-title-wrap h2 {
        font-size: 2.5rem;
    }

    /* Process */
    .process-card {
        padding: 30px;
        border-radius: 20px;
    }

    .card-num {
        font-size: 3rem;
    }

    .process-info h3 {
        font-size: 1.2rem;
    }

    .process-info p {
        font-size: 1rem;
    }

    .process-list {
        padding-bottom: 40px;
    }

    .process-step-tags {
        flex-wrap: wrap;
    }

    /* Location */
    .location-grid {
        gap: 30px;
    }

    .nap-info h3 {
        font-size: 3rem;
    }

    .map-container iframe {
        height: 280px;
    }

    .location-section {
        margin-top: 60px;
        padding-top: 60px;
    }

    /* Founder */
    .founder-content h2 {
        font-size: 2.8rem;
    }

    .founder-quote {
        font-size: 1rem;
    }

    .founder-img {
        max-width: 300px;
        border-radius: 30px;
    }

    /* Testimonials */
    .testimonial-card-premium {
        width: 300px;
        padding: 30px 25px;
        border-radius: 20px;
    }

    .testimonial-card-premium p {
        font-size: 1rem;
    }

    .client-avatar {
        width: 40px;
        height: 40px;
    }

    /* FAQ */
    .faq-question {
        font-size: 1.1rem;
    }

    .faq-answer p {
        font-size: 0.95rem;
    }

    .faq-container {
        margin-top: 30px;
    }

    /* Marquee */
    .marquee-item {
        font-size: 1rem;
        letter-spacing: 2px;
        padding: 0 15px;
    }

    /* Massive title */
    .massive-title {
        font-size: 2.5rem !important;
    }

    /* Section utilities */
    .section-padding-xl {
        padding: 60px 0;
    }

    .mb-80 {
        margin-bottom: 40px !important;
    }

    .text-center {
        text-align: center;
    }
}

/* ============================
   RESPONSIVE — SMALL PHONES (≤480px)
   ============================ */
@media (max-width: 480px) {
    .solutions-title-wrap h2 {
        font-size: 2rem;
    }

    .sol-card {
        min-height: 220px;
    }

    .sol-card h3 {
        font-size: 1.3rem;
    }

    .nap-info h3 {
        font-size: 2.5rem;
    }

    .founder-content h2 {
        font-size: 2.2rem;
    }

    .testimonial-card-premium {
        width: 260px;
        padding: 25px 20px;
    }

    .massive-title {
        font-size: 2rem !important;
    }

    .process-card {
        padding: 25px;
    }

    .card-num {
        font-size: 2.5rem;
    }

    .faq-question {
        font-size: 1rem;
    }

    .map-container iframe {
        height: 220px;
    }
}