/*
Theme Name: Planet Pup
Description: Custom theme replicating the planetpup.ie Wix design, with no page-builder dependency.
Author: Planet Pup
Version: 0.2.23
Text Domain: planetpup
*/

:root {
  --pp-primary: #811330;
  --pp-primary-hover: #B88E99;
  --pp-accent-orange: #C74300;
  --pp-accent-pink: #e33292;
  --pp-text: #000000;
  --pp-bg: #FFFFFF;
  --pp-grey-light: #E2E2E2;
  --pp-grey-mid: #8F8F8F;
  --pp-success: #569E22;
  --pp-rating-gold: #E4C200;
  --pp-error: #E21C21;
  --pp-font: 'Poppins', arial, sans-serif;
  --pp-radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--pp-font);
  color: var(--pp-text);
  background: var(--pp-bg);
}

a {
  color: var(--pp-primary);
  text-decoration: none;
}

.pp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.pp-logo img {
  display: block;
  height: 64px;
  width: auto;
}

/* WhatsApp floating widget, matches the Wix "WhatsApp: Start Chat Button" app */
.pp-whatsapp-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  transition: transform 0.15s ease;
}

.pp-whatsapp-widget:hover {
  transform: scale(1.08);
}

/* Header / nav, matches the StylableHorizontalMenu rules pulled from the live Wix site */
.pp-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--pp-bg);
  border-bottom: 1px solid var(--pp-grey-light);
}

.pp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

.pp-nav__list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-nav__link {
  display: inline-block;
  padding: 10px;
  color: var(--pp-text);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-decoration: none;
}

.pp-nav__link:hover,
.pp-nav__link--current {
  color: var(--pp-accent-orange);
  border-bottom: 2px solid var(--pp-accent-pink);
}

/* Buttons, matches the StylableButton rules pulled from the live Wix site */
.pp-button {
  display: inline-block;
  background: var(--pp-btn-bg, var(--pp-primary));
  color: var(--pp-btn-text, var(--pp-bg));
  border: var(--pp-btn-bdr-width, 2px) solid var(--pp-btn-border, var(--pp-text));
  border-radius: var(--pp-btn-radius, var(--pp-radius));
  padding: var(--pp-btn-pad-v, 10px) var(--pp-btn-pad-h, 21px);
  font-weight: bold;
  font-size: var(--pp-btn-font-size, 21px);
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pp-button:hover {
  background: var(--pp-btn-hover, var(--pp-primary-hover));
}

.pp-button:disabled,
.pp-button--disabled {
  background: var(--pp-grey-light);
  color: var(--pp-grey-mid);
  border-color: var(--pp-grey-light);
  cursor: not-allowed;
}

/* List markers */
.pp-check { color: var(--pp-success); }
.pp-cross { color: var(--pp-error); }
.pp-rating { color: var(--pp-rating-gold); }

/* Footer */
.pp-site-footer {
  background: var(--pp-grey-light);
  padding: 40px 0 0;
  margin-top: 60px;
}

.pp-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-bottom: 24px;
}

.pp-footer__col h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pp-footer__links,
.pp-footer__social {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pp-footer__links li,
.pp-footer__social li {
  margin-bottom: 6px;
}

.pp-footer__social--icons {
  display: flex;
  gap: 10px;
}

.pp-footer__social--icons img {
  display: block;
  border-radius: 50%;
}

.pp-footer__bottom {
  border-top: 1px solid var(--pp-grey-mid);
  padding: 16px 0 30px;
  font-size: 13px;
  color: var(--pp-grey-mid);
}

/* Nav */
.pp-nav__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Second row: Account + CTA + WhatsApp, centred below main nav */
.pp-nav__cta-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-bottom: 8px;
}

