/* ==========================================================================
   e-Pragma Drupal services page
   Replaces the inline <style> blocks that used to live inside
   docs/{el,en}/services/drupal/drupal.md, and fixes the light-theme
   contrast bugs (white headings on a pale background).

   The page has four sections:
     .hero-section   - the intro banner with six service pillars
     .offering-grid  - "Τι προσφέρουμε" / "What we offer" cards
     .drupal_container - the Drupal technologies panel
   ========================================================================== */

.ep-drupal {
  --epd-bg: #ffffff;
  --epd-fg: #12141f;
  --epd-muted: #5a6178;
  --epd-line: #e4e7f0;
  --epd-card: #ffffff;
  --epd-navy: #12132e;
  --epd-navy-2: #1c1e42;
  --epd-brand: #4051b5;
  --epd-brand-2: #6c7bff;
  --epd-accent: #ff7a1a;
  --epd-radius: 18px;
  --epd-shadow: 0 1px 2px rgba(16, 20, 45, .06), 0 12px 32px rgba(16, 20, 45, .07);
  --epd-shadow-lg: 0 2px 6px rgba(16, 20, 45, .08), 0 24px 60px rgba(16, 20, 45, .12);
}

[data-md-color-scheme="slate"] .ep-drupal {
  --epd-bg: #14161f;
  --epd-fg: #eef0f6;
  --epd-muted: #a4abc0;
  --epd-line: #2b2f3d;
  --epd-card: #1b1e29;
  --epd-navy: #0d0f1c;
  --epd-navy-2: #171a30;
  --epd-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .35);
  --epd-shadow-lg: 0 2px 6px rgba(0, 0, 0, .5), 0 24px 60px rgba(0, 0, 0, .45);
}

/* ---------- Hero banner ---------- */

.ep-drupal .hero-section {
  position: relative;
  overflow: hidden;
  padding: 56px 44px;
  margin: 0 0 48px;
  border-radius: var(--epd-radius);
  color: #f5f6fb;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(108, 123, 255, .38) 0%, transparent 58%),
    linear-gradient(135deg, var(--epd-navy) 0%, var(--epd-navy-2) 100%);
  box-shadow: var(--epd-shadow-lg);
}

.ep-drupal .hero-section-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .3;
  background:
    radial-gradient(80% 60% at 12% 10%, rgba(255, 122, 26, .18) 0%, transparent 60%),
    radial-gradient(70% 70% at 90% 90%, rgba(108, 123, 255, .22) 0%, transparent 60%);
  pointer-events: none;
}

.ep-drupal .hero-section .hero-container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.md-typeset .ep-drupal .hero-section .solution-tag {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--epd-accent);
  margin: 0 0 16px;
}

.md-typeset .ep-drupal .hero-section .main-heading {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 40px;
  max-width: 22ch;
}

.ep-drupal .hero-section .services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: none;
}

.ep-drupal .hero-section .service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  color: inherit;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}

.ep-drupal .hero-section .service-item:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .25);
  transform: translateY(-2px);
}

.ep-drupal .hero-section .icon-container {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
  transition: background .2s ease;
}

.ep-drupal .hero-section .service-item:hover .icon-container {
  background: rgba(255, 122, 26, .24);
}

.ep-drupal .hero-section .icon-container .icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.md-typeset .ep-drupal .hero-section .service-title {
  font-size: .98rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(255, 255, 255, .92);
  margin: 0;
}

/* ---------- Offering cards ---------- */

.ep-drupal .offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 28px 0 56px;
}

/* The "Tasks we already own" grid holds four wide cards - two columns read
   much better than the three the auto-fit would give us. */
.ep-drupal .offering-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.ep-drupal .offering-card {
  background: var(--epd-card);
  border: 1px solid var(--epd-line);
  border-radius: 16px;
  padding: 28px 26px;
  box-shadow: var(--epd-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ep-drupal .offering-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--epd-brand) 40%, var(--epd-line));
  box-shadow: var(--epd-shadow-lg);
}

