/* ==========================================================================
   COMPONENTS
   Reusable site-wide component styles. Requires tokens.css.
   Link on every page after tokens.css and before any page stylesheet.
   ========================================================================== */


/* ==========================================================================
   BASE
   ========================================================================== */

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: 60px;
  font-family: var(--p4p-font-body);
  background: #fff;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.navbar-brand {
  font-family: var(--p4p-font-head);
}


/* ==========================================================================
   SECTION CONTEXT
   ========================================================================== */

.bg1 { --section-bg: var(--pacific-blue); }
.bg2 { --section-bg: var(--royal-violet); }
.bg3 { --section-bg: var(--p4p-panel-bg); background-color: var(--p4p-panel-bg); }

/* Deep-tone emphasis sections — dark background, white text */
.bg-dark-teal {
  background-color: var(--pacific-blue-deep);
}
.bg-dark-teal,
.bg-dark-teal h1, .bg-dark-teal h2, .bg-dark-teal h3,
.bg-dark-teal h4, .bg-dark-teal h5, .bg-dark-teal h6,
.bg-dark-teal p, .bg-dark-teal li, .bg-dark-teal span,
.bg-dark-teal label, .bg-dark-teal small {
  color: #fff;
}
.bg-dark-teal a           { color: #fff; }
.bg-dark-teal a:hover     { color: rgba(255,255,255,0.75); }

.bg-dark-violet {
  background-color: var(--royal-violet-deep);
}
.bg-dark-violet,
.bg-dark-violet h1, .bg-dark-violet h2, .bg-dark-violet h3,
.bg-dark-violet h4, .bg-dark-violet h5, .bg-dark-violet h6,
.bg-dark-violet p, .bg-dark-violet li, .bg-dark-violet span,
.bg-dark-violet label, .bg-dark-violet small {
  color: #fff;
}
.bg-dark-violet a         { color: #fff; }
.bg-dark-violet a:hover   { color: rgba(255,255,255,0.75); }


/* ==========================================================================
   PANELS & CARDS
   ========================================================================== */

.p4p-panel {
  background-color: #fff;
  border-radius: var(--radius-panel);
  border: var(--border-panel);
  padding: var(--space-6);
}
@media (min-width: 768px) {
  .p4p-panel { padding: var(--space-12); }
}

.p4p-panel-sm {
  background-color: #fff;
  border-radius: var(--radius-panel);
  border: var(--border-panel);
  padding: var(--space-6);
}

.p4p-option-card {
  border: var(--border-card);
  border-radius: var(--radius-card);
  padding: 1rem;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary         { background-color: var(--p4p-primary); border-color: var(--p4p-primary); color: #fff; }
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited { background-color: var(--royal-violet-medium); border-color: var(--royal-violet-medium); color: #fff; }

.btn-outline-primary,
.btn-outline-primary:visited,
.btn-outline-primary:active                { color: #fff; border-color: var(--pacific-blue); background-color: var(--pacific-blue); }
.btn-outline-primary:hover,
.btn-outline-primary:visited:hover         { color: #fff; background-color: var(--pacific-blue-medium); border-color: var(--pacific-blue-medium); }

.btn-blade         { color: var(--p4p-primary); border-color: var(--p4p-primary); background-color: transparent; }
.btn-blade:hover,
.btn-blade:active  { color: #fff; background-color: var(--p4p-primary); border-color: var(--p4p-primary); }
.btn-blade:visited { color: var(--p4p-primary); }

/* Teal outline — transparent bg, teal border/text, fills teal on hover */
.btn-teal          { color: var(--pacific-blue); border-color: var(--pacific-blue); background-color: transparent; }
.btn-teal:hover,
.btn-teal:active   { color: var(--pacific-blue); background-color: rgba(0,139,167,0.10); border-color: var(--pacific-blue); }
.btn-teal:visited  { color: var(--pacific-blue); }

.btn-xl {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}


/* ==========================================================================
   LINKS
   ========================================================================== */

a         { color: var(--p4p-primary); text-decoration-color: rgba(0,0,0,0.2); }
a:hover   { color: var(--royal-violet-medium); }
a:visited { color: var(--p4p-primary); }
.nav-link:visited,
.navbar-brand:visited { color: inherit; }
a:active  { color: var(--royal-violet-medium); }
a:focus   { color: var(--p4p-primary); outline-color: var(--p4p-primary); }


/* ==========================================================================
   HERO SECTION — full-bleed photo with dark overlay
   ========================================================================== */

.p4p-hero {
  min-height: 80vh;
  position: relative;
  background: url('../img/bg-nofade.jpg') center 20% / cover no-repeat;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}

.p4p-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
}

.p4p-hero-body {
  position: relative;
  z-index: 1;
}

/* Bootstrap .lead uses font-weight:300 which washes out <strong> */
.lead strong { font-weight: 700; }


/* ==========================================================================
   INTRO (dog name easter egg + problem columns)
   ========================================================================== */

.p4p-dogname {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.p4p-dogname:hover {
  color: var(--p4p-primary);
}

.p4p-problem-cols {
  columns: 1;
}
@media (min-width: 768px) {
  .p4p-problem-cols { columns: 2; column-gap: 2rem; }
}
@media (min-width: 992px) {
  .p4p-problem-cols { columns: 3; column-gap: 2rem; }
}
.p4p-problem-cols li {
  break-inside: avoid;
}


/* ==========================================================================
   LISTS (paw bullet)
   ========================================================================== */

.p4p-list {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
}
.p4p-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.45rem;
}
.p4p-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='65' rx='22' ry='18' fill='%23212529'/%3E%3Cellipse cx='22' cy='42' rx='10' ry='13' fill='%23212529'/%3E%3Cellipse cx='40' cy='32' rx='10' ry='13' fill='%23212529'/%3E%3Cellipse cx='60' cy='32' rx='10' ry='13' fill='%23212529'/%3E%3Cellipse cx='78' cy='42' rx='10' ry='13' fill='%23212529'/%3E%3C/svg%3E") no-repeat center / contain;
}
.bg-dark-teal .p4p-list li::before,
.bg-dark-violet .p4p-list li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='65' rx='22' ry='18' fill='%23ffffff'/%3E%3Cellipse cx='22' cy='42' rx='10' ry='13' fill='%23ffffff'/%3E%3Cellipse cx='40' cy='32' rx='10' ry='13' fill='%23ffffff'/%3E%3Cellipse cx='60' cy='32' rx='10' ry='13' fill='%23ffffff'/%3E%3Cellipse cx='78' cy='42' rx='10' ry='13' fill='%23ffffff'/%3E%3C/svg%3E");
}


/* ==========================================================================
   SERVICE CARDS
   ========================================================================== */

.p4p-service-card {
  border-radius: var(--radius-panel);
  overflow: hidden;
  border: var(--border-card);
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.p4p-service-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.p4p-service-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.p4p-service-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pacific-blue);
  margin-bottom: 0.4rem;
}

.p4p-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--p4p-primary);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 1rem;
}
.p4p-service-link:hover {
  color: var(--royal-violet-medium);
  text-decoration: underline;
}

/* Badge for "Most Popular" / "Established Clients" on service cards */
.p4p-badge {
  font-size: 0.75rem;
  background-color: var(--pacific-blue);
  color: #fff;
  padding: 0.45em 0.85em;
  border: 1px solid rgba(255,255,255,0.35);
}

.p4p-service-badge { cursor: pointer; }


/* ==========================================================================
   FEATURE ICONS / TILES
   ========================================================================== */

.p4p-ccc-icon { font-size: 1.1rem !important; }

.p4p-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.p4p-feature-tile-label {
  font-size: 1rem;
  font-weight: 700;
}
@media (min-width: 768px) {
  .p4p-feature-icon { font-size: 3rem; }
  .p4p-feature-tile-label { font-size: 1.1rem; }
}


/* ==========================================================================
   COLLAPSIBLE BLADES (FAQ + Who We Are)
   ========================================================================== */

.p4p-blade-btn {
  color: var(--p4p-text-dark);
  align-items: flex-start !important;
}
.p4p-blade-btn:hover,
.p4p-blade-btn:focus {
  color: var(--p4p-text-dark);
}
.p4p-blade-chevron {
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--p4p-primary);
  font-size: 1.1rem;
}
[aria-expanded="true"] .p4p-blade-chevron {
  transform: rotate(180deg);
}

/* FAQ blade: borderless, divider-only style */
.p4p-faq-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}
.p4p-faq-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}
.p4p-faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}
.p4p-faq-body {
  padding-bottom: 1rem;
}

