/* ============================
   Blog shared styles — blog.css
   ============================ */

/* Hero image — consistent full-width across all blogs */
.blog_hero-image {
  width: 100% !important;
  display: block !important;
  object-fit: cover !important;
  height: auto !important;
}

/* Blog hero text — center alignment */
.section_blog-hero .post-title,
.section_blog-hero .title-tag,
.section_blog-hero .date-tag {
  text-align: center;
}

/* 1a. Shrink nav links so all 8 items fit on one row */
.nav-menu .navbar_link {
  font-size: 0.82rem;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

/* 1. Navbar button-wrapper fix */
.navbar_button-wrapper {
  width: auto !important;
  gap: 0.5rem;
  align-items: center;
  display: flex !important;
}
.navbar_button-wrapper .navbar_link:not(.button-primary) {
  padding: 0.4rem 0.5rem;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* 2. Blog content typography spacing */
.w-richtext h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.875rem;
  line-height: 1.3;
}
.w-richtext h3 {
  margin-top: 2rem;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}
.w-richtext p {
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
.w-richtext ul,
.w-richtext ol {
  margin-bottom: 1.25rem;
  margin-top: 0.25rem;
  padding-left: 1.5rem;
}
.w-richtext li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}
/* Extra space between intro paragraph and following list */
.w-richtext p + ul,
.w-richtext p + ol {
  margin-top: 0.875rem;
}

/* 3. FAQ section readability */
.w-richtext .faq-block {
  margin: 1.5rem 0;
}
.w-richtext .faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid #e2e8f0;
}
.w-richtext .faq-item:last-child {
  border-bottom: none;
}
.w-richtext .faq-item .faq-q {
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  margin-bottom: 0.45rem;
  line-height: 1.4;
}
.w-richtext .faq-item .faq-a {
  color: #475569;
  line-height: 1.7;
}

