/* ============================================
   HOMEPAGE SECTIONS
   ============================================ */

/* ── Hero ── */
.petz-hp-hero {
    background: linear-gradient(135deg, #f0fdf7 0%, #e8f5ff 50%, #f5f0ff 100%);
    padding: 0;
    overflow: hidden;
}
.petz-hp-hero__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    min-height: 480px;
}
.petz-hp-hero__content {
    padding: 3rem 1rem 3rem 2rem;
}
.petz-hp-hero__badge {
    display: inline-block;
    background: rgba(21, 217, 149, 0.12);
    color: #0a8f5c;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.01em;
}
.petz-hp-hero__content h1 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    color: #1a192b;
    line-height: 1.15;
    margin: 0 0 1rem;
    font-weight: 800;
}
.petz-hp-hero__content p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 520px;
}
.petz-hp-hero__cta {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.petz-btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.petz-btn--primary {
    background: linear-gradient(130deg, #15d995, #10c586);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(21, 217, 149, 0.3);
}
.petz-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(21, 217, 149, 0.4);
    color: #fff !important;
}
.petz-btn--outline {
    background: transparent;
    color: #1a192b !important;
    border: 2px solid #e0e0e0;
}
.petz-btn--outline:hover {
    border-color: #15d995;
    background: rgba(21,217,149,0.05);
    color: #0fb87e !important;
}
.petz-hp-hero__stats {
    display: flex;
    gap: 2.5rem;
}
.petz-hp-hero__stats > div {
    text-align: left;
}
.petz-hp-hero__stats strong {
    display: block;
    font-size: 1.6rem;
    color: #15d995;
    font-weight: 800;
    line-height: 1.2;
}
.petz-hp-hero__stats span {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}
.petz-hp-hero__visual {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    border-radius: 24px 0 0 0;
}
.petz-hp-hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px 0 0 24px;
    max-height: 480px;
}

/* ── Section Headers ── */
.petz-hp-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}
.petz-hp-section-header h2 {
    font-size: 1.8rem;
    color: #1a192b;
    margin-bottom: 0.5rem;
    display: inline-block;
    border-bottom: none;
}
.petz-hp-section-header p {
    color: #777;
    font-size: 1.05rem;
}

/* ── Category Grid ── */
.petz-hp-categories {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.petz-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.petz-cat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}
.petz-cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--card-color);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s;
}
.petz-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
    border-color: var(--card-color);
}
.petz-cat-card:hover::before {
    opacity: 1;
}
.petz-cat-card__icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}
.petz-cat-card h3 {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
    color: #1a192b;
}
.petz-cat-card p {
    font-size: 0.82rem;
    color: #888;
    margin: 0 0 0.5rem;
    line-height: 1.4;
}
.petz-cat-card__count {
    font-size: 0.72rem;
    color: var(--card-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Reviews Grid ── */
.petz-hp-reviews {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f8fafb 0%, #fff 100%);
}
.petz-review-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.petz-review-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3/4;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s;
}
.petz-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.petz-review-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.petz-review-card:hover img {
    transform: scale(1.05);
}
.petz-review-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 2rem 1rem 1.2rem;
}
.petz-review-card__label {
    display: inline-block;
    background: linear-gradient(130deg, #15d995, #17EBD2);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
}
.petz-review-card__overlay h4 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
}

/* ── Latest Posts Grid ── */
.petz-hp-latest {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.petz-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.petz-post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.petz-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.1);
}
.petz-post-card__image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    display: block;
}
.petz-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}
.petz-post-card:hover .petz-post-card__image img {
    transform: scale(1.05);
}
.petz-post-card__badge {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    background: rgba(255,255,255,0.95);
    color: #1a192b;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(4px);
}
.petz-post-card__body {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.petz-post-card__body h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
    line-height: 1.35;
}
.petz-post-card__body h3 a {
    color: #1a192b;
    text-decoration: none;
}
.petz-post-card__body h3 a:hover {
    color: #15d995;
}
.petz-post-card__body p {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.5;
    flex: 1;
    margin: 0 0 0.8rem;
}
.petz-post-card__date {
    font-size: 0.72rem;
    color: #aaa;
    font-weight: 500;
}

/* ── Trust Section ── */
.petz-hp-trust {
    background: #1a192b;
    padding: 3.5rem 2rem;
}
.petz-trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.petz-trust-item {
    text-align: center;
}
.petz-trust-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.8rem;
}
.petz-trust-item h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 0.4rem;
}
.petz-trust-item p {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0;
}

/* ── Guides Grid ── */
.petz-hp-guides {
    padding: 3rem 2rem 4rem;
    max-width: 1000px;
    margin: 0 auto;
}
.petz-guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.petz-guide-col h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #15d995;
}
.petz-guide-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.petz-guide-col li {
    margin-bottom: 0.5rem;
}
.petz-guide-col li a {
    color: #555;
    font-size: 0.92rem;
    transition: all 0.2s;
}
.petz-guide-col li a:hover {
    color: #15d995;
    padding-left: 4px;
}

/* ── Homepage: hide page-header hero ── */
.page-id-65 .petz-hero,
.home .petz-hero {
    display: none !important;
}
.page-id-65 .entry-content {
    max-width: none;
}
.page-id-65 .entry-content h2 {
    border-bottom: none;
    display: block;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .petz-hp-hero__inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .petz-hp-hero__visual {
        max-height: 300px;
    }
    .petz-hp-hero__visual img {
        border-radius: 0;
        max-height: 300px;
    }
    .petz-hp-hero__content {
        padding: 2.5rem 1.5rem 1rem;
    }
    .petz-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .petz-review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .petz-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .petz-trust-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .petz-hp-hero__content h1 { font-size: 1.7rem; }
    .petz-hp-hero__stats { gap: 1.5rem; }
    .petz-hp-hero__stats strong { font-size: 1.3rem; }
    .petz-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .petz-cat-card { padding: 1rem; }
    .petz-cat-card__icon { font-size: 2rem; }
    .petz-review-grid { grid-template-columns: 1fr 1fr; }
    .petz-posts-grid { grid-template-columns: 1fr; }
    .petz-guides-grid { grid-template-columns: 1fr; }
    .petz-trust-inner { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
}
.page-id-65 .ast-single-post-featured-image-section, .home .ast-single-post-featured-image-section, .page-id-65 .entry-header, .home .entry-header, .page-id-65 .ast-page-header-section, .home .ast-page-header-section { display: none !important; } .page-id-65 .ast-breadcrumbs-wrapper, .home .ast-breadcrumbs-wrapper { display: none !important; }

/* Fix: Hide page title, breadcrumb, and last-updated on homepage */
.page-id-65 .ast-title-bar-wrap,
.home .ast-title-bar-wrap {
    display: none !important;
}
.page-id-65 .entry-title,
.home .entry-title {
    display: none !important;
}
.page-id-65 .entry-content > p[style*='#f0f9ff'],
.home .entry-content > p[style*='#f0f9ff'] {
    display: none !important;
}
/* Hide last updated snippet */
.page-id-65 .entry-content > blockquote:first-of-type,
.home .entry-content > blockquote:first-of-type {
    display: none !important;
}
/* Ensure full-width layout on homepage */
.page-id-65 #primary,
.home #primary {
    max-width: none !important;
    padding: 0 !important;
}
.page-id-65 .site-content > .ast-container,
.home .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}
.page-id-65 .ast-separate-container .ast-article-post, 
.page-id-65 .ast-separate-container .ast-article-single,
.home .ast-separate-container .ast-article-post,
.home .ast-separate-container .ast-article-single {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}
