/* ===========================================================================
   Parrot Bliss — Breeder Hub (Avian Editorial design system)
   Editorial Minimalism: ink-navy text on near-white surface, primary red
   accents, dark philosophy section, pull quote with oversized red quote mark.
=========================================================================== */

:root {
  /* Aligned to species-info warm cream + orange palette */
  --pe-bg: var(--pb-surface);
  --pe-bg-bright: #ffffff;
  --pe-bg-low: var(--pb-surface-hi);
  --pe-bg-container: var(--pb-low);
  --pe-text: var(--pb-ink);
  --pe-text-soft: var(--pb-ink-soft);
  --pe-outline: var(--pb-outline);
  --pe-outline-faint: rgba(139, 111, 87, 0.22);
  --pe-red: var(--pb-accent); /* primary accent — tropical orange (matches species page) */
  --pe-red-deep: var(--pb-accent-hover);
  --pe-red-on: #ffffff;
  --pe-red-soft: var(--pb-soft);
  --pe-blue: var(--pb-violet);
  --pe-purple: var(--pb-violet);
  --pe-ink: var(--pb-ink);
  --pe-ink-deep: var(--pb-ink-deep);
  --pe-ink-on: var(--pb-low);
  --pe-radius: 0.25rem;
  --pe-radius-sm: 0.125rem;

  /* Spacing scale — semantic, fluid, used across the page for rhythm. */
  --pe-space-2xs: 0.5rem;
  --pe-space-xs: 0.75rem;
  --pe-space-sm: 1rem;
  --pe-space-md: 1.5rem;
  --pe-space-lg: 2.5rem;
  --pe-space-xl: 4rem;
  --pe-space-2xl: clamp(4rem, 8vw, 7rem); /* big section, generous   */
  --pe-space-section: clamp(3rem, 6vw, 5.5rem); /* default section */
  --pe-space-tight: clamp(2.25rem, 4vw, 3.5rem); /* compact section */
  --pe-space-breath: clamp(5rem, 10vw, 9rem); /* the page's deep pause */

  /* Container widths for compositional contrast */
  --pe-wrap-wide: 1320px;
  --pe-wrap: 1120px;
  --pe-wrap-narrow: 760px;
  --pe-gutter: clamp(1.25rem, 4vw, 2rem);

  --pe-font-display: "Noto Serif", Georgia, "Times New Roman", serif;
  --pe-font-body:
    "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body.page-template-template-breeder-editorial {
  background: var(--pe-bg);
  color: var(--pe-text);
  font-family: var(--pe-font-body);
}

.pb-editorial {
  color: var(--pe-text);
  font-family: var(--pe-font-body);
  font-size: 16px;
  line-height: 1.6;
}
.pb-editorial * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Wrappers — width contrast across the page */
.pb-ed__wrap {
  max-width: var(--pe-wrap-wide);
  margin: 0 auto;
  padding: 0 var(--pe-gutter);
}
.pb-ed__wrap--mid {
  max-width: var(--pe-wrap);
}
.pb-ed__wrap--narrow {
  max-width: var(--pe-wrap-narrow);
}

/* Default section spacing; overridden per-section for rhythm */
.pb-ed__section {
  padding: var(--pe-space-section) 0;
}

