/*
 * PF Portfolio Guide — Unified Stylesheet
 * Covers all .pg-* blocks used in portfolio guide pages.
 * Replaces per-page inline <style> blocks (.vet-guide, .va-guide, .vx-guide, .tr-guide, .pp-guide).
 *
 * Naming convention: .pg-{block}__element
 */

/* ─── Shared variables ───────────────────────────────────────────────────── */
:root {
  --pg-font-body:   var(--pawscare-content-font-family, 'Nunito', sans-serif);
  --pg-font-head:   var(--pawscare-header-font-family, 'Paytone One', sans-serif);
  --pg-green:       #8e9d7e;
  --pg-green-dark:  #7a8e6c;
  --pg-brown:       #564741;
  --pg-text:        #616161;
  --pg-bg:          #fcf9f4;
  --pg-bg-hover:    #f5f0e8;
  --pg-border:      #e6e0da;
  --pg-border-note: #d4c9a8;
  --pg-shadow:      0 4px 24px rgba(0, 0, 0, 0.06);
}

/* ─── Base block spacing ─────────────────────────────────────────────────── */
.elementor-widget-pf-guide-hero    + .elementor-widget,
.elementor-widget-pf-guide-section + .elementor-widget,
.elementor-widget-pf-guide-accent  + .elementor-widget,
.elementor-widget-pf-guide-green   + .elementor-widget,
.elementor-widget-pf-guide-infobox + .elementor-widget,
.elementor-widget-pf-guide-phase   + .elementor-widget,
.elementor-widget-pf-guide-note    + .elementor-widget,
.elementor-widget-pf-guide-cta     + .elementor-widget {
  margin-top: 0;
}

/* ─── Badge ──────────────────────────────────────────────────────────────── */
.pg-badge {
  display: inline-block;
  background: var(--pg-green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 5px;
  margin-bottom: 18px;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.pg-hero {
  font-family: var(--pg-font-body);
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 52px 48px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.pg-hero::before {
  content: attr(data-emoji-before);
  position: absolute;
  font-size: 130px;
  opacity: 0.05;
  top: -20px;
  right: -10px;
  transform: rotate(-15deg);
  pointer-events: none;
  line-height: 1;
}
.pg-hero::after {
  content: attr(data-emoji-after);
  position: absolute;
  font-size: 80px;
  opacity: 0.04;
  bottom: 0;
  left: 15px;
  transform: rotate(18deg);
  pointer-events: none;
  line-height: 1;
}
.pg-hero h1 {
  font-family: var(--pg-font-head);
  color: var(--pg-brown);
  font-weight: 400;
  font-size: 34px;
  margin: 0 0 16px;
  line-height: 1.35;
  position: relative;
}
.pg-hero-desc {
  font-size: 16px;
  color: #7d7d7d;
  max-width: 660px;
  margin: 0 auto 28px;
  line-height: 1.75;
  position: relative;
}

/* Hero stats grid */
.pg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.pg-stat {
  background: #fff;
  border-radius: 5px;
  padding: 22px 20px 18px;
  box-shadow: var(--pg-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}
.pg-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.pg-stat-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}
.pg-stat-val {
  font-family: var(--pg-font-head);
  font-size: 22px;
  color: var(--pg-brown);
  font-weight: 400;
  line-height: 1.2;
}
.pg-stat-lbl {
  font-size: 13px;
  color: var(--pg-green);
  font-weight: 700;
  margin-top: 4px;
}

/* ─── Section card (icon) ────────────────────────────────────────────────── */
.pg-section {
  font-family: var(--pg-font-body);
  background: #fff;
  border-radius: 5px;
  padding: 40px 38px 36px;
  box-shadow: var(--pg-shadow);
  position: relative;
  box-sizing: border-box;
}
.pg-section-icon {
  position: absolute;
  top: -18px;
  left: 34px;
  width: 38px;
  height: 38px;
  background: var(--pg-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(142, 157, 126, 0.35);
}
.pg-section h2 {
  font-family: var(--pg-font-head);
  color: var(--pg-brown);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.pg-section-body {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--pg-text);
}

/* ─── Step card (numbered) ───────────────────────────────────────────────── */
.pg-step {
  font-family: var(--pg-font-body);
  background: #fff;
  border-radius: 5px;
  padding: 40px 38px 36px;
  box-shadow: var(--pg-shadow);
  position: relative;
  box-sizing: border-box;
}
.pg-step-num {
  position: absolute;
  top: -16px;
  left: 34px;
  width: 34px;
  height: 34px;
  background: var(--pg-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pg-font-body);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 4px 12px rgba(142, 157, 126, 0.35);
}
.pg-step h2 {
  font-family: var(--pg-font-head);
  color: var(--pg-brown);
  font-weight: 400;
  font-size: 24px;
  margin: 0 0 12px;
  line-height: 1.35;
}
.pg-step-body {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--pg-text);
}

/* ─── Shared: content sub-blocks ─────────────────────────────────────────── */

/* Times grid */
.pg-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}
.pg-time {
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 20px 22px;
  border-left: 3px solid var(--pg-green);
  transition: background 0.3s;
}
.pg-time:hover { background: var(--pg-bg-hover); }
.pg-time-title {
  font-weight: 800;
  color: var(--pg-brown);
  font-size: 15px;
  margin-bottom: 4px;
}
.pg-time-sub {
  font-size: 13px;
  color: var(--pg-green);
  font-weight: 700;
}

/* Checklist */
.pg-checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.pg-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0ece8;
}
.pg-check-item:last-child { border-bottom: none; }
.pg-check-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  background: var(--pg-green);
  color: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.pg-check-text {
  font-size: 15px;
  color: var(--pg-brown);
  font-weight: 600;
}

/* Bring / product grid */
.pg-bring-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.pg-bring-item {
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 18px 20px;
  font-size: 14px;
  color: var(--pg-brown);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s, transform 0.3s;
}
.pg-bring-item:hover {
  background: var(--pg-bg-hover);
  transform: translateY(-1px);
}
.pg-bring-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

/* Product grid (with label) */
.pg-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.pg-product-item {
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s, transform 0.3s;
}
.pg-product-item:hover {
  background: var(--pg-bg-hover);
  transform: translateY(-1px);
}
.pg-product-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--pg-green);
  color: #fff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}
