/* L Moore Ltd — professional dark contractor site */
:root {
  --bg: #0c1624;
  --bg-elev: #132033;
  --bg-card: #17263a;
  --bg-card-hover: #1c2f47;
  --line: #24344c;
  --text: #e8eef6;
  --muted: #9aacc2;
  --accent: #2b6fd6;
  --accent-hover: #3d82ea;
  --accent-deep: #0a2888;
  --white: #ffffff;
  --focus: #7eb0ff;
  --radius: 6px;
  --max: 1120px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--white);
  padding: 0.5rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 22, 36, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-plate {
  background: var(--white);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
}

.logo-plate img {
  height: 44px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0.45rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
}

.nav-toggle[aria-expanded="true"] {
  background: var(--bg-card-hover);
  border-color: var(--accent);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.1rem;
  align-items: center;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--bg-card);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--bg-card);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ——— Main layout ——— */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  background: var(--bg-elev);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 22, 36, 0.45) 0%,
    rgba(12, 22, 36, 0.72) 45%,
    rgba(12, 22, 36, 0.94) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem 2.75rem;
  width: 100%;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--white);
  max-width: 18ch;
}

.standfirst {
  margin: 0;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.5;
}

.sectors {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.sectors li {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(43, 111, 214, 0.18);
  border: 1px solid rgba(43, 111, 214, 0.35);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

/* ——— Sections ——— */
.section {
  padding: 3rem 0;
}

.section-tight {
  padding: 2.25rem 0;
}

.section-alt {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-title {
  margin: 0 0 1.5rem;
  font-size: 1.35rem;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--white);
}

.clients-line {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

/* ——— Service cards ——— */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(43, 111, 214, 0.5);
  color: inherit;
  transform: translateY(-2px);
}

.service-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-card-body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.service-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--white);
}

.service-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

.service-card .card-link {
  margin-top: auto;
  padding-top: 0.65rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.service-card:hover .card-link {
  color: var(--accent-hover);
}

/* ——— Gallery ——— */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Contact bar ——— */
.contact-bar {
  background: linear-gradient(90deg, var(--accent-deep) 0%, var(--accent) 100%);
  color: var(--white);
}

.contact-bar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.5rem;
}

.contact-bar p {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-bar a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}

.contact-bar a:hover {
  border-bottom-color: var(--white);
  color: var(--white);
}

.contact-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: 2.5rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.page-body {
  max-width: 42rem;
}

.page-body p {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-body p:last-child { margin-bottom: 0; }

.page-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  padding-bottom: 2.5rem;
}

.page-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-card);
}

.page-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.page-contact {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
}

.page-contact a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.page-contact a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* ——— Contact page ——— */
.contact-details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  max-width: 28rem;
  margin-bottom: 3rem;
}

.contact-details dl {
  margin: 0;
}

.contact-details dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}

.contact-details dd {
  margin: 0 0 1.15rem;
  font-size: 1.1rem;
  color: var(--white);
}

.contact-details dd:last-child { margin-bottom: 0; }

.contact-details a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.address-block {
  font-style: normal;
  line-height: 1.5;
}

.company-meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Legal / privacy ——— */
.prose {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.prose p {
  color: var(--muted);
  margin: 0 0 1rem;
}

/* ——— Footer ——— */
.site-footer {
  background: #080e18;
  border-top: 1px solid var(--line);
  padding: 2rem 0 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-brand {
  margin: 0 0 0.5rem;
  font-weight: 650;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-contact {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}

.footer-contact a:hover { color: var(--accent-hover); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-hover); }

.footer-links a[aria-current="page"] {
  color: var(--text);
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .page-photo {
    order: -1;
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
  }

  .site-nav a {
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
  }

  .header-inner {
    position: relative;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 320px;
  }
}

@media (max-width: 520px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .logo-plate img {
    height: 38px;
  }

  .contact-bar-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .service-card { transition: none; }
}

.page-end-space { height: 3rem; }
