/* ================================================
   Service Pages Shared CSS
   Used by all 6 individual service pages
================================================ */

/* ================================================
   CSS Custom Properties & Variables
================================================ */
:root {
  /* Service Page Colors */
  --service-hero-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --service-accent: #0071e3;
  --service-accent-light: #e3f2fd;
  --service-text: #1e293b;
  --service-text-light: #64748b;
  --service-border: #e2e8f0;
  --service-white: #ffffff;

  /* Service Page Spacing */
  --section-padding: 8rem 1rem;
  --container-max-width: 75rem;
  --content-gap: 2rem;

  /* Service Page Typography */
  --service-title-size: clamp(2rem, 5vw, 3rem);
  --service-subtitle-size: clamp(1.1rem, 2.5vw, 1.3rem);
  --service-text-size: 1.1rem;
  --service-feature-size: 1rem;
}


/* .site-main{
    padding-top: 10rem;
} */
/* ================================================
   Service Hero Section
================================================ */
.service-hero {
  background: var(--service-hero-bg);
  padding: 15rem 1rem 4rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.service-hero-title {
  font-size: var(--service-title-size);
  font-weight: 800;
  color: var(--service-text);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.service-hero-subtitle {
  font-size: var(--service-subtitle-size);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.service-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--service-accent);
  color: var(--tmd-white);
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.service-hero-cta:hover,
.service-hero-cta:focus {
  transform: translateY(-2px);
  color: var(--tmd-white);
  box-shadow: 0 8px 30px rgba(0, 113, 227, 0.4);
  background: #0056b3;
}

/* ================================================
   Service Overview Section
================================================ */
.service-overview {
  padding: var(--section-padding);
  background: var(--service-white);
}

.service-overview-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr;
  gap: 6rem;
  align-items: center;
}

.service-overview-content h2 {
  font-size: var(--h2-size);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.service-overview-content p {
  font-size: var(--font-lg);
  margin-bottom: 1.5rem;
}

.service-overview-image {
  text-align: center;
  position: relative;
  overflow: visible;
  /* allow glow to extend */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: 1rem;
}

.service-overview-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 40%,
      rgba(0, 113, 227, 0.15) 0%,
      rgba(0, 113, 227, 0.08) 60%,
      transparent 100%);
  filter: blur(1.5rem) brightness(1.05);
  opacity: 0.8;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 16px;
}

.service-overview-image img {
  max-width: 85%;
  max-height: 340px;
  width: auto;
  height: auto;
  border-radius: 12px;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-overview-image img:hover+.service-overview-image::before,
.service-overview-image img:hover~.service-overview-image::before {
  opacity: 1;
}

.service-overview-image img:hover {
  transform: translateY(-2px);
  /* box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); */
}

/* ================================================
   Service Features Section
================================================ */
.service-features {
  padding: var(--section-padding);
  background: #f8fafc;
}

.service-features-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.service-features-header {
  text-align: center;
  margin-bottom: 3rem;
}

.service-features-title {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
}

.service-features-subtitle {
  font-size: var(--service-subtitle-size);
  max-width: 600px;
  margin: 0 auto;
}

.service-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-feature-card {
  background: var(--tmd-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid var(--tmd-border);
}

.service-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--service-accent);
}

.service-feature-icon {
  width: 50px;
  height: 50px;
  background: var(--service-accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--service-accent);
}

.service-feature-title {
  font-size: var(--h3-size);
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-feature-description {
  font-size: var(--service-feature-size);
  line-height: 1.6;
}

/* ================================================
   Service Process Section
================================================ */
.service-process {
  padding: var(--section-padding);
  background: var(--service-white);
  position: relative;
  overflow: hidden;
}

/* Left side animated decoration */
.service-process::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 50%;
  width: 200px;
  height: 200px;
  background: linear-gradient(45deg, var(--service-accent), transparent);
  border-radius: 50%;
  opacity: 0.1;
  animation: float-left 6s ease-in-out infinite;
  z-index: 1;
}

