/*==========================================================================
  ENDEAVOUR - BRAND COLOR SYSTEM
  --------------------------------------------------------------------------
  Single source of truth for every colour on the site. Derived strictly from
  the Endeavour logo, which contains exactly four hues:

     #1D3266  Deep Navy Blue   - wordmark + arrow, dark gradient stop
     #005BAA  Primary Blue     - wordmark + arrow, light gradient stop
     #DF8026  Orange           - chevron gradient dark stop
     #FEC84A  Golden Yellow    - chevron gradient light stop / solid rules

  HIERARCHY - the same on every page, every section, every breakpoint:
     #1D3266 and #005BAA are dominant.
     #DF8026 and #FEC84A are supporting accent / highlight only.

  Load order: style.css -> responsive.css -> brand.css (this file last).
==========================================================================*/

:root {
  /* ---------- Brand colours ---------- */
  --brand-navy: #1D3266;
  --brand-blue: #005BAA;
  --brand-orange: #DF8026;
  --brand-gold: #FEC84A;

  /* ---------- Website colour system ---------- */
  --color-primary: #005BAA;
  /* Primary Brand      */
  --color-dark: #1D3266;
  /* Dark Brand / Header*/
  --color-accent: #DF8026;
  /* Secondary Accent   */
  --color-highlight: #FEC84A;
  /* Highlight / CTA    */

  --bg-main: #FFFFFF;
  /* Main Background       */
  --bg-blue-soft: #F2F7FC;
  /* Light Blue Background */
  --bg-orange-soft: #FFF6ED;
  /* Light Orange Background */
  --bg-dark: #1D3266;
  /* Dark section surface  */

  --text-main: #1D3266;
  /* Main Text      */
  --text-secondary: #4A5A70;
  /* Secondary Text */
  --text-on-dark: #FFFFFF;
  --text-on-dark-soft: rgba(255, 255, 255, 0.78);

  --border-color: #D9E3EF;
  /* Border */
  --border-on-dark: rgba(255, 255, 255, 0.16);

  /* ---------- Derived states (alpha steps of the brand hues only) ---------- */
  --tint-blue-strong: #D9E3EF;
  --tint-blue-10: rgba(0, 91, 170, 0.1);
  --tint-navy-06: rgba(29, 50, 102, 0.06);
  --tint-orange-12: rgba(223, 128, 38, 0.12);
  --tint-gold-18: rgba(254, 200, 74, 0.18);

  --focus-ring: 0 0 0 3px rgba(222, 129, 49, 0.35);
  --focus-ring-dark: 0 0 0 3px rgba(254, 200, 74, 0.45);

  --shadow-sm: 0 2px 8px rgba(29, 50, 102, 0.06);
  --shadow-md: 0 10px 30px rgba(29, 50, 102, 0.1);
  --shadow-lg: 0 22px 50px rgba(29, 50, 102, 0.14);

  /* ==========================================================
     BUTTONS - ONE combination site-wide. Never overridden
     per section, per page or per breakpoint.
     ========================================================== */
  /* Every button uses the same warm gradient: #F1AC46 -> #DE8131.
     Text is navy (white would fall to 2.1-2.9:1 on these tones).
     Secondary is an alias of primary, so there is only one look. */
  --btn-primary-bg: linear-gradient(135deg, #F1AC46 0%, #DE8131 100%);
  --btn-primary-text: #1D3266;
  --btn-primary-hover-bg: linear-gradient(135deg, #DE8131 0%, #F1AC46 100%);
  --btn-primary-hover-text: #1D3266;
  --btn-primary-active-bg: linear-gradient(135deg, #DE8131 0%, #DE8131 100%);

  --btn-secondary-bg: var(--btn-primary-bg);
  --btn-secondary-text: var(--btn-primary-text);
  --btn-secondary-hover-bg: var(--btn-primary-hover-bg);
  --btn-secondary-hover-text: var(--btn-primary-hover-text);
  --btn-secondary-active-bg: var(--btn-primary-active-bg);
}


/*==========================================================================
  BOOTSTRAP BRIDGE
  Bootstrap ships its own indigo/grey defaults and every utility class
  (.text-primary, .bg-light, .border, .link-*) reads them from these
  variables. Repointing them keeps a stray utility inside the brand system.
==========================================================================*/
:root {
  --bs-primary: #005BAA;
  --bs-primary-rgb: 0, 91, 170;
  --bs-secondary: #1D3266;
  --bs-secondary-rgb: 29, 50, 102;
  --bs-dark: #1D3266;
  --bs-dark-rgb: 29, 50, 102;
  --bs-light: #FFFFFF;
  --bs-light-rgb: 255, 255, 255;
  --bs-info: #005BAA;
  --bs-info-rgb: 0, 91, 170;
  --bs-warning: #DF8026;
  --bs-warning-rgb: 223, 128, 38;

  --bs-body-color: #4A5A70;
  --bs-body-color-rgb: 74, 90, 112;
  --bs-body-bg: #FFFFFF;
  --bs-body-bg-rgb: 255, 255, 255;
  --bs-emphasis-color: #1D3266;
  --bs-emphasis-color-rgb: 29, 50, 102;
  --bs-heading-color: #1D3266;

  --bs-secondary-color: #4A5A70;
  --bs-secondary-color-rgb: 74, 90, 112;
  --bs-secondary-bg: #F2F7FC;
  --bs-secondary-bg-rgb: 242, 247, 252;
  --bs-tertiary-color: #4A5A70;
  --bs-tertiary-bg: #F2F7FC;
  --bs-tertiary-bg-rgb: 242, 247, 252;

  --bs-link-color: #005BAA;
  --bs-link-color-rgb: 0, 91, 170;
  --bs-link-hover-color: #1D3266;
  --bs-link-hover-color-rgb: 29, 50, 102;

  --bs-border-color: #D9E3EF;
  --bs-border-color-translucent: rgba(29, 50, 102, 0.14);
  --bs-focus-ring-color: rgba(0, 91, 170, 0.28);
  --bs-btn-focus-shadow-rgb: 0, 91, 170;
}

.text-light,
.text-white {
  color: #FFFFFF !important;
}

.text-dark,
.text-body-emphasis {
  color: var(--text-main) !important;
}

.text-muted,
.text-body-secondary {
  color: var(--text-secondary) !important;
}

.text-primary {
  color: var(--color-primary) !important;
}

.bg-primary {
  background-color: var(--color-primary) !important;
}

.bg-light {
  background-color: var(--bg-blue-soft) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}


/*==========================================================================
  BASE - backgrounds, headings, paragraphs, links
==========================================================================*/
body {
  background-color: var(--bg-main);
  color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6,
.d-h1, .d-h2, .d-h3, .d-h4, .d-h5, .d-h6 {
  color: var(--text-main);
}

p,
li,
span,
td {
  color: inherit;
}

a {
  color: var(--color-primary);
}

a:hover,
a:focus {
  color: var(--color-dark);
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  color: inherit;
}

h1 a:hover, h2 a:hover, h3 a:hover,
h4 a:hover, h5 a:hover, h6 a:hover {
  color: var(--color-primary);
}

hr {
  opacity: 1;
  border-color: var(--border-color);
}

::-moz-selection {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

::selection {
  background-color: var(--color-dark);
  color: #FFFFFF;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

html {
  scrollbar-color: var(--color-primary) var(--bg-blue-soft);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-blue-soft);
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: var(--color-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-dark);
}


/*==========================================================================
  BUTTONS
  --------------------------------------------------------------------------
  ALL BUTTONS  #F1AC46 -> #DE8131 gradient, #1D3266 text
               hover: gradient reversed   active: solid #DE8131

  The two stops are the warm tones of the logo swoosh, so the button reads
  as the brand accent on white, navy and photo backgrounds alike.

  .btn animates a sliding ::before panel on hover, so the base background is
  the resting gradient and ::before carries the hover gradient. Every theme
  button alias is mapped onto PRIMARY, so no section can drift.
==========================================================================*/
.btn,
.btn-primary,
.btn-white,
.btn-secondary,
.btn-secondary-alt,
.btn-secondary-outline,
.btn-hero-quote,
.header-3 .btn-secondary,
.header-middle-wrapper .btn-secondary,
.offcanvas .btn,
.mobile-menu .btn,
.background-dark .btn,
.service-banner-info-block .btn,
.request-quote-form-block .btn,
.cta-wrapper-3 .btn,
.hero .btn,
.hero-3 .btn {
  border: 2px solid transparent;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn::before,
.btn-primary::before,
.btn-white::before,
.btn-secondary::before,
.btn-secondary-alt::before,
.btn-secondary-outline::before,
.btn-hero-quote::before,
.background-dark .btn::before,
.service-banner-info-block .btn::before,
.request-quote-form-block .btn::before,
.cta-wrapper-3 .btn::before,
.hero .btn::before,
.hero-3 .btn::before {
  background: var(--btn-primary-hover-bg);
}

.btn:hover,
.btn:focus,
.btn-primary:hover,
.btn-white:hover,
.btn-secondary:hover,
.btn-secondary-alt:hover,
.btn-secondary-outline:hover,
.btn-hero-quote:hover,
.background-dark .btn:hover,
.service-banner-info-block .btn:hover,
.request-quote-form-block .btn:hover,
.cta-wrapper-3 .btn:hover,
.hero .btn:hover,
.hero-3 .btn:hover {
  border-color: transparent;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-hover-text);
}

.btn:active,
.btn.active,
.btn-primary:active,
.btn-white:active,
.btn-secondary:active,
.btn-secondary-alt:active,
.btn-secondary-outline:active,
.btn-hero-quote:active {
  border-color: transparent;
  background: var(--btn-primary-active-bg);
  color: var(--btn-primary-hover-text);
}

/* Hover panel. The theme ships `.btn-secondary:hover::before { navy }` at a
   higher specificity than a plain `::before`, which slid a navy panel under
   the navy label and hid it. Matching :hover::before selectors keep the
   hover inside the same orange design on every button. */
.btn:hover::before,
.btn:focus-visible::before,
.btn-primary:hover::before,
.btn-white:hover::before,
.btn-secondary:hover::before,
.btn-secondary-alt:hover::before,
.btn-secondary-outline:hover::before,
.btn-hero-quote:hover::before,
.header-3 .btn-secondary:hover::before,
.header-middle-wrapper .btn-secondary:hover::before,
.hero .btn:hover::before,
.hero-3 .btn:hover::before,
.footer .btn:hover::before {
  background: var(--btn-primary-hover-bg);
}

/* Label stays navy in every state, whatever the theme or a link rule says */
.btn:hover,
.btn:focus,
.btn:active,
a.btn:hover,
a.btn:focus,
.header-3 .btn-secondary:hover,
.footer a.btn:hover {
  color: var(--btn-primary-hover-text);
  -webkit-text-fill-color: var(--btn-primary-hover-text);
}

.btn:active::before,
.btn.active::before {
  background: var(--btn-primary-active-bg);
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---------------------------------------------------------------------------
   ONE SHAPE FOR EVERY BUTTON
   Text-only pill, no arrow, same height, same padding, same type on every
   page. The theme and several page-level <style> blocks set their own
   padding / gap / arrow per section, so the geometry is pinned with
   !important here - this is the single place button shape is decided.
--------------------------------------------------------------------------- */
.btn .btn-icon,
.btn .btn-icon-sm {
  display: none !important;
}

.btn {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 0 !important;
  box-sizing: border-box;
  min-width: 200px;
  max-width: 100%;
  height: 52px !important;
  padding: 0 32px !important;
  border-radius: 999px !important;
  font-family: "DM Sans", sans-serif;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.2px;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(222, 129, 49, 0.28);
  transition: all 0.3s ease-in-out, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn .btn-label {
  display: inline;
}

.btn:hover {
  box-shadow: 0 10px 24px rgba(222, 129, 49, 0.36);
  transform: translateY(-2px);
}

.btn:active {
  box-shadow: 0 4px 10px rgba(222, 129, 49, 0.3);
  transform: translateY(0);
}

@media (max-width: 575px) {
  .btn {
    min-width: 180px;
    height: 48px !important;
    padding: 0 24px !important;
    font-size: 15px !important;
  }
}

/* --- SECONDARY BUTTON - one combination, wherever it is used --- */
.btn.is-secondary,
.btn-accent,
.btn-outline,
.btn-ghost {
  border-color: transparent;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-text);
}

.btn.is-secondary::before,
.btn-accent::before,
.btn-outline::before,
.btn-ghost::before {
  background: var(--btn-secondary-hover-bg);
}

.btn.is-secondary:hover,
.btn-accent:hover,
.btn-outline:hover,
.btn-ghost:hover {
  border-color: transparent;
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-hover-text);
}

.btn.is-secondary:active,
.btn-accent:active,
.btn-outline:active,
.btn-ghost:active {
  background: var(--btn-secondary-active-bg);
  color: var(--btn-secondary-hover-text);
}

.btn.is-secondary .btn-icon,
.btn-accent .btn-icon,
.btn-outline .btn-icon,
.btn-ghost .btn-icon {
  background: #FFFFFF;
  color: var(--color-dark);
}

/* --- Inline text button / read-more link --- */
.btn-details,
.link-btn,
.read-more {
  color: var(--color-primary);
}

.btn-details:hover,
.link-btn:hover,
.read-more:hover {
  color: var(--color-dark);
}

/* Native form buttons follow the primary contract */
button[type="submit"],
input[type="submit"],
.submit-btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

button[type="submit"]:hover,
input[type="submit"]:hover,
.submit-btn:hover {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
}

button[type="submit"]:active,
input[type="submit"]:active,
.submit-btn:active {
  background: var(--btn-primary-active-bg);
}

button:disabled,
.btn:disabled,
.btn.is-disabled {
  opacity: 1;
  background: var(--tint-blue-strong);
  color: #FFFFFF;
  cursor: not-allowed;
}


/*==========================================================================
  HEADER / NAVBAR
  White bar so the logo reads on its own; navy links, blue on hover and
  active. The utility strip above it uses the Dark Brand colour.
==========================================================================*/
.section-header,
.header-wrapper,
.header-bottom-style-2 {
  background-color: #FFFFFF;
}

.header-nav-list a,
a.header-nav-link,
.category-menu ul li a {
  color: var(--text-main);
}

.header-nav-list a:hover,
a.header-nav-link:hover,
.category-menu ul li a:hover,
.header-nav-list li.active > a,
a.header-nav-link.active,
.category-menu ul li.active > a {
  color: var(--color-primary);
}

.subcategory a,
.dropdown-menu a {
  color: var(--text-secondary);
}

.subcategory a:hover,
.dropdown-menu a:hover,
.subcategory a.active,
.dropdown-menu a.active {
  background-color: var(--bg-blue-soft);
  color: var(--color-primary);
}

.subcategory-toggle {
  color: var(--color-dark);
}

.hamburger-menu,
.hamburger-menu span {
  background-color: var(--color-dark);
}

.header-top-style-1,
.header-top-section1 {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.header-top-style-1 a,
.header-top-section1 a {
  color: var(--text-on-dark-soft);
}

.header-top-style-1 a:hover,
.header-top-section1 a:hover {
  color: var(--color-highlight);
}


/*==========================================================================
  HERO
==========================================================================*/
.hero-section .section-title,
.hero .section-title,
.hero-title {
  color: #FFFFFF;
}

.hero-section p,
.hero p {
  color: rgba(255, 255, 255, 0.88);
}

.hero .section-tag,
.hero-section .section-tag {
  background-color: var(--tint-gold-18);
  color: var(--color-highlight);
}


/*==========================================================================
  SECTION LABELS, TAGS, BACKGROUNDS
==========================================================================*/
.section-tag {
  background-color: var(--tint-blue-10);
  color: var(--color-primary);
}

.section-tag.is-white-transparent,
.background-dark .section-tag {
  background-color: var(--tint-gold-18);
  color: var(--color-highlight);
}

.section-tag.is-white {
  background-color: #FFFFFF;
  color: var(--color-dark);
}

.section-title.is-text-dark {
  color: var(--text-main);
}

.section-title.is-text-light {
  color: var(--text-on-dark);
}

.section-title strong,
.section-title em,
.title-accent {
  color: var(--color-primary);
}

.background-dark .section-title strong,
.hero .section-title strong {
  color: var(--color-highlight);
}

.background-dark,
.is-bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.background-dark p,
.is-bg-dark p {
  color: var(--text-on-dark-soft);
}

.background-light,
.is-bg-light,
.bg-subtle {
  background-color: var(--bg-blue-soft);
}

/* The one place the orange family carries a surface: highlight callouts */
.is-bg-accent,
.highlight-box,
blockquote {
  background-color: var(--bg-orange-soft);
  color: var(--text-main);
}

blockquote {
  border-left: 4px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
}


/*==========================================================================
  CARDS
==========================================================================*/
.card,
.service-card-items,
.service-card-items-3,
.feature-card,
.info-card,
.blog-card-items,
.team-card-items {
  border-color: var(--border-color);
  background-color: var(--bg-main);
}

.card:hover,
.service-card-items:hover,
.service-card-items-3:hover,
.feature-card:hover,
.info-card:hover,
.blog-card-items:hover,
.team-card-items:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.service-card-items h4,
.service-card-items-3 h4 {
  color: var(--text-main);
}

.card p,
.service-card-items p,
.service-card-items-3 p {
  color: var(--text-secondary);
}


/*==========================================================================
  ICONS
  --------------------------------------------------------------------------
  Every icon sits on the same blue gradient circle (#005BAA -> #1D3266) with
  a white glyph - 6.8:1 to 12.3:1 contrast across the gradient.
  Hovering the card flips the circle to the button gradient
  (#F1AC46 -> #DE8131) with a navy glyph, tying icons to the CTAs.
  Small inline marks (list ticks) have no circle and use the blue gradient
  as their colour.
==========================================================================*/
:root {
  --icon-bg: linear-gradient(135deg, #005BAA 0%, #1D3266 100%);
  --icon-bg-hover: linear-gradient(135deg, #F1AC46 0%, #DE8131 100%);
  --icon-fg: #FFFFFF;
  --icon-fg-hover: #1D3266;
  --icon-ring: 0 6px 16px rgba(0, 91, 170, 0.22);
  --icon-filter-white: brightness(0) invert(1);
  --icon-filter-navy: brightness(0) saturate(100%) invert(15%) sepia(90%) saturate(886%) hue-rotate(198deg) brightness(95%) contrast(96%);
}

/* --- Circles that already exist in the theme --- */
.service-icon,
.industrial-icon,
.contact-items .icon,
.icon-block,
.icon-rounded-full,
.media-gallery-zoom > span,
.slider-button-style-1,
.scroll-to-top {
  border-color: transparent !important;
  background: var(--icon-bg) !important;
  box-shadow: var(--icon-ring);
  color: var(--icon-fg);
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Service badge overlaps the card photo - a white ring separates it */
.service-icon {
  border: 3px solid #FFFFFF !important;
}

/* --- Icon holders that had no shape: give them the same circle --- */
.feature-box-items .icon,
.icon-items .icon,
.feature-icon-box .icon,
.get-touch-info-list .icon {
  display: inline-flex !important;
  flex: 0 0 auto;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: var(--icon-bg);
  box-shadow: var(--icon-ring);
  color: var(--icon-fg);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.feature-box-items .icon {
  width: 72px !important;
  height: 72px !important;
}

.feature-box-items .icon img {
  width: 36px !important;
  height: 36px !important;
}

.icon-items .icon {
  width: 96px !important;
  height: 96px !important;
}

.icon-items .icon img {
  width: 52px !important;
  height: 52px !important;
}

.feature-icon-box .icon {
  width: 88px !important;
  height: 88px !important;
}

.feature-icon-box .icon img {
  width: 44px !important;
  height: 44px !important;
}

.get-touch-info-list .icon {
  width: 56px !important;
  height: 56px !important;
}

.contact-items .icon {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  width: 60px !important;
  height: 60px !important;
  border-radius: 50% !important;
}

.get-touch-info-list .icon i {
  font-size: 22px;
}

/* --- Glyph colour: white on the blue circle --- */
.service-icon img,
.industrial-icon img,
.feature-box-items .icon img,
.icon-items .icon img,
.feature-icon-box .icon img,
.contact-items .icon img,
.icon-block img,
.service-icon-items .icon img {
  filter: var(--icon-filter-white) !important;
  transition: filter 0.3s ease;
}

.service-icon i,
.industrial-icon i,
.feature-box-items .icon i,
.icon-items .icon i,
.feature-icon-box .icon i,
.contact-items .icon i,
.icon-block i,
.icon-rounded-full i,
.get-touch-info-list .icon i,
.media-gallery-zoom i,
.slider-button-style-1 i,
.scroll-to-top i {
  background: none;
  color: var(--icon-fg) !important;
  -webkit-text-fill-color: var(--icon-fg);
}

/* --- Card hover: circle flips to the button gradient, glyph to navy --- */
.service-item:hover .service-icon,
.industrial-item:hover .industrial-icon,
.feature-box-items:hover .icon,
.icon-items:hover .icon,
.feature-icon-box:hover .icon,
.feature-box-items-4:hover .icon,
.contact-items:hover .icon,
.get-touch-info-list li:hover .icon,
.icon-rounded-full:hover,
.slider-button-style-1:hover,
.scroll-to-top:hover {
  background: var(--icon-bg-hover) !important;
  box-shadow: 0 8px 20px rgba(222, 129, 49, 0.3);
}

.service-item:hover .service-icon img,
.industrial-item:hover .industrial-icon img,
.feature-box-items:hover .icon img,
.icon-items:hover .icon img,
.feature-icon-box:hover .icon img,
.feature-box-items-4:hover .icon img,
.contact-items:hover .icon img {
  filter: var(--icon-filter-navy) !important;
}

.get-touch-info-list li:hover .icon i,
.icon-rounded-full:hover i,
.slider-button-style-1:hover i,
.scroll-to-top:hover i {
  color: var(--icon-fg-hover) !important;
  -webkit-text-fill-color: var(--icon-fg-hover);
}

/* The theme swaps to a second icon image on hover and animates a gradient
   ::after over the circle. Keep the first image in place (both share one
   treatment) and retire the old overlay so the circle itself carries hover. */
.service-item:hover .service-icon img:first-child,
.industrial-item:hover .industrial-icon img:nth-child(odd) {
  opacity: 1 !important;
}

.service-icon img:last-child:not(:first-child),
.industrial-icon img:nth-child(even) {
  opacity: 0 !important;
}

.industrial-icon::after,
.industrial-icon::before {
  display: none !important;
}

/* --- Inline marks without a circle (list ticks) --- */
.list-box i,
.check-list i,
.content-list i {
  background: var(--icon-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* --- Header controls are navigation, not decoration: plain navy --- */
.header-user-event-button i,
.subcategory-toggle i,
.search-button i {
  background: none;
  color: var(--color-dark) !important;
  -webkit-text-fill-color: var(--color-dark);
}

.header-user-event-button:hover i,
.subcategory-toggle:hover i,
.search-button:hover i {
  color: var(--color-primary) !important;
  -webkit-text-fill-color: var(--color-primary);
}


/*==========================================================================
  COUNTERS
==========================================================================*/
.counter-wrapper .counter-items .fun-fact-value,
.counter-wrapper .counter-items .start-number {
  -webkit-text-stroke: 1.2px #FFFFFF;
  color: transparent;
}

.counter-wrapper .counter-items:hover .fun-fact-value,
.counter-wrapper .counter-items:hover .start-number {
  -webkit-text-stroke: initial !important;
  color: var(--color-highlight) !important;
}

.counter-wrapper .counter-items p,
.counter-wrapper .counter-items h5 {
  border-color: var(--border-on-dark);
  color: #FFFFFF;
}

.why-choose-us-wrapper-4 .why-choose-us-content-4 .counter-box-items .counter-box .count,
.counter-box .count {
  color: var(--color-highlight);
}

.counter-box .fun-fact-value,
.counter-box .start-number {
  color: #FFFFFF;
}

/* Counters on a light surface keep the dominant brand colours */
.background-light .counter-box .count,
.is-bg-light .counter-box .count,
.counter-box.is-light .count {
  color: var(--color-primary);
}


/*==========================================================================
  FORMS
==========================================================================*/
.form-label {
  color: var(--text-main);
}

.form-input,
.is-select-input,
.is-text-area,
.form-input-1,
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea {
  border: 1px solid var(--border-color);
  background-color: var(--bg-blue-soft);
  color: var(--text-main);
}

/* Both form blocks in the theme carry their own higher-specificity colours.
   Re-point them so a field looks identical in every form on the site. */
.get-touch-form-block input:not([type="checkbox"]),
.get-touch-form-block textarea,
.get-touch-form-block select,
.get-touch-form-block .form-input-1,
.contact-wrapper-4 .contact-content .contact-form-box .form-clt input,
.contact-wrapper-4 .contact-content .contact-form-box .form-clt textarea,
.contact-form-box input:not([type="checkbox"]),
.contact-form-box textarea,
.contact-form-box select {
  border: 1px solid var(--border-color);
  background-color: var(--bg-blue-soft);
  color: var(--text-main);
}

.form-input::-webkit-input-placeholder,
.form-input-1::-webkit-input-placeholder,
.form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  opacity: 1;
  color: var(--text-secondary);
}

.form-input::placeholder,
.form-input-1::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  opacity: 1;
  color: var(--text-secondary);
}

.form-input:hover,
.form-input-1:hover,
.form-control:hover,
select:hover,
textarea:hover {
  border-color: var(--color-primary);
}

.form-input:focus,
.form-input:focus-visible,
.form-input-1:focus,
.form-input-1:focus-visible,
.form-control:focus,
input:focus,
select:focus,
textarea:focus,
.get-touch-form-block input:not([type="checkbox"]):focus,
.get-touch-form-block input:not([type="checkbox"]):focus-visible,
.get-touch-form-block textarea:focus,
.get-touch-form-block textarea:focus-visible,
.get-touch-form-block select:focus-visible,
.get-touch-form-block .form-input-1:focus-visible,
.contact-form-box input:focus,
.contact-form-box textarea:focus,
.contact-form-box select:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #FFFFFF;
  box-shadow: var(--focus-ring);
  color: var(--text-main);
}

.form-input.is-bg-white,
.form-input-1.is-bg-white {
  background-color: #FFFFFF;
}

.form-check-input:checked,
.get-touch-form-block .form-check-input:checked {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
}

/* Fields sitting on a navy panel */
.background-dark .form-input,
.background-dark .form-input-1,
.request-quote-form-block .form-input-1,
.request-quote-form-block .form-input,
.request-quote-form-block input,
.request-quote-form-block textarea,
.request-quote-form-block select {
  border-color: var(--border-on-dark);
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

.background-dark .form-input::placeholder,
.background-dark .form-input-1::placeholder,
.request-quote-form-block input::placeholder,
.request-quote-form-block textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

.background-dark .form-input:focus,
.background-dark .form-input-1:focus,
.request-quote-form-block input:focus,
.request-quote-form-block textarea:focus,
.request-quote-form-block select:focus {
  border-color: var(--color-highlight);
  background-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--focus-ring-dark);
  color: #FFFFFF;
}

/* Validation: success is brand blue. The error red is the one functional
   hue kept outside the logo, because an error has to read as an error. */
.is-valid,
.form-input.is-valid {
  border-color: var(--color-primary);
}

.error-text,
.invalid-feedback {
  color: #DC3545;
}


/*==========================================================================
  SLIDERS
==========================================================================*/
.swiper-pagination-bullet {
  opacity: 1;
  background: var(--border-color);
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
}

.swiper-button-next,
.swiper-button-prev,
.slider-btn,
.array-button button {
  border-color: var(--border-color);
  background-color: #FFFFFF;
  color: var(--color-primary);
}

.swiper-button-next:hover,
.swiper-button-prev:hover,
.slider-btn:hover,
.array-button button:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.swiper-scrollbar-drag {
  background: var(--color-primary);
}

.background-dark .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.35);
}

.background-dark .swiper-pagination-bullet-active {
  background: var(--color-highlight);
}

.slider input[type="range"]::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb {
  background: var(--color-primary);
}

.range-track,
.progress,
.progress-bar-track {
  background-color: var(--border-color);
}

.progress-bar,
.progress-bar-fill {
  background-color: var(--color-primary);
}


/*==========================================================================
  CTA SECTIONS
==========================================================================*/
.cta-section,
.cta-wrapper-3,
.request-quote-form-block,
.service-banner-info-block {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
}

.cta-section h1, .cta-section h2, .cta-section h3,
.cta-wrapper-3 h1, .cta-wrapper-3 h2, .cta-wrapper-3 h3,
.request-quote-form-block h1,
.request-quote-form-block h2,
.request-quote-form-block h3,
.service-banner-info-block h3,
.service-banner-info-block h4 {
  color: #FFFFFF;
}

.cta-section p,
.cta-wrapper-3 .right-content p,
.request-quote-form-block p,
.service-banner-info-block p {
  color: var(--text-on-dark-soft);
}


/*==========================================================================
  FOOTER
  Light blue panel so the logo reads on its own, navy headings, blue hovers.
==========================================================================*/
.footer {
  background-color: var(--bg-blue-soft);
  color: var(--text-main);
}

.footer p,
.footer li {
  color: var(--text-secondary);
}

.footer a:not(.btn) {
  color: var(--text-secondary);
}

.footer a:not(.btn):hover {
  color: var(--color-primary);
}

/* A button inside the footer is still the one primary button */
.footer .btn,
.footer a.btn {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.footer .btn:hover,
.footer a.btn:hover {
  color: var(--btn-primary-hover-text);
}

.footer .btn:active,
.footer a.btn:active {
  background: var(--btn-primary-active-bg);
  color: var(--btn-primary-hover-text);
}

.footer-widget .footer-title {
  color: var(--text-main);
}

/* Orange rule under each footer heading - supporting accent */
.footer-widget .footer-title::after {
  background-color: var(--color-accent);
}

.footer-nav a::after {
  background: var(--color-primary);
}

.footer .footer-bottom,
.bottom-footer {
  border-top: 1px solid var(--border-color);
  background-color: var(--tint-blue-strong);
  color: var(--text-main);
}

.footer .footer-bottom a,
.bottom-footer a,
.footer .copyright-text {
  color: var(--text-main);
}

.footer .footer-bottom a:hover,
.bottom-footer a:hover {
  color: var(--color-primary);
}

.footer .social-menu a,
.social-menu.is-text-link-orange a {
  border-color: var(--border-color);
  color: var(--color-dark);
}

.footer .social-menu a:hover,
.social-menu.is-text-link-orange a:hover {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #FFFFFF;
}


/*==========================================================================
  MISC COMPONENTS - borders, active states, hover effects
==========================================================================*/
.pagination a,
.page-link {
  border-color: var(--border-color);
  color: var(--color-dark);
}

.pagination a:hover,
.pagination .active a,
.page-link:hover,
.page-item.active .page-link {
  border-color: var(--color-primary);
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.breadcrumb a {
  color: var(--text-on-dark-soft);
}

.breadcrumb a:hover,
.breadcrumb .active {
  color: var(--color-highlight);
}

.accordion-button,
.faq-title {
  color: var(--text-main);
}

.accordion-item,
.faq-item {
  border-color: var(--border-color);
}

.accordion-button:not(.collapsed),
.accordion-button:hover,
.faq-title.active {
  background-color: var(--bg-blue-soft);
  color: var(--color-primary);
}

.nav-tabs .nav-link,
.tab-btn {
  border-color: transparent;
  color: var(--text-secondary);
}

.nav-tabs .nav-link:hover,
.tab-btn:hover {
  color: var(--color-primary);
}

.nav-tabs .nav-link.active,
.tab-btn.active {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.rating i,
.star-rating i {
  color: var(--color-highlight);
}

.badge,
.tag {
  background-color: var(--tint-blue-10);
  color: var(--color-primary);
}

/* Navy on the orange tint, not orange on orange - #DF8026 over #FFF6ED is
   only 2.7:1 and would fail as text. */
.badge.is-accent,
.tag.is-accent {
  background-color: var(--tint-orange-12);
  color: var(--text-main);
}

table th {
  background-color: var(--bg-blue-soft);
  color: var(--text-main);
}

table td,
table th {
  border-color: var(--border-color);
}

.back-to-top,
.scroll-top {
  background-color: var(--color-primary);
  color: #FFFFFF;
}

.back-to-top:hover,
.scroll-top:hover {
  background-color: var(--color-dark);
  color: #FFFFFF;
}


/*==========================================================================
  RESPONSIVE
  The palette is breakpoint independent - these rules only keep the mobile
  drawer and tablet header on the same surfaces as desktop.
==========================================================================*/
@media (max-width: 1199px) {

  .offcanvas,
  .offcanvas-body,
  .mobile-menu,
  .category-menu {
    background-color: #FFFFFF;
    color: var(--text-main);
  }

  .subcategory {
    background-color: var(--bg-blue-soft);
  }
}

@media (max-width: 767px) {

  .footer,
  .footer-widget {
    background-color: var(--bg-blue-soft);
  }
}
