/* =========================================================
   Chittering IT — site styles
   Colours and fonts are set once in :root below.
   ========================================================= */

/* ---------- Fonts (self-hosted, no external requests) ---------- */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/archivo-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/inter-latin-600-normal.woff2') format('woff2'); }

/* ---------- Brand tokens ---------- */
:root {
  --bush: #22402f;
  --bush-mid: #335a41;
  --bush-lt: #4d7a5c;
  --wheat: #e8d5a8;
  --wheat-lt: #f6eeda;
  --rust: #c05a2a;
  --rust-dk: #a54a1f;
  --gravel: #8a8377;
  --line: #e6e2da;
  --ink: #1c2019;
  --ink-soft: #4a5247;
  --paper: #fbf9f4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(28, 32, 25, .06), 0 10px 28px rgba(28, 32, 25, .08);
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw: 1140px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.03rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .55em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(3.2rem, 7vw, 5.6rem); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 3.8rem); }
.section--cream { background: var(--wheat-lt); }
.section--dark { background: var(--bush); color: #d7e4da; }
.section--dark h2, .section--dark h3 { color: #fff; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .grid-2, .split { grid-template-columns: 1fr; } }
@media (max-width: 580px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: .8rem;
}
.section--dark .eyebrow { color: var(--wheat); }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 58ch; }
.section--dark .lede { color: #c8d9cd; }
.note { margin-top: 1rem; font-size: .9rem; color: var(--gravel); }
.text-link { font-weight: 600; color: var(--rust); text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 700; font-size: .97rem;
  padding: .85rem 1.35rem; min-height: 48px;
  border-radius: 10px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--rust); color: #fff; }
.btn-primary:hover { background: var(--rust-dk); }
.btn-outline { border-color: var(--bush); color: var(--bush); background: transparent; }
.btn-outline:hover { background: var(--bush); color: #fff; }
.btn-light { background: #fff; color: var(--bush); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Cards and lists ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card--raised { box-shadow: var(--shadow); }

.ticks { list-style: none; padding: 0; margin: 1rem 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--ink-soft); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: .5em;
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--wheat); border: 2px solid var(--bush-lt);
}

.towns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.town { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .45rem .85rem; font-weight: 600; font-size: .92rem; }
.town--core { background: var(--bush); border-color: var(--bush); color: #fff; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.logo svg { flex: none; }
.logo__name {
  font-family: var(--font-head); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.02em; line-height: 1; text-transform: uppercase; color: var(--bush);
}
.logo--inverse .logo__name { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 244, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.nav { display: flex; gap: 1.7rem; }
.nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); font-size: .96rem; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--rust); }
.actions { display: flex; align-items: center; gap: .6rem; }

.menu { display: none; position: relative; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px;
  border: 1.5px solid var(--line); display: grid; place-content: center; gap: 4px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--bush); border-radius: 2px; }
.menu__panel {
  position: absolute; right: 0; top: 54px; width: min(78vw, 280px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: .6rem; display: flex; flex-direction: column;
}
.menu__panel a:not(.btn) { padding: .75rem .8rem; text-decoration: none; font-weight: 600; border-radius: 8px; }
.menu__panel a:not(.btn):hover { background: var(--wheat-lt); }
.menu__panel a[aria-current='page'] { color: var(--rust); }
.menu__panel .btn { justify-content: center; margin-top: .4rem; }

@media (max-width: 920px) { .nav { display: none; } .menu { display: block; } }
@media (max-width: 560px) { .header-call { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--bush); color: #c6d6ca; padding-block: 3rem 1.4rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer h2 { color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .4rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--wheat); }
.footer-tag { margin: 1rem 0 .4rem; color: var(--wheat); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.footer-small { font-size: .9rem; max-width: 34ch; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .84rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Home: hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--wheat-lt) 0%, var(--paper) 80%); }
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(6rem, 11vw, 8.5rem);
}
.hero h1 span { display: block; color: var(--rust); }
.hero__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(60px, 9vw, 120px); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.how { list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: s; }
.how li { position: relative; padding: 0 0 1rem 2.6rem; margin-bottom: 1rem; border-bottom: 1px dashed var(--line); counter-increment: s; }
.how li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.how li::before,
.steps-list li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--bush); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.how strong, .steps-list strong { display: block; font-family: var(--font-head); }
.how span, .steps-list span { font-size: .93rem; color: var(--ink-soft); }

