/**
 * CASA START UP — theme overrides (load after styles.css)
 * Buttons: orange CTAs · Links/accents: teal · Footer: navy
 */

/* -------------------------------------------------------------------------
   Typography — Inter + fallbacks (clean, modern)
   ------------------------------------------------------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body.body {
  font-family: "Inter", "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--brand-text);
}

/* -------------------------------------------------------------------------
   Bootstrap 5 — align with brand (pages using utilities)
   ------------------------------------------------------------------------- */
:root {
  --bs-primary: #00b4d8;
  --bs-primary-rgb: 0, 180, 216;
  --bs-link-color: #00b4d8;
  --bs-link-hover-color: #0086a3;
}

.btn-primary,
.btn-primary:focus {
  --bs-btn-bg: #f58220;
  --bs-btn-border-color: #f58220;
  --bs-btn-hover-bg: #d96d0f;
  --bs-btn-hover-border-color: #d96d0f;
  --bs-btn-active-bg: #c2610d;
  --bs-btn-active-border-color: #c2610d;
  --bs-btn-active-color: #fff;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  color: #fff !important;
}

.btn-outline-primary {
  --bs-btn-color: #00b4d8;
  --bs-btn-border-color: #00b4d8;
  --bs-btn-hover-bg: #00b4d8;
  --bs-btn-hover-border-color: #00b4d8;
  --bs-btn-hover-color: #fff;
}

.alert-primary {
  --bs-alert-color: #004b8d;
  --bs-alert-bg: rgba(0, 180, 216, 0.12);
  --bs-alert-border-color: rgba(0, 180, 216, 0.35);
}

/* -------------------------------------------------------------------------
   Main header — black bar, light nav, brand accents (not header-style-2 hero)
   ------------------------------------------------------------------------- */
