/*===============================================================
###################### TRAINING PAGE ############################
Merged training + day school page
================================================================*/

/*--------------------------------------------------------------
# Anchor offset (sticky header + sub-navigation)
--------------------------------------------------------------*/
#main section[id] {
  scroll-margin-top: calc(var(--header-height) + 4.6rem);
}

@media (max-width: 640px) {
  #main section[id] {
    scroll-margin-top: calc(5rem + 4.2rem);
  }
}

/*--------------------------------------------------------------
# Intro section
--------------------------------------------------------------*/
.intro-lead {
  max-width: 46rem;
  margin: .75rem auto 0;
  color: #6c757d;
  font-size: 1.05rem;
}

/*--------------------------------------------------------------
# Section group headers (Training for You / for Your Dog)
--------------------------------------------------------------*/
.training-group {
  margin-bottom: 0;
}

/* Each group is one tinted band that holds its header plus its own service
   sections: the tint opens at the group top and dissolves back to white at
   the group's end, so the group reads differently from a plain section. */
.training-group-panel {
  border-top: 1px solid rgba(47, 58, 52, .07);
  background: linear-gradient(180deg, #efeaf3 0%, #f6f4f7 12%, #f7f5f8 88%, #fff 100%);
  animation: training-panel-arrive .8s cubic-bezier(.2, .7, .25, 1) both;
}

/* "Training for Your Dog" band — tinted with the site teal (--color-accent) */
.training-group-panel--teal {
  background: linear-gradient(180deg, #e6f2f2 0%, #f3f8f8 12%, #f5f9f9 88%, #fff 100%);
  animation-delay: .16s;
}

@keyframes training-panel-arrive {
  from {
    opacity: .72;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Only the group header itself is restyled; the service sections inside the
   band keep the site's normal centred section headings. */
.training-group-panel > .training-group .container {
  padding-top: 3.25rem;
  padding-bottom: 0;
}

.training-group-panel > .training-group .section-header {
  padding-bottom: 0;
  text-align: left;
}

.training-group-panel > .training-group .small-heading {
  margin: 0 0 .65rem;
  color: #796695;
  font-size: .8rem;
  line-height: 1.4;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 650;
}

.training-group-panel > .training-group .big-heading {
  margin: 0;
  color: #2f3a34;
  font-size: 3.4rem;
  font-weight: 450;
  line-height: 1.08;
  letter-spacing: -1px;
}

/* Service headings inside the bands sit a step below the group heading */
.training-group-panel > .service-page .big-heading {
  font-size: 2.7rem;
}

.training-group-panel > .training-group .big-heading span {
  color: #796695;
}

.training-group-panel > .training-group .intro-lead {
  margin: .75rem 0 0;
  color: #59635d;
  line-height: 1.55;
}

.training-group-panel--teal > .training-group .small-heading,
.training-group-panel--teal > .training-group .big-heading span {
  color: #2c7d7f;
}

/* One accent rule under each group heading, running about two-thirds across */
.training-chapter-divider {
  width: 66.666%;
  height: 3px;
  margin: 1.15rem 0 1.35rem;
  border: 0;
  border-radius: 3px;
  background: #796695;
  opacity: .65;
}

.training-group-panel--teal .training-chapter-divider {
  background: var(--color-accent);
}

@media (max-width: 768px) {
  .training-group-panel > .training-group .container {
    padding-top: 2rem;
  }

  .training-group-panel > .training-group .big-heading {
    font-size: 2.5rem;
  }

  .training-group-panel > .service-page .big-heading {
    font-size: 2.1rem;
  }
}

/*--------------------------------------------------------------
# Page sub-navigation
--------------------------------------------------------------*/
.training-subnav {
  position: sticky;
  top: var(--header-height);
  z-index: 990;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .training-subnav {
    top: 5rem;
  }
}

.training-subnav .container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: .4rem 1rem;
}

.training-subnav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .7rem 1rem;
  border: 0;
  border-radius: 50px;
  background: #77639114;
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1rem;
}

.training-subnav-toggle i {
  transition: transform 0.3s;
}

.training-subnav.open .training-subnav-toggle i {
  transform: rotate(180deg);
}

.training-subnav-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.training-subnav-list > li {
  position: relative;
}

.training-subnav-list > li > a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem 1rem;
  border-radius: 50px;
  color: var(--color-default);
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: 0.3s;
}

.training-subnav-list > li > a:hover,
.training-subnav-list > li > a:focus {
  color: var(--color-primary);
  background: #77639114;
}

.subnav-chevron {
  font-size: .7rem;
  line-height: 1;
}

.subnav-menu {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 5;
  min-width: 15rem;
  list-style: none;
  margin: .15rem 0 0;
  padding: .4rem 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, 0.09);
  opacity: 0;
  visibility: hidden;
  transform: translateY(.25rem);
  transition: 0.2s;
}

.training-subnav-list > li:hover .subnav-menu,
.training-subnav-list > li:focus-within .subnav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.subnav-menu a {
  display: block;
  padding: .5rem 1.25rem;
  color: var(--color-default);
  font-size: .95rem;
  white-space: normal;
}

.subnav-menu a:hover,
.subnav-menu a:focus {
  color: var(--color-primary);
  background: #7763910f;
}

