/**
 * Kennixcare Global Stylesheet
 * Contains all core design tokens, layout grids, animations, header/footer styling, 
 * buttons, cards, section components, and responsive media queries.
 */

:root {
    --blue: #1063AA;
    --blue-dark: #0B3F63;
    --teal: #1D95A6;
    --blue-tint: #EAF3FB;
    --teal-tint: #E9F7F7;
    --cream: #FFFCF6;
    --ink: #000;
    --paper: #fff;
    --line: rgba(16, 99, 170, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Baloo 2', sans-serif;
    margin: 0;
    color: var(--blue-dark);
}

p {
    line-height: 1.7;
    margin: 0;
}

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

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

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 26px;
}

.eyebrow {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
}

/* ---- BI-DIRECTIONAL SCROLL REVEAL ANIMATIONS ---- */
.reveal,
.reveal-up {
    opacity: 0;
    transform: translateY(32px) scale(0.97);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.in,
.reveal-up.in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-left.in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-right.in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1), transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal-scale.in {
    opacity: 1;
    transform: scale(1);
}

/* Staggered Child Reveal Delays for lively sequential entry */
.value-grid .value-card:nth-child(1),
.service-grid .service-card:nth-child(1),
.serv-list .serv-item:nth-child(1),
.process-grid .process-step:nth-child(1),
.test-grid .test-card:nth-child(1) {
    transition-delay: 0.05s;
}

.value-grid .value-card:nth-child(2),
.service-grid .service-card:nth-child(2),
.serv-list .serv-item:nth-child(2),
.process-grid .process-step:nth-child(2),
.test-grid .test-card:nth-child(2) {
    transition-delay: 0.18s;
}

.value-grid .value-card:nth-child(3),
.service-grid .service-card:nth-child(3),
.serv-list .serv-item:nth-child(3),
.process-grid .process-step:nth-child(3),
.test-grid .test-card:nth-child(3) {
    transition-delay: 0.31s;
}

.process-grid .process-step:nth-child(4) {
    transition-delay: 0.44s;
}

@keyframes blobmorph {

    0%,
    100% {
        border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
    }

    33% {
        border-radius: 60% 40% 40% 60% / 55% 65% 35% 45%;
    }

    66% {
        border-radius: 35% 65% 55% 45% / 60% 40% 60% 40%;
    }
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-16px) rotate(3deg);
    }
}

@keyframes floaty2 {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(12px) rotate(-4deg);
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pop {
    0% {
        transform: scale(0.9);
    }

    60% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes sparklePop {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(90deg);
        opacity: 0;
    }
}

.sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 200;
    font-size: 18px;
    animation: sparklePop .7s ease-out forwards;
}

.hero-copy>* {
    animation: heroPopIn .7s cubic-bezier(.34, 1.56, .64, 1) both;
}

.hero-copy .eyebrow {
    animation-delay: .05s;
}

.hero-copy h1 {
    animation-delay: .15s;
}

.hero-copy p.sub {
    animation-delay: .3s;
}

.hero-copy .hero-actions {
    animation-delay: .45s;
}

@keyframes heroPopIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.icon-wiggle {
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.value-card:hover .icon-wiggle {
    transform: rotate(-10deg) scale(1.15);
}

/* ---- GLOBAL HEADER & NAVIGATION ---- */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #F1EFE9;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
}

header.scrolled {
    background: rgba(241, 239, 233, 0.96);
    box-shadow: 0 10px 30px rgba(11, 63, 99, 0.12);
    border-bottom-color: rgba(29, 149, 166, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    transition: padding .3s ease;
}

header.scrolled .nav {
    padding: 4px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 68px;
    max-height: 68px;
    object-fit: contain;
    transition: transform .3s ease;
}

.logo img:hover {
    transform: scale(1.04);
}

nav.links {
    display: flex;
    gap: 32px;
}

nav.links a {
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--blue-dark);
    position: relative;
    transition: color .25s ease;
}

nav.links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--teal);
    border-radius: 2px;
    transition: width .3s ease;
}

nav.links a:hover,
nav.links a.active {
    color: var(--teal);
}

nav.links a:hover::after,
nav.links a.active::after {
    width: 100%;
}

