/*
 * Detailed service pages and mobile Services flyout patch.
 * Load this file after style.css and professional.css.
 */

.service-detail-hero {
  position: relative;
  overflow: hidden;
}

.service-detail-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: -8%;
  width: 42%;
  height: 100%;
  background: linear-gradient(135deg,transparent 40%,rgba(169,79,67,.22) 40%);
  pointer-events: none;
}

.service-detail-hero .container {
  position: relative;
  z-index: 1;
}

.service-breadcrumbs {
  display: block;
  position: static;
  top: auto;
  right: auto;
  left: auto;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}

.service-breadcrumbs .container {
  display: flex;
  gap: 9px;
  align-items: center;
}

.service-breadcrumbs a {
  padding: 0;
  color: var(--red);
  text-decoration: none;
}

.service-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.service-copy h2,
.service-gallery-section h2,
.service-faq-section h2 {
  margin-bottom: 24px;
}

.service-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.service-phone {
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.service-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
}

.service-photo img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform .35s ease;
}

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

.service-photo-featured img {
  height: 520px;
}

.photo-credit {
  position: absolute;
  right: 8px;
  bottom: 7px;
  padding: 2px 5px;
  color: #fff;
  background: rgba(20,35,43,.55);
  font-size: 8px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .15px;
  pointer-events: none;
}

.service-topics-section {
  background: var(--paper);
}

.service-topic-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.service-topic-card {
  padding: 30px;
  border-top: 4px solid var(--red);
  background: #fff;
}

.service-topic-card small {
  color: var(--red);
  font-family: Oswald,Arial,sans-serif;
  font-size: 22px;
}

.service-topic-card h3 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-family: Oswald,Arial,sans-serif;
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
}

.service-topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-gallery-section {
  background: #fff;
}

.service-photo-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
  margin-top: 30px;
}

.service-faq-section {
  background: var(--paper);
}

.service-related {
  padding: 60px 0;
  background: var(--navy);
}

.service-related .eyebrow {
  color: #fff;
}

.service-related-links {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.service-related-links a {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 17px 19px;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  text-decoration: none;
}

.service-related-links a:hover {
  border-color: var(--red);
  background: rgba(255,255,255,.06);
}

.service-related-links b {
  color: var(--red);
}

.flyout .emergency-service b {
  color: var(--red);
}

@media (max-width:900px) {
  /*
   * This explicit state overrides the sticky :hover rule that can hide the
   * submenu on touchscreens after the arrow button has been tapped.
   */
  .has-flyout.flyout-open .flyout {
    display: block !important;
  }

  .has-flyout:not(.flyout-open) .flyout {
    display: none;
  }

  .flyout-toggle {
    min-width: 48px;
    min-height: 48px;
  }

  .service-overview-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .service-photo-featured img {
    height: 440px;
  }

  .service-topic-grid,
  .service-photo-grid,
  .service-related-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:560px) {
  .service-detail-hero::after {
    width: 70%;
    opacity: .6;
  }

  .service-topic-grid,
  .service-photo-grid,
  .service-related-links {
    grid-template-columns: 1fr;
  }

  .service-photo img,
  .service-photo-featured img {
    height: 300px;
  }

  .service-topic-card {
    padding: 24px;
  }

  .service-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion:reduce) {
  .service-photo img {
    transition: none;
  }
}
