/* ============================================================
   Frontline Wealth Portal — Global Styles
   Brand: Sierra Code Co.
   ============================================================ */

:root {
  --navy: #1a1f36;
  --white: #ffffff;
  --blue: #3b82f6;
  --blue-dark: #2563eb;
  --blue-light: #eff6ff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --green: #22c55e;
  --red: #ef4444;
  --amber: #f59e0b;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---- Header ---- */

.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 60px;
}

.logo {
  color: var(--white);
  font-weight: 700;
  font-size: 1.1em;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; opacity: 0.9; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,.8);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }
.nav-link.active { color: var(--white); background: rgba(255,255,255,.15); }

.nav-dropdown { position: relative; }
.dropdown-trigger { cursor: default; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  min-width: 220px;
  padding: 6px 0;
  z-index: 200;
}
.nav-dropdown:hover .dropdown-menu { display: block; }

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--gray-700);
  font-size: 0.9em;
}
.dropdown-item:hover { background: var(--gray-50); color: var(--navy); text-decoration: none; }
.dropdown-item.active { color: var(--blue); font-weight: 600; }

/* ---- Footer ---- */

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 24px 0;
  margin-top: auto;
  font-size: 0.85em;
  text-align: center;
}
.site-footer a { color: rgba(255,255,255,.9); }

/* ---- Cards ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 32px 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }

.card-icon { font-size: 2em; margin-bottom: 12px; }
.card h3 { font-size: 1.15em; font-weight: 600; margin-bottom: 8px; color: var(--gray-900); }
.card p { color: var(--gray-500); font-size: 0.92em; line-height: 1.5; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 500;
  font-size: 0.92em;
}
.card-link:hover { text-decoration: underline; }

/* ---- Hero ---- */

.hero {
  padding: 56px 0 40px;
  text-align: center;
}
.hero h1 { font-size: 2.2em; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.hero .subtitle {
  font-size: 1.15em;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 24px;
}

/* ---- Buttons ---- */

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 8px;
  border: none;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--blue-dark); text-decoration: none; }

.btn-secondary {
  display: inline-block;
  background: var(--white);
  color: var(--blue);
  padding: 10px 22px;
  border-radius: 8px;
  border: 1px solid var(--blue);
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--blue-light); text-decoration: none; }

/* ---- Copy Button ---- */

.copy-btn {
  background: var(--white);
  border: 1px solid var(--gray-200);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.copy-btn:hover { background: var(--gray-50); border-color: var(--gray-500); }
.copy-btn.copied { background: var(--green); color: var(--white); border-color: var(--green); }

/* ---- Callout ---- */

.callout {
  background: var(--blue-light);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}
.callout p { color: var(--gray-700); }
.callout strong { color: var(--navy); }

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 1.6em; }
  .card-grid { grid-template-columns: 1fr; }
  .header-inner { justify-content: center; }
}
