/* ==========================================================================
   GEANDIS — Main Stylesheet
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Colors */
    --color-primary: #375DA6;
    --color-primary-dark: #2C4C8A;
    --color-navy: #223B75;
    --color-text: #2F3A56;
    --color-text-soft: #3D5A9E;
    --color-text-muted: #6B7896;
    --color-bg: #FFFFFF;
    --color-bg-light: #F0F7FD;
    --color-white: #FFFFFF;
    --color-footer: #0A1D44;

    --color-bar-1: #1C5BA8;
    --color-bar-2: #A9C1DD;
    --color-bar-3: #E5E5E5;

    /* Typography */
    --font-display: "Montserrat", Arial, sans-serif;
    --font-body: "Nunito Sans", Arial, sans-serif;

    /* Layout */
    --container-width: 1240px;
    --container-padding: 24px;
    --header-height: 130px;
    --header-height-scrolled: 72px;

    /* Healthcare visual: nurse image width drives the whole composition */
    --hc-img-w: clamp(240px, 25vw, 400px);

    /* Motion */
    --transition: 0.3s ease;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 18px;
    line-height: 1.4;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1, h2, h3, p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: calc(var(--container-width) + var(--container-padding) * 2);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ---------- 3. Header ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
    background: transparent;
    transition: height var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
    height: var(--header-height-scrolled);
    background: var(--color-primary);
    box-shadow: 0 4px 20px rgba(20, 40, 90, 0.18);
}

.site-header__inner {
    display: flex;
    justify-content: space-between; /* equal gaps: logo | nav | language */
    align-items: center;
}

.site-header__logo img {
    width: 190px;
    transition: width var(--transition);
}

.site-header.is-scrolled .site-header__logo img {
    width: 150px;
}

.main-nav__list {
    display: flex;
    align-items: center;
}

.main-nav__list li + li::before {
    content: "|";
    margin: 0 10px;
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--color-white);
}

.main-nav__link {
    position: relative;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-white);
}

.main-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}

.main-nav__link:hover::after,
.main-nav__link:focus-visible::after {
    transform: scaleX(1);
}

/* Language switch (top right) */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--color-white);
}

.lang-switch__link {
    padding: 4px 2px;
    opacity: 0.6;
    transition: opacity var(--transition);
}

.lang-switch__link:hover,
.lang-switch__link:focus-visible,
.lang-switch__link.is-active {
    opacity: 1;
}

.lang-switch__link.is-active {
    font-weight: 700;
}

.lang-switch__divider {
    opacity: 0.5;
}

/* Mobile menu toggle (hidden on desktop) */
.nav-toggle {
    display: none;
    margin-left: 16px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    height: 2px;
    background: var(--color-white);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle__bar + .nav-toggle__bar {
    margin-top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------- 4. Hero slider ---------- */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 480px;
    overflow: hidden;
    background: var(--color-primary);
}

/* Darkens the top so the header stays readable over any video */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(20, 40, 90, 0.55) 0%, rgba(20, 40, 90, 0) 30%);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide__media {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shade the lower-left so captions stay readable on bright footage */
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top right, rgba(15, 30, 70, 0.7) 0%, rgba(15, 30, 70, 0.25) 45%, rgba(15, 30, 70, 0) 70%);
}

.hero-slide__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 120px;
    z-index: 1;
    color: var(--color-white);
    text-shadow: 0 2px 16px rgba(10, 25, 60, 0.35);
}

.hero-slide__eyebrow,
.hero-slide__title,
.hero-slide__text {
    max-width: 640px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-slide.is-active .hero-slide__eyebrow,
.hero-slide.is-active .hero-slide__title,
.hero-slide.is-active .hero-slide__text {
    opacity: 1;
    transform: none;
}

/* Staggered entrance */
.hero-slide.is-active .hero-slide__eyebrow { transition-delay: 0.3s; }
.hero-slide.is-active .hero-slide__title { transition-delay: 0.45s; }
.hero-slide.is-active .hero-slide__text { transition-delay: 0.6s; }

.hero-slide__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.hero-slide__eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

.hero-slide__title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 56px;
    line-height: 1.1;
}

