﻿/* ==========================================================================
   Clarity DevTest — Home page (clarityHome.css)
   Depends on: base.css
   ========================================================================== */


/* ==========================================================================
   Hero
   ========================================================================== */

.home_section_hero {
    position: relative;
    isolation: isolate;
    padding: calc(var(--home-header-height, 100px) + 3rem + 1rem) 0 clamp(2rem, 6vw, 4rem);
    margin-bottom: clamp(-2.5rem, -6vw, -4.5rem);
    overflow: visible;
}

.home_section_hero--bg-only {
    --home-header-height: 1px;
}

@media (max-width: 900px) {
    .home_section_hero {
        background: linear-gradient(160deg, #0170C0 0%, #0179D0 50%, #69B8FD 100%);
    }

    .home_section_hero__bg {
        display: none;
    }
}

@media (max-width: 800px) {
    .home_section_hero {
        padding-top: calc(var(--home-header-height, 120px) + 1rem);
    }

    .home_section_hero--bg-only {
        padding-top: calc(var(--home-header-height, 100px) + 3rem + 1rem);
    }
}

.home_section_hero__header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 500;
    background-color: transparent;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.home_section_hero__header.is-scrolled {
    background-color: var(--color-dark-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.home_section_hero__header.is-scrolled .home_section_hero__nav-link.is-active {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.home_section_hero__header.is-scrolled .home_section_hero__nav-link:not(.is-active):hover,
.home_section_hero__header.is-scrolled .home_section_hero__nav-link:not(.is-active):active {
    border-bottom-color: rgba(255, 255, 255, 0.75);
}

.home_section_hero__header-inner {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.home_section_hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    -webkit-clip-path: url(#hero-blob-clip);
    clip-path: url(#hero-blob-clip);
}

.home_section_hero__bg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home_section_hero__photo-mask {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    -webkit-clip-path: url(#hero-blob-clip);
    clip-path: url(#hero-blob-clip);
}

.home_section_hero__photo-container {
    position: relative;
    height: 100%;
}

.home_section_hero__team-photo-wrap {
    --hero-photo-edge-inset: 33%;
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(900px, 78vw, 1080px);
    transform: translateX(var(--hero-photo-edge-inset));
}

.home_section_hero__team-photo {
    display: block;
    width: 100%;
    height: auto;
}

.home_section_hero__photo-caption {
    position: absolute;
    left: 14%;
    bottom: 9.5%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    width: max-content;
    min-width: 11.5rem;
    margin: 0;
    padding: 0;
    transform: rotate(-8deg);
    color: var(--color-white);
    font-family: "Segoe Script", "Bradley Hand ITC", "Bradley Hand", "Snell Roundhand", "Apple Chancery", cursive;
    font-size: clamp(0.9rem, 1.45vw, 1.15rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-shadow: 0 1px 10px rgba(0, 32, 49, 0.35);
    pointer-events: none;
}

.home_section_hero__photo-caption-text {
    align-self: flex-start;
}

.home_section_hero__photo-caption-arrow {
    display: block;
    align-self: flex-end;
    width: 3.5rem;
    height: 1.85rem;
    margin-right: 0;
    transform: scaleY(-1);
}

@media (min-width: 1200px) {
    .home_section_hero__team-photo-wrap {
        width: 1080px;
    }
}

.home_section_hero__content {
    position: relative;
    z-index: 1;
}

.home_section_hero__eyebrow {
    font-weight: 600;
    margin-bottom: 0;
}

.home_section_hero__lead {
    margin-bottom: 2rem;
    max-width: 550px;
}

@media (max-width: 1000px) {
    .home_section_hero__lead {
        max-width: 450px;
    }
}

.home_section_hero__actions {
    display: flex;
    gap: 1rem;
}

@media (max-width: 900px) {
    .home_section_hero__photo-mask {
        -webkit-clip-path: none;
        clip-path: none;
        overflow: hidden;
    }

    .home_section_hero__team-photo-wrap {
        width: clamp(900px, 65vw, 520px);
    }

    .home_section_hero__photo-caption {
        left: 10%;
        bottom: 6.5%;
        min-width: 10rem;
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }

    .home_section_hero__photo-caption-arrow {
        width: 3rem;
        height: 1.6rem;
    }

    .home_section_hero__actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 850px) {
    .home_section_hero__lead {
        max-width: 50%;
    }

    .home_section_hero__photo-mask {
        /* display: none; */
    }
} 


@media (max-width: 800px) {
    .home_section_hero__team-photo-wrap {
        width: clamp(700px, 65vw, 520px);
    }
}

@media (max-width: 900px) {
    .home_section_hero__photo-mask {
        display: none;
    }

    .home_section_hero__lead {
        max-width: 450px;
    }
}


/* ==========================================================================
   Cybercriminals intro
   ========================================================================== */

.home_section_cybercriminals {
    padding: 4rem 0;
    margin-top: 2rem;
}

.home_section_cybercriminals__link {
    font-weight: 600;
}


/* ==========================================================================
   Services panels
   ========================================================================== */

.home_section_services {
    padding: 1rem 0 5rem;
    background-image:
        linear-gradient(to bottom, #FFFFFF 0%, rgba(255, 255, 255, 0) 100%),
        url('../images/home_services_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home_section_services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.home_section_services__grid--flex-test {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
}

.home_section_services__grid--flex-test .home_section_services__panel {
    flex: 0 1 auto;
}

.home_section_services__panel {
    background-color: var(--color-panel-white);
}

.home_section_services__panel--span-2 {
    grid-column: span 2;
}

.home_section_services__panel--span-1 {
    grid-column: span 1;
}

.home_section_services__panel-inner {
    max-width: 375px;
}

.home_section_services__panel p {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .home_section_services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .home_section_services__grid {
        grid-template-columns: 1fr;
    }

    .home_section_services__panel--span-2,
    .home_section_services__panel--span-1 {
        grid-column: span 1;
    }
}


/* ==========================================================================
   Cybersecurity solutions
   ========================================================================== */

.home_section_solutions {
    position: relative;
    z-index: 0;
    padding-top: 4rem;
    padding-bottom: clamp(10rem, 22vw, 16rem);
    overflow: visible;
    background-image: url('../images/home_solutions_bg.png');
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #013F88;
}

.home_section_solutions__contact-layout {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

.home_section_solutions__contact-copy {
    flex: 1;
    text-align: left;
    color: var(--color-white);
}

.home_section_solutions__contact-title {
    margin: 0 0 1.5rem;
    color: var(--color-white);
}

.home_section_solutions__contact-copy p {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--color-white);
}

.home_section_solutions__fine-print {
    max-width: 1100px;
    margin: 0.15rem auto 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--color-white);
    opacity: 0.85;
}

@media (max-width: 900px) {
    .home_section_solutions__fine-print {
        max-width: 800px;
        text-align: center;
    }
}

.home_section_solutions__form-card {
    flex: 1;
    background-color: var(--color-panel-white);
}

@media (max-width: 900px) {
    .home_section_solutions__contact-layout {
        flex-direction: column;
        gap: 2rem;
        max-width: 800px;
    }

    .home_section_solutions__contact-title {
        text-align: center;
    }

    .home_section_solutions__contact-copy {
        text-align: center;
    }
}

.home_section_solutions__steps {
    list-style: none;
    padding: 3rem 0 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3rem;
}

.home_section_industries .home_section_solutions__steps {
    padding-bottom: 1.5rem;
}

.home_section_solutions__step {
    background-color: var(--color-panel-white);
}

.home_section_solutions__step-icon {
    margin-bottom: 0.5rem;
}

.home_section_solutions__step h3,
.home_section_solutions__step p {
    color: var(--color-dark-blue);
}

.home_section_solutions__step h3 {
    margin-bottom: 0.5rem;
}

.home_section_solutions__step p {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .home_section_solutions__steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 540px) {
    .home_section_solutions__steps {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Industries
   ========================================================================== */

.home_section_industries {
    --industries-curve-overlap: clamp(2.5rem, 7vw, 5.5rem);
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * var(--industries-curve-overlap));
    padding: var(--industries-curve-overlap) 0 4rem;
    overflow: visible;
    background-color: transparent;
}

.home_section_industries__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(-1 * var(--industries-curve-overlap));
    bottom: 0;
    z-index: 0;
    pointer-events: none;
}

.home_section_industries__bg svg {
    display: block;
    width: 100%;
    height: 100%;
}

.home_section_industries__content {
    position: relative;
    z-index: 1;
}

.home_section_industries__heading {
    max-width: 900px;
    margin: -1.25rem auto 0;
}

@media (max-width: 1476px) {
    .home_section_solutions {
        padding-bottom: 4rem;
    }

    .home_section_industries {
        --industries-curve-overlap: 0px;
        margin-top: 0;
        background-color: #FFFFFF;
        padding-top: 2.5rem;
    }

    .home_section_industries__bg {
        display: none;
    }

    .home_section_industries__heading {
        margin-top: 0;
    }
}

.home_section_industries__layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
    place-items: center;
}

.home_section_industries__heading-col {
    grid-column: span 4;
}

.home_section_industries__panels {
    grid-column: span 8;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home_section_industries__panel {
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
}

.home_section_industries__panel--span-2 {
    grid-column: span 2;
}

.home_section_industries__panel--span-1 {
    grid-column: span 1;
}

.home_section_industries__panel-label {
    font-weight: 600;
}

@media (max-width: 900px) {
    .home_section_industries__layout {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .home_section_industries__heading-col,
    .home_section_industries__panels {
        grid-column: span 1;
    }

    .home_section_industries__panels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .home_section_industries__panels {
        grid-template-columns: 1fr;
    }

    .home_section_industries__panel--span-2,
    .home_section_industries__panel--span-1 {
        grid-column: span 1;
    }
}


/* ==========================================================================
   Trusted partner + testimonial slider
   ========================================================================== */

.home_section_trusted_partner {
    padding: 4rem 0;
}

.home_section_trusted_partner__card {
    background-color: var(--color-bright-blue);
    border-radius: 1.75rem;
    padding: 5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    place-items: center;
}

@media (max-width: 900px) {
    .home_section_trusted_partner__card {
        grid-template-columns: minmax(0, 1fr);
        justify-items: stretch;
        padding: 2rem;
        text-align: center;
    }

    .home_section_trusted_partner__card > * {
        min-width: 0;
        max-width: 100%;
    }

    .home_section_trusted_partner__card h2 {
        overflow-wrap: break-word;
    }
}

.quote-slider {
    width: 100%;
}

.quote-slider__viewport {
    overflow: hidden;
}

.quote-slider__track {
    display: flex;
    transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    .quote-slider__track {
        transition: none;
    }
}

.quote-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    margin: 0;
    border-radius: 12px;
    padding: 1.5rem;
    background-color: rgba(0, 32, 49, 0.75);
    color: var(--color-white);
    text-align: center;
}

.quote-slide p {
    margin-bottom: 0;
}

.quote-slide footer {
    margin-top: 1rem;
}

.quote-slide cite {
    font-style: normal;
    font-weight: 600;
}

.quote-slide__icon {
    display: block;
    margin: 0 auto 1rem;
}

.quote-slider__dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.quote-slider__dot {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.quote-slider__dot::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 0.625rem;
    height: 0.625rem;
    margin: auto;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.75);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.quote-slider__dot:hover::before {
    background-color: var(--color-white);
}

.quote-slider__dot.is-active::before {
    background-color: var(--color-white);
    transform: scale(1.15);
}

.quote-slider__dot:focus { outline: none; }

.quote-slider__dot:focus-visible {
    outline: 2px solid var(--color-light-blue);
    outline-offset: 2px;
}


/* ==========================================================================
   Contact form
   ========================================================================== */

.home_section_contact {
    padding: 4rem 0 2.5rem;
}

.home_section_contact__intro {
    max-width: 902px;
    margin: 0 auto;
    padding: 1.5rem 0 0.5rem;
}

.home_section_contact h2,
.topics-slide h2 {
    margin: 0 0 1rem;
    color: var(--color-dark-blue);
}

.home_section_contact__lead {
    margin: 0;
    line-height: 1.5;
    color: var(--color-dark-blue);
}

.home_section_contact__emphasis {
    font-weight: 600;
}

.topics-slider {
    max-width: 992px;
    margin: 0 auto;
    padding: 1.5rem 0 0.5rem;
}

.topics-slider:focus {
    outline: none;
}

.topics-slider__viewport {
    overflow: hidden;
}

.topics-slider__track {
    display: flex;
    transition: transform 0.4s ease;
}

@media (prefers-reduced-motion: reduce) {
    .topics-slider__track {
        transition: none;
    }
}

.topics-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
    text-align: center;
}

.topics-slider__dots {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.topics-slider__dot {
    position: relative;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.topics-slider__dot::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 0.625rem;
    height: 0.625rem;
    margin: auto;
    border-radius: 50%;
    background-color: rgba(0, 32, 49, 0.35);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.topics-slider__dot:hover::before {
    background-color: var(--color-dark-blue);
}

.topics-slider__dot.is-active::before {
    background-color: var(--color-dark-blue);
    transform: scale(1.15);
}

.topics-slider__dot:focus {
    outline: none;
}

.topics-slider__dot:focus-visible {
    outline: 2px solid var(--color-bright-blue);
    outline-offset: 2px;
}

.clarity-form__recaptcha-note {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    margin-top: 0.5rem;
    text-align: right;
    font-size: var(--text-xs);
    line-height: 1.2;
    color: var(--color-text-muted);
}

.clarity-form__recaptcha-logo {
    display: block;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.clarity-form__recaptcha-note a {
    color: inherit;
    text-decoration: underline;
}

/* Google's floating v3 badge is redundant with the attribution text above,
   which satisfies their branding requirement — hide the floating badge. */
.grecaptcha-badge {
    visibility: hidden;
}
