/**
 * AUK CTA-strip global styles
 * ---------------------------
 * Enqueued sitewide by auk-cta-hydrator.php. Replaces the homepage-scoped
 * `.auk-contact-strip` and prior inline-per-page hero/CTA CSS.
 *
 * Provides three reusable classes:
 *   .auk-page-hero          — navy hero strip at top of a content page (H1)
 *   .auk-cta-strip          — navy CTA strip at bottom of a content page
 *   .auk-cta-strip__cta-row — flex layout for the canonical 3 CTAs
 *
 * Plus the button variants .tbg-cta-btn--quote/configure/book/wa/call which are
 * defensive duplicates of the per-button styling so any consuming page can
 * rely on this file alone without depending on theme-level CSS being loaded.
 *
 * Canonical 3-CTA markup pattern:
 *   <section class="auk-cta-strip">
 *     <div class="auk-cta-strip__inner">
 *       <h2>Heading</h2>
 *       <p>Lead paragraph.</p>
 *       <div class="auk-cta-strip__cta-row">
 *         <a class="tbg-cta-btn tbg-cta-btn--quote" href="/request-a-quote/">
 *           <span class="tbg-cta-btn__label">Request a quote</span></a>
 *         <a class="tbg-cta-btn tbg-cta-btn--book" href="/contact-us/">
 *           <span class="tbg-cta-btn__label">Send an enquiry</span></a>
 *         <a class="tbg-cta-btn tbg-cta-btn--call" href="tel:+443331385050">
 *           <span class="tbg-cta-btn__label">Call us</span></a>
 *       </div>
 *     </div>
 *   </section>
 *
 * Backward-compat (14 May 2026): row-level + button-variant selectors below
 * are aliased to FOUR wrapper variants so the same CSS renders identically
 * across the historical wrapper-class drift:
 *   .auk-cta-strip__cta-row   — canonical (current target for new pages)
 *   .tbg-cta-row              — sector + location pages (and others added
 *                                pre-CSS-standardisation)
 *   .auk-contact-strip__cta-row — homepage page-23 inline CSS pattern
 *   .auk-contact-strip__actions — legacy case-study template pattern
 * Future pages should still use the canonical `.auk-cta-strip__cta-row`.
 *
 * WhatsApp button colour note: the `auk-a11y-contrast.php` mu-plugin
 * overrides `--wa` to `#128C7E` (WhatsApp Brand Teal) with !important
 * for WCAG AA contrast (white-on-#25D366 is 2.74:1, fails AA). Our --wa
 * rule below matches that value as defence-in-depth so the visual stays
 * accessible even if the mu-plugin is ever disabled.
 */

/* -------------------- Page hero (navy top strip with H1) -------------------- */

.auk-page-hero {
  background: #103060;
  color: #fff;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.auk-page-hero h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 16px;
}

.auk-page-hero p {
  color: #fff;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
  opacity: 0.95;
}

/* -------------------- Bottom CTA strip ------------------------------------- */

.auk-cta-strip {
  background: #0066cc;
  color: #fff;
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
  text-align: center;
}

.auk-cta-strip__inner {
  max-width: 960px;
  margin: 0 auto;
}

.auk-cta-strip h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  margin: 0 0 16px;
}

.auk-cta-strip p {
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
  opacity: 0.95;
}

/* -------------------- 3-CTA row flex layout -------------------------------- */
/* Desktop: nowrap so all 3 buttons sit on one line.
   Mobile (<=600px): stack vertically full-width. */

.auk-cta-strip__cta-row,
.tbg-cta-row,
.auk-contact-strip__cta-row,
.auk-contact-strip__actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto 0;
}

.auk-cta-strip__cta-row .tbg-cta-btn,
.tbg-cta-row .tbg-cta-btn,
.auk-contact-strip__cta-row .tbg-cta-btn,
.auk-contact-strip__actions .tbg-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

/* Per-button icon prefix (added 14 May 2026 — restoring original design).
   Inline SVG via background-image data URI keeps the icon white-filled
   regardless of button background colour, with no HTML changes required
   on 145+ existing pages. flex-shrink:0 protects icon from squishing on
   the narrow Book-a-Call button when label personalises to "Book a call
   with Steve". Aliased to all 3 wrapper variants per the doc-comment. */
.auk-cta-strip__cta-row .tbg-cta-btn::before,
.tbg-cta-row .tbg-cta-btn::before,
.auk-contact-strip__cta-row .tbg-cta-btn::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  flex-shrink: 0;
}

