/* ==========================================================================
   COMPONENTS.CSS
   Every reusable UI component that isn't the header or footer:
   buttons, cards, section headings, breadcrumb, modals, floating
   action buttons, and the scroll-to-top button.
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-sm);
  font-weight: var(--fw-medium);
  font-size: var(--fs-body-sm);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: var(--shadow-sm);
  transition: background-color var(--transition-base), color var(--transition-base),
    border-color var(--transition-base), transform var(--transition-base),
    box-shadow var(--transition-base);
}

.btn svg {
  width: 16px;
  height: 16px;
}
.btn i {
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Primary — solid teal */
.btn--primary {
  background-color: var(--color-teal-brand);
  color: var(--color-white);
}
.btn--primary:hover {
  background-color: var(--color-teal-brand-hover);
}

/* Secondary — outline teal */
.btn--outline {
  background-color: transparent;
  color: var(--color-teal-brand);
  border: 1.5px solid var(--color-teal-brand);
}
.btn--outline:hover {
  background-color: var(--color-teal-brand);
  color: var(--color-white);
}

/* Dark solid — used on light backgrounds for secondary emphasis */
.btn--dark {
  background-color: var(--color-navy-900);
  color: var(--color-white);
}
.btn--dark:hover {
  background-color: var(--color-navy-700);
}

/* Gold — catalogue download CTA only, used sparingly per design system */
.btn--gold {
  background-color: var(--color-gold-500);
  color: var(--color-navy-900);
}
.btn--gold:hover {
  background-color: var(--color-gold-600);
}

/* White solid — used on dark CTA bands */
.btn--white {
  background-color: var(--color-white);
  color: var(--color-navy-900);
}
.btn--white:hover {
  background-color: var(--color-surface-light);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-label);
}

.btn--block {
  width: 100%;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

/* Loading state — toggled by forms.js while a submission is in
   flight. Hides the button's own text/icon and shows a spinner
   in their place via ::after, so no extra DOM element is needed
   in the HTML for this to work. */
.btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn.is-loading svg,
.btn.is-loading i {
  visibility: hidden;
}
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--overlay-white-40);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
.btn--outline.is-loading::after {
  border-color: var(--overlay-navy-40);
  border-top-color: var(--color-teal-500);
}

/* Text link with trailing arrow (e.g. "View All Products") */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-body-sm);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-teal-brand);
}
.link-arrow svg,
.link-arrow i {
  width: 14px;
  height: 14px;
  font-size: 12px;
  transition: transform var(--transition-fast);
}
.link-arrow:hover svg,
.link-arrow:hover i {
  transform: translateX(3px);
}

/* Icon-only round button (used for carousel prev/next, close buttons) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-white);
  color: var(--color-navy-900);
  box-shadow: var(--shadow-md);
  transition: background-color var(--transition-base), color var(--transition-base);
}
.btn-icon:hover {
  background-color: var(--color-teal-500);
  color: var(--color-white);
}
.btn-icon i {
  font-size: 16px;
}

/* ---------------------------------------------------------------------
   2. SECTION HEADING PATTERN
   --------------------------------------------------------------------- */
.section-heading {
  max-width: 640px;
  margin-bottom: var(--space-6);
}

.section-heading--center {
  margin-inline: auto;
  text-align: center;
}

.section-heading__title {
  margin-top: var(--space-1);
}

.section-heading__subtitle {
  margin-top: var(--space-3);
  color: var(--color-text-body);
}

/* ---------------------------------------------------------------------
   3. BREADCRUMB
   --------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
  color: var(--color-text-muted);
  padding-block: var(--space-4);
}

.breadcrumb a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--color-teal-brand);
}

.breadcrumb__current {
  color: var(--color-text-heading);
  font-weight: var(--fw-medium);
}

.breadcrumb__sep {
  color: var(--color-border);
  font-size: 10px;
}

/* ---------------------------------------------------------------------
   4. CARDS
   --------------------------------------------------------------------- */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card--hover:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-navy-900);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}
.card__icon svg {
  width: 22px;
  height: 22px;
}
.card__icon i {
  font-size: 20px;
}

/* .card__media, .card__title, .card__desc intentionally removed here
   (Phase 6 dead-code cleanup) — every actual card on the site uses a
   prefixed BEM variant instead (.category-card__title,
   .product-card__title, etc.), so these generic unprefixed versions
   were never consumed by any page. */

.card__specs {
  margin-bottom: var(--space-4);
}
.card__specs li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-regular);
  color: var(--color-text-body);
}
.card__specs li + li {
  margin-top: var(--space-2);
}
.card__specs svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  color: var(--color-teal-500);
}
.card__specs i {
  flex-shrink: 0;
  font-size: 12px;
  margin-top: 4px;
  color: var(--color-teal-500);
}

