/*
 * MediBloom inner pages: about, contact, FAQ, legal, 404, maintenance.
 * Built on base.css tokens; the page banner itself lives in base.css.
 */

/* ------------------------------------------------------------------ shared */
/* Centred grey lead ("shopTopDesc"). */
.mb-page-lead {
  max-width: 1265px; margin-inline: auto;
  font-size: 26px; font-weight: 600; line-height: 1.5; text-align: center; color: var(--mb-grey);
}

/* Body copy used across the inner pages. */
.mb-copy { font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: .75px; color: var(--mb-ink); }
.mb-copy--strong { font-weight: 700; }

.mb-section-title { font-size: var(--mb-fs-h2); font-weight: 500; line-height: 1.1; color: var(--mb-deep); }

@media (max-width: 1024px) { .mb-page-lead { font-size: 22px; } }
@media (max-width: 767px) {
  .mb-page-lead { font-size: 20px; }
  .mb-copy { font-size: 16px; }
}

/* ------------------------------------------------------------------ about: intro */
.mb-about-intro { padding: 115px 0 100px; }
.mb-about-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 100px; align-items: start;
  margin-top: 60px;
}
.mb-about-intro-copy { display: flex; flex-direction: column; gap: 30px; }
.mb-about-intro-media { aspect-ratio: 711 / 474; }
.mb-about-intro-media img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1024px) { .mb-about-intro-grid { gap: 24px 48px; } }
@media (max-width: 767px) {
  .mb-about-intro { padding: 60px 0 40px; }
  .mb-about-intro-grid { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; }
  .mb-about-intro-copy { gap: 15px; }
}

/* ------------------------------------------------------------------ about: statement, quotes, promises */
.mb-about-story { padding: 0 var(--mb-gutter) 232px; position: relative; }
.mb-about-story::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background: var(--mb-silver);
}
.mb-about-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0; }
.mb-about-story-main { display: flex; flex-direction: column; gap: 60px; min-width: 0; }
.mb-about-story-title {
  font-size: 76px; font-weight: 400; line-height: 1.12; text-transform: uppercase; color: var(--mb-teal);
}

@media (max-width: 1366px) { .mb-about-story-title { font-size: 64px; } }
@media (max-width: 1024px) {
  .mb-about-story { padding-bottom: 150px; }
  .mb-about-story-grid { grid-template-columns: 1fr; gap: 60px; }
  .mb-about-story-title { font-size: 54px; }
}
@media (max-width: 767px) {
  .mb-about-story { padding-bottom: 112px; }
  .mb-about-story-main { gap: 24px; }
  .mb-about-story-title { font-size: 38px; }
}