@media (max-width: 991px) {
  .training-subnav-toggle {
    display: flex;
  }

  .training-subnav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: .35rem 0 .25rem;
  }

  .training-subnav.open .training-subnav-list {
    display: flex;
  }

  .training-subnav-list > li > a {
    padding: .55rem .5rem;
    border-radius: 6px;
  }

  .subnav-menu {
    position: static;
    min-width: 0;
    margin: 0 0 .25rem .5rem;
    padding: 0 0 0 .75rem;
    background: transparent;
    border: 0;
    border-left: 2px solid #77639133;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .subnav-menu a {
    padding: .4rem .5rem;
  }

  .subnav-chevron {
    display: none;
  }
}

/*--------------------------------------------------------------
# How We Work Together — steps
--------------------------------------------------------------*/
.work-steps {
  counter-reset: step;
  list-style: none;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
}

.work-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 1.6rem 3.5rem;
}

.work-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -.15rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-secondary);
  font-weight: 700;
}

.work-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.06rem;
  top: 2.4rem;
  bottom: .3rem;
  width: 2px;
  background: #77639133;
}

.work-steps h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.work-steps p {
  margin-bottom: 0;
  color: #4b4b55;
}

@media (max-width: 576px) {
  .work-steps li {
    padding-left: 2.9rem;
  }

  .work-steps li::before {
    width: 1.9rem;
    height: 1.9rem;
    font-size: .9rem;
  }

  .work-steps li:not(:last-child)::after {
    left: .9rem;
    top: 2.1rem;
  }

  .work-steps h3 {
    font-size: 1.1rem;
  }
}

/*--------------------------------------------------------------
# How We Work Together — pricing
--------------------------------------------------------------*/
.pricing-block {
  max-width: 60rem;
  margin: 1rem auto 2rem;
  padding: 1.5rem;
  border: 2px solid #77639150;
  border-radius: 10px;
  background: #fff;
}

.pricing-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.pricing-subhead {
  margin: -.35rem 0 1.1rem;
  font-size: .95rem;
  line-height: 1.55;
  color: #4b4b55;
}

.pricing-subhead a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table thead th {
  padding: .7rem .9rem;
  background: #77639114;
  border-bottom: 2px solid #77639140;
  font-family: var(--font-secondary);
  font-size: .95rem;
  font-weight: 600;
  text-align: left;
}

.pricing-table tbody th,
.pricing-table tbody td {
  padding: .8rem .9rem;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  font-weight: 400;
}

.pricing-table tbody th {
  font-weight: 600;
  font-family: var(--font-secondary);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table .pricing-ea {
  display: block;
  color: #6c757d;
  font-size: .9rem;
}

.pricing-off {
  color: #6c757d;
  font-size: .9rem;
}

.pricing-note {
  margin: .9rem 0 0;
  font-size: .95rem;
  color: #4b4b55;
}

.pricing-note i {
  color: var(--color-primary);
}

/*--------------------------------------------------------------
# Mini pricing cards under service images (workshops, boarding school)
--------------------------------------------------------------*/
.mini-pricing {
  width: 100%;
  margin-top: 1rem;
  padding: .9rem 1rem;
  border: 2px solid #77639150;
  border-radius: 10px;
  background: #fff;
}

/* Card that sits centered under its whole section */
.mini-pricing--center {
  max-width: 440px;
  margin: 2.25rem auto 0;
}

.mini-pricing-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.mini-pricing-table tbody th,
.mini-pricing-table tbody td {
  padding: .45rem .5rem;
  font-size: .92rem;
}

.mini-pricing-table tbody th {
  width: 62%;
  font-weight: 500;
  line-height: 1.4;
}

.mini-pricing-table tbody td {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  font-family: var(--font-secondary);
}

.mini-pricing-note {
  margin: .65rem 0 0;
  font-size: .88rem;
  line-height: 1.45;
  color: #4b4b55;
}

.mini-pricing-note b {
  color: var(--color-primary);
  font-weight: 600;
}

/* Shaded availability note under a service's pricing card (site teal) */
.info-box {
  width: 100%;
  margin-top: .75rem;
  padding: .9rem 1rem;
  border-radius: 10px;
  border-left: 4px solid var(--color-accent);
  background: #3cacae1f;
  font-size: .88rem;
  line-height: 1.5;
  color: #3f4d4d;
}

.info-box p {
  margin: 0;
}

.info-box strong {
  color: #2c7d7f;
  font-weight: 600;
}

/* Package-credit note inside the process steps reads in the site accent */
.work-steps .emphasis {
  color: var(--color-accent);
}

/*--------------------------------------------------------------
# Service card overlays - subtle tag line under the image title
--------------------------------------------------------------*/
.service-page .image-text .description {
  margin: .15rem 0 0;
  font-size: .85rem;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 576px) {
  .pricing-block {
    padding: 1rem;
  }

  .pricing-table thead th,
  .pricing-table tbody th,
  .pricing-table tbody td {
    padding: .6rem .5rem;
    font-size: .92rem;
  }

  .pricing-table .pricing-ea,
  .pricing-off {
    font-size: .82rem;
  }
}