/* Root cause of the category-page product cards overflowing at 768 and
   992-1080px: from 480px this row switched to side-by-side, and its two
   nowrap buttons (156px + 154px + gap) made every card's min-content
   width 372px. With 1fr grid tracks that floor could not shrink, so two
   or three 372px cards needed more than the container had. The row now
   wraps (buttons keep their natural width and drop to a second line when
   the card is narrower) and the grid tracks are minmax(0, 1fr). */
.card__actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.card__actions .btn {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

/* Icon-badge feature column (why-choose-us style repeated block) */
.feature-item {
  text-align: center;
}
.feature-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-teal-100);
  color: var(--color-teal-600);
  margin-bottom: var(--space-4);
}
.text-on-dark .feature-item__icon {
  background-color: var(--overlay-white-10);
  color: var(--color-white);
}

/* Row layout variant — icon beside text (not centered above it),
   plain outline icon with no circle badge background. Matches the
   Home page's "Why Choose Us" dark-band treatment specifically,
   which looks different from the shared centered/badged .feature-item
   used elsewhere (e.g. About page) — scoped as a modifier so the base
   .feature-item stays correct for those other, different contexts. */
.feature-item--row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  text-align: left;
}
.feature-item--row .feature-item__icon {
  background-color: transparent;
  border-radius: 0;
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}
.feature-item--row .feature-item__icon i {
  font-size: 32px;
}

/* Compact variant — icon + label only, no description paragraph.
   Used by the Industries We Serve grid. Plain outline icon, no
   circle badge background (unlike the base .feature-item__icon),
   matching the concept reference exactly. */
.feature-item--compact .feature-item__icon {
  width: 44px;
  height: 44px;
  margin-bottom: var(--space-3);
  background-color: transparent;
  border-radius: 0;
  color: var(--color-navy-700);
}
.feature-item--compact .feature-item__icon i {
  font-size: 36px;
}
.feature-item--compact .feature-item__title {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.feature-item__title {
  margin-bottom: var(--space-2);
}

.feature-item__desc {
  font-size: var(--fs-body-sm);
}
.text-on-dark .feature-item__desc {
  color: var(--color-text-on-dark-muted);
}

/* Stat block (stats strip) */
.stat-item {
  text-align: center;
}
.stat-item__value {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  color: var(--color-white);
}
.stat-item__label {
  font-size: var(--fs-body-sm);
  color: var(--color-text-on-dark-muted);
}

/* ---------------------------------------------------------------------
   5. CTA BAND
   --------------------------------------------------------------------- */
.cta-band {
  background-color: var(--color-navy-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-band--catalogue {
  background-color: var(--color-navy-800-solid);
}

/* Full-bleed variant — the global "Looking for the Right Products"
   CTA, which spans edge-to-edge with no rounded corners and sits
   directly against the footer with zero gap, matching the concept
   reference. Distinct from the base .cta-band (still used, rounded
   and contained, by the category pages' catalogue download band). */
.cta-band--full {
  position: relative;
  background-color: var(--color-cta-band-bg);
  border-radius: 0;
}
/* Subtle diagonal light-streak texture visible in the reference —
   CSS-only (no image asset), very low opacity so it reads as a faint
   decorative pattern rather than a visible design element. */
.cta-band--full::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    var(--overlay-white-08) 0,
    var(--overlay-white-08) 1px,
    transparent 1px,
    transparent 48px
  );
  pointer-events: none;
}
.cta-band--full > * {
  position: relative;
  z-index: 1;
}

/* Inner layout: text column + optional image column. Mobile-first —
   stacks by default, becomes a row at Tablet+ (see responsive.css).
   Reused on every page wherever a CTA band appears (Home, and every
   category/About/Contact page from Phase 4 onward). */
.cta-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding-block: var(--space-7);
}

.cta-band__text {
  flex: 1;
  max-width: 420px;
}

.cta-band__title {
  margin-bottom: var(--space-2);
}

.cta-band__action {
  flex-shrink: 0;
}

.cta-band__media {
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
}

/* ---------------------------------------------------------------------
   6. TRUST BADGE ROW
   Small icon + label item used in the Home hero and, from Phase 4
   onward, at the top of every category page — one component, styled
   once, per the Phase 1 architecture.
   --------------------------------------------------------------------- */
.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
}

.trust-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-teal-500);
}
.text-on-dark .trust-badge__icon {
  color: var(--color-teal-500);
}
.trust-badge__icon svg {
  width: 100%;
  height: 100%;
}
.trust-badge__icon i {
  font-size: 16px;
}

/* ---------------------------------------------------------------------
   7. PRODUCT CARD (featured-product variant)
   Reused on Home (Featured Products) and, from Phase 4 onward, on
   every category page's product grid — the spec-list variant with
   Download PDF + Request Quote actions is layered on top of this same
   base class when category pages are built, per Phase 1 §1.8.
   --------------------------------------------------------------------- */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: var(--space-4);
  background-color: var(--color-surface-light);
}

/* Step 24: individual product images — square box, whole product visible (contain), centred. */
.product-card__media .aspect-box > picture > img {
  object-fit: contain;
  object-position: center;
}

