/* Messy Bun Studio - Milk & Night Design System (Part 6)
 * Flat Milk #FCF8F5, Night #341019, Body #6A4651, Burgundy #6E1F35 on Blush #F7DDE1,
 * White cards 1px #F0E4E7, Sage #4D6A56 strictly for approved status. Zero gradients or glows.
 */

:root {
  color-scheme: light;
  --mb-milk: #FCF8F5;
  --mb-night: #341019;
  --mb-body: #6A4651;
  --mb-burgundy: #6E1F35;
  --mb-blush: #F7DDE1;
  --mb-white: #FFFFFF;
  --mb-card-border: #F0E4E7;
  --mb-btn-border: #E8DADF;
  --mb-sage: #4D6A56;
  --mb-card-shadow: 0 18px 42px -28px rgba(52, 16, 25, 0.14);
  --mb-nav-shadow: 0 18px 40px -26px rgba(52, 16, 25, 0.22);
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background-color: var(--mb-milk);
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--mb-milk);
  background-image: none;
  color: var(--mb-body);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--mb-night);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 800;
}

h1 {
  font-size: 72px;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

h3 {
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.mb-lead {
  font-size: 21px;
  line-height: 1.6;
  font-weight: 400;
  color: var(--mb-body);
  margin: 0;
}

.mb-small {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mb-body);
  margin: 0;
}

/* Max one Fraunces italic accent phrase per section */
.mb-accent {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--mb-burgundy);
  background-color: var(--mb-blush);
  border-radius: 20px;
  padding: 0 14px 4px;
  display: inline-block;
  line-height: 1.08;
}

.mb-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--mb-blush);
  color: var(--mb-burgundy);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

.mb-chip-approved {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: rgba(77, 106, 86, 0.12);
  color: var(--mb-sage);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Container & Section Spacing */
.mb-container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

.mb-section {
  padding-block: 96px;
}

/* Single allowed dark showcase band (flat Night #341019, zero gradients) */
.mb-dark-band {
  background-color: var(--mb-night);
  color: var(--mb-milk);
  padding-block: 96px;
}

.mb-dark-band h2,
.mb-dark-band h3 {
  color: var(--mb-white);
}

.mb-dark-band p,
.mb-dark-band .mb-lead,
.mb-dark-band .mb-small {
  color: rgba(252, 248, 245, 0.84);
}

/* Sticky Floating Pill Header */
.mb-header-wrap {
  position: sticky;
  top: 16px;
  z-index: 60;
  padding-inline: 24px;
  margin-top: 16px;
}

.mb-pill-header {
  max-width: 1240px;
  margin-inline: auto;
  min-height: 64px;
  padding: 10px 12px 10px 22px;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--mb-card-border);
  border-radius: 999px;
  box-shadow: var(--mb-nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.mb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mb-night);
  font-weight: 800;
  font-size: 17px;
  min-height: 44px;
}

.mb-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.mb-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mb-nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--mb-night);
  font-size: 15px;
  font-weight: 500;
}

.mb-nav-links a:hover,
.mb-nav-links a[aria-current="page"] {
  background-color: var(--mb-milk);
  font-weight: 800;
}

/* ONLY TWO BUTTON STYLES */
.mb-btn-primary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 54px;
  min-height: 54px;
  padding: 0 9px 0 26px;
  border: 0;
  border-radius: 999px;
  background-color: var(--mb-night);
  color: var(--mb-white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.mb-btn-primary .mb-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background-color: var(--mb-blush);
  color: var(--mb-burgundy);
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.mb-btn-primary.is-header {
  height: 44px;
  min-height: 44px;
  padding: 0 7px 0 20px;
  font-size: 15px;
  gap: 10px;
}

.mb-btn-primary.is-header .mb-arrow {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.mb-btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.mb-btn-secondary {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid var(--mb-btn-border);
  background-color: var(--mb-white);
  color: var(--mb-night);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.mb-btn-secondary.is-compact {
  min-height: 44px;
  padding: 0 18px;
  font-size: 15px;
}

.mb-btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cards */
.mb-card {
  background-color: var(--mb-white);
  border: 1px solid var(--mb-card-border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--mb-card-shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.mb-card p {
  margin: 0;
  color: var(--mb-body);
  font-size: 16px;
  line-height: 1.58;
}

.mb-card .mb-card-cta {
  margin-top: auto;
  padding-top: 6px;
}

.mb-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.mb-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.mb-step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 44px;
  line-height: 1;
  color: var(--mb-burgundy);
}

/* Form Controls */
.mb-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: var(--mb-night);
  margin-bottom: 8px;
}

.mb-input,
.mb-textarea,
.mb-select {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--mb-btn-border);
  background-color: var(--mb-milk);
  color: var(--mb-night);
  font-family: inherit;
  font-size: 16px;
}

.mb-textarea {
  min-height: 96px;
  resize: vertical;
}

.mb-input:focus-visible,
.mb-textarea:focus-visible,
.mb-select:focus-visible,
.mb-btn-primary:focus-visible,
.mb-btn-secondary:focus-visible {
  outline: 2px solid var(--mb-burgundy);
  outline-offset: 2px;
}

/* Cost Box Table */
.mb-cost-wrap {
  background-color: var(--mb-white);
  border: 1px solid var(--mb-card-border);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--mb-card-shadow);
  overflow-x: auto;
}

.mb-cost-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 620px;
}

