/* ============================================================
   Upright Case Study — Standalone CSS
   Brand palette: Deep Teal #0D7377 + Amber accent #D4860B
   Chosen to complement the warm amber/earthy warehouse imagery.
   No dependency on gsc.css.
   ============================================================ */

:root {
    --brand-red: #D4670A;          /* primary: burnt orange from safety vests & sunset */
    --brand-accent: #1C2B40;       /* deep navy from warehouse darkness */
    --brand-teal-dark: #A84F06;    /* darker orange for hovers */
    --brand-teal-light: #FDF0E6;   /* very light warm amber bg */
    --brand-dark: #1a1a1a;
    --text-main: #2d3436;
    --text-light: #636e72;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --font-stack: 'Inter', sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(212, 103, 10, 0.20);
    --radius-md: 20px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 700;
    line-height: 1.2;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

p {
    font-size: 16px;
}

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

.section {
    padding: 80px 0;
}

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

.bg-blue {
    background: linear-gradient(135deg, var(--brand-red), var(--brand-teal-dark));

    color: var(--white);
}

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

.section-tag {
    display: inline-block;
    background: rgba(212, 103, 10, 0.1);
    color: var(--brand-red);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--brand-dark);
    font-weight: 800;
}

.section-desc {
    max-width: 885px;
    margin: 0 auto;
    text-align: start;
}

/* --- ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all .8s ease;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* --- HERO --- */
.hero {
    color: var(--white);
    padding: 180px 0 120px;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--white);
}

.hero p {
    font-size: 1.25rem;
    margin: 0 auto;
    opacity: 0.9;
    color: var(--white);
    font-weight: 300;
}

.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);
}

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

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

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

/* --- PROBLEM TILES --- */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.problem-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-md);
    border: 1px solid #eee;
    transition: 0.4s;
    position: relative;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--brand-red);
}

.problem-card i {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 20px;
    display: block;
}

.problem-card h4 {
    margin-bottom: 10px;
    color: var(--brand-dark);
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* --- STRATEGY GRID --- */
.strategy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.strategy-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-md);
    border-left: 5px solid var(--brand-red);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.strategy-card h3 {
    color: var(--brand-red);
    margin-bottom: 20px;
}

.strategy-list {
    list-style: none;
}

.strategy-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.strategy-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--brand-red);
    margin-top: 1px;
}

/* --- SOLUTIONS GRID --- */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(340px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.solution-card {
    background: var(--white);
    border-radius: 18px;
    padding: 36px 32px 32px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0ece8;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.solution-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), var(--brand-teal-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.solution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px rgba(212, 103, 10, 0.13);
    border-color: #f5ddc8;
}

.solution-card:hover::before {
    transform: scaleX(1);
}

/* Large decorative number */
.solution-card .sol-header {
    display: flex;
    align-items: flex-start;
    gap: 0;
    flex-direction: column;
    background: none;
    padding: 0;
    overflow: visible;
}

.solution-card .sol-num {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-red), #f0a050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -2px;
    width: auto;
    height: auto;
    border-radius: 0;
    border: none;
    display: block;
    flex-shrink: unset;
    justify-content: unset;
    align-items: unset;
}

/* Divider line below number */
.solution-card .sol-header::after {
    content: none;
}

.solution-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
    line-height: 1.3;
    -webkit-text-fill-color: var(--brand-dark);
}

/* Thin separator */
.solution-card .sol-divider {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-red), #f0a050);
    border-radius: 2px;
    margin: 4px 0;
}

/* Card body */
.solution-card .sol-body {
    padding: 0;
    flex: 1;
}

.solution-card .sol-body p {
    color: var(--text-light);
    font-size: 16px;
    margin: 0;
}

/* Part 1: Numbers strip */
.res-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 48px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, #1C2B40, #243347);
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
}

.res-num-item {
    padding: 32px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
    border-right: 1px solid rgba(255,255,255,0.07);
    transition: background 0.3s ease;
}

.res-num-item:last-child { border-right: none; }

.res-num-item:hover {
    background: rgba(212, 103, 10, 0.18);
}

.res-val {
    font-size: 2.4rem !important;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--brand-red), #f0a050);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.res-num-item strong {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.92);
    line-height: 1.3;
}