.pg-product-name {
  font-size: 14px;
  color: var(--pg-brown);
  font-weight: 600;
}
.pg-product-label {
  display: block;
  font-size: 11px;
  color: var(--pg-green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

/* List (simple, like tr-list) */
.pg-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.pg-list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f0ece8;
  font-size: 15px;
  color: var(--pg-text);
}
.pg-list-item:last-child { border-bottom: none; }
.pg-list-icon {
  flex-shrink: 0;
  font-size: 18px;
  line-height: 1;
  min-width: 24px;
  text-align: center;
}

/* Timeline */
.pg-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
}
.pg-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--pg-border);
}
.pg-tl-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  position: relative;
}
.pg-tl-dot {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--pg-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  position: relative;
  z-index: 1;
  margin-left: -8px;
}
.pg-tl-week {
  font-weight: 800;
  color: var(--pg-brown);
  font-size: 15px;
  line-height: 1.3;
}
.pg-tl-desc {
  font-size: 14px;
  color: var(--pg-text);
  margin-top: 2px;
}

/* Prep note (inline) */
.pg-prep {
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 16px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pg-text);
  border-left: 3px solid var(--pg-border-note);
  margin-bottom: 20px;
}
.pg-prep-highlight {
  font-weight: 800;
  color: var(--pg-brown);
}

/* Highlight box (green gradient strip) */
.pg-highlight {
  background: linear-gradient(135deg, var(--pg-green) 0%, var(--pg-green-dark) 100%);
  border-radius: 5px;
  padding: 24px 26px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}
.pg-highlight-icon {
  font-size: 36px;
  flex-shrink: 0;
  line-height: 1;
}

/* Green block (single centered text block) */
.pg-green-block {
  background: linear-gradient(135deg, var(--pg-green) 0%, var(--pg-green-dark) 100%);
  border-radius: 5px;
  padding: 28px 30px;
  color: #fff;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
}
.pg-green-block::after {
  content: attr(data-emoji);
  position: absolute;
  font-size: 80px;
  opacity: 0.08;
  bottom: -12px;
  right: 10px;
  pointer-events: none;
  line-height: 1;
}
.pg-green-block span { position: relative; }

/* Inline info note */
.pg-info-note {
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pg-text);
  border-left: 3px solid var(--pg-border-note);
  margin-top: 20px;
}
.pg-info-note strong { color: var(--pg-brown); }

/* Alert (bottom of section) */
.pg-alert-note {
  background: #fff8f0;
  border-radius: 5px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--pg-text);
  border-left: 3px solid #e8a87c;
  margin-top: 20px;
}
.pg-alert-note strong { color: var(--pg-brown); }

/* Tag (inline highlight span) */
.pg-tag {
  display: inline-block;
  background: var(--pg-green);
  color: #fff;
  border-radius: 3px;
  padding: 1px 8px;
  font-size: 13px;
  font-weight: 700;
}

