@import url('fonts.css');

/* ── Reset & Variables ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:           #142c25;
  --surface:      #203c32;
  --surface-2:    #28473a;
  --border:       rgba(165, 197, 155, 0.22);
  --border-hover: rgba(165, 197, 155, 0.38);   /* Forest green hover */
  --accent:       #a5c59b;
  --accent-dim:   rgba(165, 197, 155, 0.12);
  --text:         #f3f1e9;
  --text-muted:   #c1cdbf;
  --text-dim:     #a9bcad;
  --green:        #a5c59b;
  --green-dim:    rgba(165, 197, 155, 0.10);
  --ui-font:      'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif:        Georgia, 'Times New Roman', serif;
  --nav-h:        58px;
  --radius:       10px;
  --radius-lg:    14px;
  --transition:   0.2s ease;
  --max-w:        1060px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Site Nav ───────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(30, 56, 46, 0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 28px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.nav-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #a5c59b, #9fc1d2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  flex-shrink: 0;
}

.nav-brand-name {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(165, 197, 155, 0.05);
}

.nav-link.active {
  color: var(--text);
  background: rgba(165, 197, 155, 0.06);
}

.nav-link .badge {
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 20px;
  background: rgba(86, 79, 72, 0.3);
  color: var(--text-dim);
  border: 1px solid rgba(86, 79, 72, 0.4);
}

.nav-link .badge.live {
  background: var(--green-dim);
  color: var(--green);
  border-color: rgba(165, 197, 155, 0.22);
}

/* Mobile nav toggle */
.nav-mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  padding: 6px 9px;
  cursor: pointer;
  font-size: 13px;
}

@media (max-width: 600px) {
  .site-nav { padding: 0 16px; gap: 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(30, 56, 46, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 14px;
    gap: 2px;
  }
  .nav-mobile-toggle { display: flex; align-items: center; gap: 6px; }
}

/* ── Page Hero ──────────────────────────────────────────────────────────── */
.page-hero {
  padding: 64px 24px 52px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 44px);
  font-weight: normal;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
}

/* ── Section ────────────────────────────────────────────────────────────── */
.section {
  padding: 48px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(20px, 3vw, 26px);
  font-weight: normal;
  color: var(--text);
  margin-bottom: 14px;
}

.section p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 10px;
}

/* ── Card Grid ──────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color var(--transition), background var(--transition);
  position: relative;
  overflow: hidden;
}

.card.available {
  cursor: pointer;
}

.card.available:hover {
  border-color: rgba(165, 197, 155, 0.32);   /* Forest green border */
  background: var(--surface-2);
}

.card.disabled {
  opacity: 0.55;
  cursor: default;
}

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--accent-dim);
  border: 1px solid rgba(165, 197, 155, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 2px;
}

.card-icon svg { width: 18px; height: 18px; }

.card h3 {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
}

.card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
  flex: 1;
}

.card-footer {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-status {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.card-status.live {
  background: var(--green-dim);
  color: var(--green);
  border: 1px solid rgba(165, 197, 155, 0.22);
}

.card-status.soon {
  background: rgba(86, 79, 72, 0.2);
  color: var(--text-dim);
  border: 1px solid rgba(86, 79, 72, 0.35);
}

.card-status.partial {
  background: rgba(165, 197, 155, 0.08);
  color: var(--accent);
  border: 1px solid rgba(165, 197, 155, 0.22);
}

.card-arrow {
  color: var(--text-dim);
  transition: color var(--transition), transform var(--transition);
}

.card.available:hover .card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ── Timeline ───────────────────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 28px;
  margin-top: 8px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border) 10%, var(--border) 90%, transparent);
}

.timeline-item {
  position: relative;
  padding: 0 0 40px 24px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 2px solid var(--border);
}

.timeline-item.highlight::before {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.timeline-year {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 5px;
}

.timeline-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: normal;
  color: var(--text);
  margin-bottom: 7px;
}

.timeline-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 560px;
}

.timeline-placeholder {
  display: inline-block;
  background: rgba(165, 197, 155, 0.04);
  border: 1px dashed rgba(165, 197, 155, 0.22);
  border-radius: 4px;
  padding: 0 5px;
  font-size: 12px;
  color: var(--text-dim);
  font-style: italic;
}

/* ── Coming Soon Block ──────────────────────────────────────────────────── */
.coming-soon-block {
  background: var(--surface);
  border: 1px dashed rgba(165, 197, 155, 0.18);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.coming-soon-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(165, 197, 155, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 4px;
}

.coming-soon-icon svg { width: 22px; height: 22px; }

.coming-soon-block h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: normal;
  color: var(--text);
}

.coming-soon-block p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0;
}

/* ── Form ───────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input,
.form-textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--ui-font);
  color: var(--text);
  width: 100%;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: rgba(165, 197, 155, 0.4);
}

.form-textarea { min-height: 110px; }

.form-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: -10px;
  margin-bottom: 16px;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-family: var(--ui-font);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  border: none;
  font-weight: 500;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #426e82;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(165, 197, 155, 0.04);
}

.btn svg { width: 16px; height: 16px; }

/* ── Info Chips ─────────────────────────────────────────────────────────── */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.chip svg { width: 13px; height: 13px; color: var(--accent); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  margin-top: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-note {
  font-size: 12px;
  color: var(--text-dim);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-hero { padding: 40px 16px 36px; }
  .section   { padding: 36px 16px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .coming-soon-block { padding: 28px 20px; }
}

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

/* Local civic palette, drawn from the public Apex website stylesheet. */
.site-nav { border-top: 4px solid #a5c59b; box-shadow: 0 2px 12px rgba(42,43,42,.05); }
.nav-mark { background: #a5c59b; }
.nav-links a.active { color: #a5c59b; background: rgba(165, 197, 155,.09); }
.btn-primary { background: #a5c59b; color: #fff; }
.btn-primary:hover { background: #426e82; }
.btn:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #9fc1d2; outline-offset: 3px; }
.card { box-shadow: 0 4px 18px rgba(42,43,42,.04); }
.page-eyebrow, .section-eyebrow { color: #9fc1d2; }
.timeline-year { color: #d5a8aa; }

/* Form and navigation controls share the body typeface. */
button, input, select, textarea { font-family: var(--ui-font); }

/* Deep forest surfaces with muted blue actions. */
.nav-mark { background: #365e70; color: #f3f1e9; }
.btn-primary { background: #365e70; color: #f3f1e9; }
.btn-primary:hover { background: #426e82; }
.site-nav { border-top-color: #a5c59b; }

/* Demo presentation */
.hero-model-link { display: block; width: 100%; height: 100%; }
.hero-model-link img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-model-link:hover img { filter: brightness(1.06); }
.demo-form-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.demo-form-fields :disabled { cursor: not-allowed; }
.demo-form-fields .btn:disabled { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
