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

:root {
  --accent: #f6821f;
  --dark: #1a1a2e;
  --mid: #16213e;
  --light: #f8f9fa;
  --text: #333;
  --muted: #666;
  --hero-sub: #aab;
  --radius: 8px;
  --max-w: 960px;
}

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

/* ── Skip link ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--accent);
  color: #fff;
  z-index: 9999;
  display: block;
  text-align: center;
}

/* ── Nav ── */
nav {
  background: var(--dark);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--mid) 100%);
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--accent); }

.hero p {
  font-size: 1.2rem;
  color: var(--hero-sub);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

/* ── Cards ── */
.section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.section-sub {
  color: var(--muted);
  margin-bottom: 2.5rem;
}

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

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--dark); }
.card p  { font-size: 0.9rem; color: var(--muted); }

/* ── About page ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

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

.avatar {
  width: 100%;
  aspect-ratio: 1;
  max-width: 320px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  margin: 0 auto;
}

.about-text h2 { font-size: 1.75rem; margin-bottom: 1rem; color: var(--dark); }
.about-text p  { color: var(--muted); margin-bottom: 1rem; }

.stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-num { font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-lbl { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Alternate section background ── */
.section-light {
  background: #fff;
  border-top: 1px solid #eee;
}

/* ── Contact form ── */
.form-wrap {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  max-width: 560px;
}

.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--dark); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #ddd;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
  background: inherit;
  color: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent); }

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

/* ── Footer ── */
footer {
  background: var(--dark);
  color: #777;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.85rem;
}

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

/* ── Banner strip ── */
.cf-badge {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --light:    #0f0f1a;
    --text:     #e2e2f0;
    --muted:    #8888aa;
    --hero-sub: #6677aa;
  }

  .section-title { color: #e2e2f0; }
  .about-text h2 { color: #e2e2f0; }
  .card h3       { color: #e2e2f0; }

  .card {
    background: #1e1e32;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }
  .card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.5); }

  .section-light {
    background: #1a1a2e;
    border-top-color: #2a2a45;
  }

  .form-wrap {
    background: #1e1e32;
    box-shadow: 0 2px 12px rgba(0,0,0,.3);
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    background: #0f0f1a;
    border-color: #333355;
    color: var(--text);
  }

  footer { background: #0a0a14; }
}
