/* ==========================================================================
   Mote – HelpScout Custom CSS
   Aligned with mote.com Webflow site & webflow-cms-manager design system

   IMPORTANT: All selectors are scoped to HelpScout's actual DOM structure
   to avoid breaking Bootstrap 2 layout or content styles.
   ========================================================================== */

/* ---------- Font Imports ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brand Colors */
  --mote-purple: #AC0AE8;
  --mote-purple-light: #F8E5FF;
  --accent-coral: #F97316;
  --accent-teal: #14B8A6;
  --accent-gold: #FBBF24;

  /* Surfaces */
  --surface-warm: #FFFBF7;
  --surface-warm-alt: #FEF7F0;
  --surface-white: #FFFFFF;

  /* Text Colors */
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-muted: #9CA3AF;
  --text-dark: #16161D;

  /* Borders */
  --border-light: #f3f4f6;
  --border-default: #e5e7eb;

  /* Shadows (purple-tinted) */
  --shadow-soft-sm: 0 2px 8px -2px rgba(0,0,0,0.08), 0 4px 12px -4px rgba(172, 10, 232, 0.1);
  --shadow-soft-md: 0 8px 24px -8px rgba(0,0,0,0.1), 0 12px 32px -12px rgba(172, 10, 232, 0.15);
  --shadow-soft-lg: 0 16px 48px -16px rgba(0,0,0,0.12), 0 24px 64px -24px rgba(172, 10, 232, 0.2);

  /* Easing */
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}


/* ==========================================================================
   NAVBAR / HEADER
   HelpScout structure: header#mainNav.navbar > .navbar-inner > .container-fluid
     > a.brand > img
     > button.btn.btn-navbar (mobile toggle)
     > .nav-collapse.collapse > nav > ul.nav > li > a
   ========================================================================== */

/* Outer navbar — DO NOT use display:flex, it breaks Bootstrap 2 layout */
#mainNav.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  margin-bottom: 0;
  border: none;
}

/* Inner bar */
#mainNav .navbar-inner {
  background: var(--surface-white) !important;
  min-height: 80px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

/* Container inside navbar */
#mainNav .navbar-inner .container-fluid {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Logo */
#mainNav .brand {
  float: none;
  padding: 0;
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

#mainNav .brand img {
  width: 110px;
  height: 45px;
}

#mainNav .brand span {
  display: inline-block;
  text-indent: -9000px;
  width: 110px;
  height: 45px;
  background: url('https://s3.amazonaws.com/webflow-prod-assets/62601a2f1ad4af5dee4bd21e/6638684867c8e18ec02ca16e_Mote_logo.svg') no-repeat 0 0;
  background-size: 100%;
}

/* Nav collapse area */
#mainNav .nav-collapse {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  height: auto !important;
  overflow: visible !important;
}

/* Nav list */
#mainNav .nav-collapse .nav {
  float: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

#mainNav .nav-collapse .nav > li {
  float: none;
  display: flex;
  align-items: center;
}

/* Nav links */
#mainNav .nav > li > a {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary) !important;
  line-height: 1;
  text-decoration: none;
  padding: 8px 14px;
  margin: 0;
  text-shadow: none;
  transition: color 0.2s ease-out;
  white-space: nowrap;
}

#mainNav .nav > li > a:hover,
#mainNav .nav > li > a:focus {
  color: var(--mote-purple) !important;
  background: transparent;
}

#mainNav .nav > li.active > a,
#mainNav .nav > li.active > a:hover,
#mainNav .nav > li.active > a:focus {
  color: var(--mote-purple) !important;
  background: transparent;
  font-weight: 500;
}

/* Hide carets in nav links */
#mainNav .nav > li > a .caret {
  display: none;
}

/* Mobile toggle — hide on desktop (keep HelpScout's responsive behavior) */
#mainNav .btn-navbar {
  display: none;
}


/* ==========================================================================
   HERO / SEARCH BANNER
   HelpScout structure: #docsSearch > h1 + #searchBar > input + button
   ========================================================================== */

#docsSearch {
  background: url('https://media.mote.com/marketing/helpscout/helpscout-hero-bg.png') no-repeat center center;
  background-size: cover;
  border-bottom: none;
  padding: 64px 20px 56px;
  position: relative;
  text-align: center;
}

