/* Bindly marketing UI kit — layout utilities on top of colors_and_type.css */

* { box-sizing: border-box; }

.site {
  background: var(--bindly-parchment);
  min-height: 100vh;
  color: var(--color-fg);
  font-family: var(--font-sans);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 96px 0; }
.section--lg { padding: 120px 0; }
.section--parch { background: var(--bindly-parchment); }
.section--lav { background: var(--bindly-lavender); }
.section--plum {
  background: var(--bindly-plum);
  color: var(--bindly-white);
}
.section--plum h1, .section--plum h2, .section--plum h3, .section--plum h4 { color: #fff; }
.section--plum p { color: rgba(255,255,255,0.82); }
.section--plum .eyebrow { color: var(--bindly-violet); }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bindly-parchment);
  border-bottom: 1px solid var(--bindly-hairline);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.header__wordmark {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--bindly-plum);
  text-decoration: none;
}
.header__nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--bindly-plum-dark);
  text-decoration: none;
  border: 0;
  transition: color var(--dur-fast) var(--ease-standard);
}
.header__nav a:hover { color: var(--bindly-violet); }
/* ---------- Hamburger (mobile only) ---------- */
.header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--bindly-plum);
  line-height: 0;
  flex-shrink: 0;
}


/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 14px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  text-decoration: none;
}
.btn--cta {
  background: var(--bindly-orange);
  color: #fff;
}
.btn--cta:hover { background: var(--bindly-orange-hover); }
.btn--cta:active { background: var(--bindly-orange-press); }
.btn--cta:disabled { opacity: 0.5; cursor: not-allowed; }

.btn--secondary {
  background: transparent;
  color: var(--bindly-plum);
  border: 1px solid rgba(45,27,78,0.25);
}
.btn--secondary:hover { border-color: var(--bindly-plum); }
.section--plum .btn--secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}
.section--plum .btn--secondary:hover { border-color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--bindly-violet);
  padding: 12px 8px;
}
.btn--ghost:hover { color: var(--bindly-violet-hover); }

.btn--lg { padding: 15px 28px; font-size: 16px; }

/* ---------- Card ---------- */

.card-p {
  background: var(--bindly-lavender);
  border-radius: 12px;
  padding: 32px;
  border: 1px solid var(--bindly-hairline);
  transition: border-color var(--dur-fast) var(--ease-standard);
}
.section--lav .card-p { background: #fff; }
.card-p:hover { border-color: var(--bindly-hairline-strong); }

/* ---------- Misc ---------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bindly-violet);
  margin: 0 0 16px;
  display: block;
}

.hairline { border: 0; border-top: 1px solid var(--bindly-hairline); margin: 0; }

.feat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
}
.feat__icon {
  color: var(--bindly-violet);
  flex-shrink: 0;
  margin-top: 3px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(155,111,212,0.15);
  color: #6B40A8;
}
.badge--plum { background: var(--bindly-plum); color: #fff; }

.icon {
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

a { border: 0; }
a:hover { border: 0; }

/* ======================================================
   RESPONSIVE BREAKPOINTS
   All pages use inline styles, so !important is required
   to override grid/font/spacing in media queries.
   ====================================================== */

@media (max-width: 1024px) {
  .container,
  .container--narrow { padding: 0 24px; }
  .header__inner { padding: 16px 24px; }
}

@media (max-width: 768px) {

  /* Container */
  .container,
  .container--narrow { padding: 0 16px; }
  .header__inner { padding: 14px 16px; }

  /* Header: hide nav links, show hamburger */
  .header__nav { display: none; }
  .header__hamburger { display: flex; align-items: center; }

  /* Mobile nav drawer */
  .header__nav.is-open {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bindly-parchment);
    border-bottom: 2px solid var(--bindly-violet);
    box-shadow: 0 8px 24px rgba(62,26,97,0.12);
    padding: 8px 0 16px;
    z-index: 200;
  }

  .header__nav.is-open a {
    padding: 13px 20px;
    font-size: 16px;
    border-bottom: 1px solid var(--bindly-hairline);
    color: var(--bindly-plum) !important;
    text-decoration: none;
  }

  .header__nav.is-open a:last-child { border-bottom: none; }



  /* Section padding */
  .section { padding: 48px 0 !important; }
  .section--lg { padding: 60px 0 !important; }

  /* Collapse all multi-column grids to single column */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Reduce large gaps */
  [style*="gap: 80px"] { gap: 32px !important; }
  [style*="gap: 72px"] { gap: 32px !important; }
  [style*="gap: 64px"] { gap: 24px !important; }
  [style*="gap: 56px"] { gap: 24px !important; }
  [style*="gap: 48px"] { gap: 20px !important; }

  /* Unstick sidebar */
  [style*="position: sticky"] {
    position: static !important;
    top: auto !important;
  }

  /* Scale down hero and section headings */
  h1 { font-size: 36px !important; line-height: 1.1 !important; }
  h2 { font-size: 28px !important; line-height: 1.15 !important; }

  /* Stepper: wrap on small screens */
  .start-stepper {
    flex-wrap: wrap !important;
    gap: 12px !important;
    row-gap: 12px !important;
  }
  .start-stepper > div:last-child { margin-top: 0; }

  /* Pricing table: make scrollable on mobile */
  table { font-size: 13px !important; }
  th, td { padding: 10px 8px !important; }

  /* Buttons: full-width on mobile where they stack */
  .btn--lg { width: 100%; justify-content: center; }

  /* Hero section padding override */
  [style*="padding-top: 120px"] { padding-top: 60px !important; }
  [style*="padding-bottom: 120px"] { padding-bottom: 60px !important; }
  [style*="padding-top: 72px"] { padding-top: 40px !important; }
}