/* ---- SERVICES SUB-NAV DROPDOWN ---- */
.nav-item-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.dropdown-trigger {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px;
}

.dropdown-chevron {
    width: 10px;
    height: 10px;
    display: inline-block;
    transition: transform .3s ease, stroke .25s ease;
    stroke-width: 2.5px;
}

.nav-item-dropdown:hover .dropdown-chevron {
    transform: rotate(180deg);
    stroke: var(--teal);
}

.sub-nav {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(14px);
    width: 290px;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 20px 48px rgba(11, 63, 99, 0.18), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(11, 63, 99, 0.08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s cubic-bezier(0.16, 1, 0.3, 1), transform .3s cubic-bezier(0.16, 1, 0.3, 1), visibility .3s ease;
    z-index: 200;
}

/* Invisible hover bridge */
.sub-nav::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-item-dropdown:hover .sub-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(6px);
}

.sub-nav-item {
    display: block !important;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    color: var(--blue-dark) !important;
    line-height: 1.4;
    transition: background .2s ease, color .2s ease, padding-left .2s ease !important;
}

.sub-nav-item::after {
    display: none !important;
}

.sub-nav-item:hover {
    background: var(--cream);
    color: var(--teal) !important;
    padding-left: 18px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left .6s ease;
}

.btn:hover::after {
    left: 140%;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 0 var(--blue-dark);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 0 var(--blue-dark);
}

.btn-teal {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 6px 0 #14707d;
}

