/* ==========================================================================
   ZIO TECH LIMITED — Client Quote Cards + Leadership Cards
   Shared component file, used on BOTH the Home page and the About page.

   Load AFTER home.css / about-animations.css so these rules win.

   Contains two independent components:
     1. .ztq-*   — the "What Our Clients Are Saying" quote card
                   (matches the reference screenshot: big quote mark,
                   circular photo, quote text, name/title line)
     2. .team-*  — the redesigned, smaller "Our leadership" card

   Both sets of data (testimonials + leadership) are DYNAMIC — the markup
   loops over data coming from the admin panel (testimonials & team
   members tables). See the accompanying pageController.js / about.ejs /
   home.ejs for the loop logic. Nothing in this CSS file needs editing
   when someone adds/edits a testimonial or team member in /admin.
   ========================================================================== */

:root {
    --ztq-ink: #10192b;
    --ztq-navy: #0b2545;
    --ztq-accent: #155eef;
    --ztq-muted: #6b7280;
    --ztq-border: #eaebf0;
    --ztq-surface: #f5f7fb;
}

/* ---------------------------------------------------------------------- *
 * 1. SECTION HEAD — title left, "See all references" link right
 * ---------------------------------------------------------------------- */
.ztq-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1100px;
    margin: 0 auto 36px;
    padding: 0 8px;
}

.ztq-head h2 {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    color: var(--ztq-navy);
    margin: 0;
}

.ztq-head__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ztq-accent);
    white-space: nowrap;
}

.ztq-head__link i,
.ztq-head__link .ztq-arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1.5px solid var(--ztq-accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.ztq-head__link:hover i,
.ztq-head__link:hover .ztq-arrow {
    background: var(--ztq-accent);
    color: #fff;
    transform: translateX(3px);
}

/* ---------------------------------------------------------------------- *
 * 2. QUOTE CARD
 * ---------------------------------------------------------------------- */
.ztq-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

/* Grid layout — used on the About page (multiple cards side by side) */
.ztq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.ztq-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--ztq-border);
    border-radius: 20px;
    padding: 36px 32px 30px;
    box-shadow: 0 2px 4px rgba(16, 25, 43, .03);
    display: flex;
    gap: 22px;
    align-items: flex-start;
    transition: transform .3s ease, box-shadow .3s ease;
}

.ztq-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(16, 25, 43, .08);
}

/* Big quote glyph, top-left, floating above the card content */
.ztq-card__mark {
    position: absolute;
    top: -18px;
    left: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ztq-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 8px 18px rgba(21, 94, 239, .35);
}

.ztq-card__avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: linear-gradient(160deg, var(--ztq-navy), var(--ztq-accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 22px;
    font-family: var(--font-display, 'Poppins', sans-serif);
}

.ztq-card__body {
    flex: 1;
    min-width: 0;
}

.ztq-card__quote {
    font-size: 15.5px;
    line-height: 1.7;
    color: #384252;
    margin: 0 0 16px;
}

.ztq-card__author {
    font-size: 14px;
    font-weight: 700;
    color: var(--ztq-navy);
}

.ztq-card__author span {
    display: block;
    font-weight: 500;
    font-size: 13px;
    color: var(--ztq-muted);
    margin-top: 1px;
}

/* Single spotlight card — used on the Home page carousel (one visible
   slide at a time). Slightly larger + centered avatar-on-top-of-quote
   layout so it reads well as a standalone hero card. */
.ztq-card--spotlight {
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 44px 38px;
}

@media (max-width: 640px) {
    .ztq-card { flex-direction: column; padding: 32px 22px 26px; }
    .ztq-card__mark { top: -16px; left: 22px; }
}

/* ---------------------------------------------------------------------- *
 * 3. LEADERSHIP CARD — square photo, left-aligned info, LinkedIn icon
 * ---------------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px 24px;
    margin-top: 44px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    text-align: left;
}

.team-card__photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.02;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--ztq-navy) 0%, var(--ztq-accent) 100%);
    margin-bottom: 16px;
}

.team-card__avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .4s ease;
}

.team-card:hover .team-card__avatar {
    transform: scale(1.04);
}

/* Fallback initials, shown only when the member has no uploaded photo */
.team-card__photo--initials {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 34px;
    font-weight: 600;
}

.team-card h4 {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ztq-navy);
    margin-bottom: 3px;
}

.team-card span {
    display: block;
    font-size: 13px;
    font-weight: 400;
    color: var(--ztq-muted);
    margin-bottom: 12px;
}

.team-card__linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--ztq-border);
    color: var(--ztq-navy);
    font-size: 14px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.team-card__linkedin:hover {
    background: var(--ztq-accent);
    border-color: var(--ztq-accent);
    color: #fff;
}

@media (max-width: 560px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}




