/* ============================================
   SERVICES — THEME 2: OBSIDIAN GOLD (LIGHT)
   ============================================ */

:root {
  /* ===============================
     COLORS
  =============================== */
  --ebsrv20-section-background-color: #faf9f5;
  --ebsrv20-orb-1-color: rgba(184, 144, 32, 0.15);
  --ebsrv20-orb-2-color: rgba(197, 160, 89, 0.1);
  --ebsrv20-badge-background-color: rgba(184, 144, 32, 0.08);
  --ebsrv20-badge-border-color: rgba(184, 144, 32, 0.2);
  --ebsrv20-badge-text-color: #b89020;
  --ebsrv20-title-text-color: #1c1917;
  --ebsrv20-title-highlight-text-color: #b89020;
  --ebsrv20-title-underline-color: rgba(184, 144, 32, 0.2);
  --ebsrv20-subtitle-text-color: #57534e;
  --ebsrv20-card-background-color: #ffffff;
  --ebsrv20-card-border-color: #e7e2d8;
  --ebsrv20-card-top-stripe-color: linear-gradient(90deg, #b89020, #8c6d1d);
  --ebsrv20-card-hover-border-color: #b89020;
  --ebsrv20-card-overlay-background: linear-gradient(180deg, transparent 50%, rgba(28, 25, 23, 0.7) 100%);
  --ebsrv20-card-title-text-color: #1c1917;
  --ebsrv20-card-title-prefix-color: #b89020;
  --ebsrv20-card-description-text-color: #57534e;
  --ebsrv20-card-button-text-color: #b89020;
  --ebsrv20-card-button-border-color: #e7e2d8;
  --ebsrv20-card-button-hover-background-color: #b89020;
  --ebsrv20-card-button-hover-border-color: #b89020;
  --ebsrv20-card-button-hover-text-color: #ffffff;

  /* ===============================
     TYPOGRAPHY
  =============================== */
  --ebsrv20-badge-font-size: 0.8rem;
  --ebsrv20-badge-font-weight: 700;
  --ebsrv20-badge-letter-spacing: 0.05em;
  --ebsrv20-title-font-size: 2.5rem;
  --ebsrv20-title-font-weight: 700;
  --ebsrv20-title-line-height: 1.2;
  --ebsrv20-title-underline-height: 3px;
  --ebsrv20-subtitle-font-size: 1.05rem;
  --ebsrv20-subtitle-line-height: 1.7;
  --ebsrv20-card-title-font-size: 1.2rem;
  --ebsrv20-card-title-font-weight: 700;
  --ebsrv20-card-title-prefix-font-weight: 400;
  --ebsrv20-card-desc-font-size: 0.92rem;
  --ebsrv20-card-desc-line-height: 1.6;
  --ebsrv20-card-button-font-size: 0.85rem;
  --ebsrv20-card-button-font-weight: 700;
  --ebsrv20-card-button-letter-spacing: 0.05em;

  /* ===============================
     SPACING
  =============================== */
  --ebsrv20-header-gap: 1rem;
  --ebsrv20-header-padding-x: 2rem;
  --ebsrv20-header-margin-bottom: 2.25rem;
  --ebsrv20-badge-gap: 0.5rem;
  --ebsrv20-badge-padding-y: 0.5rem;
  --ebsrv20-badge-padding-x: 1.25rem;
  --ebsrv20-container-padding-x: 2rem;
  --ebsrv20-card-body-padding: 1.75rem;
  --ebsrv20-card-title-gap: 0.5rem;
  --ebsrv20-card-title-margin-bottom: 0.75rem;
  --ebsrv20-card-desc-margin-bottom: 1.5rem;
  --ebsrv20-card-button-gap: 0.5rem;
  --ebsrv20-card-button-padding: 0.6rem 1.5rem;

  /* ===============================
     LAYOUT
  =============================== */
  --ebsrv20-bg-effects-z-index: 0;
  --ebsrv20-header-z-index: 2;
  --ebsrv20-container-z-index: 2;
  --ebsrv20-header-max-width: 700px;
  --ebsrv20-container-max-width: 1240px;
  --ebsrv20-orb-border-radius: 50%;
  --ebsrv20-orb-blur: 120px;
  --ebsrv20-orb-opacity: 0.25;
  --ebsrv20-orb-fade-stop: 70%;
  --ebsrv20-orb-1-width: 500px;
  --ebsrv20-orb-1-height: 500px;
  --ebsrv20-orb-1-top: -10%;
  --ebsrv20-orb-1-right: -5%;
  --ebsrv20-orb-2-width: 400px;
  --ebsrv20-orb-2-height: 400px;
  --ebsrv20-orb-2-bottom: -10%;
  --ebsrv20-orb-2-left: -5%;

  /* ===============================
     GRID
  =============================== */
  --ebsrv20-grid-gap: 2.5rem;

  /* ===============================
     CARD
  =============================== */
  --ebsrv20-radius: 0px;
  --ebsrv20-card-transition-duration: 0.4s;
  --ebsrv20-card-hover-translate-y: -6px;
  --ebsrv20-card-top-stripe-height: 4px;
  --ebsrv20-card-top-stripe-opacity: 0;
  --ebsrv20-card-top-stripe-opacity-hover: 1;
  --ebsrv20-card-top-stripe-transition-duration: 0.3s;

  /* ===============================
     IMAGE
  =============================== */
  --ebsrv20-img-radius: 0px;
  --ebsrv20-card-img-wrapper-height: 230px;
  --ebsrv20-card-img-wrapper-aspect-ratio: 16 / 10;
  --ebsrv20-card-img-wrapper-margin: 0rem;
  --ebsrv20-img-width: 100%;
  --ebsrv20-img-height: 100%;
  --ebsrv20-img-aspect-ratio: 16 / 10;
  --ebsrv20-img-object-fit: cover;
  --ebsrv20-img-transition-duration: 0.6s;
  --ebsrv20-img-scale-hover: 1.06;

  /* ===============================
     BUTTON
  =============================== */
  --ebsrv20-card-button-border-width: 1px;
  --ebsrv20-card-button-border-radius: 0px;
  --ebsrv20-card-button-transition-duration: 0.3s;
  --ebsrv20-card-button-icon-transition-duration: 0.3s;
  --ebsrv20-card-button-icon-translate-x-hover: -5px;

  /* ===============================
     BORDER
  =============================== */
  --ebsrv20-badge-border-width: 1px;
  --ebsrv20-card-border-width: 1px;

  /* ===============================
     SHADOW
  =============================== */
  --ebsrv20-card-hover-shadow: 0 12px 30px rgba(184, 144, 32, 0.08);

  /* ===============================
     ANIMATION
  =============================== */
  --ebsrv20-ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ebsrv20-anim-translate-y: 30px;
  --ebsrv20-anim-duration: 0.8s;
  --ebsrv20-anim-opacity-hidden: 0;
  --ebsrv20-anim-opacity-visible: 1;
  --ebsrv20-anim-delay-1: 0.1s;
  --ebsrv20-anim-delay-2: 0.2s;
  --ebsrv20-anim-delay-3: 0.3s;
  --ebsrv20-anim-delay-4: 0.4s;
  --ebsrv20-anim-delay-5: 0.5s;
  --ebsrv20-anim-delay-6: 0.6s;

  /* ===============================
     RESPONSIVE
  =============================== */
  --ebsrv20-grid-template-columns-desktop: repeat(auto-fill, minmax(340px, 1fr));
  --ebsrv20-grid-template-columns-mobile: 1fr;
}

.ebsrv20-section {
  position: relative;
  background-color: var(--ebsrv20-section-background-color);
  padding: 3.5rem 0;
  overflow: hidden;
}

/* Background elements */
.ebsrv20-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--ebsrv20-bg-effects-z-index);
}

