/* Basic site styles */
:root {
  --accent: #0b72b9;
  --muted: #666;
  --bg: #f8f9fb;
  --fade-duration: 800ms;
}
/* Scale site up by 5% */
html { font-size: 105%; }
* {
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color: #222;
  background: var(--bg);
}
.slide .overlay {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translate(-50%, 0);
  color: #fff;
  max-width: 48%;
  background: linear-gradient(180deg, rgba(0,0,0,0.62), rgba(0,0,0,0.46));
  padding: 18px 20px;
  border-radius: 12px;
  opacity: 0;
  will-change: transform, opacity;
  z-index: 3;
  text-shadow: 0 6px 18px rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.slide .overlay h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.05;
}
.slide .overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
}
.slide.active .overlay {
  animation: slideFadeIn 680ms cubic-bezier(.2,.8,.2,1) 0ms forwards;
}

@keyframes slideFadeIn {
  from { transform: translate(-50%, -8%); opacity: 0 }
  to   { transform: translate(-50%, 0); opacity: 1 }
}
  border-radius: 4px;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--accent);
  color: #fff;
}
.container {
  max-width: 1155px;
  margin: 29.4px auto;
  padding: 0 21px;
}
.hero {
  background: #fff;
  padding: 28px;
  border-radius: 6px;
  margin-bottom: 18px;
}
/* Mission section: place paragraph and image side-by-side */
.Mission .mission-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.Mission .mission-body p {
  flex: 1 1 60%;
  margin: 0;
}
.Mission .mission-body img {
  flex: 0 0 20%;
  width: 20%;
  max-width: 20%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  background: transparent;
  background-color: transparent;
}

/* Service page: place image to the right of the paragraph */
.service-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.service-body .service-text {
  flex: 1 1 60%;
}
.service-body .service-text p { margin: 0 0 12px 0; }
.service-body .service-image-wrap {
  flex: 0 0 30%;
  max-width: 30%;
}
.service-body .service-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* Construction page: image left, text right */
.construction-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.construction-body .construction-image-wrap {
  flex: 0 0 30%;
  max-width: 30%;
}
.construction-body .construction-image-wrap img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.construction-body .construction-text {
  flex: 1 1 70%;
}

