/* HIVA brand palette: final override loaded last in the document head */
:root {
  --hiva-brand: #064B3F !important;
  --hiva-brand-hover: #04382f !important;
  --hiva-green: #064B3F !important;
  --hiva-green-deep: #04382f !important;
  --hiwa-blue: #064B3F !important;
  --hiwa-blue-deep: #04382f !important;
  --hiwa-navy: #173f2d !important;
  --hiwa-page: #e5efe8 !important;
  --hiwa-light: #eaf2ec !important;
  --hiwa-line: #c6dccd !important;
}
html, body { background: #e5efe8 !important; }
body, main, #main-content,
.hiwa-page, .hiwa-contact-page, .articles-page, .article-detail-page,
.hiva-account-page {
  background-color: #e5efe8 !important;
}
.hiva-account-page {
  background-image: linear-gradient(135deg, #064B3F 0%, #04382f 100%) !important;
}
.hiwa-header { background: #f7faf7 !important; border-bottom-color: #c6dccd !important; }
.hiwa-brand, .hiwa-nav a:hover, .hiwa-kicker, .hiwa-text-link,
.hiwa-page-hero-copy h1 em, .hiwa-page-hero-copy h1 span,
.hiwa-page-intro h2 em, .hiwa-page-cta h2 em,
.hiwa-service-body a, .hiwa-service-card-v2 .hiwa-service-body a,
.hiwa-article-category, .hiwa-article-link, .hiwa-article-title a {
  color: #064B3F !important;
}
.hiwa-brand-mark, .hiwa-header-cta, .hiwa-btn-primary, .hiwa-page-cta,
.hiwa-cta, .hiwa-blue-stamp, .hiva-account-submit,
button.btn-primary, input.btn-primary {
  background: #064B3F !important;
  border-color: #064B3F !important;
  color: #fff !important;
}
.hiwa-header-cta:hover, .hiwa-btn-primary:hover, .hiwa-page-cta:hover,
.hiwa-cta:hover, .hiva-account-submit:hover, .btn-primary:hover {
  background: #04382f !important;
  border-color: #04382f !important;
}
.hiwa-footer { background: #04382f !important; }
.hiwa-portfolio { background: #dcebe1 !important; }
.hiwa-service-card, .hiwa-service-card-v2, .hiwa-page-intro,
.hiwa-page-section, .hiwa-contact-card {
  background: #f7faf7 !important;
}
.hiva-account-card { background: #fff !important; }
.hiva-account-mark, .hiva-account-tab.active {
  background-color: #064B3F !important;
  border-color: #064B3F !important;
}
.hiva-account-tab.active, .hiva-account-tab.active strong,
.hiva-account-tab.active span { color: #fff !important; }
.hiva-account-brand strong, .hiva-account-home { color: #064B3F !important; }
.hiva-account-input:focus { border-color: #064B3F !important; }
.hiva-back-button { background: #064B3F !important; color: #fff !important; }
.hiva-back-button:hover { background: #04382f !important; }

/* HIWA brand background: exact brand green #064B3F across the full public page.
   Content cards remain light to preserve clear hierarchy and readable text. */
:root {
  --hiva-brand: #064B3F !important;
  --hiva-brand-hover: #04382f !important;
  --hiva-green: #064B3F !important;
  --hiva-green-deep: #04382f !important;
  --hiwa-blue: #064B3F !important;
  --hiwa-blue-deep: #04382f !important;
  --hiwa-page: #064B3F !important;
  --hiwa-light: #eaf2ec !important;
}
html,
body,
main,
#main-content,
.hiwa-header,
.hiwa-footer,
.hiwa-page,
.hiwa-page-hero,
.hiwa-page-intro,
.hiwa-page-section,
.hiwa-contact-page,
.articles-page,
.article-detail-page,
.hiwa-hero,
.hiwa-section,
.hiwa-services,
.hiwa-portfolio,
.hiwa-portfolio-v2,
.hiwa-cta,
.hiwa-cta-v2,
.hiwa-page-cta,
.hiwa-explore-services,
.hiwa-style-grid,
.hiwa-digital-list,
.hiva-service-hero,
.hiva-service-categories,
.hiva-detail-hero,
.hiva-detail-content,
.hiva-detail-cta {
  background-color: #064B3F !important;
  background-image: none !important;
}

/* White/light surfaces distinguish content blocks from the brand canvas. */
.hiwa-service-card,
.hiwa-service-card-v2,
.hiwa-style-card,
.hiwa-digital-row,
.hiwa-contact-card,
.hiva-category-card,
.hiva-detail-points article,
.hiva-account-card,
.hiwa-portfolio-item span,
.hiwa-page-intro,
.hiwa-page-section .hiwa-card,
.hiwa-article-card,
.hiwa-article-link {
  background-color: #f7faf7 !important;
  color: #173f2d !important;
  border-color: rgba(255,255,255,.22);
}

/* Public header and navigation on the exact brand background. */
.hiwa-header {
  background: #064B3F !important;
  border-bottom: 1px solid rgba(255,255,255,.20) !important;
}
.hiwa-brand,
.hiwa-nav,
.hiwa-nav a,
.hiwa-header-cta,
.hiwa-nav a:hover {
  color: #ffffff !important;
}
.hiwa-brand-mark {
  background: #ffffff !important;
  color: #064B3F !important;
}
.hiwa-header-cta {
  background: #f7faf7 !important;
  color: #064B3F !important;
  border: 1px solid #f7faf7 !important;
}
.hiwa-header-cta:hover {
  background: #eaf2ec !important;
  color: #04382f !important;
}
.hiwa-nav-submenu {
  background: #ffffff !important;
  border-color: rgba(6,75,63,.22) !important;
}
.hiwa-nav-submenu a { color: #173f2d !important; }
.hiwa-nav-submenu a:hover { background: #eaf2ec !important; color: #064B3F !important; }

/* Text contrast on the dark green canvas. */
.hiwa-hero h1,
.hiwa-hero-v2 .hiwa-hero-copy h1,
.hiwa-section h2,
.hiwa-portfolio h2,
.hiwa-page-hero-copy h1,
.hiwa-page-intro h2,
.hiwa-page-cta h2,
.hiwa-cta h2,
.hiwa-cta-v2 h2 {
  color: #ffffff !important;
}
.hiwa-hero-copy > p,
.hiwa-hero-v2 .hiwa-hero-copy > p,
.hiwa-section p,
.hiwa-portfolio-heading p,
.hiwa-page-hero-copy p,
.hiwa-page-intro p,
.hiwa-cta p,
.hiwa-cta-v2 p,
.hiwa-footer p {
  color: #dcebe1 !important;
}
.hiwa-kicker,
.hiwa-page-hero-copy h1 em,
.hiwa-page-intro h2 em,
.hiwa-page-cta h2 em,
.hiwa-text-link {
  color: #c5e4d1 !important;
}
.hiwa-hero-proof,
.hiwa-hero-signature {
  color: #dcebe1 !important;
  border-color: rgba(255,255,255,.25) !important;
}
.hiwa-hero-proof strong,
.hiwa-hero-signature strong {
  color: #ffffff !important;
}

/* Primary actions stay visibly different from the background. */
.hiwa-btn-primary,
.hiwa-page-cta .hiwa-btn-primary,
.hiwa-cta .hiwa-btn-primary {
  background: #f7faf7 !important;
  color: #064B3F !important;
  border-color: #f7faf7 !important;
}
.hiwa-btn-ghost {
  background: transparent !important;
  color: #ffffff !important;
  border-color: rgba(255,255,255,.55) !important;
}
.hiwa-blue-stamp,
.hiwa-image-label {
  background: rgba(3,45,37,.94) !important;
  color: #ffffff !important;
}

/* Footer remains the same exact brand color, with a clear top divider. */
.hiwa-footer {
  background: #064B3F !important;
  color: #ffffff !important;
  border-top: 1px solid rgba(255,255,255,.20) !important;
}
.hiwa-footer strong,
.hiwa-footer-links a,
.hiwa-footer-bottom {
  color: #ffffff !important;
}
.hiwa-footer-bottom { border-top-color: rgba(255,255,255,.22) !important; }

/* Account pages retain their purpose-built high-contrast layout. */
.hiva-account-page {
  background: #064B3F !important;
}
.hiva-account-card {
  background: #ffffff !important;
  color: #173f2d !important;
}
