/* ===== SERVICES SECTION ===== */

/* Base container */
.svc-wrap {
  overflow: hidden;
}

/* Title - Mobile first approach */
.svc-title {
  font-family: 'Oswald', Impact, sans-serif;
  font-weight: 500;
  font-size: clamp(48px, 10vw, 128px);
  line-height: 0.96;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  word-break: break-word;
  hyphens: auto;
}

/* Intro description */
.svc-intro {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: clamp(16px, 2.5vw, 24px);
  line-height: 1.55;
  color: #0F419B;
  max-width: 484px;
}

/* Tabs container */
.svc-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* Tab buttons */
.svc-tab {
  font-family: 'Roboto', sans-serif;
  font-weight: 900;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  text-align: center;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0 12px;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.svc-tab:hover,
.svc-tab.active,
.svc-tab[aria-selected="true"] {
  color: #003594;
}

/* Panel description */
.svc-panel-desc {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  color: #0F419B;
}

/* Service grid - Mobile first */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Service card */
.svc-card {
  text-align: center;
}

/* Icon circle - smaller on mobile */
.svc-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #0D3F99;
  color: #0D3F99;
  font-size: 24px;
  transition: all 0.3s ease;
}

.svc-icon img,
.svc-icon svg {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.svc-card:hover .svc-icon {
  background: #003594;
  color: #fff;
  border-color: #003594;
}

/* Term label */
.svc-label {
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
  text-align: center;
  color: #003594;
}

/* Navigation arrows */
.svc-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}

.svc-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #12439B;
  color: #12439B;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.svc-arrow:hover {
  background: #003594;
  color: #fff;
  border-color: #003594;
}

/* Underline animation fix */
.svc-underline {
  transition: left 0.3s ease, width 0.3s ease;
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Small tablets and up (480px+) */
@media (min-width: 480px) {
  .svc-icon {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .svc-icon img,
  .svc-icon svg {
    width: 32px;
    height: 32px;
  }

  .svc-label {
    font-size: 12px;
  }

  .svc-tabs {
    gap: 1rem 2rem;
  }

  .svc-tab {
    font-size: 13px;
  }
}

/* Tablets (768px+) */
@media (min-width: 768px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .svc-icon {
    width: 80px;
    height: 80px;
  }

  .svc-icon img,
  .svc-icon svg {
    width: 36px;
    height: 36px;
  }

  .svc-nav {
    justify-content: flex-end;
    gap: 16px;
    margin-top: 40px;
  }

  .svc-arrow {
    width: 40px;
    height: 40px;
  }

  .svc-tab {
    font-size: 14px;
  }
}

/* Small desktops (1024px+) */
@media (min-width: 1024px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .svc-icon {
    width: 96px;
    height: 96px;
    font-size: 32px;
  }

  .svc-icon img,
  .svc-icon svg {
    width: 40px;
    height: 40px;
  }

  .svc-tabs {
    flex-wrap: nowrap;
    gap: 2rem;
  }
}

/* Large desktops (1280px+) */
@media (min-width: 1280px) {
  .svc-tabs {
    gap: 3rem;
  }
}

/* ===== GOLD PIXEL DECORATIONS ===== */
.svc-pixels {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.pixel-group {
  position: absolute;
  width: 130px;
  height: 140px;
}

.pixel-group img {
  position: absolute;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Group 1 - Top left near SERVICES title */
.pixel-group-1 {
  top: 10px;
  left: 10px;
}

.pixel-group-1 .pixel-1 {
  top: 0;
  left: 0;
}

.pixel-group-1 .pixel-2 {
  top: 60px;
  left: 0;
}

.pixel-group-1 .pixel-3 {
  top: 30px;
  left: 50px;
}

/* Group 2 - Bottom area */
.pixel-group-2 {
  bottom: 10px;
  left: 25%;
}

.pixel-group-2 .pixel-1 {
  top: 0;
  left: 0;
}

.pixel-group-2 .pixel-2 {
  top: 60px;
  left: 0;
}

.pixel-group-2 .pixel-3 {
  top: 30px;
  left: 50px;
}

/* Larger pixels on desktop */
@media (min-width: 1024px) {
  .pixel-group img {
    width: 52px;
    height: 52px;
  }

  .pixel-group-1 {
    top: 10px;
    left: 20px;
  }

  .pixel-group-1 .pixel-2 {
    top: 80px;
  }

  .pixel-group-1 .pixel-3 {
    top: 40px;
    left: 70px;
  }

  .pixel-group-2 {
    left: 33%;
  }

  .pixel-group-2 .pixel-2 {
    top: 80px;
  }

  .pixel-group-2 .pixel-3 {
    left: 70px;
  }
}

/* Hide pixels on very small screens */
@media (max-width: 640px) {
  .svc-pixels {
    display: none;
  }
}

/* ===== LAYOUT FIXES FOR MOBILE ===== */

/* Stack layout on mobile */
@media (max-width: 1023px) {
  .svc-wrap .grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .svc-wrap header {
    text-align: center;
  }

  .svc-intro {
    margin-left: auto;
    margin-right: auto;
  }

  /* Center tabs on mobile */
  .svc-tabs {
    justify-content: center;
  }
}

/* Extra small screens */
@media (max-width: 374px) {
  .svc-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .svc-tab {
    font-size: 11px;
    letter-spacing: 1px;
  }
}

/* ==========================================================================
   Service Card Contextual Links
   Custom styling for taxonomy term contextual edit links on service cards.
   Shows pencil icon on hover for logged-in users.
   ========================================================================== */
.svc-card {
  position: relative;
}

.svc-card .contextual {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  z-index: 500 !important;
}

.svc-card .contextual .trigger {
  position: relative !important;
  clip: auto !important;
  width: 24px !important;
  height: 24px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #003594 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M13.5 0a2.5 2.5 0 0 1 2 4l-9.5 9.5-4 1 1-4L12.5.5a2.5 2.5 0 0 1 1 0zM3 12l-.5 2 2-.5 8.5-8.5-1.5-1.5L3 12z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  border-radius: 50% !important;
  border: none !important;
  cursor: pointer !important;
  text-indent: -9999px !important;
  transition: opacity 0.2s ease !important;
}

.svc-card .contextual .trigger::before {
  display: none !important;
}

.svc-card:hover .contextual .trigger {
  opacity: 1 !important;
}