/* ======================================================
   ARTICLE DESIGN SYSTEM — Sprint 1 of 4
   Powers single.php blog post pages.
   Source spec: BlogPost.jsx (Bindly Article Blog Templates Handoff).
   Do not modify existing classes above this line.
   ====================================================== */

/* ---------- A. Base prose classes ---------- */

.post-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--bindly-plum-dark);
}

.post-h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--bindly-plum);
  margin: 52px 0 18px;
  line-height: 1.2;
  scroll-margin-top: 80px;
}

.post-h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--bindly-plum);
  margin: 36px 0 14px;
  line-height: 1.25;
}

.post-p {
  margin: 0 0 22px;
}

.post-ul {
  list-style: disc;
  padding-left: 24px;
  margin: 0 0 22px;
}

.post-ol {
  list-style: decimal;
  padding-left: 24px;
  margin: 0 0 22px;
}

.post-ul li,
.post-ol li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0 40px;
  font-size: 15px;
}
.post-body thead tr {
  background: var(--bindly-plum);
  color: #fff;
}
.post-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.post-body td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bindly-hairline);
  color: var(--bindly-plum-dark);
  vertical-align: top;
}
.post-body tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- B. Callout base structure ---------- */

.callout {
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 24px;
  align-items: start;
  margin: 48px 0 44px;
  margin-left: -80px;
  position: relative;
}

.callout__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bindly-plum-muted); /* overridden per variant */
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  line-height: 1;
  max-height: 220px;
  overflow: hidden;
  text-align: right;
  justify-self: end;
  padding-top: 4px;
}

.callout__body {
  position: relative;
  padding-top: 22px;
  border-top: 2px solid var(--bindly-plum); /* overridden per variant */
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--bindly-plum);
  letter-spacing: -0.005em;
}

/* ---------- D. Corner tab ---------- */

.callout__tab {
  position: absolute;
  top: -14px;
  right: 0;
  background: var(--bindly-plum);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 7px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* ---------- C. Callout variant colors ---------- */

/* redflag — orange rule + orange label */
.callout--redflag .callout__body  { border-top-color: var(--bindly-orange); }
.callout--redflag .callout__label { color: var(--bindly-orange); }

/* warning — orange rule + orange label (unnumbered, no tab) */
.callout--warning .callout__body  { border-top-color: var(--bindly-orange); }
.callout--warning .callout__label { color: var(--bindly-orange); }

/* tip — violet rule + violet label */
.callout--tip .callout__body  { border-top-color: var(--bindly-violet); }
.callout--tip .callout__label { color: var(--bindly-violet); }

/* note — plum rule, violet label (intentional per spec) */
.callout--note .callout__body  { border-top-color: var(--bindly-plum); }
.callout--note .callout__label { color: var(--bindly-violet); }

/* definition — plum rule + plum label */
.callout--definition .callout__body  { border-top-color: var(--bindly-plum); }
.callout--definition .callout__label { color: var(--bindly-plum); }

/* takeaway — plum rule + plum label */
.callout--takeaway .callout__body  { border-top-color: var(--bindly-plum); }
.callout--takeaway .callout__label { color: var(--bindly-plum); }

/* shortcut — violet rule + violet label */
.callout--shortcut .callout__body  { border-top-color: var(--bindly-violet); }
.callout--shortcut .callout__label { color: var(--bindly-violet); }

/* ---------- F. Pull quote ---------- */

.pull-quote {
  margin: 64px 0 56px;
  margin-left: -80px;
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 24px;
  align-items: start;
}

.pull-quote__gutter {
  text-align: right;
  padding-top: 6px;
}

.pull-quote blockquote {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1.28;
  color: var(--bindly-plum);
  margin: 0;
  letter-spacing: -0.014em;
}

.pull-quote figcaption {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--bindly-plum-muted);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- G. Post figure ---------- */

.post-figure {
  margin: 48px 0;
  margin-left: -80px;
  display: grid;
  grid-template-columns: 80px 1fr;
  column-gap: 24px;
  align-items: start;
}

.post-figure__label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bindly-plum-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  line-height: 1;
  text-align: right;
  justify-self: end;
  padding-top: 4px;
}

