/* Global Styles for Physio / Rehab Site (inspired by reference, original implementation) */
:root {
    --color-navy: #07243A;
    --color-blue: #34668A;
    --color-accent: #878745;
    --color-charcoal: #33373D;
    --color-bg-alt: #0e304c;
    --color-light: #f1f5f9;
    --color-light-muted: #e2e8f0;
    --color-dark: #0b1c28;
    --gradient-accent: linear-gradient(135deg, var(--color-blue), var(--color-navy));
    --gradient-accent-soft: linear-gradient(135deg, #3e779f, #0f3e61 60%, #07243A);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --shadow-md: 0 6px 16px -4px rgba(0, 0, 0, .25);
    --shadow-glow: 0 0 0 1px #ffffff10, 0 4px 24px -4px rgba(0, 0, 0, .55), 0 0 40px -8px #34668a66;
    --ease: cubic-bezier(.4, 0, .2, 1);
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--color-dark);
    color: var(--color-light-muted);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color .25s var(--ease);
}

a:hover {
    color: #a6a661;
}

h1,
h2,
h3,
h4 {
    font-family: 'Montserrat', 'Lato', sans-serif;
    line-height: 1.15;
    color: var(--color-light);
    margin: 0 0 .6em;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.2rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.4rem);
}

h3 {
    font-size: clamp(1.35rem, 2.6vw, 1.55rem);
}

p {
    margin: 0 0 1.15em;
}

/* Layout */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section {
    padding: clamp(3.5rem, 9vw, 6.5rem) 0;
    position: relative;
}

.section.tight {
    padding: 3rem 0;
}

