/*
 * CertifiedDraw – main.css
 * Global stylesheet: nav, footer, notification banner.
 * Generated from master/head.html – edit master/head.html to update.
 */

/* @@CERTIFIEDDRAW-NAV-FOOTER-CSS:START@@ */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════
       HEADER / NAV
    ═══════════════════════════ */
.header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 1px 0 var(--border, #e5e7eb);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 66px;
}

.cd-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}

.cd-logo svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.cd-wm {
  font-size: 22px;
  letter-spacing: -0.8px;
  line-height: 1;
  color: #0d1b3e;
}

.cd-wm .cert {
  font-weight: 300;
  color: #383838;
}

.cd-wm .draw {
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #1E3A8A;
}

.cd-wm .tm {
  font-size: 13px;
  vertical-align: super;
  color: #64748b;
  font-weight: 400;
  margin-left: 2px;
  letter-spacing: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 32px;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-trigger:hover {
  background: #F3F4F6;
  color: #111;
}

.nav-caret {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav-item.open>.nav-trigger {
  background: #F3F4F6;
  color: #111;
}

.nav-item.open>.nav-trigger .nav-caret {
  transform: rotate(180deg);
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: -20px;
  display: grid;
  grid-template-columns: repeat(3, 220px);
  gap: 0 24px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 24px 22px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 700;
}

.nav-item.open>.mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.mega-col-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 10px;
}

.mega-col-divider {
  border: none;
  border-top: 1px solid #F3F4F6;
  margin-bottom: 8px;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
  margin-bottom: 2px;
}

.menu-item:hover {
  background: #F9FAFB;
}

.menu-item-highlight {
  background: #EEF5FF;
}

.menu-item-highlight:hover {
  background: #deeaff;
}

.menu-item-highlight .menu-title {
  color: var(--foreground);
  font-weight: 600;
}

.menu-icon.menu-icon-highlight {
  background: #fff;
  border: 1px solid var(--border);
}

.menu-icon.menu-icon-highlight svg {
  stroke: var(--primary);
}

.menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
}

.menu-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111;
  margin-bottom: 1px;
}

.menu-desc {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.4;
}

/* Small dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 5px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 2px 8px rgba(0, 0, 0, 0.06);
  padding: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 700;
}

.nav-item.open>.dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: #374151;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s;
}

.dropdown-item:hover {
  background: #F9FAFB;
  color: #111;
}

.dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dropdown-icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-title {
  font-size: 13.5px;
  font-weight: 500;
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.login-btn {
  padding: 7px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}

.login-btn:hover {
  background: #F3F4F6;
  color: #111;
}

.get-started-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #fff;
  background: #1E3A8A;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.get-started-btn:hover {
  background: #162d6e;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 600;
  color: #fff;
  background: #f97316;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}

.demo-btn:hover {
  background: #ea6c0a;
}

.demo-btn:active {
  background: #d4610a;
}

.demo-btn svg {
  flex-shrink: 0;
}

.mobile-menu-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-demo-btn {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border-radius: 5px;
}

/* Currency picker */
.currency-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.flag-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.currency-dropdown {
  min-width: 220px;
  left: auto;
  right: 0;
}

.currency-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.currency-opt:hover {
  background: #F9FAFB;
}

.currency-opt.active {
  color: var(--primary);
  font-weight: 600;
}

.currency-opt-name {
  font-size: 12px;
  color: #9CA3AF;
  margin-left: auto;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #374151;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
  will-change: transform;
}

.bar-2 {
  transition: transform 0.25s ease, opacity 0.07s ease;
}

.hamburger.open .bar-1 {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .bar-2 {
  opacity: 0;
}

.hamburger.open .bar-3 {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 900px) {

  .nav-center,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.mobile-menu-body {
  padding: 12px 24px 0;
}

.mob-nav {
  display: flex;
  flex-direction: column;
}

.mob-plain-link {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #F3F4F6;
}

.mob-plain-link:hover {
  color: var(--primary);
}

.mob-acc-item {
  border-bottom: 1px solid #F3F4F6;
}

.mob-nav>.mob-acc-item:last-child {
  border-bottom: none;
}

.mob-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-align: left;
}

.mob-acc-caret {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.mob-acc-item.open .mob-acc-caret {
  transform: rotate(180deg);
}

.mob-acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}

.mob-acc-item.open .mob-acc-panel {
  grid-template-rows: 1fr;
}

.mob-acc-inner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.3s ease;
}

.mob-acc-item.open .mob-acc-inner {
  padding-bottom: 12px;
}

.mob-sub-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin: 12px 0 6px;
}

.mob-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 5px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.mob-sub-link:hover {
  background: #F9FAFB;
}

.mob-icon {
  width: 32px;
  height: 32px;
  border-radius: 5px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mob-icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--primary);
}

.mob-sub-link-body {
  display: flex;
  flex-direction: column;
}

