:root {
  --pine: #176B57;
  --pine-dark: #0f4a3c;
  --pine-light: #e8f0ed;
  --brass: #c4a35a;
  --paper: #f7f4ef;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e5e0d8;
  --foam: #ffffff;
  --danger: #b33a3a;
  --success: #1a7a4c;
  --radius: 10px;
  --shadow: 0 8px 28px rgba(23,107,87,0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1,h2,h3,h4 { font-family: 'Newsreader', Georgia, serif; font-weight: 600; }
a { color: var(--pine); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; height: auto; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }

header {
  background: var(--foam);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 100;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 1rem;
}
.logo {
  font-family: 'Newsreader', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--pine); letter-spacing: -0.02em; white-space: nowrap;
}
.logo span { color: var(--brass); }
.nav-links {
  display: none; gap: 1.2rem; font-size: 0.92rem; font-weight: 500;
  align-items: center; flex-wrap: wrap;
}
.nav-links a { color: var(--ink); }
.nav-links a:hover, .nav-links a.active { color: var(--pine); text-decoration: none; }
.nav-actions { display: flex; gap: 0.5rem; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  padding: 0.55rem 1.15rem; border-radius: 6px; font-weight: 600;
  font-size: 0.9rem; border: none; cursor: pointer; transition: 0.15s;
  font-family: inherit; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--pine); color: white; }
.btn-primary:hover { background: var(--pine-dark); }
.btn-outline { background: transparent; border: 1.5px solid var(--pine); color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: white; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--pine); color: var(--pine); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.82rem; }
.btn-lg { padding: 0.85rem 1.7rem; font-size: 1.05rem; }
.mobile-toggle {
  display: flex; background: none; border: none; font-size: 1.4rem; cursor: pointer;
  color: var(--ink); padding: 0.25rem;
}
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .mobile-toggle { display: none; }
}
.mobile-menu {
  display: none; flex-direction: column; gap: 0.75rem; padding: 1rem 1.25rem 1.5rem;
  background: var(--foam); border-bottom: 1px solid var(--line);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 500; color: var(--ink); padding: 0.35rem 0; }

.hero {
  position: relative;
  min-height: 440px;
  display: flex; align-items: center;
  background: #0f4a3c;
  color: white;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.48;
}
.hero-content { position: relative; z-index: 1; padding: 3.5rem 0; }
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.1rem); line-height: 1.12;
  margin-bottom: 0.9rem; color: white;
}
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,0.92); max-width: 36rem; margin-bottom: 1.6rem; }
.badge {
  display: inline-block; background: rgba(255,255,255,0.18); color: white;
  font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 4px;
  margin-bottom: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase;
}
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem; margin-top: 2rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.stat strong { display: block; font-size: 1.5rem; color: white; font-family: 'Newsreader', serif; }
.stat span { font-size: 0.82rem; color: rgba(255,255,255,0.8); }

section { padding: 3rem 0; }
.section-title { font-size: 1.7rem; margin-bottom: 0.4rem; }
.section-sub { color: var(--muted); margin-bottom: 1.6rem; max-width: 40rem; }

.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: var(--foam); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; transition: 0.15s;
}
.card:hover { border-color: var(--pine); box-shadow: var(--shadow); }
.card-body { padding: 1.25rem 1.35rem; }
.card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.85rem; }
.card-img {
  width: 100%; height: 180px; object-fit: cover; display: block;
  background: var(--pine-light);
}
.card-img-lg { height: 220px; }

.gallery {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
}
.gallery img {
  width: 100%; height: 170px; object-fit: cover; border-radius: 8px;
}

.form-card {
  background: var(--foam); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.5rem; max-width: 560px;
}
label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line);
  border-radius: 6px; font-family: inherit; font-size: 0.95rem;
  background: var(--foam); margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--pine); outline-offset: 1px; border-color: var(--pine);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; }