#docsSearch h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* Search bar container */
#searchBar {
  max-width: 620px;
  margin: 0 auto;
  display: flex;
  gap: 0;
}

#searchBar .search-query {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(172, 10, 232, 0.15);
  border-right: none;
  border-radius: 100px 0 0 100px;
  box-shadow: var(--shadow-soft-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  padding: 12px 24px;
  height: 52px;
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}

#searchBar .search-query:focus {
  border-color: var(--mote-purple);
  box-shadow: var(--shadow-soft-md);
  outline: none;
  background: #FFFFFF;
}

#searchBar .search-query::placeholder {
  color: var(--text-muted);
}

#searchBar button {
  background: var(--mote-purple);
  border: 2px solid var(--mote-purple);
  border-radius: 0 100px 100px 0;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 28px;
  height: 52px;
  cursor: pointer;
  transition: all 0.2s ease-out;
  white-space: nowrap;
}

#searchBar button:hover {
  filter: brightness(1.1);
  box-shadow: var(--shadow-soft-md);
}

/* Search results dropdown */
#serp-dd {
  border-radius: 12px;
  box-shadow: var(--shadow-soft-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  margin-top: 4px;
}

#serp-dd .result a {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-primary);
  transition: background-color 0.15s ease-out;
}

#serp-dd .result a:hover,
#serp-dd .result > li.active {
  background-color: var(--mote-purple-light);
  color: var(--mote-purple);
}


/* ==========================================================================
   COLLECTION CARDS (homepage)
   HelpScout structure: .twoCol/.threeCol > .collection > h2 + ul > li > a
   ========================================================================== */

.twoCol .collection,
.threeCol .collection {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-soft-sm);
  transition: all 0.3s var(--ease-spring);
  overflow: hidden;
}

.twoCol .collection:hover,
.threeCol .collection:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft-lg);
}

/* Collection headings */
.twoCol .collection h2,
.threeCol .collection h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--text-primary);
}

.twoCol .collection h2 a,
.threeCol .collection h2 a {
  color: var(--text-primary) !important;
  text-decoration: none;
}

.twoCol .collection h2 a:hover,
.threeCol .collection h2 a:hover {
  color: var(--mote-purple) !important;
}

/* Collection article links */
.twoCol .collection ul a,
.threeCol .collection ul a {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-secondary);
  transition: color 0.15s ease-out;
}

.twoCol .collection ul a:hover,
.threeCol .collection ul a:hover {
  color: var(--mote-purple);
}

/* "Browse all articles" link */
.twoCol .collection .allLink a,
.threeCol .collection .allLink a,
.collection a[href*="collection"] {
  color: var(--mote-purple);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}

/* Page background */
body {
  background: var(--surface-warm) !important;
}


/* ==========================================================================
   ARTICLE CONTENT
   Scoped to #fullArticle to avoid leaking into nav/sidebar
   ========================================================================== */

/* Article title */
#fullArticle h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Sub-headings inside articles */
#fullArticle h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-top: 32px;
}

#fullArticle h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Article body text */
#fullArticle,
#fullArticle p,
#fullArticle li,
#fullArticle div {
  font-family: 'DM Sans', sans-serif;
  color: #3b3c51;
}

#fullArticle p {
  font-size: 16px;
  line-height: 1.6;
}

/* Article links — brand purple */
#fullArticle a,
.contentWrapper a,
.collection a {
  color: var(--mote-purple);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

#fullArticle a:hover,
.contentWrapper a:hover,
.collection a:hover {
  color: var(--mote-purple);
  filter: brightness(1.15);
  text-decoration: underline;
}

#fullArticle strong a,
#fullArticle a strong {
  color: var(--mote-purple);
}


/* ==========================================================================
   SIDEBAR
   ========================================================================== */

/* Category heading */
.contentWrapper .categories h3,
.sidebar h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Category links */
.contentWrapper .categories a,
.sidebar a {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.15s ease-out;
}

.contentWrapper .categories a:hover,
.sidebar a:hover {
  color: var(--mote-purple);
}

/* Active category link */
.contentWrapper .categories .active > a {
  color: var(--mote-purple);
  font-weight: 600;
}


