/* ===== Base ===== */
:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --accent: #06b6d4;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f3f4f6;
  --error: #dc2626;
  --success: #16a34a;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.6rem; margin-top: 2rem; }
h3 { font-size: 1.2rem; }

p { margin-bottom: 1rem; }

section {
  padding: 3rem 0;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== Header & Navigation ===== */
.site-header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.logo span {
  color: var(--primary);
}

.logo:hover {
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  text-align: center;
  padding: 5rem 0;
}

.hero h1 {
  font-size: 2.8rem;
}

.hero p {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  font-size: 1.1rem;
  opacity: 0.95;
}

.hero .btn {
  background: #fff;
  color: var(--primary);
}

.hero .btn:hover {
  background: var(--bg-alt);
}

/* ===== Feature cards ===== */
.features {
  text-align: center;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--bg-alt);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

/* ===== Counters ===== */
.counter-section {
  background: var(--text);
  color: #fff;
  padding: 3rem 0;
}

.counter-wrap {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  text-align: center;
}

.stat .count {
  display: block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
}

.stat .label {
  color: #d1d5db;
}

/* ===== Inner pages ===== */
.page {
  padding-top: 3rem;
  padding-bottom: 3rem;
  min-height: 60vh;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
}

.values {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.values li {
  margin-bottom: 0.4rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  text-align: center;
}

.member .avatar {
  width: 90px;
  height: 90px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.member p {
  color: var(--muted);
}

/* ===== Contact form ===== */
.contact-form {
  max-width: 560px;
  margin-top: 1.5rem;
}

.field {
  margin-bottom: 1.2rem;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--error);
}

.error {
  display: block;
  color: var(--error);
  min-height: 1em;
  font-size: 0.875rem;
  margin-top: 0.3rem;
}

.status {
  margin-top: 1rem;
  font-weight: 600;
}

.status.success { color: var(--success); }
.status.fail { color: var(--error); }

.contact-info {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-alt);
  text-align: center;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ===== Responsive ===== */
@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
  }

  .site-nav a.active,
  .site-nav a:hover {
    border-bottom-color: #f0f0f0;
  }

  .hero {
    padding: 3.5rem 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  h1 { font-size: 1.8rem; }
}
