/* ============================================================
   QuantumIT — Homepage Stylesheet
   Section layout and decoration only.
   Typography (h1/h2/h3/h4/p/lead/eyebrow/.label/.numeral) and
   colour inversion (.on-dark) come from general.css — do not
   redefine sizes, weights or colours here.
   ============================================================ */

/* ============================================================
   LOGO STRIP — homepage section wrapper only
   The items grid (.logo-strip__inner / .logo-strip__item) lives
   in general.css so it can be reused on About, etc.
   ============================================================ */
.logo-strip {
    background: white;
    padding: 40px 0 44px;
    border-bottom: 1px solid var(--gray-200);
    position: relative;
}
.logo-strip__label {
    margin-bottom: 30px;
    text-align: center;
    letter-spacing: var(--ls-eyebrow);
}

/* ============================================================
   PRODUCT SUITE — InPlace Platform card
   ============================================================ */
.platform-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    margin-bottom: 32px;
    position: relative;
}
.platform-card__info {
    background: var(--navy);
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    height: 820px;
}
.platform-card__info > * { position: relative; z-index: 1; }
.platform-card__info .eyebrow { align-self: flex-start; }
.platform-card__photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.platform-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    filter: grayscale(0.5) contrast(1.05);
    transition: transform 0.3s var(--ease-out);
}
.platform-card:hover .platform-card__photo img { transform: scale(1.04); }
.platform-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(135deg, rgba(0, 78, 104, 0.92) 0%, rgba(0, 24, 32, 0.96) 100%);
    pointer-events: none;
}
.platform-card__topo {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../assets/patterns/platform-topo.svg');
    background-size: 700px;
    background-repeat: no-repeat;
    background-position: right -100px top -50px;
    pointer-events: none;
}
.platform-card__meta {
    display: flex;
    gap: 40px;
    margin: 32px 0 36px;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.platform-card__meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.platform-card__info .btn { align-self: flex-start; margin-top: auto; }
.platform-card__info .btn--primary { background: var(--blue); color: white; }
.platform-card__info .btn--primary:hover {
    background: white;
    color: var(--navy-deep);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.platform-card__list-wrap {
    background: white;
    border: 1px solid var(--gray-200);
    border-left: none;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    height: 820px;
    overflow: hidden;
}

/* Accordion */
.product-list {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-item {
    position: relative;
    background: white;
    border-bottom: 1px solid var(--gray-200);
    padding: 30px 24px;
    cursor: pointer;
    transition: background var(--t-mid) var(--ease-out);
    overflow: hidden;
}
.product-item:last-child { border-bottom: none; }
.product-item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: transparent;
    transition: background var(--t-mid) var(--ease-out);
}
.product-item:hover,
.product-item.is-open { background: var(--gray-50); }
.product-item.is-open::before { background: var(--blue); }
.product-item__head {
    display: flex;
    align-items: center;
    gap: 14px;
}
.product-item__logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform var(--t-slow) var(--ease-out);
}
.product-item:hover .product-item__logo { transform: scale(1.05); }
.product-item__name {
    flex: 1;
    color: var(--navy);
    font-weight: var(--fw-bold);
    font-size: 14px;
    letter-spacing: -0.005em;
}
.product-item__chevron {
    color: var(--navy);
    transition: transform var(--t-mid) var(--ease-out), opacity var(--t-mid) var(--ease-out);
    flex-shrink: 0;
    opacity: 0.5;
}
.product-item:hover .product-item__chevron { opacity: 1; }
.product-item.is-open .product-item__chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.product-item__body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition:
        max-height var(--t-slow) var(--ease-out),
        margin-top var(--t-slow) var(--ease-out),
        opacity var(--t-mid) var(--ease-out);
}
.product-item.is-open .product-item__body {
    max-height: 380px;
    margin-top: 16px;
    opacity: 1;
}
.product-item__detail {
    padding-left: 46px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.product-item__detail p {
    font-size: 13px;
    line-height: 1.65;
}
.product-item__bullets {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.product-item__bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--gray-ink);
}
.product-item__bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 7px;
    height: 7px;
    background: var(--blue);
}
.product-item__meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
    margin-top: 4px;
}
.product-item__meta-tag {
    font-size: 10px;
    font-weight: var(--fw-bold);
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--blue);
}
.product-item__meta-sep { color: var(--gray-300); font-size: 11px; }
.product-item__meta-text {
    font-size: 11px;
    color: var(--gray);
    font-weight: var(--fw-medium);
}

/* ============================================================
   ABOUT + STATS
   ============================================================ */
.about__layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 84px;
    align-items: start;
}
.about__copy h2 + p { margin-top: 30px; }
.about__capabilities {
    margin-top: 30px;
    padding: 26px 28px;
    background: white;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--blue);
    transition: border-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out);
}
.about__capabilities:hover {
    border-left-color: var(--navy);
    box-shadow: var(--shadow-md);
}
.about__capabilities h4 { margin-bottom: 14px; }
.about__capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.about__capabilities-list li {
    font-size: 11px;
    font-weight: var(--fw-semibold);
    color: var(--navy);
    padding: 7px 9px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    transition: background var(--t-mid) var(--ease-out), color var(--t-mid) var(--ease-out), border-color var(--t-mid) var(--ease-out);
    cursor: default;
}
.about__capabilities-list li:hover {
    background: var(--blue);
    color: white;
    border-color: var(--blue);
}
.about__copy .btn { margin-top: 30px; }
.about__offices {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid var(--gray-200);
}
.about__offices h4 { margin-bottom: 16px; }
.about__offices-list {
    display: flex;
    gap: 10px 26px;
    flex-wrap: wrap;
}
.about__offices-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--gray-ink);
    font-weight: var(--fw-semibold);
    transition: color var(--t-mid) var(--ease-out);
}
.about__offices-list li:hover { color: var(--blue); }
.about__offices-list li a { color: inherit; text-decoration: none; }
.about__offices-list li::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--blue);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
    position: relative;
    background: var(--blue);
    overflow: hidden;
    padding: 80px 0;
}
.testimonials-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        url('../assets/patterns/testimonials-circuit.svg'),
        linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
    background-size: cover, cover;
    background-repeat: no-repeat, no-repeat;
    opacity: 0.5;
    pointer-events: none;
}
.testimonials-section .container { position: relative; z-index: 1; }
/* Needs 1025px to hold on one line; container inner width is 1232px.
   Scoped to this section so other pages keep the 900px default. */