.pp-nav__phone {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
/* Account link */
.pp-nav__account {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--pp-text);
  text-decoration: none;
  white-space: nowrap;
}
.pp-nav__account:hover { color: var(--pp-primary); }
.pp-nav__account svg { flex-shrink: 0; }
.pp-nav__account-label { display: inline; }
/* Mobile account link */
.pp-mobile-nav__account {
  display: block;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 0;
  color: var(--pp-primary);
  text-decoration: none;
}
.pp-mobile-nav__account:hover { text-decoration: underline; }
/* Mobile-only home link — hidden on desktop */
.pp-nav__home-mobile { display: none; font-weight: 700; font-size: 14px; }
/* CTA short label — hidden on desktop */
.pp-cta-mobile { display: none; }
/* Hamburger — hidden on desktop */
.pp-nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.pp-nav__hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--pp-primary);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pp-nav__hamburger.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.pp-nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.pp-nav__hamburger.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
/* Mobile drawer */
.pp-nav__mobile-menu {
  display: none;
  padding: 8px 16px 16px;
  border-top: 1px solid var(--pp-grey-light);
  background: var(--pp-bg);
  overflow-y: auto;
  max-height: calc(100vh - 80px);
  -webkit-overflow-scrolling: touch;
}
.pp-nav__mobile-menu.is-open { display: block; }
.pp-mobile-nav__list { list-style: none; margin: 0; padding: 0; }
.pp-mobile-nav__list li a {
  display: block;
  padding: 13px 0;
  font-weight: 700;
  font-size: 16px;
  border-bottom: 1px solid var(--pp-grey-light);
  color: var(--pp-text);
}
.pp-mobile-nav__contacts {
  margin-top: 14px;
  display: flex;
  gap: 20px;
}
.pp-mobile-nav__phone,
.pp-mobile-nav__whatsapp {
  font-weight: 600;
  font-size: 14px;
}
/* Responsive — tablet and mobile */
@media (max-width: 860px) {
  .pp-nav__list { display: none; }
  .pp-nav__phone { display: none; }
  .pp-nav__cta-row { display: none; }
  .pp-nav__home-mobile { display: inline-flex; align-items: center; }
  .pp-nav__hamburger { display: flex; }
  .pp-cta-desktop { display: none; }
  .pp-cta-mobile { display: inline; }
  /* Account: show icon only on mobile — label moves to mobile menu */
  .pp-nav__account-label { display: none; }
}
.pp-nav__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pp-primary);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
}
.pp-nav__cart-count {
  position: absolute;
  top: -7px;
  right: -9px;
  background: var(--pp-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-nav__list li {
  position: relative;
}

.pp-nav__list ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--pp-bg);
  border: 1px solid var(--pp-grey-light);
  border-radius: var(--pp-radius);
  list-style: none;
  padding: 8px;
  min-width: 200px;
  z-index: 10;
  margin: 0;
}

.pp-nav__list li:hover > ul {
  display: block;
}

.pp-nav__list ul li a {
  display: block;
  padding: 6px 10px;
  white-space: nowrap;
}