.auk-cta-strip__cta-row .tbg-cta-btn--configure::before,
.auk-cta-strip__cta-row .tbg-cta-btn--quote::before,
.tbg-cta-row .tbg-cta-btn--configure::before,
.tbg-cta-row .tbg-cta-btn--quote::before,
.auk-contact-strip__cta-row .tbg-cta-btn--configure::before,
.auk-contact-strip__cta-row .tbg-cta-btn--quote::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M22.7 19l-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z'/></svg>");
}

.auk-cta-strip__cta-row .tbg-cta-btn--book::before,
.tbg-cta-row .tbg-cta-btn--book::before,
.auk-contact-strip__cta-row .tbg-cta-btn--book::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z'/></svg>");
}

.auk-cta-strip__cta-row .tbg-cta-btn--wa::before,
.tbg-cta-row .tbg-cta-btn--wa::before,
.auk-contact-strip__cta-row .tbg-cta-btn--wa::before,
.auk-cta-strip__cta-row .tbg-cta-btn--chat::before,
.tbg-cta-row .tbg-cta-btn--chat::before,
.auk-contact-strip__cta-row .tbg-cta-btn--chat::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 00-3.48-8.413z'/></svg>");
}

.auk-cta-strip__cta-row .tbg-cta-btn--call::before,
.tbg-cta-row .tbg-cta-btn--call::before,
.auk-contact-strip__cta-row .tbg-cta-btn--call::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'><path d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.28-.28.67-.36 1.02-.25 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/></svg>");
}

/* Per-button variant colours. Identical to the homepage's
   auk-contact-strip pattern (verified in homepage-23.after.html) so any
   page can adopt this canonical class set without visual drift. */

/* !important locks the brand colours against WordPress block-library CSS
   variables that can otherwise win the cascade. WhatsApp button matches
   the a11y mu-plugin's enforced #128C7E (WhatsApp Brand Teal) — see the
   doc-comment header for why. */
.auk-cta-strip__cta-row .tbg-cta-btn--configure,
.tbg-cta-row .tbg-cta-btn--configure,
.auk-contact-strip__cta-row .tbg-cta-btn--configure { background: #ea580c !important; color: #fff !important; }
.auk-cta-strip__cta-row .tbg-cta-btn--quote,
.tbg-cta-row .tbg-cta-btn--quote,
.auk-contact-strip__cta-row .tbg-cta-btn--quote { background: #c2410c !important; color: #fff !important; border-color: #c2410c !important; }
.auk-cta-strip__cta-row .tbg-cta-btn--quote:hover,
.auk-cta-strip__cta-row .tbg-cta-btn--quote:focus,
.tbg-cta-row .tbg-cta-btn--quote:hover,
.tbg-cta-row .tbg-cta-btn--quote:focus,
.auk-contact-strip__cta-row .tbg-cta-btn--quote:hover,
.auk-contact-strip__cta-row .tbg-cta-btn--quote:focus { background: #9a3412 !important; color: #fff !important; border-color: #9a3412 !important; }
.auk-cta-strip__cta-row .tbg-cta-btn--book,
.tbg-cta-row .tbg-cta-btn--book,
.auk-contact-strip__cta-row .tbg-cta-btn--book      { background: #103060 !important; color: #fff !important; border: 2px solid rgba(255,255,255,0.6); }
.auk-cta-strip__cta-row .tbg-cta-btn--wa,
.tbg-cta-row .tbg-cta-btn--wa,
.auk-contact-strip__cta-row .tbg-cta-btn--wa,
.auk-cta-strip__cta-row .tbg-cta-btn--chat,
.tbg-cta-row .tbg-cta-btn--chat,
.auk-contact-strip__cta-row .tbg-cta-btn--chat      { background: #0f766e !important; color: #fff !important; }
.auk-cta-strip__cta-row .tbg-cta-btn--call,
.tbg-cta-row .tbg-cta-btn--call,
.auk-contact-strip__cta-row .tbg-cta-btn--call      { background: #e87722 !important; color: #fff !important; }

/* Mobile collapse */
@media (max-width: 600px) {
  .auk-cta-strip__cta-row,
  .tbg-cta-row,
  .auk-contact-strip__cta-row,
  .auk-contact-strip__actions {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .auk-cta-strip__cta-row .tbg-cta-btn,
  .tbg-cta-row .tbg-cta-btn,
  .auk-contact-strip__cta-row .tbg-cta-btn,
  .auk-contact-strip__actions .tbg-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
