:root {
    --nile-dark: #102b46;
    --nile-blue: #065278;
    --nile-teal: #00a3b4;
    --nile-accent: #f5a623;
    --nile-accent-dark: #d98c0b;
    --nile-light: #eef6fb;
    --radius: 1rem;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: #2b3445;
}
.container {
    width: 100%;
    max-width: none;
    padding-inline: clamp(1.5rem, 3vw, 3rem);
}
h1, h2, h3, h4, h5, h6 { color: var(--nile-dark); font-weight: 700; }
img { max-width: 100%; height: auto; }
a, h1, h2, h3, p { overflow-wrap: break-word; }
:focus-visible { outline: 3px solid var(--nile-accent); outline-offset: 4px; }
a { color: var(--nile-blue); }
.text-accent { color: var(--nile-accent) !important; }

/* Buttons */
.btn-accent {
    background: var(--nile-accent);
    border-color: var(--nile-accent);
    color: #1a1a1a;
    font-weight: 600;
}
.btn-accent:hover, .btn-accent:focus {
    background: var(--nile-accent-dark);
    border-color: var(--nile-accent-dark);
    color: #fff;
}
.btn-outline-primary { color: var(--nile-blue); border-color: var(--nile-blue); }
.btn-outline-primary:hover { background: var(--nile-blue); border-color: var(--nile-blue); }

/* Top bar & nav */
.topbar {
    background: var(--nile-dark);
    color: rgba(255,255,255,.82);
    font-size: .85rem;
    padding: .25rem 0;
}
.topbar a { color: rgba(255,255,255,.92); text-decoration: none; }
.topbar a:hover { color: var(--nile-accent); }

