/* ─────────────────────────────────────────
   Expertise Section Widget – Frontend Styles
   Mobile: all cards stacked full-width (1 col)
   Tablet 768–1023px: 2 columns
   Desktop 1024px+: 4 columns
───────────────────────────────────────── */

/* ── Base box-sizing ── */
.esw-section *,
.esw-section *::before,
.esw-section *::after {
  box-sizing: border-box;
}

/* ════════════════════════════════
   SECTION  (mobile-first)
════════════════════════════════ */
.esw-section {
  background-color: #0a0a0a;
  padding: 48px 0 64px;
  width: 100%;
  overflow-x: hidden;
}

.esw-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ════════════════════════════════
   HEADER  (mobile-first)
════════════════════════════════ */
.esw-services-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.esw-label {
  color: hsl(43, 100%, 50%);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  white-space: normal;
  padding-top: 2px;
  display: block;
}

.esw-description {
  width: 100%;
}

.esw-description p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── CTA ── */
.esw-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}

.esw-arrow-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ffffff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.esw-arrow-circle svg {
  color: #ffffff;
  transition: color 0.3s ease;
  display: block;
}

.esw-cta-link:hover .esw-arrow-circle {
  background: hsl(43, 100%, 50%);
  border-color: hsl(43, 100%, 50%);
}

.esw-cta-link:hover .esw-arrow-circle svg {
  color: #000000;
}

/* ════════════════════════════════
   CARDS GRID
   1 col on ALL phones up to 767px
════════════════════════════════ */
.esw-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background-color: #27272a;
  border: 1px solid #27272a;
  width: 100%;
}

/* ════════════════════════════════
   CARD  (mobile-first)
════════════════════════════════ */
.esw-service-card {
  background-color: #0a0a0a;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: auto;
  transition: background 0.5s ease;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.esw-service-card:hover {
  background-color: rgba(39, 39, 42, 0.3);
}

.esw-card-top    { margin-bottom: 10px; }
.esw-card-bottom { flex: 1; }

.esw-service-card h2,
.esw-service-card h3,
.esw-service-card h4,
.esw-service-card h5 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.25;
}

.esw-service-card p {
  color: #a1a1aa;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

.esw-card-icon {
  display: block;
  color: hsl(43, 100%, 50%);
  font-size: 24px;
  margin-bottom: 10px;
}

.esw-card-icon svg {
  width: 1em;
  height: 1em;
}

/* ════════════════════════════════
   SMALL PHONES  <= 374px
════════════════════════════════ */
@media (max-width: 374px) {
  .esw-inner         { padding: 0 14px; }
  .esw-section       { padding: 36px 0 52px; }
  .esw-label         { font-size: 10px; letter-spacing: 0.18em; }
  .esw-description p { font-size: 13px; }
  .esw-service-card  { padding: 22px 14px; }

  .esw-service-card h2,
  .esw-service-card h3,
  .esw-service-card h4,
  .esw-service-card h5 { font-size: 20px; }
}

/* ════════════════════════════════
   PHONES  375–599px  — still 1 col
════════════════════════════════ */
@media (min-width: 375px) and (max-width: 599px) {
  .esw-inner        { padding: 0 20px; }
  .esw-section      { padding: 48px 0 64px; }
  .esw-service-card { padding: 28px 20px; }
}

/* ════════════════════════════════
   LARGE PHONES  600–767px — still 1 col
════════════════════════════════ */
@media (min-width: 600px) and (max-width: 767px) {
  .esw-inner         { padding: 0 24px; }
  .esw-section       { padding: 56px 0 72px; }
  .esw-description p { font-size: 15px; }
  .esw-cta-link      { font-size: 12px; }

  /* FORCE 1 column — no 2-col here */
  .esw-cards-grid    { grid-template-columns: 1fr; }

  .esw-service-card  { padding: 32px 24px; }

  .esw-service-card h2,
  .esw-service-card h3,
  .esw-service-card h4,
  .esw-service-card h5 { font-size: 23px; }
}

/* ════════════════════════════════
   TABLETS  768–1023px — 2 columns
════════════════════════════════ */
@media (min-width: 768px) {
  .esw-inner   { padding: 0 32px; }
  .esw-section { padding: 72px 0 96px; }

  .esw-services-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 48px;
    margin-bottom: 48px;
  }

  .esw-label {
    font-size: 13px;
    white-space: nowrap;
    letter-spacing: 0.3em;
    padding-top: 4px;
  }

  .esw-description   { max-width: 640px; }

  .esw-description p {
    font-size: 16px;
    margin-bottom: 26px;
  }

  .esw-cta-link     { font-size: 13px; gap: 11px; }
  .esw-arrow-circle { width: 30px; height: 30px; }

  .esw-cards-grid   { grid-template-columns: 1fr 1fr; }

  .esw-service-card {
    padding: 30px 32px;
    min-height: 240px;
  }

  .esw-service-card h2,
  .esw-service-card h3,
  .esw-service-card h4,
  .esw-service-card h5 { font-size: 22px; }

  .esw-service-card p { font-size: 14px; }
  .esw-card-icon      { font-size: 26px; }
}

/* ════════════════════════════════
   DESKTOP  1024px+ — 4 columns
════════════════════════════════ */
@media (min-width: 1024px) {
  .esw-inner   { padding: 0 32px; }
  .esw-section { padding: 96px 0 128px; }

  .esw-services-header {
    gap: 80px;
    margin-bottom: 64px;
  }

  .esw-label         { font-size: 14px; }
  .esw-description   { max-width: 768px; }

  .esw-description p {
    font-size: 18px;
    margin-bottom: 32px;
  }

  .esw-cta-link     { font-size: 14px; gap: 12px; }
  .esw-arrow-circle { width: 32px; height: 32px; }

  .esw-cards-grid   { grid-template-columns: repeat(4, 1fr); }

  .esw-service-card {
    padding: 32px 40px;
    min-height: 300px;
  }

  .esw-service-card h2,
  .esw-service-card h3,
  .esw-service-card h4,
  .esw-service-card h5 {
    font-size: 22px;
    margin: 0 0 12px;
  }

  .esw-service-card p { font-size: 14px; }
  .esw-card-icon      { font-size: 28px; margin-bottom: 16px; }
}

/* ════════════════════════════════
   LARGE DESKTOP  1280px+
════════════════════════════════ */
@media (min-width: 1280px) {
  .esw-service-card h2,
  .esw-service-card h3,
  .esw-service-card h4,
  .esw-service-card h5 { font-size: 26px; }

  .esw-description p { font-size: 20px; }
}

/* ════════════════════════════════
   TOUCH: no hover flash on mobile
════════════════════════════════ */
@media (hover: none) {
  .esw-service-card:hover { background-color: #0a0a0a; }
  .esw-cta-link:hover .esw-arrow-circle {
    background: transparent;
    border-color: #ffffff;
  }
  .esw-cta-link:hover .esw-arrow-circle svg { color: #ffffff; }
}

/* ── Elementor Editor helpers ── */
.elementor-editor-active .esw-service-card {
  opacity: 1 !important;
  transform: none !important;
}
