/* ==========================================================
   sections.css — Shared section patterns used across pages
   ========================================================== */

main section {
    padding-block: clamp(3rem, 6vw, var(--space-xl));
}

main section.section--alt {
    background: var(--color-bg-grey);
}

main section.section--dark {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.85);
}

main section.section--dark h2,
main section.section--dark h3 {
    color: var(--color-white);
}

.section-head {
    max-width: 62ch;
    margin-bottom: var(--space-lg);
}

.section-head p {
    color: var(--color-charcoal);
    font-size: 1.05rem;
}

.section--dark .section-head p {
    color: rgba(255, 255, 255, 0.75);
}

.section-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.section-head-row .section-head {
    margin-bottom: 0;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--color-red);
    white-space: nowrap;
}

.link-arrow::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* ---- Generic responsive card grid ---- */
.grid {
    display: grid;
    gap: var(--space-md);
}

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

@media (max-width: 960px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .grid--4, .grid--3, .grid--2 {
        grid-template-columns: 1fr;
    }
}

/* ---- Card ---- */
.card {
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: transparent;
}

.card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: var(--space-sm);
    color: var(--color-red);
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Icons on dark cards: force white regardless of source colour (red or
   navy line art) so nothing camouflages against the dark background. */
.section--dark .card-icon img {
    filter: brightness(0) invert(1);
}

/* ---- Pending icon placeholder — small footprint version of the
   photo image-placeholder, for 44x44 card-icon slots awaiting a
   generated icon. Shows the expected filename on hover. ---- */
.card-icon.pending {
    border: 2px dashed var(--color-light-grey);
    border-radius: var(--radius-sm);
    background: var(--color-bg-grey);
}

.section--dark .card-icon.pending {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

.card h3 {
    margin-bottom: 0.4rem;
}

.card p {
    font-size: 0.95rem;
    color: var(--color-charcoal);
    margin-bottom: 0;
}

.section--dark .card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.section--dark .card p {
    color: rgba(255, 255, 255, 0.7);
}

/* ---- Tag list (Industries strip) ---- */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tag-list li {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-navy);
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tag-list li:hover {
    border-color: var(--color-red);
    color: var(--color-red);
}

/* ---- Strengths checklist (used on About page R|E Expert capabilities
   via .capability-grid; process-list/strength-list removed — Home now
   uses icon cards, see .grid/.card above) ---- */
/* ---- Project preview cards ---- */
.project-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #1a2740 0%, #0d1626 100%);
    display: flex;
    align-items: flex-end;
    color: var(--color-white);
}

.project-card img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-body {
    position: relative;
    z-index: 2;
    padding: var(--space-md);
}

.project-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 15, 26, 0.92) 100%);
}

.project-card .eyebrow {
    color: #FF8B8E;
}

.project-card-icon {
    width: 36px;
    height: 36px;
    color: rgba(255, 139, 142, 0.9);
    margin-bottom: 0.6rem;
}

.project-card-icon svg {
    width: 100%;
    height: 100%;
}

.project-card h3 {
    color: var(--color-white);
    margin-bottom: 0.25rem;
}

.project-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---- Client logo marquee (auto-scrolling, infinite loop) ---- */
.logo-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.logo-marquee-track {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    width: max-content;
    animation: marquee-scroll 130s linear infinite;
}

.logo-marquee:hover .logo-marquee-track {
    animation-play-state: paused;
}

.logo-marquee-item {
    flex-shrink: 0;
    height: 192px;
    width: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
}

.logo-marquee-item img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(15%);
    opacity: 0.9;
    transition: opacity var(--transition-fast), filter var(--transition-fast);
}

.logo-marquee-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Placeholder look until a real logo file is dropped in */
.logo-marquee-item.pending {
    border: 1px dashed var(--color-light-grey);
    background: var(--color-bg-grey);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.72rem;
    color: var(--color-charcoal);
    text-align: center;
    line-height: 1.3;
}

.section--dark .logo-marquee-item.pending {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .logo-marquee-track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 620px) {
    .logo-marquee-item {
        height: 130px;
        width: 300px;
    }
}

/* ---- CTA banner ---- */
#call-to-action {
    background: var(--color-red);
    color: var(--color-white);
    text-align: center;
}

#call-to-action h2 {
    color: var(--color-white);
}

