/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #fcfcfc;
  color: #111111;
  line-height: 1.6;
}

/* Main container — like about.css */
main#main-content {
  width: 100%;
  padding: 2.5rem 0;           /* remove desktop inline gutters to use full width */
  color: #111111;
  box-sizing: border-box;
  scroll-margin-top: 80px;
  max-width: 180vh;
  margin: 0 auto;
}

/* Add small inline padding back on smaller viewports */
@media (max-width: 900px) {
  main#main-content { padding-inline: 3vw; } /* logical padding for LTR/RTL */
}
@media (max-width: 600px) {
  main#main-content { padding-inline: 5vw; }
}

/* Services hero section */
.services-hero {
  text-align: center;
  margin-bottom: 4rem;
}

.services-hero h2 {
  color: #000000;
  font-weight: 900;
  font-size: 3.2rem;           /* aligned with about.css */
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  user-select: none;
  cursor: default;
  transition: color 0.3s ease;
}

.services-hero h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;                 /* underline width aligned with about.css */
  height: 4px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  border-radius: 2px;
}

.services-hero h2:hover,
.services-hero h2:focus-within { color: #444444; }

.hero-subtitle {
  font-size: 1.3rem;
  color: #666666;
  font-weight: 400;
  margin: 2rem auto;
  max-width: 700px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-badge { text-align: center; }

.stat-number {
  display: block;
  font-size: clamp(1.6rem, 2.5vw, 2.5rem);
  font-weight: 900;
  color: #000000;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #666666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Services container */
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* intrinsic grid */
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
  margin-bottom: 5rem;
  
}

/* Individual service items */
.service-item {
  background-color: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem);
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease forwards;
}

.service-item.featured {
  border: 2px solid #000000;
  transform: scale(1.02);
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 6px;
  background: linear-gradient(90deg, #000000 0%, #333333 100%);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-item:hover::before,
.service-item:focus-within::before { transform: scaleX(1); }

.service-item:hover,
.service-item:focus-within {
  transform: translateY(-10px) scale(1.02);
  border-color: #cccccc;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  outline: none;
}

.service-item.featured:hover { transform: translateY(-10px) scale(1.05); }

/* Service badges */
.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #000000;
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Service icons */
.service-icon {
  width: clamp(72px, 10vw, 90px);
  height: clamp(72px, 10vw, 90px);
  margin: 0 auto 2rem;
  background-color: #f8f8f8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.service-icon i {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: #333333;
  transition: all 0.4s ease;
}

.service-item:hover .service-icon,
.service-item:focus-within .service-icon {
  background-color: #000000;
  transform: scale(1.1) rotate(5deg);
}

.service-item:hover .service-icon i,
.service-item:focus-within .service-icon i {
  color: #ffffff;
  transform: scale(1.1);
}

/* Service titles */
.service-item h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #000000;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

/* Service descriptions */
.service-item p {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Service features */
.service-features {
  margin-bottom: 2rem;
  text-align: left;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: #333333;
}

.feature i {
  color: #000000;
  font-size: 0.9rem;
}

/* Service pricing */
.service-pricing {
  border-top: 1px solid #e8e8e8;
  padding-top: 1.5rem;
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.85rem;
  color: #666666;
  margin-bottom: 0.3rem;
}

.price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000000;
}

/* Process section */
.process-section {
  background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
  border-radius: 25px;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 4rem;
  text-align: center;
}

.process-section h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #000000;
  margin-bottom: 3rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* intrinsic grid */
  gap: clamp(1rem, 2vw, 2rem);
}

.process-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.step-number {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
  color: #000000;
  margin-bottom: 1rem;
}

.step-content h4 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  color: #000000;
  margin-bottom: 0.8rem;
}

.step-content p {
  color: #666666;
  line-height: 1.6;
}

/* Testimonial section */
.testimonial-section {
  background: #ffffff;
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 3rem);
  margin-bottom: 4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e8e8e8;
  text-align: center;
}

.testimonial i {
  font-size: clamp(2rem, 3vw, 3rem);
  color: #333333;
  margin-bottom: 1.5rem;
}

.testimonial p {
  font-size: 1.3rem;
  font-style: italic;
  color: #444444;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.author-name { font-weight: 700; color: #000000; }
.author-role { font-size: 0.9rem; color: #666666; }

/* Services CTA */
.services-cta {
  background: #373636;
  color: #ffffff;
  border-radius: 25px;
  padding: clamp(2rem, 4vw, 4rem) clamp(1.5rem, 3vw, 3rem);
  text-align: center;
}

.cta-content h3 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #f4f7f5;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: #f4f7f5;
  opacity: 0.9;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-primary { background: #ffffff; color: #000000; }
.cta-primary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-secondary { background: transparent; color: #ffffff; border: 2px solid #ffffff; }
.cta-secondary:hover { background: #ffffff; color: #000000; }

.contact-quickinfo {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3rem);
  border-top: 1px solid #333333;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.quick-contact {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #cccccc;
}

.quick-contact i { font-size: 1.1rem; }

/* Responsive design — unify breakpoints with about.css */
@media (max-width: 900px) {
  .services-hero h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); } /* fluid type */

  .services-container { grid-template-columns: 1fr; } /* single column */
  .process-steps     { grid-template-columns: 1fr; } /* single column */

  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 600px) {
  .services-hero h2 { font-size: 2.5rem; }

  .hero-stats { flex-direction: column; gap: 1.25rem; }

  .process-section,
  .testimonial-section,
  .services-cta { padding: 1.5rem; }

  .service-item { padding: 1.5rem; }

  /* Center the badge on narrow screens to prevent overflow drift */
  .service-badge { left: 50%; right: auto; transform: translateX(-50%); top: 0.75rem; }

  /* Make CTA buttons full-width for easy tapping */
  .cta-primary, .cta-secondary { width: 100%; justify-content: center; }
}

/* Focus accessibility */
.service-item:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 4px;
}

/* Smooth animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Staggered reveal */
.service-item:nth-child(1) { animation-delay: 0.1s; }
.service-item:nth-child(2) { animation-delay: 0.2s; }
.service-item:nth-child(3) { animation-delay: 0.3s; }
.service-item:nth-child(4) { animation-delay: 0.4s; }

/* Smooth scroll */
html { scroll-behavior: smooth; }
