* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1115;
  --surface: #ffffff;
  --ink: #1c1e22;
  --muted: #5b6270;
  --accent: #ffcc00;
  --accent-dark: #e0b400;
  --border: #e4e6ea;
}

html, body {
  height: 100%;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: #f7f8fa;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top bar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg);
  padding: 14px 40px;
  position: sticky;
  top: 0;
  z-index: 10;
  flex: 0 0 auto;
}

.topbar .logo {
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.topbar nav a {
  color: #cfd2d8;
  text-decoration: none;
  margin-left: 28px;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.topbar nav a:hover {
  color: var(--accent);
}

.topbar nav a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Page content */
main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 30px;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

main h1 {
  margin-bottom: 15px;
}

main p {
  margin-bottom: 10px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 26px 20px 18px;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.hero p {
  color: var(--muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto 8px;
}

/* Section heading */
.section-title {
  text-align: center;
  font-size: 1.3rem;
  margin: 6px 0 16px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 16px;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 auto 10px;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.team-card .role {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* About page - team bios */
.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-bottom: 20px;
}

.about-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.about-card .avatar {
  flex: 0 0 auto;
  margin: 0;
}

.about-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.about-card-body .role {
  color: var(--accent-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-card-body .bio {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

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

/* Contact page (compact, no-scroll) */
.contact-page main {
  padding: 0 30px;
}

.hero-compact {
  padding: 16px 20px 12px;
}

.hero-compact h1 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.hero-compact p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-wrap {
  padding: 10px 0 16px;
}

.contact-form {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 26px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 44px;
}

.btn-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

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

.btn-submit:active {
  transform: scale(0.98);
}

.form-note {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
  display: none;
}

.form-note.visible {
  display: block;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 14px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}

.contact-page .site-footer {
  padding: 10px;
}