.product-card__title {
  margin-bottom: var(--space-2);
}

.product-card__desc {
  font-size: var(--fs-body-sm);
  color: var(--color-text-body);
  margin-bottom: var(--space-4);
  flex-grow: 1;
}

/* ---------------------------------------------------------------------
   8. IMAGE PLACEHOLDER
   Used anywhere a real photo/illustration is not yet available. Keeps
   the exact layout/aspect-ratio the concept PDF specifies so swapping
   in the final asset later requires no layout change — see
   documents/image-guidelines.md.
   --------------------------------------------------------------------- */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-surface-alt);
  color: var(--color-text-muted);
}
.img-placeholder svg {
  width: 40%;
  height: 40%;
  max-width: 64px;
  max-height: 64px;
  opacity: 0.5;
}
.img-placeholder i {
  font-size: 40px;
  opacity: 0.5;
}

/* ---------------------------------------------------------------------
   9. CATEGORY PAGE HERO
   Reused identically across all 4 category pages (Electricals,
   Electronics, Hardwares, Industrial & Commercial Equipment) — light
   background, per the concept PDF (distinct from the Home page's dark
   hero, which is Home-exclusive).
   --------------------------------------------------------------------- */
.category-hero {
  background-color: var(--color-white);
  padding-block: var(--space-6) var(--space-7);
}

.category-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: var(--space-6);
}

.category-hero__title {
  margin-bottom: var(--space-3);
}

.category-hero__desc {
  max-width: 56ch;
  margin-bottom: var(--space-5);
}

.category-hero__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3) var(--space-5);
}

.category-hero__media .aspect-box {
  border-radius: var(--radius-lg);
}

/* Approved hero assortment photo (700x467, 3:2). Rendered at its own ratio so the whole
   assortment is always visible (object-fit: contain only guards a future non-3:2 file). */
.category-hero__media picture {
  display: block;
}
.category-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 467;
  object-fit: contain;
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-light);
}

/* ---------------------------------------------------------------------
   10. SUB-CATEGORY TAB STRIP
   Horizontally scrollable row of icon + label pills. Contained
   scrolling only (see responsive.css) — never causes page-level
   horizontal scroll. Currently a display/preview of the full taxonomy
   with the first item marked active to match the concept; full
   per-tab content filtering is a Phase 5+ item pending sub-category-
   specific product data (see documents/PHASE-4-CATEGORY-PAGES-REPORT.md).
   --------------------------------------------------------------------- */
.category-tabs {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-2);
  /* Contained horizontal scroll from the smallest viewport up — this
     is NOT a breakpoint-gated behavior (previously it only applied
     from Tablet upward, which meant Mobile/Large Mobile had no
     containment and could overflow the page horizontally with a
     12-item taxonomy; fixed to be the mobile-first default here). */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tabs__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  width: 96px;
  padding: var(--space-3) var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-body);
  text-align: center;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.category-tabs__item svg {
  width: 22px;
  height: 22px;
}
.category-tabs__item i {
  font-size: 20px;
}

.category-tabs__item span {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  line-height: 1.3;
}

.category-tabs__item:hover {
  color: var(--color-teal-brand);
}

.category-tabs__item.is-active {
  color: var(--color-teal-brand);
  border-bottom-color: var(--color-teal-500);
}

/* ---------------------------------------------------------------------
   Sub-category tab strip (Step 22) — the seven-tab strip on the five
   product category pages ([data-catalog-tabs]).
   Mobile/tablet: one horizontally scrolling row inside the strip (the page
   never scrolls sideways); every tab has a comfortable minimum width, a
   44px+ touch target and natural word wrapping.
   Desktop (>= 1100px): the strip becomes a seven-column grid that spans the
   full container width, aligned with the product section below, with equal
   tab heights, icons on one line and the active underline on the tab's
   bottom edge. Words are never broken; labels wrap at spaces only.
   --------------------------------------------------------------------- */
.category-tabs[data-catalog-tabs] {
  gap: var(--space-2);
  align-items: stretch;
}
.category-tabs[data-catalog-tabs] .category-tabs__item {
  box-sizing: border-box;
  flex: 0 0 10.5rem;
  width: 10.5rem;
  min-height: 5.5rem;
  justify-content: flex-start;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3);
  border-bottom-width: 3px;
}
.category-tabs[data-catalog-tabs] .category-tabs__item i {
  display: block;
  height: 1.25rem;
  line-height: 1.25rem;
  text-align: center;
}
.category-tabs[data-catalog-tabs] .category-tabs__item span {
  font-size: 0.875rem;
  line-height: 1.3;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}
