/* =============================================================
   BOOK MORSE PAGE — upload to assets/book-page.css
   Loaded by page-book-morse.php after service-page.css.

   Gutenberg classes (Advanced > Additional CSS class(es)):
     Main title (H1)       comp-h1
     Subhead (H2)          comp-subhead
     Intro paragraph       comp-body
     Calendar wrapper      Group block: bm-calendar  (Custom HTML block inside)
============================================================= */

/* ---------- Intro ---------- */
.book-page .section-competencies {
  padding-bottom: 40px;
}
.book-page .comp-h1 {
  max-width: 14ch;
}
/* subhead and intro sit left under the H1 here (centered on /services/) */
.book-page .section-competencies .comp-subhead,
.book-page .section-competencies .comp-body {
  max-width: 760px;
  margin-left: 0;
  text-align: left;
}
.book-page .section-competencies .comp-subhead {
  margin-top: 0;
}
.book-page .section-competencies .comp-body {
  font-size: clamp(18px, 1.5vw, 1.6rem);
  margin-bottom: 3.5rem;
}

/* ---------- Calendar: full container width ---------- */
.book-page .bm-calendar {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
  padding: 24px;
  margin: 0;
  max-width: none;
}
.book-page .bm-calendar iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

/* ---------- Get started: full container width ---------- */
.book-page section.bm-cta {
  background: transparent;
  padding: 40px 0 80px;
}
/* copy + portrait on the left, contact form card on the right */
.book-page .bm-cta .cta-box.bm-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  text-align: left;
  padding: 72px 64px 0;
  overflow: hidden;              /* keeps the portrait inside the rounded box */
}
.book-page .bm-cta-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.book-page .bm-cta .cta-eyebrow,
.book-page .bm-cta .cta-h2,
.book-page .bm-cta .cta-body {
  max-width: 560px;
  margin-left: 0;
  margin-right: 0;
}
.book-page .bm-cta .cta-face {
  position: static;
  display: block;
  margin-top: auto;              /* sits on the bottom edge of the box */
  padding-top: 40px;
  max-height: 380px;
  width: auto;
  max-width: 100%;
}
.book-page .bm-cta .btn-morse i {
  margin-left: 2px;
}

/* ---------- Contact form (Ninja Forms "Contact Form") ---------- */
.book-page .bm-cta-form {
  align-self: start;
  background: #fff;
  border-radius: 16px;
  padding: 32px 32px 28px;
  margin-bottom: 64px;
  color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.book-page .bm-form-title {
  font-family: var(--font-display);
  font-size: max(22px, 1.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: #000;
  margin: 0 0 6px;
}
.book-page .bm-cta-form .nf-form-title {
  display: none;                 /* "Contact Form" heading; replaced by the title above */
}
.book-page .bm-cta-form .nf-form-fields-required {
  font-family: var(--font-body);
  font-size: 13px;
  color: #666;
  margin-bottom: 18px;
}
.book-page .bm-cta-form .nf-field-container {
  margin-bottom: 16px;
}
.book-page .bm-cta-form .nf-field-label label {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 6px;
}
.book-page .bm-cta-form .ninja-forms-req-symbol {
  color: var(--color-primary);
}
.book-page .bm-cta-form input.ninja-forms-field:not([type="submit"]),
.book-page .bm-cta-form textarea.ninja-forms-field {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;               /* 16px stops iOS zooming on focus */
  color: #000;
  background: #f5f8f6;
  border: 1px solid #d5dbe0;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
  transition: border-color .2s, background .2s;
}
.book-page .bm-cta-form textarea.ninja-forms-field {
  height: 130px;
  min-height: 130px;
  resize: vertical;
}
.book-page .bm-cta-form input.ninja-forms-field:focus,
.book-page .bm-cta-form textarea.ninja-forms-field:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-primary);
}
.book-page .bm-cta-form input[type="submit"].ninja-forms-field {
  display: inline-flex;
  width: auto;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-primary);
  border: 0;
  border-radius: 25px;
  padding: 15px 34px;
  cursor: pointer;
  transition: opacity .2s;
}
.book-page .bm-cta-form input[type="submit"].ninja-forms-field:hover {
  opacity: .88;
}
.book-page .bm-cta-form .nf-error-msg,
.book-page .bm-cta-form .nf-error .nf-error-msg {
  font-size: 13px;
  color: #c62828;
}
.book-page .bm-cta-form .nf-response-msg {
  font-family: var(--font-body);
  font-size: 16px;
  color: #000;
}

/* ---------- Design Thinking feature + latest two posts ---------- */
.bm-reading {
  padding: 40px 0 110px;
}
.bm-reading .blog-h2 {
  margin-bottom: 2rem;
}
.bm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff url('img/white_bg.jpg') center / cover;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
  color: #000;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.bm-card:hover {
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
.bm-card-img {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eee;
}
.bm-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bm-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  padding: 26px 26px 30px;
}
.bm-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bm-card-meta .blog-date {
  margin: 0;
}
.bm-card-title {
  display: block;
  font-family: var(--font-display);
  font-size: max(22px, 1.6rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.bm-card-text {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.1vw, 1.2rem);
  line-height: 1.6;
  color: #333;
}
.bm-card-link {
  margin-top: auto;              /* pins the link to the card bottom */
  padding-top: 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--color-primary);
}
.bm-card-link::after {
  content: " \2192";
}

/* the permanent feature: site teal, white type */
.bm-feature {
  background: var(--color-teal);
  color: #fff;
}
.bm-feature:hover {
  color: #fff;
}
.bm-feature .bm-card-img {
  background: #fff;
}
.bm-feature .bm-card-img img {
  object-fit: contain;
}
.bm-feature .bm-card-text {
  color: rgba(255, 255, 255, .85);
}
.bm-feature .bm-card-link {
  color: #fff;
}
.blog-tag.bm-tag-feature {
  background: #fff;
  color: var(--color-teal);
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 991px) {
  /* stacks: copy and button, then the form, then the portrait on the bottom edge */
  .book-page .bm-cta .cta-box.bm-cta-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
    padding: 60px 32px 0;
  }
  .book-page .bm-cta-copy {
    display: contents;
  }
  .book-page .bm-cta .cta-eyebrow,
  .book-page .bm-cta .cta-h2,
  .book-page .bm-cta .cta-body {
    margin-left: auto;
    margin-right: auto;
  }
  .book-page .bm-cta-form {
    order: 1;
    width: 100%;
    max-width: 560px;
    margin: 40px 0 0;
    text-align: left;
  }
  .book-page .bm-cta .cta-face {
    order: 2;
    max-height: 300px;
    margin: 2rem auto 0;
    padding-top: 0;
  }
}
@media (max-width: 767px) {
  .book-page section.bm-cta {
    padding: 20px 0 50px;
  }
  .book-page .bm-cta .cta-box.bm-cta-grid {
    border-radius: 20px;          /* homepage.css squares it off on phones; keep it a card here */
    padding: 48px 16px 0;
  }
  .book-page .bm-cta-form {
    padding: 24px 18px 20px;
  }
  .book-page .bm-calendar {
    padding: 8px;
    border-radius: 14px;
  }
  .book-page .comp-h1 {
    max-width: none;
  }
  .bm-reading {
    padding-bottom: 70px;
  }
}