/*
Theme Name:   A Love 4 Paws Child
Theme URI:    https://alove4paws.com
Description:  Child theme for A Love 4 Paws — built on GeneratePress
Author:       A Love 4 Paws
Author URI:   https://alove4paws.com
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  alove4paws-child
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ivory:       #F7F4EF;
  --parchment:   #EDE8DF;
  --charcoal:    #1C1C1A;
  --ink:         #2E2E2B;
  --muted:       #7A7570;
  --accent:      #9B7E52;
  --accent-lt:   #C8A97A;
  --accent-bg:   #F2EBE0;
  --border:      #DDD8CF;
  --white:       #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  --max-w:        1120px;
  --col-gap:      clamp(1.5rem, 4vw, 3rem);
  --section-gap:  clamp(4rem, 8vw, 7rem);

  --h1-size:      clamp(2.6rem, 6vw, 4.8rem);
  --h2-size:      clamp(1.8rem, 3.5vw, 2.8rem);
  --h3-size:      clamp(1.1rem, 2vw, 1.35rem);
  --body-size:    clamp(0.95rem, 1.5vw, 1.05rem);
  --caption-size: 0.8rem;

  --lh-display:  1.1;
  --lh-heading:  1.25;
  --lh-body:     1.75;
}

/* ============================================================
   GENERATEPRESS OVERRIDES
   Strip GP defaults that conflict with our design
   ============================================================ */

/* Remove GP's default body background and font */
body {
  background: var(--ivory) !important;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 300;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* GeneratePress content area — full width on custom templates */


/* ── Strip GP layout wrappers on all custom templates ──
   WordPress appends -php to the filename in the body class
   e.g. page-breed.php → page-template-page-breed-php     */

body.page-template-page-breed-php .site-main,
body.page-template-page-editorial-php .site-main,
body.page-template-page-home-php .site-main {
  padding: 0 !important;
  margin: 0 !important;
}

body.page-template-page-breed-php .content-area,
body.page-template-page-editorial-php .content-area,
body.page-template-page-home-php .content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

body.page-template-page-breed-php .inside-article,
body.page-template-page-editorial-php .inside-article,
body.page-template-page-home-php .inside-article {
  padding: 0 !important;
}

/* Remove GP entry title on custom templates */
body.page-template-page-breed-php .entry-title,
body.page-template-page-editorial-php .entry-title,
body.page-template-page-home-php .entry-title {
  display: none !important;
}

/* Hide GP sidebar on custom templates */
body.page-template-page-breed-php .widget-area,
body.page-template-page-editorial-php .widget-area,
body.page-template-page-home-php .widget-area {
  display: none !important;
}

/* Remove GP site-container and #page max-width constraints */
body.page-template-page-breed-php .site-container,
body.page-template-page-editorial-php .site-container,
body.page-template-page-home-php .site-container {
  max-width: 100% !important;
  padding: 0 !important;
}

body.page-template-page-breed-php #page,
body.page-template-page-editorial-php #page,
body.page-template-page-home-php #page {
  max-width: 100% !important;
}




/* Fix GP's flex content wrapper on custom templates —
   removes the sidebar-expecting flex layout          */
body.page-template-page-breed-php #content,
body.page-template-page-editorial-php #content,
body.page-template-page-home-php #content,
body.page-template-page-breed-php .site-content,
body.page-template-page-editorial-php .site-content,
body.page-template-page-home-php .site-content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}


/* ============================================================
   UTILITY
   ============================================================ */
.l4p-container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.l4p-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.l4p-display-heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--h1-size);
  line-height: var(--lh-display);
  letter-spacing: -0.01em;
  color: var(--charcoal);
}

.l4p-display-heading em {
  font-style: italic;
  color: var(--accent);
}

.l4p-section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--h2-size);
  line-height: var(--lh-heading);
  color: var(--charcoal);
  letter-spacing: -0.015em;
}

.l4p-subsection-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--h3-size);
  line-height: var(--lh-heading);
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.l4p-eyebrow {
  font-family: var(--font-body);
  font-size: var(--caption-size);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.l4p-body-text {
  font-family: var(--font-body);
  font-size: var(--body-size);
  font-weight: 300;
  line-height: var(--lh-body);
  color: var(--muted);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.l4p-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  border: 1px solid currentColor;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.l4p-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.l4p-btn:hover svg { transform: translateX(3px); }

.l4p-btn-primary {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}
.l4p-btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ivory);
}

