/*
 * Location cards (Chesham and Little Chalfont) on the home and contact pages.
 * Loaded only on those pages (see theme_enqueue_styles() in functions.php).
 * Plain CSS, not part of the gulp/sass build.
 */

.kc-intro {
  max-width: 760px;
  margin: 0 auto;
}

.kc-locations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 28px;
  margin: 32px 0 24px;
  text-align: left;
}

.kc-location {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(40, 74, 123, 0.16);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kc-location:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(40, 74, 123, 0.22);
}

/* Header band with a scalloped bottom edge */
.kc-location__head {
  position: relative;
  padding: 20px 24px 26px;
  background: #284a7b;
  color: #fff;
}

.kc-location__head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -14px;
  height: 14px;
  background: radial-gradient(circle at 14px 0, #284a7b 14px, transparent 15px) repeat-x;
  background-size: 28px 14px;
}

.kc-location__name {
  font-family: 'RF Krabuler Regular';
  font-size: 30px;
  line-height: 1.1;
  margin: 10px 0 2px;
}

.kc-location__org {
  font-size: 14px;
  opacity: 0.85;
}

.kc-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.kc-badge--current {
  background: #f9c80e;
  color: #284a7b;
}

.kc-badge--new {
  background: #3bb273;
  color: #fff;
}

.kc-location__body {
  flex: 1;
  padding: 34px 24px 8px;
  color: #284a7b;
}

.kc-row {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.kc-row__icon {
  flex: 0 0 38px;
  height: 38px;
  margin-right: 14px;
  border-radius: 50%;
  background: #e4f3f8;
  color: #284a7b;
  font-size: 17px;
  line-height: 38px;
  text-align: center;
}

.kc-row__text {
  padding-top: 8px;
  line-height: 1.5;
  min-width: 0;
  overflow-wrap: anywhere;
}

.kc-row__text a {
  color: #284a7b;
  font-weight: bold;
}

.kc-location__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 24px 24px;
}

.kc-btn {
  flex: 1 1 auto;
  padding: 10px 16px;
  border: 2px solid #284a7b;
  border-radius: 999px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.kc-btn .fa {
  margin-right: 6px;
  color: inherit; /* the theme sets every <i> to navy */
}

.kc-btn--solid {
  background: #284a7b;
  color: #fff !important;
}

.kc-btn--solid:hover {
  background: #1b3459;
  border-color: #1b3459;
}

.kc-btn--outline {
  background: transparent;
  color: #284a7b !important;
}

.kc-btn--outline:hover {
  background: #284a7b;
  color: #fff !important;
}

.kc-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin: 0 0 40px;
  padding: 14px 20px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(40, 74, 123, 0.12);
  color: #284a7b;
}

.kc-email .kc-row__icon {
  margin-right: 0;
}

.kc-email__label {
  opacity: 0.8;
}

.kc-email__link {
  color: #284a7b !important;
  font-weight: bold;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .kc-email {
    border-radius: 18px;
  }
  .kc-email__link {
    font-size: 14px;
  }
}

.kc-form-intro {
  margin-bottom: 4px;
}

/* Home page: "Our Locations" section */
.our-locations {
  padding-top: 1rem;
}

.kc-location__desc {
  margin-bottom: 22px;
  line-height: 1.6;
  text-align: left;
}

.kc-row__label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

.kc-row__label + * {
  display: block;
}

.kc-row__text--email {
  font-size: 14px;
}

.kc-row__text.kc-row__text--email a {
  font-weight: normal;
  letter-spacing: -0.01em;
}

.kc-cta {
  margin-top: 8px;
  padding: 28px 28px 30px;
  border-radius: 18px;
  background: #e4f3f8;
  text-align: center;
}

.kc-cta__title {
  font-family: 'RF Krabuler Regular';
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.kc-cta p {
  max-width: 640px;
  margin: 0 auto 12px;
  text-align: center;
}

.kc-cta .kc-btn {
  display: inline-block;
  flex: none;
  margin-top: 8px;
  padding: 10px 26px;
}
