/* ------------------------------
   BASE STYLES
------------------------------ */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0A1F3D;
  line-height: 1.6;
}

/* ------------------------------
   HEADER
------------------------------ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #0A1F3D;
  border-bottom: 2px solid #00AEEF;
  flex-wrap: wrap;
}

.logo img {
  height: 48px;
  width: auto;
  vertical-align: middle;
}

.logo h1 {
  font-size: 1.8rem;
  margin: 0;
  color: #ffffff;
}

/* NAVIGATION */
nav {
  position: relative;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.8rem;
  display: none;
  cursor: pointer;
  color: #ffffff;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.menu li a:hover {
  color: #00AEEF;
}

/* ------------------------------
   HERO SECTION
------------------------------ */
.hero {
  display: flex;
  justify-content: center;
  padding: 4rem 2rem;
  background: #0A1F3D;
  text-align: center;
  color: #ffffff;
}

.hero-content {
  width: 90%;
  max-width: 900px;
}

/* Desktop H1 — smaller so it fits on one line */
.hero-content h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

/* Default: spans inline for single-line desktop layout */
.hero-content h1 span {
  display: inline;
}

.hero-content p {
  font-size: 1.0rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

/* Mobile: stack each phrase + left-align */
@media (max-width: 600px) {
  .hero {
    text-align: left; /* override center for mobile */
  }

  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content h1 span {
    display: block; /* each sentence on its own line */
    text-align: left; /* ensure left alignment */
  }

  .hero-content p {
    text-align: left;
  }
}


/* ------------------------------
   BUTTONS
------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: 0.2s ease;
  box-sizing: border-box; /* ensures consistent width calc */
}

.btn.primary {
  background: #00AEEF;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease;
  box-sizing: border-box; /* ensures consistent width calc */
}

.btn.primary:hover {
  background: #33C6FF;
}

.btn.outline {
  border: 2px solid #0A1F3D;
  color: #0A1F3D;
  background: transparent;
}

.btn.outline:hover {
  background: #E6F7FF;
}


/* ------------------------------
   LEAD FORM
------------------------------ */
.lead-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.input-field {
  width: 280px;
  padding: 0.75rem 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box; /* FIX: prevents overflow */
}

.input-field:focus {
  border-color: #00AEEF;
  box-shadow: 0 0 0 2px rgba(0, 174, 239, 0.2);
  outline: none;
}

.form-success {
  margin-top: 1rem;
  font-weight: bold;
  text-align: center;
}


/* ------------------------------
   MOBILE FIX: full-width stacked form
------------------------------ */
@media (max-width: 600px) {
  .lead-form {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .input-field,
  .btn.primary {
    width: 100% !important;
    display: block;
    box-sizing: border-box; /* ensures exact same width */
  }
}

/* ------------------------------
   BENEFITS / SERVICES
------------------------------ */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 2rem;
  background: #F4F7FA;
}

.benefit-card {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.benefit-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0A1F3D;
}

.benefit-card p {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.benefit-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .benefits {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------
   CASE STUDIES
------------------------------ */
#customers {
  padding: 3rem 2rem;
  background: #ffffff;
  text-align: center;
}

#customers h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #0A1F3D;
}

/* Featured Case Study Cards */
.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;                 /* ensures spacing between cards */
  width: 100%;               /* prevents collapsing */
  max-width: 1200px;         /* keeps layout centered */
  margin: 0 auto;            /* centers the grid */
}

/* Card container */
.customer-case {
  background: #ffffff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  width: 100%;               /* ensures card fits grid cell */
  height: 100%;
  box-sizing: border-box;
}

.customer-case img {
  height: 80px;          /* FIXED HEIGHT for perfect alignment */
  width: auto;           /* keep proportions */
  object-fit: contain;   /* prevents distortion */
  margin-bottom: 1rem;

  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.customer-case img:hover {
  filter: grayscale(0%);
}

/* Description aligned across cards */
.customer-case p {
  min-height: 48px;
  margin-bottom: 1rem;
  color: #333;
}

/* Button pinned to bottom */
.customer-case .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* ------------------------------
   LOGO WALL
------------------------------ */
.logo-wall {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
  opacity: 0.9;
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.logo-wall img {
  max-width: 120px;
  max-height: 50px;
  object-fit: contain;

  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.logo-wall img:hover {
  filter: grayscale(0%);
}

.logo-wall-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ------------------------------
   FOOTER
------------------------------ */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #0A1F3D;
  color: #ffffff;
}

.footer-links a {
  color: #00AEEF;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {
  .benefits {
    grid-template-columns: 1fr;
  }

  .menu {
    display: none;
    flex-direction: column;
    background: #0A1F3D;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 1rem;
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