@media (min-width: 600px) {
  .category-tabs[data-catalog-tabs] .category-tabs__item {
    flex-basis: 11.5rem;
    width: 11.5rem;
  }
}
@media (min-width: 1100px) {
  .category-tabs[data-catalog-tabs] {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    overflow: visible;
  }
  .category-tabs[data-catalog-tabs] .category-tabs__item {
    width: auto;
    min-width: 0;
    padding-inline: var(--space-2);
  }
  .category-tabs[data-catalog-tabs] .category-tabs__item span {
    font-size: 0.8125rem;
  }
}
@media (min-width: 1200px) {
  .category-tabs[data-catalog-tabs] .category-tabs__item {
    padding-inline: var(--space-3);
  }
  .category-tabs[data-catalog-tabs] .category-tabs__item span {
    font-size: 0.875rem;
  }
}

/* ---------------------------------------------------------------------
   11. INLINE CTA ROW
   The compact "Looking for more X?" banner between the product grid
   and the catalogue download band — lighter-weight than the full
   .cta-band, reused on every category page.
   --------------------------------------------------------------------- */
.inline-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  background-color: var(--color-surface-light);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-6);
}

.inline-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-teal-100);
  color: var(--color-teal-600);
  flex-shrink: 0;
}

.inline-cta__text {
  flex: 1;
}

.inline-cta__title {
  margin-bottom: var(--space-1);
}

/* ---------------------------------------------------------------------
   12. CATALOGUE DOWNLOAD BAND
   --------------------------------------------------------------------- */
.catalogue-band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6);
}

.catalogue-band__media {
  width: 100%;
  max-width: 200px;
  flex-shrink: 0;
}

/* Approved booklet cover (1122x1402, portrait): shown whole, never cropped. */
.catalogue-band__media picture {
  display: block;
}
.catalogue-band__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.catalogue-band__text {
  flex: 1;
}

.catalogue-band__title {
  margin-bottom: var(--space-2);
}

.catalogue-band__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-5);
  margin-block: var(--space-4);
}

.catalogue-band__feature {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
}
.catalogue-band__feature svg {
  width: 16px;
  height: 16px;
  color: var(--color-teal-500);
  flex-shrink: 0;
}
.catalogue-band__feature i {
  font-size: 14px;
  color: var(--color-teal-500);
  flex-shrink: 0;
}

/* ---------------------------------------------------------------------
   13. STATS STRIP
   --------------------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  text-align: center;
}

/* ---------------------------------------------------------------------
   6. FLOATING ACTION BUTTONS (WhatsApp / Call / Scroll to top)
   --------------------------------------------------------------------- */
/* Diagnosis: three fixed controls (WhatsApp 52px, Call 52px, scroll-top
   44px) sat 24px in from the corners at every size. On a 320-568px-tall
   landscape phone that is roughly a third of the visible height, and on a
   portrait phone they land directly on hero/section text. They stay
   fixed and below the drawer (600/599) and modal (900) layers, but are
   now smaller and tighter on small screens (full size returns from
   768px), respect device safe areas, and shrink again on short screens;
   they are eased out of the way while they would cover opted-in text
   (see js/floating-avoid.js; the footer's last two rows opt in), and
   --floating-clearance still sets scroll-padding-bottom for focused targets. */
.floating-actions {
  position: fixed;
  bottom: max(var(--space-3), env(safe-area-inset-bottom));
  z-index: var(--z-floating-buttons);
}

.floating-actions--left {
  left: max(var(--space-3), env(safe-area-inset-left));
}
.floating-actions--right {
  right: max(var(--space-3), env(safe-area-inset-right));
}

.floating-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}
.floating-btn:hover {
  transform: scale(1.06);
}
.floating-btn svg {
  width: 24px;
  height: 24px;
}
.floating-btn i {
  font-size: 20px;
}

/* Eased out of the way while they would sit on top of copy or a call to
   action (see js/floating-avoid.js). Keyboard focus always shows them. */
.floating-btn,
.scroll-top-btn {
  transition-property: transform, opacity, visibility;
}
/* The fixed .floating-actions wrappers keep a 44px box even when the button
   inside is eased away, and that empty box still swallowed clicks on a form
   field beneath it. Only the buttons themselves take pointer input now (an
   eased-away button is pointer-events:none, below). */
.floating-actions {
  pointer-events: none;
}
.floating-actions .floating-btn {
  pointer-events: auto;
}
.floating-btn.is-avoiding,
.scroll-top-btn.is-visible.is-avoiding {
  opacity: 0;
  pointer-events: none;
}
.floating-btn.is-avoiding:focus-visible,
.scroll-top-btn.is-visible.is-avoiding:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.floating-btn--whatsapp {
  background-color: var(--color-whatsapp-brand);
}
.floating-btn--call {
  background-color: var(--color-teal-500);
}

.scroll-top-btn {
  position: fixed;
  /* Sits to the LEFT of the Call button (not stacked above it), so the
     bottom-right stack is one button tall: it leaves the footer's legal
     links uncovered and Call no longer jumps when scroll-top appears. */
  right: calc(max(var(--space-3), env(safe-area-inset-right)) + 44px + var(--space-2));
  bottom: calc(max(var(--space-3), env(safe-area-inset-bottom)) + 2px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-navy-900);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: var(--z-scroll-top);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-base), transform var(--transition-base),
    visibility var(--transition-base);
}
.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top-btn svg {
  width: 18px;
  height: 18px;
}
.scroll-top-btn i {
  font-size: 16px;
}

