.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: max(760px, 82vh);
  overflow: hidden;
  padding: 118px 0 126px;
  background-image: url("../images/hero-bg-dodge-charger-security-vehicle-manchester-nh-titan-protective-services.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000000;
  content: "";
  opacity: 0.4;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(760px, calc(100% - 48px));
  max-width: 760px;
  margin-right: auto;
  margin-left: clamp(24px, 10vw, 170px);
  text-align: left;
}

.eyebrow {
  margin: 0 0 20px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(3.2rem, 5.5vw, 5.75rem);
  line-height: 1.05;
}

.hero h1 span {
  display: block;
}

@media (min-width: 1101px) {
  .hero h1 span {
    white-space: nowrap;
  }
}

.hero-text {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.2rem, 1.6vw, 1.35rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 42px;
}

.hero-actions .button {
  min-height: 52px;
  padding: 15px 30px;
}

.hero-actions .button-secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.62);
}

.hero-actions .button-secondary:hover,
.hero-actions .button-secondary:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
}

.trusted-by {
  padding-block: clamp(44px, 3.5vw, 48px);
  background: #ffffff;
}

.trusted-by__inner {
  width: 100%;
  max-width: 1800px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 72px);
}

.trusted-by__title {
  margin: 0 0 30px;
  color: #172033;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 2.7vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.trusted-by__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  column-gap: clamp(28px, 4vw, 68px);
  row-gap: 24px;
  align-items: center;
}

.trusted-by__item {
  display: grid;
  align-items: center;
  justify-items: center;
  min-width: 0;
  min-height: 100px;
}

.trusted-by__logo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 100px;
  object-fit: cover;
}

.trusted-by__logo--comfort-inn {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.core-services {
  --core-services-image-height: clamp(320px, 28vw, 430px);
  --core-services-active-image-height: clamp(450px, 39vw, 590px);
  padding: 88px 0 92px;
  background: #ffffff;
}

.core-services__intro,
.core-services__grid {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(16px, 2.4vw, 42px);
}

.core-services__intro {
  text-align: left;
}

.core-services__intro h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 1.1;
}

.core-services__intro p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #455268;
  font-size: 1.08rem;
  line-height: 1.6;
}

.core-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(calc(var(--core-services-active-image-height) + 100px), auto);
  gap: clamp(20px, 2.2vw, 42px);
  align-items: start;
  margin-top: clamp(34px, 3vw, 46px);
}

.core-services__card {
  display: block;
  min-width: 0;
  color: #172033;
  outline: 0;
}

.core-services__media {
  width: 100%;
  height: var(--core-services-image-height);
  overflow: hidden;
  background: #dce8ef;
  transition: height 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.core-services__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.core-services__title-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 20px;
}

.core-services__card h3 {
  margin: 0;
  min-width: 0;
  color: #172033;
  font-size: clamp(1.15rem, 1.55vw, 1.4rem);
  line-height: 1.22;
  overflow-wrap: break-word;
}

.core-services__arrow {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-carmine);
  transition: background-color 180ms ease;
}

.core-services__arrow svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform-origin: center;
  transform-box: fill-box;
  transition: transform 180ms ease;
}

.core-services__card:focus-visible .core-services__arrow {
  background-color: #228B22;
}

.core-services__card:focus-visible .core-services__arrow svg {
  transform: rotate(45deg);
}

.core-services__card:focus-visible .core-services__media {
  outline: 4px solid var(--color-carmine);
  outline-offset: 4px;
}

.core-services__card:focus-visible h3 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .core-services__card:hover .core-services__arrow {
    background-color: #228B22;
  }

  .core-services__card:hover .core-services__arrow svg {
    transform: rotate(45deg);
  }

  .core-services__card.is-active .core-services__media {
    height: var(--core-services-active-image-height);
  }
}

.about-highlight {
  padding: 84px 0;
  background: #ffffff;
}

.about-highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: center;
}

.about-highlight-media {
  min-height: 420px;
  background: #36454F;
  overflow: hidden;
}

.about-highlight-media img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.about-highlight-content {
  max-width: 560px;
}

.about-highlight-content h2 {
  margin: 0;
  color: #172033;
  font-size: 2.5rem;
  line-height: 1.12;
}

.about-highlight-content p {
  margin: 22px 0 0;
  color: #36454F;
  font-size: 1.08rem;
  line-height: 1.65;
}

.about-highlight-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 30px;
  padding: 14px 28px;
  border: 2px solid rgb(95, 158, 160);
  border-radius: 999px;
  color: #000000;
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, outline-color 160ms ease;
}

.about-highlight-link:hover,
.about-highlight-link:focus {
  color: #ffffff;
  background: rgb(95, 158, 160);
  border-color: rgb(95, 158, 160);
}

.about-highlight-link:focus {
  outline: 3px solid rgba(95, 158, 160, 0.28);
  outline-offset: 3px;
}

.home-testimonials {
  padding: clamp(72px, 8vw, 130px) clamp(20px, 4vw, 72px);
  background: #d4d4d4;
}

.home-testimonials__inner {
  width: min(100%, 1700px);
  margin: 0 auto;
}

