/* ============================================
   Merrill Edge – Global Styles
   ============================================ */

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --me-navy: #012169;
  --me-dark-blue: #001a4e;
  --me-blue: #0056b3;
  --me-light-blue: #e8f0fe;
  --me-red: #cc0000;
  --me-dark-red: #a00000;
  --me-white: #ffffff;
  --me-off-white: #f5f5f5;
  --me-gray-light: #e0e0e0;
  --me-gray: #6c757d;
  --me-gray-dark: #333333;
  --me-text: #1a1a1a;
  --me-font: "Connections", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --me-max-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--me-font);
  color: var(--me-text);
  background: var(--me-white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--me-blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Header
   ============================================ */
.site-header {
  background: var(--me-white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Header Row 1: Logo + Utility links */
.header-top {
  border-bottom: 1px solid var(--me-gray-light);
}
.header-top__inner {
  max-width: var(--me-max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-top__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.utility-link {
  color: var(--me-navy);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
}
.utility-link:hover {
  text-decoration: underline;
}
.utility-link--boa {
  color: var(--me-blue);
  font-weight: 600;
}
.boa-flag {
  flex-shrink: 0;
}

/* Logo */
.logo {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  text-decoration: none;
  flex-direction: column;
  position: relative;
}
.logo:hover {
  text-decoration: none;
}
.logo__bull {
  width: 28px;
  height: 28px;
  position: absolute;
  right: -32px;
  top: -2px;
}
.logo__text {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--me-navy);
  letter-spacing: 3px;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}
.logo__sub {
  font-size: 0.6rem;
  color: var(--me-gray);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
  font-family: var(--me-font);
}

/* Header Row 2: Navigation bar */
.header-nav {
  border-bottom: 1px solid var(--me-gray-light);
}
.header-nav__inner {
  max-width: var(--me-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}
.nav-grid-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px 6px 0;
  display: flex;
  align-items: center;
  border-right: 1px solid var(--me-gray-light);
  margin-right: 8px;
}

/* Primary navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}
.primary-nav__link {
  color: var(--me-navy);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 12px 14px;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.primary-nav__link:hover {
  background: var(--me-light-blue);
  text-decoration: none;
}
.primary-nav__link--active {
  color: var(--me-navy);
  font-weight: 600;
}
.nav-caret {
  opacity: 0.5;
  flex-shrink: 0;
}

/* Search box in nav row */
.header-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  border: 1px solid var(--me-gray);
  border-radius: 0;
  overflow: hidden;
}
.header-search__input {
  border: none;
  outline: none;
  padding: 6px 12px;
  font-size: 0.82rem;
  width: 180px;
  font-family: var(--me-font);
  color: var(--me-gray-dark);
}
.header-search__input::placeholder {
  color: var(--me-gray);
}
.header-search__btn {
  background: none;
  border: none;
  border-left: 1px solid var(--me-gray-light);
  padding: 6px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn--primary {
  background: var(--me-navy);
  color: var(--me-white);
}
.btn--primary:hover {
  background: var(--me-blue);
}
.btn--outline {
  background: transparent;
  color: var(--me-navy);
  border: 2px solid var(--me-navy);
}
.btn--outline:hover {
  background: var(--me-navy);
  color: var(--me-white);
}

/* ============================================
   Hero Banner
   ============================================ */
.hero {
  background: linear-gradient(135deg, var(--me-navy) 0%, #003087 100%);
  color: var(--me-white);
  padding: 56px 24px;
}
.hero__inner {
  max-width: var(--me-max-width);
  margin: 0 auto;
}
.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}
.hero h2 {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
}

/* ============================================
   Main content area
   ============================================ */
.main-content {
  flex: 1;
  max-width: var(--me-max-width);
  margin: 0 auto;
  padding: 48px 24px 64px;
  width: 100%;
}

/* Intro paragraph */
.intro {
  font-size: 1.1rem;
  color: var(--me-gray-dark);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Step cards */
.step-card {
  background: var(--me-white);
  border: 1px solid var(--me-gray-light);
  border-left: 5px solid var(--me-navy);
  border-radius: 6px;
  padding: 32px;
  margin-bottom: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.step-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.step-card__number {
  background: var(--me-navy);
  color: var(--me-white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.step-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--me-navy);
}
.step-card p {
  margin-bottom: 14px;
  color: var(--me-gray-dark);
}

/* Checklist items */
.checklist {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.checklist li {
  position: relative;
  padding: 6px 0 6px 30px;
  color: var(--me-gray-dark);
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #0a8f3c;
  font-weight: 700;
  font-size: 1rem;
}

/* Action callout inside step */
.action-callout {
  background: var(--me-light-blue);
  border-left: 4px solid var(--me-blue);
  padding: 14px 18px;
  margin-top: 16px;
  border-radius: 0 4px 4px 0;
  font-size: 0.95rem;
}
.action-callout strong {
  color: var(--me-navy);
}

/* Table */
.asset-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 8px;
  font-size: 0.95rem;
}
.asset-table thead {
  background: var(--me-navy);
  color: var(--me-white);
}
.asset-table th,
.asset-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--me-gray-light);
}
.asset-table tbody tr:nth-child(even) {
  background: var(--me-off-white);
}
.asset-table tbody tr:hover {
  background: var(--me-light-blue);
}

/* Ordered list inside step card */
.step-card ol {
  margin: 14px 0;
  padding-left: 24px;
}
.step-card ol li {
  padding: 4px 0;
  color: var(--me-gray-dark);
}

/* ============================================
   Info Sections (What to Expect, Fees, etc.)
   ============================================ */
.info-section {
  background: var(--me-off-white);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 32px;
}
.info-section h2 {
  font-size: 1.5rem;
  color: var(--me-navy);
  margin-bottom: 18px;
  font-weight: 700;
}
.info-section h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--me-gray-dark);
  margin-top: 14px;
  margin-bottom: 6px;
}
.info-section p {
  color: var(--me-gray-dark);
  margin-bottom: 10px;
}
.info-section ul {
  list-style: disc;
  padding-left: 22px;
  color: var(--me-gray-dark);
}
.info-section ul li {
  padding: 3px 0;
}
.timeline-badge {
  display: inline-block;
  background: var(--me-navy);
  color: var(--me-white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Fee reimbursement highlight */
.fee-section {
  background: linear-gradient(135deg, #fef9e7 0%, #fdf3d2 100%);
  border-left: 5px solid #d4a017;
}

/* Questions / CTA section */
.cta-section {
  text-align: center;
  padding: 48px 24px;
  background: linear-gradient(135deg, var(--me-navy) 0%, #003087 100%);
  color: var(--me-white);
  border-radius: 8px;
  margin-bottom: 32px;
}
.cta-section h2 {
  color: var(--me-white);
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.cta-section p {
  opacity: 0.9;
  margin-bottom: 24px;
  font-size: 1.05rem;
}
.btn--white {
  background: var(--me-white);
  color: var(--me-navy);
  font-weight: 700;
}
.btn--white:hover {
  background: var(--me-light-blue);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--me-dark-blue);
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
}
.footer-main {
  max-width: var(--me-max-width);
  margin: 0 auto;
  padding: 40px 24px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.footer-col__heading {
  color: var(--me-white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 8px;
}
.footer-col a {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--me-white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: var(--me-max-width);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.footer-bottom__left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom__boa-logo {
  height: 22px;
  opacity: 0.85;
}
.footer-bottom__links {
  display: flex;
  gap: 18px;
}
.footer-bottom__links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
}
.footer-bottom__links a:hover {
  color: var(--me-white);
}
.footer-legal {
  background: #000e2e;
  padding: 20px 24px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-legal__inner {
  max-width: var(--me-max-width);
  margin: 0 auto;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }
  .primary-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .nav-grid-btn {
    border-right: none;
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 1.6rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
  .header-top__inner {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-top__right {
    gap: 14px;
    font-size: 0.78rem;
  }
  .logo__text {
    font-size: 1.35rem;
  }
  .logo__bull {
    width: 22px;
    height: 22px;
    right: -26px;
  }
  .step-card {
    padding: 20px;
  }
  .footer-main {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .asset-table {
    font-size: 0.85rem;
  }
  .asset-table th,
  .asset-table td {
    padding: 8px 10px;
  }
}