.testimonials-section .section__head p { max-width: 1060px; }

/* ---------- Testimonial carousel ---------- */
.carousel {
    --per-view: 3;
    --slide-gap: 22px;
    position: relative;
}
.carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* breathing room so the card hover-lift and focus ring aren't clipped;
       scroll-padding keeps the snap origin at scrollLeft 0 despite the inset */
    margin: -6px;
    padding: 6px;
    scroll-padding-inline: 6px;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel__viewport:focus { outline: none; }
.carousel__viewport:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}
.carousel__track {
    display: flex;
    /* stretch = every card takes the height of the tallest, so the track is a
       single fixed height and does not resize as the carousel pages. */
    align-items: stretch;
    gap: var(--slide-gap);
}
.carousel__slide {
    flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--slide-gap)) / var(--per-view));
    scroll-snap-align: start;
    display: flex;
}

/* Arrows sit in the page gutter, outside the 1280px container, so the cards
   keep their full width. Needs ~56px of gutter, so it applies from 1400px up;
   below that they fall back to a lane inside the stage (media query below). */
.carousel__stage { position: relative; }
.carousel__arrow--prev { left: -56px; }
.carousel__arrow--next { right: -56px; }

.carousel__controls {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: var(--blue-deep);
    border: 1px solid rgba(255, 255, 255, 0.34);
    transition:
        background var(--t-mid) var(--ease-out),
        border-color var(--t-mid) var(--ease-out);
}
.carousel__arrow:hover {
    background: var(--navy);
    border-color: rgba(255, 255, 255, 0.7);
}
.carousel__arrow:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}
.carousel__dots {
    display: flex;
    align-items: center;
    gap: 9px;
}
.carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    padding: 0;
    background: rgba(255, 255, 255, 0.34);
    transition:
        background var(--t-mid) var(--ease-out),
        width var(--t-mid) var(--ease-out);
}
.carousel__dot:hover { background: rgba(255, 255, 255, 0.6); }
.carousel__dot:focus-visible {
    outline: 2px solid var(--blue-bright);
    outline-offset: 3px;
}
.carousel__dot.is-active {
    width: 24px;
    background: white;
}
/* No JS: fall back to a plain horizontal scroller, controls hidden. */
.carousel:not(.is-ready) .carousel__controls { display: none; }

@media (prefers-reduced-motion: reduce) {
    .carousel__viewport { scroll-behavior: auto; }
}
.testimonial {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.26);
    padding: 38px 34px 28px;
    display: flex;
    flex-direction: column;
    transition:
        background var(--t-slow) var(--ease-out),
        transform var(--t-mid) var(--ease-out),
        border-color var(--t-slow) var(--ease-out),
        box-shadow var(--t-slow) var(--ease-out);
}
.testimonial:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-hover);
}
.testimonial__quote {
    width: 32px;
    height: 32px;
    color: white;
    opacity: 0.6;
    margin-bottom: 20px;
    flex-shrink: 0;
    transition: opacity var(--t-mid) var(--ease-out), transform var(--t-mid) var(--ease-out);
}
.testimonial:hover .testimonial__quote { opacity: 0.9; transform: scale(1.08); }
.testimonial__body {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}
.testimonial__text {
    color: white;
}
.testimonial__attribution {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
}
.testimonial__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: var(--fw-bold);
    letter-spacing: 0.4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.32);
    transition: background var(--t-mid) var(--ease-out);
}
.testimonial:hover .testimonial__avatar { background: rgba(255, 255, 255, 0.28); }
.testimonial__attribution-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.testimonial__role {
    font-size: 13px;
    font-weight: var(--fw-bold);
    color: white;
    line-height: 1.3;
}
.testimonial__org {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    font-style: italic;
}

/* ============================================================
   RESPONSIVE — homepage layout
   ============================================================ */
/* Gutter too narrow to hold the arrows: give them a lane inside the stage. */
@media (max-width: 1399px) {
    .carousel__stage { padding-inline: 56px; }
    .carousel__arrow--prev { left: 0; }
    .carousel__arrow--next { right: 0; }
}
@media (max-width: 1024px) {
    .platform-card { grid-template-columns: 1fr; }
    .platform-card__list-wrap { border-left: 1px solid var(--gray-200); border-top: none; height: auto; }
    .platform-card__info { padding: 44px; height: auto; }
    .about__layout { grid-template-columns: 1fr; gap: 60px; }
    .carousel { --per-view: 2; --slide-gap: 18px; }
}
@media (max-width: 880px) {
    .testimonials-section { padding: 76px 0; }
    .carousel { --per-view: 1; --slide-gap: 16px; }
    .testimonial { padding: 32px 26px 24px; }
    .carousel__stage { padding-inline: 54px; }
    .platform-card__meta { flex-wrap: wrap; gap: 22px 36px; }
}
@media (max-width: 600px) {
    .platform-card__info { padding: 30px; }
    .platform-card__list-wrap { padding: 14px; }
    .product-item__detail { padding-left: 0; }
}
