/* Little Snitch Time Lapse — site styles */
:root {
  --blue: #1180ff;
  --blue-light: #32beeb;
  --ink: #424242;
  --grey: #7a7a7a;
  --dark: #1c2430;
  --paper: #ffffff;
  --section-alt: #f4f7fa;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.7;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); }

h1, h2, h3 { line-height: 1.2; color: var(--dark); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin: 0 0 8px; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 20px; font-weight: 700; margin: 0 0 10px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--dark);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header .logo { flex: none; }
.site-header .logo img { height: 44px; width: auto; display: block; }
.nav-toggle { display: none; }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-nav a:hover, .site-nav a.active { color: var(--blue-light); }

/* Hero */
.hero {
  background:
    linear-gradient(rgba(16, 24, 34, 0.55), rgba(16, 24, 34, 0.55)),
    url("../images/hero-bg.webp") center / cover no-repeat;
  color: #fff;
  padding: 90px 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.hero h1, .hero p { color: #fff; }
.hero .tagline { font-size: 20px; margin: 0 0 24px; }
.hero ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.hero ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 8px;
  font-size: 17px;
}
.hero ul li::before {
  content: "✓";
  color: var(--blue-light);
  font-weight: 800;
  position: absolute;
  left: 0;
}
.hero .camera-shot img { max-height: 420px; width: auto; margin: 0 auto; display: block; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--blue);
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #0a6be0; border-color: #0a6be0; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--section-alt); }
.section-title { text-align: center; margin-bottom: 40px; }

/* Trusted by logos: continuously scrolling strip */
.logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 50s linear infinite;
}
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-set {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-right: 64px;
}
.logo-set img {
  height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  flex: none;
  filter: grayscale(1);
  opacity: 0.75;
  transition: 0.2s;
}
.logo-set img:hover { filter: none; opacity: 1; }
.logo-set img.logo-sm { height: 34px; }
@keyframes logo-scroll {
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}
.logo-more {
  text-align: center;
  color: var(--grey);
  font-size: 15px;
  font-style: italic;
  margin: 32px 0 0;
}

/* Promote / feature icons */
.promote-lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  font-size: 20px;
}
.promote-lead strong { color: var(--blue); }
.feature-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
  text-align: center;
}
.feature-row img { height: 64px; width: auto; margin-bottom: 12px; }
.feature-row h3 { font-size: 16px; }

/* Two-column info blocks */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse > .split-media { order: 2; }
.split-media img { border-radius: 6px; display: block; margin: 0 auto; }

/* Spec lists (More Info) */
.spec-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.spec-cols ul { padding-left: 0; list-style: none; margin: 0; }
.spec-cols li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px solid #e4e9ee;
  position: relative;
}
.spec-cols li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 800;
  position: absolute;
  left: 0;
}

/* About photo */
.about-photo {
  float: right;
  width: 150px;
  margin: 6px 0 16px 28px;
}
.about-photo img { border-radius: 50%; display: block; }
.about-photo.left {
  float: left;
  margin: 6px 28px 16px 0;
}
.about-photo figcaption {
  font-size: 13px;
  color: var(--grey);
  text-align: center;
  margin-top: 8px;
}
@media (max-width: 600px) {
  .about-photo {
    float: none;
    margin: 0 auto 24px;
  }
}

/* Install steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  margin-bottom: 14px;
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }

/* Video embeds */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 28px;
}

