:root {
    --navy: #0a1f42;
    --navy-light: #14315f;
    --navy-thick: #071528;
    --blue: #0a6ed1;
    --blue-bright: #2f9bff;
    --blue-brighter: #56b4ff;
    --blue-light: #eaf3fc;
    --accent: #ff7a00;
    --text: #212832;
    --text-light: #5b6472;
    --border: #e2e6ec;
    --bg: #ffffff;
    --bg-alt: #f2f8ff;
    --radius: 10px;
    --shadow: 0 6px 24px rgba(10, 110, 209, 0.1);
    --max-width: 1180px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    display: inline-block;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-heading {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.75rem;
}

.section-sub {
    color: var(--text-light);
    max-width: 640px;
    margin-bottom: 2.5rem;
}

.section-head {
    text-align: center;
}
.section-head .section-sub {
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 5rem 0;
}

section.alt {
    background: var(--bg-alt);
}

/* ---------- Topbar ---------- */
.topbar {
    background: linear-gradient(90deg, var(--navy-thick) 0%, var(--navy) 100%);
    color: #cfd8e6;
    font-size: 0.82rem;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.topbar-contact {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.topbar-contact a:hover {
    color: #fff;
}

.topbar-badges {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sap-partner-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    font-size: 0.75rem;
}

.mail-login-btn {
    background: var(--blue);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
}

.mail-login-btn:hover {
    background: #0958a8;
    color: #fff;
}

/* ---------- Header / Nav ---------- */
header.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.2s ease;
}

header.site-header.scrolled {
    box-shadow: 0 4px 16px rgba(11, 31, 58, 0.08);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.8rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand .brand {
    background: #ffffff;
    padding: 0.4rem 0.9rem;
    border-radius: 10px;
}

.brand img {
    height: 104px;
    width: auto;
    image-rendering: -webkit-optimize-contrast;
}

.brand-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 1.05rem;
    line-height: 1.15;
}

.brand-name span {
    display: block;
    font-weight: 500;
    font-size: 0.7rem;
    color: var(--text-light);
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    margin-left: 2rem;
}

.main-nav > ul {
    display: flex;
    align-items: center;
}

.main-nav > ul > li {
    position: relative;
}

.main-nav > ul > li {
    padding: 0.9rem 0;
}

.main-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    background: transparent;
    transition: background 0.18s ease, color 0.18s ease;
}

.main-nav > ul > li > a:hover,
.main-nav > ul > li.open > a {
    background: var(--navy);
    color: #fff;
}

.caret {
    font-size: 0.6rem;
    margin-top: 1px;
    color: var(--text-light);
}

.main-nav > ul > li > a:hover .caret,
.main-nav > ul > li.open > a .caret {
    color: #fff;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.main-nav > ul > li:hover .dropdown,
.main-nav > ul > li.open .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-light);
}

.dropdown a:hover {
    background: var(--blue-light);
    color: var(--blue);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    display: block;
}

/* ---------- Banner Slider ---------- */
.banner-slider {
    position: relative;
    padding: 0;
}

.slider {
    position: relative;
    overflow: hidden;
    height: 420px;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
    color: #fff;
}

.slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
    width: 100%;
}

.slide-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 800;
    line-height: 1.25;
    margin: 1rem 0 0.9rem;
}

.slide-text p {
    color: #cfd8e6;
    max-width: 480px;
    margin-bottom: 1.6rem;
}

.slide-visual img {
    max-width: 340px;
    margin: 0 auto;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.slider-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
}

.slider-arrow.prev {
    left: 1.5rem;
}

.slider-arrow.next {
    right: 1.5rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    padding: 0;
    transition: background 0.15s ease, transform 0.15s ease;
}

.dot.is-active {
    background: var(--accent);
    transform: scale(1.2);
}

@media (max-width: 980px) {
    .slider {
        height: auto;
        min-height: 480px;
    }
    .slide {
        padding: 2.5rem 0;
        position: relative;
    }
    .slide:not(.is-active) {
        display: none;
    }
    .slide-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .slide-text p {
        margin-left: auto;
        margin-right: auto;
    }
    .slide-visual img {
        max-width: 220px;
    }
}

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy-thick) 0%, var(--navy) 55%, var(--navy-light) 130%);
    color: #fff;
    padding: 5.5rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 1.3rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.1rem;
}

.hero h1 em {
    font-style: normal;
    color: #ffd166;
}

.hero p {
    color: #eaf5ff;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #e56d00;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-dark {
    background: var(--navy);
    color: #fff;
}

.btn-dark:hover {
    background: var(--navy-light);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    padding: 1.4rem;
    backdrop-filter: blur(4px);
}

.stat-card strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    color: #fff;
}

.stat-card span {
    color: #b9c6da;
    font-size: 0.82rem;
}

