
/* =========================================
   KEY IMPACT KONSULT
   Main website stylesheet
========================================= */

:root {
    --kik-navy: #10243A;
    --kik-navy-light: #183650;
    --kik-teal: #0D9488;
    --kik-teal-light: #14B8A6;
    --kik-white: #FFFFFF;
    --kik-light: #F4F7FA;
    --kik-text: #263648;
    --kik-muted: #657487;
    --kik-border: #E1E8EF;
    --kik-radius: 16px;
    --kik-shadow: 0 12px 35px rgba(16, 36, 58, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--kik-text);
    line-height: 1.7;
}

a {
    text-decoration: none;
}

section,
header {
    scroll-margin-top: 80px;
}


/* NAVIGATION */

.site-navbar {
    background: rgba(16, 36, 58, 0.98);
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.site-navbar .container {
    align-items: center;
}

.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin-right: 1.5rem;
}

.site-navbar .navbar-nav {
    align-items: center;
    gap: 0.15rem 0.3rem;
    margin-left: auto;
}

.site-navbar .nav-item {
    display: flex;
    align-items: center;
}

.brand-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 8px;
    background: #FFFFFF;
}

.brand-name {
    font-size: 0.93rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.brand-name small {
    display: block;
    margin-top: 3px;
    color: #B8C9D9;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.8px;
}

.site-navbar .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 0.8rem;
    border-radius: 8px;
    color: #D6E1EC;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible,
.site-navbar .nav-link.active {
    color: var(--kik-teal-light);
    background: rgba(255, 255, 255, 0.04);
}

.site-navbar .btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}

.btn-brand {
    background: var(--kik-teal);
    border: 1px solid var(--kik-teal);
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    padding: 11px 20px;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-brand:hover,
.btn-brand:focus-visible {
    background: #087E73;
    border-color: #087E73;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(13, 148, 136, 0.2);
}

.btn-outline-light {
    border-radius: 8px;
}


/* HERO SECTION */

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 95px 0 100px;
    color: #FFFFFF;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(20, 184, 166, 0.15),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            var(--kik-navy),
            #173A53
        );
}