.btn-teal:hover {
    transform: translateY(-3px);
    box-shadow: 0 9px 0 #14707d;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
    background: linear-gradient(180deg, #EBF5FC 0%, #DDF0F7 100%);
    border-bottom: 2px dashed rgba(29, 149, 166, 0.2);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.blob-bg {
    position: absolute;
    background: var(--teal-tint);
    animation: blobmorph 10s ease-in-out infinite;
}

.blob-1 {
    width: 640px;
    height: 640px;
    top: -220px;
    right: -180px;
    opacity: 0.9;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.5rem);
    line-height: 1.08;
    margin: 16px 0 22px;
}

.hero-copy h1 .pop-word {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    padding: 2px 16px;
    border-radius: 20px;
    transform: rotate(-2deg);
    animation: pop .6s ease;
}

.hero-copy p.sub {
    font-size: 1.1rem;
    max-width: 440px;
    color: #1a1a1a;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.seal-blob {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 100px;
    padding: 8px 18px 8px 8px;
    box-shadow: 0 10px 24px rgba(16, 99, 170, 0.16);
    animation: floaty 4.5s ease-in-out infinite;
}

.seal-blob img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.seal-blob b {
    display: block;
    font-size: 0.82rem;
    color: var(--blue-dark);
}

.seal-blob span {
    font-size: 0.7rem;
    color: #666;
}

.hero-visual {
    position: relative;
    height: 460px;
}

/* Continuous video-like image slideshow */
.hero-slider-frame {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 44% 56% 60% 40% / 45% 42% 58% 55%;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(11, 63, 99, 0.22);
    animation: blobmorph 12s ease-in-out infinite;
    border: 6px solid #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    animation: heroVideoFade 20s ease-in-out infinite;
}

.hero-slide:nth-child(1) {
    animation-delay: 0s;
}

.hero-slide:nth-child(2) {
    animation-delay: 4s;
}

.hero-slide:nth-child(3) {
    animation-delay: 8s;
}

.hero-slide:nth-child(4) {
    animation-delay: 12s;
}

.hero-slide:nth-child(5) {
    animation-delay: 16s;
}

@keyframes heroVideoFade {
    0% {
        opacity: 0;
        transform: scale(1);
    }

    5% {
        opacity: 1;
    }

    20% {
        opacity: 1;
        transform: scale(1.08);
    }

    25% {
        opacity: 0;
        transform: scale(1.12);
    }

    100% {
        opacity: 0;
        transform: scale(1);
    }
}

.big-seal {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 24px 50px rgba(16, 99, 170, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: spin-slow 30s linear infinite;
    border: 2px dashed var(--teal);
    z-index: 10;
}

.big-seal .inner {
    animation: spin-slow 30s linear infinite reverse;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.big-seal img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border-radius: 50%;
    margin-bottom: 2px;
}

.big-seal span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.48rem;
    font-weight: 700;
    color: var(--blue-dark);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* wave scallop divider transition between Hero and Values */
.scallop {
    height: 52px;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: repeating-radial-gradient(circle at 24px -8px, transparent 0 20px, var(--cream) 21px 24px);
    background-size: 48px 48px;
    background-position: 0 -8px;
    z-index: 3;
    animation: scallopWave 3.5s linear infinite, scallopBob 4s ease-in-out infinite alternate;
    will-change: background-position, transform;
}

.scallop::before {
    content: '';
    position: absolute;
    inset: -4px 0 0 0;
    background: repeating-radial-gradient(circle at 24px -8px, transparent 0 20px, rgba(29, 149, 166, 0.25) 21px 24px);
    background-size: 48px 48px;
    background-position: 12px -10px;
    z-index: -1;
    animation: scallopWaveReverse 5.5s linear infinite;
}

@keyframes scallopWave {
    0% {
        background-position: 0px -8px;
    }

    100% {
        background-position: 48px -8px;
    }
}

@keyframes scallopWaveReverse {
    0% {
        background-position: 48px -10px;
    }

    100% {
        background-position: 0px -10px;
    }
}

@keyframes scallopBob {
    0% {
        transform: translateY(0px) scaleY(1);
    }

    50% {
        transform: translateY(-4px) scaleY(1.08);
    }

    100% {
        transform: translateY(2px) scaleY(0.96);
    }
}

/* ---- VALUES: floating cards ---- */
.values {
    padding: 100px 0 90px;
    position: relative;
    background: var(--cream);
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 50px;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-top: 12px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background: #fff;
    border-radius: 36px 36px 36px 12px;
    padding: 38px 30px;
    box-shadow: 0 16px 34px rgba(16, 99, 170, 0.1);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease;
    position: relative;
}

.value-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 24px 46px rgba(16, 99, 170, 0.2);
}

.value-card:nth-child(2) {
    border-radius: 36px 36px 12px 36px;
}

.value-blob-icon {
    width: 60px;
    height: 60px;
    background: var(--teal);
    animation: blobmorph 8s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.value-card:nth-child(2) .value-blob-icon {
    background: var(--blue);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.97rem;
    color: #252525;
}

/* ---- ABOUT: blob collage ---- */
.about {
    padding: 90px 0;
    background: var(--blue-tint);
    position: relative;
    overflow: hidden;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.about-art {
    position: relative;
    height: 440px;
}

.blob-frame {
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(11, 63, 99, 0.18);
    animation: blobmorph 12s ease-in-out infinite;
}

.blob-frame.a {
    width: 70%;
    height: 75%;
    top: 0;
    left: 0;
}

.blob-frame.b {
    width: 52%;
    height: 48%;
    bottom: 0;
    right: 0;
    animation-delay: 2s;
    border: 6px solid var(--cream);
}

.about-copy h2 {
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    margin: 14px 0 20px;
}

.about-copy p {
    font-size: 1.02rem;
    color: #1c1c1c;
    margin-bottom: 16px;
}

.chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.chip {
    background: #fff;
    border-radius: 100px;
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue-dark);
    box-shadow: 0 6px 14px rgba(16, 99, 170, 0.12);
}

/* ---- SERVICES: sticker cards ---- */
.services {
    padding: 100px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: #fff;
    border-radius: 28px;
    padding: 24px 24px 32px;
    position: relative;
    border: 3px solid transparent;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    box-shadow: 0 14px 30px rgba(16, 99, 170, 0.08);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--teal);
    box-shadow: 0 22px 40px rgba(29, 149, 166, 0.2);
}

.service-img-box {
    width: 100%;
    height: 180px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
}

.service-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.service-card:hover .service-img-box img {
    transform: scale(1.06);
}

.service-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--teal-tint);
    color: var(--teal);
    padding: 5px 12px;
    border-radius: 100px;
    display: inline-block;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: #2a2a2a;
    margin-bottom: 18px;
}

.more-link {
    font-weight: 800;
    font-size: 0.88rem;
    color: var(--blue);
    display: inline-flex;
    gap: 6px;
}