.hero-slide__title strong {
    display: block;
    font-weight: 700;
}

.hero-slide__text {
    margin-top: 20px;
    max-width: 520px;
    font-size: 18px;
    line-height: 1.5;
    opacity: 0;
}

.hero-slide.is-active .hero-slide__text {
    opacity: 0.9;
}

/* Invisible shield over the videos: right-click / drag hit this layer, not the media */
.hero-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: transparent;
    -webkit-user-select: none;
    user-select: none;
}

.hero-slider__controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 40px;
    z-index: 3;
}

.hero-slider__controls[hidden] {
    display: none;
}

.hero-slider__dots {
    display: flex;
    gap: 8px;
}

/* Each indicator is a horizontal track; the active one fills with slide progress */
.hero-slider__dot {
    --progress: 0;
    position: relative;
    width: 64px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.hero-slider__dot::before,
.hero-slider__dot::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 3px;
}

/* Track */
.hero-slider__dot::before {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 4px rgba(10, 25, 60, 0.35);
    transition: background-color var(--transition);
}

/* Progress fill */
.hero-slider__dot::after {
    background: var(--color-white);
    transform: scaleX(var(--progress));
    transform-origin: left;
}

.hero-slider__dot:hover::before,
.hero-slider__dot:focus-visible::before {
    background: rgba(255, 255, 255, 0.75);
}

/* ---------- 5. Shared section title ---------- */
.section-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: var(--color-navy);
}

.section-title__light {
    font-weight: 300;
}

.title-bar {
    display: block;
    width: 290px;
    height: 16px;
    margin-top: 12px;
    background: linear-gradient(
        to right,
        var(--color-bar-1) 0 30%,
        var(--color-bar-2) 30% 66%,
        var(--color-bar-3) 66% 100%
    );
}

/* ---------- 6. Our Solutions ---------- */
.solutions {
    padding: 170px 0 140px;
}

.solutions__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.6fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.solutions__headline {
    margin-top: 36px;
    color: var(--color-text);
}

.solutions__headline-light {
    display: block;
    font-weight: 300;
    font-size: clamp(40px, 3.6vw, 56px);
    white-space: nowrap;
    line-height: 1.1;
}

.solutions__headline-bold {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.2;
    color: var(--color-navy);
}

.solutions__features {
    margin-top: 40px;
    font-size: 24px;
    line-height: 1.25;
    color: var(--color-text-soft);
}

.solutions__features li + li {
    margin-top: 22px;
}

/* Category slider (Healthcare / Architecture / Construction) */
.solutions-tabs {
    --solutions-duration: 6s;
    margin-top: 36px;
}

.solutions-tabs__nav {
    display: flex;
    gap: 28px;
}

.solutions-tabs__tab {
    position: relative;
    padding: 0 0 12px;
    border: 0;
    background: transparent;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #A3ADC2;
    cursor: pointer;
    transition: color var(--transition);
}

.solutions-tabs__tab:hover,
.solutions-tabs__tab:focus-visible,
.solutions-tabs__tab.is-active {
    color: var(--color-navy);
}

/* Track + progress fill under each tab */
.solutions-tabs__tab::before,
.solutions-tabs__tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
}

.solutions-tabs__tab::before {
    background: var(--color-bar-3);
}

.solutions-tabs__tab::after {
    background: var(--color-bar-1);
    transform: scaleX(0);
    transform-origin: left;
}

.solutions-tabs__tab.is-active::after {
    animation: solutions-progress var(--solutions-duration) linear forwards;
}

/* Pause auto-rotation while the user is reading / interacting */
.solutions-tabs.is-paused .solutions-tabs__tab.is-active::after,
.solutions-tabs:hover .solutions-tabs__tab.is-active::after,
.solutions-tabs:focus-within .solutions-tabs__tab.is-active::after {
    animation-play-state: paused;
}