.eyebrow {
    display: inline-block;
    color: var(--kik-teal);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-section .eyebrow {
    color: #5FE0CE;
}

.hero-title {
    max-width: 760px;
    font-size: clamp(2.5rem, 5vw, 4.3rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.12;
}

.hero-title span {
    display: block;
    color: #5FE0CE;
}

.hero-description {
    max-width: 620px;
    color: #D6E1EC;
    font-size: 1.1rem;
}

.hero-motto {
    color: #B8C9D9;
    font-size: 0.9rem;
    font-style: italic;
}

.hero-panel {
    padding: 34px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.hero-panel-icon {
    display: grid;
    width: 66px;
    height: 66px;
    margin-bottom: 26px;
    place-items: center;
    border-radius: 15px;
    background: var(--kik-teal-light);
    color: var(--kik-navy);
    font-size: 1.4rem;
    font-weight: 900;
}

.hero-panel > p:not(.small) {
    color: #D6E1EC;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-stat > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 10px;
    background: rgba(20, 184, 166, 0.14);
    color: #5FE0CE;
    font-weight: 800;
}

.hero-stat strong,
.hero-stat small {
    display: block;
}

.hero-stat small {
    margin-top: 3px;
    color: #B8C9D9;
}


/* SHARED SECTION STYLES */

.section-padding {
    padding: 85px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto;
}

.section-title {
    color: var(--kik-navy);
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.25;
}

.section-description {
    max-width: 680px;
    margin: 16px auto 0;
    color: var(--kik-muted);
}


/* SERVICE CARDS */

.service-card {
    padding: 32px;
    border: 1px solid var(--kik-border);
    border-radius: var(--kik-radius);
    background: #FFFFFF;
    box-shadow: var(--kik-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16, 36, 58, 0.13);
}

.service-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 24px;
    place-items: center;
    border-radius: 13px;
    background: #E0F5F1;
    color: #087E73;
    font-weight: 800;
}

.service-card h3 {
    margin-bottom: 14px;
    color: var(--kik-navy);
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.4;
}

.service-card p {
    color: var(--kik-muted);
}

.service-card ul {
    padding-left: 20px;
    color: var(--kik-text);
}

.service-card li {
    margin-bottom: 8px;
}

.service-card li::marker {
    color: var(--kik-teal);
}

.service-link {
    display: inline-block;
    margin-top: 12px;
    color: #087E73;
    font-weight: 700;
}

.service-link:hover {
    color: var(--kik-navy);
}


/* ABOUT SECTION */

.about-section {
    background: var(--kik-light);
}

.about-section p {
    color: var(--kik-muted);
}

.about-visual {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(20, 184, 166, 0.25),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            var(--kik-navy),
            #1C4760
        );
    box-shadow: var(--kik-shadow);
}

.about-visual span {
    width: fit-content;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.about-visual span:nth-child(even) {
    margin-left: 28px;
    border-color: rgba(95, 224, 206, 0.4);
    color: #5FE0CE;
}

.about-visual p {
    margin-top: 16px;
    margin-bottom: 0;
    color: #D6E1EC;
    font-size: 1.1rem;
    font-weight: 700;
}


/* APPROACH CARDS */

.approach-card {
    height: 100%;
    padding: 30px;
    border: 1px solid var(--kik-border);
    border-radius: var(--kik-radius);
    background: #FFFFFF;
}

.approach-card > span {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--kik-teal);
    font-size: 1.7rem;
    font-weight: 800;
}

.approach-card h3 {
    color: var(--kik-navy);
    font-size: 1.3rem;
    font-weight: 750;
}

.approach-card p {
    margin-bottom: 0;
    color: var(--kik-muted);
}


/* CONTACT SECTION */

.contact-section {
    background: var(--kik-light);
}

.contact-panel {
    padding: 60px 24px;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: var(--kik-shadow);
}

.contact-panel .section-title {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
}

.contact-page-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: stretch;
    margin-top: 1.25rem;
}

.contact-page-card {
    padding: 2.2rem;
    border: 1px solid rgba(16, 36, 58, 0.08);
    border-radius: 24px;
    background: #FFFFFF;
    box-shadow: 0 20px 45px rgba(16, 36, 58, 0.08);
}

.contact-page-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 36, 58, 0.98), rgba(24, 54, 80, 0.98));
    color: #FFFFFF;
}

.contact-page-card::before {
    content: "";
    position: absolute;
    inset: auto -70px -70px auto;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(20, 184, 166, 0.18);
}

.contact-page-card h1 {
    position: relative;
    z-index: 1;
    color: #FFFFFF;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin: 0.75rem 0 1rem;
}

.contact-page-card .eyebrow {
    position: relative;
    z-index: 1;
    color: #5FE0CE;
}

.contact-page-card p {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.8);
}

.contact-details {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1rem;
    margin-top: 1.8rem;
}

.contact-detail {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-detail strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #D6E1EC;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-detail a,
.contact-detail span {
    color: #FFFFFF;
    font-size: 1rem;
}

/* FOOTER */

.site-footer {
    padding: 32px 0;
    background: var(--kik-navy);
    color: #FFFFFF;
}

.site-footer p {
    color: #B8C9D9;
    font-size: 0.9rem;
}


/* ACCESSIBILITY */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--kik-teal-light);
    outline-offset: 4px;
}


