/* BlockMed — shared styles (matched to live Wix site screenshots) */
:root {
  --header-bg: #15324a;
  --nav-bg: #d6d6d6;
  --nav-active: #aaaaaa;
  --nav-text: #4a4a4a;
  --footer-bg: #9b9b9b;
  --text: #4a4a4a;
  --text-dim: #7a7a7a;
  --wordmark: #c9b79c;
  --accent: #1693c9;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.6;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  background: var(--header-bg);
  padding: 28px 0 18px;
  position: relative;
}

header.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.12em;
  color: var(--wordmark);
  text-transform: uppercase;
}

.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #3a9fd8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.9rem;
}

/* Nav (Wix-style tab bar) */
nav.site-nav {
  background: var(--nav-bg);
}

nav.site-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

nav.site-nav li {
  flex: 1;
  text-align: center;
  border-right: 1px solid #c2c2c2;
}

nav.site-nav li:last-child { border-right: none; }

nav.site-nav a {
  display: block;
  padding: 14px 10px;
  color: var(--nav-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav.site-nav a:hover,
nav.site-nav a.active {
  background: var(--nav-active);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 720px) {
  nav.site-nav ul { flex-wrap: wrap; }
  nav.site-nav li { flex: 1 1 33%; border-bottom: 1px solid #c2c2c2; }
  header.site-header .wrap { flex-direction: column; gap: 12px; text-align: center; }
}

/* Page background themes, matched per-page to screenshots */
.bg-network {
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.08) 0, transparent 2%),
    radial-gradient(circle at 60% 50%, rgba(255,255,255,0.06) 0, transparent 2%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0, transparent 2%),
    linear-gradient(160deg, #16324a, #0c2236);
  background-size: 60px 60px, 80px 80px, 70px 70px, cover;
}

.bg-ocean {
  background: linear-gradient(180deg, #cfe0e6 0%, #8fb3c4 40%, #4d7b94 75%, #2c5670 100%);
}

.bg-bokeh {
  background:
    radial-gradient(circle at 15% 20%, rgba(120,180,220,0.5) 0, transparent 8%),
    radial-gradient(circle at 70% 60%, rgba(120,180,220,0.4) 0, transparent 10%),
    radial-gradient(circle at 40% 85%, rgba(120,180,220,0.3) 0, transparent 9%),
    linear-gradient(160deg, #0e2c44, #163d5c);
}

.bg-blue {
  background: #4a82a8;
}

.bg-white { background: #ffffff; }

/* Hero (home) */
.hero {
  padding: 90px 0 70px;
  text-align: center;
  color: #fff;
}

.hero .wordmark-large {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  margin: 0 0 16px;
}

.hero .lede {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
}

/* Three-feature strip on home */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-strip .feature {
  padding: 48px 36px;
  color: #fff;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #0f2840, #173a56);
}

.feature-strip .feature:nth-child(2) {
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #11304a, #1b425f);
}

.feature-strip .feature:nth-child(3) {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(160deg, #0f2840, #173a56);
}

.feature h3 {
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
  font-size: 1.1rem;
}

.feature p {
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
  margin: 0;
}

/* Generic page content */
main { padding: 56px 0 80px; }

.page-title {
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 16px;
  color: #333;
}

.page-subtitle {
  color: var(--text-dim);
  margin: 0 0 40px;
  max-width: 680px;
}

.prose p {
  color: var(--text-dim);
  max-width: 760px;
  margin: 0 auto 22px;
  text-align: center;
}

/* About — resource grid (PDF / Github icons) */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  margin-top: 48px;
  text-align: center;
}

.resource-grid .icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
  display: block;
}

.resource-grid .icon.pdf { color: #e0463e; }
.resource-grid .icon.github { color: #222; }

.resource-grid a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
}

.resource-grid p {
  margin: 8px 0 0;
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Community — white cards over photo background */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 60px 24px;
  text-align: center;
  font-style: italic;
  font-size: 1.05rem;
  color: #333;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  gap: 28px;
  margin-top: 40px;
  justify-content: center;
}

.team-card { text-align: center; color: #fff; }

.avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, #8fb3c4, #2c5670);
  border: 3px solid rgba(255,255,255,0.4);
}

.team-card h3 { margin: 0 0 4px; font-weight: 500; }
.team-card p { color: rgba(255,255,255,0.75); margin: 0 0 10px; font-size: 0.9rem; }

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  color: #fff;
}

.contact-layout .address {
  color: #fff;
  font-size: 0.95rem;
}

@media (max-width: 720px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.map-embed {
  margin-top: 56px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.3);
}

.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* Forms */
.form-card { max-width: 520px; }

label {
  display: block;
  font-size: 0.85rem;
  margin: 0 0 6px;
  color: inherit;
}

input, select, textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.6);
  border-radius: 0;
  padding: 8px 2px;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 22px;
}

select { color: #fff; }
select option { color: #000; }

textarea { resize: vertical; min-height: 90px; border: 1px solid rgba(255,255,255,0.6); }

button, .btn {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

button:hover, .btn:hover { background: rgba(255,255,255,0.15); }

/* Footer */
footer.site-footer {
  background: var(--footer-bg);
  padding: 18px 0;
  color: #fff;
  font-size: 0.85rem;
}

footer.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

footer.site-footer a { color: #fff; text-decoration: underline; }
