*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #3b7fbd;
    --blue-dark: #2b5f8a;
    --blue-light: #e8f0fa;
    --navy: #0f1e30;
    --ink: #1e293b;
    --muted: #64748b;
    --border: #dde4ed;
    --bg: #f0f4fa;
    --white: #ffffff;
    --radius: 16px;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-family: 'Barlow', system-ui, sans-serif;
    font-weight: 400;
}

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 60px;
    width: 100%;
    background: var(--navy);
    border-bottom: 1px solid rgba(59, 127, 189, 0.3);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.brand-logo-badge {
    height: 36px;
    min-width: 0;
    flex-shrink: 1;
    background: #3b7fbd;
    border: 2px solid #3b7fbd;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.08em;
    padding: 0 0.65rem;
    user-select: none;
    overflow: hidden;
    white-space: nowrap;
}

.brand-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    white-space: nowrap;
}

.header-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 1.5rem;
}

.partners-dropdown {
    position: relative;
}

.partners-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(59, 127, 189, 0.4);
    border-radius: 8px;
    padding: 0.35rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
}

.partners-toggle:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
}

.partners-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.75rem;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 300;
}

.partners-menu.show {
    display: flex;
}

.partner-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.2s;
}

.partner-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.partner-link img {
    height: 28px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.partner-link img.tall-logo {
    height: 36px;
}

.header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-right: 1.5rem;
}

