﻿/*
 * About Us — Homepage Section
 * Scoped to .about-section and .about-stats-band
 */

/* ═══════════════════════════════════════════════════════════════
   SECTION SHELL
   ═══════════════════════════════════════════════════════════════ */

.about-section {
    position: relative;
    background-color: #ffffff;
    padding: 5rem 0 6rem;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .about-section {
        padding: 7rem 0 8rem;
    }
}

.about-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249,115,22,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Ambient top-right glow */
.about-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 55%;
    height: 70%;
    background: radial-gradient(
        ellipse at 80% 20%,
        rgba(249,115,22,0.05) 0%,
        transparent 65%
    );
    pointer-events: none;
}

/* ── Main grid ───────────────────────────────────────────────── */

.about-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .about-inner {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

@media (min-width: 1280px) {
    .about-inner {
        grid-template-columns: 55% 1fr;
        gap: 6rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   IMAGE COLLAGE
   ═══════════════════════════════════════════════════════════════ */

.about-collage {
    position: relative;
    /* 3-slot grid: main left, two stacked right */
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    grid-template-rows: 260px 200px 56px; /* A spans both rows, B+C stack right, bar below */
    gap: 8px;
}

@media (min-width: 640px) {
    .about-collage {
        grid-template-rows: 300px 220px 64px;
    }
}

@media (min-width: 1024px) {
    .about-collage {
        grid-template-rows: 280px 200px 60px;
    }
}

@media (min-width: 1280px) {
    .about-collage {
        grid-template-rows: 320px 240px 68px;
    }
}

/* Slot A — large left image, spans 2 rows */
.collage-a {
    grid-column: 1;
    grid-row: 1 / 3;
    position: relative;
    overflow: hidden;
}

/* Slot B — top right */
.collage-b {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    overflow: hidden;
}

/* Slot C — bottom right */
.collage-c {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    overflow: hidden;
}

/* Mini-stat bar — full width row 3 */
.collage-ministat-bar {
    grid-column: 1 / -1;
    grid-row: 3;
    background: rgba(249,115,22,0.08);
    border: 1px solid rgba(249,115,22,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

/* Images fill their slot */
.collage-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms cubic-bezier(0.4,0,0.2,1);
}

.collage-slot:hover .collage-img {
    transform: scale(1.04);
}

/* SVG placeholder */
.about-placeholder {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
    position: relative;
}

.about-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249,115,22,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Left orange accent bar on slot A */
.collage-accent-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, transparent, #f97316 20%, #f97316 80%, transparent);
    z-index: 2;
}

/* Bottom gradient on slot A */
.collage-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(248,250,252,0.4) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Grid overlay on slot B placeholder */
.collage-overlay-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(249,115,22,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(249,115,22,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* ── Floating badges ─────────────────────────────────────────── */

/* Experience badge — bottom-left of collage, overlaps slot A/bar join */
.collage-badge-exp {
    position: absolute;
    bottom: calc(68px + 12px); /* above ministat bar */
    left: -12px;
    background: #f97316;
    color: #fff;
    padding: 0.875rem 1.125rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    box-shadow: 0 8px 32px rgba(249,115,22,0.3);
}

.collage-badge-num {
    font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.03em;
}

.collage-badge-num span {
    font-size: 1.375rem;
    opacity: 0.75;
}

.collage-badge-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.5;
    opacity: 0.85;
}

/* ISO badge — top-right area, overlapping B's top edge */
.collage-badge-iso {
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(249,115,22,0.3);
    color: #0f172a;
    padding: 0.5rem 0.875rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 10;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.collage-badge-iso svg {
    color: #f97316;
    flex-shrink: 0;
}

/* ── Corner brackets ─────────────────────────────────────────── */

.collage-corner {
    position: absolute;
    width: 36px;
    height: 36px;
    z-index: 5;
    pointer-events: none;
}

.collage-corner-tl {
    top: -8px;
    left: -8px;
    border-top: 2px solid rgba(249,115,22,0.4);
    border-left: 2px solid rgba(249,115,22,0.4);
}

.collage-corner-br {
    bottom: calc(68px - 8px);
    right: -8px;
    border-bottom: 2px solid rgba(249,115,22,0.2);
    border-right: 2px solid rgba(249,115,22,0.2);
}

/* ── Mini-stat bar internals ─────────────────────────────────── */

.collage-ministat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.75rem;
    text-align: center;
}

.collage-ministat-sep {
    width: 1px;
    height: 28px;
    background: rgba(249,115,22,0.25);
    flex-shrink: 0;
}

.collage-ministat-num {
    font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
    font-size: 1.25rem;
    font-weight: 900;
    color: #f97316;
    line-height: 1;
    letter-spacing: -0.02em;
}

.collage-ministat-label {
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0f172a;
    margin-top: 0.2rem;
}

/* ═══════════════════════════════════════════════════════════════
   CONTENT COLUMN
   ═══════════════════════════════════════════════════════════════ */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Label row ───────────────────────────────────────────────── */

.about-label-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.125rem;
}

.about-label-rule {
    display: block;
    height: 2px;
    width: 2.5rem;
    background: rgba(249,115,22,0.4);
    flex-shrink: 0;
}

/* ── Heading ─────────────────────────────────────────────────── */

.about-heading {
    font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin-bottom: 1.5rem;
}

.about-heading-accent {
    display: block;
    color: #f97316;
    font-size: 0.9em; /* slightly smaller second line */
}

/* ── Divider rule ────────────────────────────────────────────── */

.about-rule {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.about-rule-line {
    display: block;
    height: 2px;
    width: 2.5rem;
    background: #f97316;
}

.about-rule-line-faint {
    width: 5rem;
    background: rgba(249,115,22,0.2);
}

.about-rule-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f97316;
    flex-shrink: 0;
}

/* ── Body text ───────────────────────────────────────────────── */

.about-body {
    font-size: 0.9375rem;
    color: #0f172a;
    line-height: 1.8;
    margin-bottom: 1.125rem;
}

/* ── Feature grid ────────────────────────────────────────────── */

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 1.75rem 0 2.25rem;
}

@media (max-width: 479px) {
    .about-features { grid-template-columns: 1fr; }
}

.about-feature-card {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    background: rgba(15,23,42,0.03);
    border: 1px solid rgba(15,23,42,0.08);
    padding: 0.875rem 1rem;
    transition: border-color 250ms ease, background 250ms ease;
    position: relative;
    overflow: hidden;
}

.about-feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 2px; height: 100%;
    background: #f97316;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 250ms ease;
}

.about-feature-card:hover {
    border-color: rgba(249,115,22,0.2);
    background: rgba(249,115,22,0.04);
}

.about-feature-card:hover::before {
    transform: scaleY(1);
}

.about-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f97316;
    transition: background 250ms ease;
}

