/*
Theme Name: Longroad Security
Theme URI: https://www.longroadsecurity.ca/
Author: Longroad Security
Description: A focused, responsive WordPress theme for Longroad Security.
Version: 1.0.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: longroad-security
*/

:root {
  --ink: #090909;
  --ink-soft: #141414;
  --panel: #1b1b1b;
  --paper: #f5f5f3;
  --white: #ffffff;
  --muted: #a9a9a9;
  --line: rgba(255, 255, 255, 0.14);
  --red: #e01d25;
  --red-dark: #b61118;
  --content: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0));
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled,
.site-header.menu-active {
  border-bottom-color: var(--line);
  background: rgba(9, 9, 9, 0.97);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand img {
  width: 40px;
  height: 46px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-name {
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 800;
  letter-spacing: 0.07em;
}

.brand-location {
  margin-top: 6px;
  color: #bdbdbd;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.primary-nav a {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-nav a:not(.header-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--red);
  transition: right 180ms ease;
}

.primary-nav a:not(.header-cta):hover::after,
.primary-nav a:not(.header-cta):focus-visible::after {
  right: 0;
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 2px;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.085em;
  line-height: 1.1;
  padding: 14px 22px;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.header-cta {
  min-height: 42px;
  padding: 12px 17px;
}

.header-cta:hover,
.header-cta:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 21px;
  height: 2px;
  background: currentColor;
}

.menu-lines {
  position: relative;
}

.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }

.hero {
  position: relative;
  min-height: 830px;
  height: min(92vh, 960px);
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  background: #050505 url("assets/images/hero.jpg") center 42% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.68) 47%, rgba(0, 0, 0, 0.18) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, transparent 45%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22%;
  bottom: 22%;
  left: 0;
  width: 5px;
  background: var(--red);
}

.hero-content {
  width: min(760px, 71%);
  padding-top: 76px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 20px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 31px;
  height: 2px;
  background: currentColor;
}

.hero h1,
.display-heading,
.section-heading {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  font-size: clamp(4.4rem, 9vw, 8.6rem);
}

.hero-lede {
  max-width: 610px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.02rem, 1.7vw, 1.24rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-trust {
  position: absolute;
  inset: auto 0 0;
  border-top: 1px solid var(--line);
  background: rgba(6, 6, 6, 0.74);
  backdrop-filter: blur(7px);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 28px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child {
  border-left: 1px solid var(--line);
}

.trust-number {
  color: var(--white);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.trust-label {
  color: #bdbdbd;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section {
  padding: 112px 0;
}

.section-light {
  background: var(--paper);
  color: var(--ink);
}

.section-dark {
  background: var(--ink-soft);
}

.section-black {
  background: var(--ink);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  align-items: end;
  gap: 80px;
  margin-bottom: 48px;
}

.section-heading {
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.section-copy {
  max-width: 640px;
  margin: 0;
  color: #5d5d5d;
  font-size: 1.03rem;
}

.section-dark .section-copy,
.section-black .section-copy {
  color: #b5b5b5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  overflow: hidden;
  background: #181818;
}

.service-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.service-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.22) 68%);
}

.service-card:hover img {
  transform: scale(1.025);
}

.service-card-content {
  width: 100%;
  padding: 31px;
  border-top: 3px solid var(--red);
}

.service-card-number {
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.service-card h3 {
  margin: 9px 0 9px;
  color: var(--white);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2.15rem;
  line-height: 1;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: #c5c5c5;
  font-size: 0.91rem;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(54px, 7vw, 100px);
}

.split-media {
  position: relative;
}

.split-media::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -18px;
  right: -18px;
  width: 94px;
  height: 94px;
  border-top: 4px solid var(--red);
  border-right: 4px solid var(--red);
}

.split-media img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
}

.split-content .section-heading {
  margin-bottom: 25px;
}

.split-content p {
  margin: 0 0 18px;
  color: #b7b7b7;
}

.split-content .button {
  margin-top: 13px;
}

.care-section {
  position: relative;
  overflow: hidden;
}

.care-section::after {
  content: "LRS";
  position: absolute;
  right: -0.06em;
  bottom: -0.28em;
  color: rgba(255, 255, 255, 0.025);
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 21rem;
  font-weight: 800;
  line-height: 1;
}

.care-image {
  padding: 12%;
  background: var(--white);
}

.care-image img {
  aspect-ratio: 1.25 / 1;
  object-fit: contain;
}

.about-media img {
  filter: saturate(0.78) contrast(1.04);
}

.about-list {
  display: grid;
  gap: 0;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d3d3d0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #d3d3d0;
  font-size: 0.88rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red);
}

.section-light .split-content p {
  color: #5c5c5c;
}

.partnership {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #070707;
}

.partnership::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.78) 52%, rgba(0, 0, 0, 0.45) 100%),
    url("assets/images/mh100-partnership.jpeg") 88% center / min(48vw, 720px) auto no-repeat;
}