.l4p-btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.l4p-btn-outline:hover {
  background: var(--charcoal);
  color: var(--ivory);
}

.l4p-btn-ivory {
  background: var(--ivory);
  color: var(--charcoal);
  border-color: var(--ivory);
}
.l4p-btn-ivory:hover {
  background: var(--accent-lt);
  border-color: var(--accent-lt);
  color: var(--charcoal);
}

.l4p-btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.6);
  border-color: rgba(255,255,255,0.25);
}
.l4p-btn-ghost:hover {
  color: var(--ivory);
  border-color: var(--ivory);
}

/* ============================================================
   SITE HEADER
   ============================================================ */
.l4p-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
}

.l4p-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.l4p-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--charcoal);
  line-height: 1;
  text-decoration: none;
}

.l4p-logo span {
  color: var(--accent);
  font-style: italic;
}

.l4p-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.l4p-nav a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  text-decoration: none;
}

.l4p-nav a:hover,
.l4p-nav a[aria-current="page"] { color: var(--charcoal); }

.l4p-header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.l4p-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--charcoal);
}

/* ============================================================
   BREADCRUMB
   ============================================================ */
.l4p-breadcrumb {
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}

/* Yoast breadcrumb output styling */
.l4p-breadcrumb .yoast-breadcrumb,
.l4p-breadcrumb #breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

.l4p-breadcrumb .yoast-breadcrumb a,
.l4p-breadcrumb #breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.l4p-breadcrumb .yoast-breadcrumb a:hover,
.l4p-breadcrumb #breadcrumbs a:hover { color: var(--charcoal); }

.l4p-breadcrumb .yoast-breadcrumb span.breadcrumb_last,
.l4p-breadcrumb #breadcrumbs span:last-child {
  color: var(--charcoal);
  font-weight: 500;
}

/* Yoast uses >> as separator — we override it */
.l4p-breadcrumb .yoast-breadcrumb span.breadcrumb-separator { color: var(--border); }

/* ============================================================
   HERO — BREED PAGES
   ============================================================ */
.l4p-hero {
  min-height: clamp(320px, 45vw, 560px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--col-gap);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
}

.l4p-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 580px;
}

.l4p-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.l4p-hero-meta::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.l4p-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.l4p-hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.l4p-hero-trust svg { color: var(--accent); flex-shrink: 0; }

/* Hero image — locked aspect ratio, zero CLS */
.l4p-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--parchment);
}

.l4p-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.l4p-hero-image::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}

.l4p-hero-image::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 40px; height: 40px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}

/* ============================================================
   HERO — EDITORIAL PAGES (About, Tips etc.)
   ============================================================ */
.l4p-hero-editorial {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: end;
}

.l4p-hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: clamp(1rem, 4vw, 3rem);
  border-left: 1px solid var(--border);
}

.l4p-hero-chapter {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 1;
  color: var(--parchment);
  letter-spacing: -0.04em;
  user-select: none;
}

.l4p-hero-summary {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 34ch;
}

.l4p-hero-summary strong {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.l4p-stats-bar {
  background: var(--charcoal);
  padding-block: 1.5rem;
}

.l4p-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.l4p-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
  padding-inline: 0.5rem;
}

.l4p-stat-item + .l4p-stat-item {
  border-left: 1px solid rgba(255,255,255,0.1);
}

.l4p-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 300;
  color: var(--accent-lt);
  line-height: 1;
}

.l4p-stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* ============================================================
   SECTION WRAPPERS
   ============================================================ */
.l4p-section { padding-block: var(--section-gap); }
.l4p-section-alt { background: var(--parchment); padding-block: var(--section-gap); }

.l4p-section-header { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.l4p-section-header .l4p-eyebrow { margin-bottom: 0.75rem; }

.l4p-section-divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-top: 1.25rem;
}

/* ============================================================
   TWO-COLUMN LAYOUT
   ============================================================ */
.l4p-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--col-gap);
  align-items: start;
}

.l4p-two-col.wide-left  { grid-template-columns: 3fr 2fr; }
.l4p-two-col.wide-right { grid-template-columns: 2fr 3fr; }
.l4p-two-col.reversed   { direction: rtl; }
.l4p-two-col.reversed > * { direction: ltr; }

/* ============================================================
   CONTENT IMAGES — locked ratios, zero CLS
   ============================================================ */
.l4p-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--parchment);
}