.contact-btn {
    display: flex;
    border: 1px solid rgba(59, 127, 189, 0.6);
    border-radius: 8px;
    padding: 0.4rem 1.1rem;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.contact-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.contact-email {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.contact-btn:hover .contact-email {
    color: white;
}

.lang-globe {
    position: relative;
}

.globe-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.globe-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.globe-toggle svg {
    margin-bottom: 2px;
}

.current-lang {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 4px;
}

.lang-flag svg {
    width: 22px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    min-width: 130px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 300;
}

.lang-menu.show {
    display: flex;
}

.lang-choice {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-choice:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.lang-choice.active {
    background: var(--blue);
    color: white;
}

.hamburger-btn {
    background: transparent;
    border: 1px solid rgba(59, 127, 189, 0.4);
    border-radius: 8px;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    position: relative;
}

.hamburger-btn:hover {
    background: var(--blue);
    border-color: var(--blue);
}

.hamburger-btn span {
    display: block;
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease, background 0.2s;
}

.hamburger-btn:hover span {
    background: white;
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1146px) {
    .partners-toggle {
        display: none;
    }

    .partners-menu {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
        gap: 0.5rem;
    }

    .partner-link {
        padding: 0.2rem 0.4rem;
    }

    .partner-link img {
        height: 32px;
    }

    .partner-link img.tall-logo {
        height: 48px;
    }
}

@media (max-width: 1300px) {
    .site-header {
        padding: 0 1.5rem;
    }

    .header-nav {
        margin-right: 0.8rem;
    }

    .header-right {
        margin-right: 0.5rem;
        gap: 1rem;
    }

    .contact-btn {
        padding: 0.3rem 0.8rem;
    }

    .contact-email {
        font-size: 0.6rem;
    }

    .brand-name {
        font-size: 0.8rem;
    }

    .brand-logo-badge {
        height: 23px;
        font-size: 0.7rem;
        padding: 0 0.45rem;
        border-radius: 8px;
    }
}

@media (max-width: 1120px) {
    .brand-logo-badge {
        height: 20px;
        font-size: 0.5rem;
        padding: 0 0.45rem;
        border-radius: 8px;
    }
}

@media (max-width: 1105px) {
    .brand-name {
        display: none;
    }

    .partners-toggle {
        display: flex;
    }

    .partners-menu {
        display: none;
    }
}

@media (max-width: 900px) {
    .brand-logo-badge {
        height: 24px;
        font-size: 0.75rem;
        padding: 0 0.35rem;
        border-radius: 6px;
    }
}

@media (max-width: 700px) {
    .site-header {
        padding: 0 1rem;
    }

    .header-nav {
        margin-right: 0.5rem;
    }

    .header-right {
        gap: 0.6rem;
    }

    .contact-btn {
        padding: 0.25rem 0.6rem;
    }

    .contact-email {
        font-size: 0.55rem;
    }

    .brand-logo-badge {
        height: 20px;
        font-size: 0.62rem;
        padding: 0 0.25rem;
        border-radius: 5px;
        border-width: 1.5px;
    }

    .hamburger-btn {
        width: 32px;
        height: 32px;
        padding: 0.35rem 0.5rem;
    }

    .hamburger-btn span {
        width: 16px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0 0.6rem;
    }

    .header-right {
        gap: 0.5rem;
        margin-right: 0.3rem;
    }

    .contact-btn {
        padding: 0.2rem 0.5rem;
    }

    .contact-email {
        font-size: 0.5rem;
    }

    .partners-toggle {
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }

    .partners-toggle span {
        display: none;
    }

    .globe-toggle svg {
        width: 18px;
        height: 18px;
    }

    .current-lang {
        font-size: 0.55rem;
    }

    .lang-flag {
        font-size: 1.4rem;
    }

    .brand-logo-badge {
        height: 16px;
        font-size: 0.5rem;
        padding: 0 0.18rem;
        border-radius: 4px;
        border-width: 1px;
        letter-spacing: 0;
    }

    .hamburger-btn {
        width: 30px;
        height: 30px;
        padding: 0.3rem 0.4rem;
    }

    .hamburger-btn span {
        width: 14px;
        height: 1.5px;
    }
}

/* ---- SLIDER ---- */
.slider-section {
    width: 100%;
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.slider,
.slider-track {
    width: 100%;
}

.slider-track {
    display: flex;
}

.slide {
    flex: 0 0 100%;
    height: 620px;
    overflow: hidden;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 25, 50, 0.75) 0%, rgba(10, 30, 60, 0.45) 60%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: flex-end;
    pointer-events: none;
}

.overlay-inner {
    padding: 4rem 5rem;
    pointer-events: auto;
    max-width: 760px;
}

.overlay-subtitle-top {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.45rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 1);
    margin-top: 0.7rem;
    text-transform: uppercase;
}

.overlay-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: white;
    margin-bottom: 0.4rem;
    letter-spacing: -0.01em;
}

.overlay-title span {
    display: block;
    margin-bottom: 1rem;
}

.overlay-title span:first-of-type {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: inherit;
    margin: 0;
}

.overlay-title span:last-of-type {
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.hero-tagline-container {
    position: absolute;
    top: 2rem;
    left: 5rem;
    margin-bottom: 0;
}

.hero-divider {
    width: 120px;
    height: 3px;
    background-color: var(--blue);
    border: none;
    margin: 0.6rem 0 0 0;
}

.hero-tagline {
    font-family: 'Barlow', sans-serif;
    font-size: 1.65rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.02em;
}

.overlay-btn {
    display: inline-block;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.85rem 2.2rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(59, 127, 189, 0.4);
}

.overlay-btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .slide {
        height: 420px;
    }

    .overlay-inner {
        padding: 2.5rem;
    }

    .overlay-title {
        font-size: 3.5rem;
    }

    .overlay-title span:last-of-type {
        font-size: 1.1rem;
    }

    .overlay-subtitle-top {
        font-size: 1.1rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .slide {
        height: 280px;
    }

    .overlay-inner {
        padding: 1.5rem;
    }

    .overlay-title {
        font-size: 2.2rem;
    }

    .overlay-title span:last-of-type {
        font-size: 0.75rem;
        margin-bottom: 1.2rem;
    }

    .overlay-subtitle-top {
        font-size: 0.85rem;
    }

    .overlay-btn {
        font-size: 0.7rem;
        padding: 0.65rem 1.5rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-divider {
        width: 45px;
        height: 2px;
        margin-bottom: 0.75rem;
    }

    .hero-tagline-container {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 400px) {
    .overlay-title span:last-of-type {
        font-size: 0.6rem;
    }
}

/* ---- PAGE BODY ---- */
.page-body {
    max-width: 1420px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

@media (max-width: 700px) {
    .page-body {
        padding: 2rem 1rem;
        gap: 3rem;
    }
}

/* ---- SERVICES ---- */
.services-description {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3.5rem 4rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px -8px rgba(0, 0, 0, 0.08);
}

.services-header {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.services-title-uk {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.services-intro {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.75;
    padding-top: 0.5rem;
}

.services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--ink);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    gap: 1rem;
    transition: color 0.2s;
}

.service-item:hover {
    color: var(--blue);
}

.service-item:hover .service-arrow {
    transform: translate(3px, -3px);
}

.service-arrow {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    color: var(--blue);
    transition: transform 0.2s;
}

@media (max-width: 900px) {
    .services-description {
        padding: 2rem;
    }

    .services-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .services-description {
        padding: 1.5rem;
    }

    .services-title-uk {
        font-size: 2.5rem;
    }

    .service-item {
        font-size: 0.75rem;
    }
}

/* ---- CARDS SECTION (header only) ---- */
.section-header {
    margin-bottom: 2rem;
}

.section-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-divider {
    width: 5px;
    height: 1.1em;
    background: var(--blue);
    border-radius: 3px;
    flex-shrink: 0;
    align-self: center;
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--muted);
    font-weight: 400;
}

/* ---- WORKFLOW ---- */
.workflow {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem 4rem;
    border: 1px solid var(--border);
    box-shadow: 0 4px 32px -8px rgba(0, 0, 0, 0.08);
}

.workflow-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.workflow-header h2 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink);
}

.workflow-body {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    align-items: start;
}

.timeline {
    display: flex;
    flex-direction: column;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 26px;
    top: 30px;
    bottom: 26px;
    width: 2px;
    background: linear-gradient(to bottom, var(--blue), rgba(59, 127, 189, 0.1));
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 0;
    position: relative;
    z-index: 1;
}

.tl-num {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
    transition: all 0.2s;
}

.timeline-item:hover .tl-num {
    border-color: var(--blue);
    color: var(--blue);
}

.timeline-item.highlight .tl-num {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
    border-width: 3px;
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    box-shadow: 0 6px 20px rgba(59, 127, 189, 0.4);
    margin-left: -8px;
}

.tl-text {
    font-size: 1.1rem;
    color: var(--ink);
    line-height: 1.5;
    padding-top: 0.6rem;
    font-weight: 500;
}

.timeline-item.highlight .tl-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue);
}

