/* ============================================
   USA PAGE — Mirrors projects page design
   with U.S.-specific sections (clients, offices)
   ============================================ */

/* ============================================
   1. HERO — Reuses .projects-hero from projects-page.css
   (no custom hero styles needed — same class names)
   ============================================ */


/* ============================================
   2. U.S. CLIENTS — Horizontal strip
   (mirrors co-sectors from company page)
   ============================================ */
.usa-clients-strip {
    position: relative;
    overflow: hidden;
    background: #FFFFFF;
    border-bottom: 1px solid var(--color-border);
    padding: clamp(2rem, 4vw, 3.5rem) 0;
}

/* The card row starts with the first card centred on the page (wide
   whitespace to its left) and slowly drifts left until the last card is
   in view. usa-page.js drives the transform; the right-side button jumps
   straight to the end. Card styling (.usa-clients-strip__item and its
   children) is unchanged. */
.usa-clients-strip__track {
    display: flex;
    width: max-content;
    will-change: transform;
    /* transform + transition are set inline by usa-page.js */
}

.usa-clients-strip__item {
    flex: 0 0 auto;
    margin-right: var(--space-6);
    padding: clamp(2.5rem, 5vw, 4rem);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-pure-white);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    align-items: flex-start;
}

/* ---- "See the rest" button — pinned to the right edge ---- */
.usa-clients-strip__nav {
    position: absolute;
    top: 50%;
    right: clamp(1rem, 3vw, 2.5rem);
    transform: translateY(-50%);
    z-index: 2;
    width: clamp(3rem, 5vw, 3.75rem);
    height: clamp(3rem, 5vw, 3.75rem);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-pure-white);
    color: var(--color-text-primary);
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    transition: opacity var(--duration-base) var(--ease-out),
                background var(--duration-base) var(--ease-out),
                color var(--duration-base) var(--ease-out);
}

.usa-clients-strip__nav:hover {
    background: var(--color-text-primary);
    color: var(--color-pure-white);
}

.usa-clients-strip__nav:focus-visible {
    outline: 2px solid var(--color-text-primary);
    outline-offset: 3px;
}

.usa-clients-strip__nav i {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.usa-clients-strip__num {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: var(--font-bold);
    color: rgba(50, 48, 47, 0.08);
    line-height: 1;
    flex-shrink: 0;
}

.usa-clients-strip__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

/* Brand logo — when a card has one, it stands in for the name entirely:
   shown large, and the text title beside it is hidden (see rule below). */
.usa-clients-strip__logo {
    /* Fixed box height so every logo occupies the same vertical space —
       short, wide marks (Ardene) get centred inside it instead of
       hugging the top of the card. */
    height: clamp(5rem, 9vw, 8rem);
    max-width: 18rem;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

/* A logo replaces the title — hide the text name on any card that has one.
   Cards without a logo (Mejuri, Enterprise) keep their text name. */
.usa-clients-strip__logo + .usa-clients-strip__name {
    display: none;
}

.usa-clients-strip__name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5.5vw, 4.5rem);
    font-weight: var(--font-regular);
    line-height: 1;
    letter-spacing: -1.5px;
    color: var(--color-text-primary);
    margin: 0;
    /* never wrap/clip the brand name — the card sizes to fit it */
    white-space: nowrap;
    /* Same fixed box height as the logo, with the text centred inside it,
       so text-only cards (Mejuri, Enterprise) line up vertically with the
       logo cards instead of sitting higher. */
    display: flex;
    align-items: center;
    height: clamp(5rem, 9vw, 8rem);
}

.usa-clients-strip__desc {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    line-height: 1.4;
    margin: 0;
    /* The paragraph is the wrapping element and the main width lever: each
       card is only as wide as the wider of its (non-wrapping) title or
       this capped paragraph — so cards end up different widths. Lower this
       to narrow the cards and wrap the paragraph onto more lines. */
    max-width: 16rem;
}

/* ============================================
   3. U.S. OFFICES — Compact strip
   ============================================ */
.usa-offices-strip {
    background: var(--color-gray-50);
    padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.usa-offices-strip__inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    gap: var(--space-10);
}

.usa-offices-strip__label {
    font-family: var(--font-body);
    font-size: 2.4375rem;
    font-weight: 800;
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-primary);
    /* Wraps the heading so the office cards keep their width on longer
       translations (English "U.S. OFFICES" stays single-line; French
       "BUREAUX AUX ÉTATS-UNIS" wraps to two lines instead of squishing
       the cards). */
    max-width: 11em;
    line-height: 1.05;
}

.usa-offices-strip__grid {
    display: flex;
    gap: var(--space-8);
    flex: 1;
}

/* Sliding-pill aesthetic (matches map popup, project cards, contact buttons,
   tracks, projects-carousel, related-projects, ct-links, sc-steps, services
   panel cards, safety boxes): white bg, warm-gray hairline, 18px radius,
   layered soft shadow, house motion curve on hover lift. */
.usa-offices-strip__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-5) var(--space-6);
    background: var(--color-pure-white);
    border: 0.5px solid #d8d8d4;
    border-radius: 18px;
    box-shadow: 0 22px 50px -28px rgba(0, 0, 0, 0.22),
                0 2px 6px rgba(0, 0, 0, 0.04);
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    transition: transform 520ms cubic-bezier(0.4, 0, 0.1, 1),
                box-shadow 520ms cubic-bezier(0.4, 0, 0.1, 1);
}

.usa-offices-strip__card-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.usa-offices-strip__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.28),
                0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Tick-mark decoration removed — replaced by pill aesthetic. */
.usa-offices-strip__card::after { display: none; }

.usa-offices-strip__icon {
    font-size: 1.25rem;
    color: var(--color-gray-300);
    flex-shrink: 0;
}

.usa-offices-strip__city {
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    letter-spacing: -0.3px;
    margin: 0;
    white-space: nowrap;
}

.usa-offices-strip__address {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0;
}

.usa-offices-strip__phone {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--color-text-primary);
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.usa-offices-strip__phone a {
    color: inherit;
    text-decoration: none;
}

.usa-offices-strip__phone a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .usa-offices-strip__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-5);
    }

    .usa-offices-strip__grid {
        flex-direction: column;
        width: 100%;
    }
}


/* ============================================
   4. PROJECT GRID HEADER
   ============================================ */
#usa-projects.projects-grid-section {
    background: var(--color-pure-white);
    padding-top: 0;
}

.usa-grid-header {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3rem) var(--container-padding) var(--space-6);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.usa-grid-header__label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--color-text-primary);
}

.usa-grid-header__count {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-gray-300);
}


/* ============================================
   5. CTA BANNER
   ============================================ */
.usa-cta {
    position: relative;
    background-color: var(--color-text-primary);
    background-image: url('../images/general/scrapper_2.webp');
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
    min-height: calc(100vw * 1536 / 2778);
    padding: 3% 0 var(--section-padding);
    text-align: center;
    color: var(--color-pure-white);
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