/* Replacement guarantee band */
.guarantee {
  background: var(--blue);
  text-align: center;
}
.guarantee h2, .guarantee p { color: #fff; }
.guarantee p {
  max-width: 720px;
  margin: 0 auto;
  font-size: 18px;
}

/* Contact form */
.contact { background: var(--dark); color: #fff; }
.contact h2 { color: #fff; text-align: center; }
form.enquiry {
  max-width: 640px;
  margin: 32px auto 0;
  display: grid;
  gap: 18px;
}
form.enquiry label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 6px; }
form.enquiry .req { color: var(--blue-light); }
form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #46566a;
  border-radius: 4px;
  background: #101822;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
}
form.enquiry input:focus,
form.enquiry select:focus,
form.enquiry textarea:focus {
  outline: 2px solid var(--blue-light);
  outline-offset: 1px;
}
form.enquiry textarea { min-height: 120px; resize: vertical; }
form.enquiry button { justify-self: start; }
.form-note { font-size: 13px; color: #9fb0c3; margin: 0; }
.form-status { display: none; padding: 14px 16px; border-radius: 4px; font-weight: 600; }
.form-status.success { display: block; background: #123c26; color: #7fe3a9; border: 1px solid #1e6b42; }
.form-status.error { display: block; background: #45201f; color: #ffb3ae; border: 1px solid #7c3733; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Footer */
.site-footer {
  background: #101822;
  color: #c6d1dd;
  padding: 56px 0 40px;
  font-size: 15px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: space-between;
  gap: 32px;
  align-items: start;
}
.site-footer h3 { color: #fff; }
.site-footer a { color: var(--blue-light); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .company { text-align: right; }
.site-footer .footer-logo img { height: 40px; width: auto; margin-bottom: 16px; }

@media (max-width: 820px) {
  .hero .container, .split, .spec-cols { grid-template-columns: 1fr; }
  .split.reverse > .split-media { order: 0; }
  .site-footer .container { grid-template-columns: 1fr; }
  .site-footer .company { text-align: left; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0; }

  /* Mobile navigation */
  .site-header .container { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .site-header .logo img { height: 36px; }
  .nav-toggle {
    display: block;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s, top 0.2s;
  }
  .nav-toggle span:nth-child(1) { top: 13px; }
  .nav-toggle span:nth-child(2) { top: 21px; }
  .nav-toggle span:nth-child(3) { top: 29px; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-top: 10px;
    padding: 4px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav a:last-child { border-bottom: 0; }
}

/* Order form page */
[hidden] { display: none !important; }
.order-page { padding-top: 56px; }
.order-intro { max-width: 780px; margin-bottom: 40px; }
.order-intro p { font-size: 17px; }
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}
.order-form { display: grid; gap: 24px; }
.order-form fieldset {
  border: 1px solid #dfe6ec;
  border-radius: 6px;
  padding: 20px 24px 24px;
  margin: 0;
  display: grid;
  gap: 18px;
}
.order-form legend {
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  padding: 0 8px;
}
.order-form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.order-form .grid-3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; }
.order-form .stack { display: grid; gap: 18px; }
.order-form label, .order-form .label {
  font-weight: 600;
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
}
.order-form .req { color: var(--blue); }
.order-form input:not([type="checkbox"]):not([type="radio"]),
.order-form select,
.order-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9d3dc;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
}
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.order-form textarea { min-height: 110px; resize: vertical; }
.order-form .hint { font-size: 13px; color: var(--grey); margin: 6px 0 0; font-weight: 400; }
.order-form .hint-ok { color: #1e7a45; font-weight: 600; }
.order-form .hint-error { color: #b3261e; font-weight: 600; }
.choice-list { display: grid; gap: 10px; }
.order-form .choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid #c9d3dc;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  font-size: 15px;
  margin: 0;
  line-height: 1.5;
}
.order-form .choice input { margin: 4px 0 0; flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.order-form .choice:has(input:checked) { border-color: var(--blue); background: #eef5ff; }
.order-form .choice small { color: var(--grey); font-size: 13px; }
.order-form .choice-check { border: 0; padding: 0; background: none !important; }
.order-form button { justify-self: start; }
.order-form .form-status.success { background: #e6f6ec; color: #1e7a45; border-color: #9fdcb7; }
.order-form .form-status.error { background: #fdecea; color: #a4231b; border-color: #f2b4ae; }
.order-summary {
  position: sticky;
  top: 96px;
  background: var(--section-alt);
  border-radius: 6px;
  padding: 24px;
}
.order-summary h3 { margin-bottom: 8px; }
.sum-line { margin: 0; font-weight: 700; color: var(--dark); }
.sum-muted { font-weight: 400; color: var(--grey); font-size: 14px; margin-bottom: 12px; }
.order-summary table { width: 100%; border-collapse: collapse; font-size: 15px; }
.order-summary td { padding: 7px 0; }
.order-summary td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.order-summary tr.total td {
  font-weight: 800;
  font-size: 18px;
  color: var(--dark);
  border-top: 2px solid var(--dark);
  padding-top: 12px;
}
.sum-note { font-size: 13px; color: var(--grey); margin: 14px 0 0; }
.sum-includes { list-style: none; padding: 0; margin: 18px 0 0; font-size: 14px; }
.sum-includes li { padding: 4px 0 4px 24px; position: relative; }
.sum-includes li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 800;
  position: absolute;
  left: 0;
}

/* Order complete page */
.order-ref { font-size: 18px; }
.order-panel {
  background: var(--section-alt);
  border-radius: 6px;
  padding: 24px;
  margin: 24px 0 32px;
}
.order-panel-ok { background: #e6f6ec; }
.order-panel h3 { margin-top: 0; }
.bank-table { border-collapse: collapse; font-size: 16px; margin: 12px 0; }
.bank-table td { padding: 6px 24px 6px 0; }
.bank-table td:first-child { font-weight: 600; }
.bank-table td:last-child { font-weight: 700; color: var(--dark); }
.next-steps { padding-left: 22px; }
.next-steps li { margin-bottom: 8px; }

@media (max-width: 900px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (max-width: 600px) {
  .order-form .grid-2, .order-form .grid-3 { grid-template-columns: 1fr; }
  .order-form fieldset { padding: 16px; }
}

/* Phone layout */
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  section { padding: 40px 0; }
  .section-title { margin-bottom: 28px; }
  h1 { font-size: clamp(30px, 8vw, 36px); }
  h2 { font-size: clamp(24px, 6.5vw, 28px); }

  .hero {
    padding: 40px 0 32px;
    background-image:
      linear-gradient(rgba(16, 24, 34, 0.6), rgba(16, 24, 34, 0.6)),
      url("../images/hero-bg-mobile.webp");
  }
  .hero .container { gap: 28px; }
  .hero .tagline { font-size: 18px; margin-bottom: 18px; }
  .hero ul { margin-bottom: 24px; }
  .hero ul li { font-size: 16px; }
  .hero .camera-shot img { max-height: 240px; }

  .btn { padding: 14px 20px; }
  .btn-row { gap: 12px; }
  .btn-row .btn { flex: 1 1 100%; text-align: center; }

  .logo-set { gap: 40px; padding-right: 40px; }
  .logo-set img { height: 40px; max-width: 140px; }
  .logo-set img.logo-sm { height: 28px; }
  .logo-track { animation-duration: 40s; }
  .logo-more { margin-top: 24px; }

  .promote-lead { font-size: 17px; margin-bottom: 32px; }
  .feature-row { gap: 24px 16px; }
  .feature-row img { height: 52px; }
  .steps { gap: 28px; }
  .split, .spec-cols { gap: 28px; }
  .video-grid { gap: 20px; }
  .guarantee p { font-size: 16px; }

  /* 16px inputs stop iOS zooming the page on focus */
  form.enquiry input,
  form.enquiry select,
  form.enquiry textarea,
  .order-form input:not([type="checkbox"]):not([type="radio"]),
  .order-form select,
  .order-form textarea { font-size: 16px; }
  form.enquiry button,
  .order-form button { width: 100%; justify-self: stretch; }

  .order-page { padding-top: 32px; }
  .order-intro { margin-bottom: 28px; }
  .order-intro p { font-size: 16px; }
  .order-layout { gap: 32px; }
  .order-summary { padding: 18px; }
  .bank-table td { padding-right: 12px; }

  .site-footer { padding: 40px 0 32px; }
}
