/* ===================================================
   FRANK FUNDS — Global Stylesheet
   =================================================== */

/* Smooth scroll */
html { scroll-behavior: smooth; }

:root {
  --navy:       #1B3A6B;
  --navy-dark:  #0F1F3D;
  --red:        #E01E37;
  --light-blue: #D6E4F2;
  --white:      #FFFFFF;
  --off-white:  #F5F7FA;
  --border:     #E2E8F0;
  --text:       #1A1A2E;
  --muted:      #6B7280;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  background: var(--white);
  border-bottom: 3px solid var(--navy);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img { height: 46px; width: auto; display: block; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }

.nav-phone {
  background: var(--navy);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-phone:hover { background: var(--red); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 88px 24px 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 260px; height: 100%;
  background: var(--red);
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0% 100%);
  opacity: 0.12;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.hero-date {
  display: inline-block;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 22px;
}

.hero-tagline {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  max-width: 700px;
  margin: 0 auto 44px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-bottom: 44px;
}

.stat { display: flex; flex-direction: column; align-items: center; }

.stat-value {
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 6px;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.btn-red {
  background: var(--red);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: opacity 0.15s;
}

.btn-red:hover { opacity: 0.88; }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 14px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.45);
  transition: border-color 0.15s;
}

.btn-outline:hover { border-color: var(--white); }

.hero-fine {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ===================================================
   PILLARS
   =================================================== */
.pillars {
  background: var(--off-white);
  padding: 36px 24px;
  text-align: center;
}

.section-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 48px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.pillar-card {
  background: var(--white);
  border-radius: 8px;
  border: 3px solid var(--navy);
  padding: 20px 20px 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.06);
}

.pillar-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  filter: contrast(2) saturate(2);
}

.pillar-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.pillar-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}

/* ===================================================
   SHARED TABLE STYLES
   =================================================== */
.table-section { padding: 72px 24px; }
.table-section.alt { background: var(--off-white); }

.table-wrap { overflow-x: auto; margin-bottom: 12px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  table-layout: auto;
}

table.compact {
  width: auto;
}

thead th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

thead th:first-child { text-align: left; padding-right: 24px; }

tbody td {
  padding: 10px 14px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

tbody td:first-child { padding-right: 24px; }

tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
}

tbody tr.alt-row { background: var(--light-blue); }

.tbl-note {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 16px;
}

.red-num { color: var(--red); font-weight: 600; }

.link-arrow {
  display: inline-block;
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}

.link-arrow:hover { text-decoration: underline; }

/* ===================================================
   FOOTER
   =================================================== */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.65);
  padding: 52px 24px 28px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-bar {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 11px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
}

.footer-disc p {
  font-size: 11px;
  line-height: 1.75;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}

/* ===================================================
   TABS (frank-value-fund.html)
   =================================================== */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 48px 24px 0;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.page-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
}

.tab-bar {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 0;
}

.tab-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border: none;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  font-family: inherit;
}

.tab-btn:hover {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.tab-btn.active {
  background: var(--white);
  color: var(--navy);
}

.tab-content {
  display: none;
  padding: 52px 24px 72px;
  max-width: 1120px;
  margin: 0 auto;
}

.tab-content.active { display: block; }

.tab-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--light-blue);
}

/* ===================================================
   RISK METRICS GRID
   =================================================== */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.metric-card {
  background: var(--off-white);
  border-radius: 6px;
  padding: 20px 16px;
  text-align: center;
  border-left: 3px solid var(--navy);
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.metric-values {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-fund {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}

.metric-bench {
  font-size: 12px;
  color: var(--muted);
}

/* ===================================================
   SECTOR BARS
   =================================================== */
.sector-bars { margin-top: 40px; }

.sector-bar-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.sector-name {
  width: 180px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  flex-shrink: 0;
}

.bar-bg {
  flex: 1;
  background: var(--light-blue);
  border-radius: 3px;
  height: 26px;
  position: relative;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--navy);
  border-radius: 3px;
  display: flex;
  align-items: center;
  padding-left: 10px;
}

.bar-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--white);
  white-space: nowrap;
}

