/* ==========================================================================
   Our Services page — extra styles (uses variables from styles.css)
   ========================================================================== */

/* --- Page banner (shared pattern with about-us) ---------------------------- */
.page-banner {
  padding: 56px 0 48px;
  text-align: center;
  background-color: var(--color-bg-soft);
}

.page-banner h1 {
  margin-top: 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 42px;
  color: var(--color-text);
}

.page-banner p {
  max-width: 520px;
  margin: 14px auto 0;
  font-size: 16px;
  color: var(--color-text-light);
}

/* --- Section intros --------------------------------------------------------- */
.section-label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.section-intro {
  max-width: 620px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-intro h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--color-text);
  margin-bottom: 10px;
}

.section-intro p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* --- Services overview grid -------------------------------------------------- */
.services-overview {
  padding-top: 64px;
  padding-bottom: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: center;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 20px;
}

/* --- Service card image (replaces the old icon) ---------------------------- */
.service-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-bg-soft);
}

.service-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;   /* the whole picture is shown, never cropped */
  padding: 6px;
  box-sizing: border-box;
}

.service-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 18px 22px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 16.5px;
  color: var(--color-text);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-light);
}

/* --- Order Now button -------------------------------------------------------- */
.btn-order-now {
  display: inline-block;
  width: 100%;
  margin-top: auto;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-primary);
  background-color: transparent;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-order-now:hover {
  color: var(--color-white);
  background-color: var(--color-primary);
}



/* --- Responsive --------------------------------------------------------------- */
@media (max-width: 1080px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .order-form {
    grid-template-columns: 1fr;
  }

  .order-form-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-banner h1 {
    font-size: 32px;
  }

  .order-summary {
    padding: 18px 20px;
  }

  .order-body {
    padding: 4px 20px 26px;
  }
}

/* --- Services loaded from the database ------------------------------------------ */
.service-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: var(--color-text-light);
  opacity: 0.55;
}

.services-message {
  grid-column: 1 / -1;
  padding: 40px 0;
  text-align: center;
  color: var(--color-text-light);
}

.service-price {
  margin: 8px 0 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text);
}


/* Professional customer-facing service profiles */
.service-card-body { gap: 10px; }
.service-details-btn, .service-card .btn-order-now { width: 100%; justify-content: center; }
.service-profile-overlay { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(14, 39, 47, .62); backdrop-filter: blur(5px); }
.service-profile-overlay.is-open { display: flex; }
.service-profile-dialog { position: relative; width: min(760px, 100%); max-height: min(90vh, 900px); overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 24px 80px rgba(0,0,0,.24); padding: 28px; }
.service-profile-close { position: sticky; top: 0; float: right; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #eaf5f6; color: #175b68; font-size: 27px; line-height: 1; cursor: pointer; }
.service-profile-hero { display: grid; grid-template-columns: minmax(180px, .8fr) 1.2fr; gap: 24px; align-items: center; clear: both; }
.service-profile-hero-image, .service-profile-placeholder { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; background: #e9f4f5; }
.service-profile-placeholder { display: grid; place-items: center; color: #246b78; font-size: 42px; }
.service-profile-kicker { color: #438b98; font-size: 10px; letter-spacing: 1.4px; font-weight: 800; }
.service-profile-hero-copy h2 { margin: 8px 0; color: #173d48; font: 800 28px/1.15 'Baloo 2', sans-serif; }
.service-profile-hero-copy p { color: #607b83; line-height: 1.65; margin: 8px 0; }
.service-profile-price { color: #176474; font-size: 21px; font-weight: 800; margin-top: 12px; }
.service-profile-turnaround { font-size: 13px; }
.service-profile-section { border-top: 1px solid #e5edef; margin-top: 22px; padding-top: 18px; }
.service-profile-section h3 { color: #174c58; font-size: 16px; margin: 0 0 10px; }
.service-profile-section h3 i { margin-right: 6px; color: #4d9ba7; }
.service-profile-section ul { margin: 0; padding-left: 22px; color: #536e76; line-height: 1.8; }
.service-profile-disclaimer { margin: 22px 0 16px; padding: 12px 14px; border-radius: 12px; background: #f1f7f8; color: #637b81; font-size: 12px; line-height: 1.6; }
.service-profile-order { width: 100%; justify-content: center; }
body.service-profile-open { overflow: hidden; }
@media (max-width: 600px) { .service-profile-overlay { padding: 10px; } .service-profile-dialog { padding: 18px; border-radius: 18px; max-height: 94vh; } .service-profile-hero { grid-template-columns: 1fr; gap: 14px; } .service-profile-hero-image, .service-profile-placeholder { max-height: 210px; } .service-profile-hero-copy h2 { font-size: 24px; } }