.ebsrv20-bg-orb {
  position: absolute;
  border-radius: var(--ebsrv20-orb-border-radius);
  filter: blur(var(--ebsrv20-orb-blur));
  opacity: var(--ebsrv20-orb-opacity);
}

.ebsrv20-orb-1 {
  width: var(--ebsrv20-orb-1-width);
  height: var(--ebsrv20-orb-1-height);
  background: radial-gradient(circle, var(--ebsrv20-orb-1-color), transparent var(--ebsrv20-orb-fade-stop));
  top: var(--ebsrv20-orb-1-top);
  right: var(--ebsrv20-orb-1-right);
}

.ebsrv20-orb-2 {
  width: var(--ebsrv20-orb-2-width);
  height: var(--ebsrv20-orb-2-height);
  background: radial-gradient(circle, var(--ebsrv20-orb-2-color), transparent var(--ebsrv20-orb-fade-stop));
  bottom: var(--ebsrv20-orb-2-bottom);
  left: var(--ebsrv20-orb-2-left);
}

/* Header */
.ebsrv20-header {
  position: relative;
  z-index: var(--ebsrv20-header-z-index);
  text-align: center;
  max-width: var(--ebsrv20-header-max-width);
  margin: 0 auto var(--ebsrv20-header-margin-bottom) auto;
  padding: 0 var(--ebsrv20-header-padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ebsrv20-header-gap);
}