/* ===================================================
   FUND MANAGER
   =================================================== */
.manager-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.manager-photo {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.manager-info h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.manager-title {
  font-size: 15px;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 24px;
}

.manager-info p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 16px;
}

.media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  background: var(--navy);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===================================================
   DOCUMENTS
   =================================================== */
.doc-section-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 32px 0 4px;
}

.doc-section-heading:first-of-type { margin-top: 0; }

.doc-list { list-style: none; }

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.doc-item:first-child { border-top: 1px solid var(--border); }

.doc-icon {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}

.doc-name {
  flex: 1;
  font-weight: 600;
  font-size: 15px;
}

.doc-date {
  font-size: 13px;
  color: var(--muted);
  min-width: 100px;
}

.doc-dl {
  background: var(--navy);
  color: var(--white);
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
  white-space: nowrap;
}

.doc-dl:hover { background: var(--red); }

/* ===================================================
   DISTRIBUTIONS TABLE
   =================================================== */
.dist-note {
  background: var(--light-blue);
  border-left: 4px solid var(--navy);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 32px;
}

/* ===================================================
   SITE HERO
   =================================================== */
.site-hero {
  background: var(--navy);
  padding: 64px 24px 56px;
  text-align: center;
}

.site-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.site-hero-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.site-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 32px;
}

.site-hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 36px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.site-hero-cta:hover { background: #c01830; }

/* ===================================================
   TAB ALTERNATING BACKGROUND
   =================================================== */
.tab-alt { background: var(--off-white); }

/* ===================================================
   POST CARD HOVER
   =================================================== */

/* Fund header box */
.fund-header-inner {
  display: flex;
  border: 3px solid var(--red);
  border-radius: 4px;
  background: var(--white);
  overflow: hidden;
}

.fh-tickers {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 130px;
  flex-shrink: 0;
}

.fh-divider {
  width: 1px;
  background: #CBD5E1;
  margin: 16px 0;
  flex-shrink: 0;
}

.fh-desc {
  padding: 24px 28px;
  flex: 1;
}

.fh-links {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 200px;
  flex-shrink: 0;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 768px) {
  .site-hero-title { font-size: 32px; }
  .site-hero-sub { font-size: 15px; }
  .hero h1 { font-size: 34px; }
  .hero-stats { gap: 28px; }
  .stat-value { font-size: 28px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .manager-layout { grid-template-columns: 1fr; }
  .manager-photo { max-width: 240px; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 13px; }
  .tab-btn { padding: 10px 14px; font-size: 12px; }
  .form-row { flex-direction: column; }
  .form-field-btn { align-items: stretch; }
  .signup-btn { width: 100%; }

  /* Fund header box — stack vertically on mobile */
  .fund-header-inner {
    flex-direction: column;
  }

  .fh-tickers {
    flex-direction: row;
    gap: 20px;
    min-width: unset;
    padding: 16px 20px;
    border-bottom: 1px solid #CBD5E1;
  }

  .fh-tickers > div { margin-top: 0 !important; }

  .fh-divider { display: none; }

  .fh-desc {
    padding: 16px 20px;
    border-bottom: 1px solid #CBD5E1;
  }

  .fh-links {
    padding: 16px 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 24px;
    min-width: unset;
  }
}

/* ===================================================
   EMAIL SIGNUP
   =================================================== */
.signup-section {
  background: var(--navy);
  padding: 64px 24px;
}

.signup-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.signup-text h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.signup-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.signup-form { width: 100%; }

.form-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.required { color: var(--red); }

.form-field input,
.form-field select {
  padding: 11px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.form-field input::placeholder { color: rgba(255,255,255,0.35); }

.form-field input:focus,
.form-field select:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
}

.form-field select option { background: var(--navy); color: var(--white); }

.form-field-btn { flex: 0 0 auto; min-width: unset; }

.signup-btn {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 11px 28px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.signup-btn:hover { opacity: 0.88; }
.signup-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-fine {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  margin-top: 12px;
  text-align: left;
}

.signup-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  font-size: 16px;
}

.success-check {
  background: #22c55e;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}