/* main.js still toggles `.has-scroll-top` on .floating-actions--right when
   scroll-top is shown. It used to lift the Call button above scroll-top;
   scroll-top now sits beside Call, so the class needs no rule. */

/* ---------------------------------------------------------------------
   7. MODALS — Request a Quote + Thank You
   --------------------------------------------------------------------- */
.modal-overlay {
  /* Mobile-base gutter around the dialog; responsive.css restores the
     roomier 24px from 480px up. The dialog's max-height is derived from
     this same value so the two can never disagree. */
  --modal-gutter: var(--space-3);
  position: fixed;
  inset: 0;
  background-color: var(--overlay-navy-55);
  z-index: var(--z-modal-overlay);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--modal-gutter);
}
.modal-overlay.is-open {
  display: flex;
}

.modal {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  /* 90vh counted the area behind a mobile browser's URL bar and ignored
     the overlay padding; on a 320px-tall landscape phone that let the
     dialog run past the screen. dvh + the gutter keeps it inside. */
  max-height: calc(100vh - 2 * var(--modal-gutter));
  max-height: calc(100dvh - 2 * var(--modal-gutter));
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Mobile-first: the Quote modal's two-column layout collapses to a
   single column by default; responsive.css restores the two-column
   grid at Tablet+. */
.modal--quote {
  max-width: 900px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
}
.modal--quote .modal__form-col {
  grid-area: 1 / 1;
}
.modal--quote .modal__aside-col {
  grid-area: 2 / 1;
}

.modal--thank-you {
  max-width: 460px;
  text-align: center;
  /* No top padding: the sticky close button must start at the very top of
     the dialog's content box (a sticky item cannot sit outside it), and the
     checkmark below carries the 64px of top space as its own margin. */
  padding: 0 var(--space-6) var(--space-8);
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-surface-light);
  color: var(--color-text-heading);
  z-index: 2;
  transition: background-color var(--transition-fast);
}
.modal__close:hover {
  background-color: var(--color-border);
}
/* The dialog scrolls (it is capped to the screen height), and an absolutely
   positioned close button scrolls away with the content, so on a short
   screen it was unreachable once the form was scrolled. Sticky keeps it in
   view. The quote dialog is a grid, and a sticky item can only stick within
   its own grid area, so the button is given an area spanning the whole
   dialog; the thank-you dialog is a plain block, so margins pull the button
   back to the corner without adding any height. */
.modal--quote .modal__close {
  position: sticky;
  grid-area: 1 / 1 / -1 / -1;
  align-self: start;
  justify-self: end;
  top: var(--space-3);
  right: auto;
  margin: var(--space-3) var(--space-3) 0 0;
}
.modal--thank-you .modal__close {
  position: sticky;
  display: flex;
  top: var(--space-3);
  right: auto;
  margin: var(--space-3) calc(var(--space-3) - var(--space-6)) calc(-34px - var(--space-3)) auto;
}
.modal--thank-you .success-check {
  margin-top: var(--space-8);
}
.modal__close i {
  font-size: 15px;
}

.modal__form-col {
  padding: var(--space-6);
}

.modal__aside-col {
  background-color: var(--color-surface-light);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
}

.modal__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  /* keep the title and subtitle clear of the close button in the corner */
  padding-right: var(--space-7);
}
.modal__header > div {
  min-width: 0;
}
/* display:flex on .modal__header would otherwise override the hidden attribute used while the success panel is shown */
.modal__header[hidden] {
  display: none;
}

.modal__header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-teal-100);
  color: var(--color-teal-600);
  flex-shrink: 0;
}

.modal__title {
  margin-bottom: var(--space-1);
}

.modal__subtitle {
  font-size: var(--fs-body-sm);
  color: var(--color-text-body);
}

.modal__why-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-body-sm);
}
.modal__why-list li > span:last-child,
.modal__help-box,
.modal__note,
.modal--thank-you .modal__note-box > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.modal__why-list li + li {
  margin-top: var(--space-4);
}

.modal__help-box {
  margin-top: auto;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-border);
}

.modal__note {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-label);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* Thank You modal specifics */
.success-check {
  margin-inline: auto;
  margin-bottom: var(--space-5);
  width: 84px;
  height: 84px;
}

.modal--thank-you .modal__note-box {
  background-color: var(--color-teal-100);
  border-radius: var(--radius-sm);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-align: left;
  margin-block: var(--space-5);
}

/* ---------------------------------------------------------------------
   8. FORM FIELDS (mobile-first)
   --------------------------------------------------------------------- */
.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
}

.form-field {
  margin-bottom: var(--space-4);
  min-width: 0;
}

