/*
 * These styles were INLINE in the PHP site (cdn.php <style> block and menu.php <style> block)
 * They are NOT in custom.min.css and must be added here.
 * DO NOT duplicate anything already in custom.min.css
 */

/* Header container override - cdn.php inline */
.header .container {
  width: 100%;
  max-width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

/* Navbar brand padding — override custom.min.css */
.header .navbar .navbar-brand {
  padding: 28px 28px 18px !important;
}
/* Sticky header — compact padding, logo size fixed via inline style */
.navbar.sticky-header .navbar-brand {
  padding: 8px 1px !important;
  max-width: none !important;
}
@media (max-width: 1199px) {
  .header .navbar .navbar-brand {
    padding: 15px 12px !important;
  }
  .navbar.sticky-header .navbar-brand {
    padding: 8px 1px !important;
  }
}

/* Nav font size override - cdn.php inline */
.header .navbar-light .navbar-nav .nav-item .nav-link,
.header .navbar-light .navbar-nav .nav-item .tw-nav-link,
.header .tw-navbar-nav .nav-item .tw-nav-link {
  font-size: 14px;
}

/* ── Offerings nav-item: keep link + chevron button on one line ── */
/* The Offerings <li> contains an <a> and a <button> as siblings.
   Without flex, the button wraps to a new line. */
.header .navbar-light .navbar-nav .nav-item.dropdown:has(.offerings-nav-link) {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Offerings nav-link: match exact font/spacing of other .nav-link items */
.header .navbar-light .navbar-nav .nav-item .offerings-nav-link {
  font-size: 13px;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline;
  padding: 0;
  vertical-align: middle;
}

/* Chevron toggle button: inline, zero extra space, inherits font */
.header .navbar-light .navbar-nav .dropdown-toggle-arrow {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0 0 6px;
  margin: 0;
  cursor: pointer;
  font-size: 13px;
  color: #ffffff;
  line-height: inherit;
  vertical-align: middle;
  flex-shrink: 0;
}
.navbar.sticky-header .navbar-light .navbar-nav .dropdown-toggle-arrow,
.navbar.sticky-header .dropdown-toggle-arrow {
  color: #898989;
}

/* Menu.php inline styles for submenu */
ul.navbar-nav li ul.dropdown-menu li.submenu {
  border-bottom: 1px solid #ccc;
}
ul.navbar-nav li ul.dropdown-menu li.submenu:hover ul.dropdown-menu.p-0 {
  display: block !important;
}
ul.navbar-nav li ul.dropdown-menu li.submenu a.nav-link {
  font-size: 14px !important;
  color: #666 !important;
  padding-left: 5px !important;
  border-bottom: none !important;
}
ul.navbar-nav li ul.dropdown-menu li.submenu a.nav-link:hover {
  color: #ddad67 !important;
}
ul.navbar-nav li ul.dropdown-menu li ul.dropdown-menu.p-0 {
  left: -100%;
  top: 0;
  display: none !important;
}

/* Menu.php inline - dropdown show state */
.dropdown-menu.show {
  display: block;
}
@media (max-width: 991px) {
  .dropdown-menu {
    position: absolute;
    width: 100%;
  }
}

/* Number input spinners - cdn.php inline */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* Google Translate - cdn.php inline */
.mobile_lang_ico .gtranslate_wrapper {
  display: none;
  position: fixed;
  top: 65px;
  right: 20px;
  border-radius: 5px;
  background: #fff;
  color: gray;
  z-index: 100;
}
.mobile_lang_ico .gtranslate_wrapper select {
  color: gray;
}
.gtranslate_wrapper .gt_switcher_wrapper {
  font-size: 13px;
  margin-top: 70px;
}
.gtranslate_wrapper select {
  outline: 0;
  width: 75px;
  font-size: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  text-transform: uppercase;
  cursor: pointer;
}
.gtranslate_wrapper select option {
  color: gray;
  font-size: 10px;
}
.sticky-header .gtranslate_wrapper select {
  color: #53315b;
}
.lang-widget-icon {
  width: 20px;
  cursor: pointer;
  transition: .15s;
  fill: #fff;
  margin-left: 9px;
}
.lang-widget-icon path {
  fill: #fff;
}
.sticky-header .lang-widget-icon path {
  fill: #53315b;
}
.mobile_lang_ico {
  position: relative;
  right: 15px;
}
.mobile_lang_ico .lang-widget-icon {
  width: 30px;
  height: 30px;
}

/* Breadcrumbs - cdn.php inline */
.breadcrub_wrapper nav {
  border-bottom: 2px solid #e8d5ae;
}
.breadcrub_wrapper {
  margin-top: 15px;
  margin-bottom: 30px;
}
.breadcrub_wrapper .breadcrumb-item.active,
.breadcrub_wrapper .breadcrumb-item+.breadcrumb-item::before,
.breadcrub_wrapper .breadcrumb-item a:hover {
  color: #53315b !important;
}
.breadcrub_wrapper .breadcrumb-item a,
.breadcrub_wrapper .breadcrumb-item {
  color: #2c2e35;
  font-size: 13px;
  font-weight: 500;
}
.breadcrub_wrapper .breadcrumb-item+.breadcrumb-item {
  padding-left: 4px;
}
.breadcrub_wrapper .breadcrumb-item+.breadcrumb-item::before {
  padding-right: 4px;
  content: '>' !important;
  font-size: 14px;
  line-height: 20px;
}
.breadcrub_wrapper .breadcrumb {
  padding: 7px 0px;
  margin-bottom: 0;
  background: transparent;
}

/* Thanks page button - thanks.php inline */
.back_btn {
  background-color: #d6b46d;
  color: #fff;
  border-color: #d6b46d;
  text-transform: uppercase;
  margin-left: auto;
  padding: 7px 38px;
  font-size: 14px;
  line-height: 1;
  border-radius: 12px;
}
.back_btn:focus,
.back_btn:hover {
  background-color: #b08e3e;
  border-color: #b08e3e;
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NAV FOCUS TEXT-COLOUR FIX — WCAG 2.1 AA
   Loaded last so these rules beat every rule in custom.css / bootstrap.

   ROOT CAUSE:
   custom.css sets nav-link colour to #ffffff (white) for the transparent
   header state. When the sticky header is white (#fff background) and a
   nav item receives keyboard focus, the .show / :focus cascade keeps the
   text white → white-on-white, invisible.

   FIX: Force dark text on every nav focus state, for both the transparent
   header (dark overlay behind nav) and the sticky white header.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fix 1: Top-level nav links — dark text on focus ── */
.header .navbar-light .navbar-nav .nav-item .nav-link:focus,
.header .navbar-light .navbar-nav .nav-item .nav-link:focus-visible,
.header .navbar-light .navbar-nav .nav-item .nav-link:focus-within {
  color: #1a1a1a !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 4px;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
  text-decoration: none;
}

/* ── Fix 1b: Offerings nav-link (uses .offerings-nav-link not .nav-link alone) ── */
.header .navbar-light .navbar-nav .nav-item .offerings-nav-link:focus,
.header .navbar-light .navbar-nav .nav-item .offerings-nav-link:focus-visible {
  color: #1a1a1a !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 4px;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
}

/* ── Fix 1c: Offerings chevron toggle button ── */
.header .navbar-light .navbar-nav .dropdown-toggle-arrow:focus,
.header .navbar-light .navbar-nav .dropdown-toggle-arrow:focus-visible {
  color: #1a1a1a !important;
  background-color: rgba(255, 255, 255, 0.92) !important;
  border-radius: 4px;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
}

/* ── Fix 1d: .show state must NOT force white text on sticky header ── */
/* custom.css: .nav-item.show .nav-link { color: rgba(255,255,255,0.8) }
   This is fine on the transparent header but kills contrast on sticky white.
   We override it only when the sticky-header class is present. */
.navbar.sticky-header .navbar-nav .nav-item.show > .nav-link,
.navbar.sticky-header .navbar-nav .nav-item.show > .offerings-nav-link,
.navbar.sticky-header .navbar-nav .nav-item.show > .dropdown-toggle-arrow {
  color: #1a1a1a !important;
}

/* ── Fix 2: Dropdown submenu items — dark text on focus ── */
header .navbar-light .navbar-nav .dropdown-menu li .dropdown-item:focus,
header .navbar-light .navbar-nav .dropdown-menu li .dropdown-item:focus-visible {
  color: #1a1a1a !important;
  background-color: #f0f0f0 !important;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* Sticky header variant — same rule, explicit for specificity */
.navbar.sticky-header .navbar-nav .dropdown-menu li .dropdown-item:focus,
.navbar.sticky-header .navbar-nav .dropdown-menu li .dropdown-item:focus-visible {
  color: #1a1a1a !important;
  background-color: #f0f0f0 !important;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* ── Fix 3: Submenu nav-links inside Group Companies / Login dropdowns ── */
ul.navbar-nav li ul.dropdown-menu li.submenu a.nav-link:focus,
ul.navbar-nav li ul.dropdown-menu li.submenu a.nav-link:focus-visible {
  color: #1a1a1a !important;
  background-color: #f0f0f0 !important;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
  border-radius: 4px;
}

/* ── Fix 4: General anchor focus inside header — prevent white-on-white ── */
/* custom.css: a:focus { color: #ac8e49; outline: none }
   The gold colour (#ac8e49) has only 2.3:1 contrast on white — fails WCAG AA.
   We override to a dark colour only inside the header. */
.header a:focus,
.header a:focus-visible {
  color: #1a1a1a !important;
  outline: 2px solid #2d1b6e !important;
  outline-offset: 2px !important;
  border-radius: 4px;
  text-decoration: none;
}

/* ── Fix 5: Header nav background — WCAG AA contrast for white text (Issue 16) ──
   Tool measured #FFFFFF text on #B8AA7F background = 2.3:1 (fail).
   The transparent header has no background, so the gold/tan hero area shows through.
   Adding a dark overlay behind the nav ensures white text (#fff) achieves ≥4.5:1. */
.header .navbar {
  background-color: rgba(0, 0, 0, 0.55);
}
.navbar.sticky-header {
  background-color: #fff !important;
}
/* Sticky header nav links already use #898989 on #fff = 3.5:1 — boost to darker grey */
.navbar.sticky-header .navbar-nav .nav-item .nav-link,
.navbar.sticky-header .tw-navbar-nav .nav-item .tw-nav-link,
.navbar.sticky-header .tw-navbar-nav .tw-nav-link {
  color: #595959 !important;
}

/* ── Fix 6: Footer link hover contrast — WCAG AA (Issue 15) ──
   #c3a052 / #F3CE79 on #5b5b5b background = 2.5:1 (fail).
   #FFE57A on #5b5b5b = ~4.6:1 (pass). */
.footer ul li a:hover,
.footer ul li a:focus {
  color: #FFE57A !important;
}

/* ── Fix 7: Footer focus indicators ── WCAG 1.4.11 Non-Text Contrast (Issue 23) ──
   Browser default focus outline #005FCC on footer bg #5b5b5b = 1.1:1 (fail).
   #FFFFFF on #5b5b5b = 4.4:1 (pass ≥3:1). Applies to all interactive elements
   in the footer: nav links, logo, social icons, and the fixed Open an account btn. */
.footer a:focus,
.footer a:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px !important;
  border-radius: 2px;
}

/* Open an account button sits outside <footer> but over the footer visually */
a.act-btn:focus,
a.act-btn:focus-visible {
  outline: 2px solid #ffffff !important;
  outline-offset: 3px !important;
  border-radius: 7px;
}

/* ── Fix 8: Blog slider link hover contrast — WCAG 1.4.3 (Issue 15 blogs) ──
   Global a:hover uses #AC8E49 which on #444444 card text bg = 3.1:1 (fail).
   #7A5C00 on #444444 = ~5.2:1 (pass ≥4.5:1). Scoped to .blog-link only. */
.blogslider .blog-link:hover,
.blogslider .blog-link:focus {
  color: #7A5C00 !important;
}
.blogslider .blog-link:hover .boxHeading,
.blogslider .blog-link:focus .boxHeading {
  color: #7A5C00 !important;
}

/* ── Fix 9: Blog link focus indicator — WCAG 2.4.7 Focus Visible (Issue 35) ──
   Focus was only a color change — not perceivable for color-blind users.
   Adding a solid outline: #7A5C00 on #fefefe card bg = ~8.6:1 (pass ≥4.5:1). */
.blogslider .blog-link:focus,
.blogslider .blog-link:focus-visible {
  outline: 2px solid #7A5C00 !important;
  outline-offset: 3px !important;
  border-radius: 4px;
}

/* ── Fix 10: Contact page link focus — WCAG 1.4.11 Non-Text Contrast (Issue 22) ──
   On focus, global a:focus applies #AC8E49 color. That gold on adjacent dark text
   #4B4B4B = 2.8:1 (fail ≥3:1). Adding a solid outline provides a non-color
   focus indicator: #53315b outline on #fff page bg = ~9:1, on #4B4B4B = ~3.2:1. */
.contact-link:focus,
.contact-link:focus-visible {
  outline: 2px solid #53315b !important;
  outline-offset: 2px !important;
  border-radius: 2px;
}

/* ── Fix 11: Blog page link focus — WCAG 1.4.11 Non-Text Contrast (Issue 20) ──
   On focus, global a:focus applies #AC8E49 color. That gold on adjacent dark
   text #564444 = 2.9:1 (fail ≥3:1). A solid outline provides a non-color
   focus indicator: #53315b on #fff blog bg = ~9:1, on #564444 = ~3.1:1. */
.blog_page a:focus,
.blog_page a:focus-visible {
  outline: 2px solid #53315b !important;
  outline-offset: 2px !important;
  border-radius: 2px;
  color: #1a1a1a !important;
}

/* ── Fix 12: Blog detail sidebar form — WCAG 1.4.4 Resize Text (Issue 18) ──
   At 200% zoom (640px effective viewport), the form is hidden behind a popup
   that clips on short viewports. Show the form inline below content when the
   two-column layout is not active, ensuring all fields remain visible. */
@media (min-width: 1024px) {
  .landscape-form-container {
    position: relative;
    top: auto;
    max-width: 100%;
    overflow: visible;
  }
  .blog-sidebar-form {
    max-height: none;
    overflow-y: visible;
    overflow-x: hidden;
  }
}
@media (max-width: 1023px) {
  .blog__Inner__page .flex.flex-wrap > .px-4 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .landscape-form-container {
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
  }
  .blog_inner_right {
    max-width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    box-sizing: border-box !important;
  }
  .blog_inner_right.show {
    display: block !important;
    position: fixed !important;
    top: 5vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90% !important;
    max-width: 400px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    z-index: 1185 !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #fff !important;
    box-shadow: 0px 0px 25px rgba(0,0,0,0.3) !important;
    border-radius: 10px !important;
  }
}
@media (min-width: 992px) and (max-width: 1023px) {
  .blog_inner_right {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    z-index: auto !important;
    width: 100% !important;
  }
}
.blog-sidebar-form {
  max-height: none;
  overflow-y: visible;
}
@media (max-width: 1023px) {
  .blog-sidebar-form {
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    position: relative !important;
    top: auto !important;
  }
  .blog_inner_right .g-recaptcha {
    transform: scale(0.75) !important;
    transform-origin: 0 0 !important;
    height: 65px !important;
  }
}

/* ── Fix 13: Blog detail form — WCAG 1.3.4 Orientation & 1.4.10 Reflow ──
   In landscape orientation or at 400% zoom (320px effective viewport), the
   form must stack below content at full width so it never overlaps. */
@media (max-width: 576px) {
  .flex.flex-wrap .landscape-form-container,
  .landscape-form-container {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    position: relative !important;
    top: auto !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .blog__Inner__page .flex.flex-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .blog__Inner__page .flex.flex-wrap > .px-4 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .blog_inner_right {
    max-width: 100% !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  .blog_inner_right.show {
    display: block !important;
    position: fixed !important;
    top: 5vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 95% !important;
    max-width: 320px !important;
    z-index: 1185 !important;
    margin: 0 !important;
    padding: 15px !important;
    background: #fff !important;
    box-shadow: 0 0 25px rgba(0,0,0,0.3) !important;
    border-radius: 10px !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
  }
  .blog_inner_right .g-recaptcha {
    transform: scale(0.65) !important;
    transform-origin: 0 0 !important;
    height: 60px !important;
  }
}
@media (orientation: landscape) and (max-width: 1023px) {
  .blog_inner_right.show {
    top: 5vh !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    width: 90% !important;
    max-width: 400px !important;
    box-sizing: border-box !important;
  }
}