.about-feature-card:hover .about-feature-icon {
    background: rgba(249,115,22,0.18);
}

.about-feature-title {
    font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
    font-size: 0.9375rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.about-feature-desc {
    font-size: 0.75rem;
    color: #0f172a;
    line-height: 1.5;
}

/* ── CTAs ────────────────────────────────────────────────────── */

.about-ctas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.875rem;
}

.about-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: color 200ms ease;
    padding: 0 0.25rem;
}

.about-text-link:hover {
    color: #0f172a;
}

.about-text-link svg {
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   STATS BAND
   ═══════════════════════════════════════════════════════════════ */

.about-stats-band {
    position: relative;
    background: #f1f5f9;
    border-top: 1px solid rgba(15,23,42,0.08);
    padding: 0 0 0.5rem;
    overflow: hidden;
}

/* Diagonal top cut */
.about-stats-cut {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 32px;
    background: #f8fafc;
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 100%);
    pointer-events: none;
}

/* Orange glow left */
.about-stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 40% 80% at 0% 50%,
        rgba(249,115,22,0.05) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

@media (min-width: 768px) {
    .about-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.about-stat {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.25rem;
    border-right: 1px solid rgba(15,23,42,0.08);
    border-bottom: 1px solid rgba(15,23,42,0.08);
}

.about-stat:last-child { border-right: none; }

@media (min-width: 768px) {
    .about-stat:nth-child(2n)  { border-right: 1px solid rgba(15,23,42,0.08); }
    .about-stat:nth-child(4n)  { border-right: none; }
    .about-stat { border-bottom: none; }
}

/* Hover glow */
.about-stat::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(249,115,22,0.04);
    opacity: 0;
    transition: opacity 300ms ease;
}

.about-stat:hover::before { opacity: 1; }

/* Orange top accent on hover */
.about-stat::after {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 2px;
    background: #f97316;
    transform: scaleX(0);
    transition: transform 300ms ease;
}

.about-stat:hover::after { transform: scaleX(1); }

.about-stat-divider {
    display: none; /* handled by border-right on .about-stat */
}

.about-stat-num {
    display: block;
    font-family: var(--font-heading, 'Barlow Condensed', sans-serif);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #f97316;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
    transition: color 200ms ease;
}

.about-stat:hover .about-stat-num { color: #fb923c; }

.about-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0f172a;
    line-height: 1.5;
    max-width: 120px;
}

/* Decorative corner dot */
.about-stat-dot {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(249,115,22,0.2);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 639px) {
    .collage-badge-exp {
        left: 0;
        bottom: calc(56px + 8px);
        padding: 0.625rem 0.875rem;
    }

    .collage-badge-iso {
        top: -6px;
        right: -6px;
        padding: 0.375rem 0.625rem;
        font-size: 0.625rem;
    }

    .about-ctas {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .collage-img { transition: none; }
    .about-feature-card::before { transition: none; }
    .about-stat::after,
    .about-stat::before { transition: none; }
}