.main-header:not(.header-style-2) {
  background-color: #000000 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.main-header:not(.header-style-2).is-fixed {
  background-color: #000000 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.main-header:not(.header-style-2) .inner-header {
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.main-header:not(.header-style-2) .inner-header-left {
  gap: clamp(1rem, 3vw, 2rem);
  min-width: 0;
}

.main-header:not(.header-style-2) .inner-header-left .logo-box {
  flex-shrink: 0;
}

/* -------------------------------------------------------------------------
   Desktop (≥1100px): one bar — flex nav row (no wrap). Menu link size/padding
   stays as theme defaults (styles.css). Space saved via compact icon CTAs.
   ------------------------------------------------------------------------- */
@media only screen and (min-width: 1100px) {
  .main-header:not(.header-style-2) .inner-header {
    flex-wrap: nowrap;
    align-items: center;
  }

  .main-header:not(.header-style-2) .inner-header-left {
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
  }

  .main-header:not(.header-style-2) .header-lower .nav-outer {
    flex: 1 1 auto;
    min-width: 0;
  }

  .main-header:not(.header-style-2) .inner-header-actions {
    flex-shrink: 0;
  }

  .main-header:not(.header-style-2) .main-menu ul.navigation::after {
    content: none !important;
    display: none !important;
  }

  .main-header:not(.header-style-2) .main-menu .navigation {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .main-header:not(.header-style-2) .main-menu .navigation > li {
    display: block;
    flex: 0 0 auto;
    padding-right: 65px;
    white-space: nowrap;
  }

  .main-header:not(.header-style-2) .main-menu .navigation > li:last-child {
    padding-right: 0;
  }
}

/* Primary nav — readable default + teal hover/current */
.main-header:not(.header-style-2) .main-menu .navigation > li > a {
  color: rgba(255, 255, 255, 0.92) !important;
  transition:
    color 0.25s ease,
    letter-spacing 0.25s ease;
}

.main-header:not(.header-style-2) .main-menu .navigation > li:hover > a,
.main-header:not(.header-style-2) .main-menu .navigation > li.current > a {
  color: var(--brand-teal) !important;
}

@media (prefers-reduced-motion: no-preference) {
  .main-header:not(.header-style-2) .main-menu .navigation > li > a:hover {
    letter-spacing: 0.02em;
  }
}

.main-header:not(.header-style-2) .main-menu .navigation > li > a:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Animated underline — brand orange on dark bar */
.main-header .main-menu .navigation > li > a::before {
  background: var(--brand-orange);
}

/* Header CTAs — outline + filled primary stays on-brand */
.main-header:not(.header-style-2) .header-account {
  flex-shrink: 0;
}

.main-header:not(.header-style-2) .header-account .tf-btn.btn-line:not(.primary):not(.border-0) {
  min-width: min(150px, 42vw);
  background-color: transparent !important;
  border-color: rgba(255, 255, 255, 0.55) !important;
  color: #ffffff !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.main-header:not(.header-style-2) .header-account .tf-btn.btn-line:not(.primary):not(.border-0):hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--brand-teal) !important;
}

.main-header:not(.header-style-2) .header-account .tf-btn.btn-line:not(.primary):not(.border-0) svg path {
  stroke: #ffffff;
  transition: stroke 0.2s ease;
}

.main-header:not(.header-style-2) .header-account .tf-btn.btn-line:not(.primary):not(.border-0):hover svg path {
  stroke: var(--brand-teal);
}

/* Ghost actions (e.g. Logout) — no filled hover */
.main-header:not(.header-style-2) .header-account .tf-btn.btn-line.border-0 {
  color: rgba(255, 255, 255, 0.9) !important;
}

.main-header:not(.header-style-2) .header-account .tf-btn.btn-line.border-0:hover {
  color: var(--brand-teal) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

.main-header:not(.header-style-2) .header-account button.tf-btn:focus-visible,
.main-header:not(.header-style-2) .header-account .tf-btn:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

/* Language switcher — dark header */
.main-header:not(.header-style-2) .header-locale-switcher {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}

.main-header:not(.header-style-2) .header-locale-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.92) !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 8px;
  box-shadow: none !important;
}

.main-header:not(.header-style-2) .header-locale-switcher__toggle:hover,
.main-header:not(.header-style-2) .header-locale-switcher__toggle:focus-visible,
.main-header:not(.header-style-2) .header-locale-switcher__toggle.show {
  color: #ffffff !important;
  border-color: var(--brand-teal) !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

.main-header:not(.header-style-2) .header-locale-switcher__globe {
  display: flex;
  line-height: 0;
  opacity: 0.9;
}

.main-header:not(.header-style-2) .header-locale-switcher__code {
  letter-spacing: 0.02em;
}

.main-header:not(.header-style-2) .header-locale-switcher__toggle.dropdown-toggle::after {
  margin-left: 0.1rem;
  border-top-color: rgba(255, 255, 255, 0.75);
}

.header-locale-switcher__menu {
  z-index: 1060;
  min-width: 11rem;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  /* Solid panel + dark text — avoids inheriting header’s light color on phones */
  background-color: #ffffff !important;
  color: #161e2d !important;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.35rem 0;
}

.header-locale-switcher__form {
  margin: 0;
}

.header-locale-switcher__option {
  width: 100%;
  text-align: start;
  color: #161e2d !important;
  font-weight: 500;
}

.header-locale-switcher__option:hover,
.header-locale-switcher__option:focus {
  background-color: rgba(0, 180, 216, 0.14) !important;
  color: #0a1628 !important;
}

.header-locale-switcher__option.active {
  color: var(--brand-teal-dark) !important;
  font-weight: 700;
  background-color: rgba(0, 180, 216, 0.08);
}

/* Mobile drawer — language row */
.mobile-menu .mobi-locale-box {
  padding: 1rem 0 0.5rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu .mobi-locale-box__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #161e2d;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.mobile-menu .mobi-locale-box__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.mobile-menu .mobi-locale-box__form {
  margin: 0;
}

.mobile-menu .mobi-locale-box__btn {
  min-width: auto !important;
  padding: 0.45rem 0.95rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #161e2d !important;
  background-color: #ffffff !important;
  border: 2px solid rgba(22, 30, 45, 0.35) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mobile-menu .mobi-locale-box__btn:hover,
.mobile-menu .mobi-locale-box__btn:focus-visible {
  border-color: var(--brand-teal) !important;
  color: #0a1628 !important;
  background-color: rgba(0, 180, 216, 0.08) !important;
}

.mobile-menu .mobi-locale-box__btn.is-active {
  border-color: var(--brand-teal) !important;
  color: #0a4a5c !important;
  background-color: rgba(0, 180, 216, 0.12) !important;
  font-weight: 700 !important;
}

/* Hamburger — light bars on black */
.main-header:not(.header-style-2) .mobile-nav-toggler.mobile-button::before,
.main-header:not(.header-style-2) .mobile-nav-toggler.mobile-button::after,
.main-header:not(.header-style-2) .mobile-nav-toggler.mobile-button span {
  background-color: #ffffff !important;
}

@media only screen and (max-width: 1199px) {
  .main-header:not(.header-style-2) .header-account:not(.header-account--desktop) .tf-btn {
    min-width: min(140px, 28vw);
  }

  .main-header:not(.header-style-2) .header-account:not(.header-account--desktop) .btn-login {
    min-width: min(100px, 22vw);
  }

  .main-header:not(.header-style-2) .header-account:not(.header-account--desktop) .tf-btn.border-0 {
    min-width: auto !important;
  }
}

/* Desktop ≥1100px: compact Sign in / Submit / Dashboard / Logout (icons + short labels) */
@media only screen and (min-width: 1100px) {
  .main-header:not(.header-style-2) .header-account--desktop {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: nowrap;
  }

  .main-header:not(.header-style-2) .header-account--desktop .tf-btn,
  .main-header:not(.header-style-2) .header-account--desktop button.tf-btn {
    min-width: auto !important;
    padding: 0.4rem 0.65rem !important;
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
  }

  .main-header:not(.header-style-2) .header-account--desktop .header-account-cta__icon {
    display: inline-flex;
    line-height: 0;
    flex-shrink: 0;
  }

  .main-header:not(.header-style-2) .header-account--desktop .header-account-cta__icon svg {
    width: 17px;
    height: 17px;
    display: block;
  }

  .main-header:not(.header-style-2) .header-account--desktop .tf-btn .header-account-cta__icon svg {
    fill: currentColor;
  }

  /* Sign in / Submit property: icon-only (accessible via aria-label + title) */
  .main-header:not(.header-style-2) .header-account--desktop .header-account-cta--icon-only {
    min-width: 2.5rem !important;
    min-height: 2.5rem !important;
    padding: 0.45rem !important;
  }

  .main-header:not(.header-style-2) .header-account--desktop .header-account-cta--icon-only .header-account-cta__icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile drawer: submit property — icon button */
.mobile-menu .button-mobi-sell .header-mobi-submit-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.65rem 1rem !important;
}

.mobile-menu .button-mobi-sell .header-mobi-submit-btn__icon {
  display: inline-flex;
  line-height: 0;
}

.mobile-menu .button-mobi-sell .header-mobi-submit-btn__icon svg {
  display: block;
}

@media only screen and (max-width: 1099px) {
  .main-header:not(.header-style-2) {
    padding-left: clamp(10px, 3vw, 15px);
    padding-right: clamp(10px, 3vw, 15px);
  }

  .main-header:not(.header-style-2) .inner-header-actions .header-account {
    margin-right: 0;
    gap: 8px;
  }

  .main-header:not(.header-style-2) .header-account .tf-btn.primary {
    padding-left: 14px;
    padding-right: 14px;
    min-width: unset;
  }

  .main-header:not(.header-style-2) .header-account .tf-btn.btn-line {
    padding-left: 12px;
    padding-right: 12px;
    min-width: unset;
  }
}

@media only screen and (max-width: 575px) {
  .main-header:not(.header-style-2) .header-account .tf-btn {
    font-size: 0.8125rem;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Mobile header — single user icon + dropdown (visibility rules also in layout <head> critical CSS) */
@media only screen and (max-width: 1099.98px) {
  .main-header:not(.header-style-2) .inner-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  /* Never collapse to 0 width (min-width:0 + flex could hide the logo) */
  .main-header:not(.header-style-2) .inner-header-left {
    flex: 1 1 auto;
    flex-shrink: 1;
    min-width: 96px;
    max-width: calc(100% - 188px);
  }

  .main-header:not(.header-style-2) .header-account--desktop {
    display: none !important;
  }

  .main-header:not(.header-style-2) .inner-header-actions {
    position: relative !important;
    z-index: 1040;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
    align-items: center;
    justify-content: flex-end;
    padding-right: 44px;
    margin-left: auto;
    gap: 0.25rem;
  }

  .main-header:not(.header-style-2) .inner-header-actions .mobile-nav-toggler.mobile-button {
    position: absolute !important;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
  }

  .header-mobile-user {
    position: relative;
    z-index: 2;
  }

  .header-mobile-user__toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    color: #ffffff !important;
    transition:
      background 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }

  .header-mobile-user__toggle.dropdown-toggle::after {
    display: none !important;
  }

  .header-mobile-user__toggle:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 180, 216, 0.45);
    color: var(--brand-teal) !important;
  }

  .header-mobile-user__toggle:hover .header-mobile-user__svg {
    color: var(--brand-teal);
  }

  .header-mobile-user__toggle:focus-visible {
    outline: 2px solid var(--brand-teal);
    outline-offset: 2px;
  }

  .header-mobile-user__toggle:active {
    transform: scale(0.96);
  }

  .header-mobile-user__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    pointer-events: none;
  }

  .header-mobile-user__svg {
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #ffffff;
  }

  .header-mobile-user__dropdown {
    min-width: 12rem;
    margin-top: 0.35rem !important;
    padding: 0.4rem 0;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    /* motion only — avoid opacity 0→1 which can read as header “flicker” */
    animation: header-user-dd-in 0.16s ease-out;
  }

  .header-mobile-user__dropdown .dropdown-item {
    padding: 0.55rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
  }

  .header-mobile-user__dropdown .dropdown-item:active {
    background-color: rgba(0, 180, 216, 0.12);
    color: var(--brand-teal-dark);
  }

  .header-mobile-user__dropdown button.dropdown-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
  }

  /* Language globe control — easier to see on small screens */
  .main-header:not(.header-style-2) .header-locale-switcher__toggle {
    border-color: rgba(255, 255, 255, 0.52) !important;
    color: #ffffff !important;
  }

  .main-header:not(.header-style-2) .header-locale-switcher__globe {
    opacity: 1;
  }

  .main-header:not(.header-style-2) .header-locale-switcher__toggle.dropdown-toggle::after {
    border-top-color: rgba(255, 255, 255, 0.92);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-mobile-user__toggle:active {
    transform: none;
  }

  .header-mobile-user__dropdown {
    animation: none;
  }
}

@keyframes header-user-dd-in {
  from {
    transform: translateY(-4px);
  }

  to {
    transform: translateY(0);
  }
}

/* Right-side cluster: account buttons + mobile icons + menu toggle */
.main-header:not(.header-style-2) .inner-header-actions {
  margin-left: auto;
  gap: 0.25rem;
}

/* Header / mobile drawer — logo scales on small screens */
.header-brand-logo-img {
  max-width: min(174px, 48vw);
  height: auto;
  object-fit: contain;
}

/* -------------------------------------------------------------------------
   Primary CTA buttons (theme .tf-btn.primary)
   ------------------------------------------------------------------------- */
.tf-btn.primary,
.tf-btn.primary:focus {
  background-color: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #fff !important;
}

.tf-btn.primary:hover {
  background-color: var(--brand-orange-hover) !important;
  border-color: var(--brand-orange-hover) !important;
  color: #fff !important;
}

.tf-btn.primary .icon {
  color: #fff !important;
}

/* -------------------------------------------------------------------------
   Footer — CASA site grid: cohesive surface, hierarchy, a11y contrast
   ------------------------------------------------------------------------- */
.footer.footer-site-grid {
  --footer-text: rgba(255, 255, 255, 0.88);
  --footer-text-muted: rgba(255, 255, 255, 0.65);
  --footer-heading: #ffffff;
  position: relative;
  overflow: hidden;
  /* Single cohesive depth (not two flat blues) */
  background: linear-gradient(
    165deg,
    #055a8c 0%,
    var(--brand-navy) 42%,
    #002a4d 100%
  ) !important;
  background-color: var(--brand-navy) !important;
  box-shadow: none !important;
}

.footer.footer-site-grid .footer-site-grid__accent {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--brand-teal) 25%,
    var(--brand-orange) 50%,
    var(--brand-teal) 75%,
    transparent 100%
  );
  opacity: 0.95;
  pointer-events: none;
}