.ebsrv20-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--ebsrv20-badge-gap);
  background: var(--ebsrv20-badge-background-color);
  border: var(--ebsrv20-badge-border-width) solid var(--ebsrv20-badge-border-color);
  color: var(--ebsrv20-badge-text-color);
  padding: var(--ebsrv20-badge-padding-y) var(--ebsrv20-badge-padding-x);
  font-size: var(--ebsrv20-badge-font-size);
  font-weight: var(--ebsrv20-badge-font-weight);
  text-transform: uppercase;
  letter-spacing: var(--ebsrv20-badge-letter-spacing);
}

.ebsrv20-title {
  font-size: var(--ebsrv20-title-font-size);
  font-weight: var(--ebsrv20-title-font-weight);
  color: var(--ebsrv20-title-text-color);
  line-height: var(--ebsrv20-title-line-height);
  font-family: "El Messiri", sans-serif;
}

.ebsrv20-title-highlight {
  color: var(--ebsrv20-title-highlight-text-color);
  position: relative;
}

.ebsrv20-title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--ebsrv20-title-underline-height);
  background: var(--ebsrv20-title-underline-color);
}

.ebsrv20-subtitle {
  font-size: var(--ebsrv20-subtitle-font-size);
  color: var(--ebsrv20-subtitle-text-color);
  line-height: var(--ebsrv20-subtitle-line-height);
}

/* Grid Layout */
.ebsrv20-container {
  position: relative;
  z-index: var(--ebsrv20-container-z-index);
  width: 100%;
  max-width: var(--ebsrv20-container-max-width);
  padding: 0 var(--ebsrv20-container-padding-x);
  margin: 0 auto;
}

.ebsrv20-grid {
  display: grid;
  grid-template-columns: var(--ebsrv20-grid-template-columns-desktop);
  gap: var(--ebsrv20-grid-gap);
}

@media (max-width: 768px) {
  .ebsrv20-section {
    padding: 1.75rem 0 !important;
  }
  .ebsrv20-header {
    margin-bottom: 1.25rem !important;
    padding: 0 0.75rem !important;
    gap: 0.65rem !important;
  }
  .ebsrv20-title {
    font-size: 1.75rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
  }
  .ebsrv20-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
  }
  .ebsrv20-badge {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.95rem !important;
  }
  .ebsrv20-container {
    padding: 0 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .ebsrv20-grid {
    grid-template-columns: 1fr !important;
    gap: 1.35rem !important;
  }
  .ebsrv20-card-body {
    padding: 1.25rem !important;
  }
  .ebsrv20-card-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 700 !important;
  }
  .ebsrv20-card-desc {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
    margin-bottom: 0.95rem !important;
  }
  .ebsrv20-card-img-wrapper {
    height: 190px !important;
  }
  .ebsrv20-card-link {
    font-size: 0.88rem !important;
    padding: 0.6rem 1.1rem !important;
  }
}

@media (max-width: 380px) {
  .ebsrv20-title {
    font-size: 1.5rem !important;
  }
  .ebsrv20-subtitle {
    font-size: 0.88rem !important;
  }
  .ebsrv20-card-title {
    font-size: 1.05rem !important;
  }
  .ebsrv20-card-desc {
    font-size: 0.82rem !important;
  }
  .ebsrv20-card-body {
    padding: 1rem !important;
  }
}

/* Card */
.ebsrv20-card {
  background-color: var(--ebsrv20-card-background-color);
  border: var(--ebsrv20-card-border-width) solid var(--ebsrv20-card-border-color);
  border-radius: var(--ebsrv20-radius);
  overflow: hidden;
  transition: transform var(--ebsrv20-card-transition-duration) var(--ebsrv20-ease), border-color var(--ebsrv20-card-transition-duration) var(--ebsrv20-ease), box-shadow var(--ebsrv20-card-transition-duration) var(--ebsrv20-ease);
  display: flex;
  flex-direction: column;
  position: relative;
}

.ebsrv20-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ebsrv20-card-top-stripe-height);
  background: var(--ebsrv20-card-top-stripe-color);
  opacity: var(--ebsrv20-card-top-stripe-opacity);
  transition: opacity var(--ebsrv20-card-top-stripe-transition-duration) var(--ebsrv20-ease);
}

.ebsrv20-card:hover {
  transform: translateY(var(--ebsrv20-card-hover-translate-y));
  border-color: var(--ebsrv20-card-hover-border-color);
  box-shadow: var(--ebsrv20-card-hover-shadow);
}

.ebsrv20-card:hover::before {
  opacity: var(--ebsrv20-card-top-stripe-opacity-hover);
}

/* Image wrapper */
.ebsrv20-card-img-wrapper {
  position: relative;
  height: var(--ebsrv20-card-img-wrapper-height);
  aspect-ratio: var(--ebsrv20-card-img-wrapper-aspect-ratio);
  margin: var(--ebsrv20-card-img-wrapper-margin);
  border-radius: var(--ebsrv20-img-radius);
  overflow: hidden;
}

