/* =========================================================
   home.css — only loaded on index.php
   ========================================================= */

/* ---------- Hero ---------- */
.hh-hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
    padding: 80px 0;
    color: var(--white);
    overflow: hidden;
}
.hh-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 50px;
    align-items: center;
}
.hh-hero-text h1 { color: var(--white); font-size: 2.6rem; margin: 14px 0 16px; }
.hh-hero-text .text-accent { color: #8FC1FF; }

.hh-stat-chips {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 28px 0 26px;
    max-width: 480px;
}
.hh-chip {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
}
.hh-chip strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--white); }
.hh-chip span { font-size: 0.7rem; color: #C9D6EE; }

.hh-rating-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hh-rating-badge {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Hero image gently floats up and down, forever */
.hh-hero-media { position: relative; }
.hh-hero-img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    animation: hhFloat 5s ease-in-out infinite;
}
@keyframes hhFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}
.hh-float-card {
    position: absolute;
    bottom: -18px;
    left: -18px;
    background: var(--white);
    color: var(--navy);
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    animation: hhFloat 5s ease-in-out infinite;
    animation-delay: 0.3s;
}
.hh-float-card strong { display: block; font-family: var(--font-head); font-size: 1.3rem; color: var(--primary); }
.hh-float-card span { font-size: 0.78rem; color: var(--text-light); }

/* Directional reveal helpers reused across this page */
[data-animate="fade-right"] { opacity: 0; transform: translateX(-30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-right"].in-view { opacity: 1; transform: translateX(0); }
[data-animate="fade-left"] { opacity: 0; transform: translateX(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-animate="fade-left"].in-view { opacity: 1; transform: translateX(0); }
[data-animate="fade-up"] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate="fade-up"].in-view { opacity: 1; transform: translateY(0); }
[data-animate="pop"] { opacity: 0; transform: scale(0.9); transition: opacity 0.5s ease, transform 0.5s ease; }
[data-animate="pop"].in-view { opacity: 1; transform: scale(1); }

/* ---------- Achievement marquee: infinite auto-scroll ---------- */
.hh-marquee-section {
    background: var(--navy);
    padding: 16px 0;
    overflow: hidden;
}
.hh-marquee-track {
    display: flex;
    width: max-content;
    animation: hhMarquee 22s linear infinite;
}
.hh-marquee-section:hover .hh-marquee-track { animation-play-state: paused; }
.hh-marquee-group {
    display: flex;
    gap: 40px;
    padding-right: 40px;
}
.hh-marquee-group span {
    color: #C9D6EE;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}
@keyframes hhMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Recovery for individuals grid ---------- */
.hh-individuals { padding: 90px 0; }
.hh-individuals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-top: 20px;
}
.hh-individual-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hh-individual-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* Icon: show the FULL icon, never crop or stretch it */
.hh-individual-icon {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    object-fit: contain;
    object-position: center;
}
.hh-individual-card h3 { font-size: 1rem; margin-bottom: 8px; }
.hh-individual-card p { font-size: 0.85rem; color: var(--text-light); margin-bottom: 14px; min-height: 40px; }
.hh-individual-link { font-size: 0.85rem; font-weight: 700; color: var(--primary); }

/* ---------- "What We Recover" service cards: show the FULL image ---------- */
.services-grid .service-card img {
    display: block;
    width: 100%;
    height: 200px;
    aspect-ratio: auto;
    object-fit: contain;      /* was cropping (cover) — now the whole image is visible */
    object-position: center;
    background: var(--white);
    padding: 12px;
    box-sizing: border-box;
}

/* ---------- Testimonial carousel: cross-fade ---------- */
.hh-testimonials { padding: 90px 0; background: var(--sky); }
.hh-carousel {
    position: relative;
    max-width: 700px;
    margin: 40px auto 0;
    min-height: 220px;
}
.hh-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease;
    text-align: center;
}
.hh-slide.active { opacity: 1; visibility: visible; position: relative; }
.hh-stars { font-size: 0.9rem; margin-bottom: 14px; }
.hh-quote { font-size: 1.15rem; color: var(--navy); font-weight: 500; line-height: 1.6; margin-bottom: 22px; }
.hh-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.hh-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700;
}
.hh-author strong { display: block; font-size: 0.92rem; color: var(--navy); }
.hh-author span { font-size: 0.8rem; color: var(--text-light); }

.hh-carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.hh-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.hh-dot.active { background: var(--primary); width: 26px; border-radius: 6px; }

/* ---------- Business feature rows ---------- */
.hh-business { padding: 90px 0; }
.hh-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}
.hh-feature-row:last-child { margin-bottom: 0; }
.hh-feature-row.reverse { direction: rtl; }
.hh-feature-row.reverse > * { direction: ltr; }

.hh-feature-media img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hh-feature-media:hover img { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.hh-feature-text h3 { font-size: 1.5rem; margin-bottom: 14px; }
.hh-feature-text p { color: var(--text-light); margin-bottom: 16px; }

@media (max-width: 960px) {
    .hh-hero-inner { grid-template-columns: 1fr; }
    .hh-hero-media { order: -1; }
    .hh-stat-chips { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
    .hh-individuals-grid { grid-template-columns: repeat(2, 1fr); }
    .hh-feature-row, .hh-feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
    .hh-feature-media { order: -1; }
}
@media (max-width: 640px) {
    .hh-individuals-grid { grid-template-columns: 1fr; }
    .hh-hero-text h1 { font-size: 2rem; }
    .services-grid .service-card img { height: 180px; }
}