/* ============================================================================
   CertiSecure Landing & Public Pages Global Stylesheet
   ============================================================================ */

:root {
  --ink: #1B2340;
  --indigo: #2E3A67;
  --indigo-light: #4A5990;
  --brass: #AD7F35;
  --brass-light: #D9B876;
  --paper: #F7F5F0;
  --paper-alt: #EFEBE1;
  --card: #FFFFFF;
  --ink-soft: #5B6178;
  --ink-faint: #8A8FA3;
  --border: #E2DFD3;
  --success: #2F6F4E;
  --success-bg: #E9F2ED;
  --shadow-sm: 0 1px 2px rgba(27,35,64,0.06);
  --shadow-md: 0 8px 24px rgba(27,35,64,0.08);
  --shadow-lg: 0 24px 60px rgba(27,35,64,0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Fraunces', serif;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(20px, 3.5vw, 48px);
  padding-right: clamp(20px, 3.5vw, 48px);
  margin: 0 auto;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brass);
  background: rgba(173,127,53,0.1);
  border: 1px solid rgba(173,127,53,0.3);
  padding: 7px 14px;
  border-radius: 100px;
}
.eyebrow svg { width: 13px; height: 13px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--indigo); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- NAV ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247,245,240,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  min-height: 56px;
  box-sizing: border-box;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
}
.brand .mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(155deg, var(--indigo) 0%, var(--ink) 100%);
  display: flex; align-items: center; justify-content: center;
  color: var(--brass-light);
  flex-shrink: 0;
}
.brand .mark svg { width: 19px; height: 19px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .btn { padding: 11px 20px; font-size: 14px; }
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--border);
  border-radius: 8px; width: 40px; height: 40px;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-toggle svg { width: 19px; height: 19px; }

/* ---------- SIDEBAR DRAWER (mobile) ---------- */
.overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(27,35,64,0.5);
  backdrop-filter: blur(4px);
  z-index: 99;
}
.sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 300px; max-width: 85vw;
  background: var(--paper);
  z-index: 100;
  padding: 24px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
}
body.nav-open .overlay { display: block; }
body.nav-open .sidebar { transform: translateX(0); }

.sidebar-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.sidebar-close {
  background: none; border: none; padding: 6px;
  cursor: pointer; color: var(--ink-soft);
}
.sidebar-links {
  display: flex; flex-direction: column; gap: 18px;
  margin-bottom: 32px;
}
.sidebar-links a {
  font-size: 16px; font-weight: 500; color: var(--ink);
}
.sidebar-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}

/* ---------- CTA STRIP ---------- */
.cta-strip {
  background: var(--paper-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px 0;
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600;
  margin-bottom: 14px;
}
.cta-strip p {
  color: var(--ink-soft);
  font-size: 16px;
  max-width: 580px;
  margin: 0 auto 32px;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  font-size: 14px;
}
.footer-top {
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', serif;
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 16px;
}
.footer-brand-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-desc {
  font-size: 13.5px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 320px;
}
.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--brass-light);
  background: rgba(255,255,255,0.06);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.12);
}
.footer-col-title {
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 18px;
  font-size: 15px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-links a {
  color: rgba(255,255,255,0.65);
  font-size: 13.5px;
  transition: color .15s ease;
}
.footer-col-links a:hover { color: #ffffff; }

.footer-bottom-wrap {
  padding: 24px 0;
  background: rgba(0,0,0,0.2);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-badges { display: flex; gap: 20px; }
.footer-badges span { display: inline-flex; align-items: center; gap: 6px; }
.footer-badges svg { width: 14px; height: 14px; color: var(--brass-light); }

/* ---------- TEAM MADE BY STYLES ---------- */
.team-page-header {
  background: var(--ink);
  color: #ffffff;
  padding: clamp(60px, 8vw, 100px) 20px clamp(50px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.team-page-header::after {
  content: "";
  position: absolute;
  top: -30%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(173,127,53,0.22), transparent 65%);
  pointer-events: none;
}
.team-badge {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--brass-light);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(217,184,118,0.12);
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(217,184,118,0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}
.team-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px;
  line-height: 1.15;
}
.team-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,0.72);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.6;
}
.team-container {
  max-width: 1200px;
  margin: -50px auto 80px;
  padding: 0 clamp(20px, 3.5vw, 48px);
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
}
.team-grid-public {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  justify-content: center;
}
.team-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 16px 48px rgba(27,35,64,0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 70px rgba(27,35,64,0.15);
}
.team-avatar-wrap {
  width: 115px; height: 115px;
  border-radius: 50%; padding: 4px;
  background: linear-gradient(135deg, var(--brass), var(--indigo));
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(173,127,53,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-wrap img {
  width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  background: var(--paper);
}
.member-name {
  font-family: 'Fraunces', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--ink); margin: 0 0 6px;
}
.member-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem; font-weight: 700;
  color: var(--brass); text-transform: uppercase;
  letter-spacing: 0.08em; background: rgba(173,127,53,0.1);
  padding: 5px 14px; border-radius: 100px; margin-bottom: 18px;
}
.member-bio {
  font-size: 0.9rem; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 24px; flex: 1;
}
.member-socials { display: flex; align-items: center; gap: 12px; }
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: all 0.2s ease;
}
.social-link:hover {
  background: var(--ink); color: #ffffff;
  border-color: var(--ink); transform: scale(1.1);
}
.social-link svg { width: 17px; height: 17px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 40px; }
  .footer-brand-col { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; width: 100% !important; }
  .wrap { padding: 0 16px !important; box-sizing: border-box !important; }
  .nav { padding: 10px 16px !important; min-height: 52px !important; }
  .brand-logo-img { height: 30px !important; }
  .nav-links { display: none; }
  .nav-actions .btn { display: none; }
  .nav-toggle { display: flex !important; width: 36px !important; height: 36px !important; }
  .team-container { margin-top: -30px; }
  .team-card { padding: 26px 20px; }
  .team-grid-public { grid-template-columns: 1fr; }
  .footer-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 24px 16px !important; }
  .footer-brand-col { grid-column: 1 / -1 !important; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; }
}

/* ---------- LEGAL & DOCUMENT PAGES (100% Full Width) ---------- */
.doc-header {
  background: var(--ink);
  color: #ffffff;
  padding: clamp(50px, 7vw, 90px) 20px clamp(40px, 5vw, 60px);
  text-align: center;
  position: relative;
}
.doc-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(30px, 4vw, 52px);
  color: #ffffff;
  margin-bottom: 12px;
}
.doc-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--brass-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.doc-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 clamp(20px, 4vw, 60px) !important;
  margin: 40px auto 80px !important;
  box-sizing: border-box !important;
  line-height: 1.75;
  color: var(--ink);
}
.doc-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 50px);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}
.doc-card h2 {
  font-size: 22px;
  margin: 32px 0 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}
.doc-card h2:first-of-type { margin-top: 0; }
.doc-card p { margin-bottom: 18px; color: var(--ink-soft); font-size: 15.5px; }
.doc-card ul { margin: 0 0 24px 24px; list-style: disc; color: var(--ink-soft); }
.doc-card li { margin-bottom: 10px; font-size: 15.5px; }
