/* ==========================================================================
   Build Costs — WordPress additions
   Loaded after styles.css (the design, unchanged). Rules here win over
   same-specificity rules in styles.css, *including those inside its media
   queries*, so any responsive override for a rule defined here lives here too,
   directly after its base rule.
   ========================================================================== */

/* ---------- Images ----------
   WordPress prints width/height attributes; without height:auto every scaled
   image would stretch. Component rules (e.g. .hero__img img) are more specific
   and still set their own heights. */
img { height: auto; }

/* ---------- Admin bar vs sticky header ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* In-page links (#documents, #enquiry, Gravity Forms' #gf_ anchors) would
   otherwise scroll their target underneath the sticky header. */
:root { --bc-header-h: 104px; --bc-adminbar-h: 0px; }
@media (max-width: 640px) { :root { --bc-header-h: 84px; } }
.admin-bar { --bc-adminbar-h: 32px; }
@media (max-width: 782px) { .admin-bar { --bc-adminbar-h: 46px; } }
@media (max-width: 600px) { .admin-bar { --bc-adminbar-h: 0px; } }
main [id] { scroll-margin-top: calc(var(--bc-header-h) + var(--bc-adminbar-h) + 20px); }

/* ---------- Container widths & section spacing (Section settings) ---------- */
.wrap--narrow { width: min(100% - 32px, 860px); }
.wrap--wide { width: min(100% - 32px, 1400px); }
.bc-pt-tight { padding-top: clamp(44px, 6vw, 70px); }
.bc-pb-tight { padding-bottom: clamp(44px, 6vw, 70px); }
.bc-pt-none { padding-top: 0; }
.bc-pb-none { padding-bottom: 0; }

/* Hero roofline edge matches the next section's background (set automatically). */
.hero.alt-next::after { background: var(--bg-alt); }
.hero.dark-next::after, .page-hero.dark-next::after { background: var(--navy); }

/* ---------- Font Awesome icons in place of the design's inline SVGs ----------
   The design sizes <svg> by width/height; Font Awesome <i> needs font-size. */
.topbar i { font-size: 14px; color: var(--sky); width: 15px; text-align: center; }
.btn i { font-size: 15px; }
.link-arrow i { font-size: 15px; transition: transform .15s; }
.link-arrow:hover i { transform: translateX(4px); }
.nav .chev { font-size: 11px; line-height: 1; transition: transform .2s; }
.dropdown .dd-icon i { font-size: 16px; }
.menu-toggle i, .nav-close i { font-size: 26px; width: 28px; text-align: center; }
.badge-float i { font-size: 24px; color: var(--sky); }
.icon-badge i { font-size: 22px; }
.type-tile .icon-badge i { font-size: 19px; }
.diff-points .icon-badge i { font-size: 17px; }
.service-list .icon-badge i { font-size: 16px; }
.contact-list .icon-badge i { font-size: 19px; }
.trust-strip li i { font-size: 18px; color: var(--blue); }
.quote-icon i { font-size: 30px; }
.express__icon i { font-size: 30px; }
.offer-badge__icon i { font-size: 13px; }
.footer-contact i { font-size: 16px; color: var(--blue); width: 18px; text-align: center; flex: none; }
.socials i { font-size: 17px; }
.whatsapp-float i { font-size: 30px; }
.chip i, .bc-pagination i { font-size: 14px; }

