/* =========================================================
   badactor.zerodns.co.uk
   Calm, privacy-first warning site.
   No external fonts, no remote assets, no JS dependencies.
   Compatible with strict CSP (style-src 'self'; img-src 'self').
   ========================================================= */

/* ---- Reset / base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1f2a24;            /* deep ink */
  background: #f4f7f1;       /* soft meadow off-white */
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #2f5d3a;            /* meadow green */
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #1c3d24;
}

:focus-visible {
  outline: 2px solid #2f5d3a;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---- Layout container ---- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Header / nav ---- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e3e8df;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f2a24;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #d8e6cd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.brand-text small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  color: #5a6b5e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Primary nav */
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-nav a {
  color: #2c3a30;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.3rem 0.1rem;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: #1c3d24;
  border-bottom-color: #2f5d3a;
}

/* ---- Hero ---- */
.hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(244, 247, 241, 0.55) 0%, rgba(244, 247, 241, 0.95) 100%),
    url("../img/meadow-mirror.png") center/cover no-repeat;
  color: #1f2a24;
  padding: 4.5rem 0 4rem;
  border-bottom: 1px solid #e3e8df;
}

.hero-inner {
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f5d3a;
  background: #e8efde;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: 1.15rem;
  margin: 0 0 1.75rem;
  color: #2c3a30;
  max-width: 60ch;
}

/* ---- Buttons ---- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: #2f5d3a;
  color: #ffffff;
  border-color: #2f5d3a;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #244a2d;
  color: #ffffff;
  border-color: #244a2d;
}

.btn-secondary {
  background: #ffffff;
  color: #1f2a24;
  border-color: #c7d3bf;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background: #f0f4ea;
  color: #1f2a24;
  border-color: #2f5d3a;
}

/* ---- Section base ---- */
section {
  padding: 3rem 0;
}

section + section {
  border-top: 1px solid #e8eee2;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  margin: 0 0 0.85rem;
  color: #1c3d24;
  letter-spacing: -0.005em;
}

h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
  color: #1c3d24;
}

.section-lead {
  max-width: 70ch;
  color: #3c4a40;
  margin: 0 0 1.5rem;
}

/* ---- Cards ---- */
.card {
  background: #ffffff;
  border: 1px solid #e3e8df;
  border-radius: 10px;
  padding: 1.5rem 1.5rem;
  box-shadow: 0 1px 2px rgba(31, 42, 36, 0.04);
}

.card + .card {
  margin-top: 1rem;
}

.warning-card {
  border-left: 4px solid #b58a2e;     /* warm amber, not hostile red */
  background: #fffaf0;
}

.warning-card h2 {
  color: #6b4d10;
  margin-top: 0;
}

.privacy-card {
  border-left: 4px solid #2f5d3a;
  background: #f3f8ec;
}

.privacy-card h2 {
  color: #1c3d24;
  margin-top: 0;
}

/* ---- Lists ---- */
.tidy-list {
  margin: 0.25rem 0 0;
  padding-left: 1.2rem;
}

.tidy-list li {
  margin-bottom: 0.35rem;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---- Services teaser with mascot ---- */
.teaser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 760px) {
  .teaser {
    grid-template-columns: 1.4fr 1fr;
  }
}

.teaser-art {
  text-align: center;
}

.teaser-art img {
  max-width: 260px;
  margin: 0 auto;
}

/* ---- Quote / pull line ---- */
.pull {
  font-size: 1.15rem;
  font-style: italic;
  color: #2c3a30;
  border-left: 3px solid #2f5d3a;
  padding: 0.25rem 0 0.25rem 1rem;
  margin: 1.25rem 0;
}

/* ---- Footer ---- */
.site-footer {
  background: #1f2a24;
  color: #d6ddd2;
  padding: 2.25rem 0 1.75rem;
  margin-top: 2rem;
}

.site-footer a {
  color: #c8d6b9;
}

.site-footer a:hover,
.site-footer a:focus {
  color: #ffffff;
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
}

.footer-small {
  font-size: 0.85rem;
  color: #9bab95;
  margin: 0.4rem 0 0;
}

/* ---- Utility ---- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: #5a6b5e; }
.center { text-align: center; }

/* ---- Print ---- */
@media print {
  .site-header,
  .site-footer,
  .btn-row { display: none; }
  body { background: #fff; color: #000; }
  .hero { background: #fff; padding: 1rem 0; }
}
