/* ============================================================
   IACCIA Premium Services Page Design System
   ============================================================ */

:root {
  --svc-primary: #006837;
  --svc-primary-dark: #004d28;
  --svc-gold: #c5a059;
  --svc-gold-light: #e6c587;
  --svc-dark: #0a121e;
  --svc-dark-blue: #0f172a;
  --svc-light-bg: #f8fafc;
  --svc-card-bg: #ffffff;
  --svc-border: rgba(15, 23, 42, 0.08);
  --svc-shadow: 0 10px 30px -5px rgba(0, 68, 37, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
  --svc-shadow-hover: 0 20px 40px -10px rgba(0, 68, 37, 0.18), 0 8px 24px rgba(0, 0, 0, 0.06);
  --svc-transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hero Section */
.services-hero {
  position: relative;
  background: url('../assets/images/services/services_hero_bg.jpg') center right / cover no-repeat;
  padding: 115px 0 35px;
  color: #ffffff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -20px 30px rgba(10, 18, 30, 0.5);
}

.services-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(10, 18, 30, 0.85) 0%, rgba(10, 18, 30, 0.65) 45%, rgba(10, 18, 30, 0.15) 80%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.services-hero .container {
  position: relative;
  z-index: 2;
}

.services-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(10, 18, 30, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(230, 197, 135, 0.5);
  color: #fbbf24;
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(251, 191, 36, 0.15);
}

.services-hero .hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.services-hero .hero-title span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.services-hero .hero-subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.12rem);
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 0.65rem;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.services-hero .hero-desc {
  font-size: 0.95rem;
  color: rgba(241, 245, 249, 0.95);
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.hero-svc-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.hero-svc-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(10, 18, 30, 0.60);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.82rem;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.hero-svc-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.2);
  background: rgba(10, 18, 30, 0.80);
}

.hero-svc-chip i {
  font-size: 1.1rem;
  color: #fbbf24;
}

.services-hero .hero-desc {
  font-size: 1.02rem;
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 35px;
}