/* Contain WooCommerce content — pp-container removed from <main> so pages need own containment */
.pp-main > .woocommerce,
.pp-main > .woocommerce-notices-wrapper {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* WooCommerce — restyle the stock templates with the same variables instead of a builder */
.woocommerce .price,
.woocommerce-Price-amount {
  color: var(--pp-primary);
  font-weight: 700;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button,
.woocommerce-Button,
.woocommerce a.added_to_cart,
.woocommerce-cart .button,
.woocommerce-checkout #place_order,
.single_add_to_cart_button {
  background: var(--pp-primary) !important;
  color: var(--pp-bg) !important;
  border: 2px solid var(--pp-text) !important;
  border-radius: var(--pp-radius) !important;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.single_add_to_cart_button:hover,
.woocommerce-checkout #place_order:hover {
  background: var(--pp-primary-hover) !important;
}

.woocommerce ul.products li.product .star-rating,
.woocommerce .star-rating {
  color: var(--pp-rating-gold);
}

/* Hero banner photo (optional, sits above the text hero) */
.pp-hero-banner {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.pp-hero-banner__overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pp-bg);
  text-align: center;
  font-weight: 700;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.pp-hero-banner__overlay span:first-child {
  font-size: 36px;
  letter-spacing: 0.05em;
}

.pp-hero-banner__overlay span:not(:first-child) {
  font-size: 22px;
}

/* Hero banner — vertical position modifiers */
.pp-hero-banner--top    { align-items: flex-start; padding-top: 24px; }
.pp-hero-banner--bottom { align-items: flex-end;   padding-bottom: 24px; }

/* Hero banner — horizontal overlay position modifiers */
.pp-hero-banner--h-left  .pp-hero-banner__overlay { align-items: flex-start; text-align: left;  padding-left: 6%; }
.pp-hero-banner--h-right .pp-hero-banner__overlay { align-items: flex-end;   text-align: right; padding-right: 6%; }

/* ── Cover Hero block (background image banner) ─────────────────────────── */
.pp-hero-cover {
  position: relative;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pp-hero-cover__backdrop { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

/* ── Hero content overlay (inner blocks inside the banner) ───────────────── */
.pp-hero-cover__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 20px 40px;
  text-align: center;
  color: #fff;
}
.pp-hero-cover__content .wp-block-heading,
.pp-hero-cover__content p { text-align: center; color: inherit; }
/* Centre the list block but keep bullet-item text left-aligned */
.pp-hero-cover__content .wp-block-list {
  display: inline-block;
  text-align: left;
}
.pp-hero-cover__content .wp-block-buttons { justify-content: center; }

/* ── Section immediately below hero: centre-alignment ───────────────────── */
/* Outer wrapper */
.pp-hero-cover + .pp-section { text-align: center; }
/* Inner pp-container — explicit, does not rely on inheritance */
.pp-hero-cover + .wp-block-group.pp-section > .wp-block-group.pp-container { text-align: center; }
/* Individual elements — direct override, highest-reliability approach */
.pp-hero-cover + .wp-block-group.pp-section .pp-hero__eyebrow,
.pp-hero-cover + .wp-block-group.pp-section .pp-hero__subtitle,
.pp-hero-cover + .wp-block-group.pp-section .pp-hero__rating,
.pp-hero-cover + .wp-block-group.pp-section h1.wp-block-heading,
.pp-hero-cover + .wp-block-group.pp-section .wp-block-paragraph { text-align: center; }
.pp-hero-cover + .pp-section .pp-hero__intro { max-width: 720px; margin-left: auto; margin-right: auto; }
.pp-hero-cover + .pp-section .wp-block-list { display: inline-block; text-align: left; }
.pp-hero-cover + .pp-section .wp-block-buttons { justify-content: center; }

/* ── Group blocks with editor-set text alignment ─────────────────────────── */
/* These classes are written by WordPress when the editor's Typography > Text
   Alignment control (enabled via block_type_metadata filter) is used.      */
.wp-block-group.has-text-align-center { text-align: center; }
.wp-block-group.has-text-align-center .wp-block-buttons { justify-content: center; }
.wp-block-group.has-text-align-center .wp-block-list { display: inline-block; text-align: left; }

/* ── Hero layers (text / shape / image) ─────────────────────────────────── */
.pp-hero-layer {
  position: absolute;
  box-sizing: border-box;
}
.pp-hero-layer--text {
  margin: 0;
  line-height: 1.3;
}
.pp-hero-layer--image img {
  width: 100%;
  display: block;
}

/* ── Custom list block styles ────────────────────────────────────────────── */
/* Use ::before + list-style:none so only one marker ever appears */
.wp-block-list.is-style-pp-check,
.wp-block-list.is-style-pp-cross,
.wp-block-list.is-style-pp-arrow,
.wp-block-list.is-style-pp-dash { list-style: none; padding-left: 1.75em; }
.wp-block-list.is-style-pp-check > li::before { content: '✔'; color: var(--pp-marker-color, var(--pp-success, #569E22)); display: inline-block; width: 1.5em; margin-left: -1.5em; }
.wp-block-list.is-style-pp-cross > li::before { content: '✘'; color: var(--pp-marker-color, var(--pp-error,   #E21C21)); display: inline-block; width: 1.5em; margin-left: -1.5em; }
.wp-block-list.is-style-pp-arrow > li::before { content: '→'; color: var(--pp-marker-color, currentColor);              display: inline-block; width: 1.5em; margin-left: -1.5em; }
.wp-block-list.is-style-pp-dash  > li::before { content: '—'; color: var(--pp-marker-color, currentColor);              display: inline-block; width: 1.5em; margin-left: -1.5em; }
.wp-block-list.is-style-pp-none  { list-style: none; padding-left: 0; }
/* Bullet colour control — CSS variable set by list-extension on the <ul> wrapper */
.wp-block-list li::marker { color: var(--pp-marker-color, currentColor); }

/* Hero */
.pp-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.pp-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
  color: var(--pp-accent-orange);
  margin: 0 0 8px;
}

.pp-hero__title {
  font-size: 42px;
  line-height: 1.15;
  margin: 0 0 16px;
}

.pp-hero__subtitle {
  font-size: 22px;
  font-weight: 600;
  color: var(--pp-primary);
  margin: 0 0 20px;
}

.pp-hero__intro {
  max-width: 720px;
  margin: 0 auto 16px;
  font-size: 17px;
}

.pp-hero__cta {
  margin-top: 16px;
}

.pp-hero__rating {
  margin-top: 14px;
  color: var(--pp-rating-gold);
  font-weight: 700;
}

/* Feature grid (homepage hero highlights) */
.pp-feature-grid {
  display: grid;
  grid-template-columns: repeat(var(--pp-fg-cols, 4), 1fr);
  gap: var(--pp-fg-gap, 20px);
  margin: 30px 0;
}

.pp-feature-card {
  text-align: center;
}

.pp-feature-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: var(--pp-radius);
}

.pp-feature-card h3 {
  margin-bottom: 4px;
}

/* General content photo */
.pp-photo {
  margin: 0 0 20px;
}

.pp-photo img {
  /* width/border-radius/shape are controlled via inline styles by the block template.
     No border-radius default here — shape is set per-block. */
  width: 100%;
  display: block;
  max-width: none;
}

.pp-photo figcaption {
  font-size: 13px;
  color: var(--pp-grey-mid);
  margin-top: 6px;
  text-align: center;
}

.pp-photo--round img {
  border-radius: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pp-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 700px) {
  .pp-two-col {
    grid-template-columns: 1fr;
  }
}

/* Section headings/wrappers shared by page templates */
.pp-section {
  padding: 50px 0;
}

.pp-section--alt {
  background: var(--pp-grey-light);
}

/* Full-width section wrapper emitted by blocks when sectionBg is set */
.pp-block-section {
  padding: 50px 0;
}

.pp-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 28px;
}

/* Checklist / problem list */
.pp-checklist,
.pp-problem-list {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  text-align: left;
}

.pp-checklist li,
.pp-problem-list li {
  padding: 4px 0;
  font-size: 16px;
}

/* Auto-inject markers for Gutenberg wp:list blocks (template parts use inline spans instead) */
.pp-checklist li:not(:has(.pp-check))::before {
  content: '✔';
  color: var(--pp-success);
  font-weight: bold;
  margin-right: 8px;
}

.pp-problem-list li:not(:has(.pp-cross))::before {
  content: '✘';
  color: var(--pp-error);
  font-weight: bold;
  margin-right: 8px;
}

/* Plain wp:list bullets (no custom class) */
ul.wp-block-list:not([class*="pp-"]):not(.wp-block-navigation__submenu-container) {
  list-style: disc;
  padding-left: 1.5em;
}

.pp-button--small {
  font-size: 16px;
  padding: 8px 16px;
}

/* Nav CTA row buttons — compact, single-row */
.pp-nav__cta-row .pp-button {
  font-size: 13px;
  padding: 6px 14px;
  white-space: nowrap;
  line-height: 1.4;
}

/* Service cards */
.pp-service-cards {
  display: grid;
  grid-template-columns: repeat(var(--pp-sc-cols, 3), 1fr);
  gap: var(--pp-sc-gap, 24px);
}

.pp-service-card {
  position: relative;
  background: var(--pp-bg);
  border-radius: var(--pp-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
  padding: var(--pp-sc-pad, 28px);
  text-align: center;
}

.pp-service-card--badged,
.pp-pricing-card--badged {
  border: 2px solid var(--pp-accent-orange);
}

.pp-service-card__badge,
.pp-pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pp-accent-orange);
  color: var(--pp-bg);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.pp-service-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: var(--pp-radius);
  margin-bottom: 12px;
}

.pp-service-card h3 {
  margin-top: 0;
}

.pp-service-card__subtitle {
  color: var(--pp-grey-mid);
  font-weight: 600;
  margin-top: -8px;
}

/* Testimonials */
.pp-testimonials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.pp-testimonial {
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
  padding: 24px;
  background: var(--pp-bg);
  border-left: 4px solid var(--pp-accent-pink);
  border-radius: var(--pp-radius);
}

.pp-testimonial__photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--pp-radius);
  margin-bottom: 12px;
}

.pp-testimonial__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.pp-testimonial__rating img {
  height: 18px;
  width: auto;
}

.pp-testimonial__stars {
  display: flex;
  gap: 2px;
}

.pp-testimonial__quote {
  font-style: italic;
}

.pp-testimonial__attribution {
  font-weight: 700;
  margin-top: 12px;
}

.pp-testimonial__location {
  color: var(--pp-grey-mid);
  font-weight: 400;
}

.pp-reviews-link {
  text-align: center;
  margin-top: 20px;
}

/* Featured speech-bubble testimonial */
.pp-speech-bubble {
  background: #f7f7f7;
  border-radius: 16px;
  padding: 28px 32px;
  position: relative;
  font-style: italic;
  text-align: center;
}
.pp-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border: 10px solid transparent;
  border-top-color: #f7f7f7;
}
.pp-speech-bubble cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-weight: 700;
  font-size: 0.95em;
}

/* FAQ accordion (native <details>, no JS) */
.pp-faq__item {
  border-bottom: 1px solid var(--pp-grey-light);
  padding: 14px 0;
}

.pp-faq__question {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
}

.pp-faq__number {
  color: var(--pp-accent-orange);
  margin-right: 8px;
}

.pp-faq__answer {
  margin-top: 10px;
  color: var(--pp-text);
}

/* Contact form */
.pp-contact-form {
  background: var(--pp-grey-light);
}

.pp-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

.pp-form-row label,
.pp-form-row--full {
  flex: 1;
  display: block;
  font-weight: 600;
  font-size: 14px;
}

.pp-form-row input,
.pp-form-row textarea,
.pp-form-row--full textarea {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: 1px solid var(--pp-grey-mid);
  border-radius: var(--pp-radius);
  font-family: var(--pp-font);
}

.pp-contact-form__success {
  color: var(--pp-success);
  font-weight: 700;
}

.pp-contact-form__note {
  font-size: 13px;
  color: var(--pp-grey-mid);
}

.pp-why-list dt {
  font-weight: 700;
  font-size: 18px;
  margin-top: 18px;
  color: var(--pp-primary);
}

.pp-why-list dd {
  margin: 4px 0 0;
}

/* Pricing cards */
.pp-pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.pp-pricing-card {
  position: relative;
  background: var(--pp-bg);
  border-radius: var(--pp-radius);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
  padding: 28px;
}

.pp-pricing-card__features-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 16px 0;
}
.pp-pricing-card__features-col {
  flex: 1;
  min-width: 0;
}
.pp-pricing-card__features-heading {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--pp-dark);
}
.pp-pricing-card__image-col {
  flex: 0 0 40%;
  max-width: 40%;
}
.pp-pricing-card__image-col img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--pp-radius);
}
@media (max-width: 600px) {
  .pp-pricing-card__features-row { flex-direction: column; }
  .pp-pricing-card__image-col { flex: none; max-width: 100%; }
}