.ebsrv20-card-img {
  width: var(--ebsrv20-img-width);
  height: var(--ebsrv20-img-height);
  aspect-ratio: var(--ebsrv20-img-aspect-ratio);
  object-fit: var(--ebsrv20-img-object-fit);
  transition: transform var(--ebsrv20-img-transition-duration) var(--ebsrv20-ease);
}

.ebsrv20-card:hover .ebsrv20-card-img {
  transform: scale(var(--ebsrv20-img-scale-hover));
}

.ebsrv20-card-overlay {
  position: absolute;
  inset: 0;
  background: var(--ebsrv20-card-overlay-background);
}

/* Card body */
.ebsrv20-card-body {
  padding: var(--ebsrv20-card-body-padding);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ebsrv20-card-title {
  font-size: var(--ebsrv20-card-title-font-size);
  font-weight: var(--ebsrv20-card-title-font-weight);
  color: var(--ebsrv20-card-title-text-color);
  margin-bottom: var(--ebsrv20-card-title-margin-bottom);
  display: flex;
  align-items: center;
  gap: var(--ebsrv20-card-title-gap);
  font-family: "El Messiri", sans-serif;
}

.ebsrv20-card-title::before {
  content: '//';
  color: var(--ebsrv20-card-title-prefix-color);
  font-weight: var(--ebsrv20-card-title-prefix-font-weight);
}

.ebsrv20-card-desc {
  font-size: var(--ebsrv20-card-desc-font-size);
  color: var(--ebsrv20-card-description-text-color);
  line-height: var(--ebsrv20-card-desc-line-height);
  margin-bottom: var(--ebsrv20-card-desc-margin-bottom);
  flex-grow: 1;
}

.ebsrv20-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ebsrv20-card-button-gap);
  color: var(--ebsrv20-card-button-text-color);
  font-weight: var(--ebsrv20-card-button-font-weight);
  font-size: var(--ebsrv20-card-button-font-size);
  text-decoration: none;
  border: var(--ebsrv20-card-button-border-width) solid var(--ebsrv20-card-button-border-color);
  padding: var(--ebsrv20-card-button-padding);
  border-radius: var(--ebsrv20-card-button-border-radius);
  transition: all var(--ebsrv20-card-button-transition-duration) var(--ebsrv20-ease);
  width: 100%;
  letter-spacing: var(--ebsrv20-card-button-letter-spacing);
}

.ebsrv20-card-link i {
  transition: transform var(--ebsrv20-card-button-icon-transition-duration) var(--ebsrv20-ease);
}

.ebsrv20-card:hover .ebsrv20-card-link {
  background-color: var(--ebsrv20-card-button-hover-background-color);
  border-color: var(--ebsrv20-card-button-hover-border-color);
  color: var(--ebsrv20-card-button-hover-text-color);
}

.ebsrv20-card:hover .ebsrv20-card-link i {
  transform: translateX(var(--ebsrv20-card-button-icon-translate-x-hover));
}

/* Animations */
.ebsrv20-anim-up {
  opacity: var(--ebsrv20-anim-opacity-hidden);
  transform: translateY(var(--ebsrv20-anim-translate-y));
  transition: opacity var(--ebsrv20-anim-duration) var(--ebsrv20-ease), transform var(--ebsrv20-anim-duration) var(--ebsrv20-ease);
}

.ebsrv20-anim-up.ebsrv20-visible {
  opacity: var(--ebsrv20-anim-opacity-visible);
  transform: translateY(0);
}

.ebsrv20-delay-1 { transition-delay: var(--ebsrv20-anim-delay-1); }
.ebsrv20-delay-2 { transition-delay: var(--ebsrv20-anim-delay-2); }
.ebsrv20-delay-3 { transition-delay: var(--ebsrv20-anim-delay-3); }
.ebsrv20-delay-4 { transition-delay: var(--ebsrv20-anim-delay-4); }
.ebsrv20-delay-5 { transition-delay: var(--ebsrv20-anim-delay-5); }
.ebsrv20-delay-6 { transition-delay: var(--ebsrv20-anim-delay-6); }


/* === MOBILE-COMPACT DISTRIBUTED: SERVICES 480 === */
@media (max-width: 480px) {
  .ebsrv20-container,
  .ebsrv20-header {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    padding-inline: 0.75rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: SERVICES 380 === */
@media (max-width: 380px) {
  .ebsrv20-container,
  .ebsrv20-header {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    padding-inline: 0.5rem !important;
  }
}


/* === MOBILE-COMPACT DISTRIBUTED: SERVICES 768 INLINE FIX === */
@media (max-width: 768px) {
  .ebsrv20-container,
  .ebsrv20-header {
    padding-inline: 0.75rem !important;
  }
}
