/* ============================================
   JME Glass Recycling - Layout
   ============================================ */

/* --- Grid System --- */
.grid {
    display: grid;
    gap: 32px;
}

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

.grid--split { grid-template-columns: 1fr 1.1fr; }
.grid--split-rev { grid-template-columns: 1.1fr 1fr; }

/* Content-image layouts */
.content-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.content-image--rev {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.content-image--rev .content-image__image {
    order: 2;
}

.content-image--rev .content-image__content {
    order: 1;
}

.content-image__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-med);
}

/* --- Flex Utilities --- */
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap-sm { gap: 12px; }
.flex--gap-md { gap: 24px; }
.flex--gap-lg { gap: 40px; }
.flex--wrap { flex-wrap: wrap; }

/* --- Page Layout --- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* --- Cards --- */
.card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
}

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

.card__body {
    padding: 28px;
}

.card__icon {
    width: 52px;
    height: 52px;
    background: var(--green-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--green-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card__text {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 100%;
}

/* --- Stat Badges --- */
.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 2px solid var(--green-light);
    border-radius: var(--radius-md);
    padding: 12px 20px;
}

.stat-badge__number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green-primary);
    line-height: 1;
}

.stat-badge__label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-mid);
    line-height: 1.3;
}

/* --- Process Steps --- */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(12.5% + 28px);
    right: calc(12.5% + 28px);
    height: 2px;
    background: var(--green-light);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    transition: transform 180ms ease;
}

.step__number {
    width: 56px;
    height: 56px;
    background: var(--green-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
    flex-shrink: 0;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--green-primary);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.step:hover {
    transform: translateY(-4px);
}

.step:hover .step__number {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(8, 173, 82, 0.3), 0 0 0 2px var(--green-primary);
}

.step__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.step__text {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    max-width: 100%;
}

/* --- Checklist --- */
.checklist {
    display: grid;
    gap: 12px;
}

.checklist__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-mid);
}

.checklist__item::before {
    content: '';
    width: 22px;
    height: 22px;
    background: var(--green-bg);
    border: 2px solid var(--green-light);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e7d32' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

/* --- Trust Bar --- */
.trust-bar {
    background: var(--green-dark);
    color: var(--white);
    padding: 16px 0;
    font-size: 0.85rem;
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    opacity: 0.9;
}

.trust-bar__item svg {
    width: 18px;
    height: 18px;
    stroke: var(--green-light);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
