/*
 * vendidit-overrides.css
 * Applies the Vendidit dark navy + cyan style guide on top of HubSpot-generated styles.
 * Load this as the LAST stylesheet in <head> so it wins the cascade.
 */

/* =========================================================
   1. FONT IMPORT — Montserrat (replaces Poppins / Inter / Rubik)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* =========================================================
   2. DESIGN TOKENS
   ========================================================= */
:root {
  --color-bg-primary:    #0D1117;
  --color-bg-secondary:  #111827;
  --color-bg-card:       #141E2B;
  --color-bg-card-alt:   #1A2537;
  --color-accent:        #0ECAD4;
  --color-accent-light:  #14E8F0;
  --color-text-primary:  #FFFFFF;
  --color-text-secondary:#9CA3AF;
  --color-text-muted:    #6B7280;
  --color-text-accent:   #0ECAD4;
  --color-border:        #1E2D3D;
  --color-border-accent: #0ECAD4;
  --gradient-logo: linear-gradient(135deg, #00D4AA 0%, #4F7FFF 100%);
  --font-sans: 'Montserrat', system-ui, sans-serif;
}

/* =========================================================
   3. GLOBAL BASE OVERRIDES
   ========================================================= */

html,
body {
  background-color: #0D1117 !important;
  color: #9CA3AF !important;
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: #FFFFFF !important;
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* Body copy */
p, li, td, th {
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* Inline elements */
span, label, strong, em, b, i, small {
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* Links */
a {
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* Form elements */
input, textarea, select, button {
  font-family: 'Montserrat', system-ui, sans-serif !important;
  background-color: #1A2537;
  color: #9CA3AF;
  border-color: #1E2D3D;
}

/* =========================================================
   4. SECTION / PAGE BACKGROUNDS
   (These classes are applied to .dnd-section wrappers)
   ========================================================= */

.dnd-section {
  background-color: #0D1117;
}

/* Override all solid white/light linear-gradient backgrounds */
.body_dnd_area-row-0-background-layers,
.body_dnd_area-row-0-background-gradient {
  background-image: linear-gradient(to bottom, rgba(13, 17, 23, 1), rgba(17, 24, 39, 1)) !important;
}

.body_dnd_area-row-1-background-layers {
  background-image: linear-gradient(rgba(17, 24, 39, 1), rgba(17, 24, 39, 1)) !important;
}

.body_dnd_area-row-2-background-layers {
  background-image: linear-gradient(rgba(13, 17, 23, 1), rgba(13, 17, 23, 1)) !important;
}

/* Row 3: gradient b g.png background image — keep image, let dark body bg show for fallback */

/* Row 4: triangle bg — keep image */

.body_dnd_area-row-6-background-layers,
.body_dnd_area-row-6-background-gradient {
  background-image: linear-gradient(to bottom, rgba(13, 17, 23, 1), rgba(17, 24, 39, 1)) !important;
}

.body_dnd_area-row-7-background-layers {
  background-image: linear-gradient(rgba(13, 17, 23, 1), rgba(13, 17, 23, 1)) !important;
}

.body_dnd_area-row-8-background-layers {
  background-image: linear-gradient(rgba(17, 24, 39, 1), rgba(17, 24, 39, 1)) !important;
}

.body_dnd_area-row-9-background-layers {
  background-image: linear-gradient(rgba(13, 17, 23, 1), rgba(13, 17, 23, 1)) !important;
}

.body_dnd_area-row-10-background-layers {
  background-image: linear-gradient(rgba(17, 24, 39, 1), rgba(17, 24, 39, 1)) !important;
}

/* Row 11: triangle bg — keep image */

/* Row 12: Network background SVG — keep, it works well on dark */

.body_dnd_area-row-13-background-layers,
.body_dnd_area-row-13-background-gradient {
  background-image: linear-gradient(to bottom, rgba(13, 17, 23, 1), rgba(17, 24, 39, 1)) !important;
}

/* Cell-level tinted card backgrounds */
.cell_176947629979510-background-layers {
  background-image: linear-gradient(rgba(14, 202, 212, 0.08), rgba(14, 202, 212, 0.08)) !important;
}
.cell_17694762997959-background-layers {
  background-image: linear-gradient(rgba(14, 202, 212, 0.05), rgba(14, 202, 212, 0.05)) !important;
}
.cell_176948005160610-background-layers {
  background-image: linear-gradient(rgba(14, 202, 212, 0.05), rgba(14, 202, 212, 0.05)) !important;
}

/* White overlay cells (used on image-bg cells) → dark overlay */
.cell_17139774176873-background-layers {
  background-image: linear-gradient(rgba(13, 17, 23, 0), rgba(13, 17, 23, 0)) !important;
}
.cell_17139774176873-row-0-background-layers {
  background-image: linear-gradient(rgba(13, 17, 23, 0.3), rgba(13, 17, 23, 0.3)) !important;
}

/* =========================================================
   5. NAVIGATION OVERRIDES
   Matches the specificity of the inline <style> nav block
   ========================================================= */

#hs_cos_wrapper_site_header-module-2 .header__container[data-topbar-fixed=false],
#hs_cos_wrapper_site_header-module-2 .header__container[data-topbar-fixed=true] .header_styles {
  background: #0D1117 !important;
  box-shadow: none !important;
}

#hs_cos_wrapper_site_header-module-2 .header__container.header-scroll[data-topbar-fixed=false],
#hs_cos_wrapper_site_header-module-2 .header__container.header-scroll[data-topbar-fixed=true] .header_styles {
  background: #0D1117 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
}

#hs_cos_wrapper_site_header-module-2 .header__top {
  background-color: #0D1117 !important;
  transition: background-color 250ms ease !important;
}

#hs_cos_wrapper_site_header-module-2 .header__top:hover {
  background-color: #0D1117 !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu-item {
  color: #9CA3AF !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu-link,
#hs_cos_wrapper_site_header-module-2 .btn-wrapper.btn-none-wrapper .cta-button,
#hs_cos_wrapper_site_header-module-2 .btn-wrapper.btn-none-wrapper .cta_button {
  color: #9CA3AF !important;
  font-family: 'Montserrat', sans-serif !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu-item--depth-1.header__menu-item:hover,
#hs_cos_wrapper_site_header-module-2 .header__menu-item--depth-1.header__menu-item:focus,
#hs_cos_wrapper_site_header-module-2 .btn-wrapper.btn-none-wrapper .cta-button:hover,
#hs_cos_wrapper_site_header-module-2 .btn-wrapper.btn-none-wrapper .cta-button:focus,
#hs_cos_wrapper_site_header-module-2 .btn-wrapper.btn-none-wrapper .cta_button:hover,
#hs_cos_wrapper_site_header-module-2 .btn-wrapper.btn-none-wrapper .cta_button:focus {
  color: #0ECAD4 !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu-item--depth-1>.header__menu-link:active,
#hs_cos_wrapper_site_header-module-2 .header__menu-item--depth-1.header__menu-link--active-link {
  color: #0ECAD4 !important;
}

/* Submenu dropdown */
#hs_cos_wrapper_site_header-module-2 .header__menu--desktop .header__menu-submenu {
  border-top: 2px solid #0ECAD4 !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu--mobile {
  background-color: #0D1117 !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu--mobile .header__menu-submenu,
#hs_cos_wrapper_site_header-module-2 .header__menu-submenu {
  background-color: #141E2B !important;
}