.mb-cost-table th,
.mb-cost-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--mb-card-border);
  vertical-align: top;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mb-body);
}

.mb-cost-table th {
  color: var(--mb-night);
  font-weight: 800;
  font-size: 15px;
}

.mb-cost-table tr:last-child td,
.mb-cost-table tr:last-child th {
  border-bottom: 0;
  color: var(--mb-night);
  font-weight: 800;
  font-size: 17px;
}

/* Footer */
.mb-footer {
  border-top: 1px solid var(--mb-card-border);
  padding-block: 48px;
  background-color: var(--mb-milk);
}

.mb-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.mb-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.mb-footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--mb-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.mb-footer-links a:hover {
  color: var(--mb-night);
  text-decoration: underline;
}

/* Mobile Menu Button & Drawer (Hidden on Desktop) */
.mb-mobile-header-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mb-mobile-menu-btn {
  display: none;
  appearance: none;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--mb-btn-border);
  background-color: var(--mb-white);
  color: var(--mb-night);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}

.mb-cost-mobile-stack {
  display: none;
}

/* Phone Breakpoints */
@media (max-width: 960px) {
  .mb-grid-3,
  .mb-grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 38px;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: 32px;
    line-height: 1.14;
    overflow-wrap: anywhere;
  }
  h3 {
    font-size: 20px;
    overflow-wrap: anywhere;
  }
  p, .mb-lead, .mb-small {
    overflow-wrap: anywhere;
  }
  .mb-lead {
    font-size: 17px;
    line-height: 1.5;
  }
  .mb-container {
    padding-inline: 16px;
  }
  .mb-section,
  .mb-dark-band {
    padding-block: 40px;
  }
  .mb-card {
    padding: 20px;
    border-radius: 22px;
    max-width: 100%;
    min-width: 0;
  }
  /* 1-Row 56px Solid Header on Phones (Zero Content Showing Behind It) */
  .mb-header-wrap {
    position: sticky;
    top: 0;
    margin-top: 0;
    padding-inline: 0;
    background-color: var(--mb-milk);
    border-bottom: 1px solid var(--mb-card-border);
    z-index: 80;
  }
  .mb-pill-header {
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background-color: var(--mb-milk);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0 14px;
    flex-wrap: nowrap;
    gap: 8px;
    position: relative;
  }
  .mb-brand {
    min-height: 44px;
    flex-shrink: 1;
    min-width: 0;
  }
  .mb-brand img {
    height: 28px;
    max-width: 148px;
    object-fit: contain;
  }
  .mb-mobile-menu-btn {
    display: inline-flex;
  }
  .mb-nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--mb-white);
    border-bottom: 1px solid var(--mb-card-border);
    box-shadow: var(--mb-nav-shadow);
    padding: 10px 16px 14px;
    gap: 4px;
    z-index: 85;
  }
  .mb-pill-header.is-menu-open .mb-nav-links {
    display: flex;
  }
  .mb-nav-links a {
    width: 100%;
    min-height: 44px;
    padding-inline: 14px;
    font-size: 16px;
    justify-content: flex-start;
  }
  .mb-btn-primary.is-header {
    height: 44px;
    min-height: 44px;
    padding: 0 6px 0 14px;
    font-size: 14px;
    gap: 8px;
    white-space: nowrap;
  }
  .mb-btn-primary.is-header .mb-arrow {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  /* Prevent primary/secondary buttons from overflowing narrow 390px cards */
  .mb-btn-primary:not(.is-header) {
    max-width: 100%;
    width: 100%;
    height: auto;
    min-height: 50px;
    padding: 8px 8px 8px 18px;
    font-size: 16px;
    white-space: normal;
    line-height: 1.25;
    text-align: left;
  }
  .mb-btn-secondary {
    max-width: 100%;
    min-height: 48px;
    padding: 8px 18px;
    font-size: 15px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
  /* Stacked Monthly Cost Cards on Phones instead of 620px horizontal table */
  .mb-cost-wrap {
    display: none;
  }
  .mb-cost-mobile-stack {
    display: grid;
    gap: 16px;
  }
  .mb-cost-mobile-card {
    background-color: var(--mb-white);
    border: 1px solid var(--mb-card-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--mb-card-shadow);
    display: grid;
    gap: 12px;
  }
  .mb-cost-mobile-card.is-primary-choice {
    border-color: var(--mb-night);
  }
  .mb-cost-mobile-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--mb-card-border);
    color: var(--mb-night);
    font-size: 18px;
    font-weight: 800;
  }
  .mb-cost-mobile-row {
    display: grid;
    gap: 2px;
    font-size: 15px;
    line-height: 1.45;
  }
  .mb-cost-mobile-row strong {
    color: var(--mb-night);
    font-size: 14px;
    font-weight: 800;
  }
  .mb-footer a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
