/* Products page. Loaded after style.css, which supplies the header, footer
   and the .heading treatment shared with the rest of the site. */

/* style.css capitalises every word site-wide; product copy reads as sentences. */
.products-page,
.products-page * {
    text-transform: none;
}

/* ---------- Hero ---------- */

.products-hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12rem 2rem 6rem;
    background: url(../images/img3.jpg) center / cover no-repeat;
    overflow: hidden;
}

.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 46, 95, .92) 0%, rgba(0, 46, 95, .75) 55%, rgba(0, 191, 255, .55) 100%);
}

.products-hero .hero-inner {
    position: relative;
    max-width: 90rem;
    color: #fff;
}

.products-hero .eyebrow {
    display: inline-block;
    font-size: 1.4rem;
    letter-spacing: .3rem;
    text-transform: uppercase;
    color: #00bfff;
    margin-bottom: 1.5rem;
}

.products-hero h1 {
    font-size: 5.2rem;
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 2rem;
}

.products-hero h1 span {
    color: #00bfff;
}

.products-hero p {
    font-size: 1.9rem;
    color: rgba(255, 255, 255, .85);
    max-width: 70rem;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    margin-top: 4rem;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats strong {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1;
}

.hero-stats span {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, .75);
    margin-top: .6rem;
}

/* ---------- Sticky filter bar ---------- */

.catalogue-toolbar {
    position: sticky;
    top: 8rem;
    z-index: 50;
    background: rgba(255, 255, 255, .97);
    border-bottom: .1rem solid #e6ebf1;
    box-shadow: 0 .4rem 1.2rem rgba(0, 46, 95, .06);
    padding: 1.6rem 2rem;
}

.toolbar-inner {
    max-width: 130rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.domain-chips {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    /* Fade the right edge so it is obvious more chips scroll into view. */
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 4rem), transparent);
    padding-right: 4rem;
}

.domain-chips::-webkit-scrollbar {
    display: none;
}

.domain-chip {
    --domain-color: #002e5f;
    flex: 0 0 auto;
    border: .15rem solid #d5dde7;
    background: #fff;
    color: #33475b;
    border-radius: 5rem;
    padding: .8rem 1.6rem;
    font-size: 1.4rem;
    cursor: pointer;
    white-space: nowrap;
    outline: none;
}

.domain-chip i {
    color: var(--domain-color);
    margin-right: .4rem;
}

.domain-chip span {
    display: inline-block;
    min-width: 2.2rem;
    margin-left: .4rem;
    padding: 0 .6rem;
    border-radius: 1rem;
    background: #eef2f7;
    font-size: 1.2rem;
}

.domain-chip:hover,
.domain-chip:focus-visible {
    border-color: var(--domain-color);
}

.domain-chip.active {
    background: var(--domain-color);
    border-color: var(--domain-color);
    color: #fff;
}

.domain-chip.active i {
    color: #fff;
}

.domain-chip.active span {
    background: rgba(255, 255, 255, .25);
}

.product-search {
    position: relative;
    flex: 0 0 28rem;
}

.product-search i {
    position: absolute;
    left: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8a9bb0;
    font-size: 1.4rem;
}

.product-search input {
    width: 100%;
    border: .15rem solid #d5dde7;
    border-radius: 5rem;
    padding: .9rem 1.6rem .9rem 4rem;
    font-size: 1.4rem;
    outline: none;
}

.product-search input:focus {
    border-color: #00bfff;
}

/* ---------- Catalogue ---------- */

.product-catalogue {
    background: #f5f8fb;
    padding: 4rem 2rem 6rem;
}

.catalogue-inner {
    max-width: 130rem;
    margin: 0 auto;
}

.domain-section {
    --domain-color: #002e5f;
    margin-bottom: 5rem;
    scroll-margin-top: 18rem;
}

.domain-header {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding-bottom: 1.6rem;
    margin-bottom: 2.4rem;
    border-bottom: .2rem solid #e1e8f0;
    position: relative;
}

.domain-header::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -.2rem;
    width: 9rem;
    height: .2rem;
    background: var(--domain-color);
}

.domain-icon {
    flex: 0 0 auto;
    width: 5.6rem;
    height: 5.6rem;
    border-radius: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--domain-color);
    color: #fff;
    font-size: 2.4rem;
}

.domain-header h2 {
    font-size: 2.8rem;
    font-weight: 500;
    color: #002e5f;
    margin: 0;
}