#hs_cos_wrapper_site_header-module-2 .header__container .header__menu-submenu .header__menu-item,
#hs_cos_wrapper_site_header-module-2 .header__container .header__menu--mobile .header__menu-submenu .header__menu-item {
  color: #9CA3AF !important;
}

#hs_cos_wrapper_site_header-module-2 .header__container .header__menu-submenu .header__menu-item:hover,
#hs_cos_wrapper_site_header-module-2 .header__container .header__menu-submenu .header__menu-item:focus {
  background-color: #1A2537 !important;
  color: #0ECAD4 !important;
}

#hs_cos_wrapper_site_header-module-2 .header__container .header__menu-submenu .header__menu-item:active,
#hs_cos_wrapper_site_header-module-2 .header__container .header__menu-submenu .header__menu-link--active-link {
  background-color: #1E2D3D !important;
  color: #0ECAD4 !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu-back {
  font-family: 'Montserrat', sans-serif !important;
  color: #9CA3AF !important;
}

#hs_cos_wrapper_site_header-module-2 .header__menu-back:hover {
  color: #0ECAD4 !important;
}

#hs_cos_wrapper_site_header-module-2 .search--icon,
#hs_cos_wrapper_site_header-module-2 .hs-search-field__input {
  background: #141E2B !important;
}