.workflow-aside {
    position: sticky;
    top: 80px;
}

@media (max-width: 1000px) {
    .workflow-body {
        grid-template-columns: 1fr;
    }

    .workflow-aside {
        position: static;
    }
}

@media (max-width: 700px) {
    .workflow {
        padding: 1.5rem;
    }

    .workflow-header h2 {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 19px;
    }

    .tl-num {
        width: 38px;
        height: 38px;
        font-size: 0.75rem;
    }

    .tl-text {
        font-size: 0.85rem;
        padding-top: 0.5rem;
    }

    .timeline-item.highlight .tl-num {
        width: 48px;
        height: 48px;
        font-size: 1rem;
        margin-left: -5px;
    }

    .timeline-item.highlight .tl-text {
        font-size: 1rem;
    }
}

/* ---- FAQ ---- */
.faq-accordion {
    background: var(--navy);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 16px -4px rgba(0, 0, 0, 0.2);
}

.faq-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 1.1rem 1.4rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 1.4rem;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
    line-height: 1.45;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.faq-question::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
    margin-top: 0.42em;
}

.faq-answer {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    padding-left: 1.15rem;
}

/* ---- SERVICE DETAIL SLIDER ---- */
.sds-wrapper {
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: 0 4px 32px -8px rgba(0, 0, 0, 0.1);
    scroll-margin-top: 80px;
    position: relative;
}

.sds-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
}

.sds-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.sds-slide {
    flex: 0 0 100%;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-bottom: none;
}

.sds-slide.alt {
    background: var(--navy);
    border-color: transparent;
}

.service-detail-body {
    padding: 3rem 4rem;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    justify-content: center;
}

.service-detail-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--blue);
    display: inline-block;
}

.sds-slide.alt .service-detail-title {
    color: white;
}

.service-detail-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-detail-content p {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.8;
}

.sds-slide.alt .service-detail-content p {
    color: rgba(255, 255, 255, 0.55);
}

.service-detail-content strong {
    color: var(--ink);
}

.sds-slide.alt .service-detail-content strong {
    color: white;
}

.sds-controls {
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    transition: background 0.3s, border-color 0.3s;
    border-radius: 0 0 var(--radius) var(--radius);
}

.sds-wrapper.white-controls .sds-controls {
    background: var(--white);
    border-top: 1px solid var(--border);
}

