/* ==========================================================================
   Firehouse Computers of Bluffton, LLC
   Single stylesheet. No frameworks, no build step.
   ========================================================================== */

:root {
  --brand: #b3202a;
  --brand-strong: #8f161f;
  --brand-soft: #fbeceb;
  --ink: #14181d;
  --ink-2: #39434f;
  --muted: #5f6a78;
  --line: #e7e0d8;
  --line-strong: #d5ccc1;
  --cream: #fffaf4;
  --paper: #ffffff;
  --brass: #b5822f;
  --ok: #1f7a4d;
  --warn: #9a5b00;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 29, .06);
  --shadow-md: 0 10px 30px -12px rgba(20, 24, 29, .18);
  --shadow-lg: 0 30px 60px -30px rgba(20, 24, 29, .35);

  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto,
          "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.022em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, white);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px;
  z-index: 100;
  padding: .7rem 1.1rem;
  background: var(--ink); color: #fff;
  border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 24, 29, .45);
}

.header-inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 76px;
}

.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit;
  margin-right: auto;
}
.brand img { width: 42px; height: 42px; }
.brand-name {
  display: flex; flex-direction: column; line-height: 1;
}
.brand-name strong {
  font-size: 1.12rem; font-weight: 800;
  letter-spacing: .055em; text-transform: uppercase;
  color: var(--ink);
}
.brand-name span {
  font-size: .66rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin-top: .28rem;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  padding: .55rem .8rem;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600; font-size: .95rem;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); background: var(--cream); }
.nav a[aria-current="page"] { color: var(--brand); }

.header-phone {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-left: .4rem;
  font-weight: 700; font-size: .95rem;
  color: var(--ink); text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 18px; height: 18px; color: var(--brand); }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease,
              box-shadow .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--brand); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(179, 32, 42, .8);
}
.btn-primary:hover { background: var(--brand-strong); color: #fff; }

.btn-ghost {
  background: var(--paper); color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); background: var(--cream); }

.btn-light {
  background: #fff; color: var(--brand-strong);
}
.btn-light:hover { background: var(--cream); color: var(--brand-strong); }

.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }

/* ---------- Type helpers ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: 0 0 1rem;
  font-size: .76rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px;
  background: var(--brand); border-radius: 2px;
}

.lede { font-size: 1.14rem; color: var(--ink-2); }
.muted { color: var(--muted); }

/* ---------- Sections ---------- */

.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-cream { background: var(--cream); }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(179, 32, 42, .10), transparent 62%),
    radial-gradient(700px 340px at -10% 10%, rgba(181, 130, 47, .12), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.2rem, 7vw, 6rem) 0;
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero .lede { max-width: 46ch; margin-bottom: 1.8rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  margin: 2rem 0 0; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line-strong);
  list-style: none;
}
.hero-badges li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .92rem; font-weight: 600; color: var(--ink-2);
}
.hero-badges svg { width: 17px; height: 17px; color: var(--ok); flex: none; }

.hero-art {
  position: relative;
  display: grid; place-items: center;
}
.hero-card {
  width: min(100%, 380px);
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.2deg);
}
.hero-card-head {
  display: flex; align-items: center; gap: .7rem;
  padding-bottom: 1rem; margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.hero-card-head img { width: 38px; height: 38px; }
.hero-card-head strong { display: block; color: var(--ink); font-size: .98rem; }
.hero-card-head span { font-size: .78rem; color: var(--muted); }

.hero-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.hero-list li { display: flex; gap: .7rem; align-items: flex-start; font-size: .93rem; }
.hero-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: .18rem; }
.hero-list strong { color: var(--ink); font-weight: 700; }

/* ---------- Cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1.1rem;
}

.card {
  position: relative;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line));
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .95rem; color: var(--ink-2); }

.card-icon {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.card-icon svg { width: 24px; height: 24px; }

.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1rem;
  font-weight: 700; font-size: .92rem;
  text-decoration: none;
}
.card-link::after { content: "→"; transition: transform .15s ease; }
.card-link:hover::after { transform: translateX(3px); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
  list-style: none; margin: 0; padding: 0;
}
.steps li {
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: .7rem;
  font-size: .82rem; font-weight: 800;
  letter-spacing: .12em;
  color: var(--brand);
}
.steps strong { display: block; color: var(--ink); margin-bottom: .3rem; }
.steps p { font-size: .94rem; margin: 0; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: rgba(255, 255, 255, .84);
}
.cta-band::after {
  content: "";
  position: absolute; inset: auto -10% -60% auto;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(179, 32, 42, .55), transparent 62%);
  pointer-events: none;
}
.cta-inner {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.6rem;
  padding: clamp(2.4rem, 5vw, 3.6rem) 0;
}
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { margin: 0; max-width: 52ch; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: clamp(2.6rem, 6vw, 4.4rem) 0 clamp(1.6rem, 4vw, 2.6rem);
  background:
    radial-gradient(900px 320px at 88% -20%, rgba(179, 32, 42, .10), transparent 60%),
    var(--cream);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-bottom: .6rem; }
.page-hero .lede { max-width: 60ch; }

/* ---------- Services ---------- */

