:root {
  --brand-black: #000000;
  --brand-primary: #2563EB; 
  --brand-accent: #A9A9A9;
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
}

* { box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* Container utility */
.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--brand-accent);
}

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

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.navbar-brand img {
  height: 34px;
  width: auto;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 20px; /* space for at least four links */
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 4px;
}

.navbar-nav a:hover {
  color: var(--brand-black);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.navbar-nav a.active {
  color: var(--brand-black);
  border-bottom: 2px solid var(--brand-primary);
}

/* Page header/hero */
.hero {
  padding: 64px 0 48px;
  text-align: center;
}

.hero h1 {
  margin: 0 0 12px 0;
  font-size: 2.25rem;
  line-height: 1.2;
}

.hero p {
  margin: 0 auto;
  max-width: 720px;
  color: var(--muted);
}

/* Main content spacing */
.main-section {
  padding: 24px 0 64px;
}

.card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
}

/* Form styles (used by Contact page) */
.form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.label {
  font-weight: 600;
}

.input, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
}

.textarea { min-height: 140px; resize: vertical; }

.btn {
  appearance: none;
  border: none;
  background: var(--brand-primary);
  color: #fff;
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn:hover { filter: brightness(0.95); }
.btn:focus { outline: 2px solid color-mix(in srgb, var(--brand-primary), #000 20%); outline-offset: 2px; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn.loading { pointer-events: none; }

/* Spinner inside button */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.5);
  border-top-color: #fff;
  border-radius: 50%;
  display: none;
  animation: spin 0.8s linear infinite;
}

.btn.loading .spinner { display: inline-block; }
.btn.loading .btn-label { opacity: 0.9; }

@keyframes spin { to { transform: rotate(360deg); } }

.helper { color: var(--muted); font-size: 0.9rem; }

/* Footer (optional) */
.footer { border-top: 1px solid #eee; padding: 24px 0; color: var(--muted); font-size: 0.9rem; }

/* Responsive tweaks */
@media (max-width: 640px) {
  .navbar-inner { height: 56px; }
  .navbar-brand img { height: 28px; }
}