/* Typography primitives */
.pb-editorial h1,
.pb-editorial h2,
.pb-editorial h3,
.pb-editorial h4 {
  font-family: var(--pe-font-display) !important;
  color: var(--pe-text);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.pb-ed__display {
  font-family: var(--pe-font-display) !important;
  font-size: clamp(2.25rem, 5vw, 4rem) !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em !important;
  color: var(--pe-text) !important;
  margin: 0 0 1.25rem !important;
}
.pb-ed__display em {
  font-style: italic;
  font-weight: 700;
  color: var(--pe-red);
}
.pb-ed__display--inverse {
  color: var(--pe-ink-on) !important;
}
.pb-ed__display--center {
  text-align: center;
}
.pb-ed__headline-lg {
  font-family: var(--pe-font-display) !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  margin: 0.5rem 0 0 !important;
}
.pb-ed__headline-md {
  font-family: var(--pe-font-display) !important;
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem !important;
}
.pb-ed__italic {
  font-style: italic;
}
.pb-ed__eyebrow {
  display: inline-block;
  font-family: var(--pe-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pe-red);
}
.pb-ed__eyebrow--red {
  color: var(--pe-red);
}
.pb-ed__label-red {
  font-family: var(--pe-font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pe-red);
  margin: 0 0 0.5rem;
}

/* Buttons */
.pb-ed__btn {
  display: inline-block;
  font-family: var(--pe-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: var(--pe-radius);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
  text-align: center;
  line-height: 1.2;
}
.pb-ed__btn--primary {
  background: var(--pe-red);
  color: var(--pe-red-on) !important;
  border: 1px solid var(--pe-red);
}
.pb-ed__btn--primary:hover {
  background: var(--pe-red-deep);
  border-color: var(--pe-red-deep);
  color: var(--pe-red-on) !important;
}
.pb-ed__btn--ghost {
  background: transparent;
  color: var(--pe-text) !important;
  border: 1px solid rgba(24, 25, 51, 0.4);
}
.pb-ed__btn--ghost:hover {
  background: var(--pe-bg-container);
}
.pb-ed__btn--inverse {
  background: var(--pe-ink-on);
  color: var(--pe-red) !important;
}
.pb-ed__btn--inverse:hover {
  background: var(--pe-red-soft);
  color: var(--pe-red-deep) !important;
}
.pb-ed__btn--inverse-outline {
  background: transparent;
  color: var(--pe-ink-on) !important;
  border: 2px solid var(--pe-ink-on);
}
.pb-ed__btn--inverse-outline:hover {
  background: var(--pe-ink-on);
  color: var(--pe-red) !important;
}

/* ============================================================
   HERO — full-bleed image with light left-side gradient
============================================================ */
.pb-ed__hero {
  position: relative;
  width: 100%;
  min-height: clamp(540px, 78vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--pe-bg);
}
.pb-ed__hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.pb-ed__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.pb-ed__hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 17, 54, 0.85) 0%,
    rgba(12, 17, 54, 0.6) 30%,
    rgba(12, 17, 54, 0.15) 60%,
    rgba(12, 17, 54, 0) 80%
  );
}
.pb-ed__hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 4rem 0;
}
.pb-ed__hero-inner {
  max-width: 640px;
}
/* Force cream text on dark gradient — matches species-info hero. */
.pb-editorial .pb-ed__hero h1.pb-ed__display {
  color: var(--pb-surface-2) !important;
  text-shadow:
    0 3px 18px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.4) !important;
}
.pb-editorial .pb-ed__hero h1.pb-ed__display em {
  color: var(--pe-red) !important;
  font-style: italic;
}
.pb-ed__hero-lead {
  font-size: 1.125rem !important;
  line-height: 1.6 !important;
  color: rgba(255, 248, 242, 0.95) !important;
  margin: 0 0 2rem !important;
  max-width: 540px !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5) !important;
}
.pb-ed__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
/* Hero-specific button overrides for legibility on dark gradient */
.pb-ed__hero .pb-ed__btn--ghost {
  background: transparent;
  color: var(--pb-surface-2) !important;
  border: 1px solid rgba(255, 248, 242, 0.6);
}
.pb-ed__hero .pb-ed__btn--ghost:hover {
  background: rgba(255, 248, 242, 0.12);
}

/* ============================================================
   AVAILABLE LISTINGS
============================================================ */
.pb-ed__section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--pe-outline-faint);
  padding-bottom: 1.5rem;
  margin-bottom: 3rem;
}
.pb-ed__section-subline {
  font-size: 1rem;
  color: var(--pe-text-soft);
  margin: 0.75rem 0 0;
  max-width: 640px;
}
/* Listings section rhythm: tight at top (continues from hero),
   generous at bottom (transitions into the dark Philosophy section). */
.pb-ed__listings {
  padding: var(--pe-space-tight) 0 var(--pe-space-section);
}
.pb-ed__listings-body {
  font-size: 1rem;
}
/* Soften any inline style coming from the listings shortcode so it lives
   inside our editorial container. */
.pb-ed__listings-body img {
  border-radius: var(--pe-radius);
}