.domain-header p {
    font-size: 1.5rem;
    color: #5b6b7d;
    margin: .2rem 0 0;
}

.domain-count {
    margin-left: auto;
    font-size: 1.3rem;
    color: var(--domain-color);
    border: .15rem solid var(--domain-color);
    border-radius: 5rem;
    padding: .4rem 1.2rem;
    white-space: nowrap;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
    gap: 2.4rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.4rem;
    border: .1rem solid #e3e9f0;
    border-top: .4rem solid var(--domain-color);
    padding: 2.4rem;
    box-shadow: 0 .2rem .6rem rgba(0, 46, 95, .04);
}

.product-card:hover {
    transform: translateY(-.5rem);
    box-shadow: 0 1.4rem 3rem rgba(0, 46, 95, .12);
}

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.6rem;
}

.product-icon {
    width: 4.8rem;
    height: 4.8rem;
    border-radius: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--domain-color);
    /* A light tint of the domain colour, without needing a second variable. */
    background: color-mix(in srgb, var(--domain-color) 12%, #fff);
}

.product-status {
    font-size: 1.15rem;
    font-weight: 500;
    padding: .3rem 1rem;
    border-radius: 5rem;
}

.status-beta {
    background: #e6f7ff;
    color: #0979c8;
}

.status-coming-soon {
    background: #fff4dc;
    color: #a26a00;
}

.product-card h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #002e5f;
    margin-bottom: .8rem;
}

.product-summary {
    font-size: 1.45rem;
    color: #4a5a6c;
    line-height: 1.6;
    margin-bottom: 1.6rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.product-features li {
    font-size: 1.35rem;
    color: #33475b;
    padding: .4rem 0;
    display: flex;
    align-items: baseline;
}

.product-features i {
    color: var(--domain-color);
    font-size: 1.1rem;
    margin-right: 1rem;
}

.product-card-bottom {
    margin-top: auto;
    padding-top: 1.6rem;
    border-top: .1rem dashed #e1e8f0;
}

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.4rem;
}

.product-tag {
    font-size: 1.15rem;
    color: #5b6b7d;
    background: #f0f4f8;
    border-radius: .6rem;
    padding: .3rem .8rem;
}

.product-cta {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--domain-color);
}

.product-cta i {
    font-size: 1.1rem;
    margin-left: .4rem;
}

.product-cta:hover {
    color: #00bfff;
    text-decoration: none;
}

.product-cta:hover i {
    transform: translateX(.3rem);
}

.products-empty {
    display: none;
    text-align: center;
    padding: 6rem 2rem;
    font-size: 1.7rem;
    color: #5b6b7d;
}

