:root {
  --bg: #f7faf8;
  --text: #0b1220;
  --muted: #64748b;
  --panel: #ffffff;
  --line: #e2e8f0;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f59e0b;
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

[data-theme="dark"] {
  --bg: #070b12;
  --text: #f8fafc;
  --muted: #94a3b8;
  --panel: #111827;
  --line: #1f2937;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: var(--panel);
  font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(14px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); font-weight: 900; text-transform: uppercase; font-size: 14px; }
.brand-logo { width: 40px; height: 40px; border-radius: 999px; object-fit: cover; background: rgba(15,118,110,.1); padding: 6px; }
.nav-links { display: flex; gap: 22px; color: var(--muted); font-weight: 700; font-size: 14px; }
.theme-btn, .icon-btn {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}
.hero { position: relative; overflow: hidden; padding: 86px 0; }
.hero:before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,118,110,.16), transparent 38%, rgba(245,158,11,.15));
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.eyebrow { display: inline-flex; border: 1px solid rgba(15,118,110,.3); background: rgba(15,118,110,.1); color: var(--brand); padding: 7px 12px; border-radius: 999px; font-weight: 800; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: 1.02; margin: 18px 0; letter-spacing: 0; }
h2 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 20px; }
h3 { margin: 0; font-size: 21px; }
p { line-height: 1.75; }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 8px; padding: 12px 16px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-weight: 800; cursor: pointer;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: white; }
.btn.primary:hover { background: var(--brand-dark); }
.section { padding: 72px 0; }
.section.white { background: var(--panel); }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.hero-card { box-shadow: var(--shadow); }
.map { border: 1px solid var(--line); border-radius: 8px; margin: 18px 0; background: #f8fafc; }
.states, .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tag { display: inline-flex; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); border-radius: 8px; padding: 6px 10px; font-weight: 800; font-size: 13px; }
.muted { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: color-mix(in srgb, var(--text) 8%, transparent); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.contact { background: #0b1220; color: white; }
.contact .muted { color: #cbd5e1; }
.contact-details { margin-top: 22px; padding: 18px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.contact-details p { margin: 0 0 10px; color: #e2e8f0; }
.contact-details a { color: #f8fafc; text-decoration: underline; }
.project-actions { display: flex; justify-content: center; margin-top: 18px; }
.show-more-btn { margin: 0; display: inline-flex; }
.checkbox-field { display: flex; align-items: center; gap: 10px; }
.checkbox-field input { margin: 0; }
.notice { padding: 12px; border-radius: 8px; margin-bottom: 16px; background: rgba(15,118,110,.12); color: var(--brand); font-weight: 800; }
.stats { display: flex; gap: 24px; margin-top: 24px; }
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 28px; color: var(--brand); }
.stat span { color: var(--muted); font-size: 14px; }
.expertise-list { list-style: none; padding: 0; margin: 0; }
.expertise-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.expertise-list li:last-child { border-bottom: none; }
.expertise-list strong { color: var(--brand); }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .projects { grid-template-columns: 1fr; }
  .states, .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { flex-direction: column; gap: 16px; }
  .nav-links { display: none; }
}
.error { background: rgba(220,38,38,.12); color: #dc2626; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 270px 1fr; }
.sidebar { background: var(--panel); border-right: 1px solid var(--line); padding: 22px; position: sticky; top: 0; height: 100vh; }
.sidebar a { display: flex; padding: 11px 12px; border-radius: 8px; color: var(--muted); font-weight: 800; margin: 4px 0; }
.sidebar a.active, .sidebar a:hover { background: var(--brand); color: white; }
.admin-main { padding: 28px; }
table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.form-grid { display: grid; gap: 14px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.admin-actions form { margin: 0; }
@media (max-width: 900px) {
  .hero-grid, .split, .admin-shell { grid-template-columns: 1fr; }
  .projects, .states, .grid, .two { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav-links { display: none; }
}