/* Quick Navigation Anchor Strip */
.services-anchor-nav {
  background: #ffffff;
  border-bottom: 1px solid var(--svc-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
  padding: 16px 0;
}

.services-anchor-nav .nav-pills-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.services-anchor-nav .anchor-pill {
  color: #475569;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 30px;
  background: #f1f5f9;
  text-decoration: none;
  transition: var(--svc-transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.services-anchor-nav .anchor-pill:hover,
.services-anchor-nav .anchor-pill.active {
  background: var(--svc-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 104, 55, 0.25);
}

/* Services Grid & Cards */
.services-section {
  padding: 40px 0;
  background: var(--svc-light-bg);
}

.section-header {
  margin-bottom: 25px;
}

.section-tagline {
  display: inline-block;
  color: var(--svc-primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  background: rgba(0, 104, 55, 0.08);
  padding: 4px 14px;
  border-radius: 20px;
}

.section-main-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--svc-dark);
  margin-bottom: 14px;
}

.section-subtext {
  font-size: 1.05rem;
  color: #64748b;
  max-width: 680px;
  margin: 0 auto;
}

/* Premium Service Cards */
.service-card-premium {
  background: var(--svc-card-bg);
  border-radius: 20px;
  border: 1px solid var(--svc-border);
  box-shadow: var(--svc-shadow);
  transition: var(--svc-transition);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card-premium:hover {
  transform: translateY(-8px);
  box-shadow: var(--svc-shadow-hover);
  border-color: rgba(0, 104, 55, 0.25);
}

.service-card-image-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--svc-dark);
}

.service-card-body {
  padding: 20px 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0a121e;
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-card-desc {
  font-size: 0.92rem;
  font-weight: 450;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 12px;
  flex-grow: 1;
}

/* Detailed Showcase Typography Alignment */
.showcase-block h2.showcase-main-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: clamp(1.35rem, 2.2vw, 1.55rem) !important;
  font-weight: 800 !important;
  color: #0a121e !important;
  line-height: 1.3 !important;
  margin-top: 6px !important;
  margin-bottom: 12px !important;
}

.showcase-block p.showcase-main-desc {
  font-size: 0.92rem !important;
  font-weight: 450 !important;
  color: #475569 !important;
  line-height: 1.65 !important;
  margin-bottom: 16px !important;
}

.showcase-block .feature-box-title {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  color: #0a121e !important;
  margin-bottom: 4px !important;
}

.showcase-block .feature-box-desc {
  font-size: 0.86rem !important;
  font-weight: 450 !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

.service-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-feature-bullets li {
  font-size: 0.86rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.service-feature-bullets li i {
  color: var(--svc-primary);
  font-size: 0.9rem;
}

.service-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Custom Buttons */
.btn-svc-primary {
  background: var(--svc-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 22px;
  border-radius: 30px;
  border: none;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--svc-transition);
  box-shadow: 0 4px 14px rgba(0, 104, 55, 0.25);
  cursor: pointer;
}

.btn-svc-primary:hover {
  background: var(--svc-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 104, 55, 0.35);
}

.btn-svc-outline {
  background: transparent;
  color: var(--svc-primary) !important;
  border: 1.5px solid var(--svc-primary);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 9px 20px;
  border-radius: 30px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--svc-transition);
  cursor: pointer;
}

.btn-svc-outline i {
  color: var(--svc-primary) !important;
  transition: var(--svc-transition);
}

.btn-svc-outline:hover {
  background: #102a45 !important;
  border-color: #102a45 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 42, 69, 0.3);
}

.btn-svc-outline:hover i {
  color: #f18024 !important;
  transform: translateX(3px);
}

/* Button visibility fix on dark hero and CTA section backgrounds */
.services-hero .btn-svc-outline,
.services-cta-section .btn-svc-outline {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
}

.services-hero .btn-svc-outline i,
.services-cta-section .btn-svc-outline i {
  color: #ffffff !important;
}

.services-hero .btn-svc-outline:hover,
.services-cta-section .btn-svc-outline:hover {
  background: #f18024 !important;
  border-color: #f18024 !important;
  color: #ffffff !important;
}

.services-hero .btn-svc-outline:hover i,
.services-cta-section .btn-svc-outline:hover i {
  color: #ffffff !important;
}

/* High-Impact Detailed Showcase Cards */
.service-showcase-section {
  padding: 40px 0;
  background: #ffffff;
}

.showcase-block {
  padding: 30px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  margin-bottom: 25px;
  transition: var(--svc-transition);
  scroll-margin-top: 110px;
}

.showcase-block:hover {
  box-shadow: 0 16px 45px rgba(0, 68, 37, 0.08);
  border-color: rgba(0, 104, 55, 0.2);
}

.showcase-img-container {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
  height: 100%;
  min-height: 320px;
}

.showcase-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.showcase-block:hover .showcase-img-container img {
  transform: scale(1.04);
}

.showcase-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(10, 18, 30, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
}

.showcase-floating-badge i {
  font-size: 1.8rem;
  color: var(--svc-gold-light);
}

.showcase-floating-badge .badge-val {
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 2px;
  color: #ffffff;
}

.showcase-floating-badge .badge-lbl {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
}

/* Call to Action Banner */
.services-cta-section {
  position: relative;
  background: linear-gradient(135deg, #0a121e 0%, #004d28 100%);
  padding: 45px 0;
  color: #ffffff;
  overflow: hidden;
  border-radius: 28px;
  margin-bottom: 30px;
}

.services-cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background: radial-gradient(circle at center, rgba(197, 160, 89, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta-badge {
  display: inline-block;
  background: rgba(197, 160, 89, 0.2);
  border: 1px solid var(--svc-gold);
  color: var(--svc-gold-light);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.cta-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
  line-height: 1.25;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 32px;
}

.btn-cta-gold {
  background: linear-gradient(135deg, #c5a059 0%, #a37d38 100%);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--svc-transition);
  box-shadow: 0 8px 25px rgba(197, 160, 89, 0.35);
}

.btn-cta-gold:hover {
  background: linear-gradient(135deg, #d4b068 0%, #b48e47 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(197, 160, 89, 0.45);
}

.btn-cta-ghost {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 32px;
  border-radius: 50px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--svc-transition);
}

.btn-cta-ghost:hover {
  background: #ffffff;
  color: var(--svc-dark) !important;
  transform: translateY(-3px);
}

/* Modal Styling */
.modal-header-custom {
  background: linear-gradient(135deg, var(--svc-dark) 0%, var(--svc-primary-dark) 100%);
  color: #ffffff;
  padding: 22px 28px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.modal-header-custom .btn-close {
  filter: invert(1);
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .services-hero {
    padding: 70px 0 80px;
  }

  .showcase-block {
    padding: 24px;
  }

  .showcase-img-container {
    min-height: 250px;
    margin-bottom: 24px;
  }

  .services-anchor-nav {
    display: none;
    /* Hide sticky anchor bar on small screens for cleaner view */
  }
}