

.services-interactive__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-interactive__title {
  font-family: var(--font-serif-accent);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.services-interactive__title-accent {
  color: var(--color-primary);
}

.services-interactive__subtitle {
  color: var(--color-text);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.services-interactive__content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left Sidebar */
.services-sidebar {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
  border-left: 3px solid transparent;
  position: relative;
  opacity: 0;
  transform: translateX(-24px) scale(0.98);
  animation: sidebarItemIn 0.6s cubic-bezier(.4,0,.2,1) forwards;
  transition: 
    background 0.22s cubic-bezier(.77,0,.18,1),
    color 0.22s cubic-bezier(.77,0,.18,1),
    box-shadow 0.22s cubic-bezier(.77,0,.18,1),
    border-color 0.22s cubic-bezier(.77,0,.18,1),
    transform 0.18s cubic-bezier(.77,0,.18,1);
}

.service-item:hover {
  background: rgba(12, 65, 96, 0.05);
  border-left-color: var(--color-primary);
}

.service-item.active {
  background: rgba(12, 65, 96, 0.1);
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

.service-item__icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.service-item.active .service-item__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.service-item__title {
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.3;
}

/* Right Content Area */
.services-main {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.service-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  pointer-events: none;
  transition: 
    opacity 0.4s cubic-bezier(.4,0,.2,1),
    transform 0.4s cubic-bezier(.4,0,.2,1);
  z-index: 1;
}

.service-content.active {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1rem;
  height: 100%;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: contentFadeIn 0.6s cubic-bezier(.4,0,.2,1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sidebarItemIn {
  to { opacity: 1; transform: translateX(0) scale(1);}
}

@keyframes contentFadeIn {
  from { opacity: 0; transform: translateY(30px) scale(0.98);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}

.service-content__title {
  font-family: var(--font-serif-accent);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.service-content__description {
  color: var(--color-text);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  margin-top: 0;
}

.service-content__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 300px;
  opacity: 0;
  transform: scale(0.96) translateY(18px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

.service-content.active .service-content__image {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.service-content__title,
.service-content__description {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s 0.1s, transform 0.5s 0.1s;
}

.service-content.active .service-content__title,
.service-content.active .service-content__description {
  opacity: 1;
  transform: translateY(0);
}

/* Icon pop effect */
.service-item img {
  transition: transform 0.22s cubic-bezier(.77,0,.18,1), filter 0.22s;
}

.service-item:hover img,
.service-item.active img {
  transform: scale(1.13) rotate(-6deg);
  filter: drop-shadow(0 2px 8px #0c416022);
}

/* Focus ring for accessibility */
.service-item:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 30%, transparent);
}


/* --- Why Choose Us --- */
.services-why-choose {
  background: var(--color-white);
  /* padding: 4rem 0 3rem 0; */
  animation: fadeInSection 1.2s;
}
.services-why-choose__title {
  text-align: center;
  font-family: var(--font-serif-accent);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}
.why-choose-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
.why-choose-card {
  background: var(--color-surface, #f8fafc);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(12,65,96,0.07);
  padding: 2rem 1.5rem;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: fadeInCard 0.7s cubic-bezier(.4,0,.2,1) forwards;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.why-choose-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12, 65, 96, 0.05) 0%, rgba(247, 200, 115, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.why-choose-card > * {
  position: relative;
  z-index: 2;
}
.why-choose-card:nth-child(1) { animation-delay: 0.1s; }
.why-choose-card:nth-child(2) { animation-delay: 0.3s; }
.why-choose-card:nth-child(3) { animation-delay: 0.5s; }
.why-choose-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 12px 40px rgba(12,65,96,0.15);
}
.why-choose-card:hover::before {
  opacity: 1;
}
.why-choose-card i {
  font-size: 2.2rem;
  color: var(--color-accent, #f7c873);
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-choose-card:hover i {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-primary);
}
.why-choose-card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-choose-card:hover h3 {
  transform: translateY(-2px);
  color: var(--color-dark);
}
.why-choose-card p {
  color: var(--color-text);
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.why-choose-card:hover p {
  transform: translateY(-1px);
  color: var(--color-primary);
}

/* --- FAQ Section --- */
.services-faq {
  background: var(--color-surface, #f8fafc);
  padding: 4rem 0 3rem 0;
  animation: fadeInSection 1.4s;
}
.services-faq__title {
  text-align: center;
  font-family: var(--font-serif-accent);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}
.faq-item {
  margin-bottom: 1.2rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(12,65,96,0.07);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}
.faq-question:hover,
.faq-question:focus {
  background: var(--color-accent, #f7c873);
  color: var(--color-dark, #0a2233);
}
.faq-answer {
  display: none;
  padding: 0 1.5rem 1.2rem 1.5rem;
  color: var(--color-text);
  font-size: 1rem;
  animation: fadeInCard 0.5s;
}
.faq-item.active .faq-answer {
  display: block;
}
.faq-item.active .faq-question {
  background: var(--color-accent, #f7c873);
  color: var(--color-dark, #0a2233);
}

/* --- Industries Section --- */
.services-industries {
  background: var(--color-white);
  padding: 4rem 0 3rem 0;
  animation: fadeInSection 1.6s;
}
.services-industries__title {
  text-align: center;
  font-family: var(--font-serif-accent);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 2.5rem;
}
.industries-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  justify-items: center;
  max-width: 600px;
  margin: 0 auto;
}
.industry-card {
  background: var(--color-surface, #f8fafc);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(12,65,96,0.07);
  padding: 2rem 1.5rem;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  animation: fadeInCard 0.7s cubic-bezier(.4,0,.2,1) forwards;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.industry-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(12, 65, 96, 0.05) 0%, rgba(247, 200, 115, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.industry-card > * {
  position: relative;
  z-index: 2;
}
.industry-card:nth-child(1) { animation-delay: 0.1s; }
.industry-card:nth-child(2) { animation-delay: 0.3s; }
.industry-card:nth-child(3) { animation-delay: 0.5s; }
.industry-card:nth-child(4) { animation-delay: 0.7s; }
.industry-card:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow: 0 12px 40px rgba(12,65,96,0.15);
}
.industry-card:hover::before {
  opacity: 1;
}
.industry-card i {
  font-size: 1.5rem;
  color: var(--color-accent, #f7c873);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.industry-card:hover i {
  transform: scale(1.1) rotate(5deg);
  color: var(--color-primary);
}
.industry-card:hover {
  color: var(--color-dark);
}

/* --- CTA Section --- */
.services-cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: 3.5rem 0 3.5rem 0;
  animation: fadeInSection 1.8s;
}
.services-cta__title {
  font-family: var(--font-serif-accent);
  font-size: 2rem;
  margin-bottom: 1rem;
}
.services-cta__desc {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.btn--large {
  font-size: 1.2rem;
  padding: 1em 2.5em;
  border-radius: 2em;
  margin-top: 1rem;
}

.call{
        display: flex;
    flex-direction: column;
    align-items: center;
}
.quote-btn {
    display: flex;
    justify-content: center;
  background: #fff;
 max-width: 300px;
  color: var(--color-primary);
  border-radius: 2rem;
  padding: 0.75rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  z-index: 2;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.quote-btn:hover, .quote-btn:focus {
  text-decoration: none;
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.13);
  border: 1px solid white;
}
/* --- Animations --- */
@keyframes fadeInSection {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInCard {
  from { opacity: 0; transform: translateY(30px) scale(0.97);}
  to { opacity: 1; transform: translateY(0) scale(1);}
}

/* Responsive */
@media (max-width: 768px) {
  .industries-grid {
    grid-template-columns: 1fr;
    max-width: 300px;
  }
}

@media (max-width: 900px) {
  .packages-grid,
  .why-choose-grid {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .package-card,
  .why-choose-card,
  .industry-card {
    min-width: 220px;
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .services-interactive__content {
    grid-template-columns: 250px 1fr;
    gap: 2rem;
  }
  
  .services-sidebar {
    padding: 1.25rem;
  }
  
  .service-item {
    padding: 0.875rem 1rem;
  }
  
  .services-main {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .services-interactive__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-sidebar {
    position: static;
    order: 1;
  }
  
  .services-main {
    order: 2;
    padding: 1.5rem;
  }
  
  .service-content.active {
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
  }
  
  .services-interactive__title {
    font-size: 2rem;
  }
  
  .service-content__title {
    font-size: 1.75rem;
  }
  
  .service-content__description {
    font-size: 1rem;
  }
  
  .service-content__image {
    min-height: 250px;
  }
}

@media (max-width: 480px) {
  .services-interactive {
    padding: 3rem 0;
  }
  
  .services-interactive__header {
    margin-bottom: 2rem;
  }
  
  .services-interactive__title {
    font-size: 1.75rem;
  }
  
  .services-interactive__subtitle {
    font-size: 1rem;
  }
  
  .services-sidebar {
    padding: 1rem;
  }
  
  .service-item {
    padding: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .service-item__icon {
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }
  
  .service-item__title {
    font-size: 0.9rem;
  }
  
  .services-main {
    padding: 1.25rem;
  }
  
  .service-content.active {
    gap: 1rem;
  }
  
  .service-content__title {
    font-size: 1.5rem;
  }
  
  .service-content__description {
    font-size: 0.95rem;
  }
  
  .service-content__image {
    min-height: 200px;
  }
}

/* Responsive: keep transitions smooth */
@media (max-width: 768px) {
}

/* Small-screen inline mode: show content under the clicked item */
@media (max-width: 768px) {
  /* Hide the right content panel area on small screens since we inline content */
  .services-main {
    display: none;
  }
  /* When JS moves content under the clicked sidebar item, style it like a card */
  .service-content.inline {
    display: block;
    pointer-events: auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin: 0.25rem 0 0.75rem;
    /* collapsed state */
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    max-height: 0;
    overflow: hidden;
    padding: 0 1rem;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1),
                transform 0.35s cubic-bezier(.4,0,.2,1),
                max-height 0.35s cubic-bezier(.4,0,.2,1),
                padding 0.25s cubic-bezier(.4,0,.2,1);
  }
  .service-content.inline.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 2000px; /* large enough to accommodate content */
    padding: 1rem;
  }
  .service-content.inline{
    min-height: 200px;
  }

  .service-content__image{
    display: none;
}
}