/* Right side animated decoration */
.service-process::after {
  content: '';
  position: absolute;
  right: -50px;
  top: 20%;
  width: 150px;
  height: 150px;
  background: linear-gradient(-45deg, var(--service-accent), transparent);
  border-radius: 50%;
  opacity: 0.08;
  animation: float-right 8s ease-in-out infinite reverse;
  z-index: 1;
}

/* Floating geometric shapes */
.service-process .floating-shape {
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid rgba(0, 113, 227, 0.15);
  border-radius: 8px;
  animation: rotate-float 10s linear infinite;
  z-index: 1;
}

.service-process .floating-shape:nth-child(1) {
  left: 5%;
  top: 15%;
  animation-delay: 0s;
}

.service-process .floating-shape:nth-child(2) {
  right: 8%;
  bottom: 25%;
  animation-delay: 2s;
  animation-direction: reverse;
}

/* Animation keyframes */
@keyframes float-left {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

@keyframes float-right {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(15px) scale(1.1);
  }
}

@keyframes rotate-float {
  0% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(90deg) translateY(-10px);
  }

  50% {
    transform: rotate(180deg) translateY(0);
  }

  75% {
    transform: rotate(270deg) translateY(10px);
  }

  100% {
    transform: rotate(360deg) translateY(0);
  }
}

.service-process-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.service-process-header {
  text-align: center;
  margin-bottom: 3rem;
}

.service-process-title {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
}

.service-process-subtitle {
  font-size: var(--service-subtitle-size);
  max-width: 600px;
  margin: 0 auto;
}

.service-process-simple {
  max-width: 800px;
  margin: 0 auto;
}

.service-process-item {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--service-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--service-border);
}

.service-process-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--service-text);
  margin-bottom: 1rem;
}

.service-process-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  background: rgba(0, 113, 227, 0.1);
  color: var(--service-accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  border: 2px solid rgba(0, 113, 227, 0.2);
}

.service-process-item-description {
  font-size: var(--font-md);
  margin-bottom: 1rem;
  max-width: 85%;
}

.service-process-item-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-process-item-deliverables li {
  padding: 0.2rem 0;
  font-size: var(--font-base);
  position: relative;
  padding-left: 1.5rem;
}

.service-process-item-deliverables li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--service-accent);
  font-weight: bold;
}

.service-process-step {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.service-process-step:nth-child(odd) {
  flex-direction: row;
}

.service-process-step:nth-child(even) {
  flex-direction: row-reverse;
}

.service-process-step-content {
  flex: 1;
  padding: 2rem;
  background: var(--service-white);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--service-border);
}

.service-process-step-number {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  background: var(--service-accent);
  color: var(--service-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  z-index: 2;
}

.service-process-step-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--service-text);
  margin-bottom: 1rem;
}

.service-process-step-description {
  font-size: var(--service-feature-size);
  color: var(--service-text-light);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-process-step-deliverables {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-process-step-deliverables li {
  padding: 0.5rem 0;
  color: var(--service-text-light);
  position: relative;
  padding-left: 1.5rem;
}

.service-process-step-deliverables li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--service-accent);
  font-weight: bold;
}

/* ================================================
   Service Pricing Section
================================================ */
.service-pricing {
  padding: var(--section-padding);
}

.service-pricing-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.service-pricing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.service-pricing-title {
  font-size: var(--h2-size);
  margin-bottom: 1rem;
}

.service-pricing-subtitle {
  font-size: var(--service-subtitle-size);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.service-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 70rem;
  margin: 0 auto;
}

.service-pricing-card {
  background: var(--service-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--service-border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.service-pricing-card.featured {
  border-color: var(--tmd-accent);
  transform: scale(1.02);
}

.service-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-pricing-card.featured:hover {
  transform: scale(1.05) translateY(-4px);
}

.service-pricing-plan {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--service-text);
  margin-bottom: 0.75rem;
}

.service-pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--service-accent);
  margin-bottom: 0.25rem;
}

