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

/* Base CSS variables – ensure top-bar gradient always renders correctly.
   Page-specific stylesheets may override these with identical values. */
:root {
  --blue: #2563eb;
  --primary: #1E3A8A;
  --primary-dark: #1D2C51;
}

/* Force light color-scheme so Safari's bottom toolbar renders transparent/white */
html {
  color-scheme: light;
  background-color: #ffffff;
}

/* @@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:8px;
      cursor: pointer;
      font-family: inherit;
      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:8px;
      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.22s ease, transform 0.22s 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:8px;
      text-decoration: none;
      color: inherit;
      margin-bottom: 2px;
    }
    .menu-item:hover { background: #F9FAFB; }
    .menu-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
    }
    .menu-icon svg { width: 24px; height: 24px; }
    .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:8px;
      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.22s ease, transform 0.22s 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:8px;
      text-decoration: none;
      color: #374151;
      font-size: 13.5px;
      font-weight: 500;
    }
    .dropdown-item:hover { background: #F9FAFB; color: #111; }
    .dropdown-icon {
      width: 30px;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
    }
    .dropdown-icon svg { width: 24px; height: 24px; }
    .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:8px;
    }
    .login-btn:hover { background: #F3F4F6; color: #111; }
    button.login-btn {
      border: none;
      background: transparent;
      cursor: pointer;
      font: inherit;
    }
    .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:8px;
      text-decoration: none;
      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:8px;
      text-decoration: none;
      white-space: nowrap;
      letter-spacing: 0.01em;
    }
    .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:8px;
    }
    /* 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:8px;
      background: none;
      border: none;
      font-family: inherit;
      font-size: 13.5px;
      font-weight: 500;
      color: #374151;
      cursor: pointer;
      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:8px;
      transform-origin: center;
      will-change: transform;
      transition: transform 0.25s ease;
    }
    .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 ease;
    }
    .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.28s ease; flex-shrink: 0; }
    .mob-acc-item.open .mob-acc-caret { transform: rotate(180deg); }
    .mob-acc-panel {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.35s ease;
    }
    .mob-acc-item.open .mob-acc-panel { max-height: 1200px; }
    .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:99px;
      text-decoration: none;
      color: inherit;
    }
    .mob-sub-link:hover { background: #F9FAFB; }
    .mob-icon {
      width: 34px;
      height: 34px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--primary);
    }
    .mob-icon svg { width: 22px; height: 22px; }
    .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-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:8px;
      background: none;
      border: none;
      font-family: inherit;
      font-size: 15px;
      font-weight: 500;
      color: #374151;
      cursor: pointer;
      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;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      padding: 16px 0 20px;
      border-top: 1px solid #F3F4F6;
    }
    .mobile-footer-btn {
      flex: 0 0 auto;
      width: 100%;
      box-sizing: border-box;
      text-align: center;
      padding: 12px 16px;
      border-radius:8px;
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
    }
    .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; }
    /* ═══════════════════════════
       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:8px;
    }
    .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;
      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;
    }
    .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) 0%, var(--primary) 20%, var(--blue) 50%, #60a5fa 75%, #93c5fd 90%, var(--blue) 100%);
  background-size: 250% 100%;
  animation: topbar-flow 7s ease-in-out infinite;
}
@keyframes topbar-flow {
  0%, 100% { background-position: 0% 0%; }
  50%       { background-position: 100% 0%; }
}

    /* 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; }