@keyframes solutions-progress {
    to { transform: scaleX(1); }
}

/* Panels share one grid cell so the height never jumps */
.solutions-tabs__panels {
    display: grid;
}

.solutions-tabs__panel {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.solutions-tabs__panel.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.solutions-tabs .solutions__headline {
    margin-top: 32px;
}

.solutions__media {
    margin-right: -60px;
}

.solutions__media img {
    width: 100%;
    mix-blend-mode: multiply; /* blends the image's white background into the section */
}

/* ---------- 7. Healthcare ---------- */
.healthcare {
    position: relative;
    display: flow-root; /* keeps the visual's negative margin from collapsing into the section */
    padding-bottom: 110px;
    background: var(--color-bg-light);
}

.healthcare__visual {
    --nurse-shift: 0px; /* set by JS while scrolling */
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: calc(var(--hc-img-w) * -0.36); /* head rises above the section */
    margin-bottom: calc(var(--hc-img-w) * -0.22); /* pull groups up under the revealed title */
}

.healthcare__title {
    position: absolute;
    top: calc(var(--hc-img-w) * 0.81);
    left: 50%;
    z-index: 0;
    transform: translate(-50%, -50%);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: min(calc(var(--hc-img-w) * 0.245), 11vw); /* stays inside narrow viewports */
    line-height: 1;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--color-navy);
}

/* Cyan → electric blue gradient that flows continuously from left to right.
   One tile = cyan → deep blue → cyan; it is twice the text width and repeats,
   so shifting by exactly one tile (-200%) loops seamlessly. */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
    .healthcare__title {
        background-image: linear-gradient(
            to right,
            #00E1FF 0%,
            #0A84FF 25%,
            #0A1BF0 50%,
            #0A84FF 75%,
            #00E1FF 100%
        );
        background-size: 200% 100%;
        background-repeat: repeat-x;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        animation: healthcare-gradient-flow 10s linear infinite;
    }
}

@keyframes healthcare-gradient-flow {
    from { background-position: 0% 0; }
    to   { background-position: -200% 0; }
}

.healthcare__image {
    position: relative;
    z-index: 1;
    width: var(--hc-img-w);
    transform: translateY(var(--nurse-shift));
    will-change: transform;
}

/* Product groups: cards */
.healthcare__groups {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 0;
}

.hc-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 40px 36px 32px;
    background: var(--color-white);
    border: 1px solid rgba(34, 59, 117, 0.08);
    box-shadow: 0 12px 32px rgba(20, 40, 90, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Top accent that extends on hover */
.hc-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 56px;
    height: 3px;
    background: var(--color-bar-1);
    transition: width 0.5s ease;
}

.hc-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(20, 40, 90, 0.12);
}

.hc-card:hover::before {
    width: calc(100% + 2px);
}

.hc-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hc-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #E8F1FB;
    color: var(--color-bar-1);
    transition: background-color var(--transition), color var(--transition);
}

.hc-card:hover .hc-card__icon {
    background: var(--color-bar-1);
    color: var(--color-white);
}

.hc-card__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hc-card__index {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 300;
    line-height: 1;
    color: #D5E2F1;
}

.hc-card__title {
    margin-top: 28px;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-navy);
}

.hc-card__text {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.hc-card__list {
    margin-top: 24px;
    border-top: 1px solid rgba(34, 59, 117, 0.1);
}

.hc-card__list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(34, 59, 117, 0.08);
    font-size: 17px;
    line-height: 1.35;
    color: var(--color-text);
}

.hc-card__list li:last-child {
    border-bottom: 0;
}

/* Small check mark */
.hc-card__list li::before {
    content: "";
    flex: none;
    width: 5px;
    height: 10px;
    margin: -3px 3px 0;
    border: solid var(--color-bar-1);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ---------- 8. Global Partner ---------- */
.partner {
    padding: 160px 0 60px;
}

.partner__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
    align-items: start;
    gap: 40px;
}

.partner__content {
    padding-top: 50px;
}