/* Add subtle shadow to all images site-wide */
img {
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

/* list with image to the right inside construction text */
.list-image {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.list-image ul {
  flex: 1 1 60%;
  margin: 0;
  padding-left: 18px;
}
.list-image-right {
  flex: 0 0 35%;
  max-width: 35%;
}
.list-image-right img { width: 100%; height: auto; display: block; border-radius: 8px }

/* Fire sprinkler page: make image under paragraph one-third width of paragraph */
.below-paragraph img {
  width: 33.333%;
  height: auto;
  display: block;
  margin-top: 6px;
}

.fire-image .btn { display: inline-block; margin-top: 12px; }


/* Double line with soft shadow used after the Mission image */
.Mission .double-line {
  height: 20px;
  margin: 14px 0 24px;
  position: relative;
}
.Mission .double-line::before,
.Mission .double-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2.2px;
  background: linear-gradient(90deg, rgba(0,0,0,0.13), rgba(0,0,0,0.20));
  border-radius: 2px;
}
.Mission .double-line::before { top: 5px; box-shadow: 0 7px 15px rgba(0,0,0,0.09); }
.Mission .double-line::after { bottom: 5px; box-shadow: 0 9px 24px rgba(0,0,0,0.07); opacity:0.96 }
.features {
  display: flex;
  gap: 18px;
  align-items: stretch;
}
.features > article { flex: 1 1 0; min-width: 0; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
}
.site-footer {
  background: #fff;
  border-top: 1px solid #e6e6e6;
  padding: 16px;
  text-align: center;
  margin-top: 28px;
}
.contact-form {
  max-width: 480px;
  display: grid;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .features {
    grid-template-columns: 1fr;
  }
  .Mission .mission-body { flex-direction: column; }
  .Mission .mission-body img { max-height: 240px; width: 100%; }
  .service-body { flex-direction: column; }
  .service-body .service-image-wrap { max-width: 100%; }
  .construction-body { flex-direction: column; }
  .construction-body .construction-image-wrap { max-width: 100%; }
  .list-image { flex-direction: column; }
  .list-image-right { max-width: 100%; }
  .main-nav ul {
    flex-wrap: wrap;
  }
}

@media (max-width: 700px) {
  .below-paragraph img { width: 100%; }
}

/* Fire sprinkler: left image matches paragraph height */
.fire-row { display: flex; gap: 18px; align-items: stretch; }
.fire-row .fire-image { flex: 0 0 25%; max-width: 25%; display: flex; flex-direction: column; align-self: flex-end; }
.fire-row .fire-text { flex: 1 1 75%; }
.fire-row .fire-image img { width: 100%; height: auto; object-fit: cover; display: block; border-radius: 8px }

@media (max-width: 700px) {
  .fire-row { flex-direction: column; }
  .fire-row .fire-image { max-width: 100%; }
  .fire-row .fire-image img { height: auto; }
}

/* Slider styles */
.slider {
  position: relative;
  max-width: 1100px;
  margin: 18px auto;
  border-radius: 26px;
  overflow: hidden;
  background: #000;
  --slides-per-view: 1;
  box-shadow: 0 30px 100px rgba(0,0,0,0.28);
  -webkit-box-shadow: 0 30px 100px rgba(0,0,0,0.28);
}

.slider:hover {
  box-shadow: 0 40px 120px rgba(0,0,0,0.30);
}
.slides {
  position: relative;
  height: var(--slider-height, 320px);
}
.slide {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  /* start at 100% and allow a slow zoom when active */
  background-size: 100%;
  background-position: center;
  height: var(--slider-height, 320px);
}
.slide {
  opacity: 0;
  transition: opacity var(--fade-duration) ease-in-out;
}
.slide.active {
  opacity: 1;
  z-index: 2;
}

/* slow zoom animation for active slides */
@keyframes zoomIn {
  from { background-size: 100%; }
  to   { background-size: 120%; }
}
/* zoom once per slide: run for full slide interval and finish when image changes */
.slide.active {
  animation: zoomIn var(--zoom-duration, 8000ms) linear forwards;
}

/* overlay text that slides in from the left */
.slide .overlay h2 { margin: 0 0 6px; font-size: 24px }
.slide .overlay p { margin: 0; color: rgba(255,255,255,0.95) }
.slide.active .overlay { animation: slideInToCenter 700ms cubic-bezier(.2,.8,.2,1) 0ms forwards }

@keyframes slideInToCenter { from { transform: translate(-220%, -220%); opacity: 0 } to { transform: translate(-50%, 0); opacity: 1 } }
.slider .prev,
.slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border: none;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.slider .prev {
  left: 12px;
}
.slider .next {
  right: 12px;
}
.slider .prev:focus,
.slider .next:focus {
  outline: 2px solid var(--accent);
}
@media (max-width: 700px) {
  .slides,
  .slide {
    height: calc(var(--slider-height, 320px) * 0.6);
  }
}

/* enforce one slide at a time */
.slider {
  --slides-per-view: 1;
}

/* Indicators */
.slider .indicators {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
  display: flex;
  gap: 8px;
}
.slider .indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
}
.slider .indicators button.active {
  background: var(--accent);
}

/* Override/header layout: center large logo */
.site-header{display:flex;flex-direction:column;align-items:center;gap:8px;padding:56px 20px 12px}
.header-nav{width:100%;border-top:6px solid var(--accent);display:flex;justify-content:center;padding-top:12px}
/* On wide screens show the side-logo to the left of the main logo */
.brand{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
}
.brand .side-logo{height:auto;max-height:10vh;display:inline-block}
.brand .logo{width:60vw;max-width:1100px;height:auto;display:block;margin:0}
.brand .phone{margin-left:14px}
.main-nav ul{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: auto;
  max-width: 1100px;
}
.main-nav ul li{margin:0}
.main-nav a{display:block;padding:8px 12px;color:inherit;text-decoration:none;border-radius:4px;font-weight:700}
.main-nav a:hover,.main-nav a.active{background:var(--accent);color:#fff}

@media (max-width: 900px) {
  .features { flex-direction: column; }
}

@media (max-width: 700px) {
  .features { gap: 12px; }

@media (max-width:700px){
  /* stack on small screens */
  .brand{flex-direction:column;gap:8px}
  .brand .phone{margin-left:0;margin-top:6px}
  .brand .logo{width:80vw}
  .brand .side-logo{max-height:48px}
}

@media (max-width:700px){
  .header-nav{padding-top:8px}
}