.form-field__label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text-heading);
  margin-bottom: var(--space-2);
}

.form-field__label .required {
  color: var(--color-error);
}

.form-field__control {
  /* A text input / select has an intrinsic width (about 350px once its
     padding is added) that counts toward its parent's min-content size
     even though width is 100%. Inside a 1fr grid track that floor held
     the whole form open, which is what pushed the Contact form 55px
     past the viewport at 320px and 15px at 360px. min-width: 0 lets the
     control shrink to its container; max-width keeps it from exceeding. */
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-control);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-field__control:focus {
  /* Stage 7A: the old focus cue was a 1px teal-500 border (3.57:1) and a
     teal-100 halo (1.1:1). Border and a 2px ring are now brand teal
     (7.70:1); the transparent outline keeps a visible ring in forced-
     colours mode, where box-shadow is dropped. */
  outline: 2px solid transparent;
  border-color: var(--color-teal-brand);
  box-shadow: 0 0 0 2px var(--color-teal-brand);
}

textarea.form-field__control {
  resize: vertical;
  min-height: 96px;
}

.form-field--error .form-field__control {
  border-color: var(--color-error);
}
.form-field__error-msg {
  display: none;
  font-size: var(--fs-label);
  color: var(--color-error);
  margin-top: var(--space-2);
  overflow-wrap: anywhere;
}
.form-field--error .form-field__error-msg {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--fs-label);
  color: var(--color-text-muted);
}
.form-checkbox input {
  margin-top: 3px;
  flex-shrink: 0;
}
.form-checkbox > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.form-checkbox a {
  color: var(--color-teal-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}
/* Matches the .btn[aria-disabled="true"] treatment used elsewhere on
   the site: a link with no destination yet (e.g. the privacy policy,
   pending an approved page) is shown as visibly non-interactive rather
   than looking like a working link that silently does nothing. */
.form-checkbox a[aria-disabled="true"] {
  /* Stage 7A: the old opacity:0.6 teal measured 2.09:1 on white. It is
     now body-grey (5.87:1) with a dotted underline: still visibly NOT a
     working link, but legible. No policy text or link target is added. */
  color: var(--color-text-body);
  text-decoration: underline dotted;
  text-underline-offset: 2px;
  cursor: not-allowed;
  pointer-events: none;
}

/* Required-checkbox validation error (e.g. unchecked privacy consent)
   reuses the existing .form-field--error wrapper convention so no new
   JS pattern is needed. */
.form-field--error .form-checkbox {
  color: var(--color-error);
}

/* Form-level submission error message — shown instead of a
   console.error() when the (future) submit endpoint fails, so the
   person sees what went wrong rather than it being silently logged. */
.form-submit-error {
  /* block (not flex): the message is running text with an inline phone
     link, and as flex items the text and link could not wrap together. */
  display: block;
  overflow-wrap: anywhere;
  font-size: var(--fs-body-sm);
  color: var(--color-error);
  background-color: var(--color-error-tint);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}
.form-submit-error[hidden] {
  display: none;
}
.form-submit-error a {
  text-decoration: underline;
  font-weight: var(--fw-semibold);
}

/* ---------------------------------------------------------------------
   14. PAGE BANNER (dark inner hero)
   Shared by About Us and Contact Us — the "inner banner hero" pattern
   from the Phase 1 architecture (distinct from both the Home hero and
   the light-background category-hero). Mobile-first: single column,
   centered; media/badge overlay is optional.
   --------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background-color: var(--color-navy-900);
  overflow: hidden;
  padding-block: var(--space-7);
}

.page-banner__inner {
  position: relative;
  z-index: 1;
}

/* Modifier only — base label styling comes from the shared .eyebrow
   utility (composed together in the HTML: class="eyebrow page-banner__eyebrow"),
   this class exists purely to widen the bottom margin for this context. */
.page-banner__eyebrow {
  margin-bottom: var(--space-3);
}

.page-banner__title {
  margin-bottom: var(--space-3);
}

.page-banner__desc {
  max-width: 60ch;
  margin-bottom: var(--space-5);
}

.page-banner__quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
}

.page-banner__quicklink {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-body-sm);
}
.page-banner__quicklink svg {
  width: 18px;
  height: 18px;
  color: var(--color-teal-500);
  flex-shrink: 0;
}
.page-banner__quicklink i {
  font-size: 16px;
  color: var(--color-teal-500);
  flex-shrink: 0;
}

/* Floating stat badge that overlaps the bottom edge of the banner
   media (About page's "7+ Years / Since 2017" badge) */
