/* ═══════════════════════════════════════════════════════════
   CRIANZA PREMIUM HOMEPAGE v2.0 — Divi-safe
   ═══════════════════════════════════════════════════════════ */

.cz-home-premium {
  --cz-hp-gradient: linear-gradient(135deg, #EFF6FF 0%, #FFFFFF 45%, #FFFBEB 100%);
}

/* Hide legacy Divi page sections only when old builder content is present */
body.cz-home-page .entry-content > .et_pb_section { display: none !important; }
body.cz-home-page .entry-content > .et_pb_section:empty { display: none !important; }
body.cz-home-page .cz-trust { display: block !important; }
body.cz-home-page #left-area > .entry-title { display: none !important; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── ANNOUNCEMENT BAR ── */
.cz-announce {
  background: linear-gradient(90deg, #1E40AF, #2563EB);
  color: #fff;
  padding: 10px 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.cz-announce-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.cz-announce a { color: #FDE68A !important; text-decoration: underline !important; }
.cz-announce p { margin: 0 !important; color: #fff !important; }

/* ── PREMIUM HERO ── */
.cz-hp-hero {
  position: relative;
  padding: clamp(56px, 10vw, 100px) 0 clamp(64px, 10vw, 110px);
  overflow: hidden;
}
.cz-hp-hero-bg {
  position: absolute;
  inset: 0;
  background: var(--cz-hp-gradient);
  z-index: 0;
}
.cz-hp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 80% 20%, rgba(37,99,235,0.08), transparent 60%);
}
.cz-hp-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.cz-hp-hero-title {
  font-size: clamp(2rem, 5.5vw, 3.25rem) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
  margin: 0 0 20px !important;
}
.cz-hp-hero-desc {
  font-size: clamp(1rem, 2.2vw, 1.1875rem);
  color: var(--cz-muted);
  line-height: 1.75;
  margin: 0 0 32px;
  max-width: 520px;
}
.cz-hp-hero-visual { position: relative; }
.cz-hp-hero-img {
  width: 100%;
  border-radius: var(--cz-radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.14);
  object-fit: cover;
  aspect-ratio: 4/3;
}
.cz-hp-hero-float {
  position: absolute;
  bottom: -16px;
  left: -16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--cz-radius-sm);
}
.cz-hp-float-icon {
  width: 40px; height: 40px;
  background: var(--cz-success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
}
.cz-hp-hero-float strong { font-size: 0.9375rem; }
.cz-hp-hero-float small { color: var(--cz-muted); font-size: 0.75rem; }

.cz-btn-lg {
  padding: 17px 32px !important;
  font-size: 1rem !important;
  min-height: 56px !important;
}

/* ── TRUST CARDS ── */
.cz-trust-card {
  padding: clamp(24px, 3vw, 32px) !important;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cz-trust-card-title {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}
.cz-trust-card p {
  font-size: 0.8125rem !important;
  color: var(--cz-muted) !important;
  margin: 0 !important;
  line-height: 1.55 !important;
}
@media (hover: hover) {
  .cz-trust-card:hover { transform: translateY(-6px); box-shadow: var(--cz-shadow-hover); }
}

/* ── CATEGORY CARDS ── */
.cz-cat-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  overflow: hidden;
  padding: 0 !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cz-cat-img { height: 200px; overflow: hidden; }
.cz-cat-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.cz-cat-card:hover .cz-cat-img img { transform: scale(1.06); }
.cz-cat-body {
  padding: 18px 22px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cz-cat-body h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}
.cz-cat-body span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cz-primary);
  background: rgba(37,99,235,0.08);
  padding: 4px 10px;
  border-radius: 100px;
}
@media (hover: hover) {
  .cz-cat-card:hover { transform: translateY(-4px); box-shadow: var(--cz-shadow-hover); }
}

/* ── CHECK LIST ── */
.cz-check-list {
  list-style: none !important;
  padding: 0 0 24px !important;
  margin: 0 !important;
}
.cz-check-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.9375rem;
  color: var(--cz-text);
}
.cz-check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cz-success);
  font-weight: 800;
}

