/* ==============================
   Services — full redesign (centered & fullwidth)
   ============================== */

/* ---------- Top-level tokens (scoped to #services) ---------- */
#services {
    width: 100vw; /* ensure full viewport width */
    min-width: 100%; /* prevent horizontal scroll */
    box-sizing: border-box;
    --svc-bg-start: #0ea5a4;
    --svc-bg-mid: #2563eb;
    --svc-bg-end: #0b225e;
    --svc-surface: rgba(255,255,255,0.92);
    --svc-surface-strong: rgba(255,255,255,0.82);
    --svc-text: #0b1224;
    --svc-muted: #4b5966;
    --svc-accent: #075985;
    --svc-radius: 14px;
    --svc-gap: 1.25rem;
  
    padding-block: clamp(2.25rem, 4.5vw, 4rem);
    padding-inline: 0; /* remove inline padding to use inner container */
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--svc-text);
    position: relative;
    isolation: isolate;
    overflow: visible;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* full-bleed layered background */
    background:
      radial-gradient(1200px 600px at 5% 5%, rgba(255,255,255,0.06), transparent 40%),
      radial-gradient(900px 420px at 95% 10%, rgba(255,255,255,0.04), transparent 45%),
      linear-gradient(180deg, var(--svc-bg-start) 0%, var(--svc-bg-mid) 50%, var(--svc-bg-end) 100%);
    background-attachment: fixed;
  }
  
  /* ---------- Inner content container (constrained & centered) ---------- */
  #services .inner {
    max-width: 1200px;
    margin: 0 auto; /* center */
    background: linear-gradient(180deg, var(--svc-surface), var(--svc-surface-strong));
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
    border-radius: var(--svc-radius);
    box-shadow: 0 22px 46px rgba(3,10,18,0.12), inset 0 -2px 8px rgba(0,0,0,0.03);
    display: block;
    color: var(--svc-text);
    position: relative;
    overflow: clip;
  }
  
  /* Optional inner wrapper */
  #services .inner .content-wrap {
    background: transparent;
    padding: 0;
    border-radius: calc(var(--svc-radius) - 4px);
  }
  
  /* ---------- Header ---------- */
  #services .header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.6rem;
    text-align: center; /* center titles */
  }
  #services .section__title {
    font-size: clamp(1.5rem, 1.8vw, 2.1rem);
    margin: 0;
    font-weight: 800;
    color: #051424;
    letter-spacing: -0.01em;
  }
  #services .section__subtitle {
    margin: 0;
    color: var(--svc-muted);
    font-size: 1rem;
    line-height: 1.45;
  }
  
  /* ---------- Grid & layout ---------- */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: var(--svc-gap);
    margin-top: 1.1rem;
    justify-content: center; /* center the grid */
    align-items: start;
  }
  
  /* left column: lead card */
  .lead-card {
    padding: 1.1rem;
    border-radius: 12px;
    background: color-mix(in srgb, var(--svc-surface) 88%, transparent);
    box-shadow: 0 8px 20px rgba(3,10,18,0.06);
    color: #071428;
  }
  .lead-card p.lead {
    margin: 0 0 0.75rem;
    font-size: 1.075rem;
    color: #082033;
    line-height: 1.5;
  }
  
  /* service list */
  .service-list {
    margin: 0.65rem 0 1rem;
    padding-left: 1.15rem;
    color: #123044;
    font-weight: 500;
  }
  .service-list li {
    margin: 0.5rem 0;
    line-height: 1.45;
  }
  
  /* trust pills */
  .trust-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0;
    justify-content: center; /* center pills */
  }
  .trust-pill {
    background: color-mix(in srgb, var(--svc-accent) 14%, white 86%);
    color: color-mix(in srgb, var(--svc-accent) 94%, black 6%);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.86rem;
    border: 1px solid color-mix(in srgb, var(--svc-accent) 12%, transparent);
  }
  
  /* CTA row & buttons */
  .about-cta {
    margin-top: 0.6rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center; /* center CTA buttons */
    align-items: center;
  }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.95rem;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  }
  .btn--primary {
    background: linear-gradient(90deg, var(--svc-accent), var(--svc-bg-mid));
    color: #fff;
    box-shadow: 0 12px 30px rgba(3,10,18,0.12);
    border-color: rgba(255,255,255,0.06);
  }
  .btn--outline {
    background: transparent;
    color: var(--svc-accent);
    border-color: color-mix(in srgb, var(--svc-accent) 12%, transparent);
  }
  
  /* Gallery & features: centered */
  .about-gallery, .service-features {
    justify-content: center;
    text-align: center;
  }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 980px) {
    .about-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 720px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .about-grid { gap: 1rem; }
  }
  @media (max-width: 420px) {
    .btn { width: 100%; justify-content: center; }
    .about-grid { gap: 0.75rem; }
    .service-features { gap: 0.75rem; }
  }
  

  /* ==============================
   Gallery Images — fixed size & professional
   ============================== */