/* ---------- Placeholders & editor notices ---------- */
.bc-placeholder {
  width: 100%; height: 100%; min-height: 160px; display: grid; place-items: center;
  background: repeating-linear-gradient(135deg, var(--bg-alt) 0 14px, #e9eef8 14px 28px);
  color: var(--muted); font-size: .85rem; font-weight: 600; text-align: center; padding: 16px;
}
.split__media .bc-placeholder { aspect-ratio: 5 / 4.2; border-radius: var(--radius-lg); }
.post-card__img .bc-placeholder, .price-card__img .bc-placeholder, .audience-card__img .bc-placeholder { min-height: 0; }
.bc-editor-notice {
  margin-block: 16px; padding: 12px 16px; border-radius: 10px;
  background: #fff4e0; border: 1px dashed #f0b85a; color: #7a4a00; font-size: .9rem;
}

/* ---------- Process steps: stacked cards variant ---------- */
.bc-steps-cards { max-width: 860px; margin-inline: auto; }
.bc-step-card { display: flex; gap: 22px; align-items: flex-start; }
.bc-step-card .step__num { flex: none; margin: 0; }

/* ---------- Page cards: compact tiles ("We also work with") ---------- */
.section-head.bc-head-sm { margin-bottom: 28px; }
.bc-tile-card { padding: 22px; }
.bc-tile-card .icon-badge { margin-bottom: 12px; }

/* Linked cards: keep body text colour (anchors are blue by default). */
a.card { display: block; color: var(--text); }
a.card:hover { color: var(--text); }

/* ---------- Project types: highlighted link tile ---------- */
.type-tile--cta { background: var(--navy); border-color: var(--navy); }
.type-tile--cta .icon-badge { background: rgba(255,255,255,.15); color: #fff; }
.type-tile--cta h4 { color: #fff; }
.type-tile--cta p { color: #cfd3ff; }
a.type-tile--cta:hover { background: var(--navy-deep); }

/* ---------- Split layouts ---------- */
/* The gradient block behind split images sits at z-index:-1. Without its own
   stacking context it paints *under* the section background, so it vanished on
   grey/navy sections whenever the scroll animation (whose will-change happened
   to create one) was off, e.g. with "reduce motion". */
.split__media { isolation: isolate; }
.side-card--static { position: static; }
.split.bc-split--top { align-items: start; }
.split.bc-split--form { align-items: start; grid-template-columns: 1.6fr 1fr; }
@media (max-width: 900px) { .split.bc-split--form { grid-template-columns: 1fr; } }
.split .wp-block-image, .split p:empty { margin: 0; }

/* ---------- Documents on a light background ---------- */
.section:not(.band-dark) .doc-card { background: #fff; border-color: var(--line); }
.section:not(.band-dark) .doc-card p, .section:not(.band-dark) .check-list--light li { color: var(--text); }
.section:not(.band-dark) .doc-details { border-top-color: var(--line); }
.section:not(.band-dark) .doc-details summary { color: var(--ink); }
.section:not(.band-dark) .check-list--light li::before { background-color: var(--sky-soft); }
.section:not(.band-dark) .samples-cta { background: var(--bg-alt); border-color: var(--line); }
.section:not(.band-dark) .samples-cta p { color: var(--text); }
.section:not(.band-dark) .samples-cta strong { color: var(--ink); }

/* ---------- Pricing / testimonials ---------- */
.pricing-note p { margin: 0; }
.avatar { overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Rich text ---------- */
.bc-content > *:first-child { margin-top: 0; }
.bc-content h2, .bc-content h3 { margin-top: 1.4em; }
.bc-content ul, .bc-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.bc-content li { margin-bottom: .4em; }
.bc-content a { text-decoration: underline; text-underline-offset: 3px; }
.bc-content img { border-radius: var(--radius); }
.bc-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--blue); color: var(--ink); font-size: 1.1rem; }
.bc-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; }
.bc-content th, .bc-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.bc-content .alignleft { float: left; margin: 0 24px 16px 0; }
.bc-content .alignright { float: right; margin: 0 0 16px 24px; }
.bc-content .aligncenter { margin-inline: auto; }
.bc-content .wp-caption-text, .bc-content figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.note-box > *:last-child { margin-bottom: 0; }

/* ---------- Blog ---------- */
.page-hero__meta { font-size: .95rem; opacity: .85; margin: 0; }
.chip-row--links .chip { display: inline-block; }
.bc-pagination { margin-top: 40px; }
.bc-pagination ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.bc-pagination a, .bc-pagination span {
  display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); font-family: var(--font-head); font-weight: 700;
}
.bc-pagination a:hover, .bc-pagination .current { background: var(--navy); border-color: var(--navy); color: #fff; }
.bc-pagination .dots { border: 0; background: none; }
.bc-post-nav { margin-top: 50px; }
.bc-post-nav .nav-links { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.bc-post-nav a { font-family: var(--font-head); font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.bc-post-nav .nav-next { margin-left: auto; text-align: right; }
.bc-search-form { margin-bottom: 36px; }
.bc-search-form form { display: flex; gap: 8px; max-width: 560px; }
.bc-search-form label { flex: 1; }
.bc-search-form input[type=search] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); }
.bc-search-form input[type=submit] { font-family: var(--font-head); font-weight: 700; padding: 12px 22px; border-radius: 999px; border: 0; background: var(--navy); color: #fff; cursor: pointer; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

/* ==========================================================================
   Gravity Forms
   Forms are embedded with the "gravity-theme" (2.5) form theme inside .bc-gf,
   so these ordinary-specificity rules style them; no !important needed. If a
   form is switched to the Orbital theme, its inline CSS variables (scoped to
   #gform_wrapper_{id}) would need overriding with !important instead.
   ========================================================================== */
.bc-gf .gform_wrapper.gravity-theme { margin: 0; }
.bc-gf .gform_wrapper.gravity-theme .gform_fields { grid-row-gap: 18px; }
.bc-gf .gform_wrapper.gravity-theme .gfield_label,
.bc-gf .gform_wrapper.gravity-theme legend.gfield_label {
  display: block; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 7px; padding: 0;
}
.bc-gf .gform_wrapper.gravity-theme .gfield_required { color: var(--blue); }
.bc-gf .gform_wrapper.gravity-theme .gfield_required .gfield_required_text { font-weight: 500; color: var(--muted); font-size: .85em; }
.bc-gf .gform_wrapper.gravity-theme input:not([type=radio]):not([type=checkbox]):not([type=submit]):not([type=button]):not([type=file]):not([type=image]),
.bc-gf .gform_wrapper.gravity-theme select,
.bc-gf .gform_wrapper.gravity-theme textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 15px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; transition: border-color .15s, box-shadow .15s; margin: 0;
}
.bc-gf .gform_wrapper.gravity-theme textarea { min-height: 130px; resize: vertical; }
.bc-gf .gform_wrapper.gravity-theme textarea.small { min-height: 90px; }
.bc-gf .gform_wrapper.gravity-theme input:focus,
.bc-gf .gform_wrapper.gravity-theme select:focus,
.bc-gf .gform_wrapper.gravity-theme textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(26,154,242,.15); }
.bc-gf .gform_wrapper.gravity-theme .gfield_description,
.bc-gf .gform_wrapper.gravity-theme .gform_fileupload_rules,
.bc-gf .gform_wrapper.gravity-theme .gfield_html { font-size: .85rem; color: var(--muted); padding-top: 6px; }
.bc-gf .gform_wrapper.gravity-theme .gsection { border-bottom: 0; padding: 0; margin: 0; }
.bc-gf .gform_wrapper.gravity-theme .gsection_title { font-size: 1.3rem; margin: 0 0 4px; }
.bc-gf .gform_wrapper.gravity-theme .gsection_description { color: var(--muted); padding: 0; }

/* Buttons: match .btn--primary / .btn--ghost */
.bc-gf .gform_wrapper.gravity-theme .gform_footer,
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer { margin: 26px 0 0; padding: 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }
.bc-gf .gform_wrapper.gravity-theme .gform_footer input[type=submit],
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer input[type=submit],
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer input[type=button],
.bc-gf .gform_wrapper.gravity-theme .gform_footer button,
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer button {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem; line-height: 1.4;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent; cursor: pointer; margin: 0;
  background: var(--blue); color: #fff; box-shadow: 0 10px 24px -10px rgba(26,154,242,.8);
  transition: transform .15s ease, background .15s ease;
}
.bc-gf .gform_wrapper.gravity-theme .gform_footer input[type=submit]:hover,
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer input:hover,
.bc-gf .gform_wrapper.gravity-theme .gform_footer button:hover { background: #0c86dc; transform: translateY(-2px); }
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button {
  margin-right: auto; background: #fff; color: var(--navy); border-color: var(--line); box-shadow: none;
}
.bc-gf .gform_wrapper.gravity-theme .gform_page_footer .gform_previous_button:hover { background: #fff; border-color: var(--navy); }
.bc-gf .gform_wrapper.gravity-theme .gform_ajax_spinner { align-self: center; }

/* Multi-page progress: styled like the design's stepper bars */
.bc-gf .gform_wrapper.gravity-theme .gf_page_steps { display: flex; gap: 8px; margin: 0 0 30px; padding: 0; border: 0; }
.bc-gf .gform_wrapper.gravity-theme .gf_step { flex: 1; display: block; margin: 0; padding: 0; opacity: 1; }
.bc-gf .gform_wrapper.gravity-theme .gf_step::before {
  content: ""; display: block; height: 6px; border-radius: 99px; background: var(--line); margin-bottom: 8px; transition: background .2s;
}
.bc-gf .gform_wrapper.gravity-theme .gf_step_active::before,
.bc-gf .gform_wrapper.gravity-theme .gf_step_completed::before { background: var(--blue); }
.bc-gf .gform_wrapper.gravity-theme .gf_step_number { display: none; }
.bc-gf .gform_wrapper.gravity-theme .gf_step_label { display: block; padding: 0; font-family: var(--font-head); font-weight: 700; font-size: .8rem; color: var(--muted); }
.bc-gf .gform_wrapper.gravity-theme .gf_step_active .gf_step_label { color: var(--navy); }
@media (max-width: 640px) { .bc-gf .gform_wrapper.gravity-theme .gf_step_label { display: none; } }
.bc-gf .gform_wrapper.gravity-theme .gf_progressbar_wrapper { margin-bottom: 30px; }
.bc-gf .gform_wrapper.gravity-theme .gf_progressbar_percentage { background: var(--blue); }

/* Choice cards: add the CSS class "bc-choice-cards" to a radio/checkbox field */
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gfield_radio,
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gfield_checkbox {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
}
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gchoice { position: relative; display: block; margin: 0; }
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gchoice input { position: absolute; opacity: 0; pointer-events: none; }
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gchoice label {
  display: flex; align-items: center; justify-content: center; text-align: center; max-width: none; width: 100%; height: 100%;
  padding: 18px 12px; margin: 0; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .93rem; transition: .15s;
}
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gchoice label:hover { border-color: var(--blue); }
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gchoice input:checked + label {
  border-color: var(--blue); background: var(--sky-soft); box-shadow: 0 0 0 3px rgba(26,154,242,.15);
}
.bc-gf .gform_wrapper.gravity-theme .bc-choice-cards .gchoice input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Plain radios / checkboxes */
.bc-gf .gform_wrapper.gravity-theme .gfield:not(.bc-choice-cards) .gchoice { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bc-gf .gform_wrapper.gravity-theme .gfield:not(.bc-choice-cards) .gchoice input { accent-color: var(--blue); width: 18px; height: 18px; margin: 0; }

/* File upload: styled like the design's dropzone */
.bc-gf .gform_wrapper.gravity-theme .gform_drop_area,
.bc-gf .gform_wrapper.gravity-theme .ginput_container_fileupload input[type=file] {
  width: 100%; border: 2px dashed #c7d6ef; border-radius: 14px; padding: 30px; text-align: center; background: var(--bg-alt); transition: .15s;
}
.bc-gf .gform_wrapper.gravity-theme .gform_drop_area:hover { border-color: var(--blue); }
.bc-gf .gform_wrapper.gravity-theme .gform_drop_instructions { display: block; margin-bottom: 10px; font-weight: 600; color: var(--ink); }
.bc-gf .gform_wrapper.gravity-theme .gform_button_select_files {
  font-family: var(--font-head); font-weight: 700; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--navy); cursor: pointer;
}
.bc-gf .gform_wrapper.gravity-theme .ginput_preview { font-size: .9rem; color: var(--navy); font-weight: 600; margin-top: 8px; }

/* Validation & confirmation */
.bc-gf .gform_wrapper.gravity-theme .gform_validation_errors {
  border-radius: 10px; border: 1px solid #f3b4ae; background: #fdf0ef; box-shadow: none; padding: 14px 18px; margin-bottom: 20px;
}
.bc-gf .gform_wrapper.gravity-theme .gform_validation_errors > h2 { font-size: .95rem; color: #a3271b; margin: 0; }
.bc-gf .gform_wrapper.gravity-theme .gfield_error input,
.bc-gf .gform_wrapper.gravity-theme .gfield_error select,
.bc-gf .gform_wrapper.gravity-theme .gfield_error textarea { border-color: #d64545; }
.bc-gf .gform_wrapper.gravity-theme .validation_message { background: none; border: 0; padding: 6px 0 0; margin: 0; color: #c0392b; font-size: .85rem; }
.bc-gf .gform_confirmation_message { text-align: center; padding: 30px 10px; font-size: 1.05rem; color: var(--ink); }

/* Newsletter forms (footer + newsletter panel): email and button on one row */
.newsletter--gf { display: block; }
.newsletter--gf .gform_wrapper.gravity-theme form { display: flex; gap: 8px; align-items: flex-start; }
.newsletter--gf .gform_wrapper.gravity-theme .gform_body { flex: 1; min-width: 0; }
.newsletter--gf .gform_wrapper.gravity-theme .gform_fields { display: block; }
.newsletter--gf .gform_wrapper.gravity-theme .gfield_label { position: absolute; left: -9999px; }
.newsletter--gf .gform_wrapper.gravity-theme input[type=email] { padding: 12px 14px; }
.newsletter--gf .gform_wrapper.gravity-theme .gform_footer { margin: 0; flex: none; }
.newsletter--gf .gform_wrapper.gravity-theme .gform_footer input[type=submit],
.newsletter--gf .gform_wrapper.gravity-theme .gform_footer button { background: var(--navy); box-shadow: none; padding: 12px 20px; font-size: .95rem; }
.newsletter--gf .gform_wrapper.gravity-theme .gform_footer input[type=submit]:hover,
.newsletter--gf .gform_wrapper.gravity-theme .gform_footer button:hover { background: var(--navy-deep); }
.newsletter--gf .gform_confirmation_message { padding: 8px 0; text-align: left; font-weight: 700; }
.site-footer .footer-newsletter-title { margin-top: 24px; }