.help-text { font-size: 0.8rem; color: var(--muted); margin-top: -0.6rem; margin-bottom: 0.9rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--foam); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { background: var(--pine-light); font-weight: 600; font-size: 0.82rem; }
tr:last-child td { border-bottom: none; }
.status {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px;
  font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-active { background: #d1fae5; color: #065f46; }
.status-closed { background: #e5e7eb; color: #374151; }
.status-review { background: #dbeafe; color: #1e40af; }

.dash-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1.75rem;
}
.kpi {
  background: var(--foam); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.2rem;
}
.kpi .label { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.25rem; }
.kpi .value { font-size: 1.55rem; font-family: 'Newsreader', serif; color: var(--pine); font-weight: 600; }
.kpi .delta { font-size: 0.78rem; color: var(--success); margin-top: 0.2rem; }

.tabs { display: flex; gap: 0.25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; flex-wrap: wrap; }
.tab {
  padding: 0.55rem 1rem; font-weight: 500; font-size: 0.9rem; cursor: pointer;
  border: none; background: none; color: var(--muted); border-bottom: 2px solid transparent;
  font-family: inherit;
}
.tab.active { color: var(--pine); border-bottom-color: var(--pine); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.progress {
  height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin: 0.5rem 0;
}
.progress-bar { height: 100%; background: var(--pine); border-radius: 4px; }

footer {
  background: var(--pine-dark); color: #c8ddd6; padding: 2.5rem 0 1.5rem;
  margin-top: auto;
}
footer a { color: #e0f0ea; }
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 1.75rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.15rem; font-size: 0.85rem;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.text-muted { color: var(--muted); }
.text-sm { font-size: 0.85rem; }
.text-center { text-align: center; }
.flex { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.alert {
  padding: 0.85rem 1rem; border-radius: 6px; font-size: 0.9rem; margin-bottom: 1rem;
}
.alert-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

.page-hero {
  background: var(--pine-light); padding: 2rem 0; border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 1.85rem; margin-bottom: 0.35rem; }
.page-hero p { color: var(--muted); max-width: 42rem; }

.kanban {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.kanban-col {
  background: var(--pine-light); border-radius: var(--radius); padding: 0.85rem;
  min-height: 180px;
}
.kanban-col h4 { font-size: 0.85rem; margin-bottom: 0.75rem; font-family: 'Outfit', sans-serif; }
.kanban-card {
  background: var(--foam); border-radius: 6px; padding: 0.75rem;
  margin-bottom: 0.5rem; border: 1px solid var(--line); font-size: 0.88rem;
}
.kanban-card strong { display: block; margin-bottom: 0.2rem; }

.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; font-size: 0.8rem;
}
.cal-day {
  background: var(--foam); border: 1px solid var(--line); border-radius: 4px;
  min-height: 72px; padding: 0.35rem; text-align: center;
}
.cal-day.has-shift { background: var(--pine-light); border-color: var(--pine); }
.cal-day .day-num { font-weight: 600; margin-bottom: 0.15rem; }

.chat-bubble {
  background: var(--foam); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.85rem 1rem; max-width: 85%; margin-bottom: 0.6rem; font-size: 0.9rem;
}
.chat-bubble.bot { background: var(--pine-light); border-color: transparent; }
.chat-bubble.user { margin-left: auto; background: var(--pine); color: white; }

.img-split {
  display: grid; gap: 1.75rem; align-items: center;
}
@media (min-width: 768px) {
  .img-split { grid-template-columns: 1fr 1fr; }
}
.img-split img {
  width: 100%; height: 300px; object-fit: cover; border-radius: var(--radius);
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 380px; }
}
/* build v3 */

/* Image resilience */
img.card-img, img.card-img-lg, .gallery img, .img-split img, .hero-bg {
  background: linear-gradient(135deg, #e8f0ed 0%, #d4e5df 100%);
}
img.card-img, img.card-img-lg {
  min-height: 160px;
  object-fit: cover;
  width: 100%;
}
.gallery img { min-height: 140px; background: #e8f0ed; }
.img-broken {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #176B57 0%, #0f4a3c 100%);
  color: rgba(255,255,255,0.85); font-size: 0.85rem; text-align: center;
  padding: 1rem; min-height: 160px;
}

/* Newsletter modals */
.nl-overlay {
  position: fixed; inset: 0; background: rgba(15, 40, 35, 0.55);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; visibility: hidden; transition: 0.25s ease;
}
.nl-overlay.open { opacity: 1; visibility: visible; }
.nl-card {
  background: var(--foam); border-radius: 14px; max-width: 420px; width: 100%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.22); overflow: hidden;
  transform: translateY(12px) scale(0.98); transition: 0.25s ease;
  position: relative;
}
.nl-overlay.open .nl-card { transform: translateY(0) scale(1); }
.nl-card .nl-close {
  position: absolute; top: 0.65rem; right: 0.75rem; background: none; border: none;
  font-size: 1.35rem; cursor: pointer; color: var(--muted); line-height: 1; z-index: 2;
}
.nl-card .nl-close:hover { color: var(--ink); }
.nl-banner {
  height: 110px; background-size: cover; background-position: center;
  position: relative;
}
.nl-banner::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent);
}
.nl-body { padding: 1.35rem 1.5rem 1.5rem; }
.nl-body h3 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.nl-body p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.nl-body input[type="email"] { margin-bottom: 0.75rem; }
.nl-body .nl-note { font-size: 0.75rem; color: var(--muted); margin-top: 0.65rem; }
.nl-variant-a .nl-banner { background-image: linear-gradient(135deg, #176B57, #0f4a3c); }
.nl-variant-b .nl-banner { background-image: linear-gradient(135deg, #c4a35a, #176B57); }
.nl-variant-c .nl-banner { background-image: linear-gradient(135deg, #0f4a3c, #1a3a5c); }
.nl-variant-a .nl-banner, .nl-variant-b .nl-banner, .nl-variant-c .nl-banner {
  display: flex; align-items: flex-end; padding: 0.85rem 1.25rem;
}
.nl-variant-a .nl-banner span, .nl-variant-b .nl-banner span, .nl-variant-c .nl-banner span {
  color: white; font-weight: 600; font-size: 0.9rem; position: relative; z-index: 1;
}

/* Service chips grid */
.service-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.service-chip {
  background: var(--foam); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.85rem 1rem; font-size: 0.88rem; font-weight: 500;
  transition: 0.15s;
}
.service-chip:hover { border-color: var(--pine); box-shadow: var(--shadow); }
.service-chip span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 400; margin-top: 0.2rem; }

.fund-banner {
  background: linear-gradient(120deg, #176B57 0%, #0f4a3c 60%, #1a3a5c 100%);
  color: white; border-radius: var(--radius); padding: 1.75rem; margin: 1.5rem 0;
}
.fund-banner h3 { color: white; margin-bottom: 0.4rem; }
.fund-banner p { color: rgba(255,255,255,0.88); margin-bottom: 1rem; font-size: 0.95rem; }
.fund-banner .btn-primary { background: white; color: var(--pine-dark); }
.fund-banner .btn-primary:hover { background: var(--pine-light); }
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0;}
/* v5 */