.l4p-image.ratio-4-3  { aspect-ratio: 4 / 3; }
.l4p-image.ratio-3-4  { aspect-ratio: 3 / 4; }
.l4p-image.ratio-16-9 { aspect-ratio: 16 / 9; }
.l4p-image.ratio-1-1  { aspect-ratio: 1 / 1; }

.l4p-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l4p-image.decorated::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}

.l4p-image.decorated::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 36px; height: 36px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}

/* ============================================================
   PROSE / RICH TEXT
   ============================================================ */
.l4p-prose {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.l4p-prose p { color: var(--muted); line-height: var(--lh-body); }
.l4p-prose strong { color: var(--ink); font-weight: 500; }

.l4p-prose a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-lt);
  transition: border-color 0.2s;
}

.l4p-prose a:hover { border-color: var(--accent); }

.l4p-pull-quote {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
  margin-block: 0.5rem;
}

.l4p-pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal) !important;
  line-height: 1.5;
}

/* ============================================================
   TRAITS GRID
   ============================================================ */
.l4p-traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: clamp(2rem, 4vw, 3rem);
}

.l4p-trait-card {
  background: var(--ivory);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.2s;
}

.l4p-trait-card:hover { background: var(--accent-bg); }

.l4p-trait-icon {
  width: 36px; height: 36px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.l4p-trait-icon svg { width: 16px; height: 16px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.l4p-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
}

.l4p-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.l4p-table th {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 1rem 1.25rem;
  text-align: left;
  white-space: nowrap;
}

.l4p-table th:first-child {
  background: var(--ink);
  color: var(--accent-lt);
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.l4p-table th.is-active { background: var(--accent); color: var(--white); }

.l4p-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}

.l4p-table td:first-child {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--parchment);
  white-space: nowrap;
}

.l4p-table td.is-active { background: var(--accent-bg); font-weight: 500; color: var(--charcoal); }
.l4p-table tr:last-child td { border-bottom: none; }
.l4p-table tr:hover td:not(:first-child) { background: #F5F1EA; }
.l4p-table tr:hover td.is-active { background: #EDE3D2; }

/* ============================================================
   STANDARDS / CHECKLIST GRID
   ============================================================ */
.l4p-standards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.l4p-standard-item {
  background: var(--ivory);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: background 0.2s;
}

.l4p-standard-item:hover { background: var(--accent-bg); }

.l4p-standard-check { flex-shrink: 0; margin-top: 0.15rem; color: var(--accent); }
.l4p-standard-check svg { width: 16px; height: 16px; }

.l4p-standard-text strong {
  display: block;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.l4p-standard-text span { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   STEPS LIST
   ============================================================ */
.l4p-steps {
  display: flex;
  flex-direction: column;
  counter-reset: steps;
}

.l4p-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
  counter-increment: steps;
}

.l4p-step:first-child { border-top: 1px solid var(--border); }

.l4p-step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.6;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
}

.l4p-step-num::before { content: "0" counter(steps); }

.l4p-step-body { display: flex; flex-direction: column; gap: 0.4rem; }

.l4p-step-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}

.l4p-step-body p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ============================================================
   CHECKLIST
   ============================================================ */
.l4p-checklist {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.l4p-checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.l4p-checklist-item:last-child { border-bottom: none; }
.l4p-checklist-item:hover { background: var(--accent-bg); }

.l4p-check-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  color: var(--accent);
}

.l4p-check-icon svg { width: 9px; height: 9px; }

.l4p-checklist-text strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
}

.l4p-checklist-text span { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   CALLOUT
   ============================================================ */
.l4p-callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.l4p-callout-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.l4p-callout p { font-size: 0.9rem; color: var(--ink); line-height: 1.7; }

/* ============================================================
   BREED CARDS (related pages)
   ============================================================ */
.l4p-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.l4p-card {
  background: var(--ivory);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
  text-decoration: none;
}

.l4p-card:hover { background: var(--accent-bg); }

.l4p-card-image {
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  background: var(--parchment);
  position: relative;
  flex-shrink: 0;
}

.l4p-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.l4p-card:hover .l4p-card-image img { transform: scale(1.03); }

.l4p-card-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.l4p-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.l4p-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
}

.l4p-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; flex: 1; }

.l4p-card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
}

.l4p-card-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.l4p-card:hover .l4p-card-link svg { transform: translateX(3px); }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.l4p-faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.l4p-faq-item { border-bottom: 1px solid var(--border); }

