/* Base reset + body */
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #f3f4f3;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.75;
}

/* partners */
.trusted-partners {
  overflow: hidden;
  background-color: #f8f9fa;
}

.trusted-partners h2 {
  text-align: left;
  margin-bottom: 2rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.logo-carousel {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.logo-container {
  background-color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo-set {
  display: flex;
  gap: 2rem;
}

.logo-track {
  display: flex;
  gap: 2rem;
  animation: scroll 40s linear infinite;
  flex-shrink: 0;
  width: fit-content;
}

.logo-track img {
  height: 50px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.logo-track img:hover {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
  .logo-track:hover {
    animation-play-state: paused;
  }
}

@keyframes scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-100%); }
}

/* Layout container */
.container {
  max-width: 1320px;
  margin: 1rem auto;
  padding: 0 0.75rem;
}

.scroll-indicator {
  text-align: center;
  margin-top: 2rem;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.section-divider {
  border-top: 1px solid #d1d5db;
  margin: 4rem auto;
  max-width: 80%;
}

/* =========================
   Navbar
   ========================= */
.navbar {
  display: flex;
  flex-direction: column;           /* stack logo + nav */
  align-items: center;
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: relative;               /* for login positioning */
}

/* Centered nav under logo */
.nav-center {
  margin-top: 1rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.nav-center a {
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  color: #1f2937;
  transition: color 0.2s ease;
}

.nav-center a:hover {
  color: #0f4d37;
}

/* Brand / logo */
.brand {
  display: inline-block;
  line-height: 0;
}

.logo {
  max-width: 320px;
  max-height: 160px;
  height: auto;
  display: block;
  margin: 0 auto;   /* keeps logo centered */
}

.brand-text {
  font-weight: 700;
  font-size: 1rem;
  color: #1f2937;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Client Login pinned top-right */
.navbar .nav-cta {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
}

/* =========================
   Headings & text
   ========================= */
h1, h2 {
  font-weight: 600;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 2.5rem;
  margin: 2.5rem 0 1rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
}

h2::after {
  content: "";
  display: block;
  height: 2px;
  width: 32px;
  background-color: #0f4d37;
  margin-top: 6px;
}

section p {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.service-list {
  list-style-type: disc;
  margin-left: 1.25rem;
  line-height: 1.75;
  font-weight: 500;
}

ul { list-style-type: disc; padding-left: 1.25rem; margin: 1rem 0; }
li { margin-bottom: 0.5rem; }

/* =========================
   Hero
   ========================= */
.hero-with-background {
  position: relative;
  background: url('/DWS_Header.png') no-repeat center center;
  background-size: cover;
  padding: 6rem 1rem 4rem;
  text-align: left;
  color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.hero-with-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 29, 24, 0.61);
  z-index: 0;
}

.hero-with-background .hero {
  position: relative;
  z-index: 1;
  padding-top: 1rem;
  transform: translateY(-40px);
}

.hero-with-background .hero h1,
.hero-with-background .hero p { color: #ffffff; }

.hero {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Services grid */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.service-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-icon {
  width: 64px;
  height: auto;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-grid li:hover .service-icon { transform: scale(1.05); }

/* =========================
   CTA Buttons
   ========================= */
.cta-link,
.contact-form button[type="submit"] {
  display: inline-block;
  background-color: #0f4d37;
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}

.cta-link:hover,
.contact-form button[type="submit"]:hover { background-color: #0c3e2d; }

.cta-link:active,
.contact-form button[type="submit"]:active { transform: scale(0.98); }

/* Outline button style */
.nav-cta.nav-cta--outline {
  background: transparent;
  color: #0f4d37;
  border: 1px solid #0f4d37;
  box-shadow: none;
  padding: 0.35rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: 4px;
  margin: 0;
}

.nav-cta.nav-cta--outline:hover {
  background: #0f4d37;
  color: #ffffff;
}

/* =========================
   Footer
   ========================= */
.footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  font-size: 0.8rem;
  text-align: center;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
}

/* About layout */
.about-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text { flex: 1 1 60%; }

.about-image {
  flex: 1 1 40%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  width: 100%;
  font-family: inherit;
  background-color: #f9fafb;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #0f4d37;
  box-shadow: 0 0 0 1px #0f4d37;
}

/* Inline Code */
code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: 'Source Code Pro', monospace;
}

/* Animations */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
  animation-delay: var(--delay, 0.2s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
    margin: 1.5rem auto;
  }

  .logo {
    max-width: none !important;
    height: 140px !important;
    width: auto !important;
    margin: 0 auto;
  }

  .nav-center {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .navbar .nav-cta {
    top: 1rem;
    right: 1rem;
  }

  .nav-center a {
    font-size: 1rem;
    padding: 0.5rem;
  }

  .hero-with-background {
    padding: 5rem 1.25rem 3rem;
    background-position: center top;
    background-size: cover;
    border-radius: 12px;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
  }

  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 1rem; }
  .section-divider { max-width: 90%; }

  .about-flex {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .about-text {
    flex: 1 1 100%;
    max-width: 100%;
    text-align: left;
  }

  .cta-link,
  .contact-form button[type="submit"] {
    width: fit-content;
    max-width: 90%;
    display: block;
    margin: 0 auto;
    text-align: center;
  }

  .contact-form { padding: 0 1rem; }
}