.section.bg-alt {
    background: linear-gradient(#0d2e47, #0a273d);
}

.section.accent-fade {
    background: linear-gradient(180deg, #07243A, #062032, #061a29);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #2d556f, transparent);
    margin: 3.5rem 0;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    backdrop-filter: blur(14px);
    background: #03131fcc;
    border-bottom: 1px solid #ffffff12;
    transition: background .35s var(--ease), transform .5s var(--ease);
}

.site-header.scrolled {
    background: #03131fe6;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 72px;
}

.brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 600;
    color: var(--color-light);
    font-size: 1.125rem;
    letter-spacing: .5px;
}

.brand img {
    height: 46px;
    width: auto;
    filter: drop-shadow(0 2px 6px #00000050);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links>li {
    position: relative;
}

.nav-links a {
    padding: .6rem .9rem;
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 500;
    color: var(--color-light-muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: #ffffff10;
    color: #fff;
}

.nav-links .active>a {
    background: #ffffff12;
    color: #fff;
    box-shadow: inset 0 0 0 1px #ffffff18;
}

/* Dropdown */
.nav-links li.has-sub>button {
    all: unset;
    cursor: pointer;
    padding: .6rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    color: var(--color-light-muted);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 500;
}

.nav-links li.has-sub>button:hover {
    background: #ffffff10;
    color: #fff;
}

.nav-links li.has-sub[aria-expanded="true"]>button {
    background: #ffffff14;
    color: #fff;
}

.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #07243Ad8;
    border: 1px solid #ffffff14;
    backdrop-filter: blur(10px);
    padding: .75rem;
    min-width: 220px;
    display: grid;
    gap: .25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: .35s var(--ease);
}

.has-sub[aria-expanded="true"]>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    font-size: .875rem;
    padding: .55rem .6rem .55rem .8rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.submenu a:hover {
    background: #ffffff10;
    color: #fff;
}

/* Mobile Nav */
.nav-toggle {
    display: none;
    background: #0b314d;
    border: 1px solid #ffffff20;
    color: #fff;
    padding: .65rem .9rem;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
}

@media (max-width: 1020px) {
    .nav-links {
        position: fixed;
        inset: 0 0 0 40%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 6rem 1.75rem 3rem;
        background: #041a28;
        gap: .35rem;
        transform: translateX(100%);
        transition: transform .55s var(--ease);
        overflow-y: auto;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a,
    .nav-links li.has-sub>button {
        width: 100%;
        justify-content: flex-start;
    }

    .submenu {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: #052637;
        border: 1px solid #ffffff12;
        padding: .4rem .5rem .6rem;
        box-shadow: none;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Hero */
.hero {
    position: relative;
    padding: clamp(5rem, 10vw, 8rem) 0 5.5rem;
    background: radial-gradient(circle at 25% 20%, #0c3655 0%, #041b2b 70%, #04131d 100%);
    overflow: hidden;
}

.hero:before,
.hero:after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .35;
    animation: float 14s linear infinite;
}

.hero:before {
    width: 520px;
    height: 520px;
    background: #34668A;
    top: -140px;
    right: -140px;
    animation-duration: 22s;
}

.hero:after {
    width: 420px;
    height: 420px;
    background: #878745;
    bottom: -120px;
    left: -80px;
    animation-direction: reverse;
}

@keyframes float {
    0% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }

    50% {
        transform: translate3d(0, -20px, 0) rotate(150deg);
    }

    100% {
        transform: translate3d(0, 0, 0) rotate(360deg);
    }
}

.hero-grid {
    display: grid;
    gap: 3.5rem;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .75px;
    padding: .55rem .85rem;
    background: #ffffff12;
    border: 1px solid #ffffff22;
    border-radius: 50px;
    text-transform: uppercase;
    color: var(--color-light);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px #ffffff0f;
}

.hero h1 span {
    background: linear-gradient(90deg, #f1f5f9, #9fb9c8 45%, #d9e4ea);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text p {
    font-size: 1.05rem;
    max-width: 620px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.4rem;
}

.btn {
    --btn-bg: var(--color-blue);
    --btn-color: #fff;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-weight: 600;
    line-height: 1;
    font-size: .95rem;
    letter-spacing: .5px;
    padding: .9rem 1.2rem;
    border-radius: var(--radius-sm);
    background: var(--btn-bg);
    color: var(--btn-color);
    border: 1px solid #ffffff18;
    cursor: pointer;
    text-decoration: none;
    transition: background .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}

.btn:hover {
    box-shadow: 0 6px 18px -4px #00000070, 0 0 0 1px #ffffff30 inset;
}

.btn.outline {
    --btn-bg: #ffffff10;
    --btn-color: var(--color-light);
    backdrop-filter: blur(6px);
}

.btn.outline:hover {
    background: #ffffff18;
}

.btn.accent {
    --btn-bg: var(--color-accent);
}

/* Cards & Grids */
.grid {
    display: grid;
    gap: 1.9rem;
}

.grid.cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid.cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    position: relative;
    background: #0a273b;
    border: 1px solid #ffffff12;
    border-radius: var(--radius-md);
    padding: 1.2rem 1.15rem 1.4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    transition: border-color .4s var(--ease), transform .45s var(--ease), box-shadow .5s var(--ease);
}

.card:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #34668A20, #07243A05 55%, transparent);
    opacity: 0;
    transition: opacity .5s var(--ease);
}

.card:hover {
    border-color: #ffffff26;
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.card:hover:before {
    opacity: 1;
}

.card h3 {
    font-size: 1.05rem;
    margin: 0;
    letter-spacing: .5px;
}

.card p {
    font-size: .87rem;
    margin: 0;
    opacity: .82;
}

.card .more {
    margin-top: auto;
    font-size: .7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: #b2c3cb;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.card .more:after {
    content: "→";
    transition: transform .35s var(--ease);
}

.card:hover .more:after {
    transform: translateX(4px);
}

/* Feature rows */
.feature-row {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse>* {
    direction: ltr;
}

.feature-visual {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #0d314a;
    border: 1px solid #ffffff14;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Process / Steps */
.steps {
    counter-reset: step;
    display: grid;
    gap: 1.25rem;
}

.step {
    position: relative;
    background: #0a273b;
    border: 1px solid #ffffff12;
    border-radius: var(--radius-md);
    padding: 1.1rem 1.1rem 1.1rem 3.8rem;
    overflow: hidden;
}

.step:before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 1.1rem;
    top: 1rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: .9rem;
    color: #fff;
    background: linear-gradient(135deg, #34668A, #07243A);
    box-shadow: 0 0 0 1px #ffffff25, 0 4px 10px -2px #00000080;
}

.step h3 {
    font-size: 1rem;
    margin: 0 0 .35rem;
}

.step p {
    font-size: .8rem;
    margin: 0;
    opacity: .85;
}

/* Testimonials */
.testimonials {
    position: relative;
}

.testimonial-track {
    display: flex;
    transition: transform .7s var(--ease);
}

.testimonial {
    flex: 0 0 100%;
    padding: .75rem .75rem 1rem;
}

.testimonial-inner {
    background: #0a273b;
    border: 1px solid #ffffff14;
    padding: 1.4rem 1.35rem 1.6rem;
    border-radius: var(--radius-md);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    min-height: 240px;
}

.testimonial-inner:before {
    content: "\201C";
    position: absolute;
    font-size: 5rem;
    opacity: .05;
    top: .2rem;
    left: .8rem;
    line-height: 1;
}

.stars {
    color: #f5cd5d;
    letter-spacing: 2px;
    font-size: .8rem;
}

.testimonial footer {
    font-size: .8rem;
    opacity: .8;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.slider-controls {
    display: flex;
    gap: .65rem;
    margin-top: 1rem;
}

.slider-controls button {
    background: #0b314d;
    border: 1px solid #ffffff20;
    color: #fff;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background .3s var(--ease);
}

.slider-controls button:hover {
    background: #123d5d;
}

/* CTA Band */
.cta-band {
    position: relative;
    background: linear-gradient(135deg, #34668A, #0d3c5a 55%, #07243A);
    border: 1px solid #ffffff14;
    border-radius: var(--radius-lg);
    padding: clamp(2.2rem, 6vw, 3rem) clamp(1.6rem, 4vw, 2.75rem);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-band h2 {
    background: linear-gradient(90deg, #fff, #c6d5dc, #9bb0bc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: clamp(1.8rem, 3.3vw, 2.4rem);
}

.cta-band:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 30%, #ffffff18, transparent 55%);
    mix-blend-mode: overlay;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 1.2rem;
}

/* Footer */
.footer {
    background: #041824;
    border-top: 1px solid #ffffff14;
    padding: 3.5rem 0 2.5rem;
    font-size: .85rem;
}

.footer-grid {
    display: grid;
    gap: 2.5rem clamp(2rem, 5vw, 5rem);
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer h4 {
    font-size: .9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: 1.1rem;
}

.footer a {
    font-size: .78rem;
    padding: .35rem 0;
    display: inline-block;
    opacity: .75;
}

.footer a:hover {
    opacity: 1;
    color: #fff;
}

.footer small {
    display: block;
    opacity: .55;
    font-size: .7rem;
    margin-top: 2.2rem;
}

/* Utilities */
.text-center {
    text-align: center;
}

.max-w-md {
    max-width: 640px;
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp .9s var(--ease) forwards;
}

.fade-in.del-1 {
    animation-delay: .15s;
}

.fade-in.del-2 {
    animation-delay: .3s;
}

.fade-in.del-3 {
    animation-delay: .45s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.muted {
    opacity: .75;
}

/* Forms */
form {
    display: grid;
    gap: 1rem;
}

input,
textarea {
    font: inherit;
    padding: .85rem 1rem;
    background: #082536;
    border: 1px solid #ffffff18;
    border-radius: var(--radius-sm);
    color: #fff;
    resize: vertical;
}

input:focus,
textarea:focus {
    outline: 2px solid #34668A;
    outline-offset: 2px;
}

label span {
    display: block;
    font-size: .7rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: .4rem;
}

/* Responsive tweaks */
@media (max-width: 640px) {
    .hero-grid {
        gap: 2.5rem;
    }


    /* --- About Page Specific Enhancements --- */
    .team-grid {
        display: grid;
        gap: 1.75rem;
        grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    }

    .team-card {
        background: #0a273b;
        border: 1px solid #ffffff12;
        border-radius: 20px;
        padding: 1.3rem 1.1rem 1.4rem;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: .85rem;
        transition: border-color .4s var(--ease), transform .45s var(--ease), box-shadow .5s var(--ease);
    }

    .team-card:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(145deg, #34668A25, #07243A05 55%, transparent);
        opacity: 0;
        transition: opacity .55s var(--ease);
    }

    .team-card:hover {
        border-color: #ffffff26;
        transform: translateY(-4px);
        box-shadow: var(--shadow-glow);
    }

    .team-card:hover:before {
        opacity: 1;
    }

    .team-avatar {
        width: 86px;
        height: 86px;
        border-radius: 22px;
        object-fit: cover;
        border: 2px solid #ffffff22;
        box-shadow: 0 6px 16px -6px #00000080;
    }

    .role {
        font-size: .65rem;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        font-weight: 600;
        color: #b2c3cb;
    }

    .values-grid {
        display: grid;
        gap: 1.4rem;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }

    .value {
        background: #0a273b;
        border: 1px solid #ffffff12;
        padding: 1.15rem 1.05rem 1.3rem;
        border-radius: 18px;
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        gap: .65rem;
    }

    .value:before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, #87874522, #34668A10 55%, transparent);
        opacity: 0;
        transition: opacity .5s var(--ease);
    }

    .value:hover:before {
        opacity: 1;
    }

    .value h3 {
        font-size: 1rem;
        margin: 0;
    }

    .value p {
        font-size: .78rem;
        margin: 0;
        opacity: .8;
    }

    .stats-grid {
        display: grid;
        gap: 1.4rem;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        margin-top: 2.2rem;
    }

    .stat {
        background: #0a273b;
        border: 1px solid #ffffff12;
        padding: 1.1rem 1rem 1.2rem;
        border-radius: 16px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .stat strong {
        display: block;
        font-size: 1.9rem;
        line-height: 1;
        background: linear-gradient(90deg, #fff, #b9cad2, #8fa5b0);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        margin-bottom: .45rem;
    }

    .stat span {
        font-size: .65rem;
        letter-spacing: 1.5px;
        font-weight: 600;
        text-transform: uppercase;
        color: #b2c3cb;
    }

    .timeline {
        border-left: 2px solid #ffffff18;
        margin: 2.4rem 0 0;
        padding-left: 1.4rem;
        display: grid;
        gap: 1.9rem;
    }

    .milestone {
        position: relative;
    }

    .milestone:before {
        content: "";
        position: absolute;
        left: -1.05rem;
        top: .4rem;
        width: .9rem;
        height: .9rem;
        border-radius: 50%;
        background: linear-gradient(135deg, #34668A, #07243A);
        box-shadow: 0 0 0 4px #0b1c28;
    }

    .milestone h3 {
        font-size: .95rem;
        margin: 0 0 .3rem;
        letter-spacing: .5px;
    }

    .milestone p {
        font-size: .78rem;
        margin: 0;
        opacity: .8;
    }

    .lead {
        font-size: 1.05rem;
        max-width: 760px;
    }

    .testimonial-inner {
        min-height: 260px;
    }

    .cta-band {
        padding: 2.4rem 1.4rem 2.6rem;
    }
}