.footer.footer-site-grid .inner-footer,
.footer.footer-site-grid .bottom-footer,
.footer.footer-site-grid .bottom-footer .container {
  background: transparent !important;
  background-image: none !important;
  position: relative;
  z-index: 1;
}

/* Theme hides .tf-collapse-content on small screens — keep grid footer always open */
@media only screen and (max-width: 767px) {
  .footer.footer-site-grid .tf-collapse-content {
    display: block !important;
  }
}

.footer.footer-site-grid .footer-cl-1,
.footer.footer-site-grid .footer-cl-2,
.footer.footer-site-grid .footer-cl-3,
.footer.footer-site-grid .footer-cl-4 {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
}

.footer.footer-site-grid .inner-footer {
  padding-top: clamp(2.5rem, 5vw, 3.75rem) !important;
  padding-bottom: clamp(2rem, 4vw, 3rem) !important;
}

@media (min-width: 992px) {
  .footer.footer-site-grid .inner-footer .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
  }

  .footer.footer-site-grid .inner-footer .footer-col-block,
  .footer.footer-site-grid .inner-footer .footer-brand-col {
    flex: 1 1 auto;
  }
}

/* Section titles — high contrast on dark bg */
.footer.footer-site-grid .footer-col-title {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-heading) !important;
  margin: 0 0 1.125rem !important;
  padding: 0 0 0.75rem;
  border-bottom: 2px solid rgba(245, 130, 32, 0.55);
  line-height: 1.35;
}