.page-banner__badge {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-6);
}
.page-banner__badge-item {
  text-align: center;
}
.page-banner__badge-value {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3);
  color: var(--color-navy-900);
}
.page-banner__badge-label {
  font-size: var(--fs-label);
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   15. MILESTONE ITEM (About page journey/strengths grid)
   --------------------------------------------------------------------- */
/* Base visual styling (background, border, radius, padding) now comes
   from the shared .card class (composed in HTML: class="card milestone")
   — this rule only adds the flex-column layout unique to milestones. */
.milestone {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.milestone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-teal-100);
  color: var(--color-teal-600);
}
.milestone__year {
  font-size: var(--fs-label);
  font-weight: var(--fw-medium);
  color: var(--color-teal-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.milestone__title {
  margin-bottom: var(--space-1);
}
.milestone__desc {
  font-size: var(--fs-body-sm);
  color: var(--color-text-body);
}

/* ---------------------------------------------------------------------
   16. INFO CARD (Contact page — contact details / branch card)
   Base visual styling (background, border, radius, padding) now comes
   entirely from the shared .card class (composed in HTML as
   class="card info-card") — .info-card itself has no rules of its
   own, it exists purely as a scoping hook for its child elements
   below (.info-card__title, .info-card__list, etc.).
   --------------------------------------------------------------------- */

.info-card__title {
  margin-bottom: var(--space-4);
}

.info-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--fs-body-sm);
  color: var(--color-text-body);
}
.info-card__list li + li {
  margin-top: var(--space-4);
}
.info-card__list li > :not(svg):not(i) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.info-card__list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--color-teal-500);
  margin-top: 2px;
}
.info-card__list i {
  flex-shrink: 0;
  font-size: 16px;
  width: 18px;
  color: var(--color-teal-500);
  margin-top: 3px;
}

/* ---------------------------------------------------------------------
   20. INDUSTRIES SERVED GRID
   Reused on Home and About (both render the same "Industries We
   Serve" content) — moved here from pages/home.css during the
   Pre-Deployment Audit after discovering About's copy of this grid
   was rendering unstyled: each page only loads its OWN page-specific
   CSS file, so a rule that's actually shared between two pages must
   live in this shared file, not in one page's own stylesheet.
   --------------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
  text-align: center;
}

/* WhatsApp CTA row — a prominent, always-visible (non-floating) link
   used inline on the Contact page, distinct from the fixed floating
   WhatsApp button which stays global on every page. */
.whatsapp-cta {
  display: flex;
  /* wrap: icon + text + a nowrap button need ~270px, more than the
     contact card has inside its padding at 320px, so the button dropped
     6px past the viewport. Wrapping lets the button take its own line. */
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  background-color: var(--color-teal-100);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  margin-top: var(--space-5);
}
.whatsapp-cta__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-whatsapp-brand);
  color: var(--color-white);
  flex-shrink: 0;
}
.whatsapp-cta__icon svg {
  width: 20px;
  height: 20px;
}
.whatsapp-cta__icon i {
  font-size: 18px;
}
.whatsapp-cta__text {
  flex: 1 1 10rem;
  min-width: 0;
}

/* ---------------------------------------------------------------------
   18. CONTACT PAGE LAYOUT
   --------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

/* Google Maps embed — rounded corners matching the site's media
   containers, sits inside the "Find Us Here" info-card. */
.map-embed {
  border-radius: var(--radius-sm);
}

/* Base visual styling comes from the shared .card class (composed in
   HTML: class="card branch-card") — padding is reset to 0 here since
   the card's image must bleed to the edge; padding lives on
   .branch-card__body instead (below) for the text portion only. */
.branch-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  padding: 0;
  overflow: hidden;
}
.branch-card__media .aspect-box {
  border-radius: 0;
}
/* The branch image is a 16:9 illustration (1672 x 941) shown in a 16:9 box.
   object-fit: contain guarantees the whole picture is visible at any width
   (the shared .aspect-box rule uses cover); the box tint only shows if the
   ratios ever differ. The caption sits under the image, not over it. */
.branch-card__figure {
  margin: 0;
}
.branch-card__figure .aspect-box {
  background-color: var(--color-surface-alt);
}
.branch-card__figure .aspect-box > picture > img {
  object-fit: contain;
}
.branch-card__caption {
  padding: var(--space-2) var(--space-3);
  font-size: var(--fs-label);
  line-height: 1.4;
  color: var(--color-text-muted);
  background-color: var(--color-surface-light);
}

/* E-mail addresses. The markup puts a <wbr> before the "@", so a long address
   wraps as "name" / "@domain" on a narrow screen. overflow-wrap is only the
   safety net, so an address can never push the page wider than the screen. */
a[href^="mailto:"] {
  overflow-wrap: anywhere;
  hyphens: none;
}
.page-banner__quicklink {
  min-width: 0;
}
.branch-card__body {
  padding: var(--space-5);
}
.branch-card__title {
  margin-bottom: var(--space-3);
}

/* ---------------------------------------------------------------------
   19. ABOUT PAGE — WHO WE ARE
   Mobile-first: text above media, single column; becomes a 2-column
   row at Tablet+ (see responsive.css).
   --------------------------------------------------------------------- */
