/* =========================================
   THEPETGRID — HOME
   Conversion / Founding Pets Edition
   ========================================= */

.hero {
    position: relative;
    overflow: hidden;
    padding: 105px 0 90px;
    background:
        radial-gradient(
            circle at 82% 22%,
            rgba(255, 183, 3, 0.28),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(251, 133, 0, 0.08),
            transparent 30%
        ),
        linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
}

.shell {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}


/* =========================================
   HERO
   ========================================= */

.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 72px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 14px;

    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 999px;

    background: #fff1c2;
    color: #9a4d00;

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;

    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.08);
}

.hero h1 {
    max-width: 700px;

    margin: 22px 0 20px;

    color: #172033;

    font-size: clamp(3.2rem, 5.8vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero h1 span {
    color: #f59e0b;
}

.hero p {
    max-width: 650px;
    margin: 0;

    color: #64748b;

    font-size: 1.17rem;
    line-height: 1.7;
}


/* =========================================
   CTA
   ========================================= */

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 0 20px;

    border-radius: 14px;

    text-decoration: none;

    font-weight: 800;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #172033;

    background:
        linear-gradient(
            135deg,
            #ffb703,
            #fb8500
        );

    box-shadow:
        0 12px 28px rgba(251, 133, 0, 0.25);
}

.btn-primary:hover {
    box-shadow:
        0 16px 34px rgba(251, 133, 0, 0.32);
}

.btn-secondary {
    color: #334155;

    border: 1px solid #e2e8f0;

    background: rgba(255, 255, 255, 0.92);
}

.btn-secondary:hover {
    border-color: #f7c55b;

    box-shadow:
        0 10px 24px rgba(15, 23, 42, 0.08);
}


/* =========================================
   HERO IMAGE
   ========================================= */

.hero-card {
    position: relative;

    padding: 14px;

    border: 1px solid #f1e4c7;
    border-radius: 32px;

    background: rgba(255, 255, 255, 0.92);

    box-shadow:
        0 35px 80px rgba(148, 92, 9, 0.20);
}

.hero-card::before {
    content: "";

    position: absolute;
    inset: -18px;

    z-index: -1;

    border-radius: 42px;

    background:
        radial-gradient(
            circle,
            rgba(255, 183, 3, 0.20),
            transparent 67%
        );

    filter: blur(20px);
}

.hero-card img {
    display: block;

    width: 100%;
    height: 500px;

    object-fit: cover;

    border-radius: 23px;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.section {
    padding: 52px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 28px;
}

.section h2 {
    margin: 7px 0 0;

    color: #172033;

    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.1;
}


/* =========================================
   FOUNDING PETS / STATS
   ========================================= */

.stats-band {
    display: grid;

    /* We have 3 cards — not 4 */
    grid-template-columns: repeat(3, 1fr);

    gap: 18px;
}

.stat {
    position: relative;
    overflow: hidden;

    min-height: 125px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 24px;

    border: 1px solid #ffe2a8;
    border-radius: 22px;

    text-align: center;

    color: #64748b;

    background:
        linear-gradient(
            145deg,
            #fffaf0,
            #fff4d8
        );

    box-shadow:
        0 14px 35px rgba(148, 92, 9, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stat:hover {
    transform: translateY(-4px);

    box-shadow:
        0 20px 45px rgba(148, 92, 9, 0.14);
}

.stat strong {
    display: block;

    margin-bottom: 5px;

    color: #b45309;

    font-size: 1.8rem;
    line-height: 1;
}


/* =========================================
   PET GRID
   ========================================= */

.pet-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.pet-card {
    overflow: hidden;

    border: 1px solid #e9edf3;
    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 14px 34px rgba(15, 23, 42, 0.08);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.pet-card:hover {
    transform: translateY(-5px);

    box-shadow:
        0 22px 46px rgba(15, 23, 42, 0.13);
}

.pet-card img {
    display: block;

    width: 100%;
    height: 240px;

    object-fit: cover;
}

.pet-card-body {
    padding: 18px;
}

.pet-card h3 {
    margin: 0 0 6px;

    color: #172033;
}

.pet-meta {
    color: #64748b;
}

.pet-stats {
    display: flex;
    justify-content: space-between;

    margin-top: 14px;

    color: #475569;
}


/* =========================================
   PET ACTIONS
   ========================================= */

.home-pet-actions {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 9px;

    margin-top: 14px;
}

.home-pet-actions a {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;
    padding: 0 10px;

    border-radius: 11px;

    color: #fff;

    text-decoration: none;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #ffb020,
            #ff7a00
        );
}

.home-pet-actions .home-report-lost {
    color: #be123c;

    border: 1px solid #fecdd3;

    background: #fff1f2;
}

.home-pet-actions .home-visit-memorial {
    color: #62536f;

    border: 1px solid #ddd2e5;

    background:
        linear-gradient(
            135deg,
            #f8f4fa,
            #fff8ec
        );
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

    .hero {
        padding: 80px 0 65px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .hero h1 {
        max-width: 760px;
    }

    .hero p {
        max-width: 700px;
    }

    .hero-card {
        display: none;
    }

    .stats-band {
        grid-template-columns: repeat(3, 1fr);
    }

    .pet-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 650px) {

    .hero {
        padding: 58px 0 46px;
    }

    .shell {
        width: min(100% - 24px, 1180px);
    }

    .eyebrow {
        font-size: 0.72rem;
    }

    .hero h1 {
        margin-top: 18px;

        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .hero p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .cta-row {
        display: grid;
        grid-template-columns: 1fr;

        margin-top: 26px;
    }

    .cta-row .btn {
        width: 100%;
    }

    .section {
        padding: 38px 0;
    }

    .stats-band {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat {
        min-height: 100px;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pet-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   SMALL MOBILE
   ========================================= */

@media (max-width: 500px) {

    .home-pet-actions {
        grid-template-columns: 1fr;
    }
}