/* ESK Industries — tabbed featured-panel section. Tab switching + entrance
   animation live in esk-industries.js. */

.eski { position: relative; background: #ffffff; color: #022450; overflow: hidden; }
.eski *, .eski *::before, .eski *::after { box-sizing: border-box; }
.eski a { color: inherit; text-decoration: none; }
/* Force the component font over the theme's element rules. */
.eski, .eski * { font-family: "niveaugroteskregular", system-ui, sans-serif !important; }

.eski__bg { display: none; }
.eski__wrap { position: relative; max-width: 1336px; margin: 0 auto; padding: var(--esk-section-pad) 0; }
/* Gutters only when the viewport is narrower than the grid (desktop = 0). */
@media (max-width: 1392px) {
  .eski__wrap { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 767px) {
  .eski__wrap { padding-left: 20px; padding-right: 20px; }
}

/* Header */
.eski__head { text-align: left; max-width: 920px; margin: 0 0 clamp(30px,4.4vh,48px); }
.eski__title { margin: 0; font-weight: 800; font-size: var(--esk-h2); line-height: var(--esk-h2-lh); letter-spacing: var(--esk-h2-ls); color: #022450 !important; }
.eski__sub { margin: clamp(14px,1.8vh,22px) 0 0; font-size: var(--esk-lead); line-height: 1.5; color: #5B6474; font-weight: 500; max-width: 740px; }

/* Tab pills */
/* Single-line horizontal scroll on every screen; scrollbar hidden.
   overflow-x also clips vertically — pad top/bottom (offset with negative
   margins) so the pill hover-lift + shadow aren't cut off. */
.eski__rail { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; margin-bottom: clamp(26px,3.4vh,40px); padding: 8px 0; margin-top: -8px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
.eski__rail::-webkit-scrollbar { display: none; height: 0; width: 0; }
.eski__pill { flex: 0 0 auto; scroll-snap-align: start; }
/* Pills — every state pinned with !important so the theme's global
   button/button:hover styles (pink fill, gradients) cannot bleed through. */
.eski__pill { display: inline-flex; align-items: center; gap: 11px; padding: 14px 24px; border-radius: 999px; border: 1.5px solid #E4E7EC; background: #FFFFFF !important; background-image: none !important; color: #022450 !important; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; cursor: pointer; text-shadow: none !important; transition: background .28s ease, border-color .28s ease, color .28s ease, box-shadow .28s ease, transform .28s ease; }
.eski__pill-ic { display: block; width: 22px; height: 22px; }
.eski__pill-ic svg { width: 100%; height: 100%; }
.eski__pill:hover, .eski__pill:focus { background: #FFFFFF !important; background-image: none !important; color: #022450 !important; border-color: color-mix(in srgb, var(--accent) 50%, #E4E7EC); transform: translateY(-1px); outline: none; }
.eski__pill.is-active, .eski__pill.is-active:hover, .eski__pill.is-active:focus { background: var(--accent) !important; background-image: none !important; border-color: var(--accent); color: #fff !important; box-shadow: none !important; transform: translateY(-1px); }

/* Featured panel */
.eski__panel { display: flex; flex-wrap: wrap; align-items: stretch; background: #FFFFFF; border: 1.5px solid #E9EBF0; border-radius: 30px; overflow: hidden; box-shadow: 0 40px 80px -52px rgba(2,36,80,0.34); }

.eski__body { flex: 1 1 400px; min-width: 320px; padding: clamp(22px,2.2vw,32px); position: relative; }
.eski__item { display: none; flex-direction: column; height: 100%; }
.eski__item.is-active { display: flex; }
.eski__eyebrow { font-weight: 800; font-size: 13.5px; letter-spacing: 0.19em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 12px; }
.eski__name { margin: 0 0 10px; font-weight: 800; font-size: clamp(28px,2.8vw,42px); line-height: 1.03; letter-spacing: -0.03em; color: #022450 !important; }
.eski__desc { margin: 0 0 clamp(12px,1.4vh,18px); font-size: var(--esk-lead); line-height: 1.6; color: #5B6474; font-weight: 500; max-width: 520px; }

.eski__feats { display: flex; flex-direction: column; }
/* Divider starts after the icon column (per design), not full row width. */
.eski__feat { display: flex; align-items: center; gap: 16px; padding: 9px 0; position: relative; }
.eski__feat::before { content: ''; position: absolute; top: 0; left: 70px; right: 0; height: 1px; background: #EDEFF3; }
.eski__feat:first-child::before { display: none; }
.eski__feat-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.eski__feat-ic svg { width: 24px; height: 24px; }
.eski__feat-label { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; color: #022450; }

/* CTA — unified site footer "Book A Consultation" button */
.eski__cta-wrap { margin-top: auto; padding-top: clamp(14px,1.8vh,22px); }
.eski__cta { display: inline-flex; align-items: center; gap: 10px; background-color: #e36745; color: #fff !important; font-size: 15px; font-weight: 500; padding: 14px 28px; border-radius: 8px; text-decoration: none; transition: background 0.25s ease, transform 0.2s ease; white-space: nowrap; }
.eski__cta, .eski__cta * { font-family: 'Roboto', system-ui, sans-serif !important; color: #fff !important; }
.eski__cta:hover, .eski__cta:focus { color: #fff !important; text-decoration: none; transform: translateY(-1px); }
.eski__cta-ic { flex: 0 0 auto; width: 18px; height: 18px; transition: transform 0.25s ease; stroke: #fff; }
.eski__cta:hover .eski__cta-ic { transform: translateX(4px); }

/* Media */
.eski__media { flex: 1.45 1 520px; min-width: 340px; position: relative; min-height: clamp(260px,34vh,420px); background: #EEF0F4; }
.eski__shot { position: absolute; inset: 0; opacity: 0; transition: opacity .5s ease; pointer-events: none; }
.eski__shot.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
/* !important: theme/WP core set img{height:auto} which breaks the fill —
   cover crops to fill the panel, never stretches (no pixel distortion). */
.eski__shot .eski__img, .eski__shot img { width: 100% !important; height: 100% !important; max-width: 100% !important; max-height: none !important; object-fit: cover; object-position: center; display: block; }
.eski__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(420px 320px at 50% 44%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, #E8EBF1), #E3E7EE 65%); }
.eski__ph-ic { width: 132px; height: 132px; color: color-mix(in srgb, var(--accent) 72%, #8E97A6); }
.eski__ph-ic svg { width: 100%; height: 100%; }

/* Mobile: pills become a horizontal snap rail */
@media (max-width: 640px) {
  .eski__rail { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; margin-left: 0px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .eski__pill { flex: 0 0 auto; scroll-snap-align: start; }
  .eski__media { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  .eski__shot { transition: none; }
}

/* Full-bleed inside WPBakery columns: drop the builder's default
   15px column padding when this element is the column content. */
.vc_column_container > .vc_column-inner:has(.eski) { padding-left: 0; padding-right: 0; }

/* Kill the theme's mobile .vc_row{padding:0 12px} (320-768 media rule)
   for rows that contain this element — full-bleed on mobile too. */
@media only screen and (min-width: 320px) and (max-width: 768px) {
  .vc_row:has(.eski) { padding-left: 0 !important; padding-right: 0 !important; }
}


/* C4 hero slots. */
.eski__hero { font-size: var(--esk-display) !important; line-height: var(--esk-display-lh) !important; letter-spacing: var(--esk-display-ls); font-weight: 800; text-transform: uppercase; display: block; color: #022450 !important; }
.eski__support { font-size: clamp(22px, 2.4vw, 34px) !important; line-height: 1.15 !important; font-weight: 800; letter-spacing: 0.04em !important; word-spacing: 0.15em; text-transform: uppercase; display: block; margin-top: 0.45em; color: #022450 !important; }

/* mobile support size */
@media (max-width: 767px) {
  .eski__support { font-size: 18px !important; }
}


/* Support-line shimmer — same sweep as Why Choose (.eskw__t2): base-colour
   text, orange band drifts through every 9s. Reduced motion: static base. */
.eski__support {
  background-image: linear-gradient(100deg, #022450 0%, #022450 42%, #e36745 50%, #022450 58%, #022450 100%) !important;
  background-size: 300% auto !important;
  background-position: 0% 50%;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
  animation: eskiGrad 6s ease-in-out infinite !important;
}
@keyframes eskiGrad { 0% { background-position: 0% 50%; } 75%, 100% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .eski__support { animation: none !important; }
}
