/* ========== Base Reset & Layout ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Open Sans', sans-serif;
  background: #f9fafb;
  color: #1f2937;
  line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
nav a,
.btn {
  font-family: 'Poppins', sans-serif;
}

header,
section,
footer {
  padding: 4rem 2rem;
  text-align: center;
}

/* Shared section title style (use on H2s you want identical) */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1967B2;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Make sure card H2 with section-title doesn’t get overridden */
.card h2.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1967B2;
  margin-bottom: 1rem;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

/* Navigation */
nav a {
  margin: 0 1rem;
  color: #1f2937;
  text-decoration: none;
  font-weight: 400;
}

nav a:hover {
  color: #ea580c;
}

/* ========== Hero Section ========== */
.hero {
  background: linear-gradient(to right, #103c66, #1967B2);
  padding: 6rem 2rem;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero p {
  font-size: 1.25rem;
  color: #e0f2fe;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* Buttons */
.btn {
  background: #f97316;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* ========== Cards & Features Grid ========== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.card {
  background: #f1f5f9;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  border-left: none;
}

/* Default card heading for smaller titles (h3) */
.card h3 {
  color: #1e3a8a;
  margin-bottom: 0.5rem;
  font-weight: 400;
}

.card p {
  font-weight: 400;
}

/* Footer */
footer p,
footer a {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 400;
}

footer a {
  text-decoration: underline;
  color: #103c66;
}

/* Logo */
.logo-img {
  width: auto;
  height: 40px;
  margin-bottom: 1rem;
}

/* Responsive */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero p {
    font-size: 1.5rem;
  }
}

/* ============================================
   Service Text Links (Inline Links in Cards)
   ============================================ */

.link-service {
  color: #1967B2;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.link-service:hover {
  color: #0f2e52; /* darker brand blue */
  text-decoration-thickness: 2px; /* subtle premium hover emphasis */
}

/* Legacy key-capabilities section (if still used) */
.key-capabilities {
  text-align: center;
  padding: 2rem 1rem;
}

.key-capabilities h2 {
  color: #1967B2;
  margin: 2rem 0 1rem;
  font-weight: 600;
}

.key-capabilities ul {
  list-style: disc;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 1.5rem;
  text-align: left;
}

.key-capabilities li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

/* List formatting inside cards */
.card ul,
.card ol {
  text-align: left;
  margin-top: 0.75rem;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.card li {
  margin-bottom: 0.5rem;
}

/* Optional: narrower layout variant for two-card sections */
.features.features-two {
  max-width: 1000px;
  margin: 0 auto;
}
