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

:root {
  --navy: #0c2340;
  --navy-deep: #081a30;
  --gold: #c5a572;
  --gold-text: #b8985a;
  --green: #1aa260;
  --link-blue: #1f7ad6;
  --text: #222;
  --muted: #555;
  --bg: #ffffff;
  --card-border: #c5a572;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ===== Top navigation ===== */
.topnav {
  background: var(--navy);
  color: #fff;
}

.topnav-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
}

.topnav-row--top {
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.topnav-row--bottom {
  justify-content: flex-end;
  padding-top: 6px;
  padding-bottom: 12px;
}

.logo-link { display: inline-flex; align-items: center; }
.logo { display: block; width: 56px; height: 56px; }

.user-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: #fff;
}

.welcome { font-weight: 600; }

.nav-icon, .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  cursor: pointer;
}
.nav-icon:hover, .nav-link:hover { opacity: 0.85; }

.hamburger {
  background: none;
  border: none;
  width: 28px;
  height: 22px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 3px;
  background: #fff;
  border-radius: 2px;
}

/* ===== Main page ===== */
.page {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.back-link {
  display: block;
  text-align: center;
  color: var(--link-blue);
  font-size: 22px;
  font-weight: 500;
  margin: 8px 0 28px;
}
.back-link:hover { text-decoration: underline; }

/* Profile block */
.profile {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}

.avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #2eb872;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.profile-info { display: flex; flex-direction: column; }
.profile-name {
  margin: 0 0 2px;
  font-size: 22px;
  font-weight: 700;
  color: #111;
}
.profile-role, .profile-id {
  margin: 0;
  font-size: 14px;
  color: #333;
}

/* Section heading */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin: 8px 0 18px;
}

/* ===== Member card ===== */
.member-card {
  border: 2px solid var(--card-border);
  border-radius: 4px;
  background: #fff;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 18px 22px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

.card-logo { width: 78px; height: 78px; flex-shrink: 0; }

.card-title-block { flex: 1; min-width: 0; }
.card-title-block > * { margin: 0; }

.card-name {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  line-height: 1.15;
}
.card-memberid {
  font-size: 14px;
  font-weight: 600;
  color: #111;
  margin-top: 2px;
}
.card-role {
  margin-top: 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check-icon { display: inline-flex; }

.card-club,
.card-standing,
.card-expiration {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-text);
}

.card-body {
  padding: 18px 18px 18px;
}

/* Certifications */
.cert-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 6px;
}

.cert-list dt {
  font-weight: 700;
  color: #111;
  margin-top: 10px;
  font-size: 15px;
}
.cert-list dt:first-of-type { margin-top: 0; }

.cert-list dd {
  margin: 0;
  color: var(--gold-text);
  font-weight: 600;
  font-size: 15px;
}

.card-disclaimer {
  font-style: italic;
  font-size: 12px;
  color: #444;
  text-align: center;
  margin: 18px 8px 0;
  line-height: 1.45;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: #fff;
  padding: 36px 20px 0;
  text-align: center;
}

.footer-logo { display: flex; justify-content: center; margin-bottom: 20px; }
.footer-logo .logo { width: 64px; height: 64px; }

.follow-heading {
  margin: 4px 0 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.social-list {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 36px;
}
.social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #fff;
  transition: background 0.2s;
}
.social-list a:hover { background: rgba(255,255,255,0.08); }

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  text-align: left;
  max-width: 720px;
  margin: 0 auto 24px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
}

.footer-col ul li {
  margin-bottom: 6px;
  font-size: 14px;
  color: #d3d8df;
}
.footer-col ul li a:hover { color: #fff; text-decoration: underline; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  max-width: 540px;
  margin: 24px auto 8px;
  padding: 0 12px;
  font-size: 13px;
  color: #fff;
}
.footer-legal a:hover { text-decoration: underline; }

.copyright {
  font-size: 12px;
  color: #c8cfd9;
  margin: 0 0 18px;
}

.domain-bar {
  background: var(--navy-deep);
  margin: 0 -20px;
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
}

/* ===== Responsive: wider screens ===== */
@media (min-width: 720px) {
  .topnav-row--top { padding: 12px 28px; }
  .topnav-row--bottom { padding-right: 28px; }
  .page { padding: 36px 32px 50px; }
  .footer-columns {
    grid-template-columns: repeat(4, 1fr);
    text-align: left;
  }
  .back-link { text-align: left; }
}

@media (max-width: 420px) {
  .user-nav { gap: 8px; font-size: 11px; }
  .welcome { font-size: 11px; }
  .nav-link span { font-size: 11px; }
}

@media (max-width: 360px) {
  .user-nav { gap: 6px; font-size: 10px; }
  .welcome { font-size: 10px; }
  .nav-link span { font-size: 10px; }
}