.service-group + .service-group { margin-top: clamp(2.4rem, 5vw, 3.6rem); }

.service-group-head {
  display: flex; align-items: baseline; gap: .9rem;
  padding-bottom: .9rem; margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.service-group-head h2 { font-size: 1.4rem; margin: 0; }
.service-group-head span {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}

.service {
  display: flex; gap: 1rem;
  padding: 1.35rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.service svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: .15rem; }
.service h3 { margin-bottom: .25rem; font-size: 1.05rem; }
.service p { margin: 0; font-size: .93rem; }

/* ---------- Contact layout ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}

.panel {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.aside-card + .aside-card { margin-top: 1.1rem; }
.aside-card {
  padding: 1.4rem 1.5rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.aside-card h2 { font-size: .98rem; margin-bottom: .7rem; }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.contact-list li { display: flex; gap: .7rem; font-size: .95rem; }
.contact-list svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: .2rem; }
.contact-list strong { display: block; color: var(--ink); font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: .1rem; }

/* ---------- Forms ---------- */

.form-grid { display: grid; gap: 1.1rem; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field { display: grid; gap: .4rem; }

.field > label,
.fieldset > legend {
  font-size: .86rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink);
}

.field .hint { font-size: .82rem; color: var(--muted); }

.hint { font-size: .85rem; color: var(--muted); }

.h-sm { font-size: 1.15rem; }

.field-error {
  margin: .1rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: #b3261e;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: .8rem .95rem;
  font: inherit; font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #9aa3ad; }

input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(179, 32, 42, .12);
}

textarea { min-height: 130px; resize: vertical; }

input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: #c02a20;
  background: #fff7f6;
}

.fieldset { margin: 0; padding: 0; border: 0; }
.fieldset > legend { margin-bottom: .55rem; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: .5rem;
  padding: .3rem 0 0;
}

.check {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .6rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .92rem; line-height: 1.35;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.check:hover { border-color: var(--line-strong); background: var(--cream); }
.check:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}
.check input {
  width: 18px; height: 18px; margin: .1rem 0 0;
  accent-color: var(--brand); flex: none;
}

.form-foot {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  padding-top: .4rem;
}
.form-foot .hint { font-size: .82rem; color: var(--muted); max-width: 34ch; }

/* honeypot — hidden from humans, visible to naive bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

.alert {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .95rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: .93rem;
  margin-bottom: 1.2rem;
}
.alert svg { width: 18px; height: 18px; flex: none; margin-top: .15rem; }
.alert-error { background: #fdf0ef; border: 1px solid #f1cfcb; color: #7d1c14; }
.alert-ok { background: #eef8f1; border: 1px solid #c6e6d3; color: #145c39; }
.alert ul { margin: .3rem 0 0; padding-left: 1.1rem; }

/* ---------- Confirmation page ---------- */

.confirm-wrap {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}
.confirm-icon {
  display: inline-grid; place-items: center;
  width: 72px; height: 72px;
  margin-bottom: 1.4rem;
  border-radius: 50%;
  background: #eef8f1; color: var(--ok);
}
.confirm-icon svg { width: 34px; height: 34px; }
.confirm-wrap .lede { margin-bottom: 1.8rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: #0f1216;
  color: rgba(255, 255, 255, .66);
  font-size: .93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: clamp(2.6rem, 5vw, 3.8rem) 0;
}
.site-footer h2 {
  color: #fff; font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  margin-bottom: .9rem;
}
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand { display: flex; gap: .8rem; align-items: flex-start; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand strong { color: #fff; display: block; font-size: .98rem; }
.footer-brand p { margin: .4rem 0 0; max-width: 34ch; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.2rem 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .84rem;
  color: rgba(255, 255, 255, .5);
}
.footer-bottom p { margin: 0; }

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .brand { margin-right: 0; }
  .header-phone { display: none; }

  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none;
    flex-direction: column; align-items: stretch;
    gap: .15rem;
    padding: .6rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -26px rgba(20, 24, 29, .5);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .8rem .9rem; }
  .nav a[aria-current="page"] { background: var(--brand-soft); }

  .field-row { grid-template-columns: 1fr; }
  .header-inner { min-height: 68px; }
  .footer-top { grid-template-columns: 1fr; }
}
