/* ============================================================
   GLFSI SHARED STYLESHEET
   Great Lakes Fund Solutions, Inc.
   Edit here — changes apply to all pages.
   ============================================================ */

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1a2537;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }

/* ── TOKENS ── */
:root {
  --navy:       #0D2040;
  --navy2:      #0F2D55;
  --navy3:      #142848;
  --lake:       #2D8FBF;
  --lake-lt:    #3DAAD9;
  --lake-dim:   rgba(45,143,191,0.12);
  --lake-dim2:  rgba(45,143,191,0.06);
  --white:      #ffffff;
  --offwhite:   #F4F7FA;
  --border:     #DDE4ED;
  --gray:       #5A6880;
  --gray-lt:    #8898aa;
  --charcoal:   #1a2537;
  --radius:     6px;
  --radius-lg:  12px;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 12px 40px rgba(0,0,0,0.14);
}

/* ── TYPOGRAPHY SCALE ── */
h1 { font-size: clamp(32px, 4vw, 56px); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(24px, 2.8vw, 40px); font-weight: 800; line-height: 1.18; }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 700; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 700; line-height: 1.3; }
p  { line-height: 1.75; }

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-alt  { background: var(--offwhite); }
.section-dark { background: var(--navy); }
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 { color: var(--white); }
.section-dark p   { color: rgba(255,255,255,0.65); }

.eyebrow {
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lake); margin-bottom: 14px;
  display: block;
}
.section-dark .eyebrow { color: var(--lake-lt); }

.lead { font-size: 17px; color: var(--gray); max-width: 600px; }
.section-dark .lead { color: rgba(255,255,255,0.6); }