.partner__title {
    max-width: 520px;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 34px;
    line-height: 1.3;
    color: var(--color-navy);
}

.partner__logo {
    width: 310px;
    margin: 16px 0 0 -8px;
    filter: grayscale(1);
    opacity: 0.18;
}

.partner__map img {
    width: 100%;
    mix-blend-mode: multiply;
}

/* ---------- 9. About (short) ---------- */
.about {
    padding: 40px 0 120px; /* small top: the white partner section above already adds space */
    background: var(--color-bg);
    color: var(--color-text);
}

.about__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: end;
    gap: 80px;
}

.about__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--color-navy);
}

.about__eyebrow::before {
    content: "";
    width: 32px;
    height: 2px;
    background: currentColor;
}

.about__title {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(34px, 3.2vw, 48px);
    line-height: 1.15;
}

.about__title strong {
    display: block;
    font-weight: 700;
    color: var(--color-navy);
}

.about__text {
    font-size: 19px;
    line-height: 1.6;
    color: var(--color-text-soft);
}

/* Visual cards: poster image (video plays on hover), text over a dark gradient */
.about__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 72px 0 0;
    padding: 0;
    list-style: none;
}

.about-card {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 16px;
    background: var(--color-navy);
    color: var(--color-white);
    isolation: isolate;
}

.about-card__media {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.about-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--media-position, center);
    transform: scale(1.02);
    transition: transform 1.2s ease;
}

.about-card:hover .about-card__video {
    transform: scale(1.08);
}

/* Readability gradient */
.about-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 30, 70, 0.94) 0%, rgba(15, 30, 70, 0.6) 45%, rgba(15, 30, 70, 0.08) 80%);
    transition: opacity var(--transition);
}

.about-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px;
}

/* Accent line that grows on hover */
.about-card__body::before {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-bottom: 20px;
    background: var(--color-white);
    transition: width 0.5s ease;
}

.about-card:hover .about-card__body::before {
    width: 72px;
}

.about-card__index {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.16em;
    opacity: 0.75;
}

.about-card__title {
    margin-top: 8px;
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.about-card__text {
    margin-top: 10px;
    font-size: 17px;
    line-height: 1.5;
    opacity: 0.9;
}

/* ---------- 10. Contact ---------- */
.contact {
    padding: 140px 0;
    background: var(--color-bg-light);
}

.contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    gap: 80px;
}

.contact__headline {
    margin-top: 36px;
}

.contact__headline-light {
    display: block;
    font-weight: 300;
    font-size: clamp(36px, 3.2vw, 48px);
    line-height: 1.15;
    color: var(--color-text);
}

.contact__headline-bold {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    font-size: clamp(30px, 2.6vw, 38px);
    line-height: 1.2;
    color: var(--color-navy);
}

.contact__text {
    max-width: 420px;
    margin-top: 28px;
    font-size: 20px;
    line-height: 1.5;
    color: var(--color-text-soft);
}

/* Form */
.contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.form-field--full {
    grid-column: 1 / -1;
}

.form-field__label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-navy);
}

.form-field__input {
    width: 100%;
    padding: 12px 0;
    border: 0;
    border-bottom: 2px solid #D5E2F1;
    border-radius: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 400;
    color: var(--color-text);
    transition: border-color var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.form-field__input:focus {
    outline: none;
    border-bottom-color: var(--color-bar-1);
}

.form-field__select {
    padding-right: 28px;
    background-image: linear-gradient(45deg, transparent 50%, var(--color-navy) 50%),
                      linear-gradient(135deg, var(--color-navy) 50%, transparent 50%);
    background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    cursor: pointer;
}

.form-field__select:invalid {
    color: var(--color-text-muted);
}

.form-field__textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field__error {
    min-height: 18px;
    margin-top: 6px;
    font-size: 14px;
    color: #C0392B;
}

.form-field.has-error .form-field__input {
    border-bottom-color: #C0392B;
}

/* Custom checkbox */
.form-check {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
}

.form-check__input {
    position: absolute;
    opacity: 0;
    width: 20px;
    height: 20px;
    margin: 0;
}

.form-check__box {
    position: relative;
    flex: none;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    border: 2px solid #B8CAE3;
    transition: border-color var(--transition), background-color var(--transition);
}

.form-check__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--color-white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: transform var(--transition);
}