.sds-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(15, 30, 48, 0.65);
    backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.sds-prev {
    left: -3.5rem;
}

.sds-next {
    right: -3.5rem;
}

.sds-arrow:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.sds-arrow svg {
    width: 18px;
    height: 18px;
}

.sds-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sds-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.sds-dot.active {
    background: white;
    transform: scale(1.3);
}

.sds-wrapper.white-controls .sds-dot {
    background: rgba(0, 0, 0, 0.2);
}

.sds-wrapper.white-controls .sds-dot.active {
    background: var(--navy);
}

@media (max-width: 1200px) {
    .sds-prev {
        left: -2rem;
    }

    .sds-next {
        right: -2rem;
    }
}

@media (max-width: 900px) {
    .service-detail-body {
        padding: 2rem;
    }

    .sds-prev {
        left: -1.5rem;
    }

    .sds-next {
        right: -1.5rem;
    }
}

@media (max-width: 600px) {
    .service-detail-body {
        padding: 1.5rem;
        min-height: unset;
        height: auto;
        justify-content: flex-start;
    }

    .service-detail-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .service-detail-content {
        gap: 0.75rem;
    }

    .service-detail-content p {
        font-size: 0.88rem;
        line-height: 1.65;
    }

    .sds-controls {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .sds-wrapper {
        display: flex;
        flex-direction: column;
    }

    .sds-viewport {
        flex: 1;
    }

    .sds-track {
        align-items: stretch;
    }

    .sds-slide {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sds-slide::-webkit-scrollbar {
        width: 3px;
    }

    .sds-slide::-webkit-scrollbar-track {
        background: transparent;
    }

    .sds-slide::-webkit-scrollbar-thumb {
        background: rgba(59, 127, 189, 0.4);
        border-radius: 3px;
    }

    .sds-prev,
    .sds-next {
        position: static;
        transform: none;
        width: 36px;
        height: 36px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: none;
        left: auto;
        right: auto;
    }

    .sds-prev:hover,
    .sds-next:hover {
        transform: scale(1.08);
    }

    .sds-wrapper.white-controls .sds-prev,
    .sds-wrapper.white-controls .sds-next {
        background: rgba(0, 0, 0, 0.06);
        border-color: rgba(0, 0, 0, 0.12);
        color: var(--navy);
    }
}

/* ---- IP SERVICES GRID ---- */
.ip-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ip-service-card {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
}

.ip-service-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ip-service-info strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ip-service-info strong::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.ip-service-info span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    padding-left: 0.9rem;
}

@media (max-width: 700px) {
    .ip-services-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- MODAL ---- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

.modal-overlay.show {
    display: flex;
}

.modal-container {
    background: var(--white);
    max-width: 800px;
    width: 100%;
    max-height: 85vh;
    border-radius: var(--radius);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
    border: 1px solid rgba(59, 127, 189, 0.2);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.modal-close:hover {
    color: var(--navy);
    background: rgba(0, 0, 0, 0.05);
}

.modal-content {
    padding: 2.5rem 2rem 2rem;
    overflow-y: auto;
    max-height: 85vh;
}

.modal-section {
    margin-bottom: 2.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    margin-bottom: 1rem;
}

.principles-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: principle-counter;
}

.principles-list li {
    counter-increment: principle-counter;
    margin-bottom: 1.8rem;
    padding-left: 2.5rem;
    position: relative;
}

.principles-list li::before {
    content: counter(principle-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--blue);
    opacity: 0.8;
    line-height: 1;
}

.principles-list li strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.principles-list li span {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

@media (max-width: 600px) {
    .modal-container {
        max-height: 90vh;
    }

    .modal-content {
        padding: 1.8rem 1.2rem;
    }

    .modal-heading {
        font-size: 1.3rem;
    }

    .principles-list li {
        padding-left: 2rem;
    }

    .principles-list li::before {
        font-size: 1.3rem;
    }
}

/* ---- FOOTER ---- */
footer {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.85rem;
    line-height: 1.8;
}

footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

@media (max-width: 900px) {
    .hero-tagline-container {
        top: 1.5rem;
        left: 2.5rem;
    }
}

@media (max-width: 600px) {
    .hero-tagline-container {
        top: 1rem;
        left: 1.5rem;
    }
}

.modal-heading--principles {
    margin-bottom: 2rem;
}

/* ============ CARDS SLIDER (responsive, invisible control bar) ============ */
.cards-slider-wrapper {
    border-radius: var(--radius);
    overflow: visible;
    box-shadow: 0 4px 32px -8px rgba(0,0,0,0.1);
    position: relative;
}

.cards-slider-viewport {
    overflow: hidden;
    width: 100%;
    border-radius: var(--radius) !important;
}

.cards-slider-track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.cards-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom: none;
    border-radius: var(--radius) var(--radius) 0 0;
    justify-content: center;
}

.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px -4px rgba(0,0,0,0.08);
    transition: transform 0.3s cubic-bezier(0.2,0,0,1), box-shadow 0.3s ease;
}

.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px -8px rgba(15,30,48,0.18);
}