/* Sold-out empty state from the parrotbliss-editor listings shortcode */
.pb-ed__listings-body .pbe-no-listings,
.pbe-soldout {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--pe-bg-container);
  border: 1px solid var(--pe-outline-faint);
  border-radius: var(--pe-radius);
  margin: 2rem 0;
}
.pbe-soldout h3 {
  font-family: var(--pe-font-display) !important;
  font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
  font-weight: 700 !important;
  color: var(--pe-red) !important;
  margin: 0 0 0.75rem !important;
  letter-spacing: -0.01em;
}
.pbe-soldout p {
  font-size: 1.125rem;
  color: var(--pe-text-soft);
  margin: 0 0 1.75rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.pbe-soldout .pbe-soldout-btn {
  display: inline-block;
  background: var(--pe-red);
  color: var(--pe-red-on) !important;
  font-family: var(--pe-font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 1.75rem;
  border-radius: var(--pe-radius);
  text-decoration: none !important;
  border: 1px solid var(--pe-red);
  transition: background 0.2s ease;
}
.pbe-soldout .pbe-soldout-btn:hover {
  background: var(--pe-red-deep);
  border-color: var(--pe-red-deep);
}

/* ============================================================
   PHILOSOPHY — dark editorial section
============================================================ */
.pb-ed__philosophy {
  background: var(--pe-ink-deep);
  color: var(--pe-ink-on);
  padding: var(--pe-space-2xl) 0;
}
@media (min-width: 900px) {
  .pb-ed__philosophy {
    padding: 7rem 0;
  }
}
.pb-ed__philosophy h2,
.pb-ed__philosophy h4 {
  color: var(--pe-ink-on);
}
.pb-ed__philosophy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .pb-ed__philosophy-grid {
    grid-template-columns: 1.4fr 1fr;
    gap: 4rem;
  }
}
.pb-ed__philosophy-intro {
  font-size: 1.125rem;
  color: rgba(242, 239, 255, 0.78);
  margin: 0 0 2.5rem;
  line-height: 1.6;
  max-width: 640px;
}
.pb-ed__philosophy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}
.pb-ed__philosophy-list li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 1rem;
  align-items: start;
}
.pb-ed__phil-bullet {
  width: 10px;
  height: 10px;
  background: var(--pe-red);
  border-radius: 50%;
  margin-top: 0.55rem;
}
.pb-ed__philosophy-list h4 {
  font-family: var(--pe-font-display) !important;
  font-size: 1.25rem !important;
  margin: 0 0 0.35rem !important;
  color: var(--pe-ink-on) !important;
}
.pb-ed__philosophy-list p {
  margin: 0;
  font-size: 1rem;
  color: rgba(242, 239, 255, 0.7);
  line-height: 1.55;
}
.pb-ed__philosophy-quote {
  background: var(--pe-red);
  color: var(--pe-red-on);
  padding: 2.5rem 2rem;
  border-radius: var(--pe-radius);
  align-self: end;
}
.pb-ed__philosophy-quote p {
  font-family: var(--pe-font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  margin: 0;
  font-weight: 600;
}

/* ============================================================
   BOND
============================================================ */
.pb-ed__bond {
  background: var(--pe-bg-bright);
  padding: var(--pe-space-tight) 0;
}
.pb-ed__bond-head {
  text-align: center;
  margin-bottom: 3rem;
}
.pb-ed__rule {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--pe-red);
  margin: 1rem auto 0;
}
.pb-ed__bond-lead {
  text-align: center;
  font-size: 1.125rem;
  color: var(--pe-text-soft);
  max-width: 720px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}
.pb-ed__bond-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--pe-space-lg);
  max-width: var(--pe-wrap);
  margin: 0 auto;
}
/* Asymmetric 5:7 split — breaks the "1:1 reflex" the rest of the page
   uses (Location, Philosophy header). The lighter column hosts the heading,
   the heavier column carries the body text. */
@media (min-width: 720px) {
  .pb-ed__bond-grid {
    grid-template-columns: 5fr 7fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
}
.pb-ed__bond-grid h3 {
  margin-bottom: 0.75rem !important;
}
.pb-ed__bond-grid p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--pe-text-soft);
  margin: 0;
}