#hs_cos_wrapper_site_header-module-2 .hs-search-field__input:not([type='radio']):not([type='checkbox']):not([type='file']):not([type='submit']) {
  color: #9CA3AF !important;
}

/* Mega menu */
.header__container[data-layout='desktop'] .header__menu-item[data-mega='true'] .header__menu-submenu button.header__menu-link {
  background-color: #141E2B !important;
  color: #9CA3AF !important;
}

/* Top (announcement) bar */
#hs_cos_wrapper_site_header-module-2 .header__menu--top .header__menu-item--depth-1:hover,
#hs_cos_wrapper_site_header-module-2 .header__menu--top .header__menu-item--depth-1:active,
#hs_cos_wrapper_site_header-module-2 .header__menu--top .header__menu-item--depth-1>.header__menu-link,
#hs_cos_wrapper_site_header-module-2 .header__menu--top .header__menu-item--depth-1.header__menu-link--active-link {
  color: #9CA3AF !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* =========================================================
   6. CTA BUTTON OVERRIDES
   Targets both the <a> button element and its wrapper
   ========================================================= */

/* The actual <a> button links */
[id^="hs-button_module_"] {
  background-color: #0ECAD4 !important;
  color: #0D1117 !important;
  border-color: #0ECAD4 !important;
  font-family: 'Montserrat', sans-serif !important;
}

[id^="hs-button_module_"]:hover,
[id^="hs-button_module_"]:focus {
  background-color: #14E8F0 !important;
  color: #0D1117 !important;
  border-color: #14E8F0 !important;
}