.text-center { text-align: center; }
.text-center .lead { margin: 0 auto; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary   { background: var(--lake); color: #fff; border-color: var(--lake); }
.btn-primary:hover { background: var(--lake-lt); border-color: var(--lake-lt); }
.btn-outline   { background: transparent; color: var(--lake); border-color: var(--lake); }
.btn-outline:hover { background: var(--lake-dim); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-outline-white:hover { border-color: #fff; }
.btn-ghost     { background: transparent; color: var(--gray); border-color: transparent; padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--lake); transform: none; }
.btn-lg        { padding: 15px 36px; font-size: 15px; }
.btn-sm        { padding: 9px 18px; font-size: 13px; }
.btn svg       { flex-shrink: 0; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); border-color: #c5d3e0; }
.card-icon {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--lake);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; color: var(--lake);
  transition: background 0.2s;
}
.card:hover .card-icon { background: var(--lake-dim); }
.card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card-title { font-size: 17px; font-weight: 700; color: var(--charcoal); margin-bottom: 10px; }
.card-desc  { font-size: 14px; color: var(--gray); line-height: 1.7; }
.card-link  { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--lake); margin-top: 16px; transition: gap 0.2s; }
.card:hover .card-link { gap: 9px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 110px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.nav-logo img { height: 90px; display: block; }
.nav-logo-fallback {
  font-size: 15px; font-weight: 700; color: var(--charcoal);
  display: flex; align-items: center; gap: 4px;
}
.nav-logo-fallback .lake { color: var(--lake); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  color: var(--charcoal); font-size: 14px; font-weight: 500;
  padding: 6px 14px; border-radius: 5px;
  display: flex; align-items: center; gap: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--lake); }
.nav-links a.active { background: var(--lake-dim2); }
.nav-links a:hover  { background: var(--offwhite); }
.nav-arr { font-size: 10px; opacity: 0.45; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-search { position: relative; }
.nav-search-btn { background: none; border: none; cursor: pointer; padding: 6px; color: var(--gray); font-size: 18px; line-height: 1; }
.nav-search-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; display: block; }
.nav-search-btn:hover { color: var(--lake); }
.nav-search-panel {
  display: none; position: absolute; top: calc(100% + 14px); right: 0;
  width: 340px; background: #fff; border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-md); padding: 14px; z-index: 250;
}
.nav-search-panel.open { display: block; }
.nav-search-panel input {
  width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 14px; font-family: inherit; color: var(--charcoal); outline: none;
}
.nav-search-panel input:focus { border-color: var(--lake); }
.nav-search-results { margin-top: 8px; max-height: 320px; overflow-y: auto; }
.nav-search-result { display: block; padding: 9px 10px; border-radius: 6px; text-decoration: none; }
.nav-search-result:hover { background: var(--offwhite); }
.nav-search-result-title { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.nav-search-result-desc { font-size: 12px; color: var(--gray); margin-top: 2px; }
.nav-search-empty { font-size: 13px; color: var(--gray-lt); padding: 8px 4px; }
.mobile-search { width: 100%; max-width: 320px; margin-bottom: 8px; }
.mobile-search input {
  width: 100%; padding: 11px 16px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px;
  font-size: 15px; font-family: inherit; background: rgba(255,255,255,0.06); color: #fff; outline: none;
}
.mobile-search input::placeholder { color: rgba(255,255,255,0.4); }
.mobile-search input:focus { border-color: var(--lake-lt); }
.mobile-search-results { width: 100%; max-width: 320px; }
.mobile-search-results .nav-search-result { padding: 10px 12px; }
.mobile-search-results .nav-search-result-title { color: #fff; }
.mobile-search-results .nav-search-result:hover { background: rgba(255,255,255,0.06); }
.mobile-search-results .nav-search-empty { color: rgba(255,255,255,0.4); }
.nav-cta {
  background: var(--lake); color: #fff;
  padding: 10px 22px; border-radius: 5px;
  font-size: 14px; font-weight: 600;
  transition: background 0.2s, transform 0.15s;
  display: inline-block; white-space: nowrap;
}
.nav-cta:hover { background: var(--lake-lt); transform: translateY(-1px); }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; transition: 0.3s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(10,20,40,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { color: rgba(255,255,255,0.85); font-size: 22px; font-weight: 600; padding: 12px 40px; border-radius: 6px; transition: color 0.2s; }
.mobile-menu a:hover { color: var(--lake-lt); }
.mobile-menu .mobile-cta { background: var(--lake); color: #fff !important; padding: 14px 40px; border-radius: 5px; margin-top: 16px; }
.mobile-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 32px; cursor: pointer; line-height: 1; }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 72px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(45,143,191,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(45,143,191,0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to right, transparent, black 40%, black 60%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 40%, black 60%, transparent);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow   { color: var(--lake-lt); }
.page-hero h1         { color: var(--white); margin: 10px 0 20px; }
.page-hero .lead      { color: rgba(255,255,255,0.7); font-size: 18px; max-width: 620px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.45); margin-bottom: 24px; }
.breadcrumb a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lake-lt); }
.breadcrumb-sep { opacity: 0.35; }

/* ── GRID LAYOUTS ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 28px; }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--border); margin: 0; border: none; }

/* ── ICON RING ── */
.icon-ring {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--lake);
  display: flex; align-items: center; justify-content: center;
  color: var(--lake); flex-shrink: 0;
}
.icon-ring svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.icon-ring-sm { width: 40px; height: 40px; }
.icon-ring-sm svg { width: 18px; height: 18px; }
.icon-ring-filled { background: var(--lake); color: #fff; border-color: var(--lake); }
.icon-ring-filled svg { stroke: #fff; }

/* ── CHECK LIST ── */
.check-list { display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--charcoal); line-height: 1.55; }
.check-list .chk {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--lake); display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.check-list .chk svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.5; }
.section-dark .check-list li { color: rgba(255,255,255,0.85); }

/* ── STAT BLOCK ── */
.stat-block { text-align: center; }
.stat-val { font-size: clamp(36px,4vw,52px); font-weight: 800; color: var(--lake); line-height: 1; }
.stat-label { font-size: 14px; color: var(--gray); margin-top: 6px; }
.section-dark .stat-label { color: rgba(255,255,255,0.55); }

/* ── BADGE / PILL ── */
.badge {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em;
}
.badge-lake { background: var(--lake-dim); color: var(--lake); border: 1px solid rgba(45,143,191,0.25); }
.badge-navy { background: rgba(13,32,64,0.07); color: var(--navy); border: 1px solid rgba(13,32,64,0.12); }

/* ── CTA BAND ── */
.cta-band {
  background: var(--navy);
  padding: 72px 0;
}
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 10px; }
.cta-band p  { color: rgba(255,255,255,0.6); max-width: 500px; font-size: 15px; }
.cta-band-btns { display: flex; gap: 12px; flex-shrink: 0; flex-wrap: wrap; }

/* ── FOOTER ── */
.footer { background: #060F1C; }
.footer-main { padding: 56px 40px 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; max-width: 1200px; margin: 0 auto; }
.footer-brand-text { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.8); margin-bottom: 14px; }
.footer-brand-text .lake { color: var(--lake-lt); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.42); line-height: 1.75; max-width: 240px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,0.52); transition: color 0.2s; }
.footer-links a:hover { color: var(--lake-lt); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 22px 40px; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.26); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12.5px; color: rgba(255,255,255,0.26); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--lake-lt); }
.footer-sec-badge { border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.28); padding: 5px 12px; border-radius: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.07em; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ── FORM ELEMENTS ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: 14px; font-family: inherit; color: var(--charcoal);
  background: var(--white); transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--lake); box-shadow: 0 0 0 3px rgba(45,143,191,0.12); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-lt); }
.form-required { color: var(--lake); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; padding: 48px 24px 32px; }
  .footer-bottom { padding: 20px 24px; }
}
@media (max-width: 768px) {
  .section  { padding: 64px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .nav-hamburger { display: flex; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer-main { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .page-hero { padding: 52px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