.main-nav {
    background: #0c2438;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 4px 18px rgba(4,30,66,.12);
    transition: padding .3s, box-shadow .3s;
}
.main-nav.scrolled { padding: .15rem 0; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.main-nav .nav-link {
    color: rgba(255,255,255,.85);
    font-weight: 500;
    margin: 0 .3rem;
    position: relative;
    border-radius: .5rem;
    transition: background-color .2s ease, color .2s ease;
}
.main-nav .nav-link.active { color: #fff; }
.main-nav .nav-link:hover, .main-nav .nav-link:focus-visible {
    background-color: var(--nile-accent);
    color: var(--nile-dark);
}
@media (min-width: 992px) {
    .main-nav .nav-link.active::after {
        content: '';
        position: absolute;
        left: .5rem; right: .5rem; bottom: 0;
        height: 2px;
        background: var(--nile-accent);
        border-radius: 2px;
    }
}
.brand-mark {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--nile-teal), var(--nile-accent));
    color: #fff; font-size: 1.4rem;
}
.brand-name { font-weight: 700; font-size: 1.1rem; color: #fff; }
.brand-sub { color: rgba(255,255,255,.65); font-size: .7rem; letter-spacing: 2px; text-transform: uppercase; }
.main-nav .navbar-brand { flex-direction: row; align-items: center !important; gap: .75rem; min-width: 0; margin-right: .5rem; }
.main-nav .brand-logo { width: 76px; }
.main-nav .brand-name { font-size: 1.2rem; white-space: nowrap; }
.brand-logo { display: block; width: 132px; height: auto; padding: 0; background: transparent; border-radius: 0; }
.brand-copy { display: block; }
.footer-brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.footer-brand .brand-logo { width: 100px; }
.main-nav .brand-logo, .footer-brand .brand-logo { filter: brightness(0) invert(1); }
.topbar .container { flex-wrap: wrap; gap: .25rem 1rem; }

.public-nav { background: #0c2438; padding: .8rem 0; border-bottom: 1px solid #ffffff14; box-shadow: none; }
.public-nav.scrolled { background: #0c2438; padding: .55rem 0; }
.public-nav .brand-logo { width: 52px; }
.public-brand-copy { color: #fff; font-size: .95rem; font-weight: 600; letter-spacing: -.025em; }
.public-brand-copy small { display: block; color: #adc1cf; font-size: .62rem; font-weight: 400; letter-spacing: .06em; margin-top: .25rem; }
.public-nav .nav-link { font-size: .85rem; padding: .7rem 1rem; color: #c1d0dd; }
.public-nav .nav-link:hover, .public-nav .nav-link:focus-visible { background: #ffffff0d; color: white; }
.public-nav .btn-accent { font-size: .82rem; padding-block: .7rem; border-radius: .55rem !important; }

/* Hero */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 7rem 0 9rem;
}
.hero-title {
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
}
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; }
.eyebrow {
    display: inline-block;
    background: rgba(171, 160, 160, 0.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.eyebrow.dark { background: rgba(132, 143, 145, 0.1); border-color: rgba(153, 169, 171, 0.3); color: var(--nile-teal); }
.hero-card { position: relative; }
.hero-card img { box-shadow: 0 25px 50px rgba(0,0,0,.35); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-badge {
    position: absolute;
    left: -25px; bottom: -25px;
    background: #fff;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    display: flex; gap: .8rem; align-items: center;
    box-shadow: 0 15px 35px rgba(0,0,0,.2);
    animation: float 4s ease-in-out infinite;
}
.hero-badge i { font-size: 1.8rem; color: var(--nile-accent); }
.hero-wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.hero-wave svg { width: 100%; height: 80px; }
.hero-wave path { fill: #fff; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.home-hero {
    background: radial-gradient(ellipse at 85% 30%, #12607455, transparent 55%), linear-gradient(115deg, #0c2438, #103b50);
    padding: clamp(3.5rem, 6vw, 6rem) 0 6rem;
    isolation: isolate;
}
.home-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .04; background: url('../../images/cloud.jpeg') center / cover; pointer-events: none; }
.home-hero .hero-title { font-size: clamp(2rem, 3.1vw, 3.6rem); letter-spacing: -.035em; line-height: 1.3; font-weight: 400; color: #e6eef4; }
.hero-title-line { display: block; }
.hero-title-line + .hero-title-line { margin-top: .12em; }
.hero-word-software, .hero-word-cloud, .hero-word-ai { font-weight: 600; }
.hero-word-software { color: #fff; }
.hero-word-cloud { color: #ffcb78; }
.hero-word-ai { color: #85d9d3; }
.home-hero .eyebrow { border-color: #5da9b64d; background: #2a768522; color: #bbdfe3; font-size: .65rem; letter-spacing: .13em; padding: .5rem .85rem; }
.home-hero .hero-lead { max-width: 39rem; color: #b8cbd8; font-size: clamp(.95rem, 1.15vw, 1.1rem); line-height: 1.85; }
.home-hero .btn { border-radius: .6rem; padding-block: .85rem; font-size: .9rem; }
.home-hero .btn-outline-light { color: #e3edf4; border-color: #7999ad80; }
.home-hero .btn-outline-light:hover { color: #102b46; background: #fff; }
.hero-capabilities { display: flex; flex-wrap: wrap; gap: 1.4rem; border-top: 1px solid #ffffff1a; padding-top: 1.4rem; margin-top: 2rem; max-width: 39rem; }
.hero-capabilities span { display: inline-flex; gap: .5rem; align-items: center; color: #afc8d6; font-size: .73rem; }
.hero-capabilities .bi { color: #6ac2c6; font-size: 1rem; }
.home-hero .hero-card { background: #ffffff08; border: 1px solid #ffffff26; border-radius: 1.1rem; padding: .8rem; box-shadow: 0 25px 65px #00000024; transform: rotate(1deg); }
.hero-card-heading { display: flex; align-items: center; gap: .5rem; color: #d3e6ee; font-size: .7rem; padding: .4rem .3rem 1rem; }
.hero-card-dot { width: .4rem; height: .4rem; background: #69c5b4; border-radius: 50%; }
.hero-card-caption { margin-left: auto; font-size: .5rem; letter-spacing: .1em; color: #94b5c5; }
.home-hero .hero-card img { border-radius: .65rem !important; aspect-ratio: 1.3; box-shadow: none; }
.home-hero .hero-badge { left: -1.5rem; bottom: -1.4rem; border: 1px solid #dfe7ed; border-radius: .8rem; padding: .85rem 1.1rem; animation: none; gap: .75rem; }
.home-hero .hero-badge i { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; background: #fff4df; border-radius: .65rem; font-size: 1.3rem; }
.home-hero .hero-badge strong { color: #18364c; font-size: .85rem; }
.home-hero .hero-badge small { color: #667d8f; font-size: .7rem; }
.home-hero .hero-wave svg { height: 35px; }
@media (min-width: 992px) { .home-hero-grid { --bs-gutter-x: clamp(2rem, 4vw, 5rem); } }
@media (max-width: 991.98px) {
    .home-hero { padding: 3.5rem 0 4.5rem; }
    .home-hero .hero-title { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
    .home-hero .hero-lead, .hero-capabilities { margin-inline: auto; }
    .hero-capabilities { justify-content: center; }
}
@media (max-width: 575.98px) {
    .public-brand-copy { font-size: .78rem; }
    .public-brand-copy small { font-size: .54rem; }
    .home-hero .hero-title { font-size: clamp(1.45rem, 6.2vw, 2rem); }
    .home-hero .hero-lead { font-size: .92rem; }
    .hero-capabilities { gap: .8rem; }
    .hero-capabilities span { font-size: .65rem; }
}

/* Page hero */
.page-hero {
    background-size: cover;
    background-position: center;
    padding: 5rem 0 4rem;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .breadcrumb-item a { color: var(--nile-accent); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.75); }

/* Sections */
.section { padding: 5rem 0; }
.bg-light-blue { background: var(--nile-light); }
.section-heading { max-width: 680px; margin: 0 auto 3rem; }
.section-heading h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin: .75rem 0; }
#services .section-heading h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.35; }
.section-heading p { color: #607387; }
.what-we-do-intro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; margin-bottom: 2.5rem; padding: 1.75rem; background: #fff; border: 1px solid #dce8ef; border-radius: 1rem; }
.what-we-do-intro h3 { font-size: 1.05rem; color: #163d55; margin-bottom: .8rem; }
.what-we-do-intro p { font-size: .9rem; line-height: 1.85; color: #536e80; margin: 0; }
.service-capabilities { list-style: none; padding: 0; margin: 1rem 0 1.25rem; display: grid; gap: .55rem; }
.service-capabilities li { display: flex; align-items: flex-start; gap: .55rem; font-size: .8rem; line-height: 1.6; color: #536e80; }
.service-capabilities .bi { color: #087c87; flex-shrink: 0; }
@media (max-width: 767.98px) { .what-we-do-intro { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.25rem; } }
.where-we-work { margin-bottom: 3.5rem; }
.where-we-work-title {
    position: relative;
    width: fit-content;
    margin: 0 auto 1.5rem;
    padding-bottom: .7rem;
    color: var(--nile-dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -.025em;
    text-align: center;
    animation: where-we-work-title-enter .9s cubic-bezier(.22, 1, .36, 1) both;
}
.where-we-work-title::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 58%;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--nile-teal), var(--nile-accent));
    transform: scaleX(0);
    transform-origin: right center;
    animation: where-we-work-underline .65s ease-out .4s forwards;
}
.where-we-work-marquee {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.where-we-work-marquee::before,
.where-we-work-marquee::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 5%;
    content: '';
    pointer-events: none;
}
.where-we-work-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--nile-light), transparent);
}
.where-we-work-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--nile-light), transparent);
}
.where-we-work-track {
    display: flex;
    width: max-content;
    animation: where-we-work-scroll 28s linear infinite;
    backface-visibility: hidden;
}
.where-we-work-marquee:hover .where-we-work-track,
.where-we-work-marquee:focus-within .where-we-work-track {
    animation-play-state: paused;
}
.where-we-work-group {
    display: flex;
    flex: 0 0 auto;
    gap: 1rem;
    padding-right: 1rem;
}
.sector-card {
    --sector-card-width: clamp(190px, 22vw, 250px);
    flex: 0 0 var(--sector-card-width);
    width: var(--sector-card-width);
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(4,30,66,.08);
}
.sector-card img {
    display: block;
    width: 100%;
    height: clamp(125px, 16vw, 170px);
    object-fit: contain;
    background: #fff;
}
.sector-card h3 {
    margin: 0;
    padding: .8rem .5rem;
    color: var(--nile-dark);
    font-size: .95rem;
    text-align: center;
}
@keyframes where-we-work-scroll {
    to { transform: translateX(-50%); }
}
@keyframes where-we-work-title-enter {
    from { opacity: 0; transform: translateX(56px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes where-we-work-underline {
    to { transform: scaleX(1); }
}

/* Stats */
.stat-box {
    padding: 1.5rem 1rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 30px rgba(4,30,66,.08);
    height: 100%;
}
.stat-box i { font-size: 1.8rem; color: var(--nile-teal); }
.stat-box h3 { font-size: 2.2rem; margin: .5rem 0 .2rem; }
.stat-box p { margin: 0; color: #6c7a89; font-size: .9rem; }

/* Service cards */
.service-card {
    display: flex; flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 10px 30px rgba(4,30,66,.08);
    transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(4,30,66,.16); }
.service-img {
    height: 170px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform .5s;
}
.service-card:hover .service-img { transform: scale(1.04); }
.service-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--nile-blue), var(--nile-teal));
    color: #fff;
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0,163,180,.35);
}
.service-img .service-icon { position: absolute; left: 1.25rem; bottom: -28px; z-index: 2; }
.service-body { padding: 2.4rem 1.25rem 1.5rem; display: flex; flex-direction: column; flex: 1; background: #fff; position: relative; }
.service-body h5 { margin-bottom: .5rem; }
.service-body p { color: #6c7a89; font-size: .92rem; flex: 1; }
.read-more { color: var(--nile-teal); font-weight: 600; font-size: .9rem; }
.read-more i { transition: margin-left .3s; }
.service-card:hover .read-more i { margin-left: 6px; }

/* Service detail page */
.service-process { padding: 2rem; border: 1px solid #e6edf3; border-radius: var(--radius); background: #f7fafc; }
.service-process .section-heading { margin-bottom: 1.5rem; }
.service-process-step { padding: 1.25rem; border: 1px solid #e3ebf0; border-radius: .8rem; background: #fff; }
.service-process-step > i { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: .85rem; border-radius: 12px; background: rgba(0,163,180,.12); color: var(--nile-blue); font-size: 1.25rem; }
.service-process-step h3 { font-size: 1rem; }
.service-process-step p { margin: 0; color: #6c7a89; font-size: .9rem; }
.service-detail { padding: 3rem 0; border-bottom: 1px solid #e6edf3; scroll-margin-top: 90px; }
.service-detail:last-child { border-bottom: 0; }
.service-detail-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.service-image-link {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}
.service-image-link img { transition: transform .35s ease; }
.service-image-link:hover img, .service-image-link:focus-visible img { transform: scale(1.025); }
.image-link-label {
    position: absolute;
    inset: auto .75rem .75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 1rem;
    background: var(--nile-dark);
    color: #fff;
    border-radius: .6rem;
    font-weight: 500;
}
.service-image-link:hover .image-link-label { background: var(--nile-blue); }
.service-image-link:focus-visible { outline: 3px solid var(--nile-accent); outline-offset: 4px; }
.service-navigation li + li { border-top: 1px solid #e6edf3; }
.service-navigation a { display: block; padding: .7rem 0; text-decoration: none; }
.service-navigation a[aria-current="page"] { font-weight: 700; color: var(--nile-dark); }
.service-filter .btn { padding: .65rem 1rem; white-space: normal; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: .35rem 0; display: flex; gap: .6rem; align-items: flex-start; }
.check-list i { color: var(--nile-teal); margin-top: .15rem; }

/* Why us */
.img-stack { position: relative; padding-bottom: 3rem; padding-right: 3rem; }
.img-stack > img:first-child { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.img-stack-top {
    position: absolute;
    right: 0; bottom: 0;
    width: 50%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 6px solid #fff;
}
.why-item { display: flex; gap: .9rem; }
.why-item i {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(245,166,35,.15);
    color: var(--nile-accent-dark);
    font-size: 1.25rem;
}
.why-item h6 { margin-bottom: .2rem; }
.why-item p { font-size: .88rem; color: #6c7a89; margin: 0; }

/* CTA */
.cta {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 5rem 0;
}
.cta h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); }

/* About / Contact cards */
.value-card, .contact-card, .form-card, .hours-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(4,30,66,.08);
}
.contact-card { text-align: center; padding: 1.5rem 1rem; word-break: break-word; }
.contact-card a { text-decoration: none; }
.form-card .form-control, .form-card .form-select { padding: .7rem 1rem; border-radius: .6rem; }
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--nile-teal); box-shadow: 0 0 0 .2rem rgba(0,163,180,.2); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: 0 10px 30px rgba(4,30,66,.08); }
.map-wrap iframe { width: 100%; height: 340px; border: 0; display: block; }
.hours-card li { padding: .35rem 0; border-bottom: 1px dashed #e1e8ee; }
.hours-card li:last-child { border-bottom: 0; }

/* Footer */
.site-footer {
    position: relative;
    background: radial-gradient(ellipse at 100% 100%, #14536555, transparent 60%), #0c2438;
    color: #fff;
    padding: 3.5rem 0 4.5rem;
    border-top: 1px solid #ffffff12;
}
.site-footer .footer-brand { margin-bottom: 1.1rem !important; }
.site-footer .footer-brand .brand-logo { width: 76px; }
.site-footer p { max-width: 24rem; font-size: .86rem; line-height: 1.85; color: #b2c7d5 !important; }
.site-footer .footer-title { font-size: .82rem; font-weight: 600; letter-spacing: .03em; margin: .4rem 0 1.25rem; padding-bottom: .85rem; }
.site-footer .footer-title::after { width: 24px; background: #54b7bc; }
.site-footer .footer-links a, .site-footer .footer-contact a, .site-footer .footer-contact li { font-size: .81rem; color: #b2c7d5; line-height: 1.7; }
.site-footer .footer-links li, .site-footer .footer-contact li { margin-bottom: .7rem; }
.site-footer .footer-contact i { color: #72c5c6; }
.site-footer .footer-links a:hover, .site-footer .footer-contact a:hover { color: white; }
.footer-social { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.3rem; }
.footer-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff26; background: #ffffff08; border-radius: .65rem; color: #c9dde7; font-size: 1rem; text-decoration: none; transition: background-color .2s, color .2s; }
.footer-social a:hover { color: #fff; background: #226276; border-color: #69b4c1; }
.footer-bottom { border-top: 1px solid #ffffff1a; padding-top: 1.5rem; margin-top: 2rem; font-size: .72rem; color: #9fb8c8 !important; line-height: 1.8; }
.footer-bottom a { text-underline-offset: .2rem; margin-left: .5rem; }
.site-footer > .container { position: relative; z-index: 1; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "brand company contact services"; gap: 2rem; }
.footer-columns > div { min-width: 0; }
.footer-column-brand { grid-area: brand; }
.footer-column-company { grid-area: company; }
.footer-column-contact { grid-area: contact; }
.footer-column-services { grid-area: services; justify-self: end; }
@media (max-width: 991.98px) {
    .footer-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "brand brand" "company services" "contact services"; gap: 1.5rem; }
}
.partner-showcase { overflow: hidden; padding: 3.5rem 0; background: #f5f9fb; }
.partner-showcase-heading { margin: 0 auto 2rem; max-width: 46rem; text-align: center; }
.partner-showcase-heading h2 { margin: .55rem 0; color: var(--nile-dark); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.partner-showcase-heading p { margin: 0; color: #647789; }
.partner-showcase-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.partner-showcase-track { display: flex; width: max-content; animation: partner-showcase-scroll 34s ease-in-out infinite alternate; }
.partner-motion-toggle { margin: 0 .4rem 1rem 0; }
.partner-motion-label { margin-bottom: 1rem; cursor: pointer; }
.partner-motion-toggle:checked ~ .partner-showcase-window .partner-showcase-track { animation-play-state: paused; }
.partner-showcase-window:hover .partner-showcase-track,
.partner-showcase-window:focus-within .partner-showcase-track { animation-play-state: paused; }
.partner-showcase-list { display: flex; min-width: 100vw; align-items: center; justify-content: center; gap: 1.5rem; margin: 0; padding: .5rem .75rem; list-style: none; }
.partner-showcase-list li { display: grid; width: 190px; height: 100px; place-items: center; flex: 0 0 auto; border: 1px solid #e4edf1; border-radius: .9rem; background: #fff; padding: 1rem; }
.partner-showcase-list img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes partner-showcase-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .partner-motion-toggle, .partner-motion-label { display: none; }
    .partner-showcase-window { overflow-x: auto; mask-image: none; }
    .partner-showcase-track { animation: none; }
    .partner-showcase-list[aria-hidden="true"] { display: none; }
}
.footer-river {
    position: absolute;
    inset: auto 0 0;
    height: 96px;
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0,163,180,.12));
}
.footer-river-waves {
    display: block;
    width: 200%;
    max-width: none;
    height: 100%;
    animation: nile-waves 18s linear infinite;
}
.river-wave-back { fill: rgba(0,163,180,.18); }
.river-wave-front { fill: rgba(72,208,220,.16); }
.river-drop {
    position: absolute;
    left: 0;
    top: 30%;
    width: 100%;
    height: 14px;
    animation: nile-current 16s linear infinite;
    animation-delay: -3s;
}
.river-drop::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50% 50% 50% 0;
    background: #48d0dc;
    opacity: .6;
    transform: rotate(-135deg);
}
.river-drop::after {
    content: '';
    position: absolute;
    left: -40px;
    top: 6px;
    width: 32px;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(72,208,220,.45));
}
.river-drop:nth-of-type(2) { top: 58%; animation-duration: 21s; animation-delay: -12s; }
.river-drop:nth-of-type(3) { top: 75%; animation-duration: 18s; animation-delay: -7s; }
.river-drop:nth-of-type(4) { top: 38%; animation-duration: 25s; animation-delay: -19s; }
.river-drop:nth-of-type(5) { top: 65%; animation-duration: 16s; animation-delay: -14s; }
.river-drop:nth-of-type(6) { top: 48%; animation-duration: 23s; animation-delay: -9s; }
@keyframes nile-current {
    from { transform: translateX(-60px); }
    to { transform: translateX(calc(100% + 60px)); }
}
@keyframes nile-waves {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}
.footer-title { color: #fff; margin-bottom: 1rem; position: relative; padding-bottom: .6rem; }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 35px; height: 2px; background: var(--nile-accent); }
.footer-links li, .footer-contact li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.65); text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: var(--nile-accent); }
.footer-contact li { color: rgba(255,255,255,.65); display: flex; gap: .6rem; word-break: break-word; }
.footer-contact i { color: var(--nile-accent); }

/* Back to top */
.back-to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--nile-accent);
    color: #1a1a1a;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    opacity: 0; visibility: hidden;
    transition: all .3s;
    z-index: 999;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--nile-accent-dark); color: #fff; }

/* Reveal animation */
[data-reveal] { transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal]:not(.revealed) { opacity: 0; transform: translateY(24px); }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js [data-reveal]:not(.revealed),
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .where-we-work-title,
    .where-we-work-track { animation: none; }
    .where-we-work-title::after { animation: none; transform: scaleX(1); }
    .where-we-work-marquee { overflow-x: auto; }
    .where-we-work-group[aria-hidden="true"] { display: none; }
    .hero-badge { animation: none; }
    .footer-river-waves { animation: none; }
    .river-drop { display: none; animation: none; }
}

/* CEO message */
.ceo-section { background: linear-gradient(180deg, #fff 0%, var(--nile-light) 100%); }
.ceo-photo-wrap { position: relative; max-width: 440px; margin: 0 auto; padding: 0 0 2rem 0; }
.ceo-photo-wrap::before {
    content: '';
    position: absolute;
    inset: 1.5rem -1rem 3.5rem 1.5rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--nile-blue), var(--nile-teal));
    z-index: 0;
}
.ceo-photo {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top center;
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 20px 45px rgba(4,30,66,.2);
}
.ceo-name-card {
    position: absolute;
    z-index: 2;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    background: #fff;
    border-radius: var(--radius);
    padding: .8rem 1.6rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(4,30,66,.18);
    border-bottom: 3px solid var(--nile-accent);
    white-space: nowrap;
}
.ceo-name-card strong { display: block; color: var(--nile-dark); font-size: 1.1rem; }
.ceo-name-card small { color: var(--nile-teal); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: .75rem; }
.ceo-title { font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.35; }
.ceo-title span { color: var(--nile-teal); }
.ceo-quote {
    position: relative;
    margin: 1.75rem 0;
    padding: 1.4rem 1.5rem 1.4rem 3.6rem;
    background: #fff;
    border-left: 4px solid var(--nile-accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: 0 10px 30px rgba(4,30,66,.08);
}
.ceo-quote i { position: absolute; left: .9rem; top: .6rem; font-size: 2.4rem; color: var(--nile-accent); line-height: 1; }
.ceo-quote p { margin: 0; font-size: 1.15rem; font-style: italic; font-weight: 500; color: var(--nile-dark); }

.cookie-preferences {
    position: fixed;
    inset: 0;
    z-index: 1060;
    width: min(640px, calc(100% - 2rem));
    margin: auto;
    background: var(--nile-light);
    color: var(--nile-dark);
    border: 0;
    border-top: 3px solid var(--nile-teal);
    border-radius: var(--radius);
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(4,30,66,.15);
    max-height: 85vh;
    overflow-y: auto;
}
.cookie-preferences::backdrop { background: rgba(4,30,66,.55); }

/* Admin */
.admin-body {
    min-height: 100vh;
    background: linear-gradient(180deg, #f5f8fc 0%, #eef4f8 100%);
    color: #26384a;
}
.admin-body .admin-topbar {
    background: linear-gradient(120deg, #0b243a 0%, #123f5b 58%, #087c87 140%);
    border-bottom: 0;
    box-shadow: 0 10px 30px rgba(16, 43, 70, .18);
}
.admin-body .admin-section-nav {
    padding: .45rem;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #dbe6ee;
    border-radius: 1rem;
    box-shadow: 0 8px 22px rgba(20, 46, 72, .06);
}
.admin-body .admin-section-link {
    border-radius: .7rem;
    font-weight: 600;
    transition: .18s ease;
}
.admin-body .admin-section-link:hover { background: #edf5f8; color: #123954; }
.admin-body .admin-section-link[aria-current="page"] {
    background: #123954;
    color: #fff;
    box-shadow: 0 5px 14px rgba(18, 57, 84, .18);
}
.admin-body .card,
.admin-body .table-responsive {
    border: 1px solid #dbe6ee !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 26px rgba(21, 51, 76, .07) !important;
}
.admin-body .card { transition: transform .18s ease, box-shadow .18s ease; }
.admin-body .card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(21, 51, 76, .12) !important; }
.admin-body table thead th { background: #f1f6f9; color: #526b7d; letter-spacing: .06em; text-transform: uppercase; }
.admin-body table tbody tr:hover { background: #f7fbfc; }
@media (max-width: 575.98px) {
    .admin-body .admin-section-link { flex: 1 1 auto; justify-content: center; }
    .admin-body table { min-width: 680px; }
}
.admin-login { max-width: 420px; margin: 8vh auto; }
.admin-topbar { background: #102b46; border-bottom: 1px solid #24415b; box-shadow: none; }
.admin-topbar .brand-logo { width: 48px; }
.admin-topbar .brand-name { font-size: 1rem; letter-spacing: -.02em; }
.admin-brand-caption { display: block; color: #b6c8d8; font-size: .65rem; font-weight: 400; letter-spacing: .03em; margin-top: .2rem; }
.admin-section-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding-bottom: 1.2rem; border-bottom: 1px solid #dfe7ef; }
.admin-section-link { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2.5rem; padding: .6rem .9rem; border-radius: .65rem; background: transparent; color: #41658b; font-size: .8rem; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s; }
.admin-section-link .bi { flex-shrink: 0; font-size: .85rem; }
.admin-section-link:hover { background: #e7eef5; color: #153a56; }
.admin-section-link[aria-current="page"] { background: #e0edf3; color: #125571; font-weight: 600; }
.admin-section-link[aria-current="page"]:hover { background: #d5e7f0; }
.admin-section-link:focus-visible { outline: 2px solid var(--nile-blue); outline-offset: 3px; }
.msg-text { white-space: pre-wrap; word-break: break-word; }

/* Admin visitor overview */
.visitor-dashboard { --visitor-ink: #142e48; --visitor-muted: #64788b; --visitor-line: #e2e9ef; max-width: 1540px; margin: 0 auto; padding: .35rem 0 1.5rem; color: var(--visitor-ink); }
.visitor-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.visitor-header-copy { min-width: 0; }
.visitor-eyebrow { display: inline-flex; align-items: center; gap: .4rem; color: #167276; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.visitor-header h1 { margin: .45rem 0 .35rem; color: var(--visitor-ink); font-size: clamp(1.7rem, 2.5vw, 2.25rem); letter-spacing: -.045em; }
.visitor-header p { margin: 0; color: var(--visitor-muted); font-size: .88rem; line-height: 1.65; }
.visitor-live { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border: 1px solid #d6e8e2; border-radius: 999px; background: #f3faf7; color: #28694e; font-size: .7rem; font-weight: 600; white-space: nowrap; }
.visitor-live > span { width: .45rem; height: .45rem; border-radius: 50%; background: #3a9c70; box-shadow: 0 0 0 3px #3a9c701f; }
.visitor-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.4rem; }
.visitor-metric { --metric-color: #17806c; --metric-bg: #e5f4ef; position: relative; min-width: 0; overflow: hidden; padding: 1.15rem 1.25rem; border: 1px solid var(--visitor-line); border-radius: .85rem; background: #fff; box-shadow: 0 3px 10px #142e4808; }
.visitor-metric::after { position: absolute; right: 0; bottom: 0; left: 1.25rem; height: 3px; border-radius: 3px 3px 0 0; background: var(--metric-color); content: ''; opacity: .65; }
.visitor-metric-accepted { --metric-color: #17806c; --metric-bg: #e5f4ef; }
.visitor-metric-rejected { --metric-color: #bb4c55; --metric-bg: #fbecee; }
.visitor-metric-undecided { --metric-color: #967126; --metric-bg: #fbf3df; }
.visitor-metric-total { --metric-color: #3d70ad; --metric-bg: #eaf1fb; }
.visitor-metric-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #52677b; font-size: .75rem; font-weight: 500; }
.visitor-metric-icon { display: inline-grid; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .7rem; background: var(--metric-bg); color: var(--metric-color); font-size: 1.12rem; }
.visitor-metric > strong { display: block; margin: .55rem 0 .15rem; color: var(--visitor-ink); font-size: clamp(1.8rem, 2.5vw, 2.2rem); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.visitor-metric-hint { color: var(--visitor-muted); font-size: .68rem; }
.visitor-section { margin-top: 1rem; padding: 1.25rem; border: 1px solid var(--visitor-line); border-radius: .9rem; background: #fff; box-shadow: 0 3px 10px #142e4807; }
.visitor-section-heading { display: flex; align-items: center; gap: .8rem; min-width: 0; margin-bottom: 1rem; }
.visitor-section-heading > div { min-width: 0; }
.visitor-section-heading h2 { margin: 0 0 .2rem; color: var(--visitor-ink); font-size: 1rem; font-weight: 600; letter-spacing: -.02em; }
.visitor-section-heading p { margin: 0; color: var(--visitor-muted); font-size: .72rem; line-height: 1.5; }
.visitor-section-icon { display: inline-grid; flex: 0 0 2.55rem; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .75rem; font-size: 1.15rem; }
.visitor-section-icon-accepted { background: #e5f4ef; color: #17806c; }
.visitor-section-icon-anonymous { background: #eef1f6; color: #63748a; }
.visitor-section-count { flex-shrink: 0; margin-left: auto; padding: .35rem .65rem; border: 1px solid #e6ecf1; border-radius: 999px; background: #f7f9fb; color: #5d7082; font-size: .65rem; font-weight: 600; white-space: nowrap; }
.visitor-empty { display: grid; justify-items: center; padding: 1.8rem 1rem; border: 1px dashed #dbe4eb; border-radius: .7rem; background: #f8fafc; text-align: center; }
.visitor-empty-icon { display: inline-grid; width: 2.8rem; height: 2.8rem; margin-bottom: .65rem; place-items: center; border-radius: 50%; background: #eaf1f5; color: #537287; font-size: 1.25rem; }
.visitor-empty h3 { margin: 0 0 .3rem; color: var(--visitor-ink); font-size: .82rem; font-weight: 600; }
.visitor-empty p { max-width: 30rem; margin: 0; color: var(--visitor-muted); font-size: .72rem; line-height: 1.6; }
.visitor-error { display: flex; align-items: flex-start; gap: .6rem; border-radius: .75rem; font-size: .85rem; }
.visitor-error .bi { margin-top: .12rem; }
.visitor-table-wrap { overflow: auto; border: 1px solid var(--visitor-line); border-radius: .7rem; }
.visitor-table { min-width: 760px; font-size: .75rem; vertical-align: middle; }
.visitor-table > :not(caption) > * > * { padding: .75rem .8rem; }
.visitor-table thead th { background: #f5f8fa; color: #586d80; font-size: .65rem; font-weight: 600; letter-spacing: .035em; white-space: nowrap; }
.visitor-table tbody th { color: var(--visitor-ink); font-weight: 600; }
.visitor-table caption { padding: .65rem .8rem; color: var(--visitor-muted); font-size: .66rem; }

/* Responsive tweaks */
@media (max-width: 767.98px) {
    .row.g-5 { --bs-gutter-x: 1.5rem; }
    .visitor-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
    .visitor-metric { padding: .95rem; }
    .visitor-section { padding: 1rem; }
}
@media (max-width: 991.98px) {
    .main-nav .navbar-collapse { padding: 1rem 0; max-height: calc(100dvh - 130px); overflow-y: auto; }
    .main-nav .nav-link { padding: .6rem .8rem; border-bottom: 1px solid rgba(255,255,255,.08); }
    .hero { padding: 5rem 0 7rem; text-align: center; }
    .hero-lead { margin-left: auto; margin-right: auto; }
    .hero .d-flex { justify-content: center; }
    .cta { background-attachment: scroll; }
    .sector-card { --sector-card-width: 220px; }
}
@media (max-width: 575.98px) {
    .admin-section-nav { gap: .35rem; }
    .admin-section-link { min-height: 2.75rem; padding: .55rem .65rem; font-size: .75rem; }
    .visitor-header { align-items: flex-start; flex-direction: column; margin-bottom: 1rem; }
    .visitor-live { font-size: .65rem; }
    .visitor-section-heading { align-items: flex-start; flex-wrap: wrap; gap: .65rem; }
    .visitor-section-count { margin-left: auto; }
    .visitor-empty { padding: 1.4rem .8rem; }
    .section { padding: 3.5rem 0; }
    .where-we-work { margin-bottom: 2.75rem; }
    .where-we-work-group { gap: .75rem; padding-right: .75rem; }
    .sector-card { --sector-card-width: 190px; }
    .sector-card h3 { font-size: .85rem; }
    .hero { padding: 4rem 0 6rem; }
    .hero-title { font-size: clamp(1.65rem, 6vw, 2.1rem); }
    .hero-lead { font-size: 1rem; }
    .btn-lg { padding: .6rem 1.2rem; font-size: 1rem; }
    .img-stack { padding: 0; }
    .form-card, .value-card { padding: 1.4rem; }
    .contact-card { padding: 1.2rem .6rem; font-size: .85rem; }
    .stat-box h3 { font-size: 1.7rem; }
    .ceo-photo-wrap::before { inset: 1rem -.5rem 3rem 1rem; }
    .ceo-quote { padding: 1.2rem 1rem 1.2rem 3rem; }
    .ceo-quote p { font-size: 1rem; }
    .main-nav .brand-logo { width: 52px; }
    .main-nav .brand-name { font-size: .9rem; }
    .brand-sub { font-size: .6rem; }
    .footer-brand .brand-logo { width: 88px; }
    .main-nav .navbar-toggler { padding: .5rem; }
    .footer-contact, .footer-links { font-size: .9rem; }
}

/* ===== Admin email composer ===== */
.compose-window { background: #fff; border: 1px solid #dfe3e8; border-radius: 12px; box-shadow: 0 10px 30px rgba(16, 43, 70, .12); overflow: visible; max-width: 920px; }
.compose-titlebar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: #102b46; border-bottom: 1px solid #24415b; border-radius: 12px 12px 0 0; padding: .35rem .5rem .35rem 1rem; }
.compose-title { font-weight: 600; font-size: .92rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compose-window-actions { display: flex; gap: .1rem; }
.compose-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #4a5563; font-size: 1.05rem; padding: 0; }
.compose-titlebar .compose-icon { color: #e4edf5; }
.compose-titlebar .compose-icon:hover, .compose-titlebar .compose-icon:focus-visible { background: #ffffff1a; color: #fff; }
.compose-titlebar .compose-icon:focus-visible { outline: 2px solid var(--nile-accent); outline-offset: 1px; }
.compose-titlebar .compose-icon[aria-pressed="true"] { background: #ffffff24; color: #fff; }
.compose-icon:hover, .compose-icon:focus-visible { background: #eceff3; color: #1f2933; }
.compose-icon[aria-pressed="true"] { background: #ede7ff; color: #6d3fe0; }
.compose-content { padding: 0 1rem .75rem; }
.compose-row { display: flex; align-items: center; gap: .75rem; border-bottom: 1px solid #e6e9ed; min-height: 44px; }
.compose-row label { color: #6b7684; font-size: .9rem; min-width: 76px; margin: 0; }
.compose-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem 0; font-size: .93rem; color: #1f2933; outline: none; }
.compose-select { appearance: auto; cursor: pointer; }
.compose-row:focus-within { border-bottom-color: #7c4dff; }
.compose-body { display: block; width: 100%; min-height: 220px; border: 0; resize: vertical; padding: .9rem 0; font-size: .95rem; line-height: 1.6; color: #1f2933; outline: none; background: transparent; }
.compose-ai { display: flex; align-items: center; gap: .6rem; border-radius: 999px; padding: .3rem .35rem .3rem 1rem; margin-top: .25rem; border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #7c4dff, #3aa0ff, #ff6fb5) border-box; }
.compose-ai .bi-magic { color: #7c4dff; }
.compose-ai input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: .93rem; padding: .35rem 0; }
.compose-ai-send { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #e9e6f5; color: #5b3cc4; display: inline-flex; align-items: center; justify-content: center; }
.compose-ai-send:hover:not(:disabled) { background: #7c4dff; color: #fff; }
.compose-window.is-drafting .compose-ai { animation: compose-pulse 1.2s ease-in-out infinite; }
@keyframes compose-pulse { 50% { opacity: .55; } }
.compose-status { min-height: 1.25rem; margin: .35rem .25rem 0; }
.compose-files { display: flex; flex-wrap: wrap; gap: .4rem; }
.compose-files:not(:empty) { margin-bottom: .6rem; }
.compose-chip { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; background: #f1f3f6; border: 1px solid #e1e5ea; border-radius: 999px; padding: .2rem .35rem .2rem .7rem; font-size: .82rem; }
.compose-chip > span:not(.text-muted) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compose-chip-remove { border: 0; background: transparent; border-radius: 50%; width: 22px; height: 22px; padding: 0; color: #6b7684; }
.compose-chip-remove:hover { background: #dde2e8; color: #b42318; }
.compose-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; margin-top: .4rem; }
.compose-send { margin-right: .5rem; }
.compose-send > .btn { background: #6d3fe0; border-color: #6d3fe0; color: #fff; font-weight: 600; }
.compose-send > .btn:first-child { border-radius: 999px 0 0 999px; padding-left: 1.2rem; padding-right: 1rem; }
.compose-send > .dropdown-toggle-split { border-radius: 0 999px 999px 0; border-left: 1px solid rgba(255,255,255,.35); }
.compose-send > .btn:hover, .compose-send > .btn:focus-visible { background: #5a2fca; border-color: #5a2fca; color: #fff; }
.compose-ai-icon { color: #7c4dff; }
.compose-toolbar-end { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.compose-draft { border: 1px solid #d5dae1; border-radius: 999px; background: #fff; color: #1f2933; font-size: .88rem; padding: .35rem .9rem; }
.compose-draft:hover { background: #f1f3f6; }
.compose-note { color: #7a8594; font-size: .76rem; margin-top: .6rem; }
.compose-preview { border: 1px solid #e3e6ea; border-radius: 10px; background: #f8f9fb; margin-bottom: .75rem; }
.compose-preview-head { display: flex; justify-content: space-between; align-items: center; padding: .2rem .3rem .2rem .8rem; font-size: .82rem; color: #4a5563; border-bottom: 1px solid #e3e6ea; }
.compose-preview-body { padding: .8rem; max-height: 320px; overflow: auto; }
.compose-preview pre { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: .88rem; }
.compose-preview-footer { display: flex; align-items: flex-start; gap: .9rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid #dfe5eb; }
.compose-preview-footer[hidden] { display: none; }
.compose-preview-footer img { width: 72px; height: auto; flex: 0 0 72px; }
.compose-window.is-minimized .compose-content { display: none; }
.compose-window.is-minimized .compose-titlebar { border-radius: 12px; border-bottom: 0; }
.compose-window.is-dragging { outline: 2px dashed #7c4dff; outline-offset: 4px; }
.compose-window.is-maximized { position: absolute; inset: 12px; width: auto; height: auto; max-width: none; max-height: none; z-index: auto; display: flex; flex-direction: column; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.compose-window.is-maximized .compose-content { flex: 1; display: flex; flex-direction: column; overflow: auto; }
.compose-window.is-maximized .compose-body { flex: 1; resize: none; }
body.compose-maximized, body.compose-overlay-open { overflow: hidden; }
@media (max-width: 575.98px) {
    .compose-content { padding: 0 .75rem .75rem; }
    .compose-row label { min-width: 64px; font-size: .85rem; }
    .compose-icon { width: 32px; height: 32px; }
    .compose-toolbar-end { margin-left: 0; width: 100%; justify-content: flex-end; }
    .compose-overlay { padding: 10px; }
    .compose-window.is-maximized { inset: 0; border-radius: 0; }
}

/* ===== Admin compose mail ===== */
.admin-compose-window { overflow: hidden; border: 1px solid #dce3eb; border-radius: 14px; background: #fff; box-shadow: 0 16px 38px rgba(16, 43, 70, .12); }
.admin-compose-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 54px; padding: .8rem 1.15rem; background: linear-gradient(180deg, #f2f6ff 0%, #eaf0fb 100%); color: #24364d; }
.admin-compose-titlebar strong { font-size: 1.05rem; font-weight: 600; }
.admin-compose-window-actions { display: flex; align-items: center; gap: .9rem; }
.admin-compose-window-actions a { color: #4e5d6d; font-size: .95rem; text-decoration: none; }
.admin-compose-window-actions a:hover { color: #172b4d; }
.admin-compose-form { background: #fff; }
.admin-compose-row { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: 0 1.15rem; border-bottom: 1px solid #e7ebf0; color: #4e5968; }
.admin-compose-label { flex: 0 0 42px; color: #697686; font-size: .95rem; }
.admin-compose-row input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #26384a; font-size: .95rem; }
.admin-compose-row input::placeholder, .admin-compose-body-wrap textarea::placeholder { color: #8a94a3; opacity: 1; }
.admin-compose-from-value { color: #526171; font-size: .95rem; }
.admin-compose-from > .bi { margin-left: .15rem; color: #7d8997; font-size: .75rem; }
.admin-compose-copy-links { margin-left: auto; color: #526171; font-size: .9rem; white-space: nowrap; }
.admin-compose-body-wrap { min-height: 330px; padding: 1rem 1.15rem .75rem; }
.admin-compose-body-wrap textarea { display: block; width: 100%; min-height: 300px; resize: vertical; border: 0; outline: 0; color: #26384a; font-size: .98rem; line-height: 1.65; }
.admin-compose-editor { display: block; width: 100%; min-height: 300px; overflow-y: auto; outline: 0; color: #26384a; font-size: .98rem; line-height: 1.65; white-space: pre-wrap; }
.admin-compose-editor:empty::before { content: attr(data-placeholder); color: #8a94a3; pointer-events: none; }
.admin-compose-editor:focus:empty::before { color: #aeb7c3; }
.admin-compose-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; padding: .7rem 1rem; border-top: 1px solid #eef1f5; background: #fff; }
.admin-compose-toolbar-group { display: flex; align-items: center; gap: .18rem; }
.admin-compose-toolbar button, .admin-compose-tool { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 .35rem; border: 0; border-radius: 6px; background: transparent; color: #516071; font-size: .95rem; cursor: pointer; text-decoration: none; }
.admin-compose-toolbar button:hover, .admin-compose-tool:hover { background: #eef3fb; color: #1a5dcc; }
.admin-compose-font { gap: .35rem; min-width: 112px !important; justify-content: space-between !important; font-size: .82rem !important; }
.admin-compose-divider { width: 1px; height: 24px; margin: 0 .35rem; background: #dfe5ec; }
.admin-compose-toolbar-end { gap: .45rem; }
.admin-compose-signature { display: inline-flex; align-items: center; gap: .3rem; margin: 0 .35rem; color: #667587; font-size: .75rem; white-space: nowrap; }
.admin-compose-send { min-width: 96px !important; padding: 0 .9rem !important; border-radius: 999px !important; background: #1769d1 !important; color: #fff !important; font-weight: 600; }
.admin-compose-send:hover { background: #0f56b4 !important; }
.admin-compose-send .bi { margin-left: .35rem; font-size: .75rem; }
.admin-compose-delete { color: #5f6b79; font-size: 1rem; }
@media (max-width: 700px) {
    .admin-compose-body-wrap { min-height: 240px; }
    .admin-compose-body-wrap textarea { min-height: 220px; }
    .admin-compose-toolbar-end { width: 100%; justify-content: space-between; }
    .admin-compose-toolbar { align-items: flex-start; }
}

/* ===== Admin inbox (Contact Messages) ===== */
.inbox-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.inbox-subtitle { color: #6b7684; font-size: .92rem; }
.inbox-stats { display: flex; gap: .5rem; flex-wrap: wrap; }
.inbox-stat { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid #e3e7ec; border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; color: #4a5563; box-shadow: 0 1px 2px rgba(16, 43, 70, .04); }
.inbox-stat strong { color: #102b46; font-weight: 700; }
.inbox-stat .bi { color: #8a94a3; }
.inbox-stat-unread { background: #fff8e8; border-color: #f6dfa6; }
.inbox-stat-unread .bi, .inbox-stat-unread strong { color: #a15c00; }
.inbox-empty { text-align: center; background: #fff; border: 1px dashed #d5dbe2; border-radius: 14px; padding: 3rem 1rem; color: #6b7684; }
.inbox-empty .bi { font-size: 2.2rem; color: #b3bcc7; display: block; margin-bottom: .5rem; }
.inbox-card { position: relative; background: #fff; border: 1px solid #e6e9ee; border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 43, 70, .05); transition: box-shadow .2s ease, border-color .2s ease; }
.inbox-card:hover { box-shadow: 0 8px 24px rgba(16, 43, 70, .08); border-color: #dde2e8; }
.inbox-card.is-unread::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: #f5a524; }
.inbox-card-body { padding: 1.25rem 1.4rem; }
.inbox-card-head { display: flex; align-items: flex-start; gap: .9rem; }
.inbox-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d4e7a, #102b46); color: #fff; font-weight: 600; font-size: .95rem; letter-spacing: .02em; }
.inbox-sender { flex: 1; min-width: 0; }
.inbox-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: .2rem; }
.inbox-name { margin: 0; font-size: 1rem; font-weight: 600; color: #102b46; }
.inbox-tag { display: inline-flex; align-items: center; gap: .25rem; border-radius: 999px; padding: .1rem .55rem; font-size: .72rem; font-weight: 600; line-height: 1.5; }
.inbox-tag-new { background: #fff1d6; color: #9a5b00; }
.inbox-tag-replied { background: #e3f6ea; color: #1b7a43; }
.inbox-tag-draft { background: #eef0f4; color: #4a5563; }
.inbox-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; font-size: .85rem; }
.inbox-meta a, .inbox-service { display: inline-flex; align-items: center; gap: .35rem; color: #4a5563; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.inbox-meta a:hover { color: #1d4e7a; text-decoration: underline; }
.inbox-meta .bi { color: #8a94a3; }
.inbox-service { background: #e8f3fb; color: #1d5f8f; border-radius: 999px; padding: .1rem .6rem; font-size: .78rem; font-weight: 500; }
.inbox-service .bi { color: inherit; }
.inbox-time { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; color: #7a8594; font-size: .8rem; white-space: nowrap; }
.inbox-message { margin: 1rem 0 0 calc(44px + .9rem); background: #f7f9fb; border: 1px solid #edf0f3; border-radius: 10px; padding: .85rem 1rem; color: #1f2933; line-height: 1.6; }
.inbox-replies { margin: .9rem 0 0 calc(44px + .9rem); display: grid; gap: .6rem; }
.inbox-reply { border: 1px solid #e6e9ee; border-left: 3px solid #b3bcc7; border-radius: 10px; padding: .7rem .9rem; background: #fff; font-size: .92rem; }
.inbox-reply.is-sent { border-left-color: #2f9e5f; }
.inbox-reply.is-failed { border-left-color: #d64545; background: #fffafa; }
.inbox-reply-head { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; font-size: .78rem; color: #6b7684; margin-bottom: .3rem; }
.inbox-reply-head .bi { margin-right: .25rem; }
.inbox-reply-status { font-weight: 600; }
.inbox-reply.is-sent .inbox-reply-status { color: #1b7a43; }
.inbox-reply.is-failed .inbox-reply-status { color: #c03030; }
.inbox-reply-time { margin-left: auto; }
.inbox-reply-subject { font-size: .85rem; color: #4a5563; margin-bottom: .3rem; }
.inbox-reply-subject strong { color: #1f2933; }
.inbox-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0 calc(44px + .9rem); }
.inbox-btn { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #d5dae1; background: #fff; color: #344150; border-radius: 999px; padding: .4rem .95rem; font-size: .85rem; font-weight: 500; line-height: 1.3; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.inbox-btn:hover, .inbox-btn:focus-visible { background: #f1f4f7; border-color: #c4cbd4; color: #102b46; }
.inbox-btn-primary { background: #102b46; border-color: #102b46; color: #fff; }
.inbox-btn-primary:hover, .inbox-btn-primary:focus-visible, .inbox-btn-primary[aria-expanded="true"] { background: #1d4e7a; border-color: #1d4e7a; color: #fff; }
.inbox-btn-danger { color: #b42318; }
.inbox-btn-danger:hover, .inbox-btn-danger:focus-visible { background: #fef1f0; border-color: #f4c5c0; color: #9b1c12; }
@media (max-width: 767.98px) {
    .inbox-card-body { padding: 1rem; }
    .inbox-card-head { flex-wrap: wrap; }
    .inbox-time { order: 3; width: 100%; padding-left: calc(44px + .9rem); }
    .inbox-message, .inbox-replies, .inbox-actions { margin-left: 0; }
}
.compose-overlay { position: fixed; inset: 0; z-index: 1080; display: grid; place-items: center; padding: 24px; overflow-y: auto; overscroll-behavior: contain; background: rgba(15, 30, 47, .55); }
.compose-overlay[hidden] { display: none !important; }
.compose-overlay > .compose-window { width: min(1440px, 100%); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; display: flex; flex-direction: column; }
.compose-overlay > .compose-window > .compose-content { min-height: 0; overflow-y: auto; }
@media (max-width: 575.98px) {
    .compose-overlay { padding: 10px; }
    .compose-overlay > .compose-window { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); }
}


/* Visitors metric cards refresh */
.admin-body .row.g-3.mb-4 > div .card {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    border: 1px solid rgba(210, 224, 234, .95) !important;
    border-radius: 1.25rem !important;
    background: linear-gradient(145deg, #ffffff 0%, #f8fbfd 100%);
    box-shadow: 0 12px 28px rgba(20, 53, 78, .08) !important;
}
.admin-body .row.g-3.mb-4 > div .card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #1c8a68, #40b889);
}
.admin-body .row.g-3.mb-4 > div:nth-child(2) .card::before { background: linear-gradient(90deg, #cf3048, #f06b78); }
.admin-body .row.g-3.mb-4 > div:nth-child(3) .card::before { background: linear-gradient(90deg, #657384, #a3afbb); }
.admin-body .row.g-3.mb-4 > div:nth-child(4) .card::before { background: linear-gradient(90deg, #1769d2, #4b9cf2); }
.admin-body .row.g-3.mb-4 .card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    padding: 1.5rem 1rem 1.25rem;
}
.admin-body .row.g-3.mb-4 .h3 {
    color: #102c46;
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 750;
    line-height: 1;
    letter-spacing: -.06em;
}
.admin-body .row.g-3.mb-4 .badge {
    border-radius: 999px;
    padding: .48rem .8rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .01em;
}
.admin-body .row.g-3.mb-4 > div .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(20, 53, 78, .13) !important;
}
@media (max-width: 575.98px) {
    .admin-body .row.g-3.mb-4 > div .card { min-height: 132px; }
    .admin-body .row.g-3.mb-4 .h3 { font-size: 2rem; }
    .admin-body .row.g-3.mb-4 .badge { font-size: .67rem; padding-inline: .62rem; }
}
