/* Tominey Security Systems — hand-written CSS, system fonts, no build step. */

:root {
  --ink: #111214;
  --ink-2: #191b1e;
  --ink-3: #24272b;
  --ink-line: #2f3338;
  --on-ink: #f3f5f0;
  --on-ink-muted: #a9afa6;

  --paper: #ffffff;
  --paper-2: #f4f6f1;
  --line: #dfe3db;
  --text: #16181a;
  --muted: #555b55;

  --lime: #86e30a;
  --lime-hi: #9cf227;
  --lime-ink: #0d1400;
  --green-text: #3b7000;   /* lime on light backgrounds fails contrast; use this for text */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,18,20,.06), 0 8px 24px rgba(16,18,20,.06);
  --wrap: 1160px;
  --gutter: 20px;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: clamp(1.3rem, 1.1rem + .8vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.25rem + 1.5vw, 2.25rem);
  --step-4: clamp(2rem, 1.4rem + 2.6vw, 3.3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  padding-bottom: 76px; /* room for the mobile contact bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 800; }
h3 { font-size: var(--step-1); font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--lime-ink); padding: 10px 16px;
  border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.25em;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, border-color .15s, transform .15s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 54px; padding: .85em 1.5em; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--lime); color: var(--lime-ink); }
.btn-primary:hover { background: var(--lime-hi); }
.btn-outline { background: transparent; color: var(--on-ink); border-color: rgba(243,245,240,.35); }
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }
.btn-ghost { background: var(--ink-3); color: var(--on-ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,18,20,.96);
  border-bottom: 1px solid var(--ink-line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(17,18,20,.86); backdrop-filter: blur(8px); }
}
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 8px 24px; padding-top: 10px; padding-bottom: 10px;
}
.brand img { height: 46px; width: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; justify-content: center; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: .975rem;
}
.main-nav a:hover { background: var(--ink-3); }
.main-nav a[aria-current="page"] { color: var(--lime); }
.header-call {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-ink); text-decoration: none; font-weight: 700;
  padding: 10px 16px; border: 1px solid var(--ink-line); border-radius: 999px;
}
.header-call .icon { color: var(--lime); }
.header-call:hover { border-color: var(--lime); }

@media (max-width: 760px) {
  .header-inner { grid-template-columns: 1fr auto; padding-bottom: 4px; }
  .brand img { height: 40px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; margin: 0 -8px; }
  .main-nav ul { justify-content: flex-start; }
  .main-nav a { padding: 8px 10px; font-size: .95rem; }
  .header-call span { display: none; }
  .header-call { padding: 0; width: 46px; height: 46px; justify-content: center; }
  .header-call .icon { width: 1.35em; height: 1.35em; }
}

/* ---------- Hero ---------- */
.hero, .page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% 30%, rgba(134,227,10,.13), transparent 65%),
    var(--ink);
  color: var(--on-ink);
}
.hero { padding: clamp(36px, 7vw, 96px) 0 clamp(44px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 18px; color: var(--lime);
  font-size: .9rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.eyebrow .icon { width: 1.1em; height: 1.1em; }
.hero h1 { max-width: 17ch; }
.lede { font-size: var(--step-1); color: var(--on-ink-muted); max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.proof-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 26px; color: var(--on-ink-muted); font-size: .95rem; text-decoration: none;
}
.proof-chip:hover { color: var(--on-ink); }
.stars { display: inline-flex; gap: 2px; color: var(--lime); }
.star { width: 1em; height: 1em; fill: currentColor; stroke: none; }

.hero-photo {
  position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: end;
}
.hero-photo::before {
  /* soft lime glow behind the photo, echoing the shop sign */
  content: ""; position: absolute; inset: 8% -6% -4% 10%; border-radius: 28px;
  background: radial-gradient(circle at 60% 40%, rgba(134,227,10,.35), transparent 70%);
  filter: blur(24px); z-index: 0;
}
.hero-photo picture, .hero-photo img {
  position: relative; z-index: 1; display: block; width: 100%;
  border-radius: 20px;
}
.hero-photo img {
  aspect-ratio: 1100 / 1427; object-fit: cover; object-position: center top;
  border: 1px solid var(--ink-line);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.hero-photo figcaption {
  position: absolute; z-index: 2; left: 16px; bottom: 16px; right: 16px;
}
.hero-photo figcaption a, .page-hero .hero-photo figcaption a {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(17,18,20,.88); border: 1px solid var(--ink-line);
  color: var(--on-ink); font-weight: 700; font-size: .925rem; text-decoration: none;
}
.hero-photo figcaption a:hover { border-color: var(--lime); }
.hero-photo figcaption .icon { color: var(--lime); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { max-width: none; justify-self: stretch; }
  /* landscape crop on phones: keep the sign and window, drop the pavement */
  .hero-photo img { aspect-ratio: 4 / 3; object-position: center 22%; }
  .hero-photo::before { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

.page-hero { padding: clamp(36px, 6vw, 80px) 0; }
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.about-photo { max-width: 400px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.page-hero h1 { max-width: 22ch; }
.page-hero .btn { margin-top: 12px; }
.about-copy { max-width: 64ch; }
.about-copy p:not(.lede) { color: var(--on-ink-muted); }
.meta { color: var(--on-ink-muted); font-size: .9rem; margin: 0; }
.page-hero a:not(.btn) { color: var(--lime); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.page-hero .jump a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink-line);
  background: var(--ink-2); color: var(--on-ink); text-decoration: none; font-weight: 600; font-size: .925rem;
}
.page-hero .jump a .icon { color: var(--lime); }
.page-hero .jump a:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-tight { padding: 0 0 clamp(48px, 7vw, 88px); }
.section-alt { background: var(--paper-2); }
.section-title { max-width: 26ch; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker {
  color: var(--green-text); font-weight: 700; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px;
}
.intro { margin-bottom: 36px; }
.intro p { color: var(--muted); font-size: var(--step-1); max-width: 70ch; }

.card-grid {
  list-style: none; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
@media (min-width: 640px) and (max-width: 1099px) {
  /* 3 + 2 layout: the last two cards share the bottom row evenly */
  .card-grid { grid-template-columns: repeat(6, 1fr); }
  .card-grid > li { grid-column: span 2; }
  .card-grid > li:nth-last-child(-n+2) { grid-column: span 3; }
}
.card a {
  display: flex; flex-direction: column; height: 100%;
  padding: 24px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
  color: inherit; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card a:hover { border-color: var(--green-text); transform: translateY(-2px); }
.card p { color: var(--muted); flex: 1; }
.card-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 16px;
  background: var(--ink); color: var(--lime);
}
.card-icon .icon { width: 24px; height: 24px; }
.card-icon-lg { width: 60px; height: 60px; border-radius: 14px; }
.card-icon-lg .icon { width: 30px; height: 30px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; color: var(--green-text); font-weight: 700; }
.card-link .icon { width: 1em; height: 1em; transition: transform .15s; }
.card a:hover .card-link .icon { transform: translateX(3px); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.ticks .icon {
  width: 26px; height: 26px; padding: 5px; margin-top: -1px;
  border-radius: 50%; background: var(--lime); color: var(--lime-ink); stroke-width: 3;
}

.callout {
  padding: 32px; border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink);
}
.callout p { color: var(--on-ink-muted); }
.callout .callout-title { color: var(--on-ink); font-size: var(--step-2); font-weight: 800; line-height: 1.2; margin-bottom: .4em; }
.callout-icon { width: 44px; height: 44px; color: var(--lime); margin-bottom: 14px; }

.work-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.work-mini figure { margin: 0; }
.work-mini img { aspect-ratio: 1; object-fit: cover; width: 100%; border-radius: var(--radius-sm); }
.work-mini .text-link { grid-column: 1 / -1; display: inline-flex; gap: 6px; align-items: center; font-weight: 700; }

.steps {
  list-style: none; display: grid; gap: 16px; margin-top: 36px;
  grid-template-columns: repeat(3, 1fr); counter-reset: none;
}
.steps li {
  position: relative; padding: 28px 24px 24px;
  border-radius: var(--radius); background: var(--paper-2); border: 1px solid var(--line);
}
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--ink); color: var(--lime); font-weight: 800;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

.reviews {
  list-style: none; display: grid; gap: 16px; margin-top: 36px;
  grid-template-columns: repeat(3, 1fr); align-items: start;
}
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.review {
  margin: 0; padding: 26px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.review .stars { margin-bottom: 12px; }
.review blockquote { margin: 0 0 16px; }
.review blockquote p { margin: 0; font-size: 1.0625rem; }
.review figcaption { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption span { color: var(--muted); font-size: .9rem; }
.reviews-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; margin: 28px 0 0; }
.reviews-more .card-link { gap: 8px; }
.reviews-more .icon { width: 1.1em; height: 1.1em; }

/* ---------- Services page ---------- */
.service { scroll-margin-top: 80px; }
.service-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.service-head p { color: var(--muted); max-width: 60ch; }
.service-head .btn { margin-top: 8px; }
.service-list {
  padding: 28px; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.service-list h3 { margin-bottom: 16px; }
@media (max-width: 860px) { .service-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Contact ---------- */
.gallery {
  list-style: none; display: grid; gap: 14px; margin-top: 28px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius-sm); }
.gallery figcaption { margin-top: 8px; font-weight: 600; font-size: .95rem; }

.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-side > p { color: var(--muted); }
.contact-list { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.contact-list a, .contact-list div {
  display: flex; align-items: center; gap: 14px; padding: 12px;
  border-radius: var(--radius-sm); color: inherit; text-decoration: none;
  background: var(--paper); border: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.contact-list a:hover { border-color: var(--green-text); }
.contact-list .card-icon { margin: 0; }
.contact-list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.contact-list span:last-child { font-weight: 700; }

.form-card {
  padding: clamp(22px, 4vw, 36px); border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-title { font-size: var(--step-2); margin-bottom: .3em; }
.form-sub { color: var(--muted); font-size: .95rem; }
.enquiry { display: grid; gap: 18px; margin-top: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.req { color: #b42318; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--paper); border: 1.5px solid #b9c0b6; border-radius: var(--radius-sm);
}
.field select {
  appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555b55' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-text); box-shadow: 0 0 0 3px rgba(134,227,10,.35);
}
.has-error input, .has-error select, .has-error textarea { border-color: #b42318; }
.help { color: var(--muted); font-size: .875rem; margin: 6px 0 0; }
.field-check { display: flex; gap: 12px; align-items: flex-start; }
.field-check input { width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--green-text); flex: none; }
.field-check label { font-weight: 500; margin: 0; }
.form-alt { text-align: center; color: var(--muted); margin: 0; font-size: .95rem; }
.alert {
  margin: 16px 0 8px; padding: 16px 18px; border-radius: var(--radius-sm);
  background: #fef3f2; border: 1px solid #fda29b; color: #7a271a;
}
.alert p { margin: 0 0 6px; }
.alert ul { padding-left: 1.2em; }
.alert a { color: #7a271a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Thank-you ---------- */
.thanks { text-align: left; }
.thanks-icon {
  display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 50%; background: var(--lime); color: var(--lime-ink);
}
.thanks-icon .icon { width: 32px; height: 32px; stroke-width: 3; }
.thanks p:not(.lede) { color: var(--on-ink-muted); }

/* ---------- Prose (privacy) ---------- */
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.3em; margin-bottom: 1em; display: grid; gap: 4px; }
.prose p, .prose li { color: #2b2f2b; }
mark.todo { background: #fff2b3; color: #6b4e00; padding: 0 4px; border-radius: 4px; font-weight: 700; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 10% 0%, rgba(134,227,10,.14), transparent 70%),
    var(--ink);
  color: var(--on-ink);
  padding: clamp(44px, 6vw, 72px) 0;
}
.cta-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta-inner h2 { max-width: 22ch; }
.cta-inner p { color: var(--on-ink-muted); margin: 0; }
.cta-actions { display: grid; gap: 12px; }
.cta-alt { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin: 4px 0 0; }
.cta-alt a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--on-ink); font-weight: 600; overflow-wrap: anywhere;
}
.cta-alt .icon { color: var(--lime); }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #0b0c0d; color: var(--on-ink-muted); padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 36px; }
.footer-brand img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-brand p { max-width: 36ch; }
.footer-h { color: var(--on-ink); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-links { list-style: none; display: grid; gap: 8px; }
.footer-links a, .footer-links span { color: var(--on-ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.footer-contact a, .footer-contact span { display: inline-flex; gap: 10px; align-items: center; overflow-wrap: anywhere; }
.footer-contact .icon { color: var(--lime); width: 1.1em; height: 1.1em; }
.footer-base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-line); font-size: .875rem;
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--on-ink-muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Mobile contact bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(17,18,20,.97); border-top: 1px solid var(--ink-line);
}
.mobile-bar .btn { min-height: 50px; }
@media (min-width: 761px) {
  .mobile-bar { display: none; }
  body { padding-bottom: 0; }
}

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