.footer.footer-site-grid .footer-about {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--footer-text) !important;
  max-width: 26rem;
}

.footer.footer-site-grid .footer-about + .footer-social-wrap {
  margin-top: 1.5rem;
}

.footer.footer-site-grid .footer-social-wrap .footer-social-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text-muted);
  margin-bottom: 0.875rem;
}

.footer.footer-site-grid .footer-social-hint {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer.footer-site-grid .footer-muted {
  color: var(--footer-text-muted) !important;
}

/* Nav links — readable hierarchy (not theme .text-variant-2 grey) */
.footer.footer-site-grid .footer-link-list li {
  margin-bottom: 0.4rem;
}

.footer.footer-site-grid .footer-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0;
  min-height: 2.25rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--footer-text) !important;
  text-decoration: none;
  border-radius: 4px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .footer.footer-site-grid .footer-nav-link {
    transition: none;
  }
}

.footer.footer-site-grid .footer-nav-link:hover {
  color: var(--brand-teal) !important;
  transform: translateX(4px);
}

.footer.footer-site-grid .footer-nav-link:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
  color: #fff !important;
}

/* Override theme underline animation for cleaner footer links */
.footer.footer-site-grid .navigation-menu-footer li a.footer-nav-link::after {
  display: none;
}

.footer.footer-site-grid .navigation-menu-footer li a.footer-nav-link:hover::after {
  width: 0;
}