/* ---------- Cards / grids ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--blue-light);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 2rem 1.7rem;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card-icon {
    width: 48px;
    height: 48px;
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.1rem;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    font-size: 0.88rem;
}

/* ---------- About ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: start;
}

.about-tiles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.about-tile {
    padding: 1.4rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
}

.about-tile h4 {
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.about-tile p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.about-copy p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

/* ---------- Industries pills ---------- */
.pill-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.pill {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--navy);
    font-size: 0.9rem;
}

.pill:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* ---------- Careers ---------- */
.careers-panel {
    background: linear-gradient(120deg, var(--navy-thick), var(--navy-light));
    color: #fff;
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
}

.careers-panel h2 {
    color: #fff;
}

.careers-panel p {
    color: #eaf5ff;
}

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item .card-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 0;
    background: var(--blue-light);
    border-radius: 10px;
    font-size: 1.2rem;
}

.contact-item h4 {
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-item p, .contact-item a {
    color: var(--text-light);
    font-size: 0.88rem;
}

.contact-item a:hover {
    color: var(--blue);
}

.map-frame {
    width: 100%;
    height: 340px;
    margin-top: 2.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- Contact form ---------- */
.contact-form {
    background: var(--blue-light);
    border-radius: 16px;
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    border: none;
    border-radius: 10px;
    background: #fff;
    padding: 0.9rem 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    margin-bottom: 1.3rem;
    font-family: inherit;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--blue);
    cursor: pointer;
}

.form-check span {
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-check a {
    color: var(--blue);
    text-decoration: underline;
}

.opt-out-link {
    color: var(--blue);
    text-decoration: underline;
    font-size: 0.85rem;
}

.opt-out-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.form-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.6rem;
}

.form-submit-row .btn {
    border-radius: 999px;
    padding: 0.75rem 2.2rem;
}

/* ---------- Footer ---------- */
footer.site-footer {
    background: var(--navy);
    color: #b9c6da;
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name {
    color: #fff;
}

.footer-brand .brand-name span {
    color: #8b98ad;
}

.footer-about {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: #97a4b8;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
    font-size: 0.86rem;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.footer-bottom-links a:hover {
    color: #fff;
}

/* ---------- Legal pages ---------- */
.legal-hero {
    background: var(--bg-alt);
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.legal-hero .section-label {
    margin-bottom: 0.5rem;
}

.legal-hero h1 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.legal-hero p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.legal-content {
    max-width: 780px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 5rem;
}

.legal-content h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin: 2.2rem 0 0.8rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.94rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.3rem;
    color: var(--text-light);
    font-size: 0.94rem;
}

.legal-content ul li {
    list-style: disc;
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--blue);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text);
}

.legal-content .lead {
    font-size: 1.05rem;
    color: var(--text);
}

.legal-content .breadcrumb {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-bottom: 0.6rem;
}

.legal-content .breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
}

.legal-content .breadcrumb a:hover {
    color: var(--blue);
    text-decoration: underline;
}

.page-cta {
    background: var(--blue-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin-top: 2.5rem;
}

.page-cta h3 {
    color: var(--navy);
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.page-cta p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 1.3rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero .container {
        grid-template-columns: 1fr;
    }
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pill-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .careers-panel {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Hamburger nav + drawer applies through tablet widths too, with the logo
   centered in the header bar while the drawer is collapsed. */
@media (max-width: 980px) {
    .nav-bar {
        position: relative;
        justify-content: flex-start;
        min-height: 76px;
    }
    .site-header .brand {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .site-header .brand img {
        height: 60px;
    }
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 1;
        margin-left: auto;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 280px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        box-shadow: var(--shadow);
        overflow-y: auto;
        margin-left: 0;
    }
    .main-nav.open {
        transform: translateX(0);
    }
    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav > ul > li {
        padding: 0.2rem 0;
    }
    .main-nav > ul > li > a {
        padding: 0.8rem 0.9rem;
        justify-content: space-between;
        border-radius: 8px;
    }
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        display: none;
        padding: 0 0 0 1rem;
    }
    .main-nav > ul > li.open .dropdown {
        display: block;
    }
}

@media (max-width: 760px) {
    .topbar-contact {
        display: none;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .pill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-tiles {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form {
        padding: 1.4rem;
    }
}

.nav-scrim {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 31, 58, 0.4);
    z-index: 90;
}

.nav-scrim.open {
    display: block;
}

/* ---------- Illustrations ---------- */
/* Float animations for the floating accents live inside each SVG file itself
   (as an internal <style> block) since external CSS can't reach into an
   SVG that's loaded via <img src="...">. */

.hero-illustration {
    margin-bottom: 1.75rem;
}

.hero-illustration img {
    width: 100%;
    max-width: 420px;
}

.about-illustration img,
.careers-illustration img,
.contact-illustration img {
    width: 100%;
}

.careers-illustration {
    max-width: 280px;
    margin: 0 auto;
}

.about-illustration,
.contact-illustration {
    max-width: 190px;
    margin-bottom: 1.4rem;
}

.careers-panel-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
