/* ========= Base (custom CSS, no W3) ========= */
*,
*::before,
*::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

:root{
  --bg: #f3efe6;
  --ink: #111111;
  --muted-ink:#555;
  --primary:#111111;
  --primary-ink:#ffffff;
  --badge:#111111;
  --badge-ink:#ffffff;
  --accent:#2b7a0b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(0,0,0,.08);
  --max-w: 700px;
  --nav-h: 56px;
}

body{
  font-family: "Inconsolata", ui-monospace, Menlo, monospace;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

/* Top Navigation */
.nav-top{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #000;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav{
  height: var(--nav-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  padding: 0 8px;
}

.nav-link{
  display: inline-block;
  text-align: center;
  text-decoration: none;
  color: #fff;
  padding: 10px 8px;
  border-radius: 8px;
  transition: background .2s ease;
  font-size: 15px; /* sensible default; your #tnav overrides still apply */
}
.nav-link:hover,
.nav-link:focus{
  background: rgba(255,255,255,.08);
  outline: none;
}

/* Hero */
.hero{
  position: relative;
  height: clamp(55vh, 68vh, 78vh);
  background:
    radial-gradient(1200px 500px at 80% 120%, rgba(91,189,21,.25), transparent 60%),
    radial-gradient(800px 400px at 10% -20%, rgba(0,0,0,.35), transparent 60%),
    #0b0b0b;
  color: #fff;
  overflow: hidden;
}
.hero::after{
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  pointer-events: none;
}

/* When .bgimg is present, use your hero photo + fixed height */
.hero.bgimg{
  background: url("titleimage.webp") center / cover no-repeat;
  height: 500px; /* matches your legacy height */
}
.hero.bgimg::after{ /* keep subtle grid if you like; remove if unwanted */
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
}

.hero-center{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.brand{
  font-size: clamp(42px, 9vw, 112px);
  letter-spacing: .02em;
  text-shadow: 0 10px 40px rgba(0,0,0,.4);
}

.hero-sub{
  position: absolute;
  right: 16px;
  bottom: 16px;
  font-size: clamp(12px, 1.6vw, 16px);
  color: #fff;
  text-align: right;
}

/* Page + Sections */
.page-bg{ background: var(--bg); filter: grayscale(.1); }
.section{ padding: 64px 16px; }
.container{ width: min(100%, 1100px); margin: 0 auto; }
.container--narrow{ max-width: var(--max-w); }

/* Kicker badge */
.kicker{
  display: flex; justify-content: center;
  margin: 16px 0 40px 0;
}
.kicker-badge{
  display: inline-block;
  background: var(--badge);
  color: var(--badge-ink);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 0;
  box-shadow: var(--shadow);
}

/* Type */
h1{
  font-size: clamp(20px, 4.6vw, 28px);
  margin: 28px 0 8px;
}
h2 {
  font-size: 1.4em;
  margin: 32px 0 14px 0;
  font-weight: 700;
}
h5 {
  font-size: 1.1em;
  margin: 20px 0 10px 0;
  font-weight: 600;
  letter-spacing: .03em;
}
p{ color: var(--muted-ink); margin: 10px 0 16px; font-size: 1.05em; }

/* Your mark/mark2 override will be applied below */

/* Images */
.responsive-img{
  width: 100%;
  max-width: 1000px;
  margin: 32px auto 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Notes badge */
.note-badge{
  display: inline-block;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 0px;
  padding: 2px 10px;
  font-size: 18px;
}

/* Form */
.form{ margin-top: 12px; }
.forminput{
  width: 100%;
  height: 46px;
  border: 1px solid #d8d8d8;
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.forminput::placeholder{ color: #999; }
.forminput:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,122,11,.15);
}
textarea.forminput{ min-height: 120px; height: auto; resize: vertical; }

.checkbox{ width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; }
.consent{ display: flex; align-items: center; gap: 8px; }

/* Button */
.btn{
  appearance: none;
  display: inline-block;
  background: var(--primary);
  color: var(--primary-ink);
  border: 0;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .06s ease, box-shadow .2s ease, opacity .2s ease;
}
.btn:hover{ opacity: .92; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.btn:active{ transform: translateY(1px); }

/* Footer */
.footer{
  background: #eee;
  color: #222;
  text-align: center;
  padding: 48px 16px;
  font-size: 18px;
}

/* A11y focus */
a:focus, button:focus, input:focus{
  outline: 3px solid rgba(43,122,11,.4);
  outline-offset: 2px;
}

/* Small screens */
@media (max-width: 640px){
  .nav{
    grid-template-columns: repeat(2, 1fr);
    row-gap: 6px;
    height: auto;
    padding: 8px;
  }
  .hero-sub{ right: 12px; bottom: 12px; }
}

/* ========= Merged: your existing CSS (kept as overrides) ========= */
body,
html {
  height: 100%;
  font-family: "Inconsolata", sans-serif; /* keep your font stack */
  width: 100%;
  scroll-behavior: smooth;
}

/* Legacy hero background (also applied via .hero.bgimg above) */
.bgimg {
  /* background-position: center; */
  background-size: cover;
  background-image: url("titleimage.webp");
  height: 500px;
  width: 100%;
}

/* Your highlight styles (override earlier defaults) */
mark {
  background-color: rgba(18, 255, 71, 0.612);
  color: black;
}

mark2 {
  background-color: black;
  color: white;
}

/* Thank-you banner image block (if used on a separate page/section) */
.img {
  background-position: center;
  background-size: cover;
  background-image: url("thankuimg.webp");
  height: 500px;
  width: 100%;
}

/* Hidden legacy menu (kept for parity) */
.menu { display: none; }

/* Your brand sizing overrides (ID wins over .brand clamp) */
#puterparts {
  font-size: 90px;
  color: white;
}
@media (max-width: 768px) {
  #puterparts {
    font-size: 60px;
    color: white;
  }
}

/* Keep your right-aligned subtitle */
#titlesub { text-align: right; }

/* Legacy nav text size controls (supporting older markup) */
tnav { font-size: 15px; }        /* tag selector if used */
#tnav { font-size: 15px; }       /* id selector for legacy links */
@media (max-width: 768px) {
  #tnav { font-size: 10px; }
}

/* Your input box model + border (overrides the base form inputs) */
.forminput {
  width: 100%;
  padding: 12px 10px;
  box-sizing: border-box;        /* redundant with global, but kept */
  border: 1px solid gray;        /* your preferred border colour */
}

/* Flatpickr mobile autogenerated input should match fields */
.InputText.flatpickr-input.flatpickr-mobile { 
  width: 100%;
  padding: 12px 10px;
  box-sizing: border-box;
  border: 1px solid gray;
}

/* Spacing for a thank-you box section (if present) */
#thankyoubox { padding-bottom: 10%; }

#Setmore_button_iframe img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}