/* ---------- Home: services ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.service { display: flex; gap: 1rem; align-items: flex-start; padding: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.service__icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--wheat-lt); display: grid; place-items: center; }
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--bush); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service__icon .fill { fill: var(--rust); stroke: none; }
.service h3 { margin-bottom: .3rem; font-size: 1.05rem; }
.service p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* ---------- Home: proof ---------- */
.proof { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.proof li { display: flex; gap: 1.1rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; }
.proof__num { flex: none; width: 4.2rem; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 2rem; color: var(--rust); line-height: 1; }
.proof strong { display: block; font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.proof li > span:last-child { font-size: .94rem; color: var(--ink-soft); }

/* ---------- Home: residential / business doors ---------- */
.doors { margin-top: 1.8rem; }
.door {
  display: block; text-decoration: none; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem; box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.door:hover { transform: translateY(-3px); border-color: var(--bush-lt); }
.door__tag {
  display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--bush-mid);
  padding: .25rem .6rem; border-radius: 6px; margin-bottom: 1rem;
}
.door--biz .door__tag { background: var(--rust); }
.door p { color: var(--ink-soft); }
.door__link { font-weight: 700; color: var(--rust); }

.split--top { align-items: start; }
.split--end { align-items: end; }
.m0 { margin: 0; }

/* ---------- Inner pages ---------- */
.intro { background: linear-gradient(180deg, var(--wheat-lt) 0%, var(--paper) 100%); padding-block: 1.6rem clamp(3rem, 6vw, 4.8rem); }
.crumbs { font-size: .88rem; color: var(--gravel); margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--rust); }

.layers { list-style: none; margin: 2.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.layers li { border-top: 3px solid var(--rust); padding-top: 1.2rem; }
.layers__num { display: block; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--wheat); margin-bottom: .6rem; }
.layers p { font-size: .95rem; color: #c3d6c8; margin: 0; }
@media (max-width: 900px) { .layers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .layers { grid-template-columns: 1fr; } }

.svc-grid { margin-top: 1.8rem; }
.svc-grid .card h3 { margin-bottom: .2rem; }

.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: .9rem; }
.steps-list li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1.1rem 3.6rem; counter-increment: s; }
.steps-list li::before { left: 1.1rem; top: 1.1rem; }

.faq { max-width: 820px; }
.faq__list { margin-top: 1.6rem; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.05rem 1.3rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: var(--font-head); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--rust); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { margin: .8rem 0 0; color: var(--ink-soft); }

.cta-band { background: var(--wheat-lt); border-top: 1px solid var(--line); }
.cta-band__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .3rem; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-band p { margin: 0; color: var(--ink-soft); }
.cta-band .btn-row { margin-top: 0; }

/* ---------- Accessibility and mobile ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--bush); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 3px; }

.callbar { display: none; }
@media (max-width: 700px) {
  .callbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    justify-content: center; align-items: center; min-height: 56px;
    background: var(--rust); color: #fff; text-decoration: none;
    font-family: var(--font-head); font-weight: 700;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .16);
  }
  body { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Contact details list ---------- */
.contact-list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact-list li {
  display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; align-items: baseline;
  padding: .8rem 0; border-bottom: 1px dashed var(--line);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list__label {
  font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--gravel);
}
.contact-list__value { font-weight: 600; color: var(--ink); text-decoration: none; }
a.contact-list__value:hover { color: var(--rust); }

/* ---------- Form ---------- */
.form { margin-top: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .35rem; }
.field .optional { color: var(--gravel); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .85rem; font: inherit; font-size: .95rem;
  border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--bush-lt); background: #fff; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.form__submit { width: 100%; justify-content: center; }
.form__note { margin: .9rem 0 0; font-size: .84rem; color: var(--gravel); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__result { padding: 1.2rem 0; }
.form__result h3 { margin-bottom: .4rem; }
.form__result p { color: var(--ink-soft); margin: 0; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 12vw, 8rem); }
.notfound .btn-row { justify-content: center; }

.form__error { margin: .8rem 0 0; font-size: .92rem; font-weight: 600; color: var(--rust-dk); }

.cf-turnstile { margin-bottom: 1rem; min-height: 65px; }
