/* Base styles for a minimal, accessible two‑page site
   Author: ChatGPT (system administrator & Python specialist)
   Note: Replace images in /assets and adjust palette to match your branding.
*/

:root {
  --bg: #ffffff;
  --text: #1a1f2b;
  --muted: #5a6275;
  --brand: #1f6feb;     /* Primary accent color; tweak to match CLUSIL’s palette */
  --brand-ink: #0f2b5a; /* Darker accent for focus and hover */
  --surface: #f6f8fb;
  --border: #e5e9f2;
  --radius: 14px;
  --container: 1140px;
  --shadow: 0 10px 20px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 0;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-text { font-weight: 700; letter-spacing: .2px; color: var(--text); }

.nav { list-style: none; display: flex; gap: 1rem; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: .5rem .75rem; border-radius: 999px;
  text-decoration: none; color: var(--text);
}
.nav a[aria-current="page"], .nav a:hover, .nav a:focus {
  background: var(--surface); color: var(--brand-ink);
}

.hero {
  background: url('assets/hero.jpg') center/cover no-repeat, linear-gradient(180deg, #eef3ff, #fff);
  border-bottom: 1px solid var(--border);
}
.hero-inner { padding: 4rem 0 3rem; }
.lead { color: var(--muted); font-size: 1.1rem; }

.section { padding: 3rem 0; }
.section-alt { background: var(--surface); }

.grid {
  display: grid; gap: 1.5rem;
}
.grid.two { grid-template-columns: 1.2fr .8fr; }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid.two { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid.four { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem;
}

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; text-align: center;
}
.stats div { padding: .75rem .25rem; border-radius: 12px; background: var(--surface); border: 1px dashed var(--border); }
.stats strong { display: block; font-size: 1.25rem; }
.stats span { display: block; color: var(--muted); font-size: .875rem; }

.feature h3 { margin-top: .25rem; }

.check { padding-left: 1rem; }
.check li { margin: .4rem 0; }

.btn {
  display: inline-block; padding: .6rem 1rem; border-radius: 10px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid transparent; transition: transform .02s ease-in-out, background .15s;
}
.btn:hover, .btn:focus { background: var(--brand-ink); }

.note { border-left: 4px solid var(--brand); }

.cta { text-align: center; }
.cta .btn { font-size: 1.1rem; }

/* Team page styles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,.1);
}

.member-photo {
  width: 140px;
  height: 140px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--surface);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.member-role {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

.member-position {
  font-size: 1rem;
  color: var(--brand);
  margin: 0;
  font-weight: 600;
}

.member-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.member-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.member-social a:hover {
  color: var(--brand);
  transform: scale(1.1);
}

.member-social svg {
  width: 20px;
  height: 20px;
}

/* Responsive adjustments for team grid */
@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 560px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .member-card {
    padding: 1.25rem;
  }

  .member-photo {
    width: 120px;
    height: 120px;
  }
}

/* Legal page styles */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--text);
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--brand-ink);
  border-bottom: 2px solid var(--surface);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--brand);
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content ul.check {
  margin-bottom: 1.5rem;
}

.legal-content a {
  color: var(--brand);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--brand-ink);
}

.site-footer {
  border-top: 1px solid var(--border); background: #fff;
}
.footer-inner { padding: 1.25rem 0; text-align: center; }
.small { color: var(--muted); font-size: .9rem; }
.small a { color: var(--muted); text-decoration: none; }
.small a:hover { color: var(--brand); text-decoration: underline; }
