/* ==========================================================================
   NH E&M (Nick Horsfall Electrical & Maintenance)
   Design tokens per handoff. 4px spacing base. No shadows: depth comes from
   borders and the dark/light section rhythm.
   ========================================================================== */

:root {
  /* Colour */
  --switchboard: #16191D;   /* primary dark */
  --switchboard-hi: #2A2E35;/* dark button hover */
  --amber: #F2A20C;         /* accent only */
  --amber-hi: #FFB528;      /* amber button hover */
  --conduit: #4A4E55;       /* body copy on light */
  --mid: #33373D;           /* list / chip text */
  --muted: #86898F;         /* eyebrows, fine print */
  --muted-2: #6B6F76;       /* placeholders, footnotes */
  --on-dark: #B9BCC1;       /* body on dark */
  --on-dark-hi: #C9CBCE;    /* labels on dark */
  --plaster: #EDEDEA;       /* alt background, light dividers */
  --line: #E4E4DF;          /* border on light */
  --line-2: #D8D8D3;        /* chip border */
  --dark-line: #33373D;     /* border on dark */
  --dark-line-2: #3A3E45;   /* input border on dark */
  --surface-dark: #1E2228;  /* form card */
  --footer: #0F1114;

  /* Layout */
  --container: 1180px;
  --gutter: 28px;
  --radius: 4px;
  --radius-img: 6px;
}

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

/* Flex/grid display values would otherwise beat the [hidden] UA rule */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--switchboard);
  font-family: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: inherit; text-decoration: none; transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease; }

h1, h2, h3, p, dl, dd, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--switchboard); color: #FFF;
  padding: 12px 18px; border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* Section targets clear the sticky header */
section[id] { scroll-margin-top: 80px; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dark {
  background: var(--switchboard);
  color: #FFFFFF;
  padding: 15px 26px;
  font-size: 15px;
}
.btn-dark:hover { background: var(--switchboard-hi); color: #FFFFFF; }

.btn-amber {
  background: var(--amber);
  color: var(--switchboard);
  padding: 17px 28px;
  font-size: 16px;
}
.btn-amber:hover { background: var(--amber-hi); color: var(--switchboard); }

.btn-ghost {
  border: 1.5px solid var(--conduit);
  background: transparent;
  color: #FFFFFF;
  padding: 16px 28px;
  font-size: 16px;
}
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }

.self-start { align-self: flex-start; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo:hover { color: inherit; }
.logo-mark { flex: none; }
.logo-text { display: flex; flex-direction: column; gap: 3px; }
.logo-wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.logo-tagline { font-size: 8px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted-2); white-space: nowrap; }

.header-right { display: flex; align-items: center; gap: 28px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 14px; font-weight: 600; color: var(--conduit); }
.nav a:hover { color: var(--amber); }

.btn-phone { padding: 12px 20px; font-size: 14px; gap: 9px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  flex: none;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px; height: 2px;
  background: var(--switchboard);
  content: "";
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after  { position: absolute; top: 6px; }

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

.hero {
  position: relative;
  color: #FFFFFF;
  background-color: var(--switchboard);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center, 75% center;
  background-image:
    linear-gradient(100deg, rgba(22,25,29,.93) 0%, rgba(22,25,29,.82) 38%, rgba(22,25,29,.55) 68%, rgba(22,25,29,.34) 100%),
    url("assets/photos/hero.jpg");
}

.hero-inner {
  padding-top: 84px;
  padding-bottom: 96px;
}

.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 620px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border: 1px solid var(--dark-line-2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--on-dark-hi);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }

.hero h1 {
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--on-dark);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.fine-print { font-size: 14px; color: var(--muted); }

.landlords-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-img);
  object-fit: cover;
}
.landlords-photo { aspect-ratio: 5 / 4; }

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust { background: var(--amber); }
.trust-inner {
  padding-top: 22px;
  padding-bottom: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  justify-content: space-between;
}
.trust-inner span { font-size: 14px; font-weight: 700; color: var(--switchboard); }

/* --------------------------------------------------------------------------
   Shared section furniture
   -------------------------------------------------------------------------- */

.section { padding-top: 96px; padding-bottom: 96px; }
.section-area { padding-top: 88px; padding-bottom: 88px; }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }

.h2-lg {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 22ch;
}

.h2-md {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--switchboard);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.card-head { display: flex; align-items: center; gap: 14px; }
.card-head svg { flex: none; }
.card-head h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }

.card-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--plaster);
  font-size: 16px;
  color: var(--mid);
}
.card-list li:last-child { border-bottom: none; }

/* --------------------------------------------------------------------------
   For landlords
   -------------------------------------------------------------------------- */

.landlords { background: var(--plaster); }

.landlords-grid {
  padding-top: 96px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
  align-items: center;
}

.landlords-copy { display: flex; flex-direction: column; gap: 26px; }

