/* =========================================================
   About ePostcode — brand-aligned layout
   ========================================================= */

.about-page .about-hero.product-hero {
    min-height: clamp(380px, 50vh, 540px);
}

.about-page .about-hero .dd-hero-content {
    grid-template-columns: 1fr;
    max-width: 48rem;
}

.about-story,
.about-group,
.about-products,
.about-clients,
.about-metrics {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.about-story {
    background: #fff;
}

.about-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
    max-width: min(1120px, 100%);
    margin: 0 auto;
}

.about-story-copy .lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #1a1a1a;
    font-weight: 600;
    margin: 0 0 1rem;
}

.about-story-copy p {
    color: #555;
    line-height: 1.75;
    margin: 0 0 1rem;
}

.about-highlights {
    display: grid;
    gap: 0.85rem;
}

.about-highlight {
    display: flex;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.about-highlight .icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
}

.about-highlight h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #1a1a1a;
}

.about-highlight p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

/* Etellect group */
.about-group {
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border-top: 1px solid #eef0f3;
    border-bottom: 1px solid #eef0f3;
}

.about-group-intro {
    max-width: min(800px, 100%);
    margin: 0 auto 2rem;
    text-align: center;
}

.about-group-intro .etellect-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.25rem;
    display: block;
}

.about-group-intro p {
    color: #555;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.about-group-intro a {
    color: #EC2E5E;
    font-weight: 700;
}

.group-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: min(1120px, 100%);
    margin: 0 auto;
}

.group-benefit {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.15rem 1.2rem;
}

.group-benefit i {
    color: #EC2E5E;
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
    display: block;
}

.group-benefit h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    color: #1a1a1a;
}

.group-benefit p {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

/* Sister products */
.about-products {
    background: #fff;
}

.product-suite {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: min(1120px, 100%);
    margin: 0 auto 1.5rem;
}

.product-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: rgba(236, 46, 94, 0.28);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.product-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.product-card-logo {
    max-height: 42px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.product-card .tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(236, 46, 94, 0.1);
    color: #8B1538;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.product-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #1a1a1a;
}

.product-card > p {
    margin: 0;
    color: #555;
    line-height: 1.65;
    font-size: 0.95rem;
    flex: 1;
}

.product-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.product-points li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.4;
}

.product-points li i {
    color: #EC2E5E;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.product-card .btn {
    align-self: flex-start;
    border-radius: 999px;
    margin-top: 0.25rem;
}

.product-more {
    max-width: min(1120px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.product-more-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-more-card:hover {
    border-color: rgba(236, 46, 94, 0.3);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.07);
}

.product-more-card .icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(145deg, #EC2E5E, #8B1538);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-more-card h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: #1a1a1a;
}

.product-more-card p {
    margin: 0;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.45;
}

/* Clients */
.about-clients {
    background: #f8fafc;
}

.about-clients .features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.about-clients .features-grid > * {
    flex: 1 1 calc(33.333% - 0.75rem);
    max-width: calc(33.333% - 0.75rem);
    min-width: min(240px, 100%);
}

.about-clients .feature-card {
    height: 100%;
    padding: 1.35rem 1.25rem;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.about-clients .feature-icon {
    width: 48px !important;
    height: 48px !important;
    border-radius: 12px !important;
    clip-path: none !important;
    font-size: 1.1rem !important;
    margin-bottom: 0.85rem !important;
}

/* Metrics
   style.css still defines .about-metrics as a 3-col grid for an old
   homepage pattern. Reset it here so the section stacks full-width. */
.about-page section.about-metrics,
.about-metrics {
    display: block;
    background: #fff;
    margin-top: 0;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    max-width: none;
}

.about-page .about-metrics > .container {
    width: 100%;
    max-width: var(--container-wide, 1200px);
    margin-left: auto;
    margin-right: auto;
}

.about-metrics .section-header {
    text-align: center;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.about-metrics .metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: min(1000px, 100%);
    margin: 0 auto;
    width: 100%;
}

.about-metrics .metric-card {
    text-align: center;
    padding: 1.5rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    min-width: 0;
    box-sizing: border-box;
}

.about-metrics .metric-card .value {
    display: block;
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 900;
    color: #EC2E5E;
    letter-spacing: -0.02em;
    margin: 0 0 0.35rem;
    line-height: 1.1;
    word-break: break-word;
}

.about-metrics .metric-card p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.45;
}

/* Partners carousel on about */
.about-page .partners-section {
    background: #f8fafc;
}

.about-ref-cta {
    margin-top: 2.5rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: 18px;
    background: linear-gradient(135deg, #EC2E5E 0%, #8B1538 100%);
    color: #fff;
    text-align: center;
}

.about-ref-cta h3 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    color: #fff;
}

.about-ref-cta p {
    margin: 0 auto 1.25rem;
    max-width: 40rem;
    opacity: 0.95;
    line-height: 1.6;
}

.about-ref-cta .btn {
    background: #fff !important;
    color: #EC2E5E !important;
    border: none !important;
    border-radius: 999px;
    font-weight: 700;
}

/* CTA */
.about-page .dd-cta {
    background: linear-gradient(135deg, #1A1A1A 0%, #3a1020 50%, #8B1538 100%) !important;
}

@media (max-width: 900px) {
    .about-story-grid,
    .product-suite,
    .product-more,
    .group-benefits {
        grid-template-columns: 1fr;
    }

    .about-page section.about-metrics,
    .about-metrics {
        display: block;
        grid-template-columns: none;
    }

    .about-metrics .metrics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-clients .features-grid > * {
        flex: 1 1 calc(50% - 0.75rem);
        max-width: calc(50% - 0.75rem);
    }
}

@media (max-width: 560px) {
    .about-page section.about-metrics,
    .about-metrics {
        display: block;
        grid-template-columns: none;
    }

    .about-metrics .metrics-grid {
        grid-template-columns: 1fr;
    }

    .about-clients .features-grid > * {
        flex: 1 1 100%;
        max-width: 100%;
    }
}