/* HubSpot button wrapper elements (overrides the !important from hs_editor_style) */
/* These use the same ID structure but with hs_cos_wrapper_ prefix */
/* The text inside cta_button anchors */
[id^="hs_cos_wrapper_module_"] a.cta_button,
[id^="hs_cos_wrapper_module_"] a.cta-button,
[id^="hs_cos_wrapper_"] a.cta_button,
[id^="hs_cos_wrapper_"] a.cta-button {
  background-color: #0ECAD4 !important;
  color: #0D1117 !important;
  border-color: #0ECAD4 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* HubSpot generic .cta_button */
.cta_button,
a.cta_button {
  background-color: #0ECAD4 !important;
  color: #0D1117 !important;
  border-color: #0ECAD4 !important;
  font-family: 'Montserrat', sans-serif !important;
}

.cta_button:hover,
a.cta_button:hover {
  background-color: #14E8F0 !important;
  color: #0D1117 !important;
}

/* Button/submit elements in forms */
form .hs-button,
form input[type="submit"] {
  background-color: #0ECAD4 !important;
  color: #0D1117 !important;
  border-color: #0ECAD4 !important;
  font-family: 'Montserrat', sans-serif !important;
}

form .hs-button:hover,
form input[type="submit"]:hover {
  background-color: #14E8F0 !important;
  color: #0D1117 !important;
}

/* Generic .button / button element */
.button,
button:not([class*="header"]):not([class*="nav"]):not([class*="menu"]) {
  background-color: #0ECAD4 !important;
  color: #0D1117 !important;
  border-color: #0ECAD4 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* =========================================================
   7. FORM OVERRIDES
   ========================================================= */

/* Form container backgrounds */
[id^="hs_cos_wrapper_widget_"] {
  background-color: #141E2B !important;
  border-color: #1E2D3D !important;
}

/* Form input fields */
[id^="hs_cos_wrapper_widget_"] input[type="text"],
[id^="hs_cos_wrapper_widget_"] input[type="email"],
[id^="hs_cos_wrapper_widget_"] input[type="tel"],
[id^="hs_cos_wrapper_widget_"] input[type="number"],
[id^="hs_cos_wrapper_widget_"] input[type="date"],
[id^="hs_cos_wrapper_widget_"] input[type="file"],
[id^="hs_cos_wrapper_widget_"] textarea,
[id^="hs_cos_wrapper_widget_"] select {
  background-color: #1A2537 !important;
  color: #9CA3AF !important;
  border-color: #1E2D3D !important;
}

/* Global form element styles (from template_theme-overrides.min.css) */
form input[type=email],
form input[type=file],
form input[type=number],
form input[type=password],
form input[type=tel],
form input[type=text],
form select,
form textarea {
  background-color: #1A2537 !important;
  border-color: #1E2D3D !important;
  color: #9CA3AF !important;
}

form label,
form legend {
  color: #9CA3AF !important;
  font-family: 'Montserrat', sans-serif !important;
}

::-webkit-input-placeholder,
::placeholder {
  color: #6B7280 !important;
}

/* =========================================================
   8. FOOTER OVERRIDES
   ========================================================= */

.site_footer-module-2 {
  background-color: #0D1117 !important;
  color: #9CA3AF !important;
}

.site_footer-module-2 .row.sr-spacer-bottom-50 {
  border-bottom: 1px solid #1E2D3D !important;
}

.site_footer-module-2 .sr-footer-nav li a,
.site_footer-module-2 .sr-footer-nav .hs-menu-depth-1 > a,
.site_footer-module-2 .footer-copyright p a {
  color: #9CA3AF !important;
}

.site_footer-module-2 .sr-footer-nav .hs-menu-depth-1 > a,
.site_footer-module-2 .footer-copyright p a,
.site_footer-module-2 .footer-copyright {
  color: #0ECAD4 !important;
}

.site_footer-module-2 .sr-footer-nav li a:hover,
.site_footer-module-2 .footer-copyright p a:hover {
  color: #14E8F0 !important;
}

/* Social icons → all cyan */
.sr-footer-01 .social .icon-1,
.sr-footer-01 .social .icon-1 svg,
.sr-footer-01 .social .icon-1 svg g,
.sr-footer-01 .social .icon-1 svg g path,
.sr-footer-01 .social .icon-2,
.sr-footer-01 .social .icon-2 svg,
.sr-footer-01 .social .icon-2 svg g,
.sr-footer-01 .social .icon-2 svg g path,
.sr-footer-01 .social .icon-3,
.sr-footer-01 .social .icon-3 svg,
.sr-footer-01 .social .icon-3 svg g,
.sr-footer-01 .social .icon-3 svg g path {
  background-color: #0ECAD4 !important;
  color: #0D1117 !important;
  fill: #0D1117 !important;
}

/* =========================================================
   9. THEME-LEVEL OVERRIDES
   (Beats template_theme-overrides.min.css: Rubik/Poppins → Montserrat, blue → cyan)
   ========================================================= */

body {
  color: #9CA3AF !important;
  font-family: 'Montserrat', system-ui, sans-serif !important;
}

/* Headings from theme-overrides */
h1 {
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif !important;
}
h2, h3, h4, h5 {
  color: #FFFFFF !important;
  font-family: 'Montserrat', sans-serif !important;
}
h6 {
  color: #0ECAD4 !important;
  font-family: 'Montserrat', sans-serif !important;
}

/* Theme-level link color */
a {
  color: #0ECAD4 !important;
}
a:focus,
a:hover {
  color: #14E8F0 !important;
}
a:active {
  color: #14E8F0 !important;
}

/* Blockquote */
blockquote {
  border-left-color: #0ECAD4 !important;
  border-left-width: 4px !important;
  padding-left: 20px !important;
}

/* Tables */
table {
  background-color: #141E2B !important;
}
table, td, th {
  border-color: #1E2D3D !important;
}
td, th {
  color: #9CA3AF !important;
}
thead td, thead th {
  background-color: #1A2537 !important;
  border-bottom-color: #1E2D3D !important;
  color: #FFFFFF !important;
}

/* Header wrapper (generic, non-module) */
.header {
  background-color: #0D1117 !important;
}

/* =========================================================
   10. SCROLLING BANNER
   ========================================================= */

.scrolling-content-banner {
  background-color: #111827;
  border-top: 1px solid #1E2D3D;
  border-bottom: 1px solid #1E2D3D;
}

/* =========================================================
   11. BLOG & KNOWLEDGE BASE OVERRIDES
   ========================================================= */

.blog-header__inner,
.blog-index,
.blog-post,
.blog-related-posts {
  background-color: #0D1117 !important;
}

.blog-post__tag-link {
  color: #0ECAD4 !important;
}

.blog-post__tag-link:hover {
  color: #14E8F0 !important;
}

.blog-pagination__link--active:after,
.blog-pagination__next-link:after,
.blog-pagination__prev-link:after {
  background-color: #0ECAD4 !important;
}

/* =========================================================
   12. HERO BACKGROUND GLOW (applied to first section)
   ========================================================= */

.body_dnd_area-row-0-background-layers::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 40%, rgba(14, 202, 212, 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.body_dnd_area-row-0-background-layers {
  position: relative;
}