.about-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
  justify-items: center;
  align-items: start;
  margin-top: 1rem;
}

.about-gallery .gallery-item {
  width: 100%;
  max-width: 220px; /* fixed maximum width */
  border-radius: 12px;
  overflow: hidden;
  background: #f8f9fa; /* subtle background for professional look */
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-gallery .gallery-item img {
  display: block;
  width: 100%;
  height: 160px; /* fixed height for uniformity */
  object-fit: cover; /* crop to fit neatly */
  transition: transform 0.25s ease;
}

.about-gallery .gallery-item:hover img {
  transform: scale(1.05); /* subtle zoom on hover */
}

.about-gallery .gallery-item figcaption {
  padding: 0.5rem 0.6rem;
  font-size: 0.87rem;
  color: #123044;
  text-align: center;
  background: rgba(255,255,255,0.9);
}

/* Responsive adjustments */
@media (max-width: 980px) {
  .about-gallery .gallery-item {
      max-width: 45%;
  }
  .about-gallery .gallery-item img {
      height: 140px;
  }
}

@media (max-width: 720px) {
  .about-gallery .gallery-item {
      max-width: 100%;
  }
  .about-gallery .gallery-item img {
      height: 180px;
  }
}

@media (max-width: 420px) {
  .about-gallery .gallery-item img {
      height: 160px;
  }
}


/* ==============================
   Services Section — Enhanced Mobile & Spacing
   ============================== */

/* ---------- Grid & layout improvements ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 1.5rem;
  margin-top: 1.5rem;
  justify-content: center;
  align-items: start;
}

.lead-card {
  padding: 1.5rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--svc-surface) 90%, transparent);
  box-shadow: 0 10px 26px rgba(3,10,18,0.08);
  line-height: 1.55;
}

.lead-card p.lead {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.service-list {
  margin: 0.85rem 0 1.25rem;
  padding-left: 1.25rem;
  font-weight: 500;
  color: #123044;
}

.service-list li {
  margin: 0.65rem 0;
  line-height: 1.55;
}

/* ---------- Trust row & CTA ---------- */
.trust-row {
  justify-content: center;
  gap: 0.6rem;
  margin: 1rem 0;
}

.about-cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ---------- Gallery Improvements ---------- */
.about-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  justify-items: center;
  margin-top: 1.25rem;
}

.about-gallery .gallery-item {
  width: 100%;
  max-width: 240px;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.about-gallery .gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.about-gallery .gallery-item:hover img {
  transform: scale(1.06);
}

.about-gallery .gallery-item figcaption {
  padding: 0.6rem 0.75rem;
  font-size: 0.88rem;
  text-align: center;
  color: #0b1224;
  background: rgba(255,255,255,0.92);
}

/* ---------- Service Features Improvements ---------- */
.service-features article {
  margin-top: 1.25rem;
  text-align: center;
}

.service-features h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.service-features p {
  font-size: 0.975rem;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 620px;
  color: #123044;
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 980px) {
  .about-grid {
      grid-template-columns: 1fr;
      gap: 1.25rem;
  }
  .about-gallery .gallery-item {
      max-width: 48%;
  }
}

@media (max-width: 720px) {
  .gallery-grid {
      grid-template-columns: 1fr;
      gap: 0.85rem;
  }
  .lead-card {
      padding: 1.25rem;
  }
  .service-list {
      padding-left: 1rem;
  }
}

@media (max-width: 420px) {
  .btn {
      width: 100%;
      justify-content: center;
  }
  .lead-card p.lead {
      font-size: 1.05rem;
  }
  .service-features p {
      font-size: 0.95rem;
      padding-inline: 0.5rem;
  }
  .about-gallery .gallery-item img {
      height: 160px;
  }
}


/* ==============================
   Service Features — Centering Fix & Professional Layout
   ============================== */
   .service-features {
    display: flex;
    flex-direction: column;
    align-items: center;   /* center horizontally */
    justify-content: center;
    gap: 2rem;             /* vertical spacing between articles */
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }
  
  .service-features article {
    max-width: 700px;      /* constrain width for readability */
    width: 100%;           /* full width on small screens */
    text-align: center;    /* center headings and paragraphs */
    padding: 1rem 1.25rem;
    background: color-mix(in srgb, var(--svc-surface) 95%, transparent);
    border-radius: var(--svc-radius);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .service-features article:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  
  .service-features h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--svc-text);
  }
  
  .service-features p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--svc-muted);
    margin: 0 auto;
  }
  
  /* Responsive adjustments */
  @media (max-width: 980px) {
    .service-features article {
        max-width: 95%;
        padding: 0.9rem 1rem;
    }
  }
  
  @media (max-width: 720px) {
    .service-features {
        gap: 1.5rem;
    }
    .service-features article {
        padding: 0.8rem 0.9rem;
    }
  }
  
  @media (max-width: 420px) {
    .service-features article {
        padding: 0.7rem 0.75rem;
    }
    .service-features p {
        font-size: 0.95rem;
        padding-inline: 0.5rem;
    }
  }
  
  