body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #263238;
  background-color: #f1f4f5;
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
}

/* Keep the page content between a full-height header and footer. */
header{
    color: white;
    background-color: #333333;
    text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: transform 0.25s ease;
}

header.header-hidden {
  transform: translateY(-100%);
}

header h1 {
  margin: 0;
  padding: 24px 0;
}

/* The header navigation fills the available width. */
header > ul {
  display: flex;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: #333333;
}

footer ul.footer {
  display: block;
  list-style-type: none;
  margin: 0;
  padding: 0;
  background-color: transparent;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: white;
  background-color: #333333;
}
header > ul li {
  flex: 1;
}

header > ul li a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

header > ul li a:hover {
  background-color: #111111;
}

footer ul.footer li {
  margin: 4px 0;
}

footer ul.footer a {
  display: inline;
  width: auto;
  padding: 0;
}
 .email
  {
  color: white;
  text-decoration: none;
}

main {
  flex: 1;
  width: min(100% - 40px, 1100px);
  margin: 0 auto;
  padding: 48px 0 64px;
}

main h1 {
  margin: 0 0 20px;
  color: #1f4e5f;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
}

main p {
  max-width: 780px;
  margin: 0;
  font-size: 1.05rem;
  white-space: pre-line;
}

/* Service slideshow container and slide layout. */
.services-page h1 {
  margin-bottom: 28px;
}

.service-slideshow {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 12px;
  background: #1f4e5f;
  box-shadow: 0 12px 30px rgba(31, 78, 95, 0.18);
}

.service-slide {
  display: none;
  min-height: 420px;
  color: white;
}

.service-slide.is-active {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  animation: service-slide-in 0.35s ease;
}

.service-slide img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.service-slide img.service-slide-logo {
  box-sizing: border-box;
  object-fit: contain;
  padding: 48px;
  background: white;
}

.service-slide-content {
  align-self: center;
  min-width: 0;
  padding: 48px;
}

.service-slide--summary .service-slide-content {
  padding: 32px;
}

.all-services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 20px;
  margin: 0;
  padding-left: 20px;
  color: #e6f0f2;
  font-size: 0.95rem;
  line-height: 1.4;
}

.service-slide-content h2 {
  margin: 8px 0 18px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
}

.service-slide-content p {
  color: #e6f0f2;
}

.service-slide-count {
  color: #a9d5dc;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Circular previous and next controls. */
.slideshow-button {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #1f4e5f;
  background: white;
  cursor: pointer;
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.slideshow-button:hover,
.slideshow-button:focus-visible {
  background: #a9d5dc;
}

.slideshow-previous {
  left: 18px;
}

.slideshow-next {
  right: 18px;
}

.slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

/* Small indicators below the slideshow. */
.slideshow-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7c5c8;
  cursor: pointer;
}

.slideshow-dot.is-active,
.slideshow-dot:hover,
.slideshow-dot:focus-visible {
  background: #1f4e5f;
}

/* Fade and slide each new service into view. */
@keyframes service-slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Stack the image and text on smaller screens. */
@media (max-width: 700px) {
  .service-slideshow,
  .service-slide {
    min-height: 540px;
  }

  .service-slide.is-active {
    grid-template-columns: 1fr;
    grid-template-rows: 220px 1fr;
  }

  .service-slide img {
    min-height: 220px;
  }

  .service-slide-content {
    padding: 28px 52px;
  }

  .service-slide--summary .service-slide-content {
    padding: 20px 52px 28px;
  }

  .all-services-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

footer {
  padding: 16px;
}

footer ul.footer {
  flex: 1;
}

.footer-logo {
  
  height: 144px;
}