/* ==========================================================================
   SEARCH
   ========================================================================== */

.contentWrapper input[type="text"],
.contentWrapper input[type="search"] {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 8px 12px;
  transition: border-color 0.15s ease-out;
}

.contentWrapper input[type="text"]:focus,
.contentWrapper input[type="search"]:focus {
  border-color: var(--mote-purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(172, 10, 232, 0.1);
}


/* ==========================================================================
   FEEDBACK WIDGET ("Did this answer your question?")
   ========================================================================== */

.contentWrapper .article-helpful {
  font-family: 'DM Sans', sans-serif;
  border-radius: 12px;
}


/* ==========================================================================
   FOOTER
   HelpScout structure: footer > p (copyright + links)
   ========================================================================== */

footer {
  background: var(--surface-white);
  border-top: 1px solid var(--border-light);
  padding: 24px 0;
}

footer p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

footer p a {
  color: var(--mote-purple);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

footer p a:hover {
  color: var(--mote-purple);
  filter: brightness(1.15);
}


/* ==========================================================================
   CUSTOM BUTTON CLASSES (for use in custom HTML blocks)
   Using .button prefix to avoid colliding with HelpScout's .btn classes
   ========================================================================== */

.button {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 15px;
  line-height: 22.5px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease-out;
  position: relative;
  border: none;
  box-sizing: border-box;
}

/* Primary Button (mote-purple pill) */
.button--primary {
  background: var(--mote-purple);
  color: #FFFFFF;
  box-shadow: var(--shadow-soft-sm);
}

.button--primary:hover {
  box-shadow: var(--shadow-soft-md);
  filter: brightness(1.1);
}

.button--primary:active {
  filter: brightness(0.95);
}

/* Secondary Button (outline pill) */
.button--secondary {
  background: transparent;
  border: 2px solid var(--mote-purple);
  color: var(--mote-purple);
}

.button--secondary:hover {
  background: var(--mote-purple);
  color: #FFFFFF;
}

/* White Button (for dark/purple backgrounds) */
.button--white {
  background: #FFFFFF;
  color: var(--mote-purple);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.button--white:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
  filter: brightness(0.95);
}

/* Button Sizes */
.button--sm {
  height: 36px;
  padding: 6px 12px;
  font-size: 14px;
}

.button--lg {
  height: 46px;
  padding: 12px 24px;
}

.button--xl {
  height: 48px;
  padding: 16px 32px;
  font-size: 16px;
}

/* Button Icon */
.button__icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Button Text */
.button__text {
  flex: none;
}


/* ==========================================================================
   UTILITY CLASSES (for custom HTML blocks)
   ========================================================================== */

.shadow-soft-sm { box-shadow: var(--shadow-soft-sm); }
.shadow-soft-md { box-shadow: var(--shadow-soft-md); }
.shadow-soft-lg { box-shadow: var(--shadow-soft-lg); }

.gradient-text {
  background: linear-gradient(to right, var(--mote-purple), var(--accent-coral));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-accessible-muted {
  color: #636363;
}

.text-accessible-secondary {
  color: #525252;
}

.bg-warm {
  background-color: var(--surface-warm);
}

.bg-warm-alt {
  background-color: var(--surface-warm-alt);
}


/* ==========================================================================
   RESPONSIVE — Mobile nav
   ========================================================================== */
@media (max-width: 979px) {
  #mainNav .navbar-inner {
    min-height: 60px;
    padding: 0 16px;
  }

  #mainNav .brand img {
    width: 90px;
    height: 37px;
  }

  #mainNav .btn-navbar {
    display: block;
    float: right;
    margin: 0;
    padding: 8px 10px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 6px;
  }

  #mainNav .btn-navbar .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
  }

  #mainNav .btn-navbar .icon-bar + .icon-bar {
    margin-top: 4px;
  }

  #mainNav .nav-collapse {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface-white);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 1000;
  }

  #mainNav .nav-collapse.in {
    display: block !important;
  }

  #mainNav .nav-collapse .nav {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  #mainNav .nav-collapse .nav > li > a {
    padding: 10px 20px;
    font-size: 15px;
  }
}
