/* ============================================================================
   Components — buttons, content blocks, icon badges, headings, panels, forms.
   Values reproduce the legacy theme.
   ========================================================================== */

/* ---- Buttons ---- */
.btn {
  display: inline-block; margin-bottom: 0; font-weight: 400; text-align: center;
  vertical-align: middle; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap; padding: 6px 15px; font-size: 14px; line-height: 1.42857143;
  border-radius: var(--radius); user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .btn:focus { text-decoration: none; }
.btn-lg { padding: 10px 16px; font-size: 17px; line-height: 1.33; }
.btn-block { display: block; width: 100%; padding-left: 0; padding-right: 0; }
.btn-block + .btn-block { margin-top: 10px; }

.btn-primary { color: #fff; background: var(--primary); border-color: var(--primary-border); }
.btn-primary:hover, .btn-primary:focus { color: #fff; background: var(--primary-hover); border-color: #226998; }
.btn-midnightblue { color: #fff; background: var(--midnight); border-color: var(--midnight-border); }
.btn-midnightblue:hover, .btn-midnightblue:focus { color: #fff; background: var(--midnight-hover); border-color: #1e2a36; }
.btn-default { color: var(--btn-default-text); background: var(--btn-default-bg); border-color: var(--btn-default-border); }
.btn-default:hover, .btn-default:focus { color: var(--heading); background: #dde4e5; border-color: #a9b3b6; }
.btn-inverse { color: #fff; background: var(--inverse); border-color: var(--inverse-border); }
.btn-inverse:hover, .btn-inverse:focus { color: #fff; background: #808f90; border-color: #6c7a7b; }
.btn-default-alt { color: #e8ecec; background: transparent; border: 1px solid #e8ecec; }
.btn-default-alt:hover, .btn-default-alt:focus { color: #fff; background: #e8ecec; border-color: #e8ecec; color: var(--heading); }
.btn-inverse-alt { color: var(--inverse); background: transparent; border: 1px solid var(--inverse); }
.btn-inverse-alt:hover, .btn-inverse-alt:focus { color: #fff; background: var(--inverse); }
.btn-danger { color: #fff; background: #e74c3c; border-color: #c0392b; }
.btn-danger:hover { color: #fff; background: #d62c1a; }
.btn-info { color: #fff; background: #5bc0de; border-color: #46b8da; }
.btn-info:hover, .btn-info:focus { color: #fff; background: #31b0d5; border-color: #269abc; }
.btn[disabled], .btn.disabled { opacity: .65; cursor: not-allowed; }

/* Pulsing CTA (replaces jQuery.pulsate) */
.pulsate { animation: ccpulse 2s ease-out infinite; }
@keyframes ccpulse { 0%{box-shadow:0 0 0 0 rgba(149,165,166,.5)} 70%{box-shadow:0 0 0 12px rgba(149,165,166,0)} 100%{box-shadow:0 0 0 0 rgba(149,165,166,0)} }

/* ---- Frontend content blocks ---- */
.frontend-block { padding: 80px 0; background: #fff; }
.frontend-block.gray-bg { background: var(--gray-bg); }
.frontend-block.dark-bg { background: var(--dark-bg); color: var(--dark-bg-text); box-shadow: inset 0 -2px 2px 0 rgba(0,0,0,.5); }
.frontend-block.dark-bg h1, .frontend-block.dark-bg h2, .frontend-block.dark-bg h3 { color: #fff; }

/* ---- Content box (service cards) ---- */
.content-box { margin-bottom: 40px; }
.box-centered { text-align: center; }
.content-box h2 { font-size: 22px; margin: 0 0 10px; }

/* Icon badges (replaces fa icon-highlight blocks) */
.icon-highlight { display: inline-block; width: 64px; height: 64px; line-height: 64px; text-align: center; margin-bottom: 20px; font-size: 28px; }
.icon-default { background: #5f7676; color: #fff !important; }
.icon-primary { background: var(--primary); color: #fff !important; }
.icon-rounded { border-radius: var(--radius); }

/* ---- Centered stripe heading ---- */
.heading { text-align: center; }
.heading h2, .heading h3 { display: inline-block; position: relative; padding: 0 12px; line-height: 34px; }
.heading.uppercase h2, .heading.uppercase h3 { text-transform: uppercase; letter-spacing: .1em; }
.heading.heading-stripe h2::before, .heading.heading-stripe h2::after,
.heading.heading-stripe h3::before, .heading.heading-stripe h3::after {
  content: ""; position: absolute; top: 50%; width: 40px; border-bottom: 1px solid var(--muted);
}
.heading.heading-stripe h2::before, .heading.heading-stripe h3::before { right: 100%; }
.heading.heading-stripe h2::after,  .heading.heading-stripe h3::after  { left: 100%; }

/* ---- Promo box ---- */
.promo-box { background: none; border: 0; padding: 0; text-align: center; }
.promo-box h1, .promo-box h2, .promo-box h3, .promo-box h4, .promo-box h5, .promo-box h6 { margin: 0; }
.frontend-block .promo-box .btn { text-transform: uppercase; letter-spacing: .1em; }

/* ---- Blockquote ---- */
blockquote { padding: 10px 20px; margin: 0 0 20px; font-size: 17.5px; border-left: 5px solid var(--border-light); color: var(--text); }

/* ---- Panels (FAQ / privacy / services accordions) ---- */
.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.panel-heading { padding: 12px 15px; border-bottom: 1px solid var(--border); background: #f4f7f7; border-radius: 3px 3px 0 0; }
.panel-title { margin: 0; font-size: 16px; font-weight: 400; }
.panel-title > a { color: var(--heading); display: block; }
.panel-body { padding: 15px; }
.panel-default > .panel-heading { color: var(--heading); }

/* Accordion (replaces Bootstrap collapse) */
.accordion-item .panel-title > a { position: relative; padding-right: 24px; cursor: pointer; }
.accordion-item .panel-title > a::after { content: "\f107"; font-family: FontAwesome; position: absolute; right: 0; transition: transform .2s; }
.accordion-item.open .panel-title > a::after { transform: rotate(180deg); }
.accordion-item .panel-body { display: none; }
.accordion-item.open .panel-body { display: block; }

/* ---- Breadcrumbs ---- */
.breadcrumb { padding: 4px 12px; margin: 0; list-style: none; background: var(--gray-bg); border-radius: var(--radius); display: inline-block; font-size: 13px; }
.breadcrumb li { display: inline-block; }
.breadcrumb li + li::before { content: "/"; padding: 0 8px; color: #ccc; }
.breadcrumb .fa-home { margin-right: 5px; }

/* ---- Page head banner (interior pages) — matches legacy .page-heading ---- */
.page-head { padding: 20px 0; margin-bottom: 40px; background: #f0f3f5; }
.page-head h1 { margin: 0; }
.page-head .breadcrumb { float: right; line-height: 2.7em; background: #f0f3f5; border: 0; }
@media (max-width: 767px){ .page-head .breadcrumb { float: none; line-height: 1.6; margin-top: 12px; } }

/* ---- "Headline" / panel-front (FAQ, privacy, accessibility, services) ---- */
.headline h1, .headline h2, .headline h3, .headline h4, .headline h5, .headline h6,
.panel-front .panel-heading h1, .panel-front .panel-heading h2, .panel-front .panel-heading h3,
.panel-front .panel-heading h4, .panel-front .panel-heading h5, .panel-front .panel-heading h6 {
  font-size: 20px; letter-spacing: .1em; font-weight: 300; text-transform: uppercase;
  display: inline-block; padding-bottom: 10px; margin: 0 0 -1px; border-bottom: 1px solid var(--primary);
}
.panel-front { margin-bottom: 30px; background: none; border: 0; box-shadow: none; }
.panel-front .panel-heading { display: block; margin: 0 0 20px; padding: 0; background: none; border-bottom: 1px solid #e6eaed; border-radius: 0; }
.panel-front .panel-body { padding: 0; }
.panel-front .panel-body li { margin-bottom: 8px; }

/* Bootstrap-style page-header — Resume page section headings (mixed-case, gray underline).
   Scoped to .page-resume so it doesn't affect office.php's own .page-header block. */
.page-resume .page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid var(--border-light); }
.page-resume .page-header:first-child { margin-top: 0; }
.page-resume .page-header h1, .page-resume .page-header h2, .page-resume .page-header h3 { margin: 0; font-weight: 500; color: var(--heading); }

/* Looser vertical rhythm on the long text pages (FAQ / Privacy / Accessibility), matching live. */
.page-doc .panel-front { margin-bottom: 50px; }

/* Services-card inline icon badges */
.icon-default-inverse { background: #fff; color: #5f7676 !important; }
.icon-focused { display: inline-block; height: 60px; width: 60px; line-height: 58px; text-align: center; border: 1px solid #5f7676; font-size: 24px; margin-right: 10px; vertical-align: middle; }
.content-box h1, .content-box h2, .content-box h3, .content-box h4, .content-box h5, .content-box h6 { margin-top: 0; }
.content-box h3 { font-size: 18px; }

/* Extra button variants */
.btn-primary-alt { color: var(--primary); background: transparent; border: 1px solid var(--primary); }
.btn-primary-alt:hover { color: #fff; background: var(--primary); }
.btn-large { padding: 10px 16px; font-size: 17px; }
.p30 { padding: 30px; }

/* ---- Forms ---- */
.form-group { margin-bottom: 15px; }
label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 600; color: var(--heading); }
.form-control {
  display: block; width: 100%; padding: 8px 12px; font-size: 14px; line-height: 1.42857143;
  color: #555; background: #fff; border: 1px solid #ccd1d1; border-radius: var(--radius);
  transition: border-color .15s ease; font-family: inherit;
}
.form-control:focus { border-color: var(--primary); outline: 0; }
textarea.form-control { min-height: 120px; }
.required { color: #e74c3c; }
.help-block { font-size: 12px; color: #999; margin-top: 4px; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; border: 1px solid transparent; }
.alert-success { background: #eafaf1; border-color: #abebc6; color: #1d8348; }
.alert-danger  { background: #fdedec; border-color: #f5b7b1; color: #b03a2e; }
.text-danger { color: #e74c3c; }

/* ---- Simple modal (demographics / scam) ---- */
.cc-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; z-index: 1040; }
.cc-modal-backdrop.open { display: block; }
.cc-modal { position: fixed; inset: 0; z-index: 1050; display: none; overflow-y: auto; padding: 40px 15px; }
.cc-modal.open { display: block; }
.cc-modal-dialog { background: #fff; max-width: 700px; margin: 0 auto; border-radius: var(--radius); box-shadow: 0 5px 30px rgba(0,0,0,.3); }
.cc-modal-header { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.cc-modal-header h3 { margin: 0; font-size: 18px; }
.cc-modal-close { background: none; border: 0; font-size: 22px; cursor: pointer; color: #999; line-height: 1; }
.cc-modal-body { padding: 20px; }