.l4p-faq-trigger {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
  transition: color 0.2s;
}

.l4p-faq-trigger:hover { color: var(--accent); }

.l4p-faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.3s;
  color: var(--muted);
}

.l4p-faq-icon svg { width: 10px; height: 10px; }

.l4p-faq-item.is-open .l4p-faq-icon {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
  transform: rotate(45deg);
}

.l4p-faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.l4p-faq-item.is-open .l4p-faq-body { grid-template-rows: 1fr; }
.l4p-faq-body-inner { overflow: hidden; }

.l4p-faq-body-inner p {
  padding-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 70ch;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.l4p-cta { background: var(--charcoal); padding-block: clamp(3.5rem, 6vw, 5.5rem); }

.l4p-cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--col-gap);
}

.l4p-cta-text .l4p-eyebrow { color: var(--accent-lt); }
.l4p-cta-text .l4p-section-heading { color: var(--ivory); margin-top: 0.75rem; }
.l4p-cta-text .l4p-body-text { color: rgba(255,255,255,0.5); margin-top: 0.75rem; }

.l4p-cta-actions { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; flex-shrink: 0; }

/* ============================================================
   SITE FOOTER
   ============================================================ */
.l4p-footer { background: var(--ink); padding-block: clamp(3rem, 5vw, 4.5rem); }

.l4p-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--col-gap);
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.l4p-footer-brand .l4p-logo { color: var(--ivory); font-size: 1.15rem; margin-bottom: 1rem; display: block; }
.l4p-footer-brand p { font-size: 0.82rem; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 26ch; }

.l4p-footer-col-title {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}

.l4p-footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; margin: 0; padding: 0; }
.l4p-footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); transition: color 0.2s; line-height: 1.4; text-decoration: none; }
.l4p-footer-links a:hover { color: var(--accent-lt); }

.l4p-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.l4p-footer-legal { font-size: 0.75rem; color: rgba(255,255,255,0.25); }
.l4p-footer-legal a { color: rgba(255,255,255,0.35); transition: color 0.2s; text-decoration: none; }
.l4p-footer-legal a:hover { color: rgba(255,255,255,0.6); }

/* ============================================================
   STANDARD PAGE (page.php)
   ============================================================ */

/* Strip GP structural wrappers */
.page-template-default .site-main,
.page-template-default .content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.page-template-default .inside-article { padding: 0 !important; }
.page-template-default .entry-title    { display: none !important; }
.page-template-default .widget-area    { display: none !important; }

/* Page hero */
.l4p-page-hero {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  background: var(--ivory);
}

.l4p-page-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.l4p-page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: var(--lh-heading);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

/* Breadcrumb inside page hero */
.l4p-page-breadcrumb .yoast-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--muted);
}

.l4p-page-breadcrumb .yoast-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.l4p-page-breadcrumb .yoast-breadcrumb a:hover { color: var(--charcoal); }
.l4p-page-breadcrumb .breadcrumb_last { color: var(--charcoal); font-weight: 500; }

/* Content area */
.l4p-page-content { padding-block: var(--section-gap); }
.l4p-page-content-inner { max-width: 72ch; }

.l4p-page-content-inner h2 {
  font-family: var(--font-display);
  font-size: var(--h2-size);
  font-weight: 400;
  color: var(--charcoal);
  line-height: var(--lh-heading);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.l4p-page-content-inner h3 {
  font-family: var(--font-display);
  font-size: var(--h3-size);
  font-weight: 500;
  color: var(--charcoal);
  line-height: var(--lh-heading);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.l4p-page-content-inner p {
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: 1.1rem;
}

.l4p-page-content-inner a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-lt);
  transition: border-color 0.2s;
  text-decoration: none;
}

.l4p-page-content-inner a:hover { border-bottom-color: var(--accent); }
.l4p-page-content-inner strong { color: var(--ink); font-weight: 500; }

.l4p-page-content-inner ul,
.l4p-page-content-inner ol {
  color: var(--muted);
  padding-left: 1.5rem;
  line-height: var(--lh-body);
  margin-bottom: 1.1rem;
}

.l4p-page-content-inner li { margin-bottom: 0.4rem; }

.l4p-page-content-inner hr {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2.5rem;
}