.home-testimonials__title {
  margin: 0 0 clamp(30px, 4vw, 52px);
  color: #172033;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  text-align: center;
}

.home-testimonials__panel {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(390px, 32vw, 520px);
  padding: clamp(60px, 7vw, 110px) clamp(72px, 10vw, 190px) clamp(76px, 8vw, 125px);
  overflow: hidden;
  background: #ffffff;
}

.home-testimonials__content {
  width: min(100%, 980px);
  min-height: 210px;
  margin: 0 auto;
  padding-left: clamp(22px, 2.5vw, 38px);
  border-left: 5px solid #8ccde8;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 110ms ease, transform 110ms ease;
}

.home-testimonials__content.is-transitioning {
  opacity: 0;
  transform: translateX(8px);
}

.home-testimonials__quote,
.home-testimonials__quote p {
  margin: 0;
}

.home-testimonials__quote {
  color: #263247;
  font-family: var(--font-body);
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.55;
  text-align: left;
}

.home-testimonials__attribution {
  margin-top: clamp(26px, 3vw, 38px);
  color: #172033;
  font-family: var(--font-body);
  text-align: left;
}

.home-testimonials__name,
.home-testimonials__company {
  margin: 0;
  font-family: var(--font-body);
}

.home-testimonials__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-testimonials__company {
  margin-top: 3px;
  color: #536074;
  font-size: 0.95rem;
  line-height: 1.4;
}

.home-testimonials__control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid #2f3747;
  border-radius: 50%;
  color: #172033;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 160ms ease, background-color 160ms ease, opacity 180ms ease, border-color 160ms ease;
}

.home-testimonials__control:disabled {
  cursor: default;
}

.home-testimonials__control--previous {
  left: clamp(14px, 2.5vw, 42px);
}

.home-testimonials__control--next {
  right: clamp(14px, 2.5vw, 42px);
}

.home-testimonials__control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.home-testimonials__control:not(:disabled):hover {
  color: #ffffff;
  background: #172033;
  border-color: #172033;
}

.home-testimonials__control:focus-visible {
  color: #ffffff;
  background: #172033;
  border-color: #172033;
  outline: 3px solid rgba(215, 0, 64, 0.32);
  outline-offset: 4px;
}

.home-testimonials__indicators {
  position: absolute;
  bottom: clamp(28px, 3.5vw, 48px);
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transform: translateX(-50%);
}

.home-testimonials__indicator {
  display: block;
  width: 8px;
  height: 8px;
  border: 1px solid #7b8492;
  border-radius: 50%;
  background: transparent;
}

.home-testimonials__indicator.is-active {
  border-color: #172033;
  background: #172033;
}

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

@media (hover: hover) and (pointer: fine) {
  .home-testimonials__control {
    opacity: 0;
    pointer-events: none;
  }

  .home-testimonials__panel:hover .home-testimonials__control,
  .home-testimonials__panel:focus-within .home-testimonials__control {
    opacity: 1;
    pointer-events: auto;
  }
}

.final-cta {
  padding: 72px 0;
  background: #172033;
}

.final-cta-inner {
  max-width: 760px;
  text-align: center;
}

.final-cta h2 {
  margin: 0;
  color: #ffffff;
  font-size: 2.25rem;
  line-height: 1.15;
}

.final-cta p {
  margin: 18px auto 0;
  max-width: 660px;
  color: #dce3ee;
  font-size: 1.05rem;
  line-height: 1.65;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.final-cta .button-secondary {
  color: #ffffff;
  background: transparent;
  border-color: #ffffff;
}

.final-cta .button-secondary:hover,
.final-cta .button-secondary:focus {
  color: #ffffff;
  background: #b90036;
  border-color: #b90036;
}

.careers-section {
  padding: 78px 0;
  background: #eef3f8;
}

.careers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.careers-media {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  border-radius: 32px;
  background: #36454F;
  overflow: hidden;
}

.careers-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-content {
  max-width: 560px;
}

.careers-content h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
}

.careers-accent {
  display: block;
  width: 92px;
  height: 4px;
  margin: 18px 0 32px;
  background: var(--color-carmine);
}

.careers-content p {
  margin: 0;
  max-width: 620px;
  color: #384255;
  font-size: 1.05rem;
  line-height: 1.7;
}

.careers-content .button {
  position: relative;
  margin-top: 30px;
  gap: 0;
}

.careers-content .button::after {
  content: "→";
  display: inline-block;
  width: 0;
  margin-left: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(-4px);
  transition: opacity 160ms ease, transform 160ms ease, width 160ms ease, margin-left 160ms ease;
}

.careers-content .button:hover::after,
.careers-content .button:focus::after {
  width: 1em;
  margin-left: 16px;
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 1100px) {
  .trusted-by__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .trusted-by__item:nth-last-child(2) {
    grid-column: 2;
  }

  .trusted-by__item:last-child {
    grid-column: 3;
  }
}