.more-link .arrow {
    transition: transform .25s ease;
}

.service-card:hover .more-link .arrow {
    transform: translateX(6px);
}

/* ---- SERVICES LIST (editorial rows) ---- */
.services-list-section {
    padding: 100px 0;
    background: var(--cream);
}

.serv-list-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 50px;
}

.serv-list-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-top: 12px;
}

.serv-list {
    display: flex;
    flex-direction: column;
}

.serv-item {
    display: grid;
    grid-template-columns: 0.4fr 1fr 1.2fr;
    gap: 36px;
    align-items: center;
    padding: 38px 20px;
    border-top: 2px dashed var(--line);
    border-radius: 20px;
    transition: background .35s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s ease;
}

.serv-item:last-child {
    border-bottom: 2px dashed var(--line);
}

.serv-item:hover {
    background: #fff;
    transform: scale(1.01);
    box-shadow: 0 16px 34px rgba(16, 99, 170, 0.12);
}

.serv-icon-blob {
    width: 64px;
    height: 64px;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: blobmorph 8s ease-in-out infinite;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
}

.serv-item:nth-child(2) .serv-icon-blob {
    background: var(--blue);
    animation-delay: 1.5s;
}

.serv-item:nth-child(3) .serv-icon-blob {
    background: var(--blue-dark);
    animation-delay: 3s;
}

.serv-item:hover .serv-icon-blob {
    transform: rotate(-10deg) scale(1.12);
}

.serv-tag-big {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--teal);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.serv-item h3 {
    font-size: 1.4rem;
    margin-top: 4px;
}

.serv-item p {
    color: #262626;
    font-size: 0.97rem;
}

/* ---- LOCAL BANNER ---- */
.local-wrap {
    max-width: 1200px;
    margin: 90px auto;
    padding: 0 26px;
}

.local {
    position: relative;
    border-radius: 56px;
    padding: 90px 50px;
    overflow: hidden;
    color: #fff;
    background: #0B3F63;
    box-shadow: 0 20px 45px rgba(11, 63, 99, 0.22);
}

.local-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.55;
    pointer-events: none;
}

.local-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 36, 58, 0.88) 0%, rgba(11, 63, 99, 0.65) 55%, rgba(29, 149, 166, 0.4) 100%);
    z-index: 2;
    pointer-events: none;
}

.local-blob {
    position: absolute;
    background: rgba(255, 255, 255, 0.12);
    animation: blobmorph 9s ease-in-out infinite;
    z-index: 2;
}

.local-content {
    position: relative;
    z-index: 3;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(11, 35, 55, 0.6);
}

.local .eyebrow {
    color: #DFF7F9;
}

.local h2 {
    color: #fff;
    font-size: clamp(1.9rem, 3vw, 2.5rem);
    margin: 14px 0 18px;
}

.local p {
    color: #EAFBFB;
    font-size: 1.02rem;
    margin-bottom: 26px;
}

.pin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.18);
    padding: 8px 18px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 18px;
}

/* ---- TESTIMONIALS ---- */
.testimonials {
    padding: 100px 0;
    background: var(--teal-tint);
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.test-card {
    background: #fff;
    border-radius: 22px;
    padding: 30px 26px;
    transform: rotate(-1.5deg);
    transition: transform .3s ease;
    box-shadow: 0 14px 28px rgba(16, 99, 170, 0.1);
}

.test-card:nth-child(2) {
    transform: rotate(1deg);
}

.test-card:nth-child(3) {
    transform: rotate(-1deg);
}

.test-card:hover {
    transform: rotate(0deg) translateY(-6px);
}

.stars {
    color: #F5A623;
    letter-spacing: 2px;
    margin-bottom: 14px;
    display: flex;
    gap: 2px;
}

.test-card p.quote {
    font-size: 0.98rem;
    color: #1c1c1c;
    margin-bottom: 18px;
}

.test-name {
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--blue-dark);
}

.test-loc {
    font-size: 0.78rem;
    color: #666;
}