/* Contact form inputs — WPForms + CF7 */
.l4p-page-content-inner .wpforms-form input[type="text"],
.l4p-page-content-inner .wpforms-form input[type="email"],
.l4p-page-content-inner .wpforms-form input[type="tel"],
.l4p-page-content-inner .wpforms-form textarea,
.l4p-page-content-inner .wpcf7-form input[type="text"],
.l4p-page-content-inner .wpcf7-form input[type="email"],
.l4p-page-content-inner .wpcf7-form input[type="tel"],
.l4p-page-content-inner .wpcf7-form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--body-size);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0.75rem 1rem;
  border-radius: 0;
  transition: border-color 0.2s;
  appearance: none;
}

.l4p-page-content-inner .wpforms-form input:focus,
.l4p-page-content-inner .wpforms-form textarea:focus,
.l4p-page-content-inner .wpcf7-form input:focus,
.l4p-page-content-inner .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.l4p-page-content-inner .wpforms-submit,
.l4p-page-content-inner .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.8rem;
  background: var(--charcoal);
  color: var(--ivory);
  border: 1px solid var(--charcoal);
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
  border-radius: 0;
}

.l4p-page-content-inner .wpforms-submit:hover,
.l4p-page-content-inner .wpcf7-submit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   BLOCK EDITOR CONTENT AREA
   Styles for Gutenberg blocks rendered inside our templates
   ============================================================ */
.l4p-entry-content {
  padding-block: var(--section-gap);
}

.l4p-entry-content .wp-block-heading {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--charcoal);
  letter-spacing: -0.01em;
}

.l4p-entry-content h2.wp-block-heading {
  font-size: var(--h2-size);
  line-height: var(--lh-heading);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.l4p-entry-content h3.wp-block-heading {
  font-size: var(--h3-size);
  font-weight: 500;
  line-height: var(--lh-heading);
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.l4p-entry-content p {
  color: var(--muted);
  line-height: var(--lh-body);
  margin-bottom: 1rem;
  max-width: 72ch;
}

.l4p-entry-content a {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-lt);
  transition: border-color 0.2s;
}

.l4p-entry-content a:hover { border-bottom-color: var(--accent); }

.l4p-entry-content ul,
.l4p-entry-content ol {
  color: var(--muted);
  padding-left: 1.5rem;
  line-height: var(--lh-body);
  margin-bottom: 1rem;
}

.l4p-entry-content li { margin-bottom: 0.4rem; }

.l4p-entry-content strong { color: var(--ink); font-weight: 500; }

.l4p-entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin-block: 2.5rem;
}

.l4p-entry-content .wp-block-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.l4p-entry-content .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.l4p-entry-content .wp-block-table th {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: var(--font-display);
  padding: 0.9rem 1.25rem;
  text-align: left;
  font-weight: 500;
}

.l4p-entry-content .wp-block-table td {
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .l4p-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .l4p-hero-image {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .l4p-hero-editorial { grid-template-columns: 1fr; }

  .l4p-hero-aside {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 1.5rem;
  }

  .l4p-two-col,
  .l4p-two-col.wide-left,
  .l4p-two-col.wide-right,
  .l4p-two-col.reversed {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .l4p-traits-grid { grid-template-columns: repeat(2, 1fr); }
  .l4p-standards-grid { grid-template-columns: 1fr; }
  .l4p-card-grid { grid-template-columns: repeat(2, 1fr); }
  .l4p-cta-inner { grid-template-columns: 1fr; }
  .l4p-footer-grid { grid-template-columns: 1fr 1fr; }

  .l4p-stats-inner { grid-template-columns: repeat(2, 1fr); }
  .l4p-stat-item:nth-child(3) { border-left: none; }
}

@media (max-width: 600px) {
  .l4p-nav { display: none; }
  .l4p-nav-toggle { display: flex; }

  .l4p-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--ivory);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
    overflow-y: auto;
  }

  .l4p-nav.is-open a { font-size: 1rem; }
  .l4p-header-cta .l4p-btn { display: none; }

  .l4p-traits-grid { grid-template-columns: 1fr; }
  .l4p-card-grid { grid-template-columns: 1fr; }
  .l4p-footer-grid { grid-template-columns: 1fr; }

  .l4p-hero-actions { flex-direction: column; align-items: flex-start; }
  .l4p-hero-actions .l4p-btn { width: 100%; justify-content: center; }
  .l4p-cta-actions .l4p-btn { width: 100%; justify-content: center; }
  .l4p-step { grid-template-columns: 36px 1fr; gap: 1rem; }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes l4pFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.l4p-hero-content > * {
  animation: l4pFadeUp 0.6s ease both;
}

.l4p-hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.l4p-hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.l4p-hero-content > *:nth-child(3) { animation-delay: 0.19s; }
.l4p-hero-content > *:nth-child(4) { animation-delay: 0.26s; }
.l4p-hero-content > *:nth-child(5) { animation-delay: 0.33s; }

.l4p-hero-aside {
  animation: l4pFadeUp 0.6s ease both;
  animation-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   HOMEPAGE (page-home.php)
   ============================================================ */

/* Strip GP wrappers on homepage */
.home .site-main,
.home .content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.home .inside-article,
.home .entry-header,
.home .entry-title { display: none !important; }
.home .widget-area  { display: none !important; }

/* ── HOMEPAGE HERO ── */
.l4p-home-hero {
  min-height: clamp(380px, 50vw, 620px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--col-gap);
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--border);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.l4p-home-hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 580px;
}

/* Hero image — locked 4:3 ratio */
.l4p-home-hero-image {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  background: var(--parchment);
}

.l4p-home-hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l4p-home-hero-image::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 40px; height: 40px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}