/* ============================================================
   PULL QUOTE
============================================================ */
.pb-ed__pullquote {
  background: var(--pe-bg-low);
  padding: var(--pe-space-breath) 0;
  text-align: center;
}
.pb-ed__pullquote .pb-ed__wrap {
  max-width: 880px;
}
.pb-ed__quote-mark {
  font-family: var(--pe-font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--pe-red);
  display: block;
  margin-bottom: 0.5rem;
}
.pb-ed__pullquote blockquote {
  margin: 0 0 1.5rem;
  padding: 0;
  border: 0;
}
.pb-ed__pullquote blockquote p {
  font-family: var(--pe-font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.35;
  color: var(--pe-text);
  margin: 0;
  font-weight: 600;
}
.pb-ed__pullquote-attr {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--pe-red);
}

/* ============================================================
   LOCATION
============================================================ */
.pb-ed__location {
  background: var(--pe-bg);
  padding: var(--pe-space-section) 0;
}
.pb-ed__location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
@media (min-width: 900px) {
  .pb-ed__location-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}
.pb-ed__location-text h2 {
  margin-bottom: 1.5rem !important;
}
.pb-ed__location-lead {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--pe-text-soft);
  margin: 0 0 2rem;
}
.pb-ed__location-rail {
  border-left: 2px solid var(--pe-outline-faint);
  padding-left: 1.5rem;
  display: grid;
  gap: 1.75rem;
}
.pb-ed__location-rail p {
  margin: 0;
  font-size: 1rem;
  color: var(--pe-text);
  line-height: 1.55;
}
.pb-ed__location-map {
  aspect-ratio: 16 / 11;
  background: var(--pe-bg-container);
  border: 1px solid var(--pe-outline-faint);
  border-radius: var(--pe-radius);
  overflow: hidden;
  position: relative;
}
.pb-ed__location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.pb-ed__map-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--pe-font-display);
  font-style: italic;
  color: var(--pe-text-soft);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

/* ============================================================
   FAQ
============================================================ */
.pb-ed__faq {
  background: var(--pe-bg);
  padding: var(--pe-space-tight) 0 var(--pe-space-section);
}
.pb-ed__faq h2 {
  margin-bottom: 3rem !important;
}
.pb-ed__faq-list {
  display: flex;
  flex-direction: column;
}
.pb-ed__faq-item {
  border-bottom: 1px solid var(--pe-outline-faint);
  padding: 1.25rem 0;
}
.pb-ed__faq-item summary {
  font-family: var(--pe-font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--pe-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s ease;
}
.pb-ed__faq-item summary::-webkit-details-marker {
  display: none;
}
.pb-ed__faq-item summary:hover {
  color: var(--pe-red);
}
.pb-ed__faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--pe-text-soft);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}
.pb-ed__faq-item[open] .pb-ed__faq-icon {
  transform: rotate(45deg);
  color: var(--pe-red);
}
.pb-ed__faq-answer {
  padding: 1rem 0 0.5rem;
  color: var(--pe-text-soft);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 720px;
}
.pb-ed__faq-answer p {
  margin: 0;
}

/* ============================================================
   FINAL CTA — full-width red banner
============================================================ */
.pb-ed__cta {
  background: var(--pe-red);
  color: var(--pe-red-on);
  padding: var(--pe-space-section) 0 var(--pe-space-2xl);
  text-align: center;
}
.pb-ed__cta .pb-ed__display {
  margin: 0 0 1.5rem !important;
}
.pb-ed__cta-lead {
  font-size: 1.125rem;
  color: var(--pe-red-soft);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.55;
}
.pb-ed__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
/* Mobile: stack CTA buttons full-width, tighten section reset for narrow phones,
   shrink the deepest pause (pull quote) so it doesn't dominate one screen. */
@media (max-width: 600px) {
  .pb-ed__cta-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .pb-ed__cta-actions .pb-ed__btn {
    width: 100%;
  }
  .pb-ed__hero-text {
    padding: var(--pe-space-xl) 0 var(--pe-space-lg);
  }
  .pb-ed__hero {
    min-height: clamp(440px, 70vh, 620px);
  }
}