.form-check__input:checked + .form-check__box {
    border-color: var(--color-bar-1);
    background: var(--color-bar-1);
}

.form-check__input:checked + .form-check__box::after {
    transform: rotate(45deg) scale(1);
}

.form-check__input:focus-visible + .form-check__box {
    outline: 2px solid var(--color-bar-1);
    outline-offset: 3px;
}

.form-field.has-error .form-check__box {
    border-color: #C0392B;
}

.form-check__label {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-muted);
}

.contact-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-form__footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 16px;
}

.contact-form__status {
    font-size: 16px;
    color: var(--color-text-soft);
}

.contact-form__status.is-success {
    color: #1E8E5A;
}

.contact-form__status.is-error {
    color: #C0392B;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    border: 0;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color var(--transition), opacity var(--transition);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: var(--color-navy);
}

.btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* ---------- 11. Footer ---------- */
.site-footer {
    background: var(--color-footer);
    color: rgba(255, 255, 255, 0.78);
    font-size: 17px;
}

.site-footer a {
    transition: color var(--transition), opacity var(--transition);
}

.site-footer__main {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 48px;
    padding-top: 96px;
    padding-bottom: 80px;
}

.site-footer__logo {
    width: 200px;
}

.site-footer__about {
    max-width: 360px;
    margin-top: 32px;
    line-height: 1.7;
}

.site-footer__social {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-white);
}

.social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.social-link:hover,
.social-link:focus-visible {
    border-color: var(--color-white);
    background: var(--color-white);
    color: var(--color-footer);
}

.site-footer__heading {
    margin-bottom: 28px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-white);
}

.site-footer__links li + li {
    margin-top: 16px;
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible,
.site-footer__contact a:hover,
.site-footer__contact a:focus-visible {
    color: var(--color-white);
}

.site-footer__contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    line-height: 1.5;
}

.site-footer__contact li + li {
    margin-top: 18px;
}

.site-footer__contact svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    fill: var(--color-bar-2);
}

.site-footer__address {
    font-style: normal;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 28px;
}

.site-footer__copy {
    font-size: 15px;
}

.site-footer__credit {
    display: block;
    opacity: 0.85;
}

.site-footer__credit:hover,
.site-footer__credit:focus-visible {
    opacity: 1;
}

.site-footer__credit img {
    width: 96px;
}

/* ---------- 12. Reveal-on-scroll animation ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal],
    .hero-slide__eyebrow,
    .hero-slide__title,
    .hero-slide__text {
        transform: none;
        transition: none;
    }

    [data-reveal] {
        opacity: 1;
    }

    .solutions-tabs__tab.is-active::after {
        animation: none;
        transform: scaleX(1);
    }

    .solutions-tabs__panel {
        transform: none;
        transition: none;
    }
}

/* ---------- 13. Responsive ---------- */
@media (max-width: 1200px) {
    .solutions__media {
        margin-right: 0;
    }
}

