/* McColligan Web — site styles. Mobile-first; no external fonts. */
:root {
  --ink: #14202e;
  --ink-2: #22344a;
  --text: #1f2933;
  --muted: #52606d;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e4e0d8;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #fff1e8;
  --accent-on-dark: #fdba74;
  --ok: #166534;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 32, 46, .06), 0 8px 24px rgba(20, 32, 46, .06);
  --wrap: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-dark); text-underline-offset: .18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2.6vw, 1.3rem); color: var(--muted); max-width: 40rem; }
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent-dark); margin-bottom: .75rem;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 9vw, 6rem) 0; }
.section--tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section--dark { background: var(--ink); color: #dbe3ec; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .eyebrow { color: var(--accent-on-dark); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.center { text-align: center; margin-inline: auto; }

.skip {
  position: absolute; left: -999px; top: .5rem; background: var(--ink); color: #fff;
  padding: .6rem 1rem; border-radius: 8px; z-index: 100;
}
.skip:focus { left: .5rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span span { color: var(--accent-dark); }
.nav { border-top: 1px solid var(--line); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; }
.nav a {
  display: block; padding: .7rem .25rem; text-decoration: none; color: var(--text);
  font-weight: 600; font-size: .98rem;
}
.nav a:hover { color: var(--accent-dark); }
.nav a[aria-current="page"] { color: var(--accent-dark); box-shadow: inset 0 -3px 0 var(--accent); }
.btn.header-call { display: none; }
@media (min-width: 30rem) { .btn.header-call { display: inline-flex; } }

@media (min-width: 52rem) {
  .header-inner { display: flex; align-items: center; gap: 2rem; }
  .header-row { display: contents; }
  .brand { padding: .7rem 0; }
  .header-call { order: 3; }
  .nav { border: 0; margin-left: auto; }
  .nav ul { gap: 1.75rem; }
  .nav a { padding: 1.35rem 0; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-dark); color: #fff; }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-soft); color: var(--ink); }
.btn--sm { min-height: 42px; padding: .5rem 1rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 8vw, 6rem); overflow: hidden; }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
.proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--muted); font-size: .95rem; font-weight: 600; }
.proof li { display: flex; align-items: center; gap: .4rem; }
.proof svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }

/* Phone illustration (pure CSS/HTML) */
.phone {
  width: min(260px, 66vw); margin-inline: auto; aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 42px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(20, 32, 46, .45);
  position: relative; rotate: 2deg;
}
.phone-screen { height: 100%; background: #fff; border-radius: 31px; overflow: hidden; display: flex; flex-direction: column; font-size: 11px; line-height: 1.35; color: var(--text); }
.ph-bar { display: flex; justify-content: space-between; align-items: center; padding: 22px 14px 10px; border-bottom: 1px solid #eee; }
.ph-logo { font-weight: 800; color: var(--ink); font-size: 12px; }
.ph-call { background: var(--accent); color: #fff; border-radius: 99px; padding: 4px 10px; font-weight: 700; font-size: 10px; }
.ph-hero { background: linear-gradient(160deg, #22344a, #14202e); color: #fff; padding: 22px 14px; }
.ph-hero b { display: block; font-size: 17px; line-height: 1.15; margin-bottom: 6px; letter-spacing: -.01em; }
.ph-hero span { opacity: .8; }
.ph-btn { display: inline-block; margin-top: 12px; background: #fff; color: var(--ink); border-radius: 99px; padding: 6px 12px; font-weight: 700; }
.ph-body { padding: 12px 14px; display: grid; gap: 8px; }
.ph-card { border: 1px solid #eee; border-radius: 10px; padding: 9px 10px; display: flex; gap: 8px; align-items: center; }
.ph-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); flex: none; }
.ph-line { height: 6px; border-radius: 3px; background: #e9e6e0; }
.ph-map { height: 70px; border-radius: 10px; background: linear-gradient(90deg, transparent 48%, #fff 48% 52%, transparent 52%), linear-gradient(0deg, transparent 45%, #fff 45% 50%, transparent 50%), #e3eadf; position: relative; }
.ph-map::after { content: ""; position: absolute; left: 50%; top: 40%; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: translate(-50%, -50%) rotate(-45deg); }
.ph-stars { color: #d97706; letter-spacing: 1px; }
.ph-tag {
  position: absolute; left: -2.2rem; bottom: 18%; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .55rem .8rem; font-size: .85rem; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); rotate: -2deg;
  display: flex; align-items: center; gap: .5rem;
}
.ph-tag b { color: var(--ok); font-size: 1.1rem; }
@media (max-width: 30rem) { .ph-tag { left: -.5rem; } }

/* Cards & grids */
.grid { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark); margin-bottom: 1rem;
}
.card .icon svg { width: 22px; height: 22px; }
.section--dark .card { background: var(--ink-2); border-color: #33475f; box-shadow: none; color: #dbe3ec; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: .2rem; }
@media (min-width: 40rem) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 3.4rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { color: var(--muted); margin: 0; }
.section--dark .steps p { color: #b8c4d1; }

/* Offer band */
.offer {
  background: var(--accent-soft); border: 1px solid #fed7c3; border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.5rem, 5vw, 2.5rem); display: grid; gap: 1.25rem; align-items: center;
}
.offer h2 { font-size: clamp(1.4rem, 4vw, 2rem); margin-bottom: .35rem; }
.offer p { margin: 0; color: var(--text); }
@media (min-width: 52rem) { .offer { grid-template-columns: 1fr auto; } }

/* Pricing */
.price-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .price-grid { grid-template-columns: repeat(3, 1fr); } }
.price-card { display: flex; flex-direction: column; gap: 1rem; position: relative; }
.price-card--featured { border: 2px solid var(--accent); }
.badge {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: var(--accent); color: #fff; border-radius: 999px; padding: .25rem .7rem;
}
.price-card .badge { position: absolute; top: -.85rem; left: 1.5rem; }
.price-card h2 { font-size: 1.45rem; margin: 0; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin: 0; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.founding { margin: 0; font-size: .95rem; background: var(--accent-soft); border-radius: 10px; padding: .55rem .75rem; color: var(--text); }
.founding strong { color: var(--accent-dark); }
.price-meta { color: var(--muted); font-size: .95rem; margin: 0; }
.price-card .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 48rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); }

/* Work */
.demo-card { display: flex; flex-direction: column; gap: .75rem; }
.demo-thumb {
  aspect-ratio: 16 / 10; border-radius: 10px; display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, #f3f0ea 0 12px, #ece8e0 12px 24px); color: var(--muted); font-weight: 700; font-size: .95rem;
  border: 1px dashed #cfc9bd;
}
.status { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 700; color: var(--muted); }
.status::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #d97706; }

/* Prose / about */
.prose { max-width: 42rem; }
.prose h2 { margin-top: 2rem; font-size: clamp(1.4rem, 3.5vw, 1.8rem); }
.split { display: grid; gap: 2.5rem; }
@media (min-width: 56rem) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.towns { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.towns li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .3rem .85rem; font-size: .95rem; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 700; color: var(--ink); font-size: .97rem; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--text); background: #fff; width: 100%;
  border: 1.5px solid #c9c3b8; border-radius: 10px; padding: .75rem .85rem; min-height: 48px;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(194, 65, 12, .18); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 600; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="err"] { color: #b91c1c; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .icon { margin: 0; flex: none; }
.contact-list a { font-weight: 700; font-size: 1.1rem; word-break: break-word; }
.contact-list small { display: block; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #b8c4d1; padding: 3rem 0 2rem; font-size: .97rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-on-dark); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { color: #fff; margin-bottom: .75rem; }
.site-footer .brand span span { color: var(--accent-on-dark); }
.site-footer h2 { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.footer-bottom { border-top: 1px solid #2c3e54; margin-top: 2.5rem; padding-top: 1.25rem; font-size: .9rem; }

/* Sticky mobile call bar */
.callbar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 32, 46, .08);
}
.callbar .btn { min-height: 46px; padding: .5rem; }
body { padding-bottom: 4.5rem; }
@media (min-width: 52rem) { .callbar { display: none; } body { padding-bottom: 0; } }

.page-hero { padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.note { font-size: .93rem; color: var(--muted); }