/* Contact */
.footer.footer-site-grid .footer-contact-list li {
  margin-top: 0 !important;
  margin-bottom: 1rem;
}

.footer.footer-site-grid .footer-contact-list li:last-child {
  margin-bottom: 0;
}

.footer.footer-site-grid .footer-contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-top: 0.1rem;
  border-radius: 8px;
  background: rgba(0, 180, 216, 0.15);
  color: var(--brand-teal) !important;
}

.footer.footer-site-grid .footer-contact-icon .icon {
  color: inherit !important;
}

.footer.footer-site-grid .footer-contact-icon--whatsapp {
  background: rgba(37, 211, 102, 0.18);
  color: #25d366 !important;
}

.footer.footer-site-grid .footer-contact-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--footer-text) !important;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.footer.footer-site-grid .footer-contact-list a.footer-contact-text:hover,
.footer.footer-site-grid .footer-contact-list a.footer-contact-text:focus-visible {
  color: var(--brand-teal) !important;
}

.footer.footer-site-grid .footer-contact-list a[href^="mailto:"] {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer.footer-site-grid .footer-contact-list a[href^="mailto:"]:hover {
  text-decoration-thickness: 2px;
}

/* Logo */
.footer.footer-site-grid .footer-logo-link {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer.footer-site-grid .footer-logo-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer.footer-site-grid .footer-brand-logo {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

/* Social — visible branded chips */
.footer.footer-site-grid .footer-social-btn.social,
.footer.footer-site-grid .footer-social .footer-social-btn.social {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.footer.footer-site-grid .footer-social-btn.social:hover {
  background: rgba(0, 180, 216, 0.25) !important;
  border-color: rgba(0, 180, 216, 0.55) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.footer.footer-site-grid .footer-social-btn.social:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

/* Bottom bar — black strip + soft divider */
.footer.footer-site-grid .bottom-footer {
  background-color: #000000 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
  padding-top: 0 !important;
}

.footer.footer-site-grid .footer-bottom-wa {
  color: rgba(255, 255, 255, 0.9) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 211, 102, 0.45);
  background: rgba(37, 211, 102, 0.12);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.footer.footer-site-grid .footer-bottom-wa:hover {
  background: rgba(37, 211, 102, 0.22);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.footer.footer-site-grid .footer-bottom-wa__icon {
  display: flex;
  color: #25d366;
  flex-shrink: 0;
}

.footer.footer-site-grid .footer-bottom-wa:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 3px;
}

.footer.footer-site-grid .footer-bottom-bar.content-footer-bottom {
  padding-top: 1.25rem !important;
  padding-bottom: 1.5rem !important;
  gap: 1rem 1.5rem !important;
  border-top: none !important;
}

.footer.footer-site-grid .content-footer-bottom .copyright {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72) !important;
}

.footer.footer-site-grid .footer-legal-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none;
  padding: 0.35rem 0;
  border-radius: 4px;
  transition: color 0.2s ease;
}

.footer.footer-site-grid .footer-legal-link:hover {
  color: var(--brand-orange) !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer.footer-site-grid .footer-legal-link:focus-visible {
  outline: 2px solid var(--brand-teal);
  outline-offset: 2px;
}

.footer .content-footer-bottom .menu-bottom a:hover {
  color: var(--brand-orange) !important;
}

/* Floating WhatsApp (layout, outside footer — avoids overflow clipping) */
.site-whatsapp-fab {
  position: fixed;
  right: 1rem;
  bottom: 5.5rem;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.site-whatsapp-fab:hover {
  color: #ffffff !important;
  transform: scale(1.05);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}

.site-whatsapp-fab:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.site-whatsapp-fab__icon {
  display: flex;
  line-height: 0;
}

@media (prefers-reduced-motion: reduce) {
  .site-whatsapp-fab:hover {
    transform: none;
  }

  .footer.footer-site-grid .footer-bottom-wa:hover {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .site-whatsapp-fab {
    right: 0.75rem;
    bottom: 5.25rem;
    width: 52px;
    height: 52px;
  }
}

/* Go-top: clear of footer content + FAB */
.progress-wrap {
  bottom: 1.75rem !important;
  z-index: 100;
}

@media (max-width: 767.98px) {
  .footer.footer-site-grid .footer-nav-link {
    min-height: 44px;
  }
}

@media (max-width: 575.98px) {
  .footer.footer-site-grid .inner-footer {
    padding-bottom: 4rem !important;
  }

  .footer.footer-site-grid .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start !important;
    text-align: left;
  }

  .footer.footer-site-grid .footer-bottom-wa {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .footer.footer-site-grid .footer-bottom-legal-wrap {
    order: 3;
    width: 100%;
  }

  .footer.footer-site-grid .footer-bottom-legal {
    gap: 0.75rem 1.25rem !important;
  }
}

/* Mobile drawer — WhatsApp row */
.mobile-menu .mobi-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #25d366;
  flex-shrink: 0;
}

/* Non-grid footers: keep brand navy */
.footer:not(.footer-site-grid) {
  background-color: var(--brand-navy) !important;
}

/* -------------------------------------------------------------------------
   Subtle brand-tinted backgrounds
   ------------------------------------------------------------------------- */
.bg-primary-new {
  background-color: rgba(0, 180, 216, 0.08) !important;
}

.bg-surface {
  background-color: var(--brand-bg-light) !important;
}

/* -------------------------------------------------------------------------
   Progress / go-top (accessibility)
   ------------------------------------------------------------------------- */
.progress-wrap svg.progress-circle path {
  stroke: var(--brand-teal) !important;
}

/* -------------------------------------------------------------------------
   Form focus rings (accessibility)
   ------------------------------------------------------------------------- */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 0.2rem rgba(0, 180, 216, 0.25);
}

/* -------------------------------------------------------------------------
   Responsive: keep tap targets comfortable
   ------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .tf-btn.primary {
    min-height: 44px;
  }
}

/* -------------------------------------------------------------------------
   Home hero — image-only Swiper (no video)
   ------------------------------------------------------------------------- */
.flat-slider.home-1.home-hero-slider {
  background-image: none !important;
}

.home-hero-slider .wrap-video.hero-image-only {
  position: relative;
  width: 100%;
  min-height: 520px;
}

@media (min-width: 992px) {
  .home-hero-slider .wrap-video.hero-image-only {
    min-height: 640px;
  }
}

.home-hero-slider .hero-swiper {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.home-hero-slider .hero-slide-item,
.home-hero-slider .hero-slide-media {
  height: 100%;
  min-height: 520px;
}

.home-hero-slider .hero-slide-img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: block;
}

.home-hero-slider .hero-single-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-slider .hero-single-fallback .hero-slide-img {
  min-height: 520px;
}

.home-hero-slider .hero-slide-overlay-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem 1.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 26, 61, 0.85), transparent);
  pointer-events: none;
}

.home-hero-slider .hero-slide-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.home-hero-slider .hero-slide-caption-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
  color: #fff;
  max-width: 36rem;
}

.home-hero-slider .hero-pagination.swiper-pagination-bullets {
  bottom: 1.25rem !important;
}

.home-hero-slider .hero-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.45);
  opacity: 1;
}

.home-hero-slider .hero-pagination .swiper-pagination-bullet-active {
  background: var(--brand-orange);
  width: 24px;
  border-radius: 6px;
}

.home-hero-slider .hero-nav {
  color: #fff !important;
  width: 44px;
  height: 44px;
  margin-top: 0 !important;
  top: 50% !important;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.home-hero-slider .hero-nav::after {
  font-size: 1rem !important;
  font-weight: 700;
}

.home-hero-slider .hero-nav:hover {
  background: rgba(0, 0, 0, 0.45);
}

.home-hero-slider .hero-nav-prev {
  left: 12px !important;
}

.home-hero-slider .hero-nav-next {
  right: 12px !important;
}

@media (max-width: 575.98px) {
  .home-hero-slider .hero-nav {
    display: none;
  }
}
