/* PongaPrints — single stylesheet. No inline styles (CSP disallows them). */

:root {
  --green: #2f6b3e;
  --green-dark: #244f2f;
  --ink: #1c211d;
  --muted: #5f6b62;
  --bg: #f7f8f6;
  --card: #ffffff;
  --border: #dfe4de;
  --accent: #c9762b;
  --radius: 10px;
  --maxw: 1040px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* Header / nav */
.site-header { background: var(--card); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { color: var(--green); }
.brand-mark-alt { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a.is-active { color: var(--green); }
.site-nav a:hover { color: var(--green); }

/* Buttons */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-nav { padding: 8px 14px; background: var(--green); color: #fff !important; }
.btn-nav:hover { background: var(--green-dark); }

/* Hero */
.hero { background: linear-gradient(180deg, #eef3ec, var(--bg)); padding: 72px 0 56px; }
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 48px 20px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feature h3 { margin-top: 0; }

/* CTA band */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 48px 0; }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0 0 20px; opacity: 0.92; }

/* Generic page */
.page { padding: 48px 20px 64px; }
.page.narrow { max-width: 720px; }
.page-cta { margin-top: 28px; }
.ticked { list-style: none; padding: 0; }
.ticked li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.ticked li::before { content: "✓"; color: var(--green); position: absolute; left: 0; font-weight: 700; }
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: 8px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.gallery-item { aspect-ratio: 4 / 3; border-radius: var(--radius); background: #ecefe9 center/cover no-repeat; }
.gallery-item.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); border: 1px dashed var(--border); font-size: 0.9rem;
}

/* Forms */
.form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 8px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; background: #fff; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.err { color: #b3261e; font-size: 0.85rem; margin-top: 4px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #fce8e6; color: #7c231c; border: 1px solid #f3c2bc; }

/* Honeypot: visually hidden but present for bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success */
.success-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--card); margin-top: 40px; }
.footer-inner { padding: 24px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* ---------- Admin ---------- */
body.admin { background: #f2f3f1; }
.admin-header { padding: 24px 0 12px; }
.admin-header h1 { margin: 0; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { border-collapse: collapse; width: 100%; min-width: 900px; font-size: 0.92rem; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table th { background: #eef1ec; position: sticky; top: 0; }
.admin-table td.job { max-width: 320px; white-space: pre-wrap; }
.admin-table td.nowrap { white-space: nowrap; }
.status-form { margin-top: 6px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }
.badge-new { background: #dcefe0; color: var(--green-dark); }
.badge-quoted { background: #fdeccd; color: #8a5312; }
.badge-closed { background: #e6e8e5; color: #55605a; }

/* Responsive */
@media (max-width: 760px) {
  .features { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
}