/* ── PUPPY CARDS ── */
.cz-puppy-card {
  overflow: hidden;
  padding: 0 !important;
  text-align: left !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cz-puppy-img {
  display: block;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.cz-puppy-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.cz-puppy-card:hover .cz-puppy-img img { transform: scale(1.05); }
.cz-puppy-stock {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 100px;
}
.cz-stock-available { background: var(--cz-success); color: #fff; }
.cz-stock-reserved { background: var(--cz-accent); color: #fff; }
.cz-puppy-body { padding: 16px 18px 20px; }
.cz-puppy-breed {
  font-size: 0.75rem !important;
  font-weight: 600;
  color: var(--cz-primary) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 4px !important;
}
.cz-puppy-name {
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}
.cz-puppy-name a { color: var(--cz-text) !important; text-decoration: none !important; }
.cz-puppy-name a:hover { color: var(--cz-primary) !important; }
.cz-puppy-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--cz-text);
  margin-bottom: 14px;
}
.cz-puppy-price .woocommerce-Price-amount { color: inherit; }
.cz-puppy-btn { font-size: 0.875rem !important; min-height: 44px !important; padding: 10px 16px !important; }
@media (hover: hover) {
  .cz-puppy-card:hover { transform: translateY(-5px); box-shadow: var(--cz-shadow-hover); }
}

.cz-section-cta { text-align: center; margin-top: clamp(36px, 5vw, 48px); }

/* ── PROCESS GRID ── */
.cz-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cz-process-step {
  padding: clamp(24px, 3vw, 32px) !important;
  text-align: center;
  position: relative;
}
.cz-process-num {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--cz-primary), var(--cz-primary-dark));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  box-shadow: 0 4px 14px rgba(37,99,235,0.3);
}
.cz-process-step h3 {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}
.cz-process-step p {
  font-size: 0.8125rem !important;
  color: var(--cz-muted) !important;
  margin: 0 !important;
}

/* ── HEALTH CARDS ── */
.cz-health-card {
  overflow: hidden;
  padding: 0 !important;
  text-align: left !important;
}
.cz-health-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.cz-health-body { padding: 20px 24px 24px; }
.cz-health-body h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}
.cz-health-body p {
  font-size: 0.875rem !important;
  color: var(--cz-muted) !important;
  margin: 0 !important;
}

/* ── REVIEW PLACEHOLDER ── */
.cz-review-placeholder {
  border: 1.5px dashed var(--cz-border) !important;
  background: var(--cz-light) !important;
}
.cz-review-placeholder p { font-style: italic; color: var(--cz-muted) !important; }
.cz-review-carousel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── NEWSLETTER ── */
.cz-newsletter { padding-bottom: clamp(56px, 8vw, 80px); }
.cz-newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: clamp(32px, 5vw, 48px) !important;
  background: linear-gradient(135deg, #EFF6FF, #FFFFFF) !important;
}
.cz-newsletter-text p {
  color: var(--cz-muted) !important;
  margin-top: 8px !important;
  font-size: 0.9375rem !important;
}
.cz-newsletter-form {
  display: flex;
  gap: 12px;
}
.cz-newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--cz-border);
  border-radius: var(--cz-radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  min-height: 52px;
}
.cz-newsletter-form input:focus {
  outline: none;
  border-color: var(--cz-primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}

/* ── FOOTER NAV ── */
.cz-footer-nav {
  padding: 32px 0 48px;
  border-top: 1px solid var(--cz-border);
  background: var(--cz-light);
}
.cz-footer-nav-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
}
.cz-footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cz-muted) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.cz-footer-nav a:hover { color: var(--cz-primary) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .cz-hp-hero-grid { grid-template-columns: 1fr; }
  .cz-hp-hero-visual { order: -1; max-width: 560px; margin: 0 auto; }
  .cz-hp-hero-desc { max-width: none; }
  .cz-hp-hero-content { text-align: center; }
  .cz-hp-hero-content .cz-hero-actions { justify-content: center; }
  .cz-process-grid { grid-template-columns: repeat(2, 1fr); }
  .cz-review-carousel { grid-template-columns: 1fr; }
  .cz-review-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .cz-review-carousel::-webkit-scrollbar { display: none; }
  .cz-review-slide {
    flex: 0 0 min(100%, 340px);
    scroll-snap-align: center;
  }
  .cz-newsletter-inner { grid-template-columns: 1fr; text-align: center; }
  .cz-newsletter-text .cz-section-title { text-align: center !important; }
}

@media (max-width: 768px) {
  .cz-grid-4.cz-puppy-grid { grid-template-columns: repeat(2, 1fr); }
  .cz-process-grid { grid-template-columns: 1fr; }
  .cz-newsletter-form { flex-direction: column; }
  .cz-hp-hero-float { left: 8px; bottom: -8px; }
}

@media (max-width: 480px) {
  .cz-grid-4.cz-puppy-grid,
  .cz-grid-3.cz-cat-grid { grid-template-columns: 1fr; }
  .cz-announce { font-size: 0.75rem; }
}