.ep-drupal .offering-icon {
  font-size: 26px;
  line-height: 1;
  margin-bottom: 14px;
}

.md-typeset .ep-drupal .offering-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--epd-brand);
  margin: 0 0 12px;
}

[data-md-color-scheme="slate"] .ep-drupal .offering-card h3 {
  color: var(--epd-brand-2);
}

.md-typeset .ep-drupal .offering-card p {
  font-size: .95rem;
  line-height: 1.65;
  color: var(--epd-muted);
  margin: 0 0 14px;
}

.ep-drupal .offering-card ul {
  margin: 0;
  padding-left: 20px;
}

.md-typeset .ep-drupal .offering-card li {
  font-size: .92rem;
  line-height: 1.6;
  color: var(--epd-muted);
  margin: 5px 0;
}

.md-typeset .ep-drupal .offering-card li::marker {
  color: var(--epd-accent);
}

/* ---------- Drupal technologies panel ---------- */

.ep-drupal .drupal_container {
  display: flex;
  gap: 48px;
  max-width: 100%;
  margin: 0 0 56px;
  padding: 44px 40px;
  border-radius: var(--epd-radius);
  color: #f4f6fb;
  background:
    radial-gradient(100% 120% at 100% 0%, rgba(108, 123, 255, .3) 0%, transparent 55%),
    linear-gradient(135deg, var(--epd-navy) 0%, var(--epd-navy-2) 100%);
  box-shadow: var(--epd-shadow-lg);
}

.ep-drupal .drupal_left_section,
.ep-drupal .drupal_right_section {
  flex: 1;
  min-width: 0;
}

.md-typeset .ep-drupal .drupal_container .drupal_main_title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 18px;
}

.md-typeset .ep-drupal .drupal_container .drupal_subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .72);
  margin: 0;
}

.ep-drupal .drupal_tech_list {
  display: flex;
  flex-direction: column;
}

.ep-drupal .drupal_tech_item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.ep-drupal .drupal_tech_item:last-child {
  border-bottom: none;
}

.ep-drupal .drupal_icon_wrapper {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .1);
}

.ep-drupal .drupal_icon_wrapper svg,
.ep-drupal .drupal_icon_wrapper svg path {
  fill: #fff !important;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ep-drupal .drupal_icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.md-typeset .ep-drupal .drupal_tech_title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 6px;
}

.md-typeset .ep-drupal .drupal_tech_desc {
  font-size: .92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, .68);
  margin: 0;
}

.ep-drupal .drupal_container a {
  color: #fff;
}

/* ---------- Craft services ---------- */

/* The generic "specialized development services" grid used to live at the
   bottom of this page. It is not Drupal-specific, so it moved up to
   /services/ and its styles moved to docs/stylesheets/craft.css. */

/* ---------- Section headings inside the page ---------- */

/* The markdown `##` headings render as <h5> - Material is configured with
   `toc.baselevel: 4`, so `#` -> h4 and `##` -> h5. The card titles are <h3>
   and must keep their own size. */
.md-typeset .ep-drupal h5 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--epd-fg);
  margin: 0 0 8px;
}

.md-typeset .ep-drupal h3 {
  font-weight: 700;
}

.ep-drupal .techno-head,
.ep-drupal .short-name {
  color: inherit;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 1024px) {
  .ep-drupal .hero-section .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ep-drupal .offering-grid--2 {
    grid-template-columns: 1fr;
  }

  .ep-drupal .drupal_container {
    flex-direction: column;
    gap: 32px;
  }
}

@media screen and (max-width: 768px) {
  .ep-drupal .hero-section {
    padding: 36px 22px;
  }

  .ep-drupal .hero-section .services-grid {
    grid-template-columns: 1fr;
  }

  .ep-drupal .drupal_container {
    padding: 30px 22px;
  }
}