.pp-pricing-card__price {
  font-size: 28px;
  color: var(--pp-primary);
  font-weight: 700;
}

/* Location grid + blog teaser */
.pp-location-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 24px 0 0;
  padding: 0;
}

.pp-location-grid a {
  font-weight: 700;
}

.pp-map-embed {
  max-width: 900px;
  margin: 30px auto 0;
  border-radius: var(--pp-radius);
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 4px rgba(0, 0, 0, 0.1);
}

/* ── Blog archive (home.php) ─────────────────────────────────────────────── */
.pp-blog-banner {
  background: linear-gradient(135deg, var(--pp-primary) 0%, #5a0d22 100%);
}

.pp-blog-banner::before {
  display: none;
}

.pp-blog-banner .pp-hero-banner__overlay {
  color: #fff;
  text-shadow: none;
}
.pp-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}

@media (max-width: 900px) {
  .pp-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pp-blog-grid { grid-template-columns: 1fr; }
}

.pp-post-card {
  background: #fff;
  border: 1px solid var(--pp-grey-light);
  border-radius: var(--pp-radius);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
}

.pp-post-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.pp-post-card__cat {
  background: var(--pp-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.pp-post-card__date {
  font-size: 13px;
  color: var(--pp-grey-mid);
}

.pp-post-card__title {
  font-size: 18px;
  margin: 0 0 10px;
  line-height: 1.35;
}

.pp-post-card__title a {
  color: var(--pp-text);
}

.pp-post-card__title a:hover {
  color: var(--pp-primary);
}

.pp-post-card__excerpt {
  font-size: 14px;
  color: var(--pp-grey-mid);
  line-height: 1.55;
  flex-grow: 1;
  margin: 0 0 14px;
}

.pp-post-card__more {
  font-size: 14px;
  font-weight: 700;
  color: var(--pp-primary);
}

.pp-pagination {
  text-align: center;
  margin-top: 20px;
}

.pp-pagination .page-numbers {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--pp-grey-light);
  border-radius: 4px;
  margin: 0 3px;
  font-weight: 600;
  font-size: 14px;
}

.pp-pagination .page-numbers.current {
  background: var(--pp-primary);
  color: #fff;
  border-color: var(--pp-primary);
}

/* ── Single blog post (single.php) ──────────────────────────────────────── */
.pp-hero--post {
  background: var(--pp-grey-light);
  padding: 40px 0 30px;
}

.pp-hero--post .pp-hero__title {
  font-size: 36px;
  max-width: 760px;
  line-height: 1.2;
}

.pp-post__meta {
  font-size: 14px;
  color: var(--pp-grey-mid);
  margin-top: 8px;
}

.pp-post__body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}

