/* Techno Wizardz — main stylesheet
   Light theme. All colors live in custom properties; no inline literals. */

:root {
  /* Palette */
  --green: #276100;            /* anchor — from the logo */
  --green-bright: #3d9b0d;     /* hover / accents */
  --green-soft: #eef6e8;       /* tinted section backgrounds */
  --green-border: rgba(39, 97, 0, 0.18); /* 1px card borders */
  --ink: #16210f;              /* near-black text */
  --ink-soft: #45523c;         /* secondary text */
  --bg: #fdfefb;               /* near-white background */
  --white: #ffffff;

  /* Type */
  --font-heading: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Avenir Next", "Segoe UI", system-ui, sans-serif;

  /* Shape & rhythm */
  --radius-lg: 24px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(39, 97, 0, 0.07);
  --container: 1080px;
  --section-pad: clamp(3.5rem, 8vw, 6.5rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }

a { color: var(--green); }
a:hover { color: var(--green-bright); }

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

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

.section { padding: var(--section-pad) 0; }
.section--tint { background: var(--green-soft); }

.section__lead {
  max-width: 40rem;
  color: var(--ink-soft);
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 1px solid var(--green);
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover, .btn:focus-visible {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 254, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--green-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__icon { width: 42px; height: auto; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.site-nav a:not(.btn) {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--green); }
.site-nav .btn { padding: 0.55rem 1.3rem; font-size: 0.95rem; }

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.hero__copy p {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 34rem;
}
.hero__hat {
  justify-self: center;
  width: min(300px, 70%);
  filter: drop-shadow(0 14px 30px rgba(39, 97, 0, 0.15));
}
.hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--green);
  opacity: 0.09;
  pointer-events: none;
}

/* ── Flowing curve dividers ──────────────── */
.divider {
  display: block;
  width: 100%;
  height: clamp(40px, 7vw, 90px);
}
.divider--down { color: var(--green-soft); }
.divider--up { color: var(--bg); }

/* ── Credibility strip ───────────────────── */
.cred {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 0.9rem 1.25rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ── Cards ───────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 2.2rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.card h3 { color: var(--green); }
.card__link { color: inherit; text-decoration: none; }
.card__link:hover { color: var(--green-bright); text-decoration: underline; }
.card p { color: var(--ink-soft); margin-bottom: 0; }

/* ── Steps ───────────────────────────────── */
.steps {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2.2rem;
  counter-reset: step;
}
.step {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.9rem;
}
.step h3 em {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--green-bright);
  margin-top: 0.15rem;
}
.step p { color: var(--ink-soft); margin-bottom: 0; }

/* ── About ───────────────────────────────── */
.about__inner {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.about__hat { width: min(220px, 60%); justify-self: center; opacity: 0.9; }

/* ── Form ────────────────────────────────── */
.audit-form {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 44rem;
  margin: 2.2rem auto 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--green-bright);
  outline-offset: 1px;
}
.field textarea { min-height: 7rem; resize: vertical; }

.field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}
.field--checkbox input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--green);
  flex-shrink: 0;
}
.field--checkbox label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.audit-form .btn { grid-column: 1 / -1; justify-self: start; }

.form-error {
  grid-column: 1 / -1;
  display: none;
  background: #fdf2f0;
  border: 1px solid #e3b8ae;
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: #7a2c17;
}
.form-error.is-visible { display: block; }

.form-note {
  grid-column: 1 / -1;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ── Service page: eyebrow + hero note ───── */
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 0.4rem;
}
.hero__note {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ── Photo band ──────────────────────────── */
.photo-band {
  margin: 0;
  position: relative;
}
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
}
.photo-band figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.2rem 1.25rem 1rem;
  text-align: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  background: linear-gradient(to top, rgba(22, 33, 15, 0.75), transparent);
}

/* ── Photo strip (friendly 3-up gallery) ─── */
.photo-strip {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.2rem;
}
.photo-strip figure {
  margin: 0;
}
.photo-strip img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-border);
  box-shadow: var(--shadow-soft);
}
.photo-strip figcaption {
  margin-top: 0.6rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--ink-soft);
  text-align: center;
}
@media (max-width: 800px) {
  .photo-strip { grid-template-columns: 1fr; }
}

/* ── Pricing ─────────────────────────────── */
.pricing {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
  align-items: start;
}
/* 4 cards: explicit counts so no orphan wraps (2x2 on tablet, 4-across on desktop) */
@media (min-width: 640px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .pricing { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.price {
  position: relative;
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.price--featured {
  border: 2px solid var(--green);
  box-shadow: 0 14px 40px rgba(39, 97, 0, 0.16);
}
.price__flag {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}
.price h3 { color: var(--green); }
.price__amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.3rem;
  color: var(--ink);
  margin: 0 0 0.8rem;
}
.price__amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}
.price ul {
  margin: 0 0 1.4rem;
  padding-left: 1.2rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.price li { margin-bottom: 0.45rem; }
.price .btn { align-self: start; }

.btn--ghost {
  background: transparent;
  color: var(--green);
}
.btn--ghost:hover, .btn--ghost:focus-visible {
  background: var(--green);
  color: var(--white);
}

/* ── FAQ ─────────────────────────────────── */
.faq {
  max-width: 46rem;
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--ink);
}
.faq summary:hover { color: var(--green); }
.faq details[open] summary { margin-bottom: 0.6rem; }
.faq details p { margin: 0; color: var(--ink-soft); }

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--ink);
  color: var(--bg);
  padding: 2.5rem 0;
  font-size: 0.95rem;
}
.site-footer a { color: #a8d68b; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer p { margin: 0; }

/* ── Simple page (thanks / privacy) ──────── */
.page-main { min-height: 55vh; }
.page-main .container { max-width: 46rem; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 800px) {
  .hero__inner, .about__inner { grid-template-columns: 1fr; }
  .hero__hat { order: -1; width: min(200px, 55%); }
  .audit-form { grid-template-columns: 1fr; }
  .site-nav a:not(.btn) { display: none; }
}