.post-figure img {
  width: 100%;
  display: block;
}

.post-figure figcaption {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--bindly-hairline);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bindly-plum-dark);
}

/* ---------- H. Mid-CTA block ---------- */

.mid-cta {
  background: var(--bindly-plum);
  color: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

.mid-cta__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bindly-violet);
  margin-bottom: 10px;
}

.mid-cta__title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.25;
}

.mid-cta__desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

/* ======================================================
   ARTICLE RESPONSIVE — article system only, ≤640px
   Uses !important to override element-selector rules
   in the 768px block above.
   ====================================================== */

@media (max-width: 640px) {

  /* A. Prose headings */
  .post-h2 { font-size: 26px !important; }
  .post-h3 { font-size: 19px !important; }

  /* B + E. Callout: collapse gutter to single column */
  .callout {
    grid-template-columns: 1fr !important;
    margin-left: 0 !important;
    row-gap: 12px;
  }
  .callout__label {
    writing-mode: horizontal-tb !important;
    transform: none !important;
    max-height: none;
    text-align: left;
    justify-self: start;
    padding-top: 0;
  }
  .callout__tab {
    position: static !important;
    display: inline-flex;
    margin-bottom: 8px;
  }

  /* F. Pull quote */
  .pull-quote {
    margin-left: 0 !important;
    grid-template-columns: 1fr !important;
  }
  .pull-quote__gutter { display: none; }
  .pull-quote blockquote { font-size: 22px; }

  /* G. Post figure */
  .post-figure {
    margin-left: 0 !important;
    grid-template-columns: 1fr !important;
  }
  .post-figure__label { display: none; }

  /* H. Mid-CTA */
  .mid-cta {
    grid-template-columns: 1fr !important;
    padding: 28px 24px;
  }
  .mid-cta .btn--cta {
    width: 100%;
    justify-content: center;
  }

  /* I. Post table */
  .post-body table { font-size: 14px; }
  .post-body th,
  .post-body td { padding: 10px 12px; }

}

/* ─── WPForms: contact form #326 ─────────────────────────────────────────── */

/* A. Input fields — base */
#wpforms-326 input[type=text],
#wpforms-326 input[type=email],
#wpforms-326 textarea {
  border: 1px solid var(--bindly-hairline-strong);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--bindly-plum);
  background: var(--bindly-parchment);
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

/* B. Input fields — focus */
#wpforms-326 input[type=text]:focus,
#wpforms-326 input[type=email]:focus,
#wpforms-326 textarea:focus {
  border-color: var(--bindly-violet);
  outline: none;
  box-shadow: 0 0 0 3px rgba(155,111,212,0.15);
}

/* C. Textarea specific */
#wpforms-326 textarea {
  min-height: 140px;
  resize: vertical;
}

/* D. Field labels */
#wpforms-326 .wpforms-field-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--bindly-plum);
  margin-bottom: 6px;
  display: block;
  font-family: var(--font-sans);
}

/* E. Sub-labels */
#wpforms-326 .wpforms-field-sublabel {
  font-size: 12px;
  color: var(--bindly-plum-dark);
  opacity: 0.7;
  margin-top: 4px;
}

/* F. Required label */
#wpforms-326 .wpforms-required-label {
  color: var(--bindly-orange);
  margin-left: 2px;
}

/* G. Field spacing */
#wpforms-326 .wpforms-field {
  margin-bottom: 28px;
}

/* G2. Name field row */
#wpforms-326 .wpforms-field-row {
  display: flex !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* G3. Name column blocks */
#wpforms-326 .wpforms-field-row-block {
  flex: 1 !important;
  min-width: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* G3b. Override wpforms-one-half width */
#wpforms-326 .wpforms-one-half {
  width: auto !important;
}

/* G4. Email input full width */
#wpforms-326 .wpforms-field-email input {
  width: 100%;
  box-sizing: border-box;
}

/* H. Submit button — base */
#wpforms-326 .wpforms-submit {
  background: var(--bindly-orange);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.15s;
  width: 100%;
}

/* I. Submit button — hover and disabled */
#wpforms-326 .wpforms-submit:hover { opacity: 0.88; }
#wpforms-326 .wpforms-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* J. Error messages */
#wpforms-326 .wpforms-error {
  font-size: 13px;
  color: #b91c1c;
  margin-top: 4px;
  display: block;
}

/* K. Form container */
#wpforms-326 .wpforms-form { margin: 0; }