/* Who We Are blades: simple border style */
.p4p-blade-title {
  min-height: 3.5rem;
}
.p4p-blade-title .badge {
  margin-top: 0.3rem;
  display: inline-block;
  width: auto;
  line-height: 1;
  padding-top: 0.4em;
  padding-bottom: 0.4em;
}
@media (min-width: 768px) {
  .p4p-blade-title {
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  .p4p-blade-title .badge {
    margin-top: 0;
    line-height: 1.4;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    vertical-align: middle;
  }
}


/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.p4p-quote {
  font-size: 1rem;
  border-left: 3px solid color-mix(in srgb, var(--p4p-primary) 35%, white);
  padding-left: 1rem;
  margin: 0;
}


/* ==========================================================================
   NAVBAR
   ========================================================================== */

.p4p-navbar .navbar-brand { font-weight: 800; letter-spacing: -0.02em; }
.p4p-navbar .brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.10);
}

/* Gradient bottom border: brand purple → brand teal */
.p4p-navbar {
  box-shadow: none !important;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(to right, #7716CD, #399FB9) 1;
}

/* ==========================================================================
   MOBILE OFFCANVAS NAV
   ========================================================================== */

.p4p-offcanvas-nav {
  width: 100vw;      /* xs: full width */
  max-width: 100vw;
}
@media (min-width: 576px) {
  .p4p-offcanvas-nav {
    width: 75vw;     /* sm: 75% */
    max-width: 75vw;
  }
}
@media (min-width: 768px) {
  .p4p-offcanvas-nav {
    width: 50vw;     /* md+: 50% */
    max-width: 50vw;
  }
}

/* Primary nav items — larger, bold */
.p4p-offcanvas-primary {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bs-body-color);
  text-decoration: none;
  padding: 0.45rem 0;
  line-height: 1.3;
}
.p4p-offcanvas-primary:hover,
.p4p-offcanvas-primary:focus {
  color: var(--p4p-primary);
}