#call-to-action p {
    max-width: 55ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.9);
}

/* ---- Contact preview ---- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-lg);
}

.contact-method-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.contact-method-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-red);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-white);
    fill: none;
}

.contact-method-list address,
.contact-method-list p {
    font-style: normal;
    margin: 0;
    font-weight: 500;
    color: var(--color-white);
}

.contact-method-list a {
    color: var(--color-white);
}

.contact-method-list a:hover {
    color: #FF8B8E;
}

.contact-services ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: var(--space-md);
}

.contact-services li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.6rem;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
    break-inside: avoid;
}

.contact-services li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 6px;
    height: 6px;
    background: var(--color-red);
}

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

    .contact-services ul {
        columns: 1;
    }
}

/* ==========================================================
   Reusable interior-page components (About, Services, etc.)
   ========================================================== */

/* ---- Page hero (smaller banner for interior pages) ---- */
.page-hero {
    position: relative;
    background: linear-gradient(155deg, var(--color-navy) 0%, #101c34 55%, #0a1220 100%);
    color: var(--color-white);
    overflow: hidden;
    padding-block: clamp(3rem, 7vw, 4.5rem);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 100% at 20% 30%, black 30%, transparent 85%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0 0 var(--space-sm);
    padding: 0;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--color-white);
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.35);
}

.page-hero h1 {
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.page-hero .page-lede {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.05rem;
    max-width: 60ch;
    margin-bottom: 0;
}

/* ---- Stat grid (reusable fact/number strip) ---- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.stat-grid li {
    padding: var(--space-md);
    background: var(--color-white);
    border: 1px solid var(--color-light-grey);
    border-radius: var(--radius-md);
}

.stat-grid .stat-number {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2rem;
    color: var(--color-red);
    margin-bottom: 0.25rem;
}

.stat-grid .stat-caption {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.section--dark .stat-grid li {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
}

.section--dark .stat-grid .stat-caption {
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Image placeholder block (stand-in until real photography from
   the prompt files is generated and dropped in) ---- */
.image-placeholder {
    position: relative;
    border-radius: var(--radius-md);
    background: linear-gradient(160deg, #1a2740 0%, #0d1626 100%);
    border: 1px solid var(--color-light-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 220px;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
}

.image-placeholder-label {
    position: relative;
    z-index: 1;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
    padding: var(--space-md);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-sm);
    margin: var(--space-sm);
}

/* ---- Real photo dropped into a placeholder-shaped slot ----
   Once an image is generated and wired in, the container keeps
   its class name (.image-placeholder) for layout/aspect-ratio
   consistency, but gets this modifier plus a real <img>. */
.image-placeholder.has-image {
    background: var(--color-bg-grey);
    border-color: var(--color-light-grey);
}

.image-placeholder.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* ---- CTA banner (class-based, reusable on every interior page) ---- */
.cta-banner {
    background: var(--color-red);
    color: var(--color-white);
    text-align: center;
}

.cta-banner h2 {
    color: var(--color-white);
}

.cta-banner p {
    max-width: 55ch;
    margin-inline: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-banner .btn--primary {
    background: var(--color-navy);
}

.cta-banner .btn--primary:hover {
    background: #060a14;
}

/* ---- Capability / checklist grid (light background variant) ---- */
.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm) var(--space-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.capability-grid li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.capability-grid li::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 0.15rem;
    background: var(--color-red);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 620px) {
    .capability-grid {
        grid-template-columns: 1fr;
    }
}
#site-footer {
    background: #0a0f1d;
    color: rgba(255, 255, 255, 0.6);
    padding-block: var(--space-lg) var(--space-md);
}

#site-footer .footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(0, 1fr));
    gap: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

#site-footer .footer-brand img {
    height: 34px;
    margin-bottom: var(--space-sm);
}

#site-footer .footer-brand p {
    font-size: 0.85rem;
    max-width: 32ch;
}

#site-footer .footer-col h4 {
    color: var(--color-white);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

#site-footer .footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

#site-footer .footer-col a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

#site-footer .footer-col a:hover {
    color: var(--color-white);
}

#site-footer .footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
}

#site-footer .footer-bottom p {
    font-size: 0.8rem;
    margin: 0;
}

@media (max-width: 860px) {
    #site-footer .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    #site-footer .footer-top {
        grid-template-columns: 1fr;
    }
}
