:root {
  --navy: #0F2340;
  --navy-light: #1B3A63;
  --gold: #D2AE80;
  --gold-dark: #BC9468;
  --text-dark: #1A1A1A;
  --text-muted: #5B6470;
  --border-color: #E5E7EB;
  --bg-light: #F7F8FA;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

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

/* ---------- Logo ---------- */
.logo, .login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img, .login-logo img {
  height: 120px;
  object-fit: contain;
}

/* ---------- Login page ---------- */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
}

.login-logo {
  justify-content: center;
  margin-bottom: 28px;
}

.login-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
}

.login-subtitle {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 14px;
}

.login-form input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 16px;
  font-family: inherit;
}

.login-form input[type="password"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(210, 174, 128, 0.25);
}

.login-error {
  color: #C0392B;
  font-size: 13px;
  margin: -4px 0 16px;
  text-align: left;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  text-align: center;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: var(--navy);
  color: #FFFFFF;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
}

.btn-gold:hover {
  background: var(--gold-dark);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  padding: 18px 0;
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.portal-label {
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logout-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  text-decoration: none;
}

.logout-link:hover {
  color: #FFFFFF;
}

/* ---------- Hero / Fund Overview ---------- */
.hero {
  background: var(--navy);
  color: #FFFFFF;
  padding: 64px 0 56px;
  text-align: center;
}

.fund-name {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.managed-by {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 16px;
  font-size: 15px;
}

.fund-tagline {
  color: var(--gold);
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 40px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(210, 174, 128, 0.3);
  border-radius: 10px;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}

.terms-table-wrapper {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}

.terms-table {
  width: 100%;
  border-collapse: collapse;
}

.terms-table th,
.terms-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.terms-table tr:last-child th,
.terms-table tr:last-child td {
  border-bottom: none;
}

.terms-table th {
  font-weight: 600;
  color: var(--navy);
  width: 50%;
}

/* ---------- Section headings ---------- */
.section-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin: 0 0 36px;
}

/* ---------- Team section ---------- */
.team-section {
  padding: 64px 0;
  background: #FFFFFF;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.person-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--gold);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.person-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.person-name {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.person-role {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-dark);
}

.person-bio {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.linkedin-btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 6px;
  padding: 7px 18px;
  text-decoration: none;
}

.linkedin-btn:hover {
  background: var(--navy);
  color: #FFFFFF;
}

/* ---------- Documents section ---------- */
.documents-section {
  padding: 56px 0;
  background: var(--bg-light);
}

.documents-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- PACT section ---------- */
.pact-section {
  padding: 64px 0 80px;
  background: #FFFFFF;
}

.pact-subheading {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 14.5px;
  line-height: 1.6;
}

.pact-form {
  max-width: 520px;
  margin: 0 auto;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

.form-row .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.form-row input[type="text"],
.form-row input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 14.5px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
}

.form-row input[type="text"]:focus,
.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(210, 174, 128, 0.25);
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400 !important;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.checkbox-row label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-option input {
  margin-top: 2px;
}

.pact-error {
  color: #C0392B;
  font-size: 13.5px;
  margin: 0 0 16px;
}

.pact-success {
  background: #EAF6EC;
  border: 1px solid #BCE5C2;
  color: #1E6B33;
  border-radius: 8px;
  padding: 16px 18px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 500;
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 24px 0;
  font-size: 12.5px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .radio-group {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .fund-name {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .documents-grid {
    flex-direction: column;
    align-items: stretch;
  }
}