/* Service modal links — smaller, muted, indented, no separators */
.p4p-offcanvas-services {
  padding-left: 0.6rem;
  margin-bottom: 0.15rem;
}
.p4p-offcanvas-service {
  display: block;
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 0.2rem 0;
  font-size: 0.875rem;
  color: var(--bs-secondary-color);
  cursor: pointer;
  line-height: 1.4;
}
.p4p-offcanvas-service:hover,
.p4p-offcanvas-service:focus {
  color: var(--p4p-primary);
  outline: none;
}

/* Brand name in offcanvas header */
.p4p-offcanvas-brand-name {
  font-size: 0.95rem;
}

/* Book a Consult CTA — 3× the btn-xl height (btn-xl padding-block: 0.75rem → 3× = 2.25rem), 1.5× font */
.p4p-offcanvas-cta {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
  font-size: 1.5rem;
}

/* Icon wrapper — fixed width so text column aligns across all three social links */
.p4p-offcanvas-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25em;
  flex-shrink: 0;
}
.p4p-offcanvas-icon-img {
  height: 1em;
  width: auto;
  display: block;
}

/* md only: larger fonts and brand name bump */
@media (min-width: 768px) {
  .p4p-offcanvas-primary    { font-size: 1.75rem; }
  .p4p-offcanvas-service    { font-size: 1.60rem; }
  .p4p-offcanvas-brand-name { font-size: 1.1rem; }
}


/* ==========================================================================
   TIMELINE
   ========================================================================== */

.p4p-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.p4p-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: color-mix(in srgb, var(--p4p-primary) 25%, white);
  border-radius: 2px;
}
.p4p-timeline-item {
  position: relative;
  padding-left: 52px;
  margin-bottom: 1.75rem;
}
.p4p-timeline-item:last-child { margin-bottom: 0; }
.p4p-timeline-dot {
  position: absolute;
  left: 8px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--p4p-primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--p4p-primary);
}
.p4p-timeline-year {
  font-weight: 700;
  color: var(--p4p-text-dark);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}


/* ==========================================================================
   CONTACT CARDS
   ========================================================================== */

.p4p-contact-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  border-radius: var(--radius-panel);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
}
.p4p-contact-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}
/* Icon column in contact cards */
.p4p-contact-card-icon {
  flex-shrink: 0;
  font-size: 2rem;
  width: 56px;
  text-align: center;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.p4p-footer { border-top: 1px solid rgba(255,255,255,0.15); }
.p4p-footer-brand h4 { font-weight: 800; letter-spacing: -0.02em; }
.p4p-footer-brand .brand-lead { color: rgba(255,255,255,0.75); line-height: 1.55; }
.p4p-footer hr { border-color: rgba(255,255,255,0.15); }
.p4p-footer .text-muted { color: rgba(255,255,255,0.55) !important; }
.footer-logo { max-width: 120px; width: 100%; height: auto; }


/* ==========================================================================
   TABLES
   ========================================================================== */

.table thead th {
  background: color-mix(in srgb, var(--p4p-primary) 12%, white);
}
