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

:root {
  --bg:       #f8f9fc;
  --surface:  #ffffff;
  --border:   #dde3ed;
  --accent:   #2563eb;
  --accent2:  #1d4ed8;
  --text:     #1e2535;
  --muted:    #4a5568;
  --max:      860px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

/* NAV */
nav {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  flex: 1;
}
.nav-brand span { color: var(--accent); }

/* Hamburger — shown by default (mobile-first) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  min-width: 48px;
  min-height: 48px;
  justify-content: center;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Nav links — hidden by default, revealed by JS toggle */
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 0.5rem 0 0.75rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}
.nav-links.open { display: flex; }
.nav-links a {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 4px;
  display: block;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }

/* Desktop: hide hamburger, show nav inline */
@media (min-width: 769px) {
  nav { padding: 1.1rem 2rem; }
  .hamburger { display: none; }
  .nav-links {
    display: flex !important;
    flex-direction: row;
    width: auto;
    padding: 0;
    border-top: none;
    margin-top: 0;
  }
  .nav-links a { font-size: 0.9rem; padding: 10px 12px; display: inline-block; }
}

/* MAIN */
main { flex: 1; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }

/* HERO */
.hero {
  padding: 6rem 2rem 5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero h1 em { font-style: normal; color: var(--accent); }

.hero p {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }

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

.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

p { color: var(--muted); margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

/* CARD GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* DIVIDER */
hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* PROSE */
.prose p { margin-bottom: 1.4rem; }
.prose p:last-child { margin-bottom: 0; }

/* CONTACT */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.5rem;
  margin-top: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.contact-row { display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.9rem; }
.contact-row:last-child { margin-bottom: 0; }
.contact-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); min-width: 80px; }
.contact-row a, .contact-row span { color: var(--text); font-size: 0.95rem; }

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
footer span { display: block; margin-top: 0.3rem; }

@media (max-width: 768px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  section { padding: 3rem 1rem; }
  .contact-block { padding: 1.5rem; }
}
