/* ── Skeleton Loader ──────────────────────────────────────────────────────── */

/* Shimmer keyframe — sweeps a lighter highlight across the base colour.
   Base: #dfc8f5 (mid lavender), Highlight: #f0e2ff (near-white lavender).
   Both sit inside the site's #f3e8ff → #ede9fe gradient so the reveal is
   visually seamless. */
@keyframes skeletonShimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

@keyframes loaderFade {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

/* ── Overlay ──────────────────────────────────────────────────────────────── */
.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    overflow-y: auto;
    background: linear-gradient(135deg, #f3e8ff 0%, #ede9fe 40%, #fdf4ff 100%);
    display: flex;
    flex-direction: column;
}

.loader.hide {
    animation: loaderFade 0.35s ease-out forwards;
    pointer-events: none;
}

/* ── Shared shimmer mixin (applied via class) ─────────────────────────────── */
.sk {
    border-radius: 8px;
    background: linear-gradient(
        90deg,
        #dfc8f5 25%,
        #f0e2ff 50%,
        #dfc8f5 75%
    );
    background-size: 600px 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

/* ── Header skeleton ──────────────────────────────────────────────────────── */
.sk-header {
    width: 100%;
    padding: 36px 30px 24px;
    border-bottom: 3px solid rgba(180, 120, 220, 0.2);
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.sk-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sk-title {
    width: min(420px, 55vw);
    height: 32px;
    border-radius: 6px;
}

/* ── Nav skeleton ─────────────────────────────────────────────────────────── */
.sk-nav {
    width: 100%;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: rgba(200, 170, 230, 0.25);
    border-bottom: 1.5px solid rgba(160, 80, 200, 0.15);
    padding: 0 24px;
    flex-shrink: 0;
}

.sk-nav-item {
    height: 16px;
    border-radius: 4px;
}

.sk-nav-item:nth-child(1) { width: 72px; }
.sk-nav-item:nth-child(2) { width: 64px; }
.sk-nav-item:nth-child(3) { width: 54px; }
.sk-nav-item:nth-child(4) { width: 80px; }
.sk-nav-item:nth-child(5) { width: 72px; }

/* ── Banner skeleton ──────────────────────────────────────────────────────── */
.sk-banner {
    width: 100%;
    max-width: 1200px;
    margin: 32px auto;
    padding: 0 24px;
    flex-shrink: 0;
}

.sk-banner-img {
    width: 100%;
    height: clamp(160px, 22vw, 340px);
    border-radius: 16px;
}

/* ── Section skeleton ─────────────────────────────────────────────────────── */
.sk-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 24px;
    flex-shrink: 0;
}

.sk-section-tag {
    width: 90px;
    height: 13px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.sk-section-heading {
    width: 220px;
    height: 28px;
    border-radius: 6px;
    margin-bottom: 24px;
}

/* Two-column grid (about section) */
.sk-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

@media (max-width: 700px) {
    .sk-two-col { grid-template-columns: 1fr; }
}

.sk-para      { height: 14px; border-radius: 4px; margin-bottom: 10px; }
.sk-para:last-child { width: 70%; }

/* Card grid (services / team) */
.sk-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .sk-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .sk-card-grid { grid-template-columns: 1fr; }
}

.sk-card {
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sk-card-logo  { width: 56px; height: 56px; border-radius: 10px; }
.sk-card-title { width: 65%;  height: 18px; border-radius: 5px; }
.sk-card-line  { height: 13px; border-radius: 4px; }
.sk-card-line:nth-child(4) { width: 90%; }
.sk-card-line:nth-child(5) { width: 75%; }
.sk-card-line:nth-child(6) { width: 55%; }

/* Team grid (5 cards, but wrap naturally) */
.sk-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.sk-team-card {
    border-radius: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sk-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.sk-name  { width: 70%;  height: 16px; border-radius: 5px; }
.sk-role  { width: 45%;  height: 12px; border-radius: 4px; }

/* Section connector */
.sk-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 4px 0;
    flex-shrink: 0;
}

.sk-connector-line {
    width: 2px;
    height: 40px;
    background: rgba(180, 120, 220, 0.22);
    border-radius: 2px;
}

.sk-connector-node {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(180, 120, 220, 0.35);
}