/* MOBILE RESPONSIVENESS */

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        padding-top: 18px;
    }

    .site-navbar .navbar-nav {
        align-items: stretch !important;
        width: 100%;
    }

    .site-navbar .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 0.9rem 0.75rem;
    }

    .site-navbar .btn-brand {
        display: inline-flex;
        width: 100%;
        margin-top: 0.6rem;
    }

    .hero-section {
        padding: 65px 0;
    }

    .hero-panel {
        padding: 28px;
    }

    .contact-page-shell {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 575.98px) {
    .section-padding {
        padding: 60px 0;
    }

    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .hero-title {
        font-size: 2.35rem;
        letter-spacing: -0.8px;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-panel,
    .service-card,
    .approach-card {
        padding: 24px;
    }

    .about-visual {
        min-height: 280px;
        padding: 28px;
    }

    .contact-panel {
        padding: 42px 20px;
    }

    .brand-name {
        font-size: 0.82rem;
    }

    .brand-name small {
        font-size: 0.53rem;
        letter-spacing: 0.4px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }
}


/* RESPECT REDUCED-MOTION PREFERENCES */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================
   CLIENTS & PARTNERS PAGE
========================================= */

.inner-hero {
    padding: 75px 0 65px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(20, 184, 166, 0.15),
            transparent 30%
        ),
        linear-gradient(135deg, #10243A, #173A53);
    color: #FFFFFF;
}

.inner-hero-title {
    margin-top: 14px;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -1px;
}

.inner-hero-description {
    max-width: 720px;
    margin-top: 18px;
    color: #D6E1EC;
    font-size: 1.08rem;
}

.inner-hero .breadcrumb {
    margin-top: 25px;
    margin-bottom: 0;
}

.inner-hero .breadcrumb-item,
.inner-hero .breadcrumb-item.active {
    color: #B8C9D9;
}

.inner-hero .breadcrumb-item a {
    color: #5FE0CE;
}

.inner-hero .breadcrumb-item + .breadcrumb-item::before {
    color: #8093A7;
}

.client-sector-card {
    padding: 30px;
    border: 1px solid #E1E8EF;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 12px 35px rgba(16, 36, 58, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.client-sector-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(16, 36, 58, 0.12);
}

.sector-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 22px;
    place-items: center;
    border-radius: 13px;
    background: #E0F5F1;
    color: #087E73;
}

.sector-icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-sector-card h3 {
    margin-bottom: 12px;
    color: #10243A;
    font-size: 1.2rem;
    font-weight: 750;
    line-height: 1.4;
}

.client-sector-card p {
    margin-bottom: 0;
    color: #657487;
}

.partner-section {
    background: #F4F7FA;
}

