/* HAC Resources: brand overrides on top of the Consora template */
.theme-hac {
  --tp-theme-primary: #4b9a80;
  --tp-theme-secondary: #1f2a40;
  --tp-theme-gray: #5b6577;
  --tp-theme-white: #f1f5f9;
}

/* Buttons that use the primary colour: white label reads better on the green */
.theme-hac .tp-btn.theme-bg-color { color: #fff; }
.theme-hac .tp-btn.theme-bg-color i::after { background-color: #fff; }

/* Header */
.hac-logo img { width: 150px; height: auto; display: block; }
.hac-header .tp-header-menu ul li.active > a { color: var(--tp-theme-primary); }

/* Founders */
.hac-founder .tp-cc-team-item-thumb { aspect-ratio: 4 / 5; background: var(--tp-theme-white); }
.hac-founder .tp-cc-team-item-thumb img { height: 100%; object-fit: cover; object-position: top center; }
.hac-founder .tp-cc-team-item-content { padding-top: 22px; }
.hac-founder .hac-role { font-style: italic; color: var(--tp-theme-primary); margin-bottom: 14px; }

/* Page banner: brand background instead of the template's placeholder photo */
.hac-breadcrumb { position: relative; overflow: hidden; background: var(--tp-theme-white); }
.hac-breadcrumb::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(75, 154, 128, .35) 1px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 55%);
  mask-image: radial-gradient(ellipse at 100% 0%, #000, transparent 55%);
}
.hac-breadcrumb .container { position: relative; }

/* Home contact section: HAC navy instead of the template's teal photo background */
.theme-hac .tp-cn-contact-bg::before {
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  background-size: 14px 14px;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 65%);
  mask-image: radial-gradient(ellipse at 0% 100%, #000, transparent 65%);
}
/* CEO as a faded, tinted backdrop behind the quote, like the template's photo treatment */
.hac-ceo-wrap { position: relative; min-height: 640px; display: flex; flex-direction: column; justify-content: space-between; }
.hac-ceo-wrap > *:not(.hac-ceo-bg) { position: relative; z-index: 1; }
.hac-ceo-bg {
  position: absolute; z-index: 0; right: -20px; bottom: -110px; width: 470px; max-width: none; height: auto;
  filter: grayscale(1) contrast(1.05); opacity: .3; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hac-plane-wrap { padding-left: 200px; }
.hac-plane { width: 210px; height: auto; display: block; animation: hac-fly 6s ease-in-out infinite; }
@keyframes hac-fly {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(12px, -16px) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) { .hac-plane { animation: none; } }
@media (max-width: 991px) { .hac-ceo-wrap { min-height: 0; gap: 30px; } .hac-ceo-bg { width: 320px; right: 0; bottom: 0; } }
@media (max-width: 575px) { .hac-plane-wrap { padding-left: 0; } }

/* Loader: HAC navy, green ring, white mark centred inside */
.theme-hac .loader-mask { background-color: #1f2a40; }
.hac-loader { position: relative; width: 120px; height: 120px; }
.hac-loader .tp-fading-circle { position: relative; width: 120px; height: 120px; }
.theme-hac .tp-fading-circle .tp-circle:before { background-color: var(--tp-theme-primary); }
.hac-loader-mark {
  position: absolute; inset: 0; margin: auto; width: 38px; height: auto;
  filter: brightness(0) invert(1);
}
.hac-loader-title {
  margin: 34px 0 0; font-size: 30px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase;
  color: #fff; text-align: center;
}
.hac-loader-tagline {
  margin-top: 10px; font-size: 15px; font-style: italic; letter-spacing: .5px; color: var(--tp-theme-primary); text-align: center;
}
@media (max-width: 575px) { .hac-loader-title { font-size: 22px; letter-spacing: 2px; } }