@media (max-width: 1024px) {
    .site-footer__main {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-top: 72px;
        padding-bottom: 56px;
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }

    .about {
        padding: 32px 0 96px;
    }

    .about__top {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about__cards {
        gap: 16px;
        margin-top: 56px;
    }

    .about-card__body {
        padding: 24px;
    }

    .about-card__title {
        font-size: 22px;
    }

    .about-card__text {
        font-size: 15px;
    }

    .contact {
        padding: 100px 0;
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    :root {
        --header-height: 100px;
    }

    .site-header__logo img {
        width: 160px;
    }

    .main-nav__link,
    .main-nav__list li + li::before {
        font-size: 13px;
    }

    .hero-slide__title {
        font-size: 44px;
    }

    .solutions {
        padding: 120px 0 120px;
    }

    .solutions__inner,
    .partner__inner {
        grid-template-columns: 1fr;
    }

    .solutions__headline-light {
        font-size: 46px;
    }

    .solutions__headline-bold {
        font-size: 32px;
    }

    .healthcare__groups {
        gap: 20px;
    }

    .hc-card {
        padding: 32px 24px 24px;
    }

    .hc-card__list li {
        font-size: 16px;
    }

    .partner {
        padding: 100px 0 40px;
    }

    .partner__content {
        padding-top: 0;
    }
}

@media (max-width: 900px) {
    .healthcare__groups {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 80px;
        --header-height-scrolled: 68px;
        --container-padding: 20px;
    }

    .site-header__logo img,
    .site-header.is-scrolled .site-header__logo img {
        width: 130px;
    }

    .lang-switch {
        margin-left: auto;
    }

    .nav-toggle {
        display: block;
    }

    /* Full-screen mobile menu */
    .site-header__logo,
    .lang-switch,
    .nav-toggle {
        position: relative;
        z-index: 1; /* stay above the open menu */
    }

    .main-nav {
        position: fixed;
        inset: 0;
        z-index: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: var(--header-height) var(--container-padding) 48px;
        background: var(--color-primary);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .main-nav__list li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.18);
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .main-nav.is-open .main-nav__list li {
        opacity: 1;
        transform: none;
    }

    /* Staggered entrance */
    .main-nav.is-open .main-nav__list li:nth-child(1) { transition-delay: 0.1s; }
    .main-nav.is-open .main-nav__list li:nth-child(2) { transition-delay: 0.18s; }
    .main-nav.is-open .main-nav__list li:nth-child(3) { transition-delay: 0.26s; }

    .main-nav__list li + li::before {
        content: none;
    }

    .main-nav__link {
        display: block;
        padding: 18px 0;
        font-size: 28px;
        font-weight: 500;
        letter-spacing: 0.03em;
    }

    .main-nav__link::after {
        content: none;
    }

    /* Header stays transparent over the open menu */
    .site-header.menu-open {
        background: transparent;
        box-shadow: none;
    }

    body.menu-open {
        overflow: hidden;
    }

    .hero-slide__caption {
        bottom: 96px;
    }

    .hero-slide__title {
        font-size: 34px;
    }

    .hero-slide__text {
        margin-top: 14px;
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .title-bar {
        width: 230px;
        height: 12px;
    }

    .solutions {
        padding: 80px 0 110px;
    }

    .solutions__content,
    .solutions__headline-light,
    .solutions__features {
        padding-left: 0;
        margin-left: 0;
    }

    .solutions__headline-light {
        font-size: 36px;
    }

    .solutions__headline-bold {
        font-size: 26px;
    }

    .solutions__features {
        font-size: 20px;
    }

    .solutions-tabs__nav {
        gap: 18px;
    }

    .solutions-tabs__tab {
        font-size: 11px;
        letter-spacing: 0.1em;
    }

    .healthcare__groups {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 48px;
    }

    .partner {
        padding: 72px 0 32px;
    }

    .partner__title {
        font-size: 26px;
    }

    .partner__logo {
        width: 220px;
    }

    .about {
        padding: 24px 0 72px;
    }

    .about__text {
        font-size: 17px;
    }

    .about__cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 44px;
    }

    .about-card {
        aspect-ratio: 4 / 3;
    }

    /* Text covers more of the shorter card, so darken further up */
    .about-card__media::after {
        background: linear-gradient(to top, rgba(15, 30, 70, 0.95) 0%, rgba(15, 30, 70, 0.75) 55%, rgba(15, 30, 70, 0.15) 100%);
    }

    .contact {
        padding: 72px 0;
    }

    .contact__text {
        font-size: 18px;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-form__submit {
        width: 100%;
    }

    .site-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 40px 24px;
    }

    .site-footer__col:last-child {
        grid-column: 1 / -1;
    }

    .site-footer__bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}
