/* Apex Development — Static Site
   Palette pulled from the provided logo:
   Accent: #9fc712  Dark: #363533
*/
:root {
  --bg: #f6f8f4;
  --surface: #ffffff;
  --text: #121212;
  --muted: #5f5f5f;
  --dark: #363533;
  --accent: #9fc712;
  --accent-2: #d6ee76;
  --border: rgba(20,20,20,0.10);
  --shadow: 0 18px 45px rgba(0,0,0,0.10);
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 14px; }
small { color: var(--muted); }

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}
.section { padding: 78px 0; }
.section.sm { padding: 52px 0; }
.kicker {
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
}
.h2 {
  font-size: clamp(26px, 2.4vw, 38px);
  line-height: 1.15;
  margin: 10px 0 16px;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 70ch;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(8px);
  font-weight: 650;
  font-size: 13px;
}
.badge .dot {
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(159,199,18,0.22);
}

.btns { display:flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-weight: 800;
  letter-spacing: .01em;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(20,20,20,0.18); }
.btn.primary {
  background: var(--dark);
  color: #fff;
  border-color: rgba(255,255,255,0.10);
}
.btn.primary:hover { background: #1d1c1b; }
.btn.accent {
  background: var(--accent);
  color: #0e1204;
  border-color: rgba(0,0,0,0.08);
}
.btn.ghost {
  background: rgba(255,255,255,0.65);
}
/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}
.header .inner {
  display:flex;
  align-items:center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 18px;
}
.brand {
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}
.brand img {
  width: 154px;
  height: auto;
}
.nav {
  display:flex;
  align-items:center;
  gap: 10px;
}
.nav a {
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 750;
  color: #1e1e1e;
}
.nav a:hover {
  background: rgba(0,0,0,0.05);
}
.nav a[aria-current="page"] {
  background: rgba(159,199,18,0.18);
  box-shadow: inset 0 0 0 1px rgba(159,199,18,0.32);
}

.menu-toggle {
  display:none;
}
.hamburger {
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.75);
  align-items:center;
  justify-content:center;
}
.hamburger span {
  width: 18px; height: 2px; background: var(--dark); position: relative; display:block;
}
.hamburger span::before,
.hamburger span::after {
  content:"";
  position:absolute;
  left:0;
  width: 18px; height: 2px;
  background: var(--dark);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.hero .wrap {
  display:grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 30px;
  align-items: center;
  padding: 54px 0 62px;
}
.hero-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(34px, 3.4vw, 54px);
  line-height: 1.05;
  margin: 10px 0 12px;
  letter-spacing: -0.02em;
}
.hero .sub {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero .points {
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.hero-media {
  border-radius: var(--radius-lg);
  overflow:hidden;
  border: 1px solid rgba(0,0,0,0.10);
  background: #0d0d0d;
  box-shadow: 0 18px 55px rgba(0,0,0,0.16);
}
.hero-media img { width: 100%; height: auto; }
.hero .strip {
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}
.metric {
  flex: 1 1 170px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;
  padding: 12px 14px;
}
.metric b { display:block; font-size: 18px; }
.metric span { color: var(--muted); font-size: 13px; }

/* Cards / grids */
.grid {
  display:grid;
  gap: 16px;
}
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.card p { color: var(--muted); }
.card .top {
  display:flex;
  align-items:flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pill {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: rgba(159,199,18,0.16);
  border: 1px solid rgba(159,199,18,0.28);
}

.split {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.callout {
  background: linear-gradient(135deg, rgba(159,199,18,0.16), rgba(18,18,18,0.06));
  border: 1px solid rgba(159,199,18,0.22);
  border-radius: var(--radius-lg);
  padding: 22px;
}
.callout h3 { margin: 0 0 8px; }
.checklist {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display:flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed rgba(0,0,0,0.10);
}
.checklist li:first-child { border-top: none; }
.check {
  width: 18px; height: 18px; border-radius: 6px;
  background: rgba(159,199,18,0.25);
  box-shadow: inset 0 0 0 2px rgba(159,199,18,0.45);
  margin-top: 2px;
}
/* Project tiles */
.project {
  padding: 0;
  overflow: hidden;
}
.project img { width: 100%; height: auto; }
.project .body { padding: 16px 18px 18px; }
.project .meta {
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

hr.sep {
  border: 0;
  height: 1px;
  background: rgba(0,0,0,0.07);
  margin: 24px 0;
}

/* Page header */
.page-hero {
  padding: 46px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: radial-gradient(600px 300px at 20% 20%, rgba(159,199,18,0.16), transparent 60%),
              radial-gradient(700px 320px at 80% 10%, rgba(0,0,0,0.06), transparent 60%);
}
.page-hero h1 {
  margin: 10px 0 8px;
  font-size: clamp(30px, 3.0vw, 44px);
  letter-spacing: -0.02em;
}
.breadcrumb {
  display:flex;
  gap: 10px;
  align-items:center;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}

/* Forms */
form {
  display:grid;
  gap: 12px;
}
label {
  font-weight: 750;
  font-size: 14px;
}
input, textarea, select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }

/* Footer */
.footer {
  background: #0f0f0f;
  color: rgba(255,255,255,0.88);
  padding: 54px 0 28px;
}
.footer .grid {
  gap: 20px;
}
.footer a { color: rgba(255,255,255,0.88); }
.footer a:hover { color: #fff; }
.footer .muted { color: rgba(255,255,255,0.62); }
.footer .logo {
  width: 160px;
  filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35));
}
.subfooter {
  border-top: 1px solid rgba(255,255,255,0.10);
  margin-top: 24px;
  padding-top: 16px;
  display:flex;
  gap: 12px;
  align-items:center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.subfooter small { color: rgba(255,255,255,0.60); }

/* Responsive */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hamburger { display:flex; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 68px;
    background: rgba(246,248,244,0.96);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 10px;
    display:none;
    flex-direction: column;
    align-items: stretch;
  }
  .nav a { padding: 12px 14px; }
  .menu-toggle:checked ~ .nav { display:flex; }
}
