/* =========================================================
   SEO Layer PHP+JSON Engine v1.0 (Desktop-only)
   Single global CSS. No page-specific CSS.
   ========================================================= */

/* ---- Tokens ---- */
:root{
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1080px;
  --pad: 20px;

  --bg: #ffffff;
  --text: #1f2a1f;
  --muted: #374151;

  --brand: #1f7a2e;
  --brand-2: #2aa84a;
  --accent: #ef4444;

  --border: #e5e7eb;
  --soft: #f6f7f8;

  --radius: 14px;

  --shadow: 0 0px 0px rgba(17,24,39,.06);

  --gap-1: 12px;
  --gap-2: 16px;
  --gap-3: 24px;
  --gap-4: 32px;

  --card-pad: 20px;

  --sidebar: 360px;
  --article-gap: 46px;
}

/* ---- Base ---- */
*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }
img{ max-width: 100%; height: auto; display: block; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---- Header ---- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  border-bottom: 0px solid var(--border);
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: var(--gap-3);
  height: 68px;
}
.brand{
  font-weight: 400;
  letter-spacing: .2px;
  color: var(--brand);
}
.nav{
  display:flex;
  align-items:center;
  gap: var(--gap-2);
}
.nav-link{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
}
.nav-link.is-active{
  color: var(--brand);
  background: rgba(31,122,46,.08);
  text-decoration: none;
}
.nav-cta{
  margin-left: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 400;
  text-decoration: none;
}
.nav-cta:hover{ text-decoration: none; opacity: .95; }

/* ---- Layout ---- */
.page{ padding: 22px 0 40px; }
.layout{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.layout-article{
  display: grid;
  grid-template-columns: 1fr var(--sidebar);
  gap: var(--article-gap);
  align-items: start;
}
.layout-main{ min-width: 0; }
.layout-side{ position: sticky; top: 86px; }

/* ---- Sections ---- */
.section{ padding: 22px 0; }
.section .container{ padding: 0; } /* container handled by layout; keep consistent */
.section-head{ margin-bottom: 14px; }
.section-title{
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.2px;
}
.section-intro{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* ---- UI ---- */
.grid{
  display: grid;
  gap: var(--gap-3);
}

/* Grid columns (no inline styles) */
.grid[data-cols="1"]{ grid-template-columns: 1fr; }
.grid[data-cols="2"]{ grid-template-columns: repeat(2, 1fr); }
.grid[data-cols="3"]{ grid-template-columns: repeat(3, 1fr); }
.grid[data-cols="4"]{ grid-template-columns: repeat(4, 1fr); }
.grid[data-cols="5"]{ grid-template-columns: repeat(5, 1fr); }
.grid[data-cols="6"]{ grid-template-columns: repeat(6, 1fr); }

.card-actions{ margin-top: 12px; }

/* Spacing helpers (desktop-only) */
.mt-0{ margin-top: 0; }
.mt-10{ margin-top: 10px; }
.mt-12{ margin-top: 12px; }
.mt-14{ margin-top: 14px; }

.gap-2{ gap: var(--gap-2); }

.hero-sub{
  margin: 10px 0;
  color: var(--muted);
}

/* CTA */
.cta-box{
  border-left: 6px solid var(--brand);
}
.cta-actions{
  display: flex;
  gap: var(--gap-2);
  flex-wrap: wrap;
}
.cta-note{
  color: var(--muted);
  font-size: 13px;
}

/* Notes */
.note-muted{
  color: var(--muted);
  font-size: 13px;
}

/* Gallery helpers */
.gallery-pad{ padding: 12px; }
.gallery-frame{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--soft);
}
.gallery-caption{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}



.card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--card-pad);
  background: #fff;
  box-shadow: var(--shadow);
}
.card-title{
  margin: 0 0 6px;
  font-size: 20px;
}
.card-text{
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.btn{
  display: inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 400;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
}
.btn:hover{ text-decoration: none; opacity: .95; }
.btn-primary{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-soft{
  background: rgba(31,122,46,.08);
  border-color: rgba(31,122,46,.20);
  color: var(--brand);
}
.badge{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

/* ---- Hero ---- */
.hero{
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 22px;
  background: linear-gradient(180deg, rgba(31,122,46,.08), rgba(255,255,255,0));
}
.hero-row{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--gap-4);
  align-items: start;
}
.hero h1{
  margin: 0 0 10px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -.4px;
}
.hero p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
}
.hero-actions{ display:flex; gap: var(--gap-2); flex-wrap: wrap; }
.hero-right{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

/* ---- Tables ---- */
.table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.table th, .table td{
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
}
.table th{
  background: var(--soft);
  font-weight: 400;
}
.table tr:last-child td{ border-bottom: 0; }

/* ---- Lists ---- */
.list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.list li{ margin: 8px 0; }

/* ---- Footer ---- */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 22px 0;
  background: #fff;
}
.footer-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gap-3);
}
.footer-brand{ font-weight: 600; color: var(--brand); }
.footer-muted{ color: var(--muted); font-size: 16px; margin-top: 4px; }
.footer-right{ display:flex; gap: var(--gap-2); }
.footer-link{ color: var(--muted); padding: 6px 8px; border-radius: 10px; }
.footer-link:hover{ background: var(--soft); text-decoration: none; }