/* ---- PROCESS ---- */
.process {
    padding: 95px 0;
    background: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.process-step {
    text-align: center;
    position: relative;
    cursor: pointer;
}

.step-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-family: 'Baloo 2';
    font-size: 1.4rem;
    font-weight: 700;
    box-shadow: 0 10px 0 var(--blue-dark);
    transform: scale(0.4) translateY(30px) rotate(-15deg);
    opacity: 0;
    transition: transform .65s cubic-bezier(0.34, 1.56, 0.64, 1), opacity .5s ease, box-shadow .3s ease, background .3s ease;
}

.process-step:nth-child(even) .step-circle {
    background: var(--teal);
    box-shadow: 0 10px 0 #14707d;
}

.process-step.in .step-circle {
    transform: scale(1) translateY(0) rotate(0deg);
    opacity: 1;
}

.process-step:nth-child(1) .step-circle { transition-delay: 0.1s; }
.process-step:nth-child(2) .step-circle { transition-delay: 0.25s; }
.process-step:nth-child(3) .step-circle { transition-delay: 0.4s; }
.process-step:nth-child(4) .step-circle { transition-delay: 0.55s; }

.process-step:hover .step-circle {
    transform: translateY(-10px) scale(1.15) rotate(8deg) !important;
    box-shadow: 0 18px 26px rgba(16, 99, 170, 0.38) !important;
}

.process-step:nth-child(even):hover .step-circle {
    box-shadow: 0 18px 26px rgba(29, 149, 166, 0.4) !important;
}

.process-step:hover .step-circle svg {
    animation: iconWiggleBounce 0.6s ease infinite alternate;
}

@keyframes iconWiggleBounce {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.22) rotate(-12deg); }
    100% { transform: scale(1.15) rotate(12deg); }
}

.process-step h3 {
    font-size: 1.05rem;
    color: var(--blue-dark);
    margin-bottom: 8px;
    transition: color .3s ease;
}

.process-step:hover h3 {
    color: var(--teal);
}

.process-step p {
    font-size: 0.88rem;
    color: #444;
}

/* ---- CTA ---- */
.cta {
    padding: 90px 0;
    text-align: center;
}

.cta h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    margin-bottom: 26px;
}

/* ---- NAV PHONE & RIGHT GROUP ---- */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-phone {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--blue-dark);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: color .2s ease;
}

.nav-phone:hover {
    color: var(--teal);
}

/* ---- WHY KENNIX CARE 5 PILLARS ---- */
.why-pillars {
    padding: 90px 0;
    background: #fff;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.pillar-card {
    background: var(--cream);
    border-radius: 24px;
    padding: 30px 22px;
    text-align: center;
    border: 2px solid transparent;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--teal);
    box-shadow: 0 16px 32px rgba(29, 149, 166, 0.12);
}

.pillar-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pillar-card h3 {
    font-size: 1.05rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.86rem;
    color: #444;
    line-height: 1.45;
}

/* ---- FAQ ACCORDION ---- */
.faq-section {
    padding: 95px 0;
    background: var(--cream);
}

.faq-wrap {
    max-width: 840px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(11, 63, 99, 0.05);
    border: 1px solid rgba(11, 63, 99, 0.08);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.faq-item.active {
    border-color: var(--teal);
    box-shadow: 0 10px 28px rgba(29, 149, 166, 0.12);
}

.faq-question {
    padding: 22px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blue-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px 16px 10px 16px;
    background: var(--teal-tint);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 3px 0 rgba(29, 149, 166, 0.25);
    transition: transform .35s cubic-bezier(0.34, 1.56, 0.64, 1), background .3s ease, color .3s ease, box-shadow .3s ease, border-radius .3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--teal);
    color: #fff;
    border-radius: 14px 8px 14px 8px;
    box-shadow: 0 4px 12px rgba(29, 149, 166, 0.35);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease, padding .35s ease;
    padding: 0 28px;
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px 28px;
}

/* ---- GLOBAL FOOTER ---- */
footer {
    background: var(--blue-dark);
    color: #DCEAF4;
    padding: 64px 0 26px;
    border-radius: 56px 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 64px;
    max-height: 64px;
    border-radius: 14px;
    background: #fff;
    padding: 6px 12px;
    object-fit: contain;
}

footer h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8FC2E0;
    margin-bottom: 16px;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

footer a {
    font-size: 0.92rem;
}