.partner-logo-card {
    display: flex;
    min-height: 195px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 22px 12px;
    border: 1px solid #E1E8EF;
    border-radius: 14px;
    background: #FFFFFF;
    text-align: center;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.partner-logo-card:hover {
    border-color: #0D9488;
    transform: translateY(-3px);
}

.partner-logo-placeholder {
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 16px;
    place-items: center;
    border: 1px dashed #9AABB9;
    border-radius: 12px;
    background: #F4F7FA;
    color: #657487;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.partner-logo-card h3 {
    margin-bottom: 5px;
    color: #10243A;
    font-size: 0.95rem;
    font-weight: 700;
}

.partner-logo-card p {
    margin-bottom: 0;
    color: #657487;
    font-size: 0.85rem;
}

.partner-note {
    color: #657487;
    font-size: 0.88rem;
}


/* =========================================
   PORTFOLIO & ACTIVITIES PAGE
========================================= */

.portfolio-notice {
    padding: 18px 20px;
    border-left: 4px solid #0D9488;
    border-radius: 8px;
    background: #EAF7F5;
    color: #234C4A;
    font-size: 0.93rem;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.portfolio-filter {
    padding: 10px 18px;
    border: 1px solid #D7E1E9;
    border-radius: 999px;
    background: #FFFFFF;
    color: #263648;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease,
                border-color 0.2s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
    border-color: #10243A;
    background: #10243A;
    color: #FFFFFF;
}

.portfolio-filter:focus-visible {
    outline: 3px solid #14B8A6;
    outline-offset: 3px;
}

.portfolio-item[hidden] {
    display: none !important;
}

.portfolio-card {
    overflow: hidden;
    border: 1px solid #E1E8EF;
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 12px 35px rgba(16, 36, 58, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(16, 36, 58, 0.13);
}

.portfolio-image-wrap {
    position: relative;
    overflow: hidden;
    height: 235px;
    background: #E6EDF2;
}

.portfolio-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.04);
}

.portfolio-category {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 7px;
    background: #10243A;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 700;
}

.portfolio-content {
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: flex-start;
    padding: 25px;
}

.portfolio-meta {
    margin-bottom: 10px;
    color: #0D9488;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.portfolio-content h3 {
    margin-bottom: 12px;
    color: #10243A;
    font-size: 1.22rem;
    font-weight: 750;
    line-height: 1.4;
}

.portfolio-content > p:not(.portfolio-meta) {
    color: #657487;
}

.portfolio-content .service-link {
    margin-top: auto;
    padding-top: 12px;
}

.portfolio-cta {
    background: #F4F7FA;
}


/* RESPONSIVE ADJUSTMENTS */

@media (max-width: 575.98px) {
    .inner-hero {
        padding: 55px 0 45px;
    }

    .inner-hero-description {
        font-size: 1rem;
    }

    .client-sector-card {
        padding: 24px;
    }

    .portfolio-filters {
        gap: 8px;
    }

    .portfolio-filter {
        padding: 9px 13px;
        font-size: 0.84rem;
    }

    .portfolio-image-wrap {
        height: 220px;
    }

    .portfolio-content {
        min-height: 0;
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-sector-card,
    .portfolio-card,
    .portfolio-image,
    .partner-logo-card {
        transition: none;
    }
}

/* Phone and tablet usability; desktop styles stay unchanged. */
@media (max-width: 991.98px) {
    body {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    /* Keep secondary copy and navigation as readable as the body. */
    p,
    small,
    .small,
    .eyebrow,
    .hero-motto,
    .hero-stat small,
    .about-visual span,
    .contact-detail strong,
    .site-footer p,
    .partner-logo-card h3,
    .partner-logo-card p,
    .partner-note,
    .portfolio-notice,
    .portfolio-filter,
    .portfolio-category,
    .portfolio-meta,
    .site-navbar .nav-link,
    .site-navbar .btn-brand {
        font-size: 1rem;
    }

    a,
    button,
    input,
    select,
    textarea {
        min-width: 44px;
        min-height: 44px;
    }

    /* Inline links need a real touch area, too. */
    a:not(.navbar-brand):not(.nav-link):not(.btn) {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
    }

    .site-navbar .navbar-brand {
        flex: 1;
        min-width: 0;
        margin-right: 0.5rem;
        white-space: normal;
    }

    .brand-logo,
    .site-navbar .navbar-toggler {
        flex-shrink: 0;
    }

    .site-navbar .navbar-toggler {
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .site-navbar .navbar-collapse {
        max-height: calc(100vh - 80px);
        max-height: calc(100dvh - 80px);
        overflow-y: auto;
    }

    .site-navbar .nav-item {
        width: 100%;
    }

    .row > *,
    .contact-page-shell > *,
    .hero-stat > div {
        min-width: 0;
    }

    img,
    video,
    canvas {
        max-width: 100%;
        height: auto;
    }

    /* Preserve the existing logo shape and portfolio crops. */
    .brand-logo {
        height: 46px;
    }

    .portfolio-image {
        height: 100%;
    }

    iframe,
    embed,
    object {
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .portfolio-category {
        right: 14px;
        width: fit-content;
    }
}

@media (max-width: 575.98px) {
    .contact-page-card {
        padding: 1.5rem;
    }

    .brand-logo {
        height: 40px;
    }

    .about-visual span {
        max-width: 100%;
    }

    .about-visual span:nth-child(even) {
        margin-left: 0;
    }
}