.card-img-wrap {
    position: relative;
    overflow: hidden;
    height: 190px;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2,0,0,1);
}

.card-link:hover .card-img-wrap img {
    transform: scale(1.06);
}

.card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(15,30,48,0.3) 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-link:hover .card-img-wrap::after {
    opacity: 1;
}

.card-index {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    background: rgba(15,30,48,0.65);
    backdrop-filter: blur(4px);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
    display: none;
}

.card-content {
    padding: 0.85rem 1rem 1rem;
    border-top: 2px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.card-content h3 {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.3;
    transition: color 0.2s;
}

.card-link:hover .card-content h3 {
    color: var(--blue);
}

.card-arrow-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.card-link:hover .card-arrow-btn {
    background: var(--blue);
    border-color: var(--blue);
    transform: translate(2px, -2px);
}

.card-arrow-btn svg {
    width: 12px;
    height: 12px;
    color: var(--muted);
    transition: color 0.2s;
}

.card-link:hover .card-arrow-btn svg {
    color: white;
}

/* --- Invisible control bar (only arrows visible) --- */
.cards-slider-controls {
    background: transparent !important;
    border-top: none !important;
    padding: 0 !important;
    height: 0;
    overflow: visible;
}

.cards-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(15,30,48,0.65);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.cards-slider-prev { left: -3.5rem; }
.cards-slider-next { right: -3.5rem; }

.cards-slider-arrow:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: white;
    transform: translateY(-60%) scale(1.08);
}

.cards-slider-arrow svg {
    width: 18px;
    height: 18px;
}

.cards-slider-dots,
.cards-slide-counter {
    display: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .cards-slider-prev { left: -2rem; }
    .cards-slider-next { right: -2rem; }
}

@media (max-width: 900px) {
    .cards-slide {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards-slider-prev { left: -1.5rem; }
    .cards-slider-next { right: -1.5rem; }
}

@media (max-width: 600px) {
    .cards-slide {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .cards-slider-prev,
    .cards-slider-next {
        position: absolute !important;
        top: 50% !important;
        transform: translateY(-60%) !important;
        width: 44px;
        height: 44px;
    }
    .cards-slider-prev { left: -1.5rem !important; }
    .cards-slider-next { right: -1.5rem !important; }
}
.card-link {
    text-decoration: none;
}
.cards-slider-viewport {
    touch-action: pan-y;   
}

/* Hide arrows on small phones */

@media (max-width: 600px) {
    .cards-slider-viewport {
        overflow: visible !important;
        border-radius: var(--radius) !important;
        
    }

    .cards-slider-track {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;        
        padding: 0 1rem;               
        gap: 0.75rem;
        transform: none !important;    
    }
    .cards-slider-track::-webkit-scrollbar {
        display: none;
    }

    /* Hide any existing slides */
    .cards-slide {
        display: none;
    }

    /* Each card link */
    .card-link {
        flex: 0 0 85%;
        scroll-snap-align: center;
        text-decoration: none;
    }

    .card-img-wrap {
        height: 170px;                
    }

    /* Arrows remain hidden */
    .cards-slider-prev,
    .cards-slider-next {
        display: none !important;
    }

    
}
.brand-logo-img {
    height: 44px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1); 
    
}

/* Responsive */
@media (max-width: 768px) {
    .brand-logo-img {
        height: 32px;
    }
}
@media (max-width: 480px) {
    .brand-logo-img {
        height: 28px;
    }
}