.pp-post__body h2 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 12px;
  text-align: left;
}

.pp-post__body h3 {
  font-size: 21px;
  margin-top: 30px;
  margin-bottom: 10px;
}

.pp-post__body ul,
.pp-post__body ol {
  padding-left: 24px;
  margin: 12px 0 18px;
}

.pp-post__body li {
  margin-bottom: 6px;
}

.pp-button--outline {
  background: transparent;
  color: var(--pp-primary);
  border: 2px solid var(--pp-primary);
}

/* Blog post card thumbnail */
.pp-post-card__thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--pp-radius) var(--pp-radius) 0 0;
  margin: -24px -24px 16px;
}
.pp-post-card__thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.pp-post-card:hover .pp-post-card__thumb img {
  transform: scale(1.03);
}

/* Single post featured image */
.pp-post__featured-img {
  max-width: 760px;
  margin: 0 auto 36px;
  border-radius: var(--pp-radius);
  overflow: hidden;
}
.pp-post__featured-img img {
  width: 100%;
  height: auto;
  display: block;
}

.pp-button--outline:hover {
  background: var(--pp-primary);
  color: #fff;
}

.pp-map-embed iframe,
#pp-coverage-map {
  display: block;
  width: 100%;
  height: 420px;
  border-radius: var(--pp-radius);
}
.pp-map-pin svg {
  display: block;
}

