/* =========================================================
   SCIRIDGE TECHNOLOGIES
   GLOBAL / BASE STYLES
========================================================= */


/* Global variables */
@import url("variable.css");

/* Google Font */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");


*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;

    font-size: 16px;

    -webkit-text-size-adjust: 100%;
}


body {
    min-height: 100vh;

    background: var(--color-bg);

    color: var(--color-text);

    font-family: var(--font-primary);
    font-size: var(--font-base);
    font-weight: var(--weight-regular);
    line-height: var(--line-normal);

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* =========================================================
   BODY WHEN MOBILE MENU IS OPEN
========================================================= */

body.menu-open {
    overflow: hidden;
}


/* =========================================================
   BASIC ELEMENTS
========================================================= */

img,
svg,
video,
canvas {
    display: block;

    max-width: 100%;
}


img {
    height: auto;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    border-radius: 0;
}


a {
    color: inherit;

    text-decoration: none;
}


ul,
ol {
    margin: 0;
    padding: 0;
}


p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-dark);

    font-family: var(--font-primary);

    font-weight: var(--weight-semibold);

    line-height: var(--line-tight);
}


/* =========================================================
   SELECTION
========================================================= */

::selection {
    background: var(--color-primary);

    color: var(--color-white);
}


/* =========================================================
   FOCUS
========================================================= */

:focus-visible {
    outline: 2px solid var(--color-accent);

    outline-offset: 4px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(
        calc(100% - 80px),
        var(--container-width)
    );

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   WIDE CONTAINER
========================================================= */

.container-wide {
    width: min(
        calc(100% - 80px),
        var(--container-wide)
    );

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   NARROW CONTAINER
========================================================= */

.container-narrow {
    width: min(
        calc(100% - 80px),
        var(--container-narrow)
    );

    margin-right: auto;
    margin-left: auto;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   SKIP LINK
========================================================= */

.skip-link {
    position: fixed;

    top: -100px;
    left: 20px;

    z-index: 9999;

    padding: 12px 18px;

    background: var(--color-primary);

    color: var(--color-white);

    font-size: var(--font-sm);
    font-weight: var(--weight-semibold);

    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 20px;
}


/* =========================================================
   HORIZONTAL RULE
========================================================= */

hr {
    width: 100%;
    height: 1px;

    margin: 0;

    border: 0;

    background: var(--color-border);
}


/* =========================================================
   TEXT UTILITIES
========================================================= */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}


/* =========================================================
   DISPLAY UTILITIES
========================================================= */

.hidden {
    display: none !important;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}


/* =========================================================
   COLOR UTILITIES
========================================================= */

.text-primary {
    color: var(--color-primary);
}

.text-accent {
    color: var(--color-accent);
}

.text-muted {
    color: var(--color-text-muted);
}

.text-light {
    color: var(--color-text-light);
}


/* =========================================================
   BACKGROUND UTILITIES
========================================================= */

.bg-white {
    background: var(--color-white);
}

.bg-light {
    background: var(--color-bg-light);
}

.bg-dark {
    background: var(--color-bg-dark);
}


/* =========================================================
   GLOBAL IMAGE WRAPPER
========================================================= */

.image-cover {
    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   GLOBAL SECTION HELPERS
========================================================= */

.section {
    width: 100%;
}

.section-dark {
    background: var(--color-bg-dark);

    color: var(--color-white);
}


/* =========================================================
   GLOBAL PAGE HEADER
   Used by inner pages
========================================================= */

.page-hero {
    position: relative;

    min-height: 430px;

    display: flex;
    align-items: center;

    padding: 100px 0;

    background: var(--color-bg-dark);

    color: var(--color-white);

    overflow: hidden;
}


.page-hero-content {
    position: relative;

    z-index: 1;

    max-width: 900px;
}


.page-hero .section-kicker {
    margin-bottom: var(--space-5);
}


.page-hero h1 {
    margin-bottom: var(--space-6);

    color: var(--color-white);

    font-size: clamp(
        46px,
        7vw,
        84px
    );

    font-weight: var(--weight-medium);

    line-height: var(--line-tight);

    letter-spacing: var(--tracking-tight);
}


.page-hero h1 span {
    color: var(--color-accent);
}


.page-hero-description {
    max-width: 680px;

    color: #b5b5b5;

    font-size: var(--font-md);

    line-height: var(--line-relaxed);
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 9px;

    margin-bottom: var(--space-6);

    color: #999999;

    font-size: var(--font-xs);
}


.breadcrumbs a {
    color: #aaaaaa;

    transition:
        color var(--transition-fast);
}


.breadcrumbs a:hover {
    color: var(--color-white);
}


.breadcrumb-separator {
    color: #666666;
}


/* =========================================================
   GLOBAL CONTENT TYPOGRAPHY
========================================================= */

.content-area {
    color: var(--color-text);

    font-size: var(--font-base);

    line-height: var(--line-relaxed);
}


.content-area p {
    margin-bottom: var(--space-5);
}


.content-area h2 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-5);

    font-size: var(--font-2xl);
}


.content-area h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-4);

    font-size: var(--font-xl);
}