.partnership-content {
  max-width: 670px;
}

.partnership-mark {
  width: 130px;
  margin-bottom: 30px;
  border: 1px solid var(--line);
}

.partnership .section-heading {
  margin-bottom: 26px;
}

.partnership p {
  margin: 0 0 18px;
  color: #c0c0c0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(440px, 1.24fr);
  gap: 74px;
  align-items: start;
}

.contact-copy .section-heading {
  margin-bottom: 23px;
}

.contact-copy > p {
  max-width: 470px;
  color: #b5b5b5;
}

.contact-details {
  display: grid;
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}

.contact-line {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 16px;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.contact-label {
  color: var(--red);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-value,
.contact-value a {
  color: var(--white);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.contact-value a:hover,
.contact-value a:focus-visible {
  color: var(--red);
}

.quote-form-wrap {
  border-top: 4px solid var(--red);
  background: var(--paper);
  color: var(--ink);
  padding: clamp(28px, 4vw, 50px);
}

.quote-form-wrap h3 {
  margin: 0 0 26px;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: 2.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #4f4f4f;
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #ccccca;
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color 150ms ease;
}

.form-field textarea {
  min-height: 126px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--red);
}

.form-submit {
  margin-top: 4px;
}

.form-notice {
  margin: 0 0 22px;
  border-left: 4px solid #278443;
  background: #e8f5ec;
  color: #18592d;
  padding: 13px 15px;
  font-weight: 650;
}

.form-notice-error {
  border-color: var(--red);
  background: #fbe9ea;
  color: #8a151b;
}

.form-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.careers-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.careers-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.careers-inner h2 {
  margin: 0;
  font-family: "Barlow Condensed", Arial, sans-serif;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  line-height: 1;
  text-transform: uppercase;
}

.careers-inner p {
  margin: 8px 0 0;
  color: #b8b8b8;
}

.site-footer {
  padding: 38px 0;
  background: #050505;
  color: #929292;
  font-size: 0.78rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-shell {
    width: min(var(--content), calc(100% - 36px));
  }

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

  .primary-nav {
    position: absolute;
    top: 81px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(9, 9, 9, 0.99);
    padding: 12px 18px 20px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px 10px;
  }

  .primary-nav a:not(.header-cta)::after {
    display: none;
  }

  .header-cta {
    margin-top: 8px;
  }

  .hero-content {
    width: min(760px, 88%);
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item {
    min-height: 90px;
    border-bottom: 1px solid var(--line);
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .service-card:last-child {
    grid-column: 1 / -1;
    min-height: 420px;
  }

  .split {
    gap: 46px;
  }

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

  .contact-copy > p {
    max-width: 640px;
  }
}

@media (max-width: 700px) {
  .site-shell {
    width: min(var(--content), calc(100% - 28px));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand img {
    width: 33px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.14rem;
  }

  .brand-location {
    display: none;
  }

  .primary-nav {
    top: 73px;
  }

  .hero {
    min-height: 820px;
    height: auto;
    align-items: flex-start;
    padding-top: 175px;
    background-position: 66% center;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.91) 0%, rgba(0, 0, 0, 0.72) 70%, rgba(0, 0, 0, 0.52) 100%),
      linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, transparent 52%);
  }

  .hero-content {
    width: 100%;
    padding-top: 0;
    padding-bottom: 330px;
  }

  .hero h1 {
    font-size: clamp(4.1rem, 21vw, 6.4rem);
  }

  .hero-lede {
    font-size: 0.98rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-trust {
    position: absolute;
  }

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

  .trust-item {
    min-height: 105px;
    display: grid;
    gap: 4px;
    align-content: center;
    padding: 16px;
  }

  .trust-item:nth-child(odd) {
    border-left: 0;
  }

  .trust-number {
    font-size: 2rem;
  }

  .section {
    padding: 78px 0;
  }

  .section-heading {
    font-size: clamp(2.9rem, 15vw, 4.3rem);
  }

  .services-grid,
  .split,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:last-child {
    min-height: 440px;
    grid-column: auto;
  }

  .split-media {
    order: -1;
  }

  .split-media::before {
    top: -11px;
    right: -7px;
    width: 68px;
    height: 68px;
  }

  .care-section::after {
    display: none;
  }

  .partnership::before {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.78) 72%, rgba(0, 0, 0, 0.62) 100%),
      url("assets/images/mh100-partnership.jpeg") center 10% / 100% auto no-repeat;
  }

  .partnership-content {
    padding-top: 170px;
  }

  .contact-grid {
    gap: 46px;
  }

  .quote-form-wrap {
    margin-inline: -14px;
  }

  .form-field-full {
    grid-column: auto;
  }

  .contact-line {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .careers-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .careers-inner {
    padding-block: 28px;
  }
}

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