.pp-blog-teaser {
  list-style: none;
  margin: 0 auto 20px;
  padding: 0;
  max-width: 640px;
}

.pp-blog-teaser li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pp-grey-mid);
}

.pp-blog-teaser__date {
  color: var(--pp-grey-mid);
  white-space: nowrap;
}

/* Booking/credits widget (rendered by the planetpup-booking plugin) */
.pp-credit-balance {
  display: inline-block;
  background: var(--pp-grey-light);
  border-radius: var(--pp-radius);
  padding: 4px 12px;
  font-weight: 700;
}

.pp-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.pp-slot {
  border: 1px solid var(--pp-grey-light);
  border-radius: var(--pp-radius);
  padding: 12px;
  text-align: center;
}

.pp-slot--full {
  opacity: 0.5;
}

/* ── Gutenberg / block editor overrides ──────────────────────────────────── */

/* core/group acting as pp-section: padding + alternating bg */
.wp-block-group.pp-section {
  padding: 50px 0;
}
.wp-block-group.pp-section.pp-section--alt {
  background: var(--pp-grey-light);
}
.wp-block-group.pp-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 28px;
}

/* core/group acting as pp-container: constrain + centre */
.wp-block-group.pp-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  /* override Gutenberg's own constrained-layout inner max-width */
  --wp--style--global--content-size: 1200px;
}