.l4p-home-hero-image::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 40px; height: 40px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}

/* ── INTRO PANEL ── */
.l4p-intro-panel {

text-align: center;
    max-width: 680px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-inline: auto;
    gap: 1.25rem;
}

/* ── CONTENT IMAGE (homepage alias classes) ── */
.l4p-content-image {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--parchment);
}

.l4p-ratio-4-3  { aspect-ratio: 4 / 3; }
.l4p-ratio-3-4  { aspect-ratio: 3 / 4; }
.l4p-ratio-16-9 { aspect-ratio: 16 / 9; }
.l4p-ratio-1-1  { aspect-ratio: 1 / 1; }

.l4p-content-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.l4p-decorated::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 36px; height: 36px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  z-index: 2;
}

.l4p-decorated::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 36px; height: 36px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}

/* ── TWO-COL REVERSED ── */
.l4p-two-col.l4p-reversed { direction: rtl; }
.l4p-two-col.l4p-reversed > * { direction: ltr; }

/* ── STEPS LIST (homepage variant) ── */
.l4p-steps-list {
  display: flex;
  flex-direction: column;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--border);
}

.l4p-step-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--border);
}

.l4p-step-number {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.6;
  letter-spacing: 0.04em;
  padding-top: 0.1rem;
  flex-shrink: 0;
}

.l4p-step-content { display: flex; flex-direction: column; gap: 0.4rem; }
.l4p-step-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.3;
}
.l4p-step-content p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; }

/* ── BREED CARDS (homepage variant — uses l4p-page-card classes) ── */
.l4p-card-grid .l4p-page-card {
  background: var(--ivory);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
  text-decoration: none;
}

.l4p-card-grid .l4p-page-card:hover { background: var(--accent-bg); }

.l4p-page-card-image {
  aspect-ratio: 3 / 2;
  width: 100%;
  overflow: hidden;
  background: var(--parchment);
  position: relative;
  flex-shrink: 0;
}

.l4p-page-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.l4p-card-grid .l4p-page-card:hover .l4p-page-card-image img { transform: scale(1.03); }

.l4p-page-card-body { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.l4p-page-card-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.l4p-page-card-title {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
}

.l4p-page-card-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.65; flex: 1; }

.l4p-page-card-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: auto;
}

.l4p-page-card-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.l4p-card-grid .l4p-page-card:hover .l4p-page-card-link svg { transform: translateX(3px); }

/* ── TESTIMONIALS ── */
.l4p-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.l4p-testimonial-item {
  background: var(--ivory);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
}

.l4p-testimonial-item:hover { background: var(--accent-bg); }

.l4p-testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--accent);
}

.l4p-testimonial-text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 300;
  font-style: italic;
  color: var(--charcoal);
  line-height: 1.65;
  flex: 1;
}

.l4p-testimonial-author {
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ── HOMEPAGE RESPONSIVE ── */
@media (max-width: 900px) {
  .l4p-home-hero {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .l4p-home-hero-image {
    aspect-ratio: 16 / 9;
    order: -1;
  }

  .l4p-two-col.l4p-reversed { direction: ltr; }

  .l4p-testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .l4p-step-item { grid-template-columns: 36px 1fr; gap: 1rem; }
  .l4p-testimonials-grid { grid-template-columns: 1fr; }
}