.products-empty button {
    margin-top: 1.6rem;
    border: none;
    background: #002e5f;
    color: #fff;
    border-radius: 5rem;
    padding: .9rem 2.4rem;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ---------- Closing CTA ---------- */

.products-cta {
    background: #002e5f;
    color: #fff;
    text-align: center;
    padding: 6rem 2rem;
}

.products-cta h2 {
    font-size: 3.2rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.products-cta p {
    font-size: 1.7rem;
    color: rgba(255, 255, 255, .8);
    max-width: 70rem;
    margin: 0 auto 2.8rem;
}

.products-cta a {
    display: inline-block;
    background: #00bfff;
    color: #fff;
    font-size: 1.6rem;
    padding: 1.2rem 3.2rem;
    border-radius: 5rem;
}

.products-cta a:hover {
    background: #fff;
    color: #002e5f;
    text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
    .catalogue-toolbar {
        top: 7rem;
    }

    .toolbar-inner {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 1.2rem;
    }

    .product-search {
        flex: 1 1 auto;
    }
}

@media (max-width: 600px) {
    .products-hero h1 {
        font-size: 3.8rem;
    }

    .hero-stats {
        gap: 3rem;
    }

    .domain-header {
        flex-wrap: wrap;
    }

    .domain-count {
        margin-left: 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

.status-data {
    background: #fff1de;
    color: #a35a00;
}

/* ---------- Homepage "Our products" section (index.html#products) ---------- */

.home-products {
    text-align: center;
    padding: 0 2rem 7rem;
    background: #fff;
}

/* Match the other homepage headings, which style.css capitalises. */
.home-products .heading {
    text-transform: capitalize;
}

.hp-intro {
    font-size: 1.8rem;
    color: #444;
    margin: -1rem auto 4rem;
    max-width: 70rem;
}

.hp-body {
    max-width: 120rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(28rem, 38rem) 1fr;
    gap: 3rem;
    text-align: left;
    align-items: start;
}

.hp-featured {
    display: grid;
    gap: 2.4rem;
}

.hp-card-wrap {
    display: flex;
    flex-direction: column;
}

.hp-domain {
    font-size: 1.3rem;
    color: var(--domain-color);
    margin-bottom: .8rem;
    letter-spacing: .05rem;
}

.hp-domain i {
    margin-right: .4rem;
}

.hp-card-wrap .product-card {
    flex: 1;
}

.hp-domains {
    background: #f5f8fb;
    border-radius: 1.6rem;
    padding: 2.8rem;
}

.hp-domains h3 {
    font-size: 2rem;
    font-weight: 500;
    color: #002e5f;
    margin: 0 0 2rem;
}

.hp-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
    gap: 1.4rem;
}

.hp-tile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    border: .1rem solid #e3e9f0;
    border-left: .4rem solid var(--domain-color);
    border-radius: 1rem;
    padding: 1.4rem 1.6rem;
    color: #33475b;
}

.hp-tile:hover {
    text-decoration: none;
    transform: translateY(-.3rem);
    box-shadow: 0 .8rem 2rem rgba(0, 46, 95, .1);
    color: #002e5f;
}

.hp-tile-icon {
    flex: 0 0 auto;
    width: 3.8rem;
    height: 3.8rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--domain-color) 12%, #fff);
    color: var(--domain-color);
    font-size: 1.6rem;
}

.hp-tile-name {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 500;
}


.hp-more {
    margin-top: 4rem;
}

.hp-more-btn {
    display: inline-block;
    padding: 1.2rem 3.4rem;
    border-radius: 5rem;
    background: #002e5f;
    color: #fff;
    font-size: 1.7rem;
}

.hp-more-btn:hover {
    background: #00bfff;
    color: #fff;
    text-decoration: none;
}

.hp-more-btn i {
    margin-left: .6rem;
    font-size: 1.3rem;
}

@media (max-width: 900px) {
    .hp-body {
        grid-template-columns: 1fr;
    }
}

/* ---------- Industries without products yet (products.html#coming-soon) ---------- */

.coming-soon-section .domain-icon {
    background: #8a9bb0;
}

.coming-soon-section .domain-header::after {
    background: #8a9bb0;
}

.soon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(26rem, 1fr));
    gap: 1.4rem;
}

.soon-tile {
    --domain-color: #002e5f;
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    text-align: left;
    background: #fff;
    border: .1rem solid #e3e9f0;
    border-radius: 1.2rem;
    padding: 1.8rem;
    cursor: pointer;
    outline: none;
}

.soon-tile:hover,
.soon-tile:focus-visible {
    border-color: var(--domain-color);
    box-shadow: 0 .8rem 2rem rgba(0, 46, 95, .08);
}

.soon-tile.soon-highlight {
    border-color: var(--domain-color);
    box-shadow: 0 0 0 .3rem color-mix(in srgb, var(--domain-color) 25%, transparent);
}

.soon-tile-icon {
    flex: 0 0 auto;
    width: 4.2rem;
    height: 4.2rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--domain-color);
    background: color-mix(in srgb, var(--domain-color) 12%, #fff);
}

.soon-tile-text b {
    display: block;
    font-size: 1.6rem;
    font-weight: 500;
    color: #002e5f;
    margin-bottom: .3rem;
}

.soon-tile-text small {
    display: block;
    font-size: 1.3rem;
    color: #5b6b7d;
    line-height: 1.5;
}

/* ---------- Homepage: arrow on product industries, "Coming soon" row ---------- */

.hp-tile-arrow {
    font-size: 1.2rem;
    color: var(--domain-color);
}

.hp-soon-title {
    font-size: 1.4rem;
    font-weight: 500;
    color: #5b6b7d;
    letter-spacing: .1rem;
    text-transform: uppercase;
    margin: 2.4rem 0 1.2rem;
}

.hp-soon {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

.hp-soon-pill {
    font-size: 1.35rem;
    color: #5b6b7d;
    background: #fff;
    border: .1rem solid #e3e9f0;
    border-radius: 5rem;
    padding: .6rem 1.4rem;
}

.hp-soon-pill i {
    color: var(--domain-color);
    margin-right: .4rem;
}

.hp-soon-pill:hover {
    text-decoration: none;
    color: #002e5f;
    border-color: var(--domain-color);
}