/* core/columns acting as pp-two-col */
.wp-block-columns.pp-two-col {
  gap: 32px;
  align-items: center;
}
@media (max-width: 700px) {
  .wp-block-columns.pp-two-col {
    flex-direction: column;
  }
}

/* core/image styled as pp-photo (legacy — all images now use pp/photo block) */
.wp-block-image.pp-photo img,
figure.wp-block-image.pp-photo img {
  width: 100%;
  display: block;
}

/* core/buttons — match pp-button styling when using fill variant */
.wp-block-buttons .wp-block-button__link {
  font-family: var(--pp-font);
  font-weight: bold;
  font-size: 21px;
  letter-spacing: 0.1em;
  border-radius: var(--pp-radius);
  border: 2px solid var(--pp-text);
  background: var(--pp-primary);
  color: var(--pp-bg);
  padding: 10px 21px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.wp-block-buttons .wp-block-button__link:hover {
  background: var(--pp-primary-hover);
  color: var(--pp-bg);
}

/* core/latest-posts used as blog teaser */
.wp-block-latest-posts.pp-blog-teaser {
  list-style: none;
  max-width: 640px;
  margin: 0 auto 20px;
  padding: 0;
}
.wp-block-latest-posts.pp-blog-teaser li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--pp-grey-mid);
  font-family: var(--pp-font);
}
.wp-block-latest-posts.pp-blog-teaser li a {
  color: var(--pp-text);
  font-weight: 600;
}
.wp-block-latest-posts.pp-blog-teaser .wp-block-latest-posts__post-date {
  color: var(--pp-grey-mid);
  white-space: nowrap;
  font-size: 13px;
}

/* ── Spectra (UAGB) block overrides ─────────────────────────────────────── */

/* Icon List → pp-checklist / pp-problem-list feel */
.wp-block-uagb-icon-list,
.wp-block-uagb-icon-list .uagb-icon-list__label {
  font-family: var(--pp-font);
  font-size: 16px;
}
.wp-block-uagb-icon-list .uagb-icon-list-repeater {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Post Grid → blog-teaser card styling */
.wp-block-uagb-post-grid .uagb-post__title a {
  font-family: var(--pp-font);
  color: var(--pp-text);
  font-weight: 700;
}
.wp-block-uagb-post-grid .uagb-post__title a:hover {
  color: var(--pp-primary);
}
.wp-block-uagb-post-grid .uagb-post-date {
  font-size: 13px;
  color: var(--pp-grey-mid);
}

/* ── Paragraph block named styles ────────────────────────────────────────── */
/* Applied via block Styles panel (sidebar → Styles tab when a paragraph is selected) */
.is-style-pp-intro     { font-size: 1.2em; font-weight: 500; line-height: 1.6; }
.is-style-pp-small     { font-size: 0.85em; color: var(--pp-grey-mid); line-height: 1.5; }
.is-style-pp-callout   { background: var(--pp-grey-light); border-left: 4px solid var(--pp-primary); padding: 16px 20px; border-radius: 0 var(--pp-radius) var(--pp-radius) 0; font-style: italic; }
.is-style-pp-highlight { background: rgba(129,19,48,0.08); border-radius: var(--pp-radius); padding: 12px 16px; font-weight: 500; }

/* ── Block editor canvas: ensure pp-* classes preview correctly ──────────── */
.editor-styles-wrapper .pp-section {
  padding: 50px 0;
}
.editor-styles-wrapper .pp-section--alt {
  background: var(--pp-grey-light);
}
.editor-styles-wrapper .pp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper p,
.editor-styles-wrapper a {
  font-family: var(--pp-font);
}
.editor-styles-wrapper h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 28px;
}
.editor-styles-wrapper a {
  color: var(--pp-primary);
}
/* Group blocks with text-align set via the Typography panel in the editor */
.editor-styles-wrapper .wp-block-group.has-text-align-center { text-align: center; }
.editor-styles-wrapper .wp-block-group.has-text-align-center .wp-block-buttons { justify-content: center; }
.editor-styles-wrapper .wp-block-group.has-text-align-center .wp-block-list { display: inline-block; text-align: left; }