.steps { display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 16px; }
.step-num { font-size: 13px; font-weight: 800; color: var(--amber); padding-top: 3px; flex: none; }
.step-title { font-size: 17px; font-weight: 700; margin-bottom: 5px; }
.step-body { font-size: 15.5px; line-height: 1.6; color: var(--conduit); }

/* --------------------------------------------------------------------------
   Service area
   -------------------------------------------------------------------------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: start;
}

.area-copy { display: flex; flex-direction: column; gap: 14px; }
.area-body { font-size: 16px; line-height: 1.65; color: var(--conduit); max-width: 42ch; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.chips li {
  border: 1px solid var(--line-2);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mid);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { background: var(--plaster); }

.faq-inner { padding-top: 88px; padding-bottom: 88px; }

.faq .section-head { margin-bottom: 32px; }

.faq-list {
  max-width: 780px;
  border-top: 1px solid var(--line-2);
}

.faq-list details { border-bottom: 1px solid var(--line-2); }

.faq-list summary {
  padding: 18px 0;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }

.faq-a {
  padding: 0 0 20px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--conduit);
  max-width: 62ch;
}

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

.contact { background: var(--switchboard); color: #FFFFFF; }

.contact-grid {
  padding-top: 92px;
  padding-bottom: 92px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 56px;
}

.contact-details { display: flex; flex-direction: column; gap: 30px; }

.detail-row {
  padding: 18px 0;
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.detail-row-last { border-bottom: 1px solid var(--dark-line); }

.details dt {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.details dd { margin: 0; }

.detail-value { font-size: 18px; font-weight: 600; color: #FFFFFF; }
.detail-value-lg { font-size: 21px; font-weight: 700; }
a.detail-value:hover { color: var(--amber); }

/* Form card */

.form-card {
  background: var(--surface-dark);
  border: 1px solid var(--dark-line);
  padding: 36px;
}

#enquiry-form { display: flex; flex-direction: column; gap: 18px; }

.form-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.field { display: flex; flex-direction: column; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 140px; }

input[type="text"],
input[type="tel"],
textarea {
  width: 100%;
  background: var(--switchboard);
  border: 1px solid var(--dark-line-2);
  border-radius: var(--radius);
  padding: 15px 16px;
  font-family: inherit;
  font-size: 15px;
  color: #FFFFFF;
  outline: none;
  transition: border-color 200ms ease;
}
textarea { resize: vertical; min-height: 110px; }

input::placeholder, textarea::placeholder { color: var(--muted-2); }

input:focus, textarea:focus { border-color: var(--amber); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--amber); }

input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--amber); }

.error {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
}
.error:not(:empty) { margin-top: 8px; }
.form-error:not(:empty) { margin-top: 0; }

.btn-submit { width: 100%; padding: 17px 24px; }
.btn-submit[disabled] { opacity: 0.7; cursor: default; }

.form-note { font-size: 13px; color: var(--muted-2); }

/* Honeypot: off-screen, not display:none (bots skip hidden fields) */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success { display: flex; flex-direction: column; gap: 12px; }
.success-title { font-size: 21px; font-weight: 700; color: #FFFFFF; letter-spacing: -0.02em; }
.success-body { font-size: 15.5px; line-height: 1.6; color: var(--on-dark); }
.success-body a { color: var(--amber); font-weight: 700; }

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

.site-footer { background: var(--footer); color: var(--muted); }

.footer-inner {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand span { font-size: 14px; font-weight: 600; color: var(--on-dark-hi); }
.footer-brand svg { flex: none; }
.footer-meta { font-size: 13px; }

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

@media (max-width: 860px) {
  .header-right { gap: 12px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
  }
  .nav:not(.is-open) { display: none; }
  .nav a {
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-child { border-bottom: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  .hero-inner { padding-top: 56px; padding-bottom: 56px; }
  .hero-copy { max-width: none; }
  .hero {
    background-position: center, 68% center;
    background-image:
      linear-gradient(rgba(22,25,29,.88), rgba(22,25,29,.88)),
      url("assets/photos/hero.jpg");
  }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .section-area { padding-top: 56px; padding-bottom: 56px; }
  .faq-inner { padding-top: 56px; padding-bottom: 56px; }
  .landlords-grid { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .contact-grid { padding-top: 56px; padding-bottom: 56px; gap: 40px; }

  .hero h1 { font-size: 38px; }
  .lead { font-size: 17px; }

  /* Stack hero buttons full-width; tap targets ≥44px */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }

  .section-head { margin-bottom: 40px; }
  .card { padding: 32px 24px; }
  .form-card { padding: 24px; }

  .btn-phone { padding: 12px 16px; }
  .logo-tagline { display: none; }
}

@media (max-width: 380px) {
  .btn-phone { font-size: 13px; padding: 12px 12px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .nav-toggle, .form-card, .skip-link { display: none; }
  body { color: #000; }
}