/* ─── Accent card (dark) ─────────────────────────────────────────────────── */
.pg-accent {
  font-family: var(--pg-font-body);
  background: var(--pg-brown);
  border-radius: 5px;
  padding: 40px 38px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.pg-accent::after {
  content: attr(data-emoji);
  position: absolute;
  font-size: 90px;
  opacity: 0.07;
  bottom: -15px;
  right: 15px;
  pointer-events: none;
  line-height: 1;
}
.pg-accent .pg-badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.pg-accent h2 {
  font-family: var(--pg-font-head);
  color: #fff;
  font-weight: 400;
  font-size: 26px;
  margin: 0 0 14px;
  line-height: 1.35;
  position: relative;
}
.pg-accent p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
  position: relative;
}

/* ─── Green card ─────────────────────────────────────────────────────────── */
.pg-green-card {
  font-family: var(--pg-font-body);
  background: linear-gradient(135deg, var(--pg-green) 0%, var(--pg-green-dark) 100%);
  border-radius: 5px;
  padding: 36px 38px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.pg-green-card::after {
  content: attr(data-emoji);
  position: absolute;
  font-size: 100px;
  opacity: 0.08;
  bottom: -20px;
  right: 10px;
  pointer-events: none;
  line-height: 1;
}
.pg-green-card h2 {
  font-family: var(--pg-font-head);
  color: #fff;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 16px;
  line-height: 1.35;
  position: relative;
}
.pg-green-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.pg-green-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  padding: 14px 18px;
}
.pg-green-item-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.pg-green-item-text {
  font-size: 15px;
  font-weight: 600;
}
.pg-green-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  position: relative;
}

/* ─── Infobox (warning / info) ───────────────────────────────────────────── */
.pg-infobox {
  font-family: var(--pg-font-body);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 5px;
  background: #fff8f0;
  border-left: 4px solid #e8a87c;
  box-sizing: border-box;
}
.pg-infobox--info {
  background: var(--pg-bg);
  border-left-color: var(--pg-border-note);
}
.pg-infobox-icon {
  font-size: 24px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}
.pg-infobox-title {
  font-family: var(--pg-font-head);
  color: var(--pg-brown);
  font-weight: 400;
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}
.pg-infobox-text {
  font-size: 14px;
  color: var(--pg-text);
  line-height: 1.75;
}
.pg-infobox-text strong { color: var(--pg-brown); }

/* ─── Phase banner ───────────────────────────────────────────────────────── */
.pg-phase {
  font-family: var(--pg-font-body);
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pg-brown);
  box-sizing: border-box;
}
.pg-phase-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

/* ─── Divider ────────────────────────────────────────────────────────────── */
.pg-divider {
  font-family: var(--pg-font-body);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  box-sizing: border-box;
}
.pg-divider::before,
.pg-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--pg-border);
}
.pg-divider-icon {
  font-size: 20px;
  opacity: 0.5;
}

/* ─── Note (left-border text block) ─────────────────────────────────────── */
.pg-note {
  font-family: var(--pg-font-body);
  background: var(--pg-bg);
  border-radius: 5px;
  padding: 30px 34px;
  border-left: 4px solid var(--pg-green);
  font-size: 15px;
  line-height: 1.8;
  color: var(--pg-text);
  box-sizing: border-box;
}
.pg-note strong {
  color: var(--pg-brown);
  font-weight: 800;
}

/* ─── CTA ────────────────────────────────────────────────────────────────── */
.pg-cta {
  font-family: var(--pg-font-body);
  text-align: center;
  padding: 8px 0;
  box-sizing: border-box;
}
.pg-cta-text {
  font-family: var(--pg-font-head);
  font-size: 22px;
  color: var(--pg-brown);
  font-weight: 400;
  margin: 0 0 8px;
}
.pg-cta-sub {
  font-size: 15px;
  color: var(--pg-green);
  font-weight: 700;
  margin: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pg-hero { padding: 36px 24px 32px; }
  .pg-hero h1 { font-size: 26px; }
  .pg-hero-desc { font-size: 15px; }
  .pg-stats { grid-template-columns: 1fr; max-width: 260px; }
  .pg-section, .pg-step { padding: 32px 24px 28px; }
  .pg-section-icon { left: 24px; }
  .pg-step-num { left: 24px; }
  .pg-times { grid-template-columns: 1fr; }
  .pg-bring-grid { grid-template-columns: 1fr; }
  .pg-product-grid { grid-template-columns: 1fr; }
  .pg-accent { padding: 32px 24px; }
  .pg-green-card { padding: 28px 24px; }
  .pg-green-item { flex-direction: column; text-align: center; gap: 8px; }
  .pg-highlight { flex-direction: column; text-align: center; gap: 12px; }
  .pg-note { padding: 24px 22px; }
}