/* 4. Mobile nav open state (shared from main) */
.w-nav-menu.w--nav-menu-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 0.5rem 0;
  border-top: 1px solid #f1f5f9;
}
.w-nav-menu.w--nav-menu-open .navbar_link {
  padding: 0.75rem 1.5rem !important;
  border-bottom: 1px solid #f8fafc;
  display: block;
  width: 100%;
}
.w-nav-button.w--open { color: #2563eb; }

/* 5. FAQ accordion (main index, reused) */
.faq_item-wrapper.is-open .faq_answer { display: block; }
.faq_item-wrapper .fa-chevron-down { transition: transform 0.25s ease; }
.faq_item-wrapper.is-open .fa-chevron-down { transform: rotate(180deg); }
.faq_item-title-wrapper { cursor: pointer; }


/* FAQ block spacing fixes */
.w-richtext .faq-block {
  margin: 1rem 0 0.5rem;
}
.w-richtext .faq-block + p,
.w-richtext .faq-block + h2,
.w-richtext .faq-block + h3 {
  margin-top: 1.25rem;
}

/* Q8 ordered list in main FAQ */
.faq_answer ol {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}
.faq_answer ol li {
  margin-bottom: 0.35rem;
  line-height: 1.65;
}
.faq_answer p {
  margin: 0 0 0.4rem;
}

/* Blog hero heading - force center on all text incl. multi-line titles */
.section_blog-hero .heading-wrapper {
  text-align: center;
}
.section_blog-hero .post-title {
  text-align: center !important;
  width: 100%;
}
.section_blog-hero .home-paragraph {
  text-align: center !important;
}
.section_blog-hero .title-wrapper {
  text-align: center;
}

/* ── Shared modal overrides (matches home page styling exactly) ── */
.modal-card {
  max-height: 97vh !important;
  overflow-y: hidden !important;
  padding: 0.9rem 1.25rem !important;
}
/* Override Webflow's fixed height:38px on inputs */
.modal-card .form_text-field {
  height: auto !important;
  min-height: 2.1rem !important;
  padding: 0.35rem 0.65rem !important;
  font-size: 0.84rem !important;
  margin-bottom: 0 !important;
}
/* Close button — match home page size & position */
.modal-close {
  top: 0.75rem !important;
  right: 0.75rem !important;
  width: 2rem !important;
  height: 2rem !important;
  font-size: 0.9rem !important;
}
.modal-header { margin-bottom: 0.35rem !important; text-align: center !important; padding: 0 2.5rem !important; }
.modal-header .title-tag { font-size: 0.65rem !important; line-height: 1.3 !important; }
.modal-header .home-h2 { font-size: 1.05rem !important; margin-bottom: 0.05rem !important; }
.modal-header__sub { font-size: 0.73rem !important; }
.modal-form__grid { gap: 0.3rem !important; margin-bottom: 0.3rem !important; }
.modal-card .is-medium { font-size: 0.75rem !important; }

/* Modal footer — stacked vertically like home page */
.modal-footer {
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.3rem !important;
  margin-top: 0.3rem !important;
}
.modal-footer .button-primary {
  width: 100% !important;
  text-align: center !important;
  margin: 0 !important;
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  font-size: 0.88rem !important;
}
.modal-footer__phone { font-size: 0.78rem !important; color: #94a3b8 !important; }

/* Price card — match home page exactly */
.price-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
  border: 2px solid #2563eb !important;
  border-radius: 10px !important;
  padding: 0.2rem 0.75rem !important;
  margin-top: 0.3rem !important;
  margin-bottom: 0.15rem !important;
}
.price-card__label {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 0.05rem !important;
}
.price-card__amount {
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  color: #2563eb !important;
  line-height: 1.1 !important;
}
.price-card__breakdown {
  font-size: 0.72rem !important;
  color: #475569 !important;
  margin-top: 0.1rem !important;
}
.price-card__discount {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #16a34a !important;
  margin-top: 0.05rem !important;
  min-height: 0 !important;
}
.modal-close { z-index: 5 !important; }

/* Company toggle — smaller button, input to the right */
.company-row { display: flex !important; align-items: center !important; gap: 0.4rem !important; }
.company-toggle-btn {
  display: flex !important; align-items: center !important; gap: 0.35rem !important; cursor: pointer !important;
  padding: 0.22rem 0.45rem !important; border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important; background: #f8fafc !important;
  font-size: 0.7rem !important; font-weight: 500 !important; color: #475569 !important;
  transition: border-color 0.15s, background 0.15s !important;
  white-space: nowrap !important; flex-shrink: 0 !important; text-align: left !important;
}
.company-toggle-btn:hover, .company-toggle-btn.is-active {
  border-color: #2563eb !important; background: #eff6ff !important; color: #2563eb !important;
}
.company-name-field { flex: 1 !important; min-width: 0 !important; width: auto !important; height: auto !important; margin-bottom: 0 !important; }

/* Price card note (discount info) */
.price-card-note { margin-top: 0.1rem !important; margin-bottom: 0.05rem !important; }
.price-card-note__text { display: block !important; font-size: 0.63rem !important; color: #94a3b8 !important; margin-top: 0.06rem !important; line-height: 1.4 !important; }

/* Insurance note — class-based show/hide (no inline style conflict) */
.modal-overlay .insurance-note { display: none !important; }
.modal-overlay .insurance-note.is-visible { display: block !important; }

/* Delivery toggle compact */
.delivery-toggle__text { font-size: 0.8rem !important; }
.delivery-toggle__rate { font-size: 0.72rem !important; }
.insurance-toggle__text { font-size: 0.8rem !important; }

/* Mobile bottom sheet */
@media (max-width: 767px) {
  .modal-overlay { align-items: flex-end !important; padding: 0 !important; }
  .modal-card {
    border-radius: 18px 18px 0 0 !important;
    max-width: 100% !important;
    max-height: 96vh !important;
    padding: 2.75rem 1rem 1rem !important;
  }
}