.mob-sub-link-title {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

.mob-sub-link-desc {
  font-size: 13px;
  color: #6B7280;
}

.mob-sub-link-highlight {
  background: #EEF5FF;
  border-radius: 8px;
}

.mob-sub-link-highlight .mob-sub-link-title {
  color: var(--primary);
}

.mob-sub-link-highlight .mob-icon {
  background: #fff;
  border: 1px solid var(--border);
}

.mob-sub-link-highlight .mob-icon svg {
  stroke: var(--primary);
}

.mob-currency-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mob-currency-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
  text-align: left;
}

.mob-currency-row:hover {
  background: #F9FAFB;
}

.mob-currency-row.active {
  color: var(--primary);
  font-weight: 600;
}

.mob-currency-row-name {
  font-size: 13px;
  color: #9CA3AF;
  margin-left: auto;
}

#mobCurrencyLabel {
  line-height: 1;
  display: flex;
  align-items: center;
}

.flag-circle-lg {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}

.mobile-menu-footer {
  display: flex;
  gap: 10px;
  padding: 16px 0 20px;
  border-top: 1px solid #F3F4F6;
}

.mobile-footer-btn {
  flex: 1;
  text-align: center;
  padding: 12px 16px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.mobile-footer-login {
  background: #F3F4F6;
  color: #374151;
}

.mobile-footer-login:hover {
  background: #E5E7EB;
}

.mobile-footer-primary {
  background: var(--primary);
  color: #fff;
}

.mobile-footer-primary:hover {
  opacity: 0.9;
}

/* Page-specific: allow non-sticky header on compliance pages */
body.header-non-sticky .header {
  position: static;
  top: auto;
}

/* ═══════════════════════════
       FOOTER
    ═══════════════════════════ */
.footer-trust-bar {
  background: var(--primary-light);
  border-top: 1px solid #d0e3ff;
  border-bottom: 1px solid #d0e3ff;
  padding: 14px 0;
}

@media (max-width: 768px) {
  .footer-trust-bar {
    padding: 16px 0;
  }
}

.footer-trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
}

.trust-short {
  display: none;
}

.trust-full {
  display: inline;
}

.footer-trust-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.8;
}

.footer {
  background: #f9fafb;
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-bottom: 64px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.footer-brand-logo svg {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.footer-brand-stmt {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 240px;
}

.footer-tagline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  text-transform: uppercase;
  padding: 5px 10px;
  background: var(--primary-light);
  border-radius: 5px;
}

.footer-col-head {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #374151;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-col-caret {
  display: none;
  transition: transform 0.2s ease;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13.5px;
  color: #6B7280;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary);
}

.footer-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  flex-wrap: wrap;
}

.footer-legal-copy {
  font-size: 12.5px;
  color: #9CA3AF;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-link {
  font-size: 12.5px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-legal-link:hover {
  color: var(--primary);
}

.footer-micro {
  text-align: center;
  font-size: 11.5px;
  color: #C4C9D4;
  padding: 10px 0 18px;
  letter-spacing: 0.01em;
}

@media (max-width: 768px) {
  .footer {
    padding: 0;
  }

  .footer-trust-items {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }

  .footer-trust-item {
    font-size: 12px;
    gap: 5px;
  }

  .trust-full {
    display: none;
  }

  .trust-short {
    display: inline;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-bottom: 0;
  }

  .footer-col-brand {
    padding: 28px 0 24px;
    border-bottom: 1px solid var(--border);
  }

  .footer-col-acc {
    border-bottom: 1px solid var(--border);
  }

  .footer-col-acc .footer-col-head {
    padding: 16px 0;
    margin: 0;
    cursor: pointer;
    user-select: none;
  }

  .footer-col-caret {
    display: block;
  }

  .footer-col-acc.open .footer-col-caret {
    transform: rotate(180deg);
  }

  .footer-acc-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
  }

  .footer-col-acc.open .footer-acc-body {
    grid-template-rows: 1fr;
  }

  .footer-acc-inner {
    min-height: 0;
    overflow: hidden;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
  }

  .footer-col-acc.open .footer-acc-inner {
    padding-bottom: 18px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 0;
  }

  .footer-legal-links {
    gap: 14px;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 24px;
  }

  .footer-col-brand {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }
}

/* @@CERTIFIEDDRAW-NAV-FOOTER-CSS:END@@ */
/* ── Additional global styles ── */
.top-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--primary-dark), #2563EB);
}

/* Global Notification Banner */
#global-notification {
  display: none;
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  z-index: 500;
}

#global-notification.active {
  display: block;
}

#global-notification.type-success {
  background: #ecfdf5;
  color: #065f46;
  border-bottom: 1px solid #a7f3d0;
}

#global-notification.type-error {
  background: #fef2f2;
  color: #991b1b;
  border-bottom: 1px solid #fca5a5;
}

#global-notification.type-info {
  background: #eff6ff;
  color: #1e40af;
  border-bottom: 1px solid #bfdbfe;
}

#global-notification.type-warning {
  background: #fffbeb;
  color: #92400e;
  border-bottom: 1px solid #fde68a;
}