/* --- BRAND VARIABLES --- */
:root {
    --brand-blue: #004070;
    /* Closeloop Deep Blue */
    --brand-dark: #002a4b;
    /* Darker shade */
    --brand-yellow: #FFC107;
    /* Accent Yellow */
    --text-main: #1d1d1f;
    --text-light: #555555;
    --bg-light: #f4f7fa;
    --white: #ffffff;
    --font-stack: 'Inter', sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.12);
    --radius-md: 16px;
}

/* --- GLOBAL --- */

h1 {
    color: var(--white);
    /* line-height: 1.2; */
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

.section {
    padding: 80px 0;
}

.bg-light {
    background: var(--bg-light);
}

.bg-blue {
    background: var(--brand-blue);
    color: var(--white);
}

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

.grid {
    display: grid;
    gap: 30px;
}

.section-tag {
    display: inline-block;
    background: var(--brand-yellow);
    color: var(--brand-blue);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--brand-blue);
}

.bg-blue .section-title {
    color: var(--white);
}

.section-desc {
    max-width: 750px;
    margin: 0 auto 60px;
    font-size: 1.15rem;
    color: var(--text-light);
}

p.section-desc:last-child {
    margin: 0 auto 60px;
}

.bg-blue .section-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* --- IMAGES & DIAGRAMS --- */
.img-box {
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
}

.img-box img {
    transition: transform 0.5s ease;
    width: 100%;
    object-fit: contain;
}

.acg-img-box {
    box-shadow: none !important
}

.acg-img-box img {
    height: 400px;
}

.img-box:hover img {
    transform: scale(1.03);
}

/* --- HERO --- */
.hero {
    background: linear-gradient(135deg, rgba(0, 64, 112, 0.95), rgba(0, 42, 75, 0.9)), url('https://d1e5ggoymkuik7.cloudfront.net/case-studies/acg/new/acg_hero.jpg');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
    color: var(--white);
}

.meta-info {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-tag {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

/* --- CLIENT CARD --- */
.client-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
    padding-bottom: 60px;
}

.client-box {
    background: var(--white);
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 6px solid var(--brand-yellow);
}

.client-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- PROBLEM CARDS --- */
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.problem-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    border: 1px solid #edf2f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.problem-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 64, 112, 0.2);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--brand-blue);
    opacity: 0;
    transition: 0.3s;
}

.problem-card:hover::before {
    opacity: 1;
}

.card-num {
    font-size: 2.5rem;
    color: #e2e8f0;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0.5;
}

.card-title {
    color: var(--brand-blue);
    margin-bottom: 12px;
    font-size: 1.25rem;
    position: relative;
    z-index: 2;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* --- GOALS / OBJECTIVES --- */
.goal-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.goal-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: left;
    border: 1px solid #eee;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.3s;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.goal-icon-box {
    min-width: 50px;
    height: 50px;
    background: rgba(0, 64, 112, 0.05);
    color: var(--brand-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.goal-content h4 {
    color: var(--brand-blue);
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.goal-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* --- USER RESEARCH DESIGN --- */
.research-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.research-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    height: 100%;
}

.research-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.research-icon {
    font-size: 1.8rem;
    color: var(--brand-yellow);
}

.research-header h4 {
    margin-bottom: 0px;
}

.highlight-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.highlight-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--brand-blue);
}

/* --- APPROACH TIMELINE --- */
.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--white);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.step-num {
    width: 50px;
    height: 50px;
    background: var(--brand-blue);
    color: var(--brand-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 64, 112, 0.3);
}

.step-card h4 {
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- SOLUTION SPLIT --- */
.solution-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 60px;
}

.sol-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.sol-icon {
    min-width: 40px;
    height: 40px;
    background: rgba(255, 193, 7, 0.2);
    color: var(--brand-yellow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
}

.sol-content strong {
    display: block;
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.sol-content span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* --- PRODUCT OVERVIEW --- */
.product-overview-card {
    background: linear-gradient(135deg, #004070 0%, #002a4b 100%);
    border-radius: var(--radius-md);
    padding: 50px;
    color: var(--white);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.product-overview-card::after {
    content: '\f108';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: -20px;
    bottom: -40px;
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-15deg);
}

.product-overview-card p {
    color: var(--white);
}

.po-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.po-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--brand-yellow);
}

.po-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.po-apps {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.app-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.app-badge i {
    font-size: 1.5rem;
    color: var(--brand-yellow);
}

/* --- TECH STACK --- */
.tech-section {
    text-align: center;
    margin-top: 80px;
}

.tech-grid {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--brand-blue);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.tech-item span {
    font-weight: 600;
    font-size: 1rem;
    color: #555;
}

.partner-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: nowrap;
    margin-top: 30px;
}

.partner-badge {
    height: 80px;
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 700;
    color: #555;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* --- RESULTS --- */
.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    text-align: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-yellow);
    display: block;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- TESTIMONIAL --- */
.quote-box {
    background: var(--white);
    padding: 70px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 193, 7, 0.2);
    position: absolute;
    top: 30px;
    left: 30px;
}

.quote-text {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 30px;
    color: #333;
    position: relative;
    z-index: 2;
}

/* --- FOOTER --- */
/* footer {
    background: #111;
    color: #888;
    padding: 80px 0 40px;
    text-align: center;
} */

.cta-btn {
    display: inline-block;
    background: var(--brand-yellow);
    color: var(--brand-blue);
    padding: 15px 45px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 30px;
    transition: transform 0.2s;
}

.cta-btn:hover {
    transform: scale(1.05);
}

/* Flow diagram */

.flow-diagram-grid {
    align-items: center;
    gap: 40px;
    justify-items: center;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .grid,
    .research-grid,
    .po-grid,
    .solution-split,
    .client-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .client-box {
        padding: 30px;
    }

    .tech-grid {
        gap: 30px;
    }
}

@media only screen and (min-width: 992px) {
    .ebook-form-wrap {
        max-width: none;
    }
}

.ebook-form-wrap {
    margin-top: 0px;
}