footer a:hover {
    color: #fff;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 16px;
    border-radius: 18px;
    margin-top: 14px;
}

.footer-badge img {
    height: 52px;
    width: 52px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 3px;
}

.footer-badge span {
    font-size: 0.78rem;
    line-height: 1.3;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #DCEAF4;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.footer-socials a svg {
    width: 18px;
    height: 18px;
}

.footer-socials a:hover {
    background: var(--teal);
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: #9FC1D8;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---- HAMBURGER MOBILE MENU CSS ---- */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #fff;
    z-index: 120;
}

.mobile-toggle svg {
    width: 28px;
    height: 28px;
    stroke: #fff;
}

.mobile-nav-actions {
    display: none;
}

/* ---- COMPREHENSIVE RESPONSIVE DESIGN & BREAKPOINTS ---- */
@media(max-width:1024px) {
    .wrap {
        padding: 0 20px;
    }
    .pillars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:900px) {
    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    header {
        position: relative;
    }

    nav.links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(8, 36, 58, 0.98);
        backdrop-filter: blur(14px);
        padding: 24px 28px;
        gap: 16px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
        z-index: 110;
    }

    nav.links.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-right {
        display: none;
    }

    .mobile-nav-actions {
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 10px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .mobile-nav-phone {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--teal);
        font-weight: 700;
        font-size: 1.05rem;
        padding: 4px 0;
    }

    .mobile-nav-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .hero-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-visual {
        height: 380px;
    }

    .page-banner .wrap {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .about-art {
        height: 360px;
    }

    .value-grid,
    .service-grid,
    .test-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pillars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .serv-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
    }

    .serv-icon-blob {
        margin: 0 auto;
    }

    .process-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .blob-1 {
        display: none;
    }

    .local {
        padding: 60px 30px;
        border-radius: 36px;
    }
}

@media(max-width:600px) {
    .hero {
        padding: 50px 0 30px;
    }

    .hero-copy h1 {
        font-size: 2.1rem;
        line-height: 1.15;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-top-ndis {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: auto !important;
        height: auto !important;
        margin: 0 auto 16px auto !important;
        overflow: visible !important;
    }

    .hero-top-ndis > div {
        position: relative !important;
        top: 0 !important;
        right: 0 !important;
        width: auto !important;
        height: auto !important;
        padding: 10px 18px !important;
        border-radius: 20px !important;
        border: 1px solid rgba(29, 149, 166, 0.2) !important;
        box-shadow: none !important;
    }

    .hero-visual {
        height: 300px;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .local {
        padding: 44px 20px;
        border-radius: 28px;
    }

    .local-wrap {
        margin: 50px auto;
        padding: 0 16px;
    }

    .local h2 {
        font-size: 1.6rem;
    }

    .nav-phone {
        display: none;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.88rem;
    }
}

/* ==========================================================================
   INNER PAGE HERO BANNER & BREADCRUMBS (MASTER TEMPLATE FOR ABOUT, SERVICES, ETC)
   ========================================================================== */
.page-banner {
    position: relative;
    background: linear-gradient(135deg, rgba(254, 250, 246, 0.88) 0%, rgba(224, 242, 254, 0.92) 100%);
    padding: 65px 0 120px;
    min-height: 380px;
    overflow: hidden;
    text-align: center;
    border-bottom: 2px dashed rgba(29, 149, 166, 0.35);
}

.page-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--banner-img, url('image/Home-Welcome-1.jpg'));
    background-size: cover;
    background-position: center;
    opacity: 0.14;
    z-index: 1;
    pointer-events: none;
    filter: saturate(1.15) contrast(1.05);
}

.page-banner .wrap {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 18px;
    border-radius: 30px;
    margin-bottom: 14px;
    box-shadow: 0 4px 15px rgba(16, 99, 170, 0.08);
    border: 1px solid rgba(255,255,255,0.6);
}

.breadcrumbs a {
    color: var(--blue-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--teal);
}

.breadcrumbs .sep {
    color: #94A3B8;
    font-size: 0.8rem;
}

.page-banner h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 4.2vw, 3.5rem);
    color: var(--blue-dark);
    line-height: 1.15;
    margin-bottom: 16px;
}

.page-banner p.banner-sub {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    color: #335064;
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.65;
}