.res-num-item span {
    font-size: 16px;
    color: rgba(255,255,255,0.50);
    line-height: 1.5;
}

/* Sub-label between sections */
.res-sub-label {
    display: inline-block;
    background: rgba(212, 103, 10, 0.1);
    color: var(--brand-red);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 44px 0 20px;
    text-align: center;
    width: 100%;
}

/* Part 2: Benefits grid — all identical cards */
.res-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.res-ben-card {
    background: var(--white);
    border-radius: 14px;
    padding: 28px 26px;
    border: 1px solid #ede8e2;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.res-ben-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(212, 103, 10, 0.10);
    border-color: #f5c9a0;
}

.res-ben-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brand-red), #f0a050);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.res-ben-icon i { font-size: 1rem; color: #fff; }

.res-ben-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0;
}

.res-ben-card p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* --- TECH STACK --- */
.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;
}

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

/* --- TESTIMONIAL / QUOTE --- */
.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(212, 103, 10, 0.15);
    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;
}

.feedback-desc {
    max-width: 920px;
    margin: 20px auto 40px !important;
    text-align: start;
}

/* --- STAT CARDS --- */
.stat-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--brand-red);
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* --- PORTFOLIO SLIDER --- */
.acg-img-box {
    box-shadow: none !important;
}

.acg-img-box img {
    height: 500px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.review-slider .slick-slide {
    display: flex !important;
    justify-content: center;
}

/* --- PORTFOLIO LINKS --- */
.portfolio-links {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.portfolio-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-link-btn.primary {
    background: var(--brand-red);
    color: white;
}

.portfolio-link-btn.primary:hover {
    background: var(--brand-teal-dark);
    transform: translateY(-3px);
    color: white;
}

.portfolio-link-btn.secondary {
    background: transparent;
    color: var(--brand-red);
    border: 2px solid var(--brand-red);
}

.portfolio-link-btn.secondary:hover {
    background: var(--brand-red);
    color: white;
    transform: translateY(-3px);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .summary-grid,
    .strategy-grid {
        grid-template-columns: 1fr;
    }

    .summary-box {
        padding: 30px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .res-numbers {
        grid-template-columns: repeat(3, 1fr);
    }

    .res-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .res-numbers {
        grid-template-columns: repeat(2, 1fr);
    }

    .res-benefits {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 0 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-desc {
        font-size: 1rem;
        text-align: left;
    }

    .overlap-section {
        margin-top: -60px;
    }

    .tech-grid {
        gap: 30px;
    }

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

    .quote-box {
        padding: 40px 25px;
    }
}
/* --- HERO DOWNLOAD BUTTON --- */
.cs-hero-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 32px;
    padding: 14px 32px;
    background: rgba(212, 103, 10, 0.90);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(212, 103, 10, 0.35);
}

.cs-hero-download-btn:hover {
    background: rgba(180, 82, 5, 1);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 103, 10, 0.45);
}

.cs-hero-download-btn i {
    font-size: 0.9rem;
}
/* --- CTA BANNER --- */
.acg-cta-banner {
    background: #f5ebe2;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.acg-cta-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    position: relative;
}

.acg-cta-text {
    flex: 1;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
}

.acg-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    background: rgba(212, 103, 10, 0.90);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.acg-cta-btn:hover {
    background: rgba(180, 82, 5, 1);
    transform: translateY(-1px);
}

.acg-cta-logo {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.08;
    pointer-events: none;
}

.acg-cta-logo img {
    width: 220px;
    height: 220px;
    object-fit: contain;
}

/* ===== RESPONSIVE PATCH — prevent horizontal overflow on small viewports ===== */
html {
    overflow-x: hidden;
}

@media (max-width: 576px) {
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .res-numbers {
        grid-template-columns: repeat(2, 1fr);
    }

    .res-benefits {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .meta-info {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .cs-hero-download-btn,
    .acg-cta-btn {
        width: 100%;
        justify-content: center;
    }

    .acg-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .acg-cta-logo {
        display: none;
    }

    .summary-box {
        padding: 24px 16px;
    }

    .overlap-section {
        margin-top: -40px;
        padding-bottom: 30px;
    }
}
.upright-faq-theme { --faq-accent: #D4670A; }