@media (max-width: 900px) {
  .hero-content {
    width: min(680px, calc(100% - 48px));
    margin-left: 24px;
  }

  .trusted-by__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .trusted-by__item:nth-last-child(2) {
    grid-column: auto;
  }

  .trusted-by__item:last-child {
    grid-column: 2;
  }

  .core-services {
    --core-services-image-height: clamp(250px, 35vw, 320px);
    --core-services-active-image-height: clamp(340px, 46vw, 410px);
  }

  .core-services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }

  .about-highlight-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-highlight-media {
    min-height: 320px;
  }

  .about-highlight-media img {
    height: 320px;
  }

  .about-highlight-content {
    max-width: 720px;
  }

  .careers-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .careers-content {
    max-width: 720px;
  }
}

@media (max-width: 699px) {
  .hero {
    min-height: 560px;
    padding: 72px 0 76px;
    background-position: 69% center;
  }

  .hero-content {
    width: min(560px, calc(100% - 32px));
    margin-left: auto;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 0.8rem;
  }

  .hero h1 {
    max-width: 9.5em;
    font-size: clamp(1.95rem, 8.2vw, 2.35rem);
    line-height: 1.08;
    overflow-wrap: break-word;
  }

  .hero-text {
    max-width: min(100%, 19rem);
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .hero-actions .button {
    align-self: flex-start;
    width: min(100%, 320px);
    max-width: 100%;
    min-height: 48px;
    padding: 13px 22px;
  }

  .trusted-by {
    padding-block: 42px;
  }

  .trusted-by__inner {
    padding-inline: 20px;
  }

  .trusted-by__title {
    margin-bottom: 32px;
    font-size: 2rem;
  }

  .trusted-by__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }

  .trusted-by__item {
    min-height: 72px;
  }

  .trusted-by__item:last-child {
    grid-column: auto;
  }

  .trusted-by__logo {
    max-width: 155px;
    height: 72px;
  }

  .trusted-by__logo--comfort-inn {
    width: 72px;
    height: 72px;
  }

  .core-services {
    --core-services-image-height: clamp(280px, 92vw, 390px);
    padding: 52px 0 58px;
  }

  .core-services__intro h2 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .core-services__intro p {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .core-services__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 34px;
    margin-top: 30px;
  }

  .core-services__card.is-active .core-services__media {
    height: var(--core-services-image-height);
  }

  .core-services__title-row {
    margin-top: 16px;
  }

  .core-services__card h3 {
    font-size: 1.25rem;
  }

  .core-services__arrow {
    width: 40px;
    height: 40px;
  }

  .about-highlight {
    padding: 40px 12px;
  }

  .about-highlight-grid {
    gap: 24px;
  }

  .about-highlight-media {
    min-height: 240px;
  }

  .about-highlight-media img {
    height: 240px;
  }

  .about-highlight-content h2 {
    font-size: 1.42rem;
    line-height: 1.25;
  }

  .about-highlight-content p {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .about-highlight-link {
    min-height: 44px;
    margin-top: 22px;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .home-testimonials {
    padding: 56px 20px;
  }

  .home-testimonials__title {
    margin-bottom: 26px;
    font-size: clamp(1.8rem, 9vw, 2.3rem);
  }

  .home-testimonials__panel {
    flex-direction: column;
    justify-content: center;
    min-height: 390px;
    padding: 40px 24px 28px;
  }

  .home-testimonials__content {
    min-height: 250px;
    padding-left: 18px;
    border-left-width: 4px;
  }

  .home-testimonials__quote {
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-testimonials__navigation {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 16px;
    align-items: center;
    width: min(100%, 300px);
    margin: 28px auto 0;
  }

  .home-testimonials__control,
  .home-testimonials__indicators {
    position: static;
    transform: none;
  }

  .home-testimonials__control {
    width: 44px;
    height: 44px;
    opacity: 1;
    pointer-events: auto;
  }

  .home-testimonials__indicators {
    gap: 8px;
  }

  .final-cta {
    padding: 42px 12px;
  }

  .final-cta h2 {
    font-size: 1.45rem;
    line-height: 1.2;
  }

  .final-cta p {
    margin-top: 12px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .final-cta-actions {
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
  }

  .final-cta-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .careers-section {
    padding: 42px 12px;
  }

  .careers-grid {
    gap: 28px;
  }

  .careers-media {
    min-height: 240px;
    border-radius: 24px;
  }

  .careers-content h2 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .careers-accent {
    width: 84px;
    height: 4px;
    margin: 14px 0 24px;
  }

  .careers-content p {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .careers-content .button {
    width: 100%;
    margin-top: 24px;
  }
}

@media (max-width: 479px) {
  .about-highlight {
    padding: 36px 10px;
  }

  .about-highlight-media {
    min-height: 210px;
  }

  .about-highlight-media img {
    height: 210px;
  }

  .final-cta {
    padding: 38px 10px;
  }

  .final-cta h2 {
    font-size: 1.28rem;
  }

  .final-cta p {
    font-size: 0.84rem;
  }

  .careers-section {
    padding: 36px 10px;
  }

  .careers-media {
    min-height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .core-services__media {
    transition: none;
  }

  .core-services__arrow,
  .core-services__arrow svg {
    transition: none;
  }

  .home-testimonials__content,
  .home-testimonials__control {
    transition: none;
  }

}