/* Customer-quote slider. */
.mb-quotes { min-width: 0; }
.mb-quote { display: grid; grid-template-columns: 170px 1fr; margin: 0; }
.mb-quote[hidden] { display: none; }
.mb-quote-media { display: flex; flex-direction: column; align-items: flex-start; gap: 34px; padding-right: 20px; }
.mb-quote-mark { width: 92px; height: auto; }
.mb-quote-photo { width: 135px; height: 135px; border-radius: 50%; object-fit: cover; }
.mb-quote-body { display: flex; flex-direction: column; gap: 25px; }
.mb-quote-text { margin: 0; font-size: 21px; line-height: 1.5; color: #16293c; }
.mb-quote-name { font-size: 18px; line-height: 1.5; color: #16293c; }
.mb-quotes-dots { display: flex; align-items: center; gap: 10px; margin-top: 42px; padding-left: 170px; }
.mb-quotes-dot { width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: #b4e0ed; }
.mb-quotes-dot[aria-current="true"] { background: #2098c5; }

@media (max-width: 1024px) {
  .mb-quote { grid-template-columns: 100px 1fr; }
  .mb-quote-mark { width: 81px; }
  .mb-quote-photo { width: 100%; height: auto; aspect-ratio: 1; }
  .mb-quotes-dots { padding-left: 100px; }
}
@media (max-width: 767px) {
  .mb-quote { grid-template-columns: 80px 1fr; }
  .mb-quote-media { gap: 24px; }
  .mb-quote-mark { width: 41px; }
  .mb-quote-photo { width: 60px; height: 60px; }
  .mb-quote-body { gap: 20px; }
  .mb-quote-text { font-size: 18px; }
  .mb-quote-name { font-size: 16px; }
  .mb-quotes-dots { margin-top: 24px; padding-left: 80px; }
  .mb-quotes-dot { width: 14px; height: 14px; }
}

/* Check-marked promises. */
.mb-checklist { display: flex; flex-direction: column; }
.mb-check { position: relative; display: flex; align-items: flex-start; }
.mb-check + .mb-check { margin-top: 25px; padding-top: 25px; }
.mb-check + .mb-check::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: var(--mb-rule-gradient);
}
.mb-check-icon { flex: none; width: 72px; height: auto; margin-right: 30px; }
.mb-check-title { margin: 8px 0 16px; font-size: 23px; font-weight: 700; line-height: 1.5; letter-spacing: .75px; color: var(--mb-ink); }
.mb-check-text { font-size: 18px; font-weight: 500; line-height: 1.5; letter-spacing: .75px; color: var(--mb-ink); }

@media (max-width: 767px) {
  .mb-check-icon { width: 48px; margin-right: 16px; }
  .mb-check-title { margin: 4px 0 8px; font-size: 18px; }
  .mb-check-text { font-size: 16px; }
}

/* ------------------------------------------------------------------ contact */
.mb-contact { padding: 115px var(--mb-gutter); }
.mb-contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  max-width: 1150px; margin-inline: auto;
}
.mb-contact-aside { display: flex; flex-direction: column; gap: 20px; }

.mb-form-panel { display: flex; flex-direction: column; gap: 40px; }
.mb-form-title { font-size: 48px; font-weight: 400; line-height: 1.12; color: #484848; }
.mb-form { display: flex; flex-direction: column; gap: 25px; }
.mb-form .mb-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.mb-form .lv-field { position: relative; display: flex; flex-direction: column; gap: 6px; }
.mb-form .mb-input {
  width: 100%; height: 64px; padding: 5px 27px;
  border: 1px solid #cddad4; border-radius: 20px; background: #fff; color: #000;
  font-family: var(--mb-font-alt); font-size: 17px; line-height: 1.3; text-transform: uppercase;
  appearance: none;
}
.mb-form .mb-input::placeholder { color: #000; opacity: .55; }
.mb-form .mb-input:focus, .mb-form .mb-input:focus-visible { outline: none; border-color: var(--mb-teal); }
.mb-form .mb-select {
  padding-right: 54px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E") right 27px center / 14px no-repeat;
}
.mb-form .mb-textarea { height: 222px; padding-top: 24px; resize: vertical; text-transform: uppercase; }
.mb-form .mb-form-submit { min-width: 208px; padding: 18px 30px; font-size: 14px; font-weight: 500; }
.mb-form .lv-error { margin: 0; font-size: 13px; color: var(--mb-danger); }
.mb-form .lv-field.is-invalid .mb-input, .mb-form .mb-input[aria-invalid="true"] { border-color: var(--mb-danger); }

@media (max-width: 1024px) { .mb-contact { padding-block: 100px; } }
@media (max-width: 767px) {
  .mb-contact { padding-block: 60px; }
  .mb-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .mb-form-panel { gap: 24px; }
  .mb-form-title { font-size: 36px; }
  .mb-form .mb-form-row { grid-template-columns: 1fr; }
  .mb-form .mb-input { padding-inline: 15px; }
  .mb-form .mb-form-submit { font-size: 20px; padding: 16px 30px; gap: 60px; }
}

/* ------------------------------------------------------------------ legal / rich text */
.mb-policy { padding: 115px 0; }
.mb-policy-body { color: #54595f; font-size: 16px; line-height: 1.5; }
.mb-policy-body > h1:first-child, .mb-policy-body > h2:first-child, .mb-policy-title {
  margin: 0 0 20px; font-size: 54px; font-weight: 500; line-height: 1; color: var(--mb-deep);
}
.mb-policy-body h2 { margin: 1.6em 0 20px; font-size: 26px; font-weight: 600; line-height: 1; color: #54595f; }
.mb-policy-body h3 { margin: 1.4em 0 .6em; font-size: 20px; font-weight: 600; color: #54595f; }
.mb-policy-body p { margin: 0 0 14.4px; }
.mb-policy-body ul { list-style: disc; padding-left: 40px; margin: 0 0 14.4px; }
.mb-policy-body ol { list-style: decimal; padding-left: 40px; margin: 0 0 14.4px; }
.mb-policy-body a { color: var(--mb-teal-strong); }
.mb-policy-body > p:first-of-type { color: var(--mb-deep); }

@media (max-width: 1024px) { .mb-policy { padding: 100px 0; } .mb-policy-body > h2:first-child, .mb-policy-title { font-size: 42px; } }
@media (max-width: 767px) {
  .mb-policy { padding: 50px 0; }
  .mb-policy-body > h1:first-child, .mb-policy-body > h2:first-child, .mb-policy-title { font-size: 32px; line-height: 1.15; }
  .mb-policy-body h2 { font-size: 22px; line-height: 1.2; }
  .mb-policy-body ul, .mb-policy-body ol { padding-left: 24px; }
}

/* ------------------------------------------------------------------ 404 */
.mb-notfound { padding: 100px 0 120px; }
.mb-notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 40px; }
.mb-notfound-best { margin-top: 100px; }
.mb-notfound-best .mb-section-title { margin-bottom: 40px; text-align: center; text-transform: uppercase; }
.mb-notfound-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .mb-notfound-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .mb-notfound { padding: 50px 0 80px; }
  .mb-notfound-best { margin-top: 60px; }
}

/* ------------------------------------------------------------------ maintenance */
.mb-maintenance {
  display: flex; align-items: center; min-height: 100vh; padding: 60px var(--mb-gutter);
  background: var(--mb-night) var(--mb-banner-image) 100% 50% / cover no-repeat; color: #fff;
}
.mb-maintenance-inner { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: var(--mb-shell); margin-inline: auto; }
.mb-maintenance-logo { width: 110px; height: auto; margin-bottom: 40px; }

/* ------------------------------------------------------------------ about: categories */
/* Cards reuse the home collections styles (.mb-cats / .mb-cat in home.css). */
.mb-about-cats { position: relative; padding: 140px 0 204px; }
.mb-about-cats::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32px;
  background: var(--mb-silver);
}
.mb-about-cats-head { display: flex; flex-direction: column; gap: 30px; margin-bottom: 56px; text-align: center; }
.mb-about-cats-title {
  font-size: var(--mb-fs-display); font-weight: 400; line-height: 1.12; text-transform: uppercase; color: var(--mb-deep);
}
.mb-about-cats-lead { color: var(--mb-muted); }
@media (max-width: 1024px) { .mb-about-cats { padding: 100px 0 150px; } }
@media (max-width: 767px) {
  .mb-about-cats { padding: 60px 0 100px; }
  .mb-about-cats-head { gap: 16px; margin-bottom: 40px; }
}

/* ------------------------------------------------------------------ FAQ by topic (faq-topics) */
.mb-faq-topics { padding: 80px 0 110px; }
.mb-faq-topics-layout {
  display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; align-items: start;
}
.mb-faq-topics-side { position: sticky; top: 130px; display: flex; flex-direction: column; gap: 24px; }

.mb-faq-tabs { display: flex; flex-direction: column; gap: 4px; }
.mb-faq-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 12px 14px 12px 18px; border: 0; border-radius: 14px; background: none;
  font-family: var(--mb-font); font-size: 15px; font-weight: 500; line-height: 1.35; text-align: left; color: var(--mb-deep);
  transition: background-color .2s ease, color .2s ease;
}
.mb-faq-tab:hover { background: rgba(62, 177, 176, .1); }
.mb-faq-tab-count {
  flex: none; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(30, 67, 71, .08); color: var(--mb-deep); font-size: 12px; font-weight: 600;
}
.mb-faq-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--mb-night) 0%, #143a40 100%); color: var(--mb-white);
  box-shadow: 0 10px 24px rgba(14, 38, 41, .22);
}
.mb-faq-tab[aria-selected="true"] .mb-faq-tab-count { background: var(--mb-silver); color: var(--mb-ink); }

.mb-faq-help {
  padding: 24px; border-radius: 20px; background: #fff;
  box-shadow: 0 0 60px rgba(46, 105, 124, .14);
}
.mb-faq-help-title { margin-bottom: 8px; font-size: 18px; font-weight: 700; color: var(--mb-deep); }
.mb-faq-help-text { margin-bottom: 18px; font-size: 14px; line-height: 1.55; color: var(--mb-grey); }
.mb-faq-help-btn { font-size: 15px; padding: 14px 18px; gap: 18px; }

.mb-faq-panel { outline: none; }
.mb-faq-panel[hidden] { display: none; }
.mb-faq-panel-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding-bottom: 18px; margin-bottom: 4px; border-bottom: 1px solid #bcdcbe;
}
.mb-faq-panel-title { font-size: 44px; font-weight: 500; line-height: 1.1; text-transform: uppercase; color: var(--mb-deep); }
.mb-faq-panel-count { flex: none; font-size: 14px; color: var(--mb-grey); }

@media (max-width: 1024px) {
  .mb-faq-topics-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 36px; }
  .mb-faq-panel-title { font-size: 36px; }
}
/* Phones and small tablets: no tabs — every topic is listed one under
   the other, each with its own heading and accordion; the help card ends
   the list. */
@media (max-width: 860px) {
  .mb-faq-topics { padding: 40px 0 72px; }
  .mb-faq-topics-layout { grid-template-columns: 1fr; gap: 0; }
  .mb-faq-topics-side { display: contents; }
  .mb-faq-tabs { display: none; }
  .mb-faq-topics-panels { order: 1; display: flex; flex-direction: column; gap: 48px; }
  .mb-faq-panel[hidden] { display: block; }
  .mb-faq-panel { scroll-margin-top: 110px; }
  .mb-faq-help { order: 2; margin-top: 48px; }
  .mb-faq-panel-title { font-size: 30px; }
}