.content-area ul,
.content-area ol {
    margin-bottom: var(--space-6);

    padding-left: 22px;
}


.content-area li {
    margin-bottom: var(--space-2);
}


/* =========================================================
   GLOBAL FORM STYLES
========================================================= */

input,
textarea,
select {
    appearance: none;

    -webkit-appearance: none;
}


input,
textarea,
select {
    border-radius: 0;
}


input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
    cursor: not-allowed;

    opacity: 0.6;
}


/* =========================================================
   SELECT ARROW
========================================================= */

.form-group select {
    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            var(--color-text-light) 50%
        ),
        linear-gradient(
            135deg,
            var(--color-text-light) 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    padding-right: 40px;
}


/* =========================================================
   ERROR / SUCCESS MESSAGES
========================================================= */

.form-message {
    padding: 14px 16px;

    font-size: var(--font-sm);

    line-height: var(--line-normal);
}


.form-message-success {
    background: #f1f8f3;

    border: 1px solid #cce5d2;

    color: #276238;
}


.form-message-error {
    background: #fff4f4;

    border: 1px solid #f0cccc;

    color: #9d3030;
}


/* =========================================================
   TABLES
========================================================= */

table {
    width: 100%;

    border-collapse: collapse;
}


th,
td {
    padding: 14px 16px;

    border-bottom: 1px solid var(--color-border);

    text-align: left;

    font-size: var(--font-sm);
}


th {
    color: var(--color-text-dark);

    font-weight: var(--weight-semibold);
}


/* =========================================================
   RESPONSIVE EMBEDS
========================================================= */

.video-wrapper,
.embed-wrapper {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;
}


.video-wrapper iframe,
.embed-wrapper iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    border: 0;
}

.form-success-message {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

.form-error-message {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #b00020;
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1440px) {

    .container {
        width: min(
            calc(100% - 100px),
            var(--container-width)
        );
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .container,
    .container-wide,
    .container-narrow {
        width: calc(100% - 60px);
    }

    .page-hero {
        min-height: 380px;

        padding: 80px 0;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .container,
    .container-wide,
    .container-narrow {
        width: calc(100% - 40px);
    }

    .page-hero {
        min-height: 340px;

        padding: 70px 0;
    }

    .page-hero h1 {
        font-size: clamp(
            42px,
            12vw,
            62px
        );
    }

    .page-hero-description {
        font-size: var(--font-base);
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .container,
    .container-wide,
    .container-narrow {
        width: calc(100% - 28px);
    }

    .page-hero {
        min-height: 300px;

        padding: 60px 0;
    }

    .breadcrumbs {
        margin-bottom: var(--space-5);
    }

}