/* ── Contact form: side-by-side layout ──────────────────────────────────── */
.pp-contact-form__inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.pp-contact-form__inner--left {
  flex-direction: row-reverse;
}
.pp-contact-form__form-col {
  flex: 2 1 0;
  min-width: 0;
}
.pp-contact-form__info-col {
  flex: 1 1 180px;
  min-width: 0;
}
.pp-contact-form__info p {
  margin: 0 0 14px;
}
.pp-contact-form__info a {
  color: var(--pp-primary);
  text-decoration: none;
}
.pp-contact-form__info a:hover {
  text-decoration: underline;
}
.pp-contact-form__info--below {
  margin-top: 20px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.pp-contact-form__info--below p {
  margin: 0;
}
@media (max-width: 640px) {
  .pp-contact-form__inner { flex-direction: column !important; }
  .pp-contact-form__info--below { flex-direction: column; gap: 10px; }
}

/* ── Full-width group blocks as section wrappers (v0.2.18) ───────────────── */
/* Used when core/group replaces a custom section block (e.g. map heading/intro) */
.wp-block-group.alignfull {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.wp-block-group.alignfull.pp-section,
.wp-block-group.alignfull.pp-section--alt {
  padding: var(--pp-section-pad, 64px) 0;
}
.wp-block-group.alignfull.pp-section--alt {
  background: var(--pp-grey-light, #E2E2E2);
}
.wp-block-group.alignfull > .wp-block-group__inner-container {
  max-width: var(--pp-container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pp-gutter, 24px);
  padding-right: var(--pp-gutter, 24px);
}

/* ── InnerBlocks card content styles (v0.2.18) ───────────────────────────── */
/* core/* blocks inside pp/feature-item and pp/service-card */
.pp-feature-card .wp-block-image,
.pp-service-card .wp-block-image { width: 100%; margin: 0 0 12px; }
.pp-feature-card .wp-block-image img,
.pp-service-card .wp-block-image img { max-width: 100%; height: auto; }
.pp-service-card .wp-block-image img { height: var(--pp-sc-img-h, 200px); object-fit: var(--pp-sc-img-fit, contain); }
.pp-feature-card .wp-block-heading,
.pp-service-card .wp-block-heading { margin: 0 0 8px; }
.pp-feature-card .wp-block-paragraph,
.pp-service-card .wp-block-paragraph { margin: 0 0 12px; flex: 1; }
.pp-service-card .wp-block-buttons { margin-top: auto; }
.pp-service-card .wp-block-button__link { font-size: var(--pp-btn-font-size, 21px); }

/* ── Group blocks without pp-section — constrain to container width (v0.2.21) ── */
/* Handles bare core/group blocks placed directly in pp-main (no pp-section wrapper) */
.pp-main > .wp-block-group:not(.pp-section):not(.pp-section--alt):not(.alignfull) {
  max-width: var(--pp-container-width, 1200px);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pp-gutter, 24px);
  padding-right: var(--pp-gutter, 24px);
}

/* ── Mobile visibility utility ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .pp-hide-mobile { display: none !important; }
}