.who-we-are {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.who-we-are__media {
  gap: var(--space-3);
}

/* ---------------------------------------------------------------------
   ENQUIRY CONFIRMATION (inline success message + thank-you popup)
   Shown only after the server has confirmed an enquiry (js/forms.js).
   --------------------------------------------------------------------- */
.form-submit-success {
  display: block;
  font-size: var(--fs-body-sm);
  color: var(--color-navy-900);
  background-color: #e8f6ec;
  border: 1px solid #b9e3c4;
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
}
.form-submit-success[hidden],
.form-submit-success [hidden] {
  display: none;
}
.form-submit-success i {
  color: #1e7a37;
  margin-right: var(--space-2);
}
.form-submit-success__note {
  display: block;
  margin-top: var(--space-1);
}

/* Honeypot: present for bots, unreachable for people and assistive tech. */
.form-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-popup {
  position: fixed;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  width: min(26rem, calc(100vw - 2rem));
  z-index: 1000; /* above the Request a Quote dialog (--z-modal 910) */
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
  color: var(--color-white);
  background-color: var(--color-navy-900);
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  animation: enquiry-popup-in 0.25s ease-out;
}
.enquiry-popup[hidden] {
  display: none;
}
.enquiry-popup__icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--color-success);
}
.enquiry-popup__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.enquiry-popup__title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
}
.enquiry-popup__body {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: 1.45;
}
.enquiry-popup__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.enquiry-popup__close:hover {
  background-color: rgba(255, 255, 255, 0.14);
}
.enquiry-popup__close:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 0;
}
@keyframes enquiry-popup-in {
  from { opacity: 0; transform: translate(-50%, -0.75rem); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .enquiry-popup { animation: none; }
}

/* ---------------------------------------------------------------------
   FAQ (compact, always-visible question and answer list)
   --------------------------------------------------------------------- */
.faq__list {
  display: grid;
  gap: var(--space-4);
  max-width: 52rem;
  margin-inline: auto;
}
.faq__item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border, #dbe3ea);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
}
.faq__question {
  margin: 0 0 var(--space-2);
  font-size: 1.0625rem;
}
.faq__answer {
  margin: 0;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
}
.faq__answer a {
  text-decoration: underline;
  font-weight: var(--fw-semibold);
}

/* ---------------------------------------------------------------------
   REQUEST A QUOTE — success panel inside the dialog, and the persistent
   confirmation that stays on the page after the dialog closes
   (js/quote-success.js). Shown only after the server confirms.
   --------------------------------------------------------------------- */
.modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 18rem;
  padding: var(--space-6) var(--space-2);
  text-align: center;
}
.modal__success[hidden] {
  display: none;
}
.modal__success-icon {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--color-success);
}
.modal__success-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  font-size: var(--fs-h3, 1.5rem);
  color: var(--color-text-heading);
}
.modal__success-title:focus {
  outline: none; /* programmatic focus target only; not a control */
}
.modal__success-body {
  margin: 0;
  max-width: 28rem;
}
.modal__success-note {
  margin: 0;
  max-width: 28rem;
  font-size: var(--fs-body-sm);
}
.modal__success-note[hidden] {
  display: none;
}
.modal__success .btn {
  margin-top: var(--space-2);
  min-height: 2.75rem;
}

.enquiry-confirmation {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* clears the floating action buttons that sit in the bottom corners */
  bottom: calc(max(var(--space-3), env(safe-area-inset-bottom)) + 4.5rem);
  width: min(30rem, calc(100vw - 2rem));
  z-index: 460; /* above floating buttons (450), below the mobile drawer (600) and dialog (900) */
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 3.25rem var(--space-4) var(--space-4);
  color: var(--color-navy-900);
  background-color: #e8f6ec;
  border: 1px solid #b9e3c4;
  border-left: 4px solid var(--color-success);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}
.enquiry-confirmation[hidden] {
  display: none;
}
.enquiry-confirmation__icon {
  flex: none;
  margin-top: 0.2rem;
  color: #1e7a37;
}
.enquiry-confirmation__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}
.enquiry-confirmation__title {
  margin: 0 0 var(--space-1);
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
}
.enquiry-confirmation__body {
  margin: 0;
  font-size: var(--fs-body-sm);
  line-height: 1.45;
}
.enquiry-confirmation__close {
  position: absolute;
  top: var(--space-1);
  right: var(--space-1);
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy-900);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.enquiry-confirmation__close:hover {
  background-color: rgba(11, 35, 56, 0.1);
}
.enquiry-confirmation__close:focus-visible {
  outline: 3px solid var(--color-navy-900);
  outline-offset: 0;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.notfound__inner { max-width: 40rem; }
.notfound__title { margin: 0 0 var(--space-3); color: var(--color-navy-900); }
.notfound__text { margin: 0 0 var(--space-4); color: var(--color-text-muted); }
.notfound__links { margin: 0 0 var(--space-5); padding-left: var(--space-5); }
.notfound__links a { display: inline-block; padding-block: var(--space-1); color: var(--color-teal-brand); }