.service-pricing-period {
  font-size: 0.9rem;
  color: var(--service-text-light);
  margin-bottom: 1.5rem;
}

.service-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-pricing-features li {
  padding: 0.5rem 0;
  color: var(--service-text-light);
  border-bottom: 1px solid var(--service-border);
  font-size: 0.9rem;
}

.service-pricing-features li:last-child {
  border-bottom: none;
}

.service-pricing-cta {
  display: inline-block;
  background: var(--service-accent);
  color: var(--service-white);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.service-pricing-cta:hover,
.service-pricing-cta:focus {
  background: #0056b3;
  color: var(--tmd-white);
  transform: translateY(-2px);
}

/* ================================================
   Service CTA Section
================================================ */
.service-cta {
  background: var(--tmd-white);
  padding: 4rem 1rem 3rem 1rem;
  text-align: center;
}

.service-cta-inner {
  max-width: 51.47rem;
  margin: 0 auto;
}

.service-cta-title {
  font-size: var(--h2-size);
  font-weight: 700;
  color: var(--tmd-heading);
  margin-bottom: 1.1rem;
  line-height: 1.1;
}

.service-cta-subtitle {
  max-width: 44.12rem;
  margin: 0 auto 2.2rem auto;
  line-height: 1.6;
}

.service-cta-subtitle strong {
  font-weight: 700;
  color: var(--tmd-accent);
}

.service-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.service-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-base);
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 110, 225, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  border: 2px solid var(--tmd-accent);
  background: var(--tmd-accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.service-cta-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.service-cta-primary:hover::before {
  left: 100%;
}

.service-cta-primary:hover,
.service-cta-primary:focus {
  background: #005bb5;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 110, 225, 0.2);
  outline: none;
  transform: translateY(-2px);
}

.service-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--font-base);
  font-weight: 600;
  color: var(--tmd-accent);
  background: #fff;
  border: 2px solid var(--tmd-accent);
  padding: 0.6rem 1.4rem;
  border-radius: 0.5rem;
  text-decoration: none;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 16px rgba(0, 110, 225, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.service-cta-secondary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.service-cta-secondary:hover::before {
  left: 100%;
}

.service-cta-secondary:hover,
.service-cta-secondary:focus {
  background: var(--tmd-accent);
  color: #fff;
  border-color: var(--tmd-accent);
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 110, 225, 0.2);
}

/* ================================================
   Mobile Responsiveness
================================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 3rem 1rem;
    --content-gap: 1.5rem;
  }

  /* Reduce animation intensity on mobile */
  .service-process::before,
  .service-process::after {
    opacity: 0.05;
    animation-duration: 8s;
  }

  .floating-shape {
    width: 40px;
    height: 40px;
    animation-duration: 12s;
  }

  .service-overview-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-process-simple {
    margin: 0 1rem;
  }

  .service-process-item {
    padding: 1.5rem;
  }

  .service-pricing-grid {
    grid-template-columns: 1fr;
  }

  .service-pricing-card.featured {
    transform: none;
  }

  .service-pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .service-cta {
    padding: 4rem 1rem;
  }

  .service-cta-inner {
    max-width: 100%;
    text-align: center;
  }

  .service-cta-title {
    font-size: var(--font-xl);
    margin-bottom: 1rem;
  }

  .service-cta-subtitle {
    font-size: var(--font-base);
    padding-inline: 1.5rem;
  }

  .service-cta-buttons {
    flex-direction: column;
    gap: 0.875rem;
    margin-top: 1.5rem;
  }

  .service-cta-primary,
  .service-cta-secondary {
    width: 100%;
    justify-content: center;
    font-size: var(--font-sm);
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .service-hero-title {
    font-size: 2rem;
  }

  .service-overview-content h2,
  .service-features-title,
  .service-process-title,
  .service-pricing-title,
  .service-cta-title {
    font-size: 2rem;
  }

  .service-features-grid {
    grid-template-columns